/* Paperwala public site. (Admin pages keep using styles.css.) */
:root {
  /* Light theme, 2026-10-24. The dark theme was replaced because it failed as
     *structure*, not as text: its text tokens all passed AA, but every surface
     level sat inside a 1.13:1 contrast band, so cards had no visible edge on
     pages that list 211 (M.Tech) or 752 (Diploma) subjects.

     A light theme cannot lean on elevation the way a dark one does - white on
     near-white is inherently flat - so separation here comes from three things
     together: a page background genuinely darker than a card (1.24:1), borders
     you can actually see (1.74:1, up from 1.33:1), and a real shadow. Every
     value below is measured; ratios are against white unless stated. */
  --bg: #e9edf6;          /* cool slate; surface -> bg 1.19:1, so cards lean on border + shadow too */
  --bg-2: #e0e6f2;        /* .section-alt bands */
  --surface: #ffffff;
  --surface-2: #f3f5fa;   /* card hover: DARKER than the card, not lighter */
  --line: #b8c0d3;        /* 1.88:1 */
  --line-strong: #8d98b0; /* 2.75:1 */
  --text: #111726;        /* 17.9:1 */
  --text-2: #3f4860;      /* 9.1:1 */
  --muted: #515b73;       /* 6.2:1, and 5.2:1 on --bg, 5.0:1 on --bg-2 */
  /* `--text-muted` was referenced by .page-intro and .faq-item dd but never
     defined, so both silently fell back to a hardcoded dark-theme grey. */
  --text-muted: #515b73;

  /* Gold has to split in two here. #f2b84b scores 1.79:1 on white, so it can
     no longer be a text colour - but it is still the brand fill under dark
     ink, where it scores 10.2:1. So --gold is now the readable accent (text,
     links, icons, borders) and --gold-fill* is the bright fill. */
  --gold: #7d5503;        /* 6.5:1, and 5.5:1 on --bg, 5.2:1 on --bg-2 */
  --gold-2: #6d4904;      /* link hover: darker, not lighter */
  --gold-fill: #f2b84b;
  --gold-fill-2: #ffd27a;
  --gold-ink: #1b1405;    /* 10.2:1 on --gold-fill */
  --blue: #2552c4;        /* 6.7:1 (was #7aa2ff, 2.2:1) */
  --green: #0b6440;       /* 6.6:1, and 5.3:1 on --bg (was #4ade9b, 1.7:1) */
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 28px -14px rgba(16, 24, 40, 0.18);
  --font: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Playfair Display', Georgia, serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
main { flex: 1; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; }
h1, h2 { font-family: var(--serif); letter-spacing: -0.01em; }
/* Inside pages use the plain body font for headings; the serif stays on the homepage. */
.container.page h1, .container.page h2, .container.page .year-heading { font-family: var(--font); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-2); }
img, svg { flex-shrink: 0; }
button { font: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--gold-fill); color: var(--gold-ink); padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

/* ---------- buttons & chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; white-space: nowrap;
  transition: transform .2s var(--ease), background .2s, border-color .2s, color .2s, box-shadow .2s;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-gold { background: linear-gradient(180deg, var(--gold-fill-2), var(--gold-fill)); color: var(--gold-ink); box-shadow: 0 6px 18px -8px rgba(135, 92, 5, .45); }
.btn-gold:hover { color: var(--gold-ink); box-shadow: 0 10px 26px -8px rgba(135, 92, 5, .6); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-2); }
.btn-link { background: none; color: var(--text-2); padding: 0 8px; }
.btn-link:hover { color: var(--gold); }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: .875rem; }
.btn-xs { min-height: 30px; padding: 0 12px; font-size: .8rem; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1.05rem; }

.chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: .75rem; font-weight: 600; background: rgba(42, 91, 215, .12); color: var(--blue); }
.chip-gold { background: rgba(242, 184, 75, .3); color: var(--gold); }
.chip-ghost { background: rgba(17, 23, 38, .06); color: var(--text-2); }
.chip-btn { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); cursor: pointer; font-size: .875rem; transition: all .2s; }
.chip-btn:hover { border-color: var(--gold); color: var(--gold); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(15, 122, 77, .5); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(15, 122, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(15, 122, 77, 0); } }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; height: var(--nav-h); background: rgba(255, 255, 255, .72); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, background .3s; }
.nav.scrolled { border-color: var(--line); background: rgba(255, 255, 255, .92); box-shadow: 0 1px 12px -4px rgba(16, 24, 40, .12); }
.nav-inner { max-width: 1180px; height: 100%; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 8px; }
.nav-inner > .brand, .nav-search-btn, .nav-ask, .nav-toggle { flex-shrink: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand:hover { color: var(--text); }
.brand-mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-fill-2), var(--gold-fill)); color: var(--gold-ink); font-family: var(--serif); font-weight: 800; font-size: 1.1rem; }
.brand-name { font-family: var(--serif); font-size: 1.25rem; }
/* .nav-menu holds the links and the search: a drop-down panel on phones,
   inline from 820px. */
.nav-menu { display: none; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: var(--text-2); padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: rgba(17, 23, 38, .06); }
.nav-search { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); transition: border-color .2s, box-shadow .2s; }
.nav-search:focus-within { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(135, 92, 5, .16); }
.nav-search svg { color: var(--muted); }
.nav-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; outline: none; }
.nav-search input::placeholder { color: var(--muted); }
/* Phones get a search icon beside Ask AI; it opens /search, whose box autofocuses. */
.nav-search-btn { margin-left: auto; width: 40px; height: 40px; flex: 0 0 40px; border-radius: 999px; display: grid; place-items: center; color: var(--text-2); border: 1px solid var(--line-strong); background: var(--surface); }
.nav-search-btn:hover { color: var(--gold); border-color: var(--gold); }
.nav-ask { margin-left: 0; }
/* Small phones: brand, search, Ask AI and the menu button do not fit at full
   size, so Ask AI drops its label and becomes a round icon like search. */
@media (max-width: 479px) {
  .nav-inner { gap: 6px; padding: 0 12px; }
  .brand { gap: 8px; }
  .brand-name { font-size: 1.15rem; }
  .nav-ask { width: 40px; min-height: 40px; height: 40px; padding: 0; border-radius: 999px; }
  .nav-ask svg { width: 18px; height: 18px; }
  .nav-ask-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.nav-toggle { width: 44px; height: 44px; border: 0; background: none; display: grid; place-content: center; gap: 5px; cursor: pointer; }
.nav-toggle span { display: block; width: 20px; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
/* Phone: search first in the panel (column-reverse), then the links. */
.nav-menu.open { display: flex; flex-direction: column-reverse; gap: 12px; position: absolute; top: var(--nav-h); left: 0; right: 0; padding: 14px 16px 20px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -12px rgba(16, 24, 40, .28); }
.nav-menu.open .nav-links { flex-direction: column; }
.nav-menu.open .nav-search { height: 46px; }
@media (min-width: 820px) {
  .nav-inner { padding: 0 24px; }
  .nav-menu, .nav-menu.open { display: flex; flex-direction: row; align-items: center; gap: 12px; flex: 1; position: static; padding: 0; background: none; border: 0; box-shadow: none; }
  .nav-menu .nav-links, .nav-menu.open .nav-links { flex-direction: row; margin-left: 8px; }
  .nav-search, .nav-menu.open .nav-search { height: 40px; margin-left: auto; width: 100%; max-width: 280px; }
  .nav-search-btn { display: none; }
  .nav-toggle { display: none; }
}
@media (min-width: 1040px) { .nav-search, .nav-menu.open .nav-search { max-width: 340px; } }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 56px; }
.hero-glow { position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background: radial-gradient(600px 380px at 75% 35%, rgba(242, 184, 75, .34), transparent 70%),
              radial-gradient(520px 420px at 15% 10%, rgba(122, 162, 255, .22), transparent 70%); }
.hero-inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 16px; display: grid; gap: 24px; }
.hero-title { font-size: clamp(2.4rem, 8vw, 4.4rem); font-weight: 800; margin-bottom: 16px; }
.hero-title em { font-style: italic; background: linear-gradient(100deg, #a8720a, var(--gold) 55%, #5e3f03); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--text-2); font-size: clamp(1rem, 2.6vw, 1.15rem); max-width: 34em; margin-bottom: 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; gap: 28px; margin: 32px 0 0; padding: 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { color: var(--muted); font-size: .8rem; }
.hero-stats dd { margin: 0; font-family: var(--serif); font-size: 1.8rem; font-weight: 700; color: var(--text); }

.hero-visual { position: relative; height: 320px; border-radius: 28px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line), 0 18px 40px -22px rgba(20,28,56,.25); }
#hero3d { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1s var(--ease); }
#hero3d.ready { opacity: 1; }
@media (min-width: 900px) {
  .hero { padding: 56px 0 88px; }
  .hero-inner { padding: 0 24px; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 32px; }
  .hero-visual { height: 520px; }
}

/* 2D paper-stack fallback */
.paper-stack { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .6s; }
.paper-stack.hide { opacity: 0; pointer-events: none; }
.sheet { position: absolute; width: 190px; height: 260px; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 14px 34px -16px rgba(16, 24, 40, .35); }
.sheet.s3 { transform: rotate(-12deg) translate(-40px, 10px); opacity: .5; }
.sheet.s2 { transform: rotate(8deg) translate(36px, -6px); opacity: .75; }
.sheet.s1 { transform: rotate(-3deg); padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; animation: float 6s ease-in-out infinite; }
.sheet.s1 b { color: #111726; font-size: .75rem; letter-spacing: .08em; border-bottom: 3px solid var(--gold-fill); padding-bottom: 8px; }
.sheet.s1 i { display: block; height: 8px; border-radius: 4px; background: var(--line); }
.sheet.s1 i.short { width: 60%; }
@keyframes float { 50% { transform: rotate(-3deg) translateY(-10px); } }

/* ---------- sections ---------- */
.section { padding: 56px 0; }
.section-alt { background: linear-gradient(180deg, transparent, var(--bg-2) 20%, var(--bg-2) 80%, transparent); }
.section-head { margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.7rem, 4.5vw, 2.4rem); max-width: 22em; }
.section-title { font-size: 1.35rem; margin: 32px 0 16px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.step-num { display: block; font-family: var(--serif); font-size: 2rem; font-weight: 800; color: transparent; -webkit-text-stroke: 1px var(--gold); margin-bottom: 8px; }
.step h3 { font-size: 1.1rem; }
.step p { color: var(--text-2); margin: 0; }

.cta-band { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; padding: 32px 24px; border-radius: 24px; background: radial-gradient(500px 240px at 90% 0%, rgba(242, 184, 75, .34), transparent 70%), var(--surface); border: 1px solid rgba(135, 92, 5, .38); box-shadow: var(--shadow); }
.cta-band h2 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.cta-band p { color: var(--text-2); max-width: 36em; margin: 0; }
@media (min-width: 760px) { .cta-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px; } }

/* ---------- inner pages ---------- */
.page { padding-top: 24px; padding-bottom: 64px; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .85rem; color: var(--muted); margin-bottom: 24px; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span[aria-current] { color: var(--text); }
.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: clamp(1.4rem, 4vw, 1.9rem); }

.pill-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.pill { min-height: 44px; display: inline-flex; align-items: center; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-weight: 600; transition: all .2s; }
.pill:hover { color: var(--gold); border-color: var(--gold); }
.pill.selected { background: linear-gradient(180deg, var(--gold-fill-2), var(--gold-fill)); color: var(--gold-ink); border-color: transparent; }

.tile-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.tile { min-height: 34px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); transition: transform .25s var(--ease), border-color .25s; }
.tile:hover { color: var(--text); transform: translateY(-2px); border-color: var(--gold); }
.tile-title { font-weight: 600; font-size: .88rem; }
.tile-go { color: var(--gold); }

