/* ============================================================
   CAREER BOOSTER — careerbooster.institute
   Design language: the government merit notice.
   Ruled tables, roll-number monospace, seal gold on ink navy.
   ============================================================ */

/* ---------- 1. tokens ---------- */

:root {
  --ground: #f4f7fb;
  --ground-2: #eaeff7;
  --surface: #ffffff;
  --surface-2: #fbfcfe;
  --border: #d9e1ec;
  --border-soft: #e8edf5;
  --ink: #0c1b33;
  --ink-2: #1c3357;
  --muted: #5c6e8b;
  --navy: #143a66;
  --navy-deep: #0c2444;
  --on-navy: #ffffff;
  --gold: #b8801a;
  --gold-bright: #d9a02c;
  --gold-wash: #fbf3e1;
  --on-gold: #ffffff;
  --pass: #17694a;
  --pass-wash: #e6f3ed;

  --shadow-sm: 0 1px 2px rgba(12, 27, 51, 0.06);
  --shadow-md: 0 4px 16px rgba(12, 27, 51, 0.08);
  --shadow-lg: 0 18px 48px rgba(12, 27, 51, 0.14);

  --display: ui-serif, Georgia, "Iowan Old Style", "Times New Roman", serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --wrap: 1160px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --head-h: 68px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ground: #080f1c;
    --ground-2: #0c1626;
    --surface: #0f1b2e;
    --surface-2: #132238;
    --border: #22314a;
    --border-soft: #1a2740;
    --ink: #e8eef8;
    --ink-2: #c4d2e6;
    --muted: #8fa2bf;
    --navy: #6d9bd4;
    --navy-deep: #0b1728;
    --on-navy: #06101f;
    --gold: #e0a63a;
    --gold-bright: #f0bc5c;
    --gold-wash: #241c0c;
    --on-gold: #1b1204;
    --pass: #46b98a;
    --pass-wash: #0e2a20;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
  }
}

:root[data-theme="dark"] {
  --ground: #080f1c;
  --ground-2: #0c1626;
  --surface: #0f1b2e;
  --surface-2: #132238;
  --border: #22314a;
  --border-soft: #1a2740;
  --ink: #e8eef8;
  --ink-2: #c4d2e6;
  --muted: #8fa2bf;
  --navy: #6d9bd4;
  --navy-deep: #0b1728;
  --on-navy: #06101f;
  --gold: #e0a63a;
  --gold-bright: #f0bc5c;
  --gold-wash: #241c0c;
  --on-gold: #1b1204;
  --pass: #46b98a;
  --pass-wash: #0e2a20;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);
}

:root[data-theme="light"] {
  --ground: #f4f7fb;
  --ground-2: #eaeff7;
  --surface: #ffffff;
  --surface-2: #fbfcfe;
  --border: #d9e1ec;
  --border-soft: #e8edf5;
  --ink: #0c1b33;
  --ink-2: #1c3357;
  --muted: #5c6e8b;
  --navy: #143a66;
  --navy-deep: #0c2444;
  --on-navy: #ffffff;
  --gold: #b8801a;
  --gold-bright: #d9a02c;
  --gold-wash: #fbf3e1;
  --on-gold: #ffffff;
  --pass: #17694a;
  --pass-wash: #e6f3ed;
  --shadow-sm: 0 1px 2px rgba(12, 27, 51, 0.06);
  --shadow-md: 0 4px 16px rgba(12, 27, 51, 0.08);
  --shadow-lg: 0 18px 48px rgba(12, 27, 51, 0.14);
}

/* ---------- 2. reset ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--head-h) + 16px);
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

figure,
blockquote,
dl,
dd {
  margin: 0;
}

address {
  font-style: normal;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
  border-radius: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Shown only on demo deploys (DEMO_BANNER=1 at build). */
.demo-strip {
  background: var(--navy-deep);
  color: #c9d9ef;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-align: center;
  padding: 7px 16px;
  line-height: 1.5;
}
.demo-strip strong {
  color: var(--gold-bright);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 200;
  background: var(--navy-deep);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--r-md);
  text-decoration: none;
  font-size: 14px;
  transition: top 0.18s;
}
.skip:focus {
  top: 12px;
}

/* ---------- 3. typography ---------- */

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(31px, 4.6vw, 50px);
}

