:root {
  --ink: #101817;
  --ink-2: #273735;
  --paper: #f6faf9;
  --paper-2: #ffffff;
  --line: #d8e5e2;
  --muted: #657572;
  --red: #0f766e;
  --red-dark: #0a5a54;
  --gold: #74aaa3;
  --blue: #105f5a;
  --green: #13795b;
  --shadow: 0 14px 38px rgba(16, 35, 32, .08);
  --radius: 12px;
  --font-sans: Arial, Helvetica, ui-sans-serif, system-ui, sans-serif;
  --font-serif: "Times New Roman", Times, serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(15, 118, 110, .055), transparent 30rem),
    var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
}

a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 100;
  padding: .75rem 1rem;
  color: #fff;
  background: var(--ink);
  border-radius: 8px;
}
.skip-link:focus { top: 1rem; }

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(216, 225, 234, .9);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .72rem;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.34rem;
  font-weight: 700;
  letter-spacing: -.02em;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  border-radius: 12px 12px 12px 3px;
  font-family: Georgia, serif;
  box-shadow: 5px 5px 0 var(--gold);
}

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 650; font-size: .93rem; }
.nav a:hover, .nav a:focus-visible { color: var(--red); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: .55rem;
  padding: .7rem 1.1rem;
  border: 1px solid var(--ink);
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  text-decoration: none;
  font-weight: 800;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(16,24,23,.18); }
.button:focus-visible { outline: 3px solid rgba(116,170,163,.48); outline-offset: 3px; }
.button.secondary { color: var(--ink); background: transparent; }
.button.secondary:hover { background: var(--paper-2); }
.button.red { border-color: var(--red); background: var(--red); }
.button.red:hover { background: var(--red-dark); }
.button.small { min-height: 40px; padding: .5rem .82rem; font-size: .9rem; }
.button[disabled] { opacity: .45; cursor: not-allowed; transform: none; box-shadow: none; }

