/* Styles for the public content pages (exam guides, news, blog, about).
   Loaded after styles.css, which provides the colours, fonts, buttons and header. */
.sitenav a.on { background: var(--accent-soft); color: var(--text); }
.sitemain { max-width: 1140px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.crumbs { font-size: 0.85rem; color: var(--muted); margin-bottom: 1.25rem; }
.crumbs a { color: var(--muted); }
.crumbs span { margin: 0 0.15rem; }

.doc-page { max-width: 820px; margin: 0 auto; }
.doc-page > h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; margin: 0.3rem 0 0.9rem; text-wrap: balance; }
.doc-page .lede { font-size: 1.12rem; line-height: 1.7; color: var(--heading); max-width: none; margin: 0 0 1.5rem; }
.doc-page h2 { font-size: 1.6rem; line-height: 1.15; margin: 2.2rem 0 0.7rem; scroll-margin-top: 5rem; }
.doc-page h3 { font: 700 1.1rem/1.35 var(--sans); color: var(--text); margin: 1.5rem 0 0.4rem; }
.doc-page h4 { font: 600 1rem/1.35 var(--sans); margin: 1.2rem 0 0.3rem; }
.doc-page p, .doc-page li { font-size: 1rem; line-height: 1.75; }
.doc-page ul, .doc-page ol { padding-left: 1.3rem; }
.doc-page li { margin: 0.3rem 0; }
.doc-page blockquote { margin: 1.2rem 0; padding: 0.2rem 1.1rem; border-left: 4px solid var(--sky); background: var(--surface-2); border-radius: 0 12px 12px 0; color: var(--heading); }
.prose a { text-decoration-thickness: 1px; text-underline-offset: 2px; }

.tablewrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.tablewrap table { width: 100%; border-collapse: collapse; font-size: 0.93rem; }
.tablewrap th, .tablewrap td { padding: 0.65rem 0.9rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.5; }
.tablewrap th { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--surface-2); }
.tablewrap tr:last-child td { border-bottom: 0; }
.tablewrap .num { text-align: right; white-space: nowrap; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.75rem; margin: 0 0 1rem; }
.facts > div { background: var(--band); border-radius: 16px; padding: 1rem 1.1rem; }
.facts .v { display: block; font: 600 2rem/1.1 var(--sans); color: var(--heading); font-variant-numeric: tabular-nums; }
.facts .k { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }

.sampleq { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 1.2rem 1.4rem; margin: 1rem 0; }
.sampleq .choices-list { margin: 0.6rem 0 0.9rem; padding-left: 1.5rem; }
.sampleq details { border-top: 1px solid var(--line); padding-top: 0.8rem; }
.sampleq summary { font-weight: 600; color: var(--link); }
.sampleq details p { margin: 0.6rem 0 0; }

.postgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; margin: 1.25rem 0 2rem; }
.postcard { display: block; background: var(--glass), #fff; border: 1px solid #fff; border-radius: 24px; padding: 1.4rem; box-shadow: var(--shadow); text-decoration: none; color: var(--text); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.postcard:hover { transform: translateY(-4px); box-shadow: 0 16px 40px -8px rgba(176, 100, 60, 0.25); }
.postcard h2 { font-size: 1.35rem; line-height: 1.2; margin: 0.3rem 0 0.5rem; }
.postcard p { margin: 0.3rem 0; font-size: 0.95rem; line-height: 1.6; }

.timeline { list-style: none; margin: 1rem 0 2rem; padding: 0 0 0 1.5rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; padding: 0 0 1.6rem 1.25rem; margin: 0; }
.timeline li::before { content: ""; position: absolute; left: -2.07rem; top: 0.35rem; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--sky); border: 3px solid var(--bg); box-shadow: 0 0 0 2px var(--sky); }
.timeline li.upcoming::before { background: var(--bg); }
.timeline time { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.timeline h3 { margin: 0.2rem 0 0.3rem; font-size: 1.2rem; }
.timeline p { margin: 0.3rem 0; }
.timeline .src { font-size: 0.88rem; color: var(--muted); }
.timeline .pill { background: var(--accent-soft); color: #b04e2c; text-transform: none; letter-spacing: 0; margin-left: 0.4rem; }

.cta-box { display: flex; justify-content: space-between; align-items: center; gap: 1.25rem; flex-wrap: wrap; background: var(--band); border-radius: 24px; padding: 1.75rem; margin: 2.5rem 0 0; }
.cta-box h2 { margin: 0 0 0.3rem; font-size: 1.5rem; }
.cta-box p { margin: 0; color: var(--heading); }
.cta-box > div { flex: 1; min-width: 240px; }

@media (max-width: 820px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .sitenav { order: 3; width: 100%; overflow-x: auto; }
  .sitemain { padding-top: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .postcard { transition: none; } .postcard:hover { transform: none; } }
