/* ============================================================
   South Alabama Tutors, southalabamatutors.com
   Design system "The Semester Chain" (design gate draft)
   School theme colors: USA navy #0A2A5C + crimson #B31942 family
   (from southalabamapreceptor.com tokens), executed NAVY-LED on a
   cool light base; red is the secondary accent. Instrument Sans
   display weights over a Charter body-serif stack; IBM Plex Mono
   for literal course codes only.
   Independent tutoring service. Not affiliated with the
   University of South Alabama.
   ============================================================ */

:root {
  /* USA school color family (source: southalabamapreceptor.com :root) */
  --navy: #0A2A5C;
  --navy-2: #123568;
  --navy-d: #071E44;
  --navy-f: #05173A;            /* footer, deepest */
  --crimson: #B31942;
  --crimson-d: #8E1234;
  --crimson-tint: rgba(179, 25, 66, 0.07);
  --crimson-line: rgba(179, 25, 66, 0.30);
  --coral: #F4738D;             /* crimson lightened for navy surfaces */
  --gold: #C99A2E;              /* stars only */

  /* cool light base (deliberately cooler than the preceptor ivory) */
  --shell: #F5F7FA;
  --shell-2: #E9EEF5;
  --card: #FFFFFF;
  --ink: #16233C;
  --muted: #51607A;
  --soft: #8493AC;
  --line: #D9E1EC;
  --line-2: #C3CEDE;

  /* on navy */
  --t-on-navy: #EDF2F9;
  --m-on-navy: #A9B7CF;
  --f-on-navy: #7488A9;
  --line-navy: #23437E;

  /* type: sans display over serif body (inverts the preceptor pairing) */
  --f-display: "Instrument Sans", "Segoe UI", Arial, sans-serif;
  --f-body: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --f-mono: "IBM Plex Mono", Consolas, monospace;

  --r: 13px;
  --r-b: 9px;
  --sh-1: 0 8px 26px rgba(10, 42, 92, 0.10);
  --sh-2: 0 18px 54px rgba(7, 30, 68, 0.20);
  --maxw: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--shell);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.66;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* sleek themed scrollbars, sitewide */
html { scrollbar-width: thin; scrollbar-color: #B9C5D8 var(--shell); }
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: var(--shell); }
::-webkit-scrollbar-thumb { background: #BCC8DA; border-radius: 999px; border: 2px solid var(--shell); }
::-webkit-scrollbar-thumb:hover { background: #93A5C0; }

::selection { background: var(--navy); color: #FFFFFF; }
:focus-visible { outline: 2px solid var(--crimson); outline-offset: 2px; border-radius: 4px; }

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

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 18px; } }

/* ---------- typography ---------- */
h1, h2, h3 { font-family: var(--f-display); line-height: 1.1; margin: 0 0 14px; }
h1 { font-size: clamp(2.05rem, 4.5vw, 3.3rem); font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.13rem; font-weight: 600; line-height: 1.3; }
p { margin: 0 0 14px; }

/* the serif italic slot, this site's keyword treatment (no highlighter swipes) */
.ital { font-family: var(--f-body); font-style: italic; font-weight: 400; color: var(--crimson-d); }
.on-navy .ital { color: var(--coral); }

.eyebrow {
  font-family: var(--f-display);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--crimson-d);
  display: inline-block;
  margin-bottom: 12px;
}
.on-navy .eyebrow { color: var(--coral); }

.lead { font-size: 1.11rem; color: var(--muted); max-width: 62ch; }
.on-navy .lead { color: var(--m-on-navy); }

/* mono course-code chip, literal course codes only */
.code-chip {
  font-family: var(--f-mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy);
  background: rgba(10, 42, 92, 0.07);
  border: 1px solid rgba(10, 42, 92, 0.24);
  border-radius: 7px;
  padding: 3px 9px;
  display: inline-block;
  white-space: nowrap;
}
.on-navy .code-chip { color: #C8D6EE; background: rgba(237, 242, 249, 0.08); border-color: rgba(237, 242, 249, 0.26); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-family: var(--f-display); font-weight: 600; font-size: 0.99rem;
  border-radius: var(--r-b); padding: 13px 24px; cursor: pointer;
  text-decoration: none; border: 1.5px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  min-height: 46px;
}
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--crimson); color: #FFFFFF; }
.btn-red:hover { background: var(--crimson-d); }
.btn-navy { background: var(--navy); color: #FFFFFF; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.on-navy .btn-ghost { color: var(--t-on-navy); border-color: #33518C; }
.on-navy .btn-ghost:hover { border-color: var(--coral); color: var(--coral); }
.btn-shell { background: #FFFFFF; color: var(--navy); }
.btn-shell:hover { background: var(--shell-2); }

/* ============================================================
   HEADER (plain sticky: left logo, right links, no stripe)
   ============================================================ */
.site-head {
  position: sticky; top: 0; z-index: 60;
  background: rgba(245, 247, 250, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap { display: flex; align-items: center; gap: 24px; height: 72px; }

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand > span { line-height: 1.12; }
.brand-tile {
  width: 40px; height: 40px; border-radius: 10px; background: var(--navy);
  display: grid; place-items: center; font-family: var(--f-display); font-weight: 700;
  font-size: 1.05rem; color: #FFFFFF;
}
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.06rem; color: var(--ink); line-height: 1.08; }
.brand-sub { font-family: var(--f-body); font-style: italic; font-size: 0.74rem; color: var(--soft); }

.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-links a {
  font-family: var(--f-display); font-size: 0.94rem; font-weight: 600;
  text-decoration: none; color: var(--muted);
  padding: 13px 12px; border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--navy); background: rgba(10, 42, 92, 0.06); }

.head-cta { margin-left: 8px; padding: 11px 20px; min-height: 44px; }
.nav-burger {
  display: none; background: none; border: 1.5px solid var(--line-2); border-radius: 9px;
  width: 44px; height: 44px; cursor: pointer; color: var(--ink); font-size: 1.15rem;
}
@media (max-width: 980px) {
  .nav-links, .head-cta { display: none; }
  .nav-burger { display: grid; place-items: center; }
  .site-head .wrap { height: 64px; }
  .site-head.menu-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--shell); border-bottom: 1px solid var(--line);
    padding: 12px 18px 18px; gap: 2px;
  }
  .site-head.menu-open .nav-links a { padding: 14px 10px; }
}