.sem-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.sem { flex: 0 0 auto; scroll-snap-align: start; width: 42px; height: 42px; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); font-family: var(--serif); font-size: 1rem; font-weight: 700; line-height: 1; transition: all .2s; }
.sem small { font-family: var(--font); font-size: .55rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; }
.sem:hover { color: var(--gold); border-color: var(--gold); }
.sem.selected { background: linear-gradient(180deg, var(--gold-fill-2), var(--gold-fill)); color: var(--gold-ink); border-color: transparent; }
.sem.selected small { color: rgba(27, 20, 5, .7); }

.subject-grid { display: grid; gap: 12px; margin-top: 16px; }
@media (min-width: 640px) { .subject-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .subject-grid { grid-template-columns: repeat(3, 1fr); } }
.subject-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); transition: transform .25s var(--ease), border-color .25s, background .25s; }
.subject-card:hover { color: var(--text); transform: translateY(-3px); border-color: var(--gold); background: var(--surface-2); box-shadow: 0 12px 28px -14px rgba(16, 24, 40, .26); }
.subject-code { font-size: .78rem; font-weight: 700; color: var(--gold); letter-spacing: .04em; }
.subject-name { font-weight: 600; font-size: 1.02rem; }
.subject-tag { align-self: flex-start; margin-top: 4px; font-size: .72rem; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.subject-tag.tag-live { color: var(--green); border-color: rgba(15, 122, 77, .4); }

.subject-hero { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 16px; }
@media (min-width: 640px) { .subject-hero { flex-direction: row; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 20px; } }
@media (min-width: 640px) { .subject-hero h1 { font-size: 1.3rem; } .subject-hero .subject-title { white-space: normal; } }
@media (min-width: 1024px) { .subject-hero h1 { font-size: 1.5rem; } }
/* Papers / Notes switch: two equal segments in a tinted track. */
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); flex: 0 0 auto; }
@media (min-width: 640px) { .seg { width: 400px; } }
.seg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 9px; color: var(--text-2); font-weight: 600; font-size: .9rem; white-space: nowrap; text-decoration: none; transition: background .15s, color .15s, box-shadow .15s; }
.seg-btn:hover { color: var(--text); }
.seg-btn .count { font-size: .72rem; padding: 1px 7px; border-radius: 999px; background: rgba(17, 23, 38, .08); }
.seg-btn.active { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(16, 24, 40, .18), inset 0 0 0 1px var(--line-strong); }
.seg-btn.active .count { background: rgba(242, 184, 75, .34); color: var(--gold); }
.subject-hero h1 { display: flex; align-items: center; gap: 10px; min-width: 0; margin: 0; font-family: var(--font); font-size: 1.02rem; font-weight: 700; line-height: 1.3; }
.subject-hero .subject-title { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seo-copy { margin-top: 32px; }
.seo-copy p { margin: 0 0 8px; }
@media (max-width: 640px) {
  .seo-copy p { font-size: .84rem; line-height: 1.55; color: var(--text-muted); }
  .breadcrumb { font-size: .725rem; margin-bottom: 12px; }
}
.code-badge { flex: 0 0 auto; display: inline-block; padding: 2px 10px; border-radius: 8px; background: rgba(242, 184, 75, .28); color: var(--gold); font-weight: 700; font-size: .8rem; }

.tabs { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 20px; width: 100%; max-width: 360px; }
.tab-btn { flex: 1; min-height: 42px; border: 0; border-radius: 999px; background: none; color: var(--text-2); font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 0 12px; font-size: .9rem; transition: all .2s; }
.tab-btn .count { font-size: .72rem; padding: 1px 7px; border-radius: 999px; background: rgba(17, 23, 38, .08); }
.tab-btn.active { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tab-btn.active .count { background: rgba(242, 184, 75, .34); color: var(--gold); }
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeUp .35s var(--ease); }

.accordion { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); margin-bottom: 10px; overflow: hidden; }
.accordion-head { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 18px; border: 0; background: none; color: var(--text); cursor: pointer; text-align: left; }
.unit-num { flex: 0 0 auto; font-size: .75rem; font-weight: 700; color: var(--gold); background: rgba(242, 184, 75, .3); padding: 4px 10px; border-radius: 999px; }
.accordion-title { flex: 1; font-weight: 600; min-width: 0; }
.accordion-icon { color: var(--muted); transition: transform .25s var(--ease); }
.accordion.open .accordion-icon { transform: rotate(180deg); }
.accordion-body { display: none; padding: 0 18px 16px; }
.accordion.open .accordion-body { display: block; }
.file-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); color: var(--text-2); }
.file-name { flex: 1; min-width: 140px; color: var(--text); }
.file-actions { display: flex; gap: 8px; }

.year-group { margin-bottom: 24px; }
.year-heading { display: flex; align-items: center; gap: 12px; font-family: var(--serif); font-size: 1.05rem; color: var(--gold); }
.year-heading::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.pyq-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .pyq-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .pyq-grid { grid-template-columns: repeat(3, 1fr); } }
.pyq-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .25s, transform .25s var(--ease); }
.pyq-card:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(16, 24, 40, .26); }
.pyq-top { display: flex; gap: 6px; flex-wrap: wrap; }
.pyq-title { font-size: 1rem; margin: 0; }
.pyq-actions { display: flex; gap: 8px; margin-top: auto; }

.empty { padding: 40px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--text-2); }
.inline-ask { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 40px; padding: 18px 20px; border-radius: var(--radius); border: 1px dashed var(--line-strong); }
.inline-ask p { margin: 0; color: var(--text-2); }
.bottom-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }

/* ---------- footer ---------- */
/* Its own white band, so it reads as the end of the page against --bg. The
   deep bottom padding keeps the last line clear of the fixed chat button. */
