/* ==========================================================================
   landing.css  -  landing page v2  (patch LP-1)

   Loaded ONLY by templates/landing_v2.html. Every selector starts with .lp-
   (plus three scoped :has() rules at the top), so it cannot change any other
   page. Tokens are local (--lp-*): this file does not depend on theme.css.
   To remove the feature: delete this file, landing_v2.html and partials/lp_*.

   Design rules (keep them when editing):
   - one card on the page (the status card); everything else is flat
   - crimson = the 4px top rule only; blue does all the work
   - weights 400 and 700 only (those are the two Vazirmatn files you ship)
   - no entrance animation, no shadows, no gradients
   - logical properties (inline/block) except the details chevron, which must
     point DOWN in both directions
   ========================================================================== */

/* --- page shell: full-bleed bands (only when the page contains .lp-page) ---- */
.shell:has(> .lp-page) { max-width: none; padding: 0; }
.shell:has(> .lp-page) > .alert {   /* flash messages: same width as the content column, with air above and below */
  box-sizing: border-box; width: calc(100% - 2.5rem); max-width: 70rem; margin: 1rem auto;
}
body:has(.lp-page) { background: #f4f6fb; }

/* --- local tokens + type baseline ------------------------------------------ */
.lp-skip, .lp-rule, .lp-phase, .lp-header, .lp-page, .lp-footer {
  --lp-blue: #30539f;
  --lp-blue-dark: #1d366f;
  --lp-crimson: #d62652;
  --lp-ink: #161c2d;
  --lp-muted: #566077;
  --lp-line: #dce3ef;
  --lp-tint: #eef2f9;
  letter-spacing: 0;               /* never letter-space Persian */
}
.lp-phase, .lp-header, .lp-page, .lp-footer { font-size: 1rem; line-height: 1.75; color: var(--lp-ink); }
.lp-page h1, .lp-page h2, .lp-page p, .lp-page dl, .lp-page dd, .lp-page ul { margin: 0; padding: 0; }

.lp-inner { box-sizing: border-box; max-width: 72.5rem; margin-inline: auto; padding-inline: 1.25rem; }

/* --- skip link + top rule + phase banner ------------------------------------ */
.lp-skip {
  position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 100;
  padding: .6rem 1rem; border-radius: 8px; background: #fff; color: var(--lp-blue-dark);
  font-weight: 700; text-decoration: none;
}
.lp-skip:focus { top: 1rem; }
.lp-rule { height: 4px; background: var(--lp-crimson); }

.lp-phase { background: var(--lp-tint); border-bottom: 1px solid var(--lp-line); color: var(--lp-muted); font-size: .8125rem; line-height: 1.6; }
.lp-phase .lp-inner { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .75rem; padding-block: .35rem; }
.lp-phase a { color: var(--lp-blue-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.lp-tag {
  display: inline-flex; align-items: center; padding: 0 .65rem; border: 1px solid var(--lp-line); border-radius: 999px;
  background: #fff; color: var(--lp-blue-dark); font-size: .8125rem; font-weight: 700; line-height: 1.7; white-space: nowrap;
}

/* --- header ----------------------------------------------------------------- */
.lp-header { background: #fff; border-bottom: 1px solid var(--lp-line); }
.lp-header .lp-inner { display: flex; align-items: center; gap: .9rem; min-height: 4.25rem; padding-block: .5rem; }
.lp-brand { display: flex; align-items: center; gap: .8rem; min-width: 0; color: var(--lp-blue-dark); text-decoration: none; }
.lp-brand img { flex: none; width: 3.25rem; height: 3.25rem; }
.lp-brand__name { display: block; font-size: 1.0625rem; font-weight: 700; line-height: 1.35; }
.lp-brand__sub { display: block; color: var(--lp-muted); font-size: .8125rem; line-height: 1.5; }
.lp-nav { display: flex; align-items: center; gap: .5rem; margin-inline-start: auto; }

/* --- buttons ---------------------------------------------------------------- */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem; padding: .5rem 1.25rem;
  border: 1.5px solid transparent; border-radius: 8px; font: inherit; font-weight: 700; line-height: 1.4;
  text-decoration: none; cursor: pointer; transition: background-color .15s ease, border-color .15s ease;
}
.lp-btn--solid { background: var(--lp-blue); color: #fff; }
.lp-btn--solid:hover { background: var(--lp-blue-dark); color: #fff; }
.lp-btn--link { padding-inline: .75rem; color: var(--lp-blue-dark); }
.lp-btn--link:hover { background: var(--lp-tint); color: var(--lp-blue-dark); }
.lp-btn--light { background: #fff; color: var(--lp-blue-dark); }
.lp-btn--light:hover { background: #e6ecfa; color: var(--lp-blue-dark); }
.lp-btn--outline { border-color: rgba(255, 255, 255, .8); background: transparent; color: #fff; }
.lp-btn--outline:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* --- hero band: message (7fr) + status card (5fr) ----------------------------- */
.lp-hero { background: var(--lp-blue-dark); color: #fff; }
.lp-hero .lp-inner { padding-block: 2.5rem 3rem; }
.lp-hero__grid {
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  grid-template-areas: "head status" "lede status" "actions status";
  column-gap: 3rem; row-gap: 1rem; align-content: center;
}
.lp-hero__head { grid-area: head; }
.lp-hero__lede { grid-area: lede; max-width: 38rem; color: #e6ecfa; font-size: 1.0625rem; line-height: 1.9; }
.lp-hero__lede-line { display: block; }
.lp-hero__lede strong { color: #fff; font-weight: 700; }
.lp-hero__actions { grid-area: actions; display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.lp-eyebrow { color: #c9d6f2; font-size: .875rem; }
.lp-title {
  margin: .1rem 0 0; font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.5rem); font-weight: 700; line-height: 1.4;
  text-wrap: balance;
}

/* status card: the one card on the page */
.lp-status { grid-area: status; align-self: center; border-radius: 12px; padding: 1.25rem 1.5rem; background: #fff; color: var(--lp-ink); }
.lp-status__cap { color: var(--lp-muted); font-size: .875rem; font-weight: 400; line-height: 1.5; }
.lp-status__sem { margin-top: .1rem; color: var(--lp-blue-dark); font-size: 1.375rem; font-weight: 700; line-height: 1.5; }
.lp-status .lp-tag { margin-top: .5rem; }
.lp-tag--open   { border-color: #bfe6cf; background: #e8f7ef; color: #1f7a4c; }
.lp-tag--before { border-color: #f0d2a0; background: #fff4e5; color: #8a4f00; }
.lp-tag--closed, .lp-tag--none { background: var(--lp-tint); color: var(--lp-muted); }
.lp-dates { margin-top: .75rem; }
.lp-dates > div { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--lp-line); }
.lp-dates dt { color: var(--lp-muted); }
.lp-dates dd { font-weight: 700; }
.lp-days { margin-top: .4rem; color: var(--lp-blue); font-weight: 700; }
.lp-note { margin-top: .5rem; color: var(--lp-muted); font-size: .9375rem; }

/* --- departments directory (ruled rows, not cards) ----------------------------- */
.lp-depts { padding-block: 2.25rem 2.75rem; }
.lp-depts__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1rem; margin-bottom: 1.25rem; }
.lp-depts h2 { color: var(--lp-blue-dark); font-size: 1.25rem; font-weight: 700; line-height: 1.5; }
.lp-count { color: var(--lp-muted); font-size: .9375rem; }
.lp-facs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); column-gap: 2.5rem; row-gap: 1.25rem; align-items: start; }
.lp-fac { border-top: 2px solid var(--lp-blue-dark); }
.lp-fac > summary {
  display: flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding-block: .5rem; cursor: pointer; list-style: none;
  color: var(--lp-blue-dark); font-weight: 700;
}
.lp-fac > summary::-webkit-details-marker { display: none; }
.lp-fac > summary::after {   /* دانشکده only — not nested گروه summaries */
  content: ""; flex: none; margin-inline-start: auto; width: .45rem; height: .45rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s ease;
}
.lp-fac[open] > summary::after { transform: rotate(-135deg); }
.lp-fac__n { color: var(--lp-muted); font-size: .8125rem; font-weight: 400; }
.lp-fac ul, .lp-flat { list-style: none; }
.lp-fac li, .lp-flat li { padding: .45rem 0; border-top: 1px solid var(--lp-line); }
.lp-dept { margin: 0; }
.lp-dept__name {
  display: flex; align-items: center; gap: .4rem;
  color: var(--lp-ink); font-weight: 500; line-height: 1.5;
  cursor: pointer; list-style: none;
}
.lp-dept__name::-webkit-details-marker { display: none; }
.lp-dept__name--plain { cursor: default; }
.lp-dept__mark {
  flex: none; display: inline-block; width: .7em; color: var(--lp-blue-dark);
  font-size: .85em; font-weight: 700; line-height: 1;
  transform: rotate(0deg); transition: transform .15s ease;
}
.lp-dept__mark::before { content: "◂"; } /* collapsed (RTL start): points at the name = expandable */
.lp-dept[open] .lp-dept__mark { transform: rotate(-90deg); } /* open: points down at the course list */
.lp-dept__courses {
  list-style: none; margin: .2rem 0 0 1.1em; padding: 0; color: var(--lp-muted);
  font-size: .625rem; /* smaller than footer bar (.8125rem) */
  font-weight: 400; line-height: 1.55;
}
.lp-dept__courses li { padding: 0; border: 0; }

/* --- footer ------------------------------------------------------------------- */
.lp-footer { background: var(--lp-blue-dark); color: #dbe4f7; font-size: .9375rem; }
.lp-footer .lp-inner { padding-block: 1.5rem; }
.lp-footer__main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.lp-footer__org { display: flex; align-items: center; gap: .8rem; }
.lp-footer__org img { flex: none; width: 2.5rem; height: 2.5rem; padding: 2px; border-radius: 50%; background: #fff; }
.lp-footer__org strong { display: block; color: #fff; font-weight: 700; }
.lp-footer__org span { display: block; font-size: .8125rem; }
.lp-footer__links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; }
.lp-footer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.lp-footer__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .25rem 1.5rem; margin-top: 1.1rem; padding-top: .9rem;
  border-top: 1px solid rgba(255, 255, 255, .22); color: #c9d6f2; font-size: .8125rem;
}

/* --- keyboard focus: two-tone ring, visible on light and dark ------------------- */
.lp-skip:focus-visible, .lp-phase :focus-visible, .lp-header :focus-visible, .lp-page :focus-visible {
  outline: 3px solid var(--lp-blue-dark); outline-offset: 2px; box-shadow: 0 0 0 2px #fff;
}
.lp-hero :focus-visible, .lp-footer :focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 2px var(--lp-blue-dark); }
.lp-status :focus-visible { outline-color: var(--lp-blue-dark); box-shadow: 0 0 0 2px #fff; }

/* --- responsive ----------------------------------------------------------------- */
@media (max-width: 56rem) {
  .lp-hero .lp-inner { padding-block: 1.75rem 2rem; }
  .lp-hero__grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "lede" "status" "actions"; row-gap: 1.1rem; }
}
@media (max-width: 36rem) {   /* phones: keep H1 + status + primary button inside the first screen */
  .lp-phase__text { display: none; }                 /* tag + link stay on one line */
  .lp-hero .lp-inner { padding-block: 1rem 1.5rem; }
  .lp-hero__grid { row-gap: .75rem; }
  .lp-hero__lede { font-size: 1rem; line-height: 1.8; }
  .lp-hero__actions { gap: .6rem; margin-top: .15rem; }
  .lp-hero__actions .lp-btn { flex: 1 1 100%; }
  .lp-status { padding: 1rem 1.1rem; }
  .lp-status__sem { font-size: 1.25rem; }
  .lp-dates > div { padding: .35rem 0; }
  .lp-footer__bar { flex-direction: column; }
}

/* --- print: people print the call notice ------------------------------------------ */
@media print {
  .lp-skip, .lp-rule, .lp-phase, .lp-header, .lp-footer, .lp-hero__actions { display: none !important; }
  .lp-hero { background: #fff; color: #000; }
  .lp-eyebrow, .lp-title, .lp-hero__lede, .lp-hero__lede strong { color: #000; }
  .lp-status { border: 1px solid #888; }
}

/* ==========================================================================
   alpha.46 - attention bar on the landing page + public registration guide (/guide)
   Added at the end of this file; every selector is .lp-*, nothing else on the site is affected.
   The bar is the ONE deliberate exception to "crimson = top rule only": it uses the logo red
   (--lp-crimson, same as uok-logo-320.png) so that people notice it and click.
   ========================================================================== */

/* --- attention bar (between the hero and "گروه‌های دارای درس منتشرشده") --- */
.lp-callout { display: block; background: var(--lp-crimson); color: #fff; text-decoration: none; }
.lp-callout:hover { background: #b81f45; color: #fff; }
.lp-callout:focus-visible { outline: 3px solid #fff; outline-offset: -6px; }
.lp-callout__in { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.1rem; padding-block: .9rem; }
.lp-callout__mark {
  flex: none; display: grid; place-items: center; inline-size: 1.75rem; block-size: 1.75rem; border-radius: 50%;
  background: #fff; color: var(--lp-crimson); font-weight: 700; line-height: 1;
}
.lp-callout__text { flex: 1 1 11rem; font-size: 1.0625rem; line-height: 1.7; }
.lp-callout__text strong { font-weight: 700; }
.lp-callout__cta {
  flex: none; display: inline-flex; align-items: center; gap: .55rem; padding: .35rem 1rem;
  border: 2px solid #fff; border-radius: 999px; font-size: .9375rem; font-weight: 700; line-height: 1.6; white-space: nowrap;
}
.lp-callout:hover .lp-callout__cta { background: #fff; color: #b81f45; }
.lp-callout__chev {   /* points left (the reading direction); physical borders on purpose */
  inline-size: .5rem; block-size: .5rem; border-top: 2px solid currentColor; border-left: 2px solid currentColor;
  transform: rotate(-45deg);
}

/* --- guide page --- */
.lp-inner--narrow { max-width: 52rem; }
.lp-page .lp-gh { background: var(--lp-blue-dark); color: #fff; padding-block: 2rem 2.25rem; border-bottom: 4px solid var(--lp-crimson); }
.lp-page .lp-gh__eyebrow { font-size: .9375rem; color: #c9d6f2; }
.lp-page .lp-gh__title { margin: .25rem 0 .5rem; font-size: 1.75rem; line-height: 1.5; font-weight: 700; color: #fff; }
.lp-page .lp-gh__lede { color: #e4ebfb; }
.lp-page .lp-guide__body { padding-block: 1.75rem 3rem; }
.lp-page .lp-must {
  padding: 1rem 1.25rem; border-inline-start: 5px solid var(--lp-crimson); border-radius: 8px;
  background: #fff; border-block: 1px solid var(--lp-line); border-inline-end: 1px solid var(--lp-line); line-height: 1.9;
}
.lp-page .lp-must strong { color: var(--lp-crimson); font-weight: 700; }
.lp-page .lp-guide__dead { margin-top: 1rem; color: var(--lp-muted); }
.lp-page .lp-guide__dead strong { color: var(--lp-ink); font-weight: 700; }
.lp-page .lp-steps { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.lp-page .lp-step { display: grid; grid-template-columns: 2.5rem 1fr; gap: 1rem; padding-block: 1rem; border-bottom: 1px solid var(--lp-line); }
.lp-page .lp-step__n {
  display: grid; place-items: center; inline-size: 2.5rem; block-size: 2.5rem; border-radius: 50%;
  background: var(--lp-blue); color: #fff; font-weight: 700; font-size: 1.125rem; line-height: 1;
}
.lp-page .lp-step__b h2 { font-size: 1.0625rem; line-height: 1.6; font-weight: 700; color: var(--lp-blue-dark); }
.lp-page .lp-step__b p { margin-top: .2rem; color: var(--lp-muted); line-height: 1.9; }
.lp-page .lp-step__b strong { color: var(--lp-ink); font-weight: 700; }
.lp-page .lp-step--final { border-bottom: 0; }
.lp-page .lp-step--final .lp-step__n { background: var(--lp-crimson); }
.lp-page .lp-step--final .lp-step__b h2 { color: var(--lp-crimson); }
.lp-page .lp-guide__h { margin-top: 1.75rem; font-size: 1.125rem; font-weight: 700; color: var(--lp-blue-dark); }
.lp-page .lp-tips { margin-top: .5rem; padding-inline-start: 1.25rem; color: var(--lp-muted); line-height: 1.9; }
.lp-page .lp-tips li + li { margin-top: .35rem; }
.lp-page .lp-guide__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; margin-top: 2rem; }

@media (max-width: 36rem) {
  .lp-callout__cta { inline-size: 100%; justify-content: center; }
  .lp-page .lp-gh__title { font-size: 1.4rem; }
  .lp-page .lp-step { grid-template-columns: 2rem 1fr; gap: .75rem; }
  .lp-page .lp-step__n { inline-size: 2rem; block-size: 2rem; font-size: 1rem; }
}
@media print {
  .lp-callout { display: none !important; }
  .lp-page .lp-gh { background: #fff; color: #000; border-bottom: 1px solid #888; }
  .lp-page .lp-gh__eyebrow, .lp-page .lp-gh__title, .lp-page .lp-gh__lede { color: #000; }
  .lp-page .lp-guide__actions { display: none !important; }
}

/* ==========================================================================
   alpha.48 - expanded /guide sections (append only; existing rules untouched)
   ========================================================================== */
.lp-page .lp-jump {
  display: flex; flex-wrap: wrap; gap: .5rem .85rem; margin: 1.25rem 0 0;
  padding: .75rem 0; border-bottom: 1px solid var(--lp-line); font-size: .9375rem;
}
.lp-page .lp-jump a { color: var(--lp-blue-dark); text-decoration: none; border-bottom: 1px solid transparent; }
.lp-page .lp-jump a:hover { border-bottom-color: var(--lp-crimson); color: var(--lp-crimson); }
.lp-page .lp-order { margin-top: 1.5rem; }
.lp-page .lp-guide__intro { margin-top: .5rem; color: var(--lp-muted); line-height: 1.9; }
.lp-page .lp-guide__sub {
  margin-top: 1rem; font-size: 1rem; font-weight: 700; color: var(--lp-blue-dark);
}
.lp-page .lp-docs {
  margin: .35rem 0 0; padding-inline-start: 1.25rem; color: var(--lp-muted); line-height: 1.9;
}
.lp-page .lp-docs li + li { margin-top: .2rem; }
.lp-page .lp-docs strong { color: var(--lp-ink); font-weight: 700; }
.lp-page .lp-check { padding-inline-start: 0; list-style: none; }
.lp-page .lp-check dt {
  margin-top: .55rem; font-weight: 700; color: var(--lp-blue-dark);
}
.lp-page .lp-check dd { margin: .1rem 0 0; color: var(--lp-muted); line-height: 1.8; }
.lp-page .lp-faq { margin-top: .5rem; }
.lp-page .lp-faq dt {
  margin-top: .75rem; font-weight: 700; color: var(--lp-blue-dark); line-height: 1.7;
}
.lp-page .lp-faq dd { margin: .2rem 0 0; color: var(--lp-muted); line-height: 1.9; }
@media (max-width: 36rem) {
  .lp-page .lp-jump { gap: .4rem .65rem; font-size: .875rem; }
}

/* ==========================================================================
   alpha.49 - attention badge on the landing «مراحل ثبت‌نام را ببینید» CTA
   ========================================================================== */
.lp-page .notice-badge,
.lp-callout .notice-badge {
  display: inline-block;
  background: #FFD54A;
  color: var(--lp-blue-dark, #1d366f);
  font-weight: 700;
  font-size: .85em;
  line-height: 1.4;
  padding: .15em .7em;
  border-radius: 999px;
  margin-inline-end: .5em;
  white-space: nowrap;
  vertical-align: middle;
}
@media (max-width: 36rem) {
  .lp-callout__cta { white-space: normal; }
}