.entrance-course-choices {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin: 1.1rem 0 1.35rem;
}
.entrance-course-choices a {
  padding: .52rem .78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  background: #fff;
  text-decoration: none;
  font-size: .84rem;
  font-weight: 800;
}
.entrance-course-choices a:hover,
.entrance-course-choices a.active {
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.eyebrow {
  margin: 0 0 .9rem;
  color: var(--red);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.hero {
  min-height: calc(100vh - 74px);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  padding: 5rem 0;
}

.hero h1, .page-hero h1 {
  margin: 0;
  max-width: 820px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.25rem, 7vw, 6.4rem);
  line-height: .94;
  letter-spacing: -.055em;
  font-weight: 700;
}

.hero h1 em { color: var(--red); font-weight: 500; }
.hero-copy { max-width: 680px; margin: 1.6rem 0 0; color: #475467; font-size: clamp(1.05rem, 1.7vw, 1.22rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.trust-note { margin: 1rem 0 0; color: var(--muted); font-size: .86rem; }

.exam-picker {
  position: relative;
  padding: 1.4rem;
  color: #fff;
  background: var(--ink);
  border-radius: 24px 24px 24px 7px;
  box-shadow: 18px 18px 0 rgba(116,170,163,.35), var(--shadow);
}

.exam-picker::before {
  content: "§";
  position: absolute;
  right: 1rem;
  top: -3rem;
  color: rgba(255,255,255,.045);
  font-family: Georgia, serif;
  font-size: 13rem;
  line-height: 1;
}

.picker-head { position: relative; display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; margin-bottom: 1rem; }
.picker-head h2 { margin: 0; font-family: Georgia, serif; font-size: 1.45rem; }
.picker-head span { color: #bfc7d1; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }

.picker-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  margin-top: .65rem;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 13px;
  color: #fff;
  background: rgba(255,255,255,.055);
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}
.picker-card:hover { transform: translateX(4px); border-color: var(--gold); background: rgba(255,255,255,.09); }
.picker-card strong { display: block; font-size: 1rem; }
.picker-card small { color: #bfc7d1; }
.picker-card b { font-size: 1.4rem; color: var(--gold); }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }
.section.white { background: var(--paper-2); border-block: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2rem; }
.section-head h2, .page-hero h1, .result-panel h2 { font-family: Georgia, "Times New Roman", serif; }
.section-head h2 { margin: 0; max-width: 690px; font-size: clamp(2.2rem, 4.7vw, 4.2rem); line-height: 1; letter-spacing: -.04em; }
.section-head p { max-width: 500px; margin: 0; color: var(--muted); }

.track-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.track-card {
  position: relative;
  min-height: 380px;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 25px rgba(16,24,23,.045);
  overflow: hidden;
}
.track-card::after { content: attr(data-number); position: absolute; right: 1rem; top: -.6rem; color: rgba(16,24,23,.055); font-family: Georgia, serif; font-size: 7rem; line-height: 1; }
.track-card .label { position: relative; z-index: 1; display: inline-flex; width: fit-content; padding: .3rem .62rem; border-radius: 999px; color: var(--red); background: rgba(15,118,110,.08); font-size: .76rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.track-card h3 { position: relative; z-index: 1; margin: 1rem 0 .55rem; font-family: Georgia, serif; font-size: 1.8rem; line-height: 1.1; }
.track-card p { color: var(--muted); }
.track-card ul { margin: .5rem 0 1.5rem; padding-left: 1.15rem; color: var(--ink-2); }
.track-card .button { margin-top: auto; align-self: flex-start; }

.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; align-items: stretch; }
.price-card { display: flex; flex-direction: column; min-height: 390px; padding: 1.5rem; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.price-card.featured { border-color: var(--ink); box-shadow: 10px 10px 0 rgba(116,170,163,.3); }
.price-card .label { display: inline-flex; width: fit-content; padding: .28rem .58rem; border-radius: 999px; color: var(--red); background: rgba(15,118,110,.08); font-size: .75rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.price-card h3 { margin: .9rem 0 0; font-family: Georgia, serif; font-size: 1.55rem; }
.price { margin: 1.3rem 0; padding: 1rem 0; border-block: 1px solid var(--line); }
.price strong { display: block; font-family: Georgia, serif; font-size: 2.65rem; line-height: 1; }
.price span { color: var(--muted); font-size: .83rem; }
.price-card ul { margin: 0 0 1.5rem; padding-left: 1.15rem; color: var(--ink-2); }
.price-card .button { margin-top: auto; }

.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: #fff; overflow: hidden; }
.metric { padding: 1.5rem; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric strong { display: block; font-family: Georgia, serif; font-size: 2rem; line-height: 1; }
.metric span { display: block; margin-top: .45rem; color: var(--muted); font-size: .87rem; }

.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: steps; }
.process-card { position: relative; padding: 1.5rem 1.5rem 1.7rem 4.6rem; border-top: 2px solid var(--ink); }
.process-card::before { counter-increment: steps; content: "0" counter(steps); position: absolute; left: 0; top: 1.5rem; color: var(--red); font-family: Georgia, serif; font-size: 2.4rem; font-weight: 700; }
.process-card h3 { margin: 0 0 .35rem; font-family: Georgia, serif; font-size: 1.35rem; }
.process-card p { margin: 0; color: var(--muted); }

.cta-band { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: 2.2rem; color: #fff; background: var(--blue); border-radius: 22px 22px 22px 6px; }
.cta-band h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; }
.cta-band p { margin: .65rem 0 0; color: #d6e1eb; }

.site-footer { padding: 2.4rem 0; color: #5e6674; font-size: .88rem; border-top: 1px solid var(--line); }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 2rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer-links a:hover { color: var(--red); }

/* Interior pages */
.page-hero { padding: 4.5rem 0 2.2rem; }
.page-hero h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
.page-hero p { max-width: 720px; color: var(--muted); font-size: 1.08rem; }
.crumb { display: inline-flex; gap: .45rem; align-items: center; margin-bottom: 1.2rem; color: var(--muted); font-size: .86rem; text-decoration: none; }
.crumb:hover { color: var(--red); }

.segmented { display: inline-flex; padding: .3rem; border: 1px solid var(--line); border-radius: 12px; background: #e7f0ee; }
.segmented button { min-height: 42px; padding: .55rem 1rem; border: 0; border-radius: 9px; color: var(--ink-2); background: transparent; font-weight: 800; }
.segmented button[aria-selected="true"] { color: #fff; background: var(--ink); box-shadow: 0 4px 12px rgba(16,24,23,.16); }

.semester-layout { display: grid; grid-template-columns: 270px minmax(0,1fr); gap: 1.5rem; align-items: start; padding-bottom: 6rem; }
.semester-rail { position: sticky; top: 94px; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.semester-rail h2 { margin: 0 0 .9rem; font-family: Georgia, serif; font-size: 1.2rem; }
.semester-list { display: grid; gap: .4rem; }
.semester-button { display: flex; align-items: center; justify-content: space-between; min-height: 46px; padding: .65rem .8rem; border: 1px solid transparent; border-radius: 9px; color: var(--ink-2); background: transparent; text-align: left; font-weight: 750; }
.semester-button:hover { background: var(--paper); }
.semester-button[aria-current="true"] { color: var(--red); border-color: rgba(15,118,110,.25); background: rgba(15,118,110,.06); }
.semester-button span { color: var(--muted); font-size: .78rem; }

.catalog-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.2rem; }
.catalog-head h2 { margin: 0; font-family: Georgia, serif; font-size: 2.35rem; line-height: 1; }
.catalog-head p { margin: .45rem 0 0; color: var(--muted); }
.subject-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .9rem; }
.subject-card { display: flex; flex-direction: column; min-height: 215px; padding: 1.25rem; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.subject-card .paper { color: var(--red); font-size: .76rem; font-weight: 900; text-transform: uppercase; letter-spacing: .1em; }
.subject-card h3 { margin: .65rem 0 .35rem; font-family: Georgia, serif; font-size: 1.25rem; line-height: 1.2; }
.subject-card p { margin: 0 0 1rem; color: var(--muted); font-size: .88rem; }
.subject-actions { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: auto; }
.ghost-action { min-height: 38px; padding: .48rem .72rem; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: var(--paper-2); font-weight: 750; }
.ghost-action:hover { border-color: var(--ink); }
.ghost-action.predict { color: var(--red-dark); border-color: rgba(15,118,110,.25); background: rgba(15,118,110,.05); }

.preview-banner { display: none; margin: 0 0 1.2rem; padding: 1rem 1.1rem; border-left: 4px solid var(--gold); background: #eef8f6; }
.preview-banner.show { display: block; }
.preview-banner strong { display: block; }
.preview-banner p { margin: .2rem 0 0; color: var(--muted); }
.preview-banner .access-buy { margin-top: .8rem; }
.preview-banner .banner-note { margin-top: .65rem; color: var(--ink-2); font-weight: 700; }
.text-link { display: inline-flex; margin-top: .65rem; color: var(--red-dark); font-size: .88rem; font-weight: 850; text-underline-offset: 3px; }
.semester-subject { min-height: 310px; }
.semester-subject > .ghost-action { align-self: flex-start; margin-top: 1rem; }
.unit-list { display: grid; gap: .42rem; margin-top: .75rem; }
.unit-row { display: grid; grid-template-columns: 58px minmax(0,1fr) auto; align-items: center; gap: .65rem; width: 100%; min-height: 52px; padding: .58rem .65rem; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: var(--paper-2); text-align: left; }
.unit-row:hover { border-color: var(--ink); }
.unit-row.locked { color: #5f6672; background: #f0f5f4; }
.unit-number { color: var(--red); font-size: .69rem; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.unit-row strong { font-size: .82rem; line-height: 1.25; }
.unit-row em { padding: .18rem .4rem; border-radius: 999px; color: var(--green); background: rgba(31,107,80,.08); font-size: .65rem; font-style: normal; font-weight: 900; text-transform: uppercase; }
.unit-row.locked em { color: var(--muted); background: rgba(102,112,133,.1); }
.unit-inline-message { padding: .8rem .85rem; border: 1px solid rgba(31,107,80,.3); border-left: 4px solid var(--green); border-radius: 8px; color: #174f3c; background: rgba(31,107,80,.07); }
.unit-inline-message.locked, .predictive-message { color: var(--red-dark); border-color: rgba(15,118,110,.3); border-left-color: var(--red); background: rgba(15,118,110,.055); }
.unit-inline-message strong { display: block; font-size: .86rem; }
.unit-inline-message p { margin: .25rem 0 0; color: inherit; font-size: .8rem; }
.unit-inline-message .text-link { font-size: .78rem; }
.unit-practice-link { display: inline-flex; margin-top: .7rem; color: #fff; }
.internal-support { margin-top: .9rem; padding: .8rem; border: 1px solid rgba(18,59,93,.18); border-radius: 10px; background: rgba(18,59,93,.045); }
.internal-support-head { display: flex; justify-content: space-between; align-items: baseline; gap: .6rem; margin-bottom: .55rem; }
.internal-support-head strong { color: var(--blue); font-size: .79rem; }
.internal-support-head span { color: var(--muted); font-size: .65rem; }
.internal-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.internal-button { min-height: 58px; padding: .55rem .62rem; border: 1px solid rgba(18,59,93,.25); border-radius: 8px; color: var(--blue); background: #fff; text-align: left; }
.internal-button:hover { border-color: var(--blue); }
.internal-button span, .internal-button small { display: block; }
.internal-button span { font-size: .78rem; font-weight: 900; }
.internal-button small { margin-top: .08rem; color: var(--muted); font-size: .61rem; line-height: 1.3; }
.internal-button.locked { color: #5f6672; border-style: dashed; background: #f0f5f4; }

.written-practice-shell { max-width: 980px; padding-bottom: 5rem; }
.written-hero { padding-bottom: 1.5rem; }
.written-pattern { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; margin: 1.25rem 0; }
.written-pattern span { padding: .8rem; border: 1px solid var(--line); border-radius: 10px; background: var(--paper-2); color: var(--muted); font-size: .8rem; }
.written-pattern strong { display: block; color: var(--ink); font-size: 1rem; }
.written-question-list { display: grid; gap: 1.25rem; }
.question-bank-toolbar { display: flex; justify-content: space-between; align-items: end; gap: 1rem; margin: 0 0 1.25rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); }
.question-bank-toolbar strong { display: block; }
.question-type-filters { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: .45rem; }
.question-type-filter { min-height: 36px; padding: .42rem .7rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: #fff; font-size: .76rem; font-weight: 800; }
.question-type-filter.active { color: #fff; border-color: var(--red); background: var(--red); }
.written-question-card { padding: clamp(1.1rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 10px 30px rgba(16,24,23,.055); }
.written-question-head { display: flex; justify-content: space-between; gap: 1rem; color: var(--red-dark); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.written-question-card h2 { max-width: 780px; margin: .7rem 0 1.2rem; font-family: Georgia, serif; font-size: clamp(1.25rem, 3vw, 1.75rem); line-height: 1.25; }
.written-actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: .8rem; }
.answer-framework { margin-top: 1rem; padding: clamp(1rem, 3vw, 1.55rem); border: 1px solid rgba(31,107,80,.22); border-left: 6px solid var(--green); border-radius: 12px; background: linear-gradient(145deg, rgba(31,107,80,.075), rgba(255,255,255,.88)); box-shadow: 0 10px 24px rgba(23,79,60,.055); }
.answer-title-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-bottom: .8rem; border-bottom: 1px solid rgba(31,107,80,.2); }
.answer-title-row strong { color: var(--green); font-family: Georgia, serif; font-size: clamp(1.16rem, 2.5vw, 1.42rem); }
.answer-title-row span { flex: 0 0 auto; padding: .24rem .58rem; border-radius: 999px; color: #fff; background: var(--green); font-size: .7rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.answer-mark-guide { margin: .85rem 0 1rem; padding: .72rem .8rem; border-radius: 8px; color: #174f3c; background: rgba(31,107,80,.085); font-size: .82rem; font-weight: 750; line-height: 1.5; }
.ideal-answer-content { display: grid; gap: .82rem; color: var(--ink); font-size: .94rem; line-height: 1.72; }
.ideal-answer-content p { margin: 0; }
.answer-heading { margin: .15rem 0 -.12rem; color: var(--ink); font-family: Georgia, serif; font-size: 1.05rem; }
.answer-section { padding: .82rem .9rem .86rem 1rem; border-left: 3px solid rgba(31,107,80,.42); border-radius: 0 9px 9px 0; background: rgba(255,255,255,.74); }
.answer-section h4 { margin: 0 0 .28rem; color: var(--green); font-size: .77rem; font-weight: 900; letter-spacing: .055em; text-transform: uppercase; }
.answer-section p { padding-left: .55rem; }
.answer-section-emphasis { border-left-color: #b8872e; background: rgba(184,135,46,.075); }
.answer-section-emphasis h4 { color: #7b591f; }
.answer-list { margin: 0; padding: .75rem .9rem .75rem 2.25rem; border-radius: 9px; background: rgba(255,255,255,.74); }
.answer-list li { padding-left: .35rem; }
.answer-list li + li { margin-top: .38rem; }
.answer-list li::marker { color: var(--green); font-weight: 900; }
.answer-paragraph { padding: 0 .25rem; }
.written-complete { margin-top: 1.5rem; padding: 1.5rem; border-radius: 14px; background: var(--ink); color: #fff; }
.written-complete p { color: rgba(255,255,255,.76); }

@media (max-width: 700px) {
  .written-pattern { grid-template-columns: 1fr; }
  .written-question-head { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .question-bank-toolbar { align-items: stretch; flex-direction: column; }
  .question-type-filters { justify-content: flex-start; }
  .internal-actions { grid-template-columns: 1fr; }
}
.unit-pending, .catalog-loading { padding: 1rem; border: 1px dashed var(--line); border-radius: 9px; background: var(--paper-2); }
.catalog-loading { grid-column: 1 / -1; color: var(--muted); }

/* Notes-first semester study */
.semester-rebuild-overview { margin: 0 0 1.5rem; padding: 1.05rem 1.2rem; border: 1px solid rgba(18,59,93,.18); border-left: 5px solid var(--blue); border-radius: 0 10px 10px 0; background: linear-gradient(100deg, rgba(18,59,93,.065), rgba(255,255,255,.9)); }
.semester-rebuild-overview strong { display: block; color: var(--blue); font-size: 1rem; }
.semester-rebuild-overview p { max-width: 920px; margin: .35rem 0 0; color: var(--muted); font-size: .9rem; line-height: 1.55; }
.unit-row.rebuilding { color: var(--ink-2); border-style: dashed; background: #f8faf9; }
.unit-row.rebuilding em { color: var(--blue); background: rgba(18,59,93,.07); }
.unit-action-row { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: .7rem; }
.unit-action-row .button { min-height: 36px; padding: .44rem .7rem; font-size: .75rem; }

.notes-shell { max-width: 1180px; padding-bottom: 5rem; }
.notes-hero { padding-bottom: 1.25rem; }
.notes-mode-strip { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.3rem; }
.notes-mode-strip span { padding: .45rem .7rem; border-radius: 999px; color: var(--muted); background: #edf2f1; font-size: .74rem; font-weight: 800; }
.notes-mode-strip span.active { color: #fff; background: var(--green); }
.notes-ready-notice { margin-bottom: 1rem; }
.notes-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; align-items: start; }
.notes-index { position: sticky; top: 88px; padding-top: .8rem; }
.notes-index nav { display: grid; margin-top: .65rem; border-top: 1px solid var(--line); }
.notes-topic-link { display: grid; grid-template-columns: 28px 1fr; gap: .55rem; width: 100%; padding: .85rem .2rem; border: 0; border-bottom: 1px solid var(--line); color: var(--ink-2); background: transparent; text-align: left; font-size: .83rem; font-weight: 800; line-height: 1.35; }
.notes-topic-link span { color: var(--muted); font-size: .7rem; letter-spacing: .05em; }
.notes-topic-link:hover, .notes-topic-link.active { color: var(--green); }
.notes-topic-link.active span { color: var(--green); }
.note-content { min-width: 0; }
.note-paper { overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 16px 45px rgba(16,24,23,.06); }
.note-paper-head { padding: clamp(1.4rem, 4vw, 2.6rem); color: #fff; background: linear-gradient(135deg, #123b5d, #0f766e); }
.note-paper-head .eyebrow { color: rgba(255,255,255,.7); }
.note-paper-head h1 { margin: .45rem 0 .65rem; font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 3.4rem); line-height: 1; }
.note-paper-head > p:last-of-type { max-width: 760px; margin: 0; color: rgba(255,255,255,.82); line-height: 1.6; }
.note-meta { display: flex; flex-wrap: wrap; gap: .45rem; margin-top: 1.2rem; }
.note-meta span { padding: .35rem .55rem; border: 1px solid rgba(255,255,255,.22); border-radius: 999px; color: rgba(255,255,255,.88); font-size: .68rem; font-weight: 800; }
.note-section, .note-reference-section { padding: 1.6rem clamp(1.25rem, 4vw, 2.8rem); }
.note-section + .note-section, .note-reference-section { border-top: 1px solid var(--line); }
.note-section-kicker { margin: 0 0 .35rem; color: var(--green); font-size: .68rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.note-section h2, .note-reference-section h2 { margin: 0 0 .75rem; font-family: Georgia, serif; font-size: clamp(1.35rem, 3vw, 1.8rem); }
.note-section p { margin: 0; color: var(--ink-2); font-size: .98rem; line-height: 1.78; }
.note-section p + p { margin-top: .75rem; }
.note-authority-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.note-authority-list article { padding: 1rem; border-left: 3px solid var(--gold); background: #fbf8f0; }
.note-authority-list strong, .note-authority-list span { display: block; }
.note-authority-list span { margin-top: .15rem; color: var(--muted); font-size: .72rem; }
.note-authority-list p { margin: .55rem 0 0; color: var(--ink-2); font-size: .84rem; line-height: 1.55; }
.note-sources { margin: 0 clamp(1.25rem, 4vw, 2.8rem) 1.6rem; padding: .85rem 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--paper-2); }
.note-sources summary { cursor: pointer; color: var(--blue); font-size: .82rem; font-weight: 850; }
.note-sources ol { margin-bottom: 0; padding-left: 1.25rem; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.note-sources a { color: var(--blue); }
.note-next-step { display: flex; justify-content: space-between; align-items: center; gap: 1.2rem; padding: 1.4rem clamp(1.25rem, 4vw, 2.8rem); color: #fff; background: var(--ink); }
.note-next-step h2 { margin: .1rem 0 .25rem; font-family: Georgia, serif; font-size: 1.45rem; }
.note-next-step p { margin: 0; color: rgba(255,255,255,.7); font-size: .8rem; }
.note-next-step .eyebrow { color: var(--gold); }

@media (max-width: 760px) {
  .notes-layout { grid-template-columns: 1fr; gap: 1rem; }
  .notes-index { position: static; padding-top: 0; }
  .notes-index nav { grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); overflow-x: auto; }
  .notes-topic-link { border-right: 1px solid var(--line); }
  .note-authority-list { grid-template-columns: 1fr; }
  .note-next-step { align-items: flex-start; flex-direction: column; }
}

/* Mock player */
.mock-shell { width: min(1100px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 5rem; }
.mock-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0 1.5rem; }
.mock-meta { display: flex; gap: .6rem; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; min-height: 34px; padding: .34rem .68rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink-2); background: #fff; font-size: .82rem; font-weight: 800; }
.pill.timer { color: #fff; border-color: var(--red); background: var(--red); font-variant-numeric: tabular-nums; }
.account-pill { text-decoration: none; }
.account-pill:hover { color: var(--red); border-color: var(--red); }

.setup-card { display: grid; grid-template-columns: 1fr .8fr; gap: 2rem; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.setup-card h1 { margin: 0; font-family: Georgia, serif; font-size: clamp(2.5rem, 6vw, 4.8rem); line-height: .96; letter-spacing: -.045em; }
.setup-card p { color: var(--muted); }
.setup-options { display: grid; gap: .75rem; align-content: start; }
.setup-option { padding: 1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper-2); }
.setup-option strong { display: block; }
.setup-option span { color: var(--muted); font-size: .86rem; }
.mode-choices { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .7rem; margin-top: 1.5rem; }
.mode-choice { min-height: 92px; padding: .9rem; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: var(--paper-2); text-align: left; }
.mode-choice:hover { border-color: var(--ink); }
.mode-choice.active { color: var(--red-dark); border: 2px solid var(--red); background: rgba(15,118,110,.05); }
.mode-choice strong, .mode-choice span { display: block; }
.mode-choice span { margin-top: .18rem; color: var(--muted); font-size: .82rem; }

.mock-layout { display: grid; grid-template-columns: minmax(0,1fr) 260px; gap: 1.2rem; }
.question-panel { min-height: 540px; padding: clamp(1.3rem, 4vw, 2.4rem); border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.question-kicker { display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .82rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.question-panel h1 { margin: 1rem 0 1.5rem; font-family: Georgia, serif; font-size: clamp(1.5rem, 3vw, 2.15rem); line-height: 1.25; }
.answers { display: grid; gap: .7rem; }
.answer { display: grid; grid-template-columns: 34px 1fr; gap: .75rem; align-items: center; width: 100%; padding: .85rem; border: 1px solid var(--line); border-radius: 11px; color: var(--ink); background: #fff; text-align: left; }
.answer:hover { border-color: var(--ink); }
.answer.selected { color: var(--red-dark); border-color: var(--red); background: rgba(15,118,110,.05); }
.answer.correct-choice {
  color: #145c46;
  border-color: #49a47b;
  background: #e8f6ee;
  box-shadow: inset 5px 0 0 #2f8f68;
}
.answer.correct-choice .answer-index { color: #145c46; background: #d4eddf; }
.answer.wrong-choice {
  color: #8a1f3b;
  border-color: #d8758c;
  background: #fdecef;
  box-shadow: inset 5px 0 0 #c44d6b;
}
.answer.wrong-choice .answer-index { color: #8a1f3b; background: #f8d7df; }
.answer[disabled] { cursor: default; opacity: 1; }
.answer-index { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: var(--paper); font-weight: 900; }
.practice-feedback { margin-top: 1rem; padding: 1rem; border: 1px solid rgba(31,107,80,.35); border-left: 5px solid var(--green); border-radius: 10px; color: #174f3c; background: rgba(31,107,80,.07); }
.practice-feedback.incorrect { color: #791d35; border-color: #edbdc8; border-left-color: #c44d6b; background: #fff3f5; }
.practice-feedback strong { display: block; }
.practice-feedback p { margin: .35rem 0 0; }
.practice-feedback .button { margin-top: .8rem; }
.question-actions { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); }

.question-nav { padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.question-nav h2 { margin: 0 0 .7rem; font-family: Georgia, serif; font-size: 1.05rem; }
.nav-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: .38rem; }
.nav-dot { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 7px; color: var(--ink); background: var(--paper-2); font-weight: 850; }
.nav-dot.answered { color: #21624f; border-color: #c5e0d4; background: #edf7f2; }
.nav-dot.current { outline: 3px solid rgba(116,170,163,.2); outline-offset: 1px; }
.legend { display: grid; gap: .35rem; margin: 1rem 0; color: var(--muted); font-size: .78rem; }
.legend span::before { content: ""; display: inline-block; width: 9px; height: 9px; margin-right: .45rem; border: 1px solid var(--line); border-radius: 3px; background: var(--paper-2); }
.legend .done::before { border-color: #c5e0d4; background: #edf7f2; }
.submit-button { width: 100%; }

.result-panel { max-width: 850px; margin: 0 auto; padding: clamp(1.5rem, 5vw, 3rem); border: 1px solid var(--line); border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.score-orb { width: 138px; height: 138px; display: grid; place-items: center; margin: 0 0 1.5rem; border-radius: 50%; color: #fff; background: var(--ink); box-shadow: 9px 9px 0 var(--gold); }
.score-orb strong { display: block; font-family: Georgia, serif; font-size: 2.8rem; line-height: 1; text-align: center; }
.score-orb span { display: block; font-size: .72rem; text-align: center; text-transform: uppercase; letter-spacing: .1em; }
.result-panel h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.2rem); }
.grade-badge { display: inline-flex; margin: .9rem 0 .2rem; padding: .42rem .75rem; border-radius: 999px; color: #fff; background: var(--blue); font-weight: 900; }
.transcript-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.transcript-head h3 { margin: 0; font-family: Georgia, serif; font-size: 1.35rem; }
.review-list { display: grid; gap: .7rem; margin: 1.5rem 0; }
.review-item { padding: 1rem; border: 1px solid var(--line); border-radius: 11px; }
.review-item.correct { border-left: 5px solid var(--green); }
.review-item.incorrect { border-left: 5px solid var(--red); }
.review-item strong { display: block; }
.review-item p { margin: .35rem 0 0; color: var(--muted); font-size: .9rem; }
.transcript-options { display: grid; gap: .35rem; margin-top: .75rem; }
.transcript-option { display: flex; justify-content: space-between; gap: .8rem; padding: .48rem .62rem; border-radius: 7px; background: var(--paper-2); font-size: .88rem; }
.transcript-option.correct { color: #174f3c; background: rgba(31,107,80,.08); font-weight: 750; }
.transcript-option.wrong { color: #8a1f3b; background: #fdecef; }
.transcript-option em { flex: 0 0 auto; font-size: .78rem; font-style: normal; font-weight: 850; }

/* Student account */
.account-page { min-height: calc(100vh - 160px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(380px, .72fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); padding-block: clamp(3.5rem, 8vw, 7rem); }
.account-intro h1 { margin: 0; max-width: 720px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 6vw, 5.3rem); line-height: .96; letter-spacing: -.05em; }
.account-intro > p:not(.eyebrow) { max-width: 620px; margin: 1.4rem 0; color: var(--muted); font-size: 1.08rem; }
.account-benefits { display: grid; gap: .65rem; margin: 1.6rem 0 0; padding: 0; list-style: none; }
.account-benefits li { position: relative; padding-left: 1.8rem; color: var(--ink-2); font-weight: 700; }
.account-benefits li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 950; }
.account-card { min-height: 500px; padding: clamp(1.3rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: 22px 22px 22px 7px; background: #fff; box-shadow: 12px 12px 0 rgba(116,170,163,.3), var(--shadow); }
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; padding: .35rem; margin-bottom: 1.8rem; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.account-tabs button { min-height: 42px; padding: .55rem .7rem; border: 0; border-radius: 9px; color: var(--muted); background: transparent; font-weight: 850; }
.account-tabs button[aria-selected="true"] { color: #fff; background: var(--ink); box-shadow: 0 4px 12px rgba(16,24,23,.14); }
.account-form { display: grid; gap: 1rem; }
.account-form h2, .student-panel h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1; }
.account-form label { display: grid; gap: .38rem; color: var(--ink-2); font-size: .88rem; font-weight: 800; }
.account-form label span { color: var(--muted); font-size: .76rem; font-weight: 650; }
.account-form input { width: 100%; min-height: 48px; padding: .72rem .8rem; border: 1px solid var(--line); border-radius: 9px; color: var(--ink); background: #fff; }
.account-form input:focus { border-color: var(--red); outline: 3px solid rgba(15,118,110,.12); }
.account-form .button { width: 100%; margin-top: .35rem; }
.form-message { min-height: 1.5rem; margin: 0; color: var(--muted); font-size: .86rem; }
.form-message.error { color: var(--red-dark); }
.form-notice { margin-bottom: 1rem; padding: .85rem 1rem; border: 1px solid rgba(15,118,110,.3); border-left: 4px solid var(--red); border-radius: 9px; color: var(--red-dark); background: rgba(15,118,110,.055); font-size: .88rem; }
.form-notice.info { color: var(--blue); border-color: rgba(18,59,93,.3); border-left-color: var(--blue); background: rgba(18,59,93,.06); }
.student-panel { display: grid; justify-items: start; align-content: center; min-height: 430px; }
.student-avatar { width: 72px; height: 72px; display: grid; place-items: center; margin-bottom: 1.3rem; border-radius: 20px 20px 20px 5px; color: #fff; background: var(--ink); font-family: Georgia, serif; font-size: 2rem; font-weight: 800; box-shadow: 7px 7px 0 var(--gold); }
.student-panel > p:not(.eyebrow) { margin: .6rem 0 0; color: var(--muted); }
.student-actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.8rem; }
.text-button { margin-top: 1.4rem; padding: 0; border: 0; color: var(--red); background: transparent; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }

/* Semester checkout */
.checkout-page { min-height: calc(100vh - 160px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, .72fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); padding-block: clamp(3.5rem, 8vw, 7rem); }
.checkout-copy h1 { margin: 0; max-width: 720px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3rem, 6vw, 5.3rem); line-height: .96; letter-spacing: -.05em; }
.checkout-copy > p:not(.eyebrow) { max-width: 650px; margin: 1.4rem 0; color: var(--muted); font-size: 1.08rem; }
.checkout-card { min-height: 500px; display: grid; align-content: center; padding: clamp(1.4rem, 4vw, 2.2rem); border: 1px solid var(--line); border-radius: 22px 22px 22px 7px; background: #fff; box-shadow: 12px 12px 0 rgba(116,170,163,.3), var(--shadow); }
.checkout-card h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(2rem, 4vw, 2.8rem); line-height: 1.05; }
.checkout-card #checkoutCourse { margin: .55rem 0 0; color: var(--muted); }
.checkout-price { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 1.6rem 0 1.1rem; padding: 1.1rem; border-radius: 12px; color: #fff; background: var(--ink); }
.checkout-price strong { font-family: Georgia, "Times New Roman", serif; font-size: 2.8rem; line-height: 1; }
.checkout-price span { color: rgba(255,255,255,.74); font-size: .82rem; font-weight: 800; }
.checkout-includes { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 1.2rem; }
.checkout-includes span { padding: .65rem .55rem; border: 1px solid rgba(31,107,80,.22); border-radius: 8px; color: var(--green); background: rgba(31,107,80,.06); font-size: .76rem; font-weight: 850; text-align: center; }
.checkout-pay { width: 100%; }
.checkout-security { margin: .8rem 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; text-align: center; }
.checkout-success { justify-items: start; }
.checkout-success > span { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 1.2rem; border-radius: 50%; color: #fff; background: var(--green); font-size: 2rem; font-weight: 950; }
.checkout-success p { color: var(--muted); line-height: 1.6; }
.checkout-success .button { margin-top: 1rem; }

/* International visual system */
.brand,
.brand-mark,
.hero h1,
.page-hero h1,
.section-head h2,
.result-panel h2,
.picker-head h2,
.track-card h3,
.price-card h3,
.price strong,
.metric strong,
.process-card::before,
.process-card h3,
.cta-band h2,
.semester-rail h2,
.catalog-head h2,
.subject-card h3,
.written-question-card h2,
.answer-title-row strong,
.answer-heading,
.setup-card h1,
.question-panel h1,
.question-nav h2,
.score-orb strong,
.transcript-head h3,
.account-intro h1,
.account-form h2,
.student-panel h2,
.student-avatar,
.checkout-copy h1,
.checkout-card h2,
.checkout-price strong {
  font-family: var(--font-serif);
}

.header-inner { min-height: 78px; }
.brand { letter-spacing: -.025em; }
.brand-mark { border-radius: 12px; box-shadow: none; background: linear-gradient(145deg, #173c39, var(--ink)); }
.nav a { font-weight: 700; letter-spacing: -.01em; }
.button { border-radius: 999px; padding-inline: 1.25rem; letter-spacing: -.01em; box-shadow: none; }
.button:hover { box-shadow: 0 10px 28px rgba(11,31,51,.16); }
.button:focus-visible { outline-color: rgba(29,78,137,.3); }
.button.red { border-color: var(--red); background: var(--red); }
.eyebrow { letter-spacing: .17em; }
.hero h1, .page-hero h1 { font-weight: 600; }
.hero h1 em { font-weight: 600; }
.hero-copy { color: var(--muted); }
.exam-picker { border: 1px solid rgba(255,255,255,.1); border-radius: 28px; box-shadow: 0 28px 70px rgba(11,31,51,.2); }
.picker-card { border-radius: 14px; }
.section.white { background: rgba(255,255,255,.72); }
.track-card,
.price-card,
.subject-card,
.written-question-card,
.setup-card,
.question-panel,
.question-nav,
.result-panel,
.account-card,
.checkout-card {
  border-color: var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(11,31,51,.055);
}
.track-card,
.price-card,
.subject-card { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.track-card:hover,
.price-card:hover,
.subject-card:hover { transform: translateY(-3px); border-color: #9ec4bf; box-shadow: 0 20px 48px rgba(11,31,51,.09); }
.price-card.featured { border-color: #8fb8b3; box-shadow: 0 16px 44px rgba(11,31,51,.09); }
.metric-strip { box-shadow: 0 12px 40px rgba(11,31,51,.05); }
.cta-band { border-radius: var(--radius); background: linear-gradient(135deg, var(--ink), #0b4f4a); }
.segmented { border-color: var(--line); background: #e7f0ee; }
.semester-rail { border-radius: var(--radius); box-shadow: 0 10px 30px rgba(11,31,51,.045); }
.semester-button[aria-current="true"] { color: var(--blue); border-color: rgba(29,78,137,.25); background: rgba(29,78,137,.07); }
.preview-banner { border-left-color: var(--blue); border-radius: 0 12px 12px 0; background: #eef8f6; }
.unit-row { border-radius: 11px; }
.unit-row.locked, .internal-button.locked { background: #f0f5f4; }
.written-question-head { color: var(--blue); }
.question-type-filter.active { border-color: var(--blue); background: var(--blue); }
.answer-framework { box-shadow: 0 12px 34px rgba(19,121,91,.06); }
.score-orb, .student-avatar { box-shadow: none; }
.account-card, .checkout-card { border-radius: 24px; box-shadow: 0 24px 64px rgba(11,31,51,.09); }
.checkout-price { background: linear-gradient(135deg, var(--ink), #0b4f4a); }
.site-footer { background: rgba(255,255,255,.5); }

/* Compact white, teal and black presentation */
.site-header { border-bottom-color: var(--line); }
.header-inner { min-height: 68px; }
.brand { font-size: 1.25rem; }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 5px;
  background: var(--ink);
}
.nav { gap: 1.25rem; }
.button {
  min-height: 42px;
  padding: .58rem 1rem;
  border-radius: 5px;
  font-size: .9rem;
}
.button:hover { box-shadow: 0 7px 18px rgba(16, 35, 32, .12); }
.button.red { border-color: var(--red); background: var(--red); }
.button.red:hover { background: var(--red-dark); }
.button.secondary { border-color: var(--ink); background: #fff; }

.hero {
  min-height: auto;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, .82fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding: 4rem 0 3.6rem;
}
.hero h1,
.page-hero h1 {
  font-size: clamp(2.75rem, 5vw, 4.65rem);
  line-height: 1.01;
  letter-spacing: -.03em;
}
.hero-copy {
  max-width: 630px;
  margin-top: 1.05rem;
  font-size: 1.02rem;
  line-height: 1.65;
}
.hero-actions { margin-top: 1.4rem; }
.exam-picker {
  padding: 1.2rem;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--shadow);
}
.exam-picker::before { color: rgba(15, 118, 110, .035); font-size: 10rem; }
.picker-head { margin-bottom: .7rem; }
.picker-head h2 { font-size: 1.35rem; }
.picker-head span { color: var(--muted); }
.picker-card {
  padding: .82rem .9rem;
  margin-top: .5rem;
  color: var(--ink);
  border-color: var(--line);
  border-radius: 7px;
  background: var(--paper);
}
.picker-card:hover { border-color: var(--red); background: #eef8f6; }
.picker-card small { color: var(--muted); }
.picker-card b { color: var(--red); }

.section { padding: clamp(2rem, 3.5vw, 2.8rem) 0; }
.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
  align-items: end;
  gap: 1.5rem;
  margin-bottom: 1.1rem;
}
.section-head h2 { font-size: clamp(1.75rem, 2.75vw, 2.4rem); line-height: 1.05; letter-spacing: -.02em; }
.section-head p { max-width: 430px; font-size: .86rem; line-height: 1.55; }
.track-grid,
.pricing-grid,
.process-grid { gap: .85rem; }
.track-card { min-height: 300px; padding: 1.2rem; }
.track-card h3 { margin-top: .8rem; font-size: 1.55rem; }
.track-card p,
.track-card ul,
.price-card ul { margin-bottom: .85rem; font-size: .8rem; line-height: 1.55; }
.price-card { min-height: 270px; padding: 1rem; border-radius: 8px; }
.price-card h3 { margin-top: .65rem; font-size: 1.2rem; }
.price-card .label { padding: .22rem .5rem; font-size: .67rem; }
.price { margin: .7rem 0; padding: .62rem 0; }
.price strong { font-size: 1.85rem; }
.price span { font-size: .75rem; }
.price-card .button { min-height: 38px; padding: .45rem .75rem; font-size: .8rem; }
.metric { padding: 1.15rem; }
.metric strong { font-size: 1.7rem; }
.process-card { padding: .9rem .8rem 1rem 3.25rem; }
.process-card::before { top: .85rem; font-size: 1.55rem; }
.process-card h3 { font-size: 1.08rem; }
.process-card p { font-size: .82rem; line-height: 1.55; }
.cta-band { padding: 1.25rem 1.4rem; gap: 1.25rem; border-radius: 8px; background: linear-gradient(135deg, var(--ink), var(--red-dark)); }
.cta-band h2 { font-size: clamp(1.55rem, 2.4vw, 2rem); }
.cta-band p { margin-top: .4rem; font-size: .82rem; }

.page-hero { padding: 3rem 0 1.5rem; }
.page-hero h1 { max-width: 760px; font-size: clamp(2.35rem, 4.2vw, 3.65rem); }
.page-hero p { font-size: 1rem; }
.semester-layout { grid-template-columns: 245px minmax(0, 1fr); gap: 1.2rem; padding-bottom: 4rem; }
.semester-rail { top: 82px; border-radius: 9px; }
.catalog-head h2 { font-size: 2rem; }
.subject-card { min-height: 190px; padding: 1.05rem; border-radius: 9px; }
.semester-subject { min-height: 280px; }
.subject-card h3 { font-size: 1.15rem; }
.unit-row { min-height: 48px; border-radius: 6px; }
.written-practice-shell { max-width: 920px; }
.written-question-list { gap: .9rem; }
.question-bank-toolbar { padding: .85rem; border-radius: 8px; }
.written-question-card { padding: 1.2rem; border-radius: 9px; }
.written-question-card h2 { margin: .55rem 0 1rem; font-size: clamp(1.2rem, 2.3vw, 1.5rem); }
.answer-framework { padding: 1.15rem; border-radius: 8px; }
.mock-shell { width: min(1020px, calc(100% - 2rem)); padding: 1.4rem 0 4rem; }
.mock-topbar { padding: .75rem 0 1.1rem; }
.setup-card { gap: 1.4rem; padding: 1.5rem; border-radius: 10px; }
.setup-card h1 { font-size: clamp(2.25rem, 4.2vw, 3.55rem); line-height: 1; letter-spacing: -.025em; }
.setup-option { padding: .85rem; border-radius: 7px; }
.mode-choices { margin-top: 1rem; }
.mode-choice { min-height: 78px; border-radius: 7px; }
.question-panel { min-height: 470px; padding: 1.5rem; border-radius: 9px; }
.question-panel h1 { margin: .8rem 0 1.15rem; font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
.answer { padding: .72rem; border-radius: 7px; }
.question-nav { border-radius: 9px; }
.result-panel { padding: 1.7rem; border-radius: 10px; }
.result-panel h2 { font-size: clamp(1.85rem, 3.2vw, 2.65rem); }
.score-orb { width: 112px; height: 112px; }
.score-orb strong { font-size: 2.25rem; }

.account-page,
.checkout-page {
  min-height: auto;
  grid-template-columns: minmax(0, .95fr) minmax(350px, .68fr);
  gap: clamp(2rem, 5vw, 4rem);
  padding-block: 4rem;
}
.account-intro h1,
.checkout-copy h1 { font-size: clamp(2.6rem, 4.4vw, 4rem); line-height: 1; letter-spacing: -.03em; }
.account-card,
.checkout-card { min-height: 430px; padding: 1.5rem; border-radius: 10px; box-shadow: var(--shadow); }
.account-form h2,
.student-panel h2,
.checkout-card h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.checkout-price { border-radius: 7px; }

.site-footer { padding: 1.8rem 0; color: var(--muted); background: #fff; }

/* Compact trust signal above the two core preparation paths */
#tracks, #entrance, #about { scroll-margin-top: 88px; }
.trust-band { padding: .9rem 0 0; }
.trust-strip {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, .65fr);
  align-items: center;
  gap: 1rem;
  padding: .85rem 1rem;
  color: #f7fffd;
  border: 1px solid #184f4b;
  border-radius: 10px;
  background: linear-gradient(125deg, #123c39, #0d625a);
  box-shadow: 0 10px 28px rgba(14, 58, 53, .12);
}
.trust-message .eyebrow { margin: 0 0 .22rem; color: #a8ddd5; font-size: .62rem; }
.trust-message > strong { display: block; font-family: var(--font-serif); font-size: clamp(1.02rem, 1.65vw, 1.28rem); line-height: 1.18; }
.trust-message > span { display: block; margin-top: .25rem; color: #cce2de; font-size: .7rem; line-height: 1.4; }
.trust-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 7px;
  background: rgba(255, 255, 255, .08);
}
.trust-points > span { min-height: 58px; display: grid; align-content: center; padding: .5rem .6rem; border-right: 1px solid rgba(255, 255, 255, .16); }
.trust-points > span:last-child { border-right: 0; }
.trust-points strong, .trust-points small { display: block; }
.trust-points strong { font-size: .78rem; }
.trust-points small { margin-top: .08rem; color: #bcd7d2; font-size: .58rem; line-height: 1.25; }

/* Direct homepage entry: entrance exams and university semesters */
.home-entry { padding: 1rem 0 2.2rem; }
.home-entry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.entry-panel {
  min-height: 330px;
  display: flex;
  flex-direction: column;
  padding: clamp(1.2rem, 2.3vw, 1.55rem);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow);
}
.entry-panel h1,
.entry-panel .entry-heading {
  max-width: 650px;
  margin: .65rem 0 .7rem;
  font-family: var(--font-serif);
  font-size: clamp(1.75rem, 2.65vw, 2.4rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.03em;
}
.entry-panel > div:first-child > .eyebrow {
  display: inline-block;
  margin: 0;
  padding: .38rem .58rem;
  color: #075a54;
  border: 1px solid #a9d4cf;
  border-radius: 5px;
  background: #e5f4f1;
  font-size: clamp(.88rem, 1.25vw, 1.02rem);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: .075em;
}
.entry-panel h1 em,
.entry-panel .entry-heading em { color: var(--red); font-style: normal; }
.entry-copy {
  max-width: 600px;
  margin: 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.48;
}
.entry-options {
  display: grid;
  gap: .5rem;
  margin-top: auto;
  padding-top: .9rem;
}
.entry-option {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding: .58rem .8rem;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.entry-option:hover {
  transform: translateY(-2px);
  border-color: #7fb5ae;
  box-shadow: 0 10px 24px rgba(16, 35, 32, .08);
}
.entry-option strong,
.entry-option small { display: block; }
.entry-option strong { font-size: 1rem; }
.entry-option small { margin-top: .12rem; color: var(--muted); font-size: .75rem; line-height: 1.35; }
.entry-option b { color: var(--red); font-size: 1.35rem; }
.entry-note { margin: .6rem 0 0; color: var(--muted); font-size: .74rem; line-height: 1.4; }
.semester-entry {
  color: var(--ink);
  border-color: #bedbd4;
  background: linear-gradient(145deg, #f1f9f6, #e8f4f0);
}
.semester-entry h1 em { color: #126a55; }
.semester-entry > div:first-child > .eyebrow {
  color: #115e4c;
  border-color: #abd2c7;
  background: #dff1eb;
}
.semester-entry .entry-copy,
.semester-entry .entry-note { color: #536d66; }
.semester-entry .entry-option {
  color: var(--ink);
  border-color: #c6ddd7;
  background: rgba(255, 255, 255, .68);
}
.semester-entry .entry-option:hover { border-color: #72ad9d; background: rgba(255, 255, 255, .92); }
.semester-entry .entry-option small { color: #60756f; }
.semester-entry .entry-option b { color: #126a55; }

.entrance-entry {
  border-color: #cbd9ea;
  background: linear-gradient(145deg, #f5f8fc, #edf3f9);
}
.entrance-entry h1 em { color: #315f8a; }
.entrance-entry > div:first-child > .eyebrow {
  color: #315f8a;
  border-color: #bfd0e3;
  background: #e6eef7;
}
.entrance-entry .entry-option {
  border-color: #cfdae8;
  background: rgba(255, 255, 255, .72);
}
.entrance-entry .entry-option:hover { border-color: #829fbe; background: rgba(255, 255, 255, .94); }
.entrance-entry .entry-option b { color: #315f8a; }

.why-section { background: #fff; }
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .6rem;
}
.benefit-card {
  min-height: 155px;
  padding: .9rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
}
.benefit-card > span {
  color: var(--red);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
}
.benefit-card h3 { margin: .72rem 0 .4rem; font-family: var(--font-serif); font-size: 1.08rem; line-height: 1.2; }
.benefit-card p { margin: 0; color: var(--muted); font-size: .78rem; line-height: 1.5; }

.about-section { border-block: 1px solid var(--line); background: #eef6f4; }
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(1.5rem, 3vw, 2.5rem);
}
.about-copy h2 { margin: .45rem 0 .75rem; font-family: var(--font-serif); font-size: clamp(1.75rem, 2.8vw, 2.35rem); line-height: 1.04; }
.about-copy > p:not(.eyebrow) { color: var(--muted); font-size: .82rem; line-height: 1.58; }
.about-copy > p strong { color: var(--ink); }
.about-copy .text-link { font-size: .82rem; }
.about-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: .9rem 0 .8rem;
  border: 1px solid #c9ded9;
  border-radius: 7px;
  background: rgba(255, 255, 255, .58);
}
.about-facts > span { min-height: 66px; display: grid; align-content: center; padding: .55rem .65rem; border-right: 1px solid #c9ded9; }
.about-facts > span:last-child { border-right: 0; }
.about-facts strong, .about-facts small { display: block; }
.about-facts strong { color: #0f6259; font-size: .78rem; }
.about-facts small { margin-top: .1rem; color: var(--muted); font-size: .6rem; line-height: 1.3; }
.platform-panel { padding: .9rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(11,31,51,.06); }
.platform-heading { margin: 0 0 .6rem; font-size: .88rem; font-weight: 800; }
.platform-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: .45rem; }
.platform-grid a {
  position: relative;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: .65rem 1.55rem .65rem .72rem;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--paper);
  transition: border-color .2s ease, transform .2s ease;
}
.platform-grid a:hover { transform: translateY(-2px); border-color: #7fb5ae; }
.platform-grid a::after { content: "↗"; position: absolute; top: .48rem; right: .58rem; color: #6d8581; font-size: .72rem; }
.platform-grid a:nth-child(1) { border-left: 3px solid #f36b43; }
.platform-grid a:nth-child(2) { border-left: 3px solid #2870d8; }
.platform-grid a:nth-child(3) { border-left: 3px solid #45cfaa; }
.platform-grid a:nth-child(4) { border-left: 3px solid #ed9137; }
.platform-grid a:nth-child(5) { border-left: 3px solid #2869c9; }
.platform-grid a:nth-child(6) { border-left: 3px solid #6b7950; }
.platform-grid a:nth-child(7) { border-left: 3px solid #8956df; }
.platform-grid a:nth-child(8) { border-left: 3px solid #e7a410; }
.platform-grid strong { font-size: .8rem; }
.platform-grid small { margin-top: .15rem; color: var(--muted); font-size: .68rem; line-height: 1.35; }

/* Student and administrator dashboard */
.account-shell { padding: 2.5rem 0 4rem; }
.account-auth-view {
  min-height: calc(100vh - 190px);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(350px, .68fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
}
.account-auth-view .account-intro h1 { font-size: clamp(2.5rem, 4.2vw, 4rem); }
.account-auth-view .account-intro > p:not(.eyebrow) { margin: 1rem 0; font-size: .95rem; }
.account-auth-view .account-benefits { margin-top: 1.1rem; font-size: .88rem; }
.account-auth-view .account-card { min-height: 430px; padding: 1.4rem; border-radius: 10px; box-shadow: var(--shadow); }
.account-privacy-note { margin: .65rem .15rem 0; color: var(--muted); font-size: .62rem; line-height: 1.45; }

.account-dashboard { display: grid; gap: 1rem; }
.dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-bottom: 1.15rem;
  border-bottom: 1px solid var(--line);
}
.dashboard-identity { display: flex; align-items: center; gap: 1rem; }
.dashboard-identity .student-avatar { width: 54px; height: 54px; margin: 0; border-radius: 7px; font-size: 1.5rem; }
.dashboard-identity h1 { margin: .15rem 0 0; font-family: var(--font-serif); font-size: clamp(1.8rem, 3vw, 2.45rem); line-height: 1; }
.dashboard-identity p:last-child { margin: .35rem 0 0; color: var(--muted); font-size: .82rem; }
.dashboard-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .5rem; }
.dashboard-actions .button { min-height: 38px; padding: .45rem .8rem; font-size: .78rem; }
.dashboard-actions .text-button { margin: 0 0 0 .25rem; font-size: .78rem; }

.admin-shortcuts {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .55rem;
  padding: .75rem .9rem;
  color: #59410e;
  border: 1px solid #d9c789;
  border-radius: 7px;
  background: #fff8df;
  font-size: .78rem;
}
.admin-shortcuts a { font-weight: 800; text-underline-offset: 3px; }

.dashboard-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.dashboard-summary article {
  min-height: 112px;
  display: grid;
  align-content: center;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}
.dashboard-summary span,
.admin-stats span { color: var(--muted); font-size: .67rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.dashboard-summary strong { margin-top: .25rem; font-family: var(--font-serif); font-size: 1.6rem; line-height: 1.1; }
.dashboard-summary small { margin-top: .2rem; color: var(--muted); font-size: .7rem; }

.dashboard-section { border: 1px solid var(--line); border-radius: 8px; background: #fff; overflow: hidden; }
.dashboard-section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.dashboard-section-head h2 { margin: 0; font-family: var(--font-serif); font-size: 1.25rem; }
.dashboard-section-head p { margin: .15rem 0 0; color: var(--muted); font-size: .72rem; }
.dashboard-section-head .button { min-height: 34px; padding: .38rem .7rem; font-size: .72rem; }
.dashboard-columns { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr); gap: 1rem; align-items: start; }

.access-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; padding: .9rem; }
.access-card { padding: .85rem; border: 1px solid var(--line); border-radius: 7px; background: var(--paper); }
.access-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.access-card h3 { margin: 0; font-family: var(--font-serif); font-size: 1.05rem; }
.access-card p { margin: .2rem 0 0; color: var(--muted); font-size: .7rem; }
.status-pill { display: inline-flex; flex: 0 0 auto; padding: .22rem .42rem; border-radius: 999px; color: #17633d; background: #e3f3ea; font-size: .61rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.status-pill.expired, .status-pill.revoked, .status-pill.cancelled, .status-pill.failed { color: #5f6b69; background: #e9efee; }
.status-pill.refunded, .status-pill.pending, .status-pill.created { color: #7a5718; background: #fff3cf; }
.access-dates { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: .7rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.access-dates span { display: block; color: var(--muted); font-size: .64rem; }
.access-dates strong { display: block; margin-top: .1rem; font-size: .74rem; }
.access-progress { height: 5px; margin-top: .65rem; overflow: hidden; border-radius: 999px; background: #dfe9e7; }
.access-progress span { display: block; height: 100%; border-radius: inherit; background: var(--red); }

.attempt-list { display: grid; }
.attempt-row { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
.attempt-row:last-child { border-bottom: 0; }
.attempt-row strong, .attempt-row small { display: block; }
.attempt-row strong { font-size: .8rem; }
.attempt-row small { margin-top: .15rem; color: var(--muted); font-size: .67rem; }
.attempt-row > span { flex: 0 0 auto; color: var(--red-dark); font-size: .76rem; font-weight: 900; }

.profile-details { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: .8rem 1rem; gap: .65rem; }
.profile-details dt { color: var(--muted); font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; }
.profile-details dd { margin: .12rem 0 0; overflow-wrap: anywhere; font-size: .75rem; font-weight: 750; }
.support-box { margin: 0 1rem 1rem; padding: .75rem; border-left: 3px solid var(--red); border-radius: 0 6px 6px 0; background: #eef7f5; font-size: .75rem; }
.support-box p { margin: .15rem 0; color: var(--muted); }
.support-box a { color: var(--red-dark); font-weight: 850; }

.dashboard-empty { padding: 1.35rem 1rem; text-align: center; }
.dashboard-empty strong { font-family: var(--font-serif); font-size: 1.05rem; }
.dashboard-empty p { max-width: 560px; margin: .3rem auto .7rem; color: var(--muted); font-size: .75rem; }
.dashboard-table-wrap { overflow-x: auto; }
.dashboard-table { width: 100%; min-width: 660px; border-collapse: collapse; font-size: .72rem; }
.dashboard-table th, .dashboard-table td { padding: .7rem .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.dashboard-table tr:last-child td { border-bottom: 0; }
.dashboard-table th { color: var(--muted); background: var(--paper); font-size: .62rem; letter-spacing: .06em; text-transform: uppercase; }
.dashboard-table strong, .dashboard-table small { display: block; }
.dashboard-table small { margin-top: .12rem; color: var(--muted); font-size: .64rem; }

.admin-dashboard { display: grid; gap: 1rem; margin-top: .5rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); }
.admin-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; }
.admin-title h2 { margin: .15rem 0 0; font-family: var(--font-serif); font-size: 1.8rem; }
.admin-title p:not(.eyebrow) { margin: .3rem 0 0; color: var(--muted); font-size: .76rem; }
.admin-title > span { padding: .3rem .5rem; border-radius: 999px; color: #59410e; background: #fff3cf; font-size: .63rem; font-weight: 850; }
.admin-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .55rem; }
.admin-stats article { min-height: 90px; display: grid; align-content: center; padding: .75rem; border: 1px solid var(--line); border-radius: 7px; background: #fff; }
.admin-stats strong { margin-top: .2rem; font-family: var(--font-serif); font-size: 1.35rem; }
.admin-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.admin-users-section .dashboard-table { min-width: 1120px; }
.admin-user-filters {
  display: grid;
  grid-template-columns: minmax(230px, 1.4fr) minmax(190px, .8fr) auto auto;
  align-items: end;
  gap: .55rem;
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--line);
  background: #f8fbfa;
}
.admin-user-filters label { display: grid; gap: .25rem; color: var(--muted); font-size: .62rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.admin-user-filters input,
.admin-user-filters select { min-height: 38px; width: 100%; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: #fff; font: inherit; font-size: .72rem; letter-spacing: normal; text-transform: none; }
.admin-user-filters .button { min-height: 38px; }
.admin-analytics-note { margin: .7rem 1rem 0; padding: .6rem .7rem; border-left: 3px solid #d8a82f; background: #fff8df; color: #59410e; font-size: .7rem; }
.admin-pagination { min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .65rem 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .7rem; }
.admin-pagination div { display: flex; gap: .45rem; }
.admin-pagination button { min-height: 32px; padding: .3rem .65rem; border: 1px solid var(--line); border-radius: 5px; color: var(--ink); background: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.admin-pagination button:disabled { cursor: default; opacity: .4; }
.admin-online { display: inline-flex; align-items: center; gap: .3rem; color: #17633d; font-weight: 850; }
.admin-online::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #25a76f; box-shadow: 0 0 0 3px #e3f3ea; }
.admin-location { max-width: 190px; }

.hidden { display: none !important; }

@media (max-width: 900px) {
  .trust-strip { grid-template-columns: 1fr; }
  .account-auth-view { grid-template-columns: 1fr; min-height: auto; }
  .dashboard-columns, .admin-columns { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-user-filters { grid-template-columns: 1fr 1fr; }
  .home-entry-grid { grid-template-columns: 1fr; }
  .entry-panel { min-height: auto; }
  .entry-options { margin-top: .6rem; }
  .benefit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 3rem 0 3.5rem; }
  .hero h1 { max-width: 780px; }
  .track-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .track-card { min-height: auto; }
  .metric-strip { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .semester-layout { grid-template-columns: 1fr; }
  .semester-rail { position: static; }
  .semester-list { grid-template-columns: repeat(3, 1fr); }
  .mock-layout { grid-template-columns: 1fr; }
  .question-nav { order: -1; }
  .nav-grid { grid-template-columns: repeat(10, 1fr); }
  .setup-card { grid-template-columns: 1fr; }
  .account-page, .checkout-page { grid-template-columns: 1fr; align-items: start; }
  .account-intro h1 { max-width: 780px; }
}

@media (max-width: 680px) {
  .shell, .mock-shell { width: min(100% - 1.2rem, 1180px); }
  .site-header { position: static; }
  #tracks, #entrance, #about { scroll-margin-top: 12px; }
  .header-inner { min-height: 68px; }
  .nav a:not(.button) { display: none; }
  .nav .button { min-height: 40px; padding: .5rem .7rem; font-size: .82rem; }
  .trust-band { padding-top: .65rem; }
  .trust-strip { padding: .8rem; }
  .home-entry { padding: .7rem 0 2rem; }
  .entry-panel { padding: 1.05rem; border-radius: 9px; }
  .entry-panel h1,
  .entry-panel .entry-heading { font-size: clamp(1.8rem, 8vw, 2.35rem); }
  .entry-option { padding: .7rem .75rem; }
  .account-shell { padding: 1.5rem 0 3rem; }
  .dashboard-head, .admin-title { align-items: flex-start; flex-direction: column; }
  .dashboard-actions { justify-content: flex-start; }
  .dashboard-summary, .access-list, .profile-details, .admin-stats { grid-template-columns: 1fr; }
  .dashboard-summary article { min-height: 92px; }
  .admin-shortcuts span { display: none; }
  .admin-user-filters { grid-template-columns: 1fr; }
  .admin-pagination { align-items: flex-start; flex-direction: column; }
  .benefit-grid, .platform-grid { grid-template-columns: 1fr; }
  .benefit-card { min-height: auto; }
  .hero { padding-top: 2.5rem; }
  .hero h1 { font-size: clamp(2.45rem, 12vw, 3.5rem); }
  .section-head, .catalog-head, .footer-grid { align-items: flex-start; flex-direction: column; }
  .section-head { display: flex; }
  .process-grid { grid-template-columns: 1fr; }
  .cta-band { grid-template-columns: 1fr; }
  .metric-strip { grid-template-columns: 1fr; }
  .metric, .metric:nth-child(2) { border-right: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .semester-list { grid-template-columns: repeat(2, 1fr); }
  .subject-grid { grid-template-columns: 1fr; }
  .unit-row { grid-template-columns: 52px minmax(0,1fr); }
  .unit-row em { grid-column: 2; justify-self: start; }
  .mock-topbar { align-items: flex-start; flex-direction: column; }
  .nav-grid { grid-template-columns: repeat(5, 1fr); }
  .question-actions { flex-wrap: wrap; }
  .question-actions .button { flex: 1; }
  .mode-choices { grid-template-columns: 1fr; }
  .transcript-head { align-items: flex-start; flex-direction: column; }
  .account-page, .checkout-page { padding-block: 2.75rem 4rem; }
  .account-card { min-height: auto; }
  .student-actions { display: grid; width: 100%; }
  .checkout-includes { grid-template-columns: 1fr; }
}

@media print {
  body { background: #fff; }
  .mock-topbar, .result-panel > .hero-actions, #printButton { display: none !important; }
  .mock-shell { width: 100%; padding: 0; }
  .result-panel { max-width: none; padding: 0; border: 0; box-shadow: none; }
  .review-item { break-inside: avoid; }
}

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

/* Professional written-question presentation */
.written-question-card {
  overflow: hidden;
  padding: 0 1.15rem 1.15rem;
  border-color: #cbdedb;
  border-radius: 8px;
  box-shadow: 0 5px 18px rgba(15, 45, 42, .045);
}
.written-question-head {
  margin: 0 -1.15rem .95rem;
  padding: .68rem 1.15rem;
  border-bottom: 1px solid #c7dcda;
  color: #174f4a;
  background: #eaf4f3;
  font-family: Arial, Helvetica, sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .035em;
}
.written-question-card h2 {
  max-width: 900px;
  margin: 0 0 .85rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(1.08rem, 1.7vw, 1.3rem);
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -.008em;
}
.written-actions { margin-top: .45rem; }
.written-actions .button {
  min-height: 38px;
  padding: .48rem .8rem;
  border-radius: 6px;
  font-size: .78rem;
}
.answer-title-row strong {
  font-family: "Times New Roman", Times, serif;
  font-size: clamp(1.08rem, 2vw, 1.3rem);
}

@media (max-width: 700px) {
  .written-question-card { padding: 0 .85rem .9rem; }
  .written-question-head {
    margin: 0 -.85rem .8rem;
    padding: .62rem .85rem;
  }
}

/* Refined entrance MCQ experience */
.mock-shell {
  width: min(1180px, calc(100% - 2rem));
}
.mock-layout {
  grid-template-columns: minmax(0, 1fr) 282px;
  gap: 1.5rem;
  align-items: start;
}
.question-panel {
  min-height: 520px;
  padding: clamp(1.35rem, 3vw, 2.15rem);
  border: 1px solid #e2ecea;
  border-radius: 24px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 18px 45px rgba(21, 62, 57, .075);
}
.question-kicker {
  padding-bottom: .85rem;
  border-bottom: 1px solid #edf3f2;
  color: #60736f;
  font-size: .76rem;
  letter-spacing: .085em;
}
.question-panel h1,
.question-panel h2 {
  max-width: 900px;
  margin: 1.25rem 0 1.6rem;
  font-family: var(--font-sans);
  font-size: clamp(1.18rem, 1.9vw, 1.58rem);
  font-weight: 760;
  line-height: 1.36;
  letter-spacing: -.018em;
}
.answers { gap: .8rem; }
.answer {
  min-height: 64px;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: .9rem;
  padding: .82rem 1rem;
  border: 1px solid #dde9e7;
  border-radius: 16px;
  background: linear-gradient(145deg, #fff, #fbfdfd);
  line-height: 1.45;
  box-shadow: 0 3px 10px rgba(20, 55, 51, .025);
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}
.answer:hover:not([disabled]) {
  border-color: #8dbab5;
  background: #f5fbfa;
  box-shadow: 0 8px 20px rgba(20, 79, 71, .075);
  transform: translateY(-1px);
}
.answer.selected {
  color: #124f4a;
  border-color: #75aaa4;
  background: #edf8f6;
  box-shadow: 0 0 0 3px rgba(116, 170, 163, .12);
}
.answer-index {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  color: #37514d;
  background: #f1f6f5;
}
.answer.selected .answer-index {
  color: #0b6058;
  background: #dcefeb;
}
.answer.correct-choice {
  border-color: #82bca1;
  border-left: 4px solid #36926d;
  background: #edf8f2;
  box-shadow: none;
}
.answer.wrong-choice {
  border-color: #e2a7b5;
  border-left: 4px solid #c55370;
  background: #fff0f3;
  box-shadow: none;
}
.practice-feedback {
  margin-top: 1.2rem;
  padding: 1rem 1.1rem;
  border-radius: 14px;
}
.question-actions { margin-top: 1.5rem; }

.question-nav {
  position: sticky;
  top: 1rem;
  padding: 1.1rem;
  border: 1px solid #e2ecea;
  border-radius: 20px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 14px 36px rgba(21, 62, 57, .065);
  backdrop-filter: blur(10px);
}
.question-nav h2 {
  margin-bottom: .8rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 800;
}
.nav-grid {
  max-height: min(54vh, 470px);
  overflow-y: auto;
  gap: .45rem;
  padding: .18rem .28rem .18rem .1rem;
  scrollbar-color: #c5d8d5 transparent;
  scrollbar-width: thin;
}
.nav-dot {
  min-height: 40px;
  border-color: #dfeae8;
  border-radius: 11px;
  color: #344744;
  background: #fbfdfd;
  font-weight: 780;
  box-shadow: 0 2px 6px rgba(22, 60, 55, .025);
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
.nav-dot:hover:not([disabled]) {
  border-color: #9bbfbb;
  background: #f3f9f8;
}
.nav-dot.answered {
  color: #21624f;
  border-color: #c5e0d4;
  background: #edf7f2;
}
.nav-dot.current,
.nav-dot.answered.current {
  color: #0b5e57;
  border-color: #75aaa4;
  background: #e8f4f2;
  outline: 0;
  box-shadow: 0 0 0 3px rgba(116, 170, 163, .2);
}
.nav-dot[disabled] { cursor: default; opacity: .62; }
.legend { margin: .9rem 0; }
.legend span::before { background: #fbfdfd; }
.legend .done::before {
  border-color: #c5e0d4;
  background: #edf7f2;
}
.button.quiet {
  color: var(--muted);
  border-color: transparent;
  background: transparent;
}
.button.quiet:hover {
  color: var(--ink);
  background: #f1f6f5;
  box-shadow: none;
}

@media (max-width: 900px) {
  .mock-layout { grid-template-columns: 1fr; }
  .question-nav { position: static; order: -1; }
  .nav-grid {
    grid-template-columns: repeat(10, minmax(38px, 1fr));
    max-height: 230px;
  }
}

@media (max-width: 680px) {
  .mock-shell { width: min(100% - 1rem, 1180px); }
  .question-panel { padding: 1rem; border-radius: 18px; }
  .question-panel h1,
  .question-panel h2 { margin: 1rem 0 1.25rem; font-size: 1.12rem; }
  .answer { min-height: 58px; padding: .72rem .8rem; border-radius: 13px; }
  .question-nav { padding: .9rem; border-radius: 16px; }
  .nav-grid { grid-template-columns: repeat(6, 1fr); max-height: 224px; }
  .nav-dot { min-height: 38px; }
}

/* Compact, crawlable home-page FAQ */
.seo-faq-section { padding-block: clamp(2.4rem, 5vw, 4rem); }
.seo-faq-wrap { max-width: 1020px; }
.compact-head { margin-bottom: 1.15rem; }
.seo-faq-list { display: grid; gap: .65rem; }
.seo-faq-list details {
  border: 1px solid #dce8e6;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(16, 55, 50, .035);
}
.seo-faq-list summary {
  position: relative;
  padding: .9rem 2.8rem .9rem 1rem;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}
.seo-faq-list summary::-webkit-details-marker { display: none; }
.seo-faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 1rem;
  color: var(--red);
  font-size: 1.25rem;
  line-height: 1;
  transform: translateY(-50%);
}
.seo-faq-list details[open] summary::after { content: "−"; }
.seo-faq-list details[open] summary { border-bottom: 1px solid #edf3f2; }
.seo-faq-list details p {
  margin: 0;
  padding: .85rem 1rem 1rem;
  color: var(--muted);
  font-size: .91rem;
  line-height: 1.7;
}
.seo-faq-list details p strong { color: var(--ink-2); }

/* Crawlable semester paper index: compact until a learner opens a course */
.semester-paper-index {
  margin: 0 0 clamp(2.8rem, 6vw, 5rem);
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border: 1px solid #dce8e6;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #f9fcfb);
  box-shadow: 0 12px 32px rgba(16, 55, 50, .045);
}
.semester-index-head { max-width: 800px; margin-bottom: 1rem; }
.semester-index-head h2 { margin: .2rem 0 .45rem; font-size: clamp(1.45rem, 2.5vw, 2rem); }
.semester-index-head > p:last-child { margin: 0; color: var(--muted); line-height: 1.65; }
.paper-index-courses { display: grid; gap: .7rem; }
.paper-index-courses details {
  overflow: hidden;
  border: 1px solid #dce8e6;
  border-radius: 14px;
  background: #fff;
}
.paper-index-courses summary {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 3rem .95rem 1rem;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}
.paper-index-courses summary::-webkit-details-marker { display: none; }
.paper-index-courses summary::after {
  content: "+";
  position: absolute;
  right: 1rem;
  color: var(--red);
  font-size: 1.25rem;
}
.paper-index-courses details[open] summary { border-bottom: 1px solid #e8f0ef; }
.paper-index-courses details[open] summary::after { content: "−"; }
.paper-index-courses summary span { color: var(--muted); font-size: .82rem; font-weight: 700; }
.paper-semester-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .7rem;
  padding: .8rem;
}
.paper-semester-grid article {
  padding: .9rem 1rem;
  border: 1px solid #e4eeec;
  border-radius: 12px;
  background: #fbfdfd;
}
.paper-semester-grid h3 {
  margin: 0 0 .5rem;
  color: var(--green);
  font-family: var(--font-sans);
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.paper-semester-grid ol { margin: 0; padding-left: 1.25rem; }
.paper-semester-grid li { padding: .16rem 0; color: var(--ink-2); font-size: .87rem; line-height: 1.45; }

/* Predictive-paper selection and released-paper presentation */
.predictive-page { padding-bottom: clamp(4rem, 8vw, 7rem); }
.predictive-hero { max-width: 980px; }
.predictive-filter-card {
  display: grid;
  grid-template-columns: minmax(240px, .62fr) minmax(0, 1.38fr);
  gap: clamp(1.2rem, 4vw, 3rem);
  margin-bottom: 1.5rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(16, 55, 50, .06);
}
.predictive-filter-copy h2 { margin: 0; font-family: var(--font-serif); font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.05; }
.predictive-filter-copy > p:last-child { margin: .65rem 0 0; color: var(--muted); font-size: .88rem; }
.predictive-filter-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; align-items: end; }
.predictive-filter-form label { display: grid; gap: .35rem; color: var(--ink-2); font-size: .76rem; font-weight: 850; }
.predictive-filter-form select {
  width: 100%;
  min-height: 48px;
  padding: .7rem 2.1rem .7rem .75rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}
.predictive-filter-form select:focus { border-color: var(--red); outline: 3px solid rgba(15, 118, 110, .12); }
.predictive-filter-form select:disabled { color: #8a9694; background: #f1f5f4; cursor: not-allowed; }
.predictive-filter-form .button { grid-column: 1 / -1; justify-self: end; min-width: 190px; }
.predictive-filter-message { grid-column: 2; min-height: 1.4rem; margin: -.4rem 0 0; color: var(--muted); font-size: .78rem; }

.predictive-release-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 1.5rem 0 4rem;
  padding: clamp(1.2rem, 3vw, 2rem);
  border: 1px solid rgba(15, 118, 110, .25);
  border-left: 7px solid var(--red);
  border-radius: 15px;
  background: linear-gradient(135deg, #fff, #eef8f6);
  box-shadow: 0 14px 38px rgba(16, 55, 50, .055);
}
.release-calendar { width: 90px; height: 90px; display: grid; place-content: center; border: 1px solid rgba(15, 118, 110, .25); border-radius: 18px; color: var(--red-dark); background: #fff; text-align: center; box-shadow: 7px 7px 0 rgba(116, 170, 163, .18); }
.release-calendar span { display: block; font-family: var(--font-serif); font-size: 2.5rem; font-weight: 800; line-height: .8; }
.release-calendar small { margin-top: .45rem; font-size: .62rem; font-weight: 900; letter-spacing: .12em; }
.release-calendar.lock-symbol { font-size: 2rem; }
.predictive-release-card h2 { margin: 0; max-width: 820px; font-family: var(--font-serif); font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.1; }
.predictive-release-card p:not(.eyebrow) { margin: .55rem 0 0; color: var(--muted); }
.predictive-release-card small { display: block; margin-top: .75rem; color: var(--muted); font-size: .7rem; }
.predictive-release-card .button { margin-top: 1rem; }

.predictive-paper-view { scroll-margin-top: 90px; }
.predictive-section-heading { max-width: 820px; margin: 3.5rem 0 1.3rem; }
.predictive-section-heading h2 { margin: 0; font-family: var(--font-serif); font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; }
.predictive-section-heading > p:last-child { margin: .7rem 0 0; color: var(--muted); }
.university-paper { max-width: 920px; margin: 0 auto; padding: clamp(1.2rem, 4vw, 3.3rem); border: 1px solid #b8b8b8; color: #111; background: #fff; box-shadow: 0 20px 55px rgba(10, 20, 19, .09); }
.university-paper-head { padding-bottom: 1.2rem; border-bottom: 2px solid #111; text-align: center; }
.university-paper-head > p:first-child { margin: 0; font-family: var(--font-serif); font-size: clamp(1.25rem, 3vw, 1.8rem); font-weight: 800; letter-spacing: .08em; }
.university-paper-head h2 { margin: .25rem 0 .7rem; font-family: var(--font-serif); font-size: clamp(1.35rem, 3vw, 2rem); }
.university-paper-meta { display: flex; justify-content: center; flex-wrap: wrap; gap: .45rem 1.2rem; font-weight: 750; }
.university-paper-rules { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; padding-top: .65rem; border-top: 1px solid #b8b8b8; font-weight: 750; }
.paper-instructions { margin: .7rem 0 0; font-size: .88rem; font-style: italic; }
.university-question-section { padding-top: 1.5rem; }
.university-question-section h3 { margin: 0 0 .8rem; font-family: var(--font-serif); font-size: 1.15rem; text-align: center; text-transform: uppercase; letter-spacing: .05em; }
.university-question-section ol { margin: 0; padding-left: 1.7rem; }
.university-question-section li { position: relative; padding: .45rem 5rem .55rem .4rem; line-height: 1.55; }
.university-question-section li > strong { position: absolute; top: .45rem; right: 0; font-size: .76rem; white-space: nowrap; }

.answer-view-heading { margin-top: 5rem; }
.predictive-answer-list { display: grid; gap: 1rem; }
.predictive-answer-card { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; background: #fff; box-shadow: 0 10px 28px rgba(16, 55, 50, .045); }
.predictive-answer-card > header { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; color: var(--red-dark); background: #eaf5f3; font-size: .72rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
.predictive-answer-card > h3 { margin: 0; padding: 1.1rem; font-family: var(--font-serif); font-size: clamp(1.1rem, 2.3vw, 1.4rem); line-height: 1.35; }
.predictive-model-answer { margin: 0 1.1rem 1.1rem; padding: 1.1rem; border-left: 4px solid var(--green); border-radius: 0 9px 9px 0; background: #f7fbfa; line-height: 1.72; }
.predictive-model-answer > *:last-child { margin-bottom: 0; }

@media (max-width: 720px) {
  .paper-index-courses summary { align-items: flex-start; flex-direction: column; gap: .15rem; }
  .paper-semester-grid { grid-template-columns: 1fr; }
  .predictive-filter-card { grid-template-columns: 1fr; }
  .predictive-filter-form { grid-template-columns: 1fr; }
  .predictive-filter-form .button { grid-column: auto; justify-self: stretch; }
  .predictive-filter-message { grid-column: 1; }
  .predictive-release-card { grid-template-columns: 1fr; }
  .release-calendar { width: 74px; height: 74px; }
  .university-paper { padding: 1rem; }
  .university-paper-rules { align-items: flex-start; flex-direction: column; gap: .2rem; }
  .university-question-section li { padding-right: 0; }
  .university-question-section li > strong { position: static; display: block; margin-top: .2rem; }
}