.footer { margin-top: 32px; padding: 40px 0 0; background: var(--surface); border-top: 1px solid var(--line); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 0 16px; display: grid; gap: 28px 24px; grid-template-columns: repeat(2, 1fr); }
.footer-about { grid-column: 1 / -1; }
.footer-about p { margin: 12px 0 0; max-width: 26em; font-size: .92rem; color: var(--text-2); }
.footer-social { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.social-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-2); font-size: .88rem; font-weight: 600; }
.social-btn:hover { border-color: var(--gold); color: var(--gold-2); }
.social-wa { color: var(--green); border-color: rgba(11, 100, 64, .45); }
.social-wa:hover { color: var(--green); border-color: var(--green); background: rgba(11, 100, 64, .07); }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h2 { font-family: var(--font); font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin: 0 0 4px; }
.footer-col a { color: var(--text-2); font-size: .92rem; }
.footer-col a:hover { color: var(--gold); }
.footer-base { max-width: 1180px; margin: 32px auto 0; padding: 18px 16px calc(84px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .82rem; color: var(--muted); }
.footer-base p { margin: 0; max-width: 60em; }
@media (min-width: 760px) {
  .footer-inner { padding: 0 24px; grid-template-columns: 1.6fr repeat(4, 1fr); }
  .footer-about { grid-column: auto; }
  .footer-base { padding-left: 24px; padding-right: 24px; }
}

/* ---------- chat widget ---------- */
.chat-fab { position: fixed; right: 16px; bottom: 16px; z-index: 60; height: 56px; padding: 0 20px 0 16px; display: inline-flex; align-items: center; gap: 10px; border: 0; border-radius: 999px; cursor: pointer; background: linear-gradient(180deg, var(--gold-fill-2), var(--gold-fill)); color: var(--gold-ink); font-weight: 700; box-shadow: 0 10px 26px -10px rgba(135, 92, 5, .5); transition: transform .25s var(--ease), opacity .2s; }
.chat-fab:hover { transform: translateY(-2px); }
/* Ask AI lives in the nav and on the homepage only; the floating button stays hidden. */
.chat-fab { display: none; }
.chat-fab-label { font-size: .95rem; }
body.chat-open .chat-fab { opacity: 0; pointer-events: none; transform: scale(.8); }
@media (max-width: 420px) { .chat-fab { width: 56px; padding: 0; justify-content: center; } .chat-fab-label { display: none; } }

.chat-panel { position: fixed; z-index: 70; inset: 0; display: flex; flex-direction: column; background: var(--bg-2); opacity: 0; transform: translateY(16px); transition: opacity .2s, transform .25s var(--ease); }
.chat-panel[hidden] { display: none; }
.chat-panel.open { opacity: 1; transform: none; }
@media (min-width: 640px) {
  .chat-panel { inset: auto 20px 20px auto; width: 400px; height: min(640px, calc(100vh - 100px)); border-radius: 22px; border: 1px solid var(--line-strong); box-shadow: 0 24px 64px -24px rgba(16, 24, 40, .34); overflow: hidden; }
}
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 12px 14px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.chat-avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-fill-2), var(--gold-fill)); color: var(--gold-ink); font-family: var(--serif); font-weight: 800; }
.chat-head-text { flex: 1; min-width: 0; }
.chat-head h2 { font-family: var(--font); font-size: 1rem; margin: 0; }
.chat-head p { margin: 0; font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.chat-head .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.icon-btn { width: 40px; height: 40px; border-radius: 10px; border: 0; background: none; color: var(--text-2); cursor: pointer; display: grid; place-items: center; }
.icon-btn:hover { background: rgba(17, 23, 38, .06); color: var(--text); }

.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; overscroll-behavior: contain; }
.chat-msg { display: flex; flex-direction: column; gap: 8px; max-width: 100%; }
.chat-in { animation: fadeUp .3s var(--ease); }
.chat-bubble { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .93rem; line-height: 1.5; overflow-wrap: anywhere; }
.chat-user { align-items: flex-end; }
.chat-user .chat-bubble { background: linear-gradient(180deg, var(--gold-fill-2), var(--gold-fill)); color: var(--gold-ink); border-bottom-right-radius: 4px; }
.chat-bot .chat-bubble { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; color: var(--text); }
.chat-typing { display: inline-flex; gap: 4px; padding: 14px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: bounce 1.2s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-5px); opacity: 1; } }

.chat-cards { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.chat-paper { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.chat-paper-top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chat-paper h4 { font-size: .95rem; margin: 0 0 2px; }
.chat-paper-meta { margin: 0 0 10px; font-size: .78rem; color: var(--muted); }
.chat-paper-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-subject { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); }
.chat-subject:hover { border-color: var(--gold); color: var(--text); }
.chat-subject-name { font-weight: 600; font-size: .92rem; }
.chat-subject-meta { font-size: .76rem; color: var(--muted); }

.chat-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.chat-quick button { height: 32px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(135, 92, 5, .5); background: rgba(242, 184, 75, .22); color: var(--gold); font-size: .82rem; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.chat-quick button:hover { background: var(--gold); color: #fff; }
.chat-suggest { display: flex; gap: 8px; overflow-x: auto; padding: 0 16px 10px; scrollbar-width: none; }
.chat-suggest[hidden] { display: none; }
.chat-suggest button { flex: 0 0 auto; height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: none; color: var(--text-2); font-size: .82rem; cursor: pointer; }
.chat-suggest button:hover { border-color: var(--gold); color: var(--gold); }
.chat-form { display: flex; gap: 8px; padding: 12px 12px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--surface); }
.chat-form input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--bg); color: var(--text); font: inherit; font-size: 16px; outline: none; }
.chat-form input:focus { border-color: var(--gold); }
.chat-send { width: 46px; height: 46px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: linear-gradient(180deg, var(--gold-fill-2), var(--gold-fill)); color: var(--gold-ink); }

/* ---------- motion ---------- */
.fade-in { animation: fadeUp .4s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.shown { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------------------------------------------------------------- SEO blocks
   Added 2026-10 with the URL/SEO rework: the subject overview cards, the page
   intro paragraph, and the FAQ block that backs the FAQPage structured data. */

.page-intro {
  max-width: 68ch;
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.overview-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin: 1.5rem 0 2rem;
}

.overview-card {
  position: relative;
  display: block;
  padding: 1.4rem 3rem 1.4rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: border-color .18s ease, transform .18s ease, background .18s ease;
}

.overview-card:hover,
.overview-card:focus-visible {
  border-color: var(--gold);
  background: var(--surface-2);
  transform: translateY(-2px);
}

.overview-card h2 {
  margin: 0 0 .4rem;
  font-size: 1.1rem;
}

.overview-card p { margin: 0; font-size: .92rem; }

.overview-card .tile-go {
  position: absolute;
  top: 50%;
  right: 1.25rem;
  transform: translateY(-50%);
  color: var(--gold);
}

.faq { margin: 2.5rem 0 1rem; }

.faq-list {
  margin: 0;
  display: grid;
  gap: .75rem;
}

.faq-item {
  padding: 1.05rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.faq-item dt {
  font-weight: 600;
  margin: 0 0 .35rem;
}

.faq-item dd {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: .94rem;
}

/* Subject-page FAQ: one line per question, the answer drops down on click. */
.faq-accordion { gap: .5rem; }

.faq-accordion .faq-item { padding: 0; }

.faq-accordion summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .8rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-accordion summary::-webkit-details-marker { display: none; }

.faq-accordion summary::after {
  content: "+";
  flex: none;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-muted);
}

.faq-accordion details[open] summary::after { content: "\2212"; }

@media (max-width: 640px) {
  .faq-accordion summary { padding: .65rem 1rem; font-size: .88rem; gap: .75rem; }
  .faq-accordion summary::after { font-size: 1.1rem; }
  .faq-accordion .faq-item p { padding: 0 1rem .8rem; font-size: .84rem; line-height: 1.55; }
}

.faq-accordion summary:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; border-radius: 12px; }

.faq-accordion .faq-item p {
  margin: 0;
  padding: 0 1.25rem 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-size: .94rem;
}

/* The subject tabs are <a> now, not <button>; keep them looking identical. */
a.tab-btn { text-decoration: none; }

/* A-Z index, used on a program page that has no semester level (Diploma). */
.alpha-bar {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  margin: 0 0 1.5rem;
}

.alpha-bar a {
  min-width: 2rem;
  padding: .3rem .5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  text-align: center;
  text-decoration: none;
  font-size: .85rem;
  color: inherit;
}

.alpha-bar a:hover { border-color: var(--gold); color: var(--gold); }

.alpha-heading {
  margin: 2rem 0 .75rem;
  font-size: 1.05rem;
  color: var(--gold);
  scroll-margin-top: 5rem;
}

/* ---------------------------------------------------------------- search
   /search results page. The results reuse .subject-grid / .subject-card. */
.search-page-bar { display: flex; align-items: center; gap: 8px; padding: 3px 3px 3px 14px; margin-bottom: 8px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow); max-width: 640px; transition: border-color .2s, box-shadow .2s; }
.search-page-bar:focus-within { border-color: var(--gold); box-shadow: 0 0 0 4px rgba(135, 92, 5, .16), var(--shadow); }
.search-page-bar svg { color: var(--muted); }
.search-page-bar .btn { height: 34px; min-height: 0; padding: 0 16px; font-size: .9rem; }
.search-page-bar input { flex: 1; min-width: 0; height: 34px; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; outline: none; }
.search-page-bar input::placeholder { color: var(--muted); }
.subject-meta { font-size: .82rem; color: var(--muted); }
.search-tips { margin-top: 24px; }
.empty .btn { margin-top: 4px; }

/* ---------------------------------------------------------------- info pages
   About, Contact, Privacy, Terms, Disclaimer, Copyright (seo.INFO_PAGES). */
.info-layout { display: grid; gap: 32px; }
@media (min-width: 900px) { .info-layout { grid-template-columns: minmax(0, 1fr) 240px; align-items: start; } }
.info-body { max-width: 72ch; padding: 24px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 640px) { .info-body { padding: 36px 40px; } }
.info-body .page-head h1 { margin-bottom: .3em; }
.info-body .lede { font-size: 1.08rem; color: var(--text-2); margin: 0; }
.info-body h2 { font-family: var(--font); font-size: 1.15rem; font-weight: 700; margin: 1.8em 0 .5em; }
.info-body p, .info-body li { color: var(--text-2); line-height: 1.7; }
.info-body ul, .info-body ol { padding-left: 1.3em; margin: 0 0 1em; }
.info-body li { margin-bottom: .35em; }
.info-body p a, .info-body li a, .info-body dd a { text-decoration: underline; text-underline-offset: 2px; }
.info-body .faq-list { margin-top: 12px; }
.info-updated { margin: 2.5em 0 0; padding-top: 1em; border-top: 1px solid var(--line); }
.callout { padding: 16px 20px; border-radius: var(--radius-sm); background: rgba(242, 184, 75, .18); border: 1px solid rgba(135, 92, 5, .3); }
.callout p { margin: 0; color: var(--text); }
.info-nav { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
@media (min-width: 900px) { .info-nav { position: sticky; top: calc(var(--nav-h) + 16px); } }
.info-nav h2 { font-family: var(--font); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px 10px; }
.info-nav a { padding: 8px 10px; border-radius: 8px; color: var(--text-2); font-size: .92rem; }
.info-nav a:hover { background: var(--surface-2); color: var(--text); }
.info-nav a[aria-current="page"] { background: rgba(242, 184, 75, .24); color: var(--gold-2); font-weight: 600; }

.contact-grid { display: grid; gap: 14px; margin: 24px 0 8px; }
@media (min-width: 560px) { .contact-grid { grid-template-columns: repeat(2, 1fr); } }
.contact-card { display: flex; flex-direction: column; gap: 4px; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); transition: border-color .2s, transform .2s var(--ease), box-shadow .2s; }
.contact-card:hover { color: var(--text); border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 12px 28px -14px rgba(16, 24, 40, .26); }
.contact-icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px; background: rgba(242, 184, 75, .28); color: var(--gold); }
.contact-wa .contact-icon { background: rgba(11, 100, 64, .12); color: var(--green); }
.contact-wa:hover { border-color: var(--green); }
.contact-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-value { font-weight: 700; font-size: 1.05rem; overflow-wrap: anywhere; }
.contact-hint { font-size: .85rem; color: var(--muted); }

