/* ═══════════════════════════════════════════════════════════════════════════
   BecomingVet — common.css  (v2)
   Fonts: Outfit (body) · Playfair Display (headings)
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── Reset ─────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
img, video { max-width: 100%; display: block; }
button { cursor: pointer; font: inherit; }

/* ── Tokens ─────────────────────────────────────────────────────────────── */
:root {
  --gold:          #b8920a;
  --r:             14px;
  --school:        #333;

  --font-body:     'Outfit', sans-serif;
  --font-display:  'Playfair Display', serif;

  --nav-h:         64px;
  --max-w:         1180px;

  --text:          #1a1a1a;
  --text-muted:    #606060;
  --border:        #e4e4e0;
  --bg-light:      #f7f7f4;
  --bg-warm:       #fdfcf8;
  --radius:        var(--r);
  --shadow-sm:     0 1px 3px rgba(0,0,0,.07), 0 2px 8px rgba(0,0,0,.04);
  --shadow-md:     0 4px 16px rgba(0,0,0,.09), 0 1px 3px rgba(0,0,0,.06);
  --shadow-lg:     0 12px 40px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
}

/* ── Base ────────────────────────────────────────────────────────────────── */
html  { font-size: 16px; scroll-behavior: smooth; }
body  { font-family: var(--font-body); color: var(--text); background: var(--bg-warm); line-height: 1.7; -webkit-font-smoothing: antialiased; }
::selection { background: var(--school); color: #fff; }

/* ── Typography ─────────────────────────────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--font-display); line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); margin-bottom: 1.25rem; }
h3 { font-size: 1.15rem; margin-bottom: .55rem; }
p  { margin-bottom: .9rem; }
a  { color: var(--school); text-decoration: none; transition: opacity .15s; }
a:hover { opacity: .8; text-decoration: underline; }
strong { font-weight: 600; }

/* ── Utilities ───────────────────────────────────────────────────────────── */
.text-muted  { color: var(--text-muted); font-size: .9rem; }
.mt-1        { margin-top: 1rem; }
.mt-2        { margin-top: 1.75rem; }
.prose p:last-child { margin-bottom: 0; }
.hidden      { display: none !important; }

/* ── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .45em;
  padding: .7em 1.5em; border-radius: 10px; font-weight: 600;
  font-size: .95rem; line-height: 1; border: 2px solid transparent;
  text-decoration: none; transition: all .18s; white-space: nowrap;
}
.btn:active  { transform: scale(.97); }
.btn:hover   { text-decoration: none; opacity: 1; }
.btn-primary { background: var(--school); color: #fff; border-color: var(--school); box-shadow: 0 2px 12px color-mix(in srgb, var(--school) 40%, transparent); }
.btn-primary:hover { box-shadow: 0 4px 20px color-mix(in srgb, var(--school) 50%, transparent); transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: rgba(255,255,255,.55); color: #fff; }
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }
.btn-sm      { padding: .45em 1.1em; font-size: .88rem; border-radius: 8px; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.site-nav {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(253,252,248,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1.5rem;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo          { display: flex; align-items: center; text-decoration: none; }
.logo-b            { font-family: var(--font-body); font-weight: 700; font-size: 1.25rem; color: var(--text); }
.logo-v            { font-family: var(--font-display); font-size: 1.25rem; color: var(--gold); }
.nav-actions       { display: flex; align-items: center; gap: 1.25rem; }
.nav-link          { color: var(--text-muted); font-weight: 500; font-size: .92rem; }
.nav-link:hover    { color: var(--text); text-decoration: none; }
@media (max-width: 640px) { .nav-link-schools { display: none; } }

/* ── Language switcher ───────────────────────────────────────────────────── */
.lang-switcher { display: flex; align-items: center; gap: 2px; }
.lang-btn {
  font-size: .78rem; font-weight: 700; letter-spacing: .05em;
  padding: .28em .6em; border-radius: 6px; color: var(--text-muted);
  text-decoration: none; transition: background .15s, color .15s;
}
.lang-btn:hover      { background: var(--bg-light); color: var(--text); text-decoration: none; }
.lang-btn.active     { background: var(--school); color: #fff; }

/* ── Language fallback banner ────────────────────────────────────────────── */
.lang-fallback-banner {
  background: #fef9e7; border-bottom: 2px solid #f0c14b;
  padding: .7rem 1.5rem; display: flex; align-items: center; gap: .75rem;
  font-size: .88rem; color: #78350f;
}
.lang-fallback-icon { font-size: 1.1rem; flex-shrink: 0; }
.lang-fallback-text { flex: 1; }
.lang-fallback-link { font-weight: 600; color: inherit; text-decoration: underline; margin-left: .5rem; }
.lang-fallback-link:hover { text-decoration: none; }

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb { background: var(--bg-light); border-bottom: 1px solid var(--border); }
.breadcrumb-inner {
  max-width: var(--max-w); margin: 0 auto; padding: .6rem 1.5rem;
  font-size: .82rem; color: var(--text-muted); display: flex; align-items: center; flex-wrap: wrap; gap: .3rem;
}
.breadcrumb-inner a { color: var(--text-muted); }
.breadcrumb-inner a:hover { color: var(--school); text-decoration: none; }
.bc-sep { opacity: .5; }
[aria-current="page"] { color: var(--text); font-weight: 500; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(150deg, var(--school) 0%, color-mix(in srgb, var(--school) 72%, #000) 100%);
  color: #fff; padding: 5rem 1.5rem 4.5rem; position: relative; overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-inner { max-width: var(--max-w); margin: 0 auto; position: relative; }
.hero-eyebrow { font-size: .85rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; opacity: .75; margin-bottom: .85rem; }
.hero-title { color: #fff; margin-bottom: 1rem; }
.hero-title em { font-style: italic; opacity: .9; }
.hero-subtitle { font-size: 1.1rem; opacity: .88; max-width: 65ch; margin-bottom: 2rem; line-height: 1.6; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 3rem; }
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 0;
  margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid rgba(255,255,255,.18);
}
.hero-stat {
  padding: .5rem 2rem .5rem 0; margin-right: 2rem;
  border-right: 1px solid rgba(255,255,255,.15);
}
.hero-stat:last-child { border-right: none; padding-right: 0; margin-right: 0; }
.hero-stat strong { display: block; font-size: 1.6rem; font-family: var(--font-display); margin-bottom: .1rem; }
.hero-stat span   { font-size: .8rem; opacity: .7; letter-spacing: .02em; }

/* ── Page grid ───────────────────────────────────────────────────────────── */
.page-grid {
  max-width: var(--max-w); margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  display: grid; grid-template-columns: 1fr 280px; gap: 3rem; align-items: start;
}
@media (max-width: 860px) {
  .page-grid { grid-template-columns: 1fr; padding: 1.5rem 1rem 3rem; }
  .page-sidebar { order: -1; }
}

/* ── Section cards ───────────────────────────────────────────────────────── */
.section {
  background: #fff; border-radius: var(--r);
  border: 1px solid rgba(0,0,0,.06);
  padding: 2rem; margin-bottom: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}
.section:hover { box-shadow: var(--shadow-md); }
.section h2 {
  font-family: var(--font-display); color: var(--school);
  padding-bottom: .75rem; border-bottom: 2px solid var(--bg-light);
  margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: .5rem;
}
.section-accent { border-left: 4px solid var(--school); padding-left: 1.75rem; }

/* ── Source note ─────────────────────────────────────────────────────────── */
.source-note {
  font-size: .78rem; color: var(--text-muted); margin-top: 1rem; padding-top: .75rem;
  border-top: 1px solid var(--border); font-style: italic;
}
.source-note::before { content: 'ℹ️ '; }

/* ── Highlight / info boxes ──────────────────────────────────────────────── */
.highlight-box {
  background: color-mix(in srgb, var(--school) 6%, #fff);
  border: 1px solid color-mix(in srgb, var(--school) 22%, #fff);
  border-left: 4px solid var(--school);
  padding: 1rem 1.25rem; border-radius: var(--radius); margin-bottom: 1.25rem;
}
.info-box {
  background: var(--bg-light); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
}
.data-row {
  display: flex; justify-content: space-between; padding: .45rem 0;
  border-bottom: 1px solid var(--border); font-size: .95rem;
}
.data-row:last-child { border-bottom: none; }

/* ── Step list ───────────────────────────────────────────────────────────── */
.step-list { list-style: none; counter-reset: steps; }
.step-list li {
  counter-increment: steps; position: relative; padding: 0 0 1.75rem 3.5rem;
}
.step-list li::before {
  content: counter(steps); position: absolute; left: 0; top: .05em;
  width: 2rem; height: 2rem; border-radius: 50%;
  background: var(--school); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 700; font-family: var(--font-body);
  box-shadow: 0 2px 8px color-mix(in srgb, var(--school) 40%, transparent);
}
.step-list li::after {
  content: ''; position: absolute; left: .95rem; top: 2.2rem;
  width: 2px; height: calc(100% - 2.2rem);
  background: linear-gradient(to bottom, var(--school), var(--border));
  opacity: .4;
}
.step-list li:last-child::after { display: none; }
.step-list li strong { display: block; margin-bottom: .3rem; font-size: .97rem; }
.step-list li p { font-size: .92rem; color: var(--text-muted); margin: 0; }
.step-tip { background: #fffbea; border-left: 3px solid var(--gold); padding: .5rem .75rem; border-radius: 4px; font-size: .88rem; margin-top: .5rem; }

/* ── Tables ──────────────────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.data-table th {
  background: var(--bg-light); font-weight: 600; font-size: .82rem;
  text-align: left; padding: .7rem 1rem; border-bottom: 2px solid var(--border);
  text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted);
}
.data-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--bg-light); }
.data-table tr.row-featured td { font-weight: 600; background: color-mix(in srgb, var(--school) 4%, #fff); }
@media (max-width: 600px) {
  .data-table { font-size: .85rem; }
  .data-table th, .data-table td { padding: .55rem .6rem; }
}

/* ── Features grid ───────────────────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem; margin: 1.5rem 0;
}
.feature-card {
  background: var(--bg-light); border: 1px solid var(--border);
  border-radius: var(--r); padding: 1.25rem;
  border-top: 3px solid var(--school);
  transition: transform .15s, box-shadow .15s;
}
.feature-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.feature-card h4 { font-family: var(--font-body); font-size: .9rem; font-weight: 700; margin-bottom: .45rem; }
.feature-card p { font-size: .85rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

/* ── Track (fee) grid ────────────────────────────────────────────────────── */
.track-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1rem; }
.track-card {
  border: 2px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; transition: border-color .15s, box-shadow .15s;
}
.track-card:hover { box-shadow: var(--shadow-sm); }
.track-featured { border-color: var(--school); box-shadow: 0 0 0 1px color-mix(in srgb, var(--school) 20%, transparent); }
.track-header   { display: flex; align-items: center; gap: .5rem; margin-bottom: .75rem; }
.track-flag     { font-size: 1.3rem; }
.track-name     { font-weight: 600; font-size: .92rem; }
.track-amount   { font-size: 1.9rem; font-family: var(--font-display); color: var(--school); }
.track-period   { font-size: .8rem; color: var(--text-muted); margin-bottom: .5rem; }
.track-notes    { font-size: .83rem; color: var(--text-muted); margin: 0; }

/* ── Beca grid ───────────────────────────────────────────────────────────── */
.beca-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: 1rem; }
.beca-card { background: var(--bg-light); border-radius: var(--radius); padding: 1.1rem 1.25rem; }
.beca-featured { background: color-mix(in srgb, var(--school) 5%, #fff); border: 1px solid color-mix(in srgb, var(--school) 18%, #fff); }
.beca-card strong { display: block; margin-bottom: .35rem; }
.beca-card p { font-size: .87rem; color: var(--text-muted); margin: .35rem 0 0; }
.beca-reduction { display: inline-block; background: var(--school); color: #fff; font-size: .78rem; font-weight: 700; padding: .15em .6em; border-radius: 4px; margin-top: .35rem; }

/* ── Budget grid ─────────────────────────────────────────────────────────── */
.budget-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px,1fr)); gap: .75rem; }
.budget-item {
  background: var(--bg-light); border-radius: var(--radius);
  padding: 1rem; display: flex; flex-direction: column;
  border: 1px solid transparent; transition: border-color .15s;
}
.budget-item:hover { border-color: var(--border); }
.budget-cat    { font-size: .8rem; color: var(--text-muted); margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .04em; }
.budget-amount { font-size: 1.05rem; font-weight: 700; }
.budget-amount small { font-size: .73rem; font-weight: 400; color: var(--text-muted); }

/* ── Timeline ────────────────────────────────────────────────────────────── */
.timeline { list-style: none; position: relative; padding-left: 1.5rem; }
.timeline::before { content: ''; position: absolute; left: 7px; top: .5rem; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--school), var(--border)); opacity: .5; }
.timeline-item { position: relative; padding: 0 0 1.5rem 1.75rem; }
.timeline-item::before {
  content: ''; position: absolute; left: -1px; top: .35em;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--school); border: 2px solid #fff;
  box-shadow: 0 0 0 2px var(--school), var(--shadow-sm);
}
.timeline-date { font-size: .78rem; font-weight: 700; color: var(--school); display: block; margin-bottom: .25rem; text-transform: uppercase; letter-spacing: .06em; }
.timeline-body strong { font-size: .95rem; display: block; margin-bottom: .2rem; }
.timeline-body p { font-size: .88rem; color: var(--text-muted); margin: 0; }

/* ── FAQ accordion ───────────────────────────────────────────────────────── */
.faq-list     { display: flex; flex-direction: column; gap: .5rem; }
.faq-item     { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s; }
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-item summary {
  padding: 1rem 1.25rem; font-weight: 600; font-size: .95rem;
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between;
  transition: background .15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.3rem; font-weight: 300; color: var(--school); flex-shrink: 0; margin-left: 1rem; transition: transform .2s; }
.faq-item[open] summary::after { content: '×'; }
.faq-item[open] summary { background: var(--bg-light); }
.faq-answer { padding: 1rem 1.25rem; border-top: 1px solid var(--border); font-size: .93rem; line-height: 1.7; }
.faq-answer p:last-child { margin-bottom: 0; }

/* ── CTA section ─────────────────────────────────────────────────────────── */
.cta-box {
  background: linear-gradient(135deg, color-mix(in srgb, var(--school) 5%, #fff), color-mix(in srgb, var(--school) 10%, #fff));
  border: 1px solid color-mix(in srgb, var(--school) 22%, #fff);
  border-radius: calc(var(--r) * 1.5); padding: 2.25rem; text-align: center;
}
.cta-box h3 { font-size: 1.5rem; margin-bottom: .6rem; }
.cta-box p  { color: var(--text-muted); margin-bottom: 1.5rem; max-width: 50ch; margin-left: auto; margin-right: auto; }

/* ── Sidebar ─────────────────────────────────────────────────────────────── */
.page-sidebar { position: sticky; top: calc(var(--nav-h) + 1.5rem); max-height: calc(100vh - var(--nav-h) - 2rem); overflow-y: auto; scrollbar-width: thin; }
.sidebar-card { background: #fff; border-radius: var(--radius); padding: 1.25rem; margin-bottom: 1rem; border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.sidebar-card h3 { font-size: .95rem; margin-bottom: .75rem; color: var(--text); }
.sidebar-promo { background: color-mix(in srgb, var(--school) 5%, #fff); border-color: color-mix(in srgb, var(--school) 18%, #fff); }
.sidebar-promo h3 { color: var(--school); }
.sidebar-promo p { font-size: .88rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.5; }
.kv-list { display: flex; flex-direction: column; gap: .45rem; }
.kv-row  { display: flex; justify-content: space-between; align-items: baseline; font-size: .88rem; padding: .25rem 0; border-bottom: 1px solid var(--border); }
.kv-row:last-child { border-bottom: none; }
.kv-row dt { color: var(--text-muted); flex: 1; padding-right: .5rem; }
.kv-row dd { font-weight: 600; text-align: right; flex-shrink: 0; }
.link-list { list-style: none; display: flex; flex-direction: column; gap: .35rem; }
.link-list a { font-size: .88rem; color: var(--school); }

/* ── Anchor nav (On this page) ───────────────────────────────────────────── */
.anchor-nav { list-style: none; display: flex; flex-direction: column; gap: 0; }
.anchor-nav li a {
  display: block; font-size: .85rem; color: var(--text-muted);
  padding: .3rem 0 .3rem .75rem; border-left: 2px solid var(--border);
  transition: color .15s, border-color .15s;
}
.anchor-nav li a:hover { color: var(--school); border-left-color: var(--school); text-decoration: none; }

/* ── Campus section ──────────────────────────────────────────────────────── */
.campus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; margin-top: 1.25rem; }
.campus-card { background: var(--bg-light); border-radius: var(--r); padding: 1.1rem; }
.campus-card .campus-label { font-size: .78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: .25rem; }
.campus-card .campus-value { font-size: .95rem; font-weight: 600; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { background: var(--text); color: rgba(255,255,255,.7); margin-top: 5rem; }
.footer-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 3rem 1.5rem;
  display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: start;
}
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; } }
.footer-logo .logo-b { color: #fff; font-size: 1.1rem; }
.footer-logo .logo-v { color: var(--gold); font-size: 1.1rem; }
.footer-brand p { font-size: .88rem; margin-top: .5rem; opacity: .7; }
.footer-nav { display: flex; flex-direction: column; gap: .4rem; }
.footer-nav strong { color: rgba(255,255,255,.9); font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; margin-bottom: .3rem; }
.footer-nav a { color: rgba(255,255,255,.55); font-size: .88rem; }
.footer-nav a:hover { color: #fff; text-decoration: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); text-align: center; padding: 1.25rem; font-size: .83rem; color: rgba(255,255,255,.35); }

/* ══════════════════════════════════════════════════════════════════════════
   PREP PAGE
   ══════════════════════════════════════════════════════════════════════════ */

.prep-nav { position: sticky; top: 0; z-index: 100; color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.25); }
.prep-nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 1rem;
  display: flex; align-items: stretch; gap: 1.5rem; min-height: 56px;
}
.prep-back {
  display: flex; align-items: center; gap: .4rem;
  color: rgba(255,255,255,.75); font-size: .88rem; white-space: nowrap;
  flex-shrink: 0; text-decoration: none; padding: 0 .5rem;
}
.prep-back:hover { color: #fff; text-decoration: none; }
.prep-school-name { font-weight: 700; }
.prep-tabs { display: flex; overflow-x: auto; scrollbar-width: none; gap: .25rem; }
.prep-tabs::-webkit-scrollbar { display: none; }
.prep-tab {
  background: none; border: none; border-bottom: 3px solid transparent;
  color: rgba(255,255,255,.6); font-size: .88rem; font-weight: 500;
  padding: .85rem 1rem; white-space: nowrap;
  transition: color .15s, border-color .15s;
}
.prep-tab:hover  { color: rgba(255,255,255,.88); }
.prep-tab.active { color: #fff; border-bottom-color: #fff; }
.prep-lang { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-shrink: 0; padding-left: 1rem; }
.prep-lang-btn {
  font-size: .73rem; font-weight: 700; letter-spacing: .05em;
  padding: .22em .55em; border-radius: 4px;
  color: rgba(255,255,255,.5); text-decoration: none; transition: background .15s, color .15s;
}
.prep-lang-btn:hover      { color: #fff; text-decoration: none; }
.prep-lang-btn.active     { background: rgba(255,255,255,.2); color: #fff; }

.prep-body  { max-width: var(--max-w); margin: 0 auto; padding: 2rem 1.5rem; }
.prep-panel { display: none; }
.prep-panel.active { display: block; }

.prep-hero    { margin-bottom: 2.5rem; }
.prep-hero h1 { margin-bottom: .5rem; }
.prep-cards   { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: 1rem; }
.prep-card {
  background: #fff; border: 2px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem; text-align: left; cursor: pointer;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.prep-card:hover { border-color: var(--school); box-shadow: var(--shadow-md); transform: translateY(-2px); }
.prep-card-icon { font-size: 2.2rem; display: block; margin-bottom: .75rem; }
.prep-card strong { display: block; font-size: .97rem; margin-bottom: .35rem; }
.prep-card p { font-size: .87rem; color: var(--text-muted); margin: 0; line-height: 1.5; }

.sim-layout  { display: flex; flex-direction: column; gap: 2rem; }
.sim-modes h2 { margin-bottom: 1rem; }
.sim-mode-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px,1fr)); gap: .75rem; }
.sim-mode-btn {
  background: #fff; border: 2px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; text-align: left; transition: border-color .15s, box-shadow .15s;
}
.sim-mode-btn:hover { border-color: var(--school); box-shadow: var(--shadow-sm); }
.sim-mode-icon { font-size: 1.75rem; display: block; margin-bottom: .5rem; }
.sim-mode-btn strong { display: block; margin-bottom: .25rem; font-size: .95rem; }
.sim-mode-btn p { font-size: .82rem; color: var(--text-muted); margin: 0; line-height: 1.4; }

.sim-chat { display: flex; flex-direction: column; gap: 1rem; }
.sim-chat.hidden { display: none; }
.sim-chat-header { display: flex; align-items: center; gap: 1rem; font-weight: 700; font-size: 1rem; }
.sim-back-btn { background: none; border: 1px solid var(--border); border-radius: 7px; padding: .35em .85em; font-size: .88rem; }
.sim-messages {
  background: var(--bg-light); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  min-height: 300px; max-height: 500px; overflow-y: auto;
  display: flex; flex-direction: column; gap: .75rem;
}
.sim-msg { max-width: 82%; padding: .75rem 1rem; border-radius: 14px; font-size: .93rem; line-height: 1.55; white-space: pre-wrap; }
.sim-msg-user { background: var(--school); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.sim-msg-ai   { background: #fff; border: 1px solid var(--border); align-self: flex-start; border-bottom-left-radius: 4px; box-shadow: var(--shadow-sm); }
.sim-msg-ai.loading::after { content: '●●●'; animation: blink 1.2s infinite; font-size: .7rem; letter-spacing: .2em; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

.sim-input-row { display: flex; gap: .75rem; align-items: flex-end; }
.sim-input-row textarea { flex: 1; border: 1px solid var(--border); border-radius: var(--radius); padding: .75rem 1rem; resize: none; font: inherit; font-size: .93rem; transition: outline .15s; }
.sim-input-row textarea:focus { outline: 2px solid var(--school); border-color: transparent; }
.sim-reset-btn { background: none; border: none; color: var(--text-muted); font-size: .83rem; text-decoration: underline; align-self: flex-end; }

.calc-layout h2 { margin-bottom: 1.5rem; }
.calc-form  { display: flex; flex-direction: column; gap: 1.25rem; max-width: 520px; }
.calc-field { display: flex; flex-direction: column; gap: .4rem; }
.calc-field label { font-weight: 600; font-size: .93rem; }
.calc-field select, .calc-field input[type=number] {
  border: 1px solid var(--border); border-radius: 9px; padding: .65rem 1rem; font: inherit;
}
.calc-field select:focus, .calc-field input:focus { outline: 2px solid var(--school); border-color: transparent; }
.range-wrap { display: flex; align-items: center; gap: 1rem; }
.range-wrap input[type=range] { flex: 1; accent-color: var(--school); }
.range-wrap output { font-weight: 700; min-width: 3rem; text-align: right; }
.calc-result {
  margin-top: 2rem; background: color-mix(in srgb, var(--school) 6%, #fff);
  border: 1px solid color-mix(in srgb, var(--school) 20%, #fff);
  border-radius: var(--radius); padding: 1.75rem; text-align: center;
}
.calc-result .total-label { font-size: .88rem; color: var(--text-muted); margin-bottom: .4rem; }
.calc-result .total-value { font-size: 2.75rem; font-family: var(--font-display); color: var(--school); display: block; }

.notes-layout h2 { margin-bottom: .5rem; }
.notes-hint       { margin-bottom: 1.5rem; color: var(--text-muted); font-size: .93rem; }
.notes-list       { display: flex; flex-direction: column; gap: 1.5rem; }
.note-item label  { display: block; font-weight: 600; margin-bottom: .3rem; font-size: .95rem; }
.note-hint        { font-size: .83rem; color: var(--text-muted); margin-bottom: .4rem; }
.note-textarea    {
  width: 100%; border: 1px solid var(--border); border-radius: var(--radius);
  padding: .75rem 1rem; font: inherit; resize: vertical; min-height: 90px;
  transition: outline .15s;
}
.note-textarea:focus { outline: 2px solid var(--school); border-color: transparent; }
#notes-clear { margin-top: 1.5rem; color: #c00; border-color: #c00; }

/* ── Responsive helpers ───────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .hero { padding: 3.5rem 1rem 3rem; }
  .hero-stats { gap: 1rem; }
  .hero-stat { border-right: none; padding-right: 0; margin-right: 0; border-bottom: 1px solid rgba(255,255,255,.15); padding-bottom: .75rem; }
  .hero-stat:last-child { border-bottom: none; padding-bottom: 0; }
  .section { padding: 1.25rem; }
  .prep-body { padding: 1.25rem 1rem; }
  .track-grid { grid-template-columns: 1fr; }
}