.head-block h2,
.sub-h {
  font-size: clamp(25px, 3.2vw, 34px);
}

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.eyebrow::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.center-eyebrow {
  justify-content: center;
}
.center-eyebrow::after {
  display: none;
}

.lede {
  font-size: 17px;
  color: var(--muted);
  max-width: 62ch;
  margin: 14px 0 0;
}

.prose {
  font-size: 16.5px;
  line-height: 1.75;
  max-width: 68ch;
  margin: 0 0 18px;
  color: var(--ink-2);
}
.prose-lead {
  font-size: 18px;
  color: var(--ink);
}

.note {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 16px 0 0;
}

.sub-h {
  margin: 42px 0 20px;
}
.sub-h-flush {
  margin-top: 0;
}

/* ---------- 4. layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 20px;
}
.wrap-narrow {
  max-width: 760px;
}

.band {
  padding: 72px 0;
}
.band-alt {
  background: var(--ground-2);
}
.centered-band {
  padding: 110px 0;
}
.center {
  text-align: center;
}

.head-block {
  margin-bottom: 36px;
}

.after-grid {
  margin: 26px 0 0;
}

.grid {
  display: grid;
  gap: 18px;
}
.g2 {
  grid-template-columns: repeat(2, 1fr);
}
.g3 {
  grid-template-columns: repeat(3, 1fr);
}
.g4 {
  grid-template-columns: repeat(4, 1fr);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.split-top {
  align-items: start;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.stack-lg {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ---------- 5. header ---------- */

.site-head {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.head-in {
  display: flex;
  align-items: center;
  gap: 20px;
  height: var(--head-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.brand-sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.nav > a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-2);
  padding: 8px 11px;
  border-radius: var(--r-md);
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.nav > a:hover {
  background: var(--ground-2);
}
.nav > a.on {
  color: var(--navy);
  font-weight: 600;
  background: var(--ground-2);
}
.nav-cta {
  display: none;
}

.head-cta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.burger {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  width: 42px;
  height: 38px;
  cursor: pointer;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.burger span {
  display: block;
  width: 17px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.burger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.burger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.burger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---------- 6. buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--body);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.btn:active {
  transform: translateY(1px);
}
.btn .ico-svg {
  flex-shrink: 0;
}

.btn-primary {
  background: var(--navy);
  color: var(--on-navy);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  box-shadow: var(--shadow-md);
}

.btn-gold {
  background: var(--gold);
  color: var(--on-gold);
}
.btn-gold:hover {
  background: var(--gold-bright);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--ink);
}
.btn-ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-outline {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.btn-outline:hover {
  border-color: var(--gold-bright);
  color: var(--gold-bright);
}

.btn-sm {
  padding: 7px 13px;
  font-size: 13px;
}
.btn-lg {
  padding: 13px 24px;
  font-size: 15px;
}
.btn-block {
  width: 100%;
}

/* ---------- 7. hero ---------- */

.hero {
  background: radial-gradient(
      1000px 460px at 82% -10%,
      color-mix(in srgb, var(--gold) 12%, transparent),
      transparent 65%
    ),
    linear-gradient(180deg, var(--ground-2), var(--ground));
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
  padding: 76px 0 84px;
}

.hero h1 {
  font-size: clamp(33px, 5.1vw, 55px);
  line-height: 1.06;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
  border-bottom: 3px solid color-mix(in srgb, var(--gold) 35%, transparent);
}

.estab {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 6px 13px;
  border-radius: 99px;
  margin: 0 0 22px;
}
.estab .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pass);
}

.hero-cta {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin: 22px 0 0;
}
.hero-trust .ico-svg {
  color: var(--gold);
  fill: var(--gold);
}

/* notice card */

.notice {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.notice-top {
  background: var(--navy-deep);
  color: #dce7f5;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.notice-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.notice-seal {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--gold-bright);
  border: 1px solid color-mix(in srgb, var(--gold-bright) 45%, transparent);
  padding: 3px 8px;
  border-radius: 3px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nrow {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border-soft);
}
.nrow:last-child {
  border-bottom: 0;
}
.nrow-rank {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.nrow-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.nrow-name {
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.3;
}
.nrow-exam {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: 2px;
}
.nrow-year {
  font-family: var(--mono);
  font-size: 10.5px;
  background: var(--pass-wash);
  color: var(--pass);
  padding: 3px 8px;
  border-radius: 3px;
  font-weight: 600;
}
.notice-foot {
  padding: 12px 18px;
  background: var(--surface-2);
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.notice-foot a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.notice-foot a:hover {
  text-decoration: underline;
}

/* ---------- 8. stats ---------- */

.stats-band {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.stat {
  padding: 26px 22px 26px 0;
  border-right: 1px solid var(--border-soft);
  display: flex;
  flex-direction: column-reverse;
}
.stat:last-child {
  border-right: 0;
}
.stat-v {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  margin: 0;
}
.stat-k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 9px;
}

/* ---------- 9. cards ---------- */

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.18s, border-color 0.18s, transform 0.18s;
}

.card-hit {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  z-index: 1;
}
.course-card:hover,
.mat-card:hover {
  box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--navy) 40%, var(--border));
  transform: translateY(-2px);
}
.course-card:focus-within {
  border-color: var(--navy);
}

.course-code {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  margin: 0;
}
.course-card h3,
.mat-card h3 {
  font-size: 20px;
  margin: 10px 0 8px;
}
.course-exams {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--ink-2);
  margin: 0 0 10px;
  line-height: 1.5;
}
.course-desc {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.05em;
  background: var(--ground-2);
  border: 1px solid var(--border-soft);
  color: var(--ink-2);
  padding: 3px 8px;
  border-radius: 3px;
}

.meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
  position: relative;
  z-index: 2;
}
.meta-row .fee {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
}
.meta-row .dur {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
}

/* features */

.feat {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.feat-ico {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: var(--gold-wash);
  color: var(--gold);
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
}
.feat h3 {
  font-size: 16px;
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
}
.feat p {
  margin: 5px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* faculty */

.fac-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.fac-photo {
  width: 96px;
  flex-shrink: 0;
  border-radius: var(--r-md);
}
.fac-card h3 {
  font-size: 17.5px;
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
}
.fac-role {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 5px 0 0;
}
.fac-bio {
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}

/* quotes */

.quote {
  display: flex;
  flex-direction: column;
  gap: 18px;
  justify-content: space-between;
}
.quote blockquote p {
  font-family: var(--display);
  font-size: 16.5px;
  line-height: 1.55;
  margin: 0;
}
.quote blockquote p::before {
  content: "\201C";
}
.quote blockquote p::after {
  content: "\201D";
}
.quote figcaption {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.q-name {
  font-size: 14px;
  font-weight: 700;
}
.q-detail {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.05em;
}

/* mini stats */

.mini-stat {
  text-align: center;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mini-v {
  font-family: var(--display);
  font-size: 27px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.mini-k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.result-stats {
  margin-bottom: 34px;
}

/* material */

.mat-ico {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--r-md);
  background: var(--gold-wash);
  color: var(--gold);
  border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
  margin-bottom: 16px;
}

/* ---------- 10. photos ---------- */

.photo {
  position: relative;
  aspect-ratio: var(--ratio, 4 / 3);
  border-radius: var(--r-md);
  overflow: hidden;
  background: linear-gradient(135deg, color-mix(in srgb, var(--navy) 10%, var(--surface)), var(--surface-2));
  border: 1px solid var(--border);
}
.photo img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.25s;
}
.photo-slot {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 0 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0;
}
.photo.is-empty {
  border-style: dashed;
}
.photo.is-empty img {
  opacity: 0;
}
.photo.is-empty .photo-slot {
  opacity: 1;
}

/* ---------- 11. tables ---------- */

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 620px;
}
th {
  text-align: left;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  padding: 14px 18px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
tbody th {
  background: transparent;
  border-bottom: 1px solid var(--border-soft);
  font-family: var(--body);
  font-size: 14.5px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--ink);
  font-weight: 700;
  white-space: normal;
}
td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--border-soft);
  font-size: 14.5px;
  vertical-align: middle;
}
tbody tr:last-child td,
tbody tr:last-child th {
  border-bottom: 0;
}
tbody tr:hover {
  background: var(--surface-2);
}
.cell-num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.cell-muted {
  color: var(--muted);
}
.cell-name {
  font-weight: 700;
}
.row-link {
  text-decoration: none;
  color: var(--navy);
}
.row-link:hover {
  text-decoration: underline;
}
.row-sub {
  display: block;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 3px;
}

.pill {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 3px;
  background: var(--pass-wash);
  color: var(--pass);
}
.pill-gold {
  background: var(--gold-wash);
  color: var(--gold);
}

/* ---------- 12. page hero / crumbs ---------- */