/* ---------------------------------------------------------------- hub cards
   Homepage: the two ways in, universities and boards. Two across even on a
   phone, so they sit together right under the hero buttons. */
.hero-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; max-width: 520px; }
.hub-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.hub-card:hover { color: var(--text); transform: translateY(-3px); border-color: var(--gold); box-shadow: 0 14px 30px -14px rgba(16, 24, 40, .28); }
.hub-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 6px; background: rgba(242, 184, 75, .28); color: var(--gold); }
.hub-title { font-weight: 700; font-size: 1.05rem; }
.hub-sub { font-size: .82rem; color: var(--text-2); line-height: 1.4; }
.hub-meta { margin-top: auto; padding-top: 8px; font-size: .78rem; font-weight: 600; color: var(--gold); }

/* /boards and /universities share these cards. On /boards a board with papers
   is a link card and the rest are placeholders; every university links. */
.card-filter { margin-bottom: 20px; }
[data-filter-item][hidden], .filter-empty[hidden] { display: none; }
.filter-empty { margin: 16px 0 0; }
.filter-empty a { text-decoration: underline; text-underline-offset: 2px; }
.board-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .board-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .board-grid { grid-template-columns: repeat(3, 1fr); } }
.board-card { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.board-name { font-weight: 700; font-size: 1.02rem; }
.board-full { font-size: .84rem; color: var(--text-2); line-height: 1.4; }
.board-meta { font-size: .78rem; color: var(--muted); }
a.board-live { color: var(--text); transition: transform .25s var(--ease), border-color .25s; }
a.board-live:hover { color: var(--text); transform: translateY(-3px); border-color: var(--gold); }
.board-card .board-name { color: var(--gold); }
.board-card .board-meta { color: var(--text); font-weight: 600; }

/* ---------------------------------------------------------------- pick cards
   "Select course" / "Select branch": a card with a title and a grid of
   equal-width buttons, two across on a phone so every label is the same size
   and nothing runs off the edge. The current course is filled. */
.pick-card { padding: 16px; margin-bottom: 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: calc(var(--nav-h) + 8px); }
.pick-card .section-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 1.05rem; }
.pick-card .section-title svg { color: var(--gold); flex: 0 0 auto; }
.pick-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr)); }
.pick-btn { display: flex; align-items: center; justify-content: center; gap: 7px; min-width: 0; min-height: 46px; padding: 9px 8px; border-radius: 10px; border: 1px solid rgba(135, 92, 5, .32); background: rgba(242, 184, 75, .16); color: var(--text); font-weight: 700; font-size: .9rem; line-height: 1.25; text-align: center; overflow-wrap: anywhere; transition: transform .15s var(--ease), box-shadow .15s, border-color .15s, background .15s; }
.pick-btn svg { flex: 0 0 auto; color: var(--gold); }
.pick-btn:hover { color: var(--text); border-color: var(--gold); background: rgba(242, 184, 75, .3); transform: translateY(-2px); box-shadow: 0 8px 16px -8px rgba(135, 92, 5, .45); }
.pick-btn:active { transform: scale(.97); }
.pick-btn.is-current { background: linear-gradient(180deg, var(--gold-fill-2), var(--gold-fill)); border-color: transparent; color: var(--gold-ink); }
/* Branch page: each semester is a card; subject cards there are one line (code + name, no paper count). */
.sem-section { margin-bottom: 16px; padding: 16px 18px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: calc(var(--nav-h) + 8px); }
.sem-section > .section-title { margin: 0 0 4px; font-size: 1.1rem; }
.subject-grid.compact { gap: 10px; }
.subject-grid.compact .subject-card { flex-direction: row; align-items: baseline; gap: 8px; padding: 12px 14px; }
.subject-grid.compact .subject-code { flex: 0 0 auto; white-space: nowrap; }
.subject-grid.compact .subject-name { min-width: 0; font-size: .95rem; line-height: 1.3; }
@media (max-width: 640px) { .sem-section { padding: 12px; } }
.sub-title { font-size: 1rem; margin: 20px 0 0; }
.pick-btn.is-current svg { color: currentColor; }
/* An option with no papers yet: still a link (to a "coming soon" page), but quieter. */
.pick-btn.is-empty { background: transparent; border-style: dashed; border-color: var(--line-strong, var(--line)); color: var(--text-2); font-weight: 600; }
.pick-btn.is-empty:hover { background: rgba(17, 23, 38, .04); border-color: var(--text-3, var(--text-2)); box-shadow: none; transform: none; }
.pick-btn .soon { flex: 0 0 auto; padding: 1px 6px; border-radius: 999px; background: rgba(17, 23, 38, .07); color: var(--text-2); font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.sem-pick .pick-btn .soon { margin-top: 3px; }
.empty-note .muted { margin: 0; }
/* Phone: a paper is one slim row (title and chips left, View / Download right)
   instead of a tall card, so a year's papers fit on one screen. */
@media (max-width: 639px) {
  .year-group { margin-bottom: 14px; }
  .year-heading { font-size: .9rem; margin-bottom: 6px; }
  .pyq-grid { gap: 8px; }
  .pyq-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title actions" "top actions"; align-items: center; gap: 4px 10px; padding: 9px 12px; border-radius: 12px; }
  .pyq-card:hover { transform: none; }
  .pyq-title { grid-area: title; font-size: .9rem; line-height: 1.3; }
  .pyq-top { grid-area: top; gap: 4px; }
  .pyq-top .chip { height: 20px; padding: 0 8px; font-size: .68rem; }
  .pyq-actions { grid-area: actions; margin: 0; gap: 6px; }
  .pyq-actions .btn { min-height: 34px; padding: 0 12px; font-size: .8rem; }
}
@media (max-width: 480px) {
  .pick-card { padding: 12px; }
  .pick-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pick-btn { min-height: 42px; padding: 9px 6px; gap: 6px; font-size: .82rem; }
}

/* ---------------------------------------------------------------- phones
   Smaller type and buttons below 640px: the desktop sizes made the hero fill
   the whole first screen and pushed everything else below the fold. */
@media (max-width: 639px) {
  .hero { padding: 22px 0 28px; }
  .eyebrow { font-size: .68rem; margin-bottom: 8px; }
  .hero-title { font-size: 2rem; margin-bottom: 10px; }
  .hero-sub { font-size: .9rem; margin-bottom: 16px; }
  .btn:not(.btn-sm):not(.btn-xs) { min-height: 40px; padding: 0 16px; font-size: .88rem; }
  .btn-lg { font-size: .9rem; }
  .hero-ctas { gap: 10px; }
  .hero-ctas .btn { flex: 1; }
  .hero-cards { gap: 10px; margin-top: 16px; }
  .hub-card { padding: 12px; }
  .hub-icon { width: 32px; height: 32px; border-radius: 9px; margin-bottom: 4px; }
  .hub-icon svg { width: 17px; height: 17px; }
  .hub-title { font-size: .95rem; }
  .hub-sub { font-size: .76rem; }
  .hub-meta { font-size: .72rem; }
  .hub-count { display: none; }
  /* "Previous Year Papers" wrapped to three lines in the subject tabs. */
  .tab-long { display: none; }
  .tab-btn { padding: 0 8px; font-size: .85rem; }
  .hero-stats { gap: 22px; margin-top: 20px; }
  .hero-stats dd { font-size: 1.35rem; }
  .hero-stats dt { font-size: .72rem; }
  .hero-visual { height: 220px; }
  .section { padding: 36px 0; }
  .section-head { margin-bottom: 18px; }
  .section-head h2 { font-size: 1.4rem; }
  .step { padding: 18px; }
  .step-num { font-size: 1.5rem; }
  .step h3 { font-size: 1rem; }
  .step p { font-size: .88rem; }
  .cta-band { padding: 22px 18px; gap: 14px; }
  .cta-band h2 { font-size: 1.35rem; }
  .cta-band p { font-size: .88rem; }
  .page-head h1 { font-size: 1.35rem; }
  .section-title { font-size: 1.15rem; }
  .pill { min-height: 38px; padding: 0 14px; font-size: .86rem; }
  .tile { min-height: 32px; padding: 0 10px; }
  .tile-title { font-size: .82rem; }
  .sem { width: 38px; height: 38px; }
  .info-body { padding: 20px 18px; }
  .info-body .lede { font-size: .98rem; }
  .info-body p, .info-body li { font-size: .92rem; }
}

/* ---------------------------------------------------------------- Branch page
   Panels/chips are shared with the program page; the heading block is scoped to .branch-page so the whole redesign can be reverted in one commit.
   Semester picker = numbered chips; each semester = a header row (badge, title,
   count) over a list of subject rows with the code as a fixed-width badge. */
.branch-page .page-head { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.branch-page .page-head h1 { letter-spacing: -.01em; line-height: 1.2; }
.branch-page .page-head p { max-width: 62ch; line-height: 1.6; font-size: .95rem; margin: 8px 0 0; }

.pick-card.sem-pick { padding: 14px 16px; }
.sem-pick .pick-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.sem-pick .pick-btn { flex-direction: column; gap: 0; min-width: 64px; min-height: 0; padding: 8px 12px; background: rgba(242, 184, 75, .16); border: 1px solid rgba(135, 92, 5, .32); font-weight: 600; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-2); }
.sem-pick .pick-num { font-size: 1.15rem; line-height: 1.2; letter-spacing: 0; color: var(--text); font-weight: 800; }
.sem-pick .pick-btn:hover { background: rgba(242, 184, 75, .3); border-color: var(--gold); }

.sem-section { padding: 0; overflow: hidden; margin-bottom: 18px; }
.sem-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: rgba(242, 184, 75, .16); border-bottom: 1px solid rgba(135, 92, 5, .32); }
.sem-head .section-title { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 1.05rem; }
.sem-badge { flex: 0 0 auto; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: linear-gradient(180deg, var(--gold-fill-2), var(--gold-fill)); color: var(--gold-ink); font-weight: 800; font-size: .95rem; }
.sem-count { flex: 0 0 auto; font-size: .75rem; font-weight: 600; color: var(--text-2); padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); }
.sem-section .alpha-bar { margin: 14px 16px 0; }
.sem-section .sub-title { scroll-margin-top: calc(var(--nav-h) + 8px); }
.sem-section .subject-grid,
.sem-section .sub-title { margin-left: 16px; margin-right: 16px; }
.sem-section .subject-grid { margin-top: 14px; margin-bottom: 16px; }
.sem-section .sub-title { margin-top: 4px; font-size: .9rem; color: var(--text-2); }