/* ============================================================
   HERO (light, mini chain powering the headline)
   ============================================================ */
.hero { padding: 78px 0 62px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(680px 400px at 88% 0%, rgba(10, 42, 92, 0.06), transparent 62%),
    radial-gradient(500px 360px at 0% 100%, rgba(179, 25, 66, 0.045), transparent 60%);
  pointer-events: none;
}
.hero .wrap { position: relative; max-width: 900px; }
@media (max-width: 640px) { .hero { padding: 50px 0 48px; } }

.hero h1 { max-width: 17ch; margin-bottom: 18px; }
.hero-sub { font-size: 1.13rem; color: var(--muted); max-width: 58ch; margin-bottom: 24px; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.hero-points { display: flex; flex-direction: column; gap: 8px; padding: 0; margin: 0 0 34px; list-style: none; }
.hero-points li { display: flex; gap: 10px; align-items: baseline; color: var(--muted); font-size: 0.99rem; }
.hero-points li::before { content: "\2713"; font-family: var(--f-display); color: var(--crimson); font-weight: 700; flex-shrink: 0; }

/* the miniature chain (hero artifact). Joints are the device itself. */
.mini-chain-box { max-width: 560px; }
.mini-cap { font-family: var(--f-display); font-size: 0.88rem; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
.mini-cap b { color: var(--navy); }
.mini-chain { display: flex; align-items: center; }
.m-link {
  font-family: var(--f-mono); font-size: 0.86rem; font-weight: 600;
  min-width: 52px; min-height: 44px; padding: 6px 4px;
  border: 1.5px solid var(--line-2); border-radius: 12px; background: #FFFFFF;
  color: var(--muted); cursor: pointer; flex: 0 1 auto;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.m-link:hover { border-color: var(--navy); color: var(--navy); }
.m-link.is-done { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.m-link.is-cur { background: var(--crimson); border-color: var(--crimson); color: #FFFFFF; box-shadow: 0 0 0 4px rgba(179, 25, 66, 0.18); }
.m-joint { flex: 1 1 8px; max-width: 22px; height: 5px; border-radius: 999px; background: var(--line-2); }
.m-joint.is-past { background: var(--navy); }
.mini-read { margin-top: 12px; font-size: 0.95rem; color: var(--muted); }
.mini-read b { font-family: var(--f-display); color: var(--navy); }

/* ============================================================
   THE SEMESTER CHAIN (signature device, navy, directly under hero)
   ============================================================ */
.sec { padding: 86px 0; }
.sec-navy { background: var(--navy); color: var(--t-on-navy); }
.sec-navy h2, .sec-navy h3 { color: var(--t-on-navy); }
.sec-deep { background: var(--shell-2); }
.sec-head { max-width: 730px; margin-bottom: 42px; }
@media (max-width: 640px) { .sec { padding: 60px 0; } .sec-head { margin-bottom: 30px; } }

.chain { display: flex; align-items: stretch; }
.chain .link {
  flex: 1 1 0; min-width: 0; min-height: 44px;
  background: rgba(237, 242, 249, 0.04);
  border: 1.5px solid rgba(237, 242, 249, 0.24); border-radius: 14px;
  padding: 15px 12px 13px; color: var(--t-on-navy); cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; gap: 7px;
  text-align: left; font-family: var(--f-display);
  transition: background .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.chain .link:hover { border-color: rgba(237, 242, 249, 0.55); }
.chain .link .link-t { font-size: 0.86rem; font-weight: 600; line-height: 1.25; }
.chain .link .link-cr { font-family: var(--f-body); font-style: italic; font-size: 0.78rem; color: var(--m-on-navy); }
.chain .link .tick { display: none; font-size: 0.78rem; font-weight: 600; color: #9FE0B8; }
.chain .link .here { display: none; font-size: 0.78rem; font-weight: 600; color: #FFD3DD; }
.chain .link.is-done { background: var(--navy-2); border-color: transparent; }
.chain .link.is-done .tick { display: inline; }
.chain .link.is-cur { background: var(--crimson); border-color: var(--crimson); box-shadow: 0 0 0 5px rgba(179, 25, 66, 0.28); }
.chain .link.is-cur .link-cr { color: #F6CFD9; }
.chain .link.is-cur .here { display: inline; }
.joint { flex: 0 0 18px; height: 6px; border-radius: 999px; background: rgba(237, 242, 249, 0.22); align-self: center; }
.joint.is-past { background: var(--coral); }
@media (max-width: 880px) {
  .chain { flex-direction: column; align-items: stretch; }
  .joint { flex-basis: auto; width: 6px; height: 18px; align-self: center; }
}

.chain-panel { margin-top: 28px; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 18px; }
@media (max-width: 880px) { .chain-panel { grid-template-columns: 1fr; } }
.chain-now { background: var(--navy-2); border-radius: var(--r); padding: 24px 24px 20px; }
.chain-now h3 { font-size: 1.06rem; margin-bottom: 8px; }
.chain-now p { color: var(--m-on-navy); font-size: 0.98rem; margin: 0; }
.chain-read { background: #FFFFFF; color: var(--ink); border-radius: var(--r); padding: 10px 24px; }
.cr-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 0.93rem; color: var(--muted); }
.cr-row:last-child { border-bottom: none; }
.cr-row b { font-family: var(--f-display); font-weight: 700; font-size: 1.04rem; color: var(--navy); text-align: right; }
.cr-row b.red { color: var(--crimson); }

.pace { margin-top: 34px; background: rgba(5, 23, 58, 0.35); border-radius: var(--r); padding: 26px 26px 22px; }
.pace h3 { font-size: 1.08rem; margin-bottom: 14px; }
.pace ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 11px 26px; }
@media (max-width: 760px) { .pace ul { grid-template-columns: 1fr; } }
.pace li { display: flex; gap: 10px; align-items: baseline; color: var(--m-on-navy); font-size: 0.95rem; }
.pace li::before { content: "\2713"; font-family: var(--f-display); color: var(--coral); font-weight: 700; flex-shrink: 0; }
.pace li b { color: var(--t-on-navy); font-weight: 600; }
.chain-note { margin-top: 22px; font-family: var(--f-body); font-style: italic; font-size: 0.95rem; color: var(--m-on-navy); }
.chain-note a { color: var(--coral); }

/* ============================================================
   TRUST BAND (deep navy)
   ============================================================ */
.trust-band { background: var(--navy-d); color: var(--t-on-navy); padding: 26px 0; }
.trust-band .wrap { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.trust-cell { display: flex; flex-direction: column; gap: 2px; min-width: 150px; }
.trust-num { font-family: var(--f-display); font-weight: 700; font-size: 1.7rem; line-height: 1.1; }
.trust-label { font-family: var(--f-display); font-size: 0.83rem; font-weight: 500; color: var(--m-on-navy); }
.trust-stars { font-size: 0.95rem; color: var(--gold); }

/* ============================================================
   SERVICES (light shell, white cards)
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 940px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .svc-grid { grid-template-columns: 1fr; } }
.svc {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 22px 20px; text-decoration: none; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 3px 14px rgba(10, 42, 92, 0.05);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.svc:hover { border-color: var(--navy); transform: translateY(-3px); box-shadow: var(--sh-1); }
.svc-ico {
  width: 42px; height: 42px; border-radius: 11px; background: rgba(10, 42, 92, 0.07);
  border: 1px solid rgba(10, 42, 92, 0.2); display: grid; place-items: center; color: var(--navy);
}
.svc h3 { margin: 0; color: var(--ink); }
.svc p { color: var(--muted); font-size: 0.95rem; margin: 0; }
.svc-go { font-family: var(--f-display); font-size: 0.9rem; font-weight: 600; color: var(--crimson-d); margin-top: auto; }

/* ============================================================
   THE TEAM OF EIGHT (navy)
   ============================================================ */
.role-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 940px) { .role-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .role-grid { grid-template-columns: 1fr; } }
.role { background: var(--navy-2); border-radius: var(--r); padding: 20px 18px; }
.role-n {
  width: 30px; height: 30px; border-radius: 999px; background: var(--crimson); color: #FFFFFF;
  font-family: var(--f-display); font-weight: 700; font-size: 0.92rem; display: grid; place-items: center;
  margin-bottom: 12px;
}
.role h3 { font-size: 1rem; margin-bottom: 6px; }
.role p { color: var(--m-on-navy); font-size: 0.9rem; margin: 0; }
.pipe-note { margin-top: 24px; color: var(--m-on-navy); font-size: 0.99rem; max-width: 70ch; }
.pipe-note b { color: var(--coral); font-family: var(--f-display); }

/* ============================================================
   THE RETAKE MATH (light shell-2)
   ============================================================ */
.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 940px; }
@media (max-width: 880px) { .vs-grid { grid-template-columns: 1fr; } }
.vs-col {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 26px 24px; box-shadow: 0 3px 14px rgba(10, 42, 92, 0.05);
}
.vs-col h3 { font-size: 1.05rem; margin-bottom: 4px; }
.vs-sub { color: var(--muted); font-family: var(--f-body); font-style: italic; font-size: 0.88rem; margin-bottom: 14px; }
.vs-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.94rem; }
.vs-row:last-of-type { border-bottom: none; }
.vs-row span { color: var(--muted); }
.vs-row b { font-family: var(--f-display); font-weight: 700; font-size: 0.99rem; text-align: right; max-width: 58%; }
.vs-us { background: linear-gradient(155deg, var(--navy), var(--navy-d)); border-color: transparent; color: var(--t-on-navy); }
.vs-us h3 { color: #FFFFFF; }
.vs-us .vs-sub { color: var(--m-on-navy); }
.vs-us .vs-row { border-color: var(--line-navy); }
.vs-us .vs-row span { color: var(--m-on-navy); }
.vs-keep {
  margin-top: 16px; background: rgba(179, 25, 66, 0.24); border-radius: 11px; padding: 13px 14px;
  font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; color: #FFD3DD; text-align: center;
}

.rates { max-width: 940px; margin-top: 26px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 24px; }
.rate-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 0.95rem; }
.rate-row:last-child { border-bottom: none; }
.rate-row span { color: var(--muted); }
.rate-row b { font-family: var(--f-display); font-weight: 700; color: var(--navy); text-align: right; }
.vs-note { margin-top: 20px; font-size: 0.82rem; color: var(--muted); max-width: 84ch; line-height: 1.6; }

/* ============================================================
   HOW IT WORKS (light shell, numbered cards)
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
@media (max-width: 940px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 21px; box-shadow: 0 3px 14px rgba(10, 42, 92, 0.05); }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--f-display); font-weight: 700; font-size: 0.92rem; color: #FFFFFF;
  width: 30px; height: 30px; border-radius: 999px; display: grid; place-items: center;
  margin-bottom: 14px; background: var(--navy);
}
.step p { color: var(--muted); font-size: 0.94rem; margin: 0; }

/* ============================================================
   STUDENT-PERFORMED CLINICAL AND PRACTICUM SUPPORT (navy, duo layout)
   ============================================================ */
.duo { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .duo { grid-template-columns: 1fr; gap: 30px; } }
.check-list {
  margin: 0; padding: 26px; list-style: none;
  background: var(--navy-2); border-radius: var(--r);
  display: flex; flex-direction: column; gap: 13px;
}
.check-list li { display: flex; gap: 12px; align-items: baseline; font-size: 0.98rem; color: var(--t-on-navy); }
.check-list li::before { content: "\2713"; color: var(--coral); font-weight: 700; font-family: var(--f-display); flex-shrink: 0; }

/* ============================================================
   SAMPLE BAND (crimson, the one red band)
   ============================================================ */
.sample-band { background: linear-gradient(135deg, var(--crimson), var(--crimson-d)); color: #FFFFFF; padding: 64px 0; }
.sample-band .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; }
@media (max-width: 880px) { .sample-band .wrap { grid-template-columns: 1fr; } }
.sample-band h2 { color: #FFFFFF; }
.sample-band p { color: rgba(255, 255, 255, 0.88); max-width: 56ch; }
.band-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
@media (min-width: 881px) { .band-cta { align-items: flex-end; } }
.band-link { color: #FFFFFF; font-family: var(--f-display); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.band-link:hover { color: #FFD3DD; }

/* ============================================================
   REVIEWS (navy cards)
   ============================================================ */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 940px) { .quotes { grid-template-columns: 1fr; } }
.quote { background: var(--navy-2); border-radius: var(--r); padding: 24px 22px; display: flex; flex-direction: column; gap: 14px; }
.quote p { color: var(--t-on-navy); font-size: 0.98rem; margin: 0; }
.quote footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.quote cite { font-style: normal; font-family: var(--f-display); font-weight: 600; font-size: 0.85rem; color: var(--m-on-navy); }
.quote .stars { color: var(--gold); font-size: 0.82rem; }
.more-link { color: var(--coral); font-family: var(--f-display); font-weight: 600; text-decoration: none; }
.more-link:hover { color: #FFA4B6; }

/* ============================================================
   FAQ (light shell)
   ============================================================ */
.faq-list { max-width: 820px; }
.faq-item { border-bottom: 1px solid var(--line-2); }
.faq-item summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 18px;
  align-items: baseline; padding: 21px 2px; font-family: var(--f-display); font-weight: 600; font-size: 1.04rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--f-display); color: var(--crimson); font-weight: 700; font-size: 1.1rem; flex-shrink: 0; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item .faq-a { padding: 0 2px 22px; color: var(--muted); max-width: 72ch; }

/* ============================================================
   FINAL CTA (deep navy) + FOOTER (deepest navy)
   ============================================================ */
.final-cta { text-align: center; padding: 94px 0; background: var(--navy-d); color: var(--t-on-navy); }
.final-cta h2 { color: var(--t-on-navy); }
.final-cta .lead { margin: 0 auto 30px; }
.final-cta .hero-ctas { justify-content: center; margin-bottom: 0; }

.site-foot { background: var(--navy-f); padding: 62px 0 34px; color: var(--t-on-navy); }
.site-foot .brand-name { color: var(--t-on-navy); }
.site-foot .brand-tile { background: var(--crimson); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
@media (max-width: 940px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-col h4 { font-family: var(--f-display); font-size: 0.94rem; font-weight: 700; color: #C4D0E4; margin: 0 0 16px; }
.foot-col a { display: block; color: var(--m-on-navy); text-decoration: none; font-size: 0.92rem; padding: 5px 0; }
.foot-col a:hover { color: var(--coral); }
.foot-about { color: var(--m-on-navy); font-size: 0.9rem; max-width: 36ch; }
.foot-note { color: var(--m-on-navy); font-size: 0.9rem; margin-bottom: 4px; }

.news-form { display: flex; gap: 8px; margin-top: 14px; }
.news-form input {
  flex: 1; min-width: 0; background: var(--navy-d); border: 1px solid var(--line-navy); border-radius: 9px;
  color: var(--t-on-navy); padding: 12px 14px; font-size: 16px; font-family: var(--f-display);
}
.news-form input::placeholder { color: var(--f-on-navy); }
.news-form button { flex-shrink: 0; }
.news-done { color: var(--coral); font-size: 0.9rem; margin-top: 10px; display: none; }

.foot-rule { border: 0; height: 1px; background: var(--line-navy); margin: 0 0 26px; }
.foot-legal { display: flex; flex-direction: column; gap: 12px; }
.foot-disclaimer { color: var(--f-on-navy); font-size: 0.81rem; max-width: 92ch; }
.foot-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--f-on-navy); font-size: 0.81rem; }
.foot-base a { color: var(--m-on-navy); text-decoration: none; }
.foot-base a:hover { color: var(--coral); }

/* ============================================================
   WIDGETS: seasonal offer modal (center, class-toggled display)
   ============================================================ */
.ob-modal-backdrop {
  display: none; position: fixed; inset: 0; z-index: 90;
  background: rgba(5, 15, 33, 0.68); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.ob-modal-backdrop.is-open { display: flex; }
.ob-modal {
  width: 100%; max-width: 470px; background: #FFFFFF; color: var(--ink);
  border-radius: 16px; overflow: hidden; box-shadow: var(--sh-2); position: relative;
}
.ob-close {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 999px;
  border: none; background: rgba(255, 255, 255, 0.16); color: #FFFFFF; font-size: 1rem; cursor: pointer;
}
/* modal masthead = the site's registered independent-study treatment */
.ob-mast { background: var(--navy); color: var(--t-on-navy); padding: 20px 22px 18px; }
.ob-mast-brand { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.ob-mast-brand .brand-tile { width: 30px; height: 30px; border-radius: 8px; font-size: 0.82rem; background: var(--crimson); }
.ob-mast-brand span { font-family: var(--f-display); font-weight: 700; font-size: 0.95rem; }
.ob-strip-t { font-family: var(--f-display); font-size: 0.82rem; font-weight: 600; color: var(--m-on-navy); margin-bottom: 9px; }
.ob-strip { display: flex; align-items: center; }
.ob-strip .s-link {
  font-family: var(--f-mono); font-size: 0.68rem; font-weight: 600;
  padding: 5px 0; text-align: center; flex: 1 1 0; min-width: 0;
  border: 1px solid rgba(237, 242, 249, 0.28); border-radius: 8px; color: var(--m-on-navy);
  white-space: nowrap; overflow: hidden;
}
.ob-strip .s-link.is-done { background: var(--navy-2); border-color: transparent; color: #C8D6EE; }
.ob-strip .s-link.is-cur { background: var(--crimson); border-color: var(--crimson); color: #FFFFFF; }
.ob-strip .s-joint { flex: 0 0 7px; height: 4px; border-radius: 999px; background: rgba(237, 242, 249, 0.24); }
.ob-strip .s-joint.is-past { background: var(--coral); }
.ob-body { padding: 22px; }
.ob-season { font-family: var(--f-display); font-size: 0.88rem; font-weight: 600; color: var(--crimson-d); margin-bottom: 8px; }
.ob-body h3 { font-size: 1.32rem; margin-bottom: 6px; }
.ob-body .ob-sub { color: var(--muted); font-size: 0.94rem; margin-bottom: 16px; }
.ob-form { display: flex; flex-direction: column; gap: 10px; }
.ob-form input {
  background: #FFFFFF; border: 1px solid var(--line-2); border-radius: 9px; padding: 13px 14px;
  font-size: 16px; font-family: var(--f-display); color: var(--ink); width: 100%;
}
.ob-form .hp { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }
.ob-fine { font-size: 0.74rem; color: var(--soft); margin-top: 10px; }
.ob-thanks { display: none; padding: 8px 0 4px; color: var(--crimson-d); font-family: var(--f-display); font-weight: 600; }
@media (max-width: 560px) {
  .ob-modal { max-width: 100%; }
  .ob-mast { padding: 16px 16px 14px; }
  .ob-body { padding: 16px; }
}

/* ============================================================
   WIDGETS: direct-text dock (LEFT) + live chat (RIGHT)
   ============================================================ */
.dock-left { position: fixed; left: 18px; bottom: 18px; z-index: 70; display: flex; flex-direction: column; gap: 10px; }
.dock-btn {
  width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center;
  border: none; cursor: pointer; box-shadow: var(--sh-1); color: #FFFFFF;
}
.dock-wa { background: #25D366; color: #fff; }
.dock-sms { background: var(--navy-2); }
.dock-btn svg { width: 25px; height: 25px; }

.chat-launch {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  width: 60px; height: 60px; border-radius: 999px; border: 2px solid var(--navy);
  padding: 0; cursor: pointer; overflow: hidden; background: #FFFFFF; box-shadow: var(--sh-1);
}
.chat-launch img, .chat-launch svg { width: 100%; height: 100%; }
.chat-badge {
  position: absolute; top: -2px; right: -2px; width: 15px; height: 15px; border-radius: 999px;
  background: var(--crimson); border: 2px solid #FFFFFF;
}
.chat-nudge {
  position: fixed; right: 88px; bottom: 30px; z-index: 70; max-width: 236px;
  background: #FFFFFF; color: var(--ink); border-radius: 14px 14px 3px 14px;
  padding: 12px 14px; font-family: var(--f-display); font-size: 0.86rem; box-shadow: var(--sh-2);
  display: none; cursor: pointer; border: 1px solid var(--line);
}
.chat-nudge.is-on { display: block; }

.chat-panel {
  position: fixed; right: 18px; bottom: 90px; z-index: 80;
  width: 372px; max-width: calc(100vw - 36px); height: clamp(460px, 72vh, 580px);
  background: #FFFFFF; color: var(--ink);
  border-radius: 16px; box-shadow: var(--sh-2); overflow: hidden;
  display: none; flex-direction: column;
}
.chat-panel.is-open { display: flex; }
.chat-head { background: var(--navy); color: var(--t-on-navy); padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.chat-face { width: 42px; height: 42px; border-radius: 999px; overflow: hidden; border: 2px solid var(--crimson); flex-shrink: 0; }
.chat-face svg { width: 100%; height: 100%; }
.chat-who { line-height: 1.25; min-width: 0; font-family: var(--f-display); }
.chat-who b { font-size: 0.95rem; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-who span { font-size: 0.74rem; color: var(--m-on-navy); }
.chat-status { margin-left: auto; display: flex; align-items: center; gap: 6px; font-family: var(--f-display); font-size: 0.7rem; color: var(--m-on-navy); flex-shrink: 0; }
.chat-status i { width: 8px; height: 8px; border-radius: 999px; background: #4CC97B; display: inline-block; }
.chat-back { display: none; background: none; border: none; color: var(--t-on-navy); font-size: 1.2rem; cursor: pointer; padding: 4px 8px 4px 0; }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--shell); }
.msg { max-width: 82%; padding: 10px 13px; border-radius: 13px; font-size: 0.95rem; line-height: 1.5; }
.msg-in { background: #FFFFFF; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg-out { background: var(--navy); color: #FFFFFF; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-compose { display: flex; gap: 8px; padding: 12px; background: var(--shell-2); }
.chat-compose input {
  flex: 1; min-width: 0; border: 1px solid var(--line-2); border-radius: 999px; padding: 11px 16px;
  font-size: 16px; font-family: var(--f-display); background: #FFFFFF; color: var(--ink);
}
.chat-compose button {
  width: 44px; height: 44px; border-radius: 999px; border: none; background: var(--crimson);
  color: #FFFFFF; cursor: pointer; display: grid; place-items: center; flex-shrink: 0;
}
@media (max-width: 640px) {
  .chat-panel.is-open {
    inset: 0; width: 100%; max-width: 100%; height: 100dvh; border-radius: 0; bottom: 0;
  }
  .chat-back { display: inline-block; }
  body.chat-open .dock-left, body.chat-open .chat-launch, body.chat-open .chat-nudge { display: none; }
}

/* ============ article layer (content pages) — USA navy/crimson tokens ============ */
.crumbs { max-width: var(--maxw); margin: 0 auto; padding: 18px 24px 0; font-size: 0.85rem; color: var(--muted); font-family: var(--f-display); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--crimson); }
.crumbs .sep { margin: 0 7px; color: var(--line-2); }
.article-hero { max-width: 880px; margin: 0 auto; padding: 34px 24px 10px; }
.article-hero h1 { font-family: var(--f-display); font-size: clamp(1.7rem, 3.4vw, 2.45rem); line-height: 1.16; margin: 12px 0 14px; color: var(--ink); }
.code-chip { display: inline-block; font-family: var(--f-mono); font-size: 0.8rem; color: var(--crimson-d); background: var(--crimson-tint); border: 1px solid var(--crimson-line); border-radius: 999px; padding: 4px 12px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px; }
.badge-verify { display: inline-block; font-family: var(--f-display); font-size: 0.78rem; color: var(--navy); background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 4px 11px; }
.article-hero .lead { font-size: 1.06rem; line-height: 1.68; color: var(--muted); max-width: 64ch; }
.article { max-width: 880px; margin: 0 auto; padding: 8px 24px 64px; }
.article h2 { font-family: var(--f-display); font-size: 1.38rem; margin: 34px 0 12px; color: var(--ink); }
.article h3 { font-family: var(--f-display); font-size: 1.05rem; margin: 22px 0 8px; color: var(--ink); }
.article p { line-height: 1.74; margin: 0 0 14px; color: var(--ink); }
.article a { color: var(--crimson); }
.article a:hover { color: var(--crimson-d); }
.answer-box { background: var(--crimson-tint); border: 1px solid var(--crimson-line); border-radius: var(--r); padding: 20px 22px; margin: 18px 0 8px; }
.answer-box .ab-label { display: block; font-family: var(--f-display); font-weight: 700; font-size: 0.82rem; color: var(--crimson-d); margin-bottom: 8px; }
.answer-box p { margin: 0; line-height: 1.7; }
.checklist { list-style: none; padding: 0; margin: 6px 0 16px; }
.checklist li { position: relative; padding: 9px 0 9px 30px; line-height: 1.62; border-bottom: 1px solid var(--line); }
.checklist li:last-child { border-bottom: none; }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 16px; width: 13px; height: 13px; border-radius: 4px; background: var(--crimson); }
.checklist li::after { content: ""; position: absolute; left: 7.5px; top: 19px; width: 6px; height: 3.5px; border-left: 2px solid #FFF; border-bottom: 2px solid #FFF; transform: rotate(-45deg); }
.steps-list { list-style: none; counter-reset: step; padding: 0; margin: 10px 0 18px; }
.steps-list li { counter-increment: step; position: relative; padding: 14px 0 14px 52px; border-bottom: 1px solid var(--line); }
.steps-list li:last-child { border-bottom: none; }
.steps-list li::before { content: counter(step); position: absolute; left: 0; top: 14px; width: 34px; height: 34px; border-radius: 10px; background: var(--navy); color: #FFF; font-family: var(--f-display); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.95rem; }
.steps-list h3 { margin: 0 0 5px; }
.steps-list p { margin: 0; color: var(--muted); }
.table-wrap { overflow-x: auto; margin: 14px 0 20px; border: 1px solid var(--line-2); border-radius: var(--r); }
.man-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; background: var(--card); }
.man-table th { text-align: left; font-family: var(--f-display); font-size: 0.85rem; background: var(--shell-2); color: var(--ink); padding: 11px 14px; border-bottom: 1px solid var(--line-2); }
.man-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.58; }
.man-table tr:last-child td { border-bottom: none; }
.svc-strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; background: var(--navy); border-radius: var(--r); padding: 26px 28px; margin: 34px 0 10px; }
.svc-strip h3 { font-family: var(--f-display); color: var(--t-on-navy); margin: 0 0 6px; font-size: 1.15rem; }
.svc-strip p { color: var(--m-on-navy); margin: 0; line-height: 1.55; }
.svc-strip .btns { display: flex; gap: 10px; flex-wrap: wrap; }
.svc-strip .btn-ghost { color: var(--t-on-navy); border-color: var(--line-navy); }
.svc-strip .btn-ghost:hover { border-color: var(--coral); color: var(--coral); }
.related { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 8px; }
.related a { display: inline-block; font-family: var(--f-display); background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 16px; font-size: 0.88rem; color: var(--ink); text-decoration: none; }
.related a:hover { border-color: var(--crimson); color: var(--crimson); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.toc a { display: inline-block; font-family: var(--f-display); font-size: 0.84rem; color: var(--navy); background: var(--card); border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 13px; text-decoration: none; }
.toc a:hover, .toc a.is-on { border-color: var(--crimson); color: var(--crimson); }
@media (max-width: 640px) {
  .article-hero { padding-top: 24px; }
  .svc-strip { padding: 22px 20px; }
  .svc-strip .btns { width: 100%; }
  .svc-strip .btn { flex: 1; text-align: center; }
}


/* brand-mark v2: standalone marks, no box */
svg.brand-tile { background: none !important; border: none !important; border-radius: 0 !important; box-shadow: none !important; padding: 0 !important; display: inline-block; }


/* image-program figures (apply_images.py) */
.ig-fig{margin:26px 0;max-width:100%}
.ig-fig img{display:block;width:100%;height:auto;border-radius:14px;border:1px solid rgba(0,0,0,.08);box-shadow:0 1px 2px rgba(0,0,0,.05),0 10px 26px rgba(0,0,0,.07)}
.ig-fig figcaption{margin-top:10px;font-size:.86rem;opacity:.72;line-height:1.5}


/* hero lead form (post-audit P0) */
.hero-lead{display:flex;flex-wrap:wrap;gap:10px;margin:18px 0 4px;align-items:center;max-width:580px}
.hero-lead input{flex:1 1 200px;min-width:0;padding:12px 14px;font-size:16px;border:1px solid rgba(0,0,0,.22);border-radius:10px;background:#fff;color:#1a1a1a}
.hero-lead input:focus{outline:2px solid rgba(0,0,0,.35);outline-offset:1px}
.hero-lead input.hp{position:absolute!important;left:-9999px;width:1px;height:1px;opacity:0}
.hero-lead .btn{flex:0 0 auto}
.hero-lead-done,.hero-lead-err{margin:10px 0 0;font-size:.92rem}
.hero-lead-done{font-weight:600}
@media(max-width:560px){.hero-lead input{flex:1 1 100%}.hero-lead .btn{width:100%}}


/* sample-paper thumbnails */
.sample-thumbs{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin:22px 0 6px;max-width:560px}
.sample-thumbs figure{margin:0}
.sample-thumbs img{width:100%;height:auto;border-radius:8px;border:1px solid rgba(0,0,0,.1);box-shadow:0 6px 18px rgba(0,0,0,.09)}
.sample-thumbs figcaption{margin-top:6px;font-size:.8rem;opacity:.7;text-align:center}
@media(max-width:520px){.sample-thumbs{grid-template-columns:1fr;max-width:340px}}


/* honesty + a11y polish */
.hp{position:absolute!important;left:-9999px;width:1px;height:1px;opacity:0;pointer-events:none}
.ob-modal,.ae-modal{max-height:calc(100dvh - 40px);overflow-y:auto}

/* ============ hero contact form card ============ */
.hero-form-card { background: #FFFFFF; color: #211D18; border: 1px solid rgba(0,0,0,0.10); border-radius: 16px; padding: 22px; box-shadow: 0 18px 44px rgba(0,0,0,0.12); }
.hero-form-card .hfc-head { font-weight: 800; font-size: 1.16rem; margin: 0 0 4px; }
.hero-form-card .hfc-sub { font-size: 0.9rem; opacity: 0.75; margin: 0 0 14px; }
#heroCard { display: flex; flex-direction: column; gap: 10px; }
#heroCard input, #heroCard textarea { font: inherit; font-size: 16px; padding: 11px 13px; border: 1px solid rgba(0,0,0,0.16); border-radius: 10px; background: #FFF; color: inherit; width: 100%; box-sizing: border-box; }
#heroCard textarea { resize: vertical; min-height: 64px; }
#heroCard .hp { position: absolute; left: -9999px; opacity: 0; height: 0; }
.hero-form-card .hfc-note { font-size: 0.78rem; opacity: 0.65; margin: 10px 0 0; }
.hero-card-done { font-weight: 600; }
.hero-card-err { color: #B3261E; font-size: 0.85rem; margin: 4px 0 0; }
.hero-viz-band { padding: 64px 0 30px; }
.hero-viz-band .hvb-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.hero-viz-band .hvb-eyebrow { display: block; font-size: 0.82rem; font-weight: 700; opacity: 0.62; margin-bottom: 10px; }
.hero-viz-band .hvb-copy h2 { font-size: clamp(1.55rem, 2.8vw, 2.05rem); margin: 0 0 12px; }
.hero-viz-band .hvb-copy p { max-width: 46ch; margin: 0 0 22px; opacity: 0.85; }
@media (max-width: 900px) { .hero-viz-band { padding: 44px 0 12px; } .hero-viz-band .hvb-grid { grid-template-columns: 1fr; gap: 28px; } }

/* hero form card placement */
.hero .hero-form-card { max-width: 560px; margin-top: 30px; }

/* ============ Courses catalog ============ */
.crs-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.crs-crumbs { font-size: 0.84rem; opacity: 0.7; padding: 20px 0 0; }
.crs-crumbs a { color: inherit; text-decoration: none; }
.crs-crumbs a:hover { text-decoration: underline; }
.crs-crumbs .sep { margin: 0 7px; opacity: 0.6; }
.crs-hero { padding: 26px 0 6px; }
.crs-hero h1 { font-size: clamp(1.85rem, 3.6vw, 2.6rem); margin: 0 0 12px; }
.crs-hero p { max-width: 64ch; font-size: 1.08rem; opacity: 0.8; margin: 0; }
.crs-bar { display: flex; flex-wrap: wrap; gap: 6px 26px; align-items: center; margin: 26px 0 8px; padding: 13px 0; border-top: 1px solid rgba(0,0,0,0.12); border-bottom: 1px solid rgba(0,0,0,0.12); }
.crs-tab { font-family: inherit; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: inherit; opacity: 0.6; background: none; border: none; cursor: pointer; padding: 8px 0; display: inline-flex; align-items: baseline; gap: 8px; position: relative; }
.crs-tab i { font-style: normal; font-size: 0.66rem; opacity: 0.7; }
.crs-tab:hover, .crs-tab.is-on { opacity: 1; }
.crs-tab.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -14px; height: 2px; background: #0A2A5C; }
.crs-search { margin-left: auto; background: #FFFFFF; border: 1px solid rgba(0,0,0,0.22); border-radius: 10px; padding: 9px 14px; color: inherit; font: inherit; font-size: 0.9rem; width: 240px; max-width: 100%; }
.crs-search:focus { outline: 2px solid #0A2A5C; outline-offset: 1px; }
@media (max-width: 700px) { .crs-search { margin-left: 0; width: 100%; } .crs-tab.is-on::after { bottom: -4px; } }
.crs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; margin-top: 18px; }
.crs-card { display: flex; flex-direction: column; gap: 11px; background: #FFFFFF; border: 1px solid rgba(0,0,0,0.12); border-radius: 14px; padding: 20px 20px 18px; text-decoration: none; color: inherit; transition: border-color 0.18s ease, transform 0.18s ease; position: relative; }
.crs-card::after { content: "\2197"; position: absolute; top: 15px; right: 17px; font-size: 0.95rem; font-weight: 600; color: #0A2A5C; opacity: 0; transform: translate(-4px, 4px); transition: opacity 0.18s ease, transform 0.18s ease; }
.crs-card:hover { border-color: rgba(10, 42, 92, 0.5); transform: translateY(-2px); }
.crs-card:hover::after { opacity: 1; transform: none; }
.crs-code { align-self: flex-start; font-family: ui-monospace, Consolas, monospace; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.02em; color: #0A2A5C; background: rgba(10, 42, 92, 0.1); border: 1px solid rgba(10, 42, 92, 0.35); border-radius: 8px; padding: 3px 9px; white-space: nowrap; }
.crs-card h3 { margin: 0; font-size: 1.04rem; line-height: 1.35; flex: 1; padding-right: 22px; }
.crs-empty { display: none; margin: 26px 2px 8px; opacity: 0.75; font-size: 0.95rem; }

/* ============ Course right rail ============ */
.course-layout { display: grid; min-width: 0; grid-template-columns: minmax(0, 1fr) 264px; gap: 44px; align-items: start; }
.course-rail { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 24px; padding: 4px 0 40px; }
.rail-group { display: flex; flex-direction: column; gap: 2px; }
.rail-h { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.55; margin-bottom: 8px; }
.rail-group a, .rail-group .rail-item { font-size: 0.82rem; line-height: 1.4; color: inherit; text-decoration: none; padding: 5px 0 5px 12px; border-left: 2px solid rgba(0,0,0,0.14); }
.rail-group a { color: rgba(0,0,0,0.55); transition: color 0.15s ease, border-color 0.15s ease; }
.rail-group a:hover { color: inherit; border-left-color: rgba(0,0,0,0.3); }
.rail-group a.is-on { color: inherit; border-left-color: #0A2A5C; }
.rail-group .rail-item { color: rgba(0,0,0,0.55); }
.rail-group .rail-item b { color: inherit; font-weight: 600; }
.rail-group .rail-hint2 { font-size: 0.76rem; opacity: 0.8; }
.rail-group p { font-size: 0.8rem; line-height: 1.5; color: rgba(0,0,0,0.55); margin: 0; padding-left: 12px; border-left: 2px solid rgba(0,0,0,0.14); }
.rail-group p a { display: inline; padding: 0; border: none; text-decoration: underline; text-underline-offset: 2px; color: inherit; }
@media (max-width: 1100px) { .course-layout { display: block; } .course-rail { display: none; } }

/* rail sleek v2 */
.rail-group a.rail-item { display: flex; gap: 9px; align-items: baseline; padding: 4px 0 4px 12px; border-left: 2px solid rgba(0,0,0,0.14); color: rgba(0,0,0,0.55); text-decoration: none; min-width: 0; transition: color 0.15s ease, border-color 0.15s ease; }
.rail-group a.rail-item i { font-style: normal; font-family: ui-monospace, Consolas, monospace; font-size: 0.64rem; opacity: 0.55; flex: none; }
.rail-group a.rail-item span { white-space: normal; font-size: 0.8rem; line-height: 1.35; }
.rail-group a.rail-item:hover { color: inherit; border-left-color: #0A2A5C; }
.rail-nums { display: flex; flex-wrap: wrap; gap: 6px; padding: 2px 0 8px 12px; border-left: 2px solid rgba(0,0,0,0.14); }
.rail-nums span { font-family: ui-monospace, Consolas, monospace; font-size: 0.68rem; padding: 3px 8px; border: 1px solid rgba(0,0,0,0.14); border-radius: 6px; color: rgba(0,0,0,0.55); }
