/* Topic pages (generated by build/build_pages.js). Builds on styles.css tokens. */
.topic-page .page-top, .topic-page .crumbs, .topic-page .article, .topic-page .foot { max-width: 760px; margin-left: auto; margin-right: auto; }
.page-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px 6px; }
.page-brand { color: var(--ink); text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: -.01em; }
.page-brand span { color: var(--accent); }
.page-cta-small { color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; white-space: nowrap; }
.page-cta-small:hover { border-color: var(--free); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 13px; color: var(--muted); padding-block: 6px 0; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--ink); }

.article h1 { font-size: clamp(28px, 5vw, 40px); line-height: 1.1; letter-spacing: -.02em; margin: 14px 0 12px; }
.article h2 { font-size: 20px; margin: 28px 0 10px; }
.article p { margin: 0 0 14px; }
.article .lede { font-size: 18px; color: var(--muted); }
.article .note { color: var(--muted); font-size: 14px; }
.article .facts { margin-top: 4px; }
.article .facts b { font-size: 17px; }
.article .timeline li { grid-template-columns: 120px 1fr; }
@media (max-width: 480px) { .article .timeline li { grid-template-columns: 1fr; } }

/* The map keeps its own (tall) proportions: beside the text on wide screens, centred on phones. */
.page-map { margin: 4px 0 18px; display: flex; justify-content: center; }
.page-map svg { display: block; height: min(440px, 62vh); width: auto; max-width: 100%; border-radius: 14px; border: 1px solid var(--line); background: var(--sea); }
@media (min-width: 700px) {
  .page-map { float: right; margin: 4px 0 18px 28px; }
  .page-map svg { height: 460px; }
  .article .timeline, .article h2 { display: flow-root; } /* sit beside the float without clipping the dots */
}
.related { clear: both; }
.pm-sea { fill: var(--sea); }
.pm-ctx { fill: var(--land); stroke: var(--land-line); stroke-width: .8; }
.pm-ctx.pm-country { fill: #5a2420; stroke: var(--accent); stroke-width: 1.5; }
.pm-r { stroke: var(--card); stroke-width: 1.1; stroke-linejoin: round; opacity: .55; }
.pm-r.g-isr { fill: var(--isr); } .pm-r.g-opt { fill: var(--opt); } .pm-r.g-syr { fill: var(--syr); }
.pm-r.pm-on { fill: var(--free); opacity: 1; stroke: #fff; stroke-width: 1.4; }
.pm-lake { fill: var(--sea); }

.quiz-cta {
  display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 22px; padding: 14px 22px; border-radius: 14px;
  background: var(--free); color: #fff; font-weight: 800; font-size: 16px; text-decoration: none;
}
.quiz-cta:hover { filter: brightness(1.08); }
.article .share-row { padding-top: 16px; border-top: 1px solid var(--line); }
.related { margin-top: 30px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; }
.related h2 { margin-top: 0; font-size: 17px; }
.related p { margin: 10px 0 0; }
.related a, .foot a { color: var(--ink); }

.topic-groups section { margin-top: 26px; }
.topic-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.topic-cards a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 14px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.topic-cards a:hover { border-color: var(--free); }
.topic-cards span { font-size: 13px; color: var(--muted); line-height: 1.45; }
.cc-status { display: inline-block; }