.sem-section .subject-grid.compact { gap: 8px; }
.sem-section .subject-grid.compact .subject-card { align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; box-shadow: none; background: var(--bg); }
.sem-section .subject-grid.compact .subject-card:hover { background: var(--gold-50); border-color: var(--gold); transform: none; box-shadow: none; }
.sem-section .subject-grid.compact .subject-code { min-width: 4.6em; text-align: center; padding: 3px 6px; border-radius: 6px; background: rgba(242, 184, 75, .26); font-size: .72rem; letter-spacing: .02em; }
.sem-section .subject-grid.compact .subject-name { font-size: .92rem; font-weight: 600; line-height: 1.3; }

@media (max-width: 640px) {
  .branch-page .page-head p { font-size: .84rem; line-height: 1.55; }
  .sem-pick .pick-btn { min-width: 56px; padding: 7px 10px; }
  .sem-head { padding: 10px 12px; }
  .sem-section .subject-grid,
  .sem-section .sub-title { margin-left: 12px; margin-right: 12px; }
  .sem-section .subject-grid.compact .subject-name { font-size: .86rem; }
}

/* ================================================================ Theme refresh
   2026-10-25. One override layer: change a token here, not the rules above.
   Revert the commit to get the previous look back.

   TYPE   Plus Jakarta Sans for everything; Playfair Display only for the brand
          mark and the homepage hero, where its character is the point.
   COLOUR Ink (navy) for text, indigo for links and actions, bronze/gold for
          the brand accent and fills. Each hue has a shade scale so tints are
          picked from the scale rather than invented per component.
   Contrast (vs --surface / vs --bg #e9edf6; palette cooled 2026-10-27):
     --text #0d1530 18.6 / 14.9   --text-2 #364059 10.1 / 8.1
     --muted #515b73 6.2 / 5.2    --link #2b4fd1 6.7 / 5.4
     --gold #7d5503 6.5 / 5.5     --green #0b6440 7.1 / 6.0 */
:root {
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Ink scale (text, borders, neutral fills) */
  --ink-50:  #f3f5fa;   /* = --surface-2 */
  --ink-100: #e9edf6;   /* = --bg */
  --ink-200: #b8c0d3;   /* = --line */
  --ink-300: #8d98b0;   /* = --line-strong */
  --ink-500: #515b73;   /* = --muted */
  --ink-700: #364059;   /* = --text-2 */
  --ink-900: #0d1530;   /* = --text */

  /* Gold scale (brand) */
  --gold-50:  #fff8e8;
  --gold-100: #fdebc2;
  --gold-200: #ffd27a;  /* = --gold-fill-2 */
  --gold-300: #f2b84b;  /* = --gold-fill */
  --gold-700: #7d5503;  /* = --gold */
  --gold-800: #6d4904;  /* = --gold-2 */

  /* Indigo scale (links, selection, info) */
  --indigo-50:  #eef2ff;
  --indigo-100: #dbe4ff;
  --indigo-600: #2b4fd1;
  --indigo-800: #1f3aa6;

  --text: var(--ink-900);
  --text-2: var(--ink-700);
  --muted: var(--ink-500);
  --text-muted: var(--ink-500);
  --link: var(--indigo-600);
  --link-hover: var(--indigo-800);
  --blue: var(--indigo-600);

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(13, 21, 48, .08), 0 4px 10px -6px rgba(13, 21, 48, .14);
  --shadow: 0 1px 2px rgba(13, 21, 48, .06), 0 14px 28px -16px rgba(13, 21, 48, .24);
  --shadow-lg: 0 24px 48px -20px rgba(13, 21, 48, .34);
}

body { font-size: 16px; line-height: 1.6; font-feature-settings: "cv11", "ss01"; -webkit-font-smoothing: antialiased; }

/* Type scale: tighter, heavier headings; one sans family */
h1, h2, h3, h4 { font-family: var(--font); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; color: var(--text); }
h1 { font-size: clamp(1.7rem, 4.2vw, 2.4rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.75rem); }
h3 { font-size: 1.1rem; font-weight: 700; }
.container.page h1, .container.page h2 { font-weight: 800; letter-spacing: -.02em; }
.hero-title, .brand-name, .brand-mark { font-family: var(--serif); }
.hero-stats dd, .step-num { font-family: var(--font); font-weight: 800; }
.eyebrow { font-size: .72rem; letter-spacing: .14em; }

/* Links are indigo; bronze stays for accents (eyebrows, codes, icons) */
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline-color: var(--link); }
.breadcrumb a, .nav-links a, .brand, .btn, .btn-gold, .pick-btn, .subject-card, .tile, .sem, .seg-btn, .pill { color: inherit; }
.nav-links a { color: var(--text-2); }
.btn-gold, .btn-gold:hover { color: var(--gold-ink); }
.btn-ghost:hover, .chip-btn:hover { color: var(--link); border-color: var(--link); }
.breadcrumb a:hover, .nav-search-btn:hover { color: var(--link); }
.nav-search-btn:hover { border-color: var(--link); }
.nav-search:focus-within { border-color: var(--link); box-shadow: 0 0 0 3px rgba(43, 79, 209, .18); }

/* Buttons */
.btn { font-weight: 700; letter-spacing: -.005em; }
.btn-gold { box-shadow: var(--shadow-sm); }
.btn-gold:hover { box-shadow: 0 12px 24px -10px rgba(135, 92, 5, .55); }
.btn-ghost { background: var(--surface); }

/* Surfaces: one border, one two-tier shadow system */
.subject-card, .step, .overview-card, .pick-card, .sem-section, .subject-hero, .faq-item, .board-card { box-shadow: var(--shadow); }
.sem, .tile, .nav-search, .nav-search-btn { box-shadow: none; }
.subject-card:hover { box-shadow: var(--shadow-lg); border-color: var(--ink-300); }
.nav.scrolled { box-shadow: var(--shadow-sm); }

/* Chips and tags draw from the scales */
.chip { background: var(--indigo-100); color: var(--indigo-800); }
.chip-gold, .code-badge { background: var(--gold-100); color: var(--gold-800); }
.chip-ghost { background: var(--ink-100); color: var(--ink-700); }
.subject-code { color: var(--gold-800); }
.subject-name { font-weight: 700; letter-spacing: -.01em; }
.subject-tag { color: var(--ink-500); font-weight: 600; }
.sem-count { color: var(--ink-700); font-weight: 700; }
.section-title { letter-spacing: -.02em; }
.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: clamp(1.5rem, 4vw, 2.1rem); }
.page-intro, .page-head .muted { color: var(--ink-700); }

/* ================================================================ Nav + footer
   2026-10-25. Header: pill links with an indigo active state, a roomier phone
   menu. Footer: ink-900 panel so it reads as the end of the page, with real
   crawlable links to every university and the popular courses on every page.
   Footer contrast on #0d1530: text #c9d1e4 12.5, muted #9fabc6 7.8,
   headings --gold-200 13.1, WhatsApp green #6fe0aa 11.6. */
.nav { background: rgba(255, 255, 255, .86); }
.brand-name { letter-spacing: -.01em; }
.nav-links a { font-weight: 600; font-size: .92rem; padding: 8px 14px; transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--indigo-50); color: var(--indigo-800); }
.nav-links a[aria-current="page"] { background: var(--indigo-100); color: var(--indigo-800); }
.nav-search { background: var(--ink-50); }
.nav-toggle:hover span { background: var(--indigo-600); }