.page-hero {
  background: var(--ground-2);
  border-bottom: 1px solid var(--border);
  padding: 54px 0;
}
.page-hero h1 {
  max-width: 20ch;
}

.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.crumbs a {
  color: var(--muted);
  text-decoration: none;
}
.crumbs a:hover {
  color: var(--navy);
}
.crumbs .ico-svg {
  opacity: 0.5;
}

.course-hero h1 {
  max-width: 22ch;
}

/* ---------- 13. course detail ---------- */

.course-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

.syllabus {
  display: grid;
  gap: 14px;
}
.syl-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.syl-ico {
  color: var(--pass);
  flex-shrink: 0;
  margin-top: 2px;
}
.syl-item h3 {
  font-size: 15.5px;
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
}
.syl-item p {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.check-list {
  display: grid;
  gap: 11px;
}
.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 14.5px;
}
.check-list .ico-svg {
  color: var(--pass);
  flex-shrink: 0;
  margin-top: 4px;
}

.course-side {
  position: sticky;
  top: calc(var(--head-h) + 20px);
}
.side-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.side-label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.side-fee {
  font-family: var(--display);
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.side-inst {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  margin: -6px 0 0;
}
.side-facts {
  display: grid;
  gap: 12px;
  padding: 16px 0;
  margin: 4px 0;
  border-top: 1px dashed var(--border);
  border-bottom: 1px dashed var(--border);
}
.side-facts > div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: start;
}
.side-facts dt {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 2px;
}
.side-facts dd {
  font-size: 14px;
}

/* ---------- 14. faq ---------- */

.faq {
  display: grid;
  gap: 10px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary .ico-svg {
  flex-shrink: 0;
  color: var(--gold);
  transform: rotate(90deg);
  transition: transform 0.2s;
}
.faq-item[open] summary .ico-svg {
  transform: rotate(-90deg);
}
.faq-a {
  padding: 0 18px 18px;
}
.faq-a p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  max-width: 68ch;
}

/* ---------- 15. steps / timeline ---------- */

.steps {
  display: grid;
  gap: 14px;
}
.step {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 18px;
}
.step-n {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  padding-top: 2px;
  flex-shrink: 0;
}
.step h3 {
  font-size: 16px;
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
}
.step p {
  margin: 5px 0 0;
  font-size: 14px;
  color: var(--muted);
}

.note-card {
  margin-top: 18px;
  background: var(--gold-wash);
  border-color: color-mix(in srgb, var(--gold) 30%, transparent);
}
.note-card h3 {
  font-size: 17px;
  font-family: var(--body);
  font-weight: 700;
  letter-spacing: 0;
  margin: 0;
}
.note-card p {
  margin: 8px 0 0;
  font-size: 14.5px;
  color: var(--ink-2);
}

.timeline {
  display: grid;
  gap: 0;
  border-left: 2px solid var(--border);
  padding-left: 22px;
}
.tl-item {
  position: relative;
  padding: 0 0 22px;
}
.tl-item::before {
  content: "";
  position: absolute;
  left: -28px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  border: 2px solid var(--ground);
}
.tl-year {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.08em;
}
.tl-item p {
  margin: 4px 0 0;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- 16. cta band ---------- */

.cta-band {
  background: var(--navy-deep);
  color: #e4edf8;
  border-radius: var(--r-lg);
  padding: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  flex-wrap: wrap;
  position: relative;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px 260px at 90% 0%,
    color-mix(in srgb, var(--gold-bright) 20%, transparent),
    transparent 70%
  );
  pointer-events: none;
}
.cta-copy,
.cta-acts {
  position: relative;
}
.cta-band h2 {
  color: #fff;
  font-size: 27px;
}
.cta-band p {
  color: #a9bfdb;
  margin: 10px 0 0;
  font-size: 15px;
  max-width: 46ch;
}
.cta-acts {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- 17. contact ---------- */

.info-list {
  display: flex;
  flex-direction: column;
}
.info-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-soft);
}
.info-list li:first-child {
  padding-top: 0;
}
.info-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.info-k {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  width: 92px;
  flex-shrink: 0;
  padding-top: 3px;
}
.info-v {
  font-size: 15px;
  line-height: 1.55;
}
.info-v a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
.info-v a:hover {
  text-decoration: underline;
}
.ph-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.mapbox {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: repeating-linear-gradient(0deg, transparent 0 27px, var(--border-soft) 27px 28px),
    repeating-linear-gradient(90deg, transparent 0 27px, var(--border-soft) 27px 28px), var(--surface-2);
  min-height: 300px;
  display: grid;
  place-items: center;
  padding: 24px;
}
.map-pin {
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  border-radius: var(--r-md);
  padding: 18px;
  text-align: center;
  max-width: 270px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.map-ico {
  color: var(--gold);
}
.map-t {
  font-weight: 700;
  font-size: 14.5px;
  margin: 0;
}
.map-s {
  font-size: 12.5px;
  color: var(--muted);
  margin: 0 0 8px;
}

/* ---------- 18. forms ---------- */

.form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}
.form-grid .full {
  grid-column: 1 / -1;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: 14.5px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}