.nav-menu.open { gap: 14px; padding: 14px 16px 22px; border-radius: 0 0 18px 18px; }
.nav-menu.open .nav-links { gap: 2px; }
.nav-menu.open .nav-links a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 14px; border-radius: 12px; font-size: 1rem; }
.nav-menu.open .nav-links a::after { content: "\203A"; font-size: 1.3rem; color: var(--ink-300); }
.nav-menu.open .nav-links a[aria-current="page"]::after { color: var(--indigo-600); }
@media (min-width: 820px) { .nav-menu .nav-links a::after { content: none; } }

.footer { margin-top: 48px; padding: 48px 0 0; background: var(--ink-900); border-top: 0; color: #c9d1e4; }
.footer .brand, .footer .brand:hover { color: #fff; }
.footer-about p { color: #c9d1e4; line-height: 1.65; }
.footer-col { gap: 11px; }
.footer-col h2 { color: var(--gold-200); font-size: .72rem; letter-spacing: .14em; margin-bottom: 6px; }
.footer-col a { color: #c9d1e4; font-size: .92rem; line-height: 1.35; width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .15s, background-size .2s; }
.footer-col a:hover { color: #fff; background-size: 100% 1px; }
.footer a:focus-visible { outline-color: var(--gold-200); }
.social-btn { color: #e8ecf6; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .05); }
.social-btn:hover { color: #fff; border-color: var(--gold-200); background: rgba(255, 255, 255, .1); }
.social-wa { color: #6fe0aa; border-color: rgba(111, 224, 170, .5); }
.social-wa:hover { color: #9af0c6; border-color: #6fe0aa; background: rgba(111, 224, 170, .1); }
.footer-base { border-top-color: rgba(255, 255, 255, .14); color: #9fabc6; }
.footer-base a, .footer-base a.muted { color: #9fabc6; }
.footer-base a:hover { color: #fff; }
@media (min-width: 900px) { .footer-inner { grid-template-columns: 1.5fr repeat(4, 1fr); gap: 32px; } }
@media (max-width: 899px) { .footer-inner { grid-template-columns: repeat(2, 1fr); } }

/* ================================================================ Info pages
   2026-10-25. About, Contact, Privacy, Terms, Disclaimer, Copyright: a header
   block with an eyebrow, section headings with a gold marker, a fact strip
   (About) and trust chips (Privacy), and a side list that matches the new nav. */
.info-body { border-radius: 20px; overflow: hidden; padding: 0 24px; }
.info-head { margin: 0 -24px 0 !important; padding: 28px 24px 24px; background: linear-gradient(180deg, var(--gold-50), var(--surface)); border-bottom: 1px solid var(--line); }
.info-head h1 { font-size: clamp(1.6rem, 4.5vw, 2.3rem); margin: 0 0 .35em; }
.info-body .lede { font-size: 1.05rem; line-height: 1.65; max-width: 58ch; }
.info-head + * { margin-top: 28px; }
.info-body h2 { position: relative; padding-left: 14px; font-size: 1.2rem; letter-spacing: -.015em; color: var(--text); }
.info-body h2::before { content: ""; position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--gold-200), var(--gold-300)); }
.info-body p, .info-body li, .info-body dd { font-size: .98rem; }
.info-body p a, .info-body li a, .info-body dd a { color: var(--link); font-weight: 600; }
.info-updated { margin: 2em 0 0; padding: 1em 0 24px; }
@media (min-width: 640px) {
  .info-body { padding: 0 40px; }
  .info-head { margin: 0 -40px !important; padding: 36px 40px 28px; }
}

/* About: how the site is organised, as numbered steps */
.info-steps { list-style: none; counter-reset: step; display: grid; gap: 10px; padding-left: 0 !important; }
.info-steps li { counter-increment: step; position: relative; padding: 12px 14px 12px 52px; border-radius: 12px; background: var(--ink-50); border: 1px solid var(--line); margin: 0; }
.info-steps li::before { content: counter(step); position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: linear-gradient(180deg, var(--gold-fill-2), var(--gold-fill)); color: var(--gold-ink); font-weight: 800; font-size: .85rem; }
.fact-strip { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding-left: 0 !important; }
.fact-strip li { display: flex; flex-direction: column; gap: 2px; padding: 14px; margin: 0; border-radius: 14px; background: var(--gold-50); border: 1px solid rgba(135, 92, 5, .28); }
.fact-strip b { font-size: 1.35rem; font-weight: 800; letter-spacing: -.02em; color: var(--text); }
.fact-strip span { font-size: .8rem; color: var(--text-2); }
@media (min-width: 640px) { .fact-strip { grid-template-columns: repeat(4, 1fr); } }

/* Privacy: the short version as chips */
.trust-strip { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding-left: 0 !important; }
.trust-strip li { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(11, 100, 64, .1); border: 1px solid rgba(11, 100, 64, .35); color: var(--green); font-weight: 700; font-size: .85rem; }
.trust-strip li::before { content: "\2713"; font-weight: 800; }

/* Contact + FAQ items */
.info-body .contact-grid { gap: 14px; }
.contact-card { border-color: var(--line); box-shadow: var(--shadow); }
.contact-card:hover { border-color: var(--gold); }
.contact-icon { background: var(--gold-100); color: var(--gold-800); }
.info-body .faq-item { background: var(--ink-50); box-shadow: none; }
.info-body .faq-item dt { font-size: 1rem; margin-bottom: .3rem; }
.info-body .faq-item dd { color: var(--text-2); line-height: 1.65; }
.callout { background: var(--gold-50); }

/* Side list */
.info-nav { padding: 14px; }
.info-nav h2 { color: var(--muted); }
.info-nav a { font-weight: 600; transition: background .15s, color .15s; }
.info-nav a:hover { background: var(--indigo-50); color: var(--indigo-800); }
.info-nav a[aria-current="page"] { background: var(--indigo-100); color: var(--indigo-800); font-weight: 700; }
@media (max-width: 899px) {
  .info-nav { flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .info-nav h2 { flex: 1 0 100%; margin-bottom: 2px; }
  .info-nav a { border: 1px solid var(--line); background: var(--surface); }
}

/* ---------------------------------------------------------------- Desktop layout fixes
   1. The semester/year picker fills its card: equal columns that stretch, instead of
      small chips bunched at the left.
   2. A semester panel shows subjects two across at most (three made each name cramped).
   3. A paper is one row, as on a phone: title and exam-type chips on the left, View and
      Download on the right. Two rows across on a wide screen. */
@media (min-width: 640px) {
  .sem-pick .pick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(64px, 1fr)); }
  .sem-pick .pick-btn { min-width: 0; }

  .sem-section .subject-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .pyq-grid { gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pyq-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "title actions" "top actions"; align-items: center; gap: 4px 14px; padding: 10px 14px; border-radius: 12px; }
  .pyq-card:hover { transform: none; }
  .pyq-title { grid-area: title; font-size: .95rem; line-height: 1.3; }
  .pyq-top { grid-area: top; gap: 4px; }
  .pyq-top .chip { height: 20px; padding: 0 8px; font-size: .68rem; }
  .pyq-actions { grid-area: actions; margin: 0; gap: 6px; }
  .pyq-actions .btn { min-height: 34px; padding: 0 14px; font-size: .85rem; }
}
@media (min-width: 980px) {
  .pyq-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Subject filter box: hide whole panels with no match; the "Other subjects" panel note. */
.sem-section[hidden], .sem-pick[hidden] { display: none; }
.sem-section .sem-note { margin: 12px 16px 0; font-size: .85rem; }
.card-filter { margin-bottom: 14px; }

/* Exam practice tab: three-way switch, then stats, steps, latest papers, unit links. */
.seg { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 640px) { .seg { width: 520px; } }
.tab-short { display: none; }
@media (max-width: 639px) {
  .tab-short { display: inline; }
  .seg-btn { padding: 0 6px; gap: 5px; font-size: .84rem; }
}
.practice-heading { margin: 28px 0 12px; font-size: 1.1rem; }
.practice-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.practice-stat { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.practice-stat strong { font-size: 1.5rem; line-height: 1.1; }
.practice-stat span { font-size: .78rem; color: var(--text-2); }
.practice-steps { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .practice-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .practice-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.practice-steps li { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.practice-steps h3 { margin: 0 0 2px; font-size: .95rem; }
.practice-steps p { margin: 0; font-size: .85rem; color: var(--text-2); }
.step-n { flex: 0 0 auto; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gold-fill); color: #1a1a1a; font-weight: 700; font-size: .85rem; }
.practice-units { display: grid; gap: 8px; }
@media (min-width: 640px) { .practice-units { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .practice-units { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.practice-unit { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 16px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--text); text-decoration: none; }
.practice-unit:hover { border-color: var(--line-strong); }
.practice-unit-title { font-weight: 600; overflow-wrap: anywhere; }

/* ---------------------------------------------------------------- homepage polish
   The hub cards are the main way into the site but were the smallest thing in
   the hero. From 640px they get more room and larger copy; the phone sizes set
   above are left alone. Headings wrap evenly instead of leaving one-word lines. */
h1, h2, .hero-sub, .cta-band p { text-wrap: balance; }
.hub-meta span[aria-hidden="true"] { display: inline-block; transition: transform .25s var(--ease); }
.hub-card:hover .hub-meta span[aria-hidden="true"] { transform: translateX(4px); }
.hub-card:focus-visible { outline-offset: 2px; border-radius: var(--radius); }
@media (min-width: 640px) {
  .hero-cards { gap: 16px; max-width: 560px; }
  .hub-card { padding: 22px 20px; gap: 6px; }
  .hub-icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 8px; }
  .hub-title { font-size: 1.2rem; }
  .hub-sub { font-size: .92rem; }
  .hub-meta { font-size: .86rem; padding-top: 12px; }
}
.step:hover { border-color: var(--gold); }

/* ================================================================ Type refresh
   2026-10-27. Bricolage Grotesque for headings and big numbers (it has real
   character at 700-800 and an optical-size axis, so it stays sharp from card
   titles to the hero); Plus Jakarta Sans stays on body text and UI, where
   legibility matters more than personality. Playfair Display italic is kept
   for one thing only: the accent word in the hero. */
:root { --display: 'Bricolage Grotesque', var(--font); }
body { text-rendering: optimizeLegibility; }
h1, h2, h3, h4,
.container.page h1, .container.page h2, .page-head h1, .info-head h1,
.hero-title, .hero-stats dd, .step-num, .fact-strip b, .section-head h2, .cta-band h2 {
  font-family: var(--display); font-optical-sizing: auto; letter-spacing: -.025em;
}
h3, .step h3 { font-weight: 700; letter-spacing: -.015em; }

/* Hero: bigger and tighter, accent word in italic serif with a gold marker stroke */
.hero-title { font-size: clamp(2.7rem, 8.4vw, 5rem); font-weight: 800; line-height: 1.02; letter-spacing: -.04em; isolation: isolate; }
.hero-title em {
  position: relative; display: inline-block; padding: 0 .06em;
  font-family: var(--serif); font-style: italic; font-weight: 700; letter-spacing: -.02em;
}
.hero-title em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em; z-index: -1;
  border-radius: 999px; background: linear-gradient(90deg, var(--gold-fill-2), var(--gold-fill)); opacity: .75;
  transform-origin: left; animation: markerIn .9s .35s var(--ease) both;
}
@keyframes markerIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.hero-sub { font-size: clamp(1.05rem, 2.6vw, 1.22rem); line-height: 1.6; }

/* Numbers and labels */
.hero-stats dd { font-size: 2.1rem; font-weight: 800; letter-spacing: -.03em; }
.hero-stats dt, .eyebrow { font-weight: 700; }
.step-num { font-size: 2.4rem; letter-spacing: -.03em; -webkit-text-stroke: 1.5px var(--gold); }
.section-head h2 { font-size: clamp(1.8rem, 4.8vw, 2.7rem); line-height: 1.1; letter-spacing: -.035em; }
.cta-band h2 { font-size: clamp(1.7rem, 4.4vw, 2.4rem); letter-spacing: -.035em; }
.hub-title { font-family: var(--display); font-weight: 800; letter-spacing: -.02em; }
.btn { letter-spacing: 0; }
.btn-lg { font-size: 1.05rem; }

/* Body copy: slightly larger measure-friendly default on content pages */
.info-body p, .info-body li, .seo-copy p { line-height: 1.7; }
@media (prefers-reduced-motion: reduce) { .hero-title em::after { animation: none; } }

/* ================================================================ Homepage motion
   2026-10-27. Hero copy enters in sequence, floating chips orbit the paper
   stack, the "ask" chip types, and the steps are joined by a line. All of it is
   transform/opacity only, and the reduced-motion block above flattens it. */
@keyframes heroIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.hero-copy > * { animation: heroIn .7s var(--ease) both; }
.hero-copy > :nth-child(1) { animation-delay: .05s; }
.hero-copy > :nth-child(2) { animation-delay: .15s; }
.hero-copy > :nth-child(3) { animation-delay: .27s; }
.hero-copy > :nth-child(4) { animation-delay: .39s; }
.hero-copy > :nth-child(5) { animation-delay: .5s; }
.hero-copy > :nth-child(6) { animation-delay: .62s; }
.hero-visual { animation: heroIn .9s .2s var(--ease) both; }

/* the primary button gets a slow sheen so the eye lands on it */
.hero-ctas .btn-gold { position: relative; overflow: hidden; }
.hero-ctas .btn-gold::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%); background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); animation: sheen 4.5s 1.6s ease-in-out infinite; }
@keyframes sheen { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

/* floating chips over the hero visual */
.float-chip { position: absolute; z-index: 2; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); font-size: .82rem; font-weight: 700; color: var(--text); white-space: nowrap; pointer-events: none; animation: bob 6s ease-in-out infinite; }
.float-chip svg { color: var(--gold); }
.float-chip.c1 { top: 8%; left: 4%; }
.float-chip.c2 { bottom: 12%; right: 4%; animation-delay: -2s; background: linear-gradient(180deg, var(--gold-fill-2), var(--gold-fill)); color: var(--gold-ink); border-color: transparent; }
.float-chip.c3 { bottom: 26%; left: 2%; animation-delay: -4s; }
.chip-q { opacity: .7; font-weight: 600; }
@keyframes bob { 50% { transform: translateY(-10px); } }
.typing { display: inline-flex; gap: 3px; margin-left: 2px; }
.typing i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
@media (max-width: 899px) { .float-chip.c3 { display: none; } .float-chip { font-size: .76rem; padding: 7px 11px; } }

/* steps: a line joining the numbers on desktop, and a lift on hover */
@media (min-width: 760px) {
  .steps { position: relative; }
  .steps::before { content: ""; position: absolute; left: 12%; right: 12%; top: 50px; height: 0; border-top: 2px dashed var(--line-strong); z-index: 0; }
  .step { position: relative; z-index: 1; }
}
.step:hover { box-shadow: var(--shadow-lg); }
.hub-card:active, .step:active { transform: scale(.985); }

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .hero-visual, .float-chip, .typing i, .hero-ctas .btn-gold::after { animation: none !important; }
}

/* ================================================================ Nav + footer polish
   2026-10-27. Scroll progress under the header, a phone menu that slides in,
   a brand mark that reacts, and a footer with a gold edge, link arrows and a
   back-to-top. Transform/opacity only. */
.nav-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: linear-gradient(90deg, var(--gold-fill), var(--gold-fill-2)); transform: scaleX(0); transform-origin: left; pointer-events: none; opacity: 0; transition: opacity .2s; }
.nav.scrolled .nav-progress { opacity: 1; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.nav-menu.open { animation: menuIn .22s var(--ease); }
.brand-mark { transition: transform .35s var(--ease), box-shadow .35s; box-shadow: 0 4px 12px -4px rgba(135, 92, 5, .5); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.nav-links a { position: relative; }
.nav-links a[aria-current="page"]::before { content: ""; position: absolute; left: 50%; bottom: 3px; width: 16px; height: 3px; margin-left: -8px; border-radius: 3px; background: var(--gold-fill); }
@media (max-width: 819px) { .nav-links a[aria-current="page"]::before { content: none; } }
.nav-ask { box-shadow: 0 6px 16px -8px rgba(135, 92, 5, .6); }
.nav-ask svg { transition: transform .3s var(--ease); }
.nav-ask:hover svg { transform: rotate(-12deg) scale(1.15); }
.nav-toggle:focus-visible, .nav-search-btn:focus-visible { outline-offset: 0; border-radius: 12px; }

.footer { position: relative; overflow: hidden; background: radial-gradient(700px 260px at 85% -10%, rgba(242, 184, 75, .16), transparent 70%), var(--ink-900); }
.footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--gold-fill), var(--gold-fill-2), var(--gold-fill), transparent); }
.footer-about p { max-width: 30em; }
.footer-col h2 { display: flex; align-items: center; gap: 8px; }
.footer-col h2::before { content: ""; width: 14px; height: 3px; border-radius: 3px; background: var(--gold-fill); }
.footer-col a { transition: color .15s, background-size .2s, transform .2s var(--ease); }
.footer-col a:hover { transform: translateX(3px); }
.social-btn { transition: transform .2s var(--ease), border-color .2s, background .2s, color .2s; }
.social-btn:hover { transform: translateY(-2px); }
.footer-base-links { display: inline-flex; align-items: center; gap: 20px; }
.footer-base a.to-top { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); color: #e8ecf6; font-weight: 600; transition: transform .2s var(--ease), border-color .2s, color .2s; }
.footer-base a.to-top:hover { color: #fff; border-color: var(--gold-200); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .nav-menu.open, .brand-mark, .footer-col a, .social-btn { animation: none; transition: none; } .brand:hover .brand-mark, .footer-col a:hover, .social-btn:hover, .to-top:hover { transform: none; } }

/* ================================================================ Cards + listing pages
   2026-10-27. One card language across the site: a hairline gold accent that
   draws across the top on hover, display-font titles, a real focus ring, and
   and clearer course / branch / semester buttons. */
.board-card, .hub-card, .subject-grid:not(.compact) .subject-card { position: relative; overflow: hidden; }
.board-card::after, .hub-card::after, .subject-grid:not(.compact) .subject-card::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--gold-fill), var(--gold-fill-2)); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.board-card:hover::after, .hub-card:hover::after, .subject-grid:not(.compact) .subject-card:hover::after,
.board-card:focus-visible::after, .subject-card:focus-visible::after, .hub-card:focus-visible::after { transform: scaleX(1); }
a.board-card, a.subject-card, a.hub-card { transition: transform .25s var(--ease), border-color .25s, box-shadow .25s, background .25s; }
a.board-card:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow-lg); color: var(--text); }
a.board-card:focus-visible, a.subject-card:focus-visible, a.hub-card:focus-visible, .pick-btn:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.board-card .board-name { font-family: var(--display); font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.board-card { padding: 18px 20px; gap: 6px; }
.subject-grid:not(.compact) .subject-card .subject-name { font-family: var(--display); font-size: 1.08rem; letter-spacing: -.015em; }
.subject-grid:not(.compact) .subject-code { align-self: flex-start; padding: 2px 9px; border-radius: 7px; background: var(--gold-100); color: var(--gold-800); }
.subject-tag.tag-live { background: rgba(11, 100, 64, .08); }

/* course / branch / semester buttons */
.pick-btn { font-weight: 700; transition: transform .2s var(--ease), border-color .2s, background .2s, box-shadow .2s; }
.pick-btn:not(.is-current):not(.is-empty):hover { background: var(--gold-fill); border-color: var(--gold-fill); color: var(--gold-ink); }

/* semester lists: rows read as links */
.sem-section .subject-grid.compact .subject-card { position: relative; padding-right: 34px; transition: background .2s, border-color .2s, transform .2s var(--ease); }
.sem-section .subject-grid.compact .subject-card::after { content: "\203A"; position: absolute; right: 12px; top: 50%; transform: translateY(-52%); font-size: 1.4rem; line-height: 1; color: var(--ink-300); transition: transform .2s var(--ease), color .2s; }
.sem-section .subject-grid.compact .subject-card:hover { background: var(--surface); }
.sem-section .subject-grid.compact .subject-card:hover::after { color: var(--gold); transform: translate(3px, -52%); }

/* icon-only View / Download buttons (subject, notes, exam practice) */
.btn-ico { width: 40px; min-width: 40px; min-height: 40px; padding: 0; border-radius: 12px; }
.btn-ico svg { transition: transform .2s var(--ease); }
.btn-ico:hover svg { transform: translateY(-1px) scale(1.08); }
.btn-ico:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.pyq-actions .btn-ico, .file-actions .btn-ico { flex: 0 0 auto; }
@media (max-width: 420px) { .pyq-actions .btn-ico { flex: 0 0 auto; } }

/* ================================================================ Chatbot redesign
   2026-10-27. A dark navy header with a gold sparkle avatar frames the panel;
   the conversation sits on a soft tinted ground with white bot bubbles and navy
   user bubbles; found papers are cards with a gold edge and icon actions; the
   starter prompts become a 2x2 grid of tappable cards; the input is a pill with
   a gold send button. The floating button stays hidden (Ask AI is in the nav). */
.chat-panel { transform-origin: 100% 100%; transform: translateY(14px) scale(.97); background: var(--bg); }
.chat-panel.open { transform: none; }
@media (min-width: 640px) {
  .chat-panel { width: 420px; height: min(680px, calc(100vh - 96px)); border-radius: 26px; border: 1px solid var(--line-strong); box-shadow: 0 32px 80px -24px rgba(13, 21, 48, .5); }
}
.chat-head { position: relative; gap: 12px; padding: 16px 12px 16px 16px; border-bottom: 0; color: #fff; background: radial-gradient(260px 120px at 100% 0%, rgba(242, 184, 75, .32), transparent 70%), linear-gradient(135deg, #0d1530, #1b2a63); }
.chat-avatar { position: relative; width: 42px; height: 42px; border-radius: 14px; color: var(--gold-ink); box-shadow: 0 6px 16px -6px rgba(242, 184, 75, .8); }
.chat-avatar::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 12px; height: 12px; border-radius: 50%; background: #34d399; border: 2px solid #0d1530; }
.chat-head h2 { color: #fff; font-family: var(--display); font-size: 1.1rem; letter-spacing: -.01em; }
.chat-head p { color: #c9d1e4; font-size: .8rem; }
.chat-head .dot { display: none; }
.chat-head .icon-btn { color: #c9d1e4; border-radius: 12px; }
.chat-head .icon-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.chat-head .icon-btn:focus-visible { outline-color: var(--gold-fill-2); }

.chat-log { padding: 18px 16px 8px; gap: 12px; background: radial-gradient(420px 220px at 0% 0%, rgba(242, 184, 75, .14), transparent 70%), var(--bg); scroll-behavior: smooth; }
.chat-bubble { max-width: 90%; padding: 11px 15px; font-size: .94rem; line-height: 1.55; border-radius: 18px; }
.chat-bot .chat-bubble { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 6px; color: var(--text); box-shadow: 0 1px 2px rgba(13, 21, 48, .06); }
.chat-user .chat-bubble { background: linear-gradient(135deg, #0d1530, #24367a); color: #fff; border: 0; border-bottom-right-radius: 6px; box-shadow: 0 6px 14px -8px rgba(13, 21, 48, .6); }
.chat-bubble strong { font-weight: 700; }
.chat-typing { padding: 14px 16px; }
.chat-typing span { background: var(--gold); }

.chat-cards { gap: 10px; }
.chat-paper { position: relative; padding: 12px 14px 12px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; overflow: hidden; }
.chat-paper::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, var(--gold-fill-2), var(--gold-fill)); }
.chat-paper:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: var(--shadow-lg); }
.chat-paper h4 { font-family: var(--display); font-size: 1.02rem; letter-spacing: -.015em; color: var(--text); }
.chat-paper-meta { font-size: .8rem; }
.chat-paper-actions { gap: 8px; align-items: center; }
.chat-paper-actions .btn { gap: 6px; min-height: 34px; padding: 0 13px; font-size: .82rem; }
.chat-paper-actions .btn-link { padding: 0 4px; margin-left: auto; color: var(--link); }
.chat-subject { position: relative; padding: 11px 36px 11px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.chat-subject::after { content: "\203A"; position: absolute; right: 14px; top: 50%; transform: translateY(-52%); font-size: 1.4rem; color: var(--ink-300); transition: transform .2s var(--ease), color .2s; }
a.chat-subject:hover { transform: translateY(-2px); border-color: var(--gold); box-shadow: var(--shadow); }
a.chat-subject:hover::after { color: var(--gold); transform: translate(3px, -52%); }
.chat-subject-name { font-family: var(--display); font-weight: 700; color: var(--text); }
.chat-quick button { height: 34px; border-color: rgba(125, 85, 3, .45); background: var(--surface); color: var(--gold-800); font-weight: 600; transition: background .15s, color .15s, transform .15s; }
.chat-quick button:hover { background: var(--gold-fill); color: var(--gold-ink); border-color: transparent; transform: translateY(-1px); }

/* starter prompts: a 2x2 grid of cards instead of a scrolling strip */
.chat-suggest { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; overflow: visible; padding: 4px 16px 12px; background: var(--bg); }
.chat-suggest[hidden] { display: none; }
.chat-suggest button { flex: none; height: auto; min-height: 52px; padding: 9px 12px 9px 34px; position: relative; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: left; font-size: .84rem; font-weight: 600; line-height: 1.3; cursor: pointer; box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), border-color .2s, box-shadow .2s; }
.chat-suggest button::before { content: "\2726"; position: absolute; left: 12px; top: 10px; color: var(--gold); font-size: .95rem; }
.chat-suggest button:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: var(--shadow); color: var(--text); }
@media (max-width: 360px) { .chat-suggest { grid-template-columns: 1fr; } }

/* input */
.chat-form { gap: 10px; padding: 12px 14px 8px; border-top: 1px solid var(--line); background: var(--surface); }
.chat-form input { height: 48px; padding: 0 18px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line-strong); transition: border-color .15s, box-shadow .15s, background .15s; }
.chat-form input:focus { background: #fff; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(242, 184, 75, .3); }
.chat-send { width: 48px; height: 48px; box-shadow: 0 8px 16px -8px rgba(135, 92, 5, .7); transition: transform .2s var(--ease), box-shadow .2s; }
.chat-send:hover { transform: translateY(-2px) rotate(-6deg); }
.chat-send:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
.chat-note { margin: 0; padding: 0 16px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); text-align: center; font-size: .72rem; color: var(--muted); }
@media (max-width: 639px) { .chat-head { padding-top: calc(16px + env(safe-area-inset-top)); } }
@media (prefers-reduced-motion: reduce) { .chat-panel, .chat-paper, .chat-suggest button, .chat-send { transition: none; } .chat-send:hover { transform: none; } }

/* small screens: starter prompts swipe sideways so the conversation keeps its room */
.chat-head h2, .chat-head p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 479px) {
  .chat-suggest { display: flex; overflow-x: auto; gap: 8px; padding: 2px 16px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
  .chat-suggest::-webkit-scrollbar { display: none; }
  .chat-suggest button { flex: 0 0 auto; width: 176px; min-height: 48px; scroll-snap-align: start; }
}
@media (max-width: 359px) { .chat-note { display: none; } .chat-form { padding-bottom: calc(12px + env(safe-area-inset-bottom)); } }

/* Subject page: paper cards 25% taller (55.6px -> 70px) with a slightly wider gap (8px -> 12px). */
.pyq-grid { gap: 12px; }
.pyq-card { min-height: 70px; align-content: center; }

/* Report a problem (report.html) and its link on paper cards */
.report-form { max-width: 560px; display: grid; gap: 16px; }
.report-form fieldset { border: 1px solid var(--border, #d5d9e0); border-radius: 12px; padding: 12px 16px; margin: 0; display: grid; gap: 8px; }
.report-form legend { font-weight: 700; padding: 0 6px; }
.report-choice { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.report-note { display: grid; gap: 6px; font-weight: 600; }
.report-note textarea { width: 100%; font: inherit; padding: 10px; border-radius: 10px; border: 1px solid var(--border, #d5d9e0); }
.report-error { color: #b42318; font-weight: 600; margin: 0; }
.report-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pyq-report { font-size: .8rem; color: var(--text-muted, #5b6475); margin-left: auto; align-self: center; }
.pyq-report:hover { text-decoration: underline; }