.field textarea {
  resize: vertical;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 15%, transparent);
}
.field input:invalid:not(:placeholder-shown) {
  border-color: #c0392b;
}
.form-intro {
  font-size: 14px;
  color: var(--muted);
  margin: 6px 0 20px;
}
.form-note {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--muted);
  text-align: center;
  margin: 0;
  letter-spacing: 0.05em;
}
.form-note a {
  color: var(--navy);
  font-weight: 600;
}
.form-card {
  padding: 28px;
}

/* ---------- 19. student portal ---------- */

.student-band {
  padding-top: 56px;
}
.student-h {
  font-size: clamp(28px, 3.8vw, 40px);
  max-width: 18ch;
}
.portal-grid {
  margin-top: 30px;
}
.login-card {
  position: sticky;
  top: calc(var(--head-h) + 20px);
  padding: 28px;
}
.login-note {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
}
.login-note p:last-child {
  font-size: 13.5px;
  color: var(--muted);
  margin: 8px 0 0;
}

/* ---------- 20. footer ---------- */

.site-foot {
  background: var(--navy-deep);
  color: #a9bfdb;
  padding: 54px 0 26px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
}
.foot-brand .brand-name {
  color: #fff;
}
.foot-brand .brand-sub {
  color: #7e97b8;
}
.foot-brand p {
  font-size: 14px;
  margin: 14px 0 0;
  max-width: 34ch;
}
.foot-rating {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  color: #c3d5ea;
  margin-top: 14px;
}
.foot-rating .ico-svg {
  color: var(--gold-bright);
  fill: var(--gold-bright);
}
.foot-h {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-bright);
  margin: 0 0 14px;
  font-weight: 600;
}
.foot-links {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.site-foot a {
  color: #c3d5ea;
  text-decoration: none;
  font-size: 14px;
}
.site-foot a:hover {
  color: #fff;
  text-decoration: underline;
}
.foot-address {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 14px;
}
.foot-bottom {
  margin-top: 38px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #7e97b8;
}

/* ---------- 21. floaters, modal, toast ---------- */

.floaters {
  position: fixed;
  right: 18px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 70;
}
.fab {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-lg);
  border: none;
  cursor: pointer;
  text-decoration: none;
  color: #fff;
  transition: transform 0.15s;
}
.fab:hover {
  transform: scale(1.06);
}
.fab-wa {
  background: #22a64c;
}
.fab-call {
  background: var(--navy);
  color: var(--on-navy);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(8, 16, 30, 0.58);
  backdrop-filter: blur(4px);
}
.modal[hidden] {
  display: none;
}
.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 460px;
  max-height: 90vh;
  overflow-y: auto;
  animation: pop 0.25s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.modal-head {
  padding: 22px 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.modal-head h2 {
  font-size: 21px;
}
.modal-head p {
  margin: 6px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.modal-body {
  padding: 20px 22px 24px;
}
.modal-x {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  width: 30px;
  height: 30px;
  cursor: pointer;
  color: var(--muted);
  flex-shrink: 0;
  line-height: 1;
  font-size: 17px;
}
.modal-x:hover {
  color: var(--ink);
  border-color: var(--ink);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 26px;
  transform: translate(-50%, 24px);
  background: var(--navy-deep);
  color: #e6effa;
  padding: 13px 20px;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  z-index: 120;
  opacity: 0;
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.3, 1), opacity 0.22s, visibility 0.22s;
  max-width: calc(100vw - 40px);
  text-align: center;
}
.toast.on {
  transform: translate(-50%, 0);
  opacity: 1;
  visibility: visible;
}

/* ---------- 22. misc ---------- */

.big-ico {
  display: inline-grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--pass-wash);
  color: var(--pass);
  margin-bottom: 26px;
}
.center-lede {
  margin-inline: auto;
}
.center-cta {
  justify-content: center;
}

/* ============================================================
   22b. THE STUDY DESK — isometric SVG

   Every face is a plain polygon with hand-plotted vertices, coloured
   through CSS custom properties so both themes work from one drawing.
   No library, no images, no extra request.
   ============================================================ */

:root {
  --iso-shade: rgba(12, 27, 51, 0.09);
  --iso-page: #f3ead6;
  --ink-top: #23558c;
  --ink-left: #17406c;
  --ink-right: #102f52;
  --gold-top: #dfa22e;
  --gold-left: #b8801a;
  --gold-right: #8d6113;
  --green-top: #2f7a5e;
  --green-left: #226049;
  --green-right: #194b39;
  --steel-top: #3c7fbb;
  --steel-left: #2a5f92;
  --steel-right: #1e4670;
  --plate-top: #e6ecf5;
  --plate-left: #c6d2e2;
  --plate-right: #b2c1d5;
  --clock-case-c: #14395f;
  --clock-back-c: #0d2540;
  --clock-face-c: #ffffff;
}

@media (prefers-color-scheme: dark) {
  :root {
    --iso-shade: rgba(0, 0, 0, 0.34);
    --iso-page: #cdbf9f;
    --plate-top: #24344c;
    --plate-left: #1a273b;
    --plate-right: #131e2f;
    --clock-face-c: #e9eef7;
  }
}
:root[data-theme="dark"] {
  --iso-shade: rgba(0, 0, 0, 0.34);
  --iso-page: #cdbf9f;
  --plate-top: #24344c;
  --plate-left: #1a273b;
  --plate-right: #131e2f;
  --clock-face-c: #e9eef7;
}
:root[data-theme="light"] {
  --iso-shade: rgba(12, 27, 51, 0.09);
  --iso-page: #f3ead6;
  --plate-top: #e6ecf5;
  --plate-left: #c6d2e2;
  --plate-right: #b2c1d5;
  --clock-face-c: #ffffff;
}

.iso-svg {
  width: 100%;
  max-width: 210px;
  height: auto;
  overflow: visible;
}

.shade {
  fill: var(--iso-shade);
}

/* --- box faces --- */

.f-top.ink { fill: var(--ink-top); }
.f-left.ink { fill: var(--ink-left); }
.f-right.ink { fill: var(--ink-right); }

.f-top.gold { fill: var(--gold-top); }
.f-left.gold { fill: var(--gold-left); }
.f-right.gold { fill: var(--gold-right); }

.f-top.green { fill: var(--green-top); }
.f-left.green { fill: var(--green-left); }
.f-right.green { fill: var(--green-right); }

.f-top.steel { fill: var(--steel-top); }
.f-left.steel { fill: var(--steel-left); }
.f-right.steel { fill: var(--steel-right); }

.f-top.plate { fill: var(--plate-top); }
.f-left.plate { fill: var(--plate-left); }
.f-right.plate { fill: var(--plate-right); }

.pages {
  fill: none;
  stroke: var(--iso-page);
  stroke-width: 2.2;
  stroke-linejoin: round;
  opacity: 0.85;
}

/* --- clock --- */

.clock-back { fill: var(--clock-back-c); }
.clock-case { fill: var(--clock-case-c); }
.clock-face { fill: var(--clock-face-c); }
.clock-stand { fill: var(--clock-back-c); }
.clock-pin { fill: var(--clock-case-c); }

.tick {
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linecap: round;
  opacity: 0.6;
}
.tick-long {
  stroke: var(--ink);
  stroke-width: 2.6;
  opacity: 0.85;
}
.hand-hour {
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
}
.hand-min {
  stroke: var(--gold);
  stroke-width: 3.4;
  stroke-linecap: round;
}

/* --- the bars rise once, gently --- */

.bar {
  animation: barRise 0.55s cubic-bezier(0.2, 0.8, 0.3, 1) both;
  animation-delay: calc(var(--i) * 90ms);
}
@keyframes barRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.band-desk {
  background: linear-gradient(180deg, var(--ground-2), var(--ground));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.desk {
  display: grid;
  /* minmax(0,1fr), not 1fr: a grid item's automatic minimum size is its
     content, and the scene inside is a fixed 150px. Without this the
     row refuses to shrink and pushes a 375px phone sideways. */
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 6px;
}
.desk-item {
  margin: 0;
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
/* --- copy under the objects --- */

.desk-copy {
  margin-top: 4px;
}
.desk-copy h3 {
  font-size: 18px;
  margin: 0 0 8px;
}
.desk-copy p {
  margin: 0;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 860px) {
  .desk {
    gap: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bar {
    animation: none;
  }
}

/* ============================================================
   23. AUTHENTICATION SCREENS
   Sign-in drops the marketing chrome entirely: a slim bar, one
   card, and nothing else competing for attention.
   ============================================================ */

body.is-auth {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--ground-2);
}

.auth-head {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.auth-head-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}
.auth-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.auth-back .ico-svg {
  transform: rotate(180deg);
}
.auth-back:hover {
  color: var(--navy);
}

.auth-shell {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 48px 0;
}
.auth-wrap {
  width: 100%;
}

.auth-grid {
  display: grid;
  grid-template-columns: 1fr 440px;
  gap: 56px;
  align-items: center;
  max-width: 1000px;
  margin-inline: auto;
}

/* --- left panel --- */

.auth-aside .eyebrow {
  justify-content: flex-start;
}
.auth-aside .eyebrow::after {
  display: none;
}
.auth-aside-h {
  font-size: clamp(26px, 3.2vw, 34px);
  max-width: 16ch;
  margin-bottom: 28px;
}
.auth-aside-lede {
  font-size: 15px;
  color: var(--muted);
  max-width: 42ch;
  margin: 0 0 26px;
}

.auth-features {
  display: grid;
  gap: 16px;
}
.auth-features li {
  display: flex;
  gap: 13px;
  align-items: flex-start;
}
.auth-features div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.auth-features strong {
  font-size: 14.5px;
}
.auth-features span:last-child {
  font-size: 13.5px;
  color: var(--muted);
}
.auth-feat-ico {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: var(--r-md);
  background: var(--gold-wash);
  color: var(--gold);
  display: grid;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--gold) 22%, transparent);
  margin-top: 1px;
}
.auth-aside-foot {
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.auth-aside-foot a {
  color: var(--navy);
  font-weight: 600;
}

/* staff variant */

.auth-grid-staff {
  max-width: 940px;
}
.staff-mark {
  display: inline-block;
  margin-bottom: 22px;
}
.role-list {
  display: grid;
  gap: 2px;
  border-top: 1px solid var(--border);
}
.role-list li {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 15px 0;
  border-bottom: 1px solid var(--border);
}
.role-name {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
}
.role-detail {
  font-size: 14px;
  color: var(--muted);
}

/* --- card --- */

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px;
}
.auth-card-head {
  margin-bottom: 22px;
}
.auth-card-head h2 {
  font-size: 24px;
}
.auth-card-head p {
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--muted);
}
.auth-view[hidden] {
  display: none;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 0;
  padding: 0;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.back-btn .ico-svg {
  transform: rotate(180deg);
}
.back-btn:hover {
  color: var(--navy);
}

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.link-btn:hover {
  color: var(--gold);
}
.link-btn:disabled {
  color: var(--muted);
  cursor: default;
  text-decoration: none;
}

/* --- fields --- */

.tel-wrap {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  overflow: hidden;
}
.tel-wrap:focus-within {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 15%, transparent);
}
.tel-cc {
  display: grid;
  place-items: center;
  padding: 0 12px;
  background: var(--ground-2);
  border-right: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted);
}
.tel-wrap input {
  border: 0;
  border-radius: 0;
  font-family: var(--mono);
  letter-spacing: 0.06em;
}
.tel-wrap input:focus {
  box-shadow: none;
}

.pw-wrap {
  position: relative;
  display: flex;
}
.pw-wrap input {
  padding-right: 68px;
}
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 8px;
  border-radius: var(--r-sm);
}
.pw-toggle:hover {
  color: var(--navy);
  background: var(--ground-2);
}

.caps-hint {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--gold);
  margin: 0;
}
.caps-hint[hidden] {
  display: none;
}

.otp {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.otp input {
  text-align: center;
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  padding: 12px 0;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  width: 100%;
}
.otp input:focus {
  border-color: var(--navy);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--navy) 15%, transparent);
}

.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  cursor: pointer;
}
.checkbox input {
  width: 15px;
  height: 15px;
  accent-color: var(--navy);
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
}

.auth-alt {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px dashed var(--border);
  font-size: 13.5px;
  color: var(--muted);
  text-align: center;
}
.auth-alt a {
  color: var(--navy);
  font-weight: 600;
}
.auth-secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.auth-secure .ico-svg {
  color: var(--pass);
}

.auth-help p {
  font-size: 14.5px;
  color: var(--muted);
  margin: 0 0 14px;
}
.auth-help a {
  color: var(--navy);
  font-weight: 600;
}

/* --- notices and errors --- */

.auth-notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: var(--gold-wash);
  border: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  border-radius: var(--r-md);
  padding: 14px 16px;
  margin-bottom: 20px;
}
.auth-notice[hidden] {
  display: none;
}
.auth-notice-ico {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
}
.auth-notice-t {
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 3px;
}
.auth-notice p:last-child {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-2);
}

.auth-alert {
  background: color-mix(in srgb, #c0392b 12%, var(--surface));
  border: 1px solid color-mix(in srgb, #c0392b 40%, transparent);
  color: #a5301f;
  border-radius: var(--r-md);
  padding: 11px 14px;
  font-size: 13.5px;
  margin: 0 0 18px;
}
.auth-alert[hidden] {
  display: none;
}
@media (prefers-color-scheme: dark) {
  .auth-alert {
    color: #ff9b8a;
  }
}
:root[data-theme="dark"] .auth-alert {
  color: #ff9b8a;
}
:root[data-theme="light"] .auth-alert {
  color: #a5301f;
}

/* --- auth footer --- */

.auth-foot {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 18px 0;
}
.auth-foot-in {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.auth-foot a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 900px) {
  .auth-grid {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 480px;
  }
  .auth-aside {
    text-align: left;
  }
  .auth-aside-h {
    max-width: none;
    margin-bottom: 22px;
  }
  .auth-features {
    gap: 13px;
  }
}

@media (max-width: 620px) {
  .auth-shell {
    padding: 28px 0;
  }
  .auth-card {
    padding: 24px 20px;
  }
  .otp {
    gap: 6px;
  }
  .otp input {
    font-size: 17px;
    padding: 10px 0;
  }
  .auth-foot-in {
    justify-content: center;
    text-align: center;
  }
}

/* ---------- 24. responsive ---------- */

@media (max-width: 1040px) {
  .course-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .course-side {
    position: static;
  }
  .side-card {
    max-width: 420px;
  }
}

@media (max-width: 940px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 52px 0 60px;
  }
  .g3,
  .g4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat {
    padding-right: 16px;
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--border-soft);
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
  .login-card {
    position: static;
  }

  .burger {
    display: flex;
  }
  .head-cta {
    display: none;
  }
  .nav {
    display: none;
    position: absolute;
    top: var(--head-h);
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 20px 18px;
    gap: 2px;
    box-shadow: var(--shadow-md);
    max-height: calc(100vh - var(--head-h));
    overflow-y: auto;
  }
  .nav.open {
    display: flex;
  }
  .nav > a {
    padding: 12px 10px;
    font-size: 15px;
    border-bottom: 1px solid var(--border-soft);
    border-radius: 0;
  }
  .nav-cta {
    display: flex;
    gap: 10px;
    margin-top: 14px;
  }
  .nav-cta .btn {
    flex: 1;
  }
}

@media (max-width: 620px) {
  .band {
    padding: 52px 0;
  }
  .centered-band {
    padding: 72px 0;
  }
  .page-hero {
    padding: 40px 0;
  }
  .g2,
  .g3,
  .g4,
  .form-grid {
    grid-template-columns: 1fr;
  }
  .cta-band {
    padding: 30px 24px;
  }
  .cta-band h2 {
    font-size: 23px;
  }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .info-list li {
    flex-direction: column;
    gap: 4px;
  }
  .info-k {
    width: auto;
  }
  .fac-card {
    flex-direction: column;
    gap: 14px;
  }
  .fac-photo {
    width: 84px;
  }
  .side-facts > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  .hero-cta .btn,
  .cta-acts .btn {
    flex: 1 1 auto;
  }
  .floaters {
    right: 14px;
    bottom: 14px;
  }
  .fab {
    width: 46px;
    height: 46px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

@media print {
  .site-head,
  .floaters,
  .cta-band,
  .modal,
  .toast,
  .burger {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
}
