/* Regional topic pages share the catalogue's typography, route cards and themes. */
.topic-page { color: var(--ink); }
.topic-page .crumbs { margin-bottom: 28px; }
.topic-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 40%); gap: clamp(32px, 5vw, 72px); align-items: center; }
.topic-hero--plain { grid-template-columns: minmax(0, 1fr); }
.topic-hero__copy { max-width: 760px; min-width: 0; }
.topic-eyebrow { margin: 0 0 12px; color: var(--link); font-size: var(--fs-caption); font-weight: var(--fw-button); line-height: 1.4; }
.topic-hero h1 { margin: 0; overflow-wrap: anywhere; }
.topic-hero__intro { max-width: 54ch; margin: 16px 0 0; color: var(--copy); font-size: var(--fs-body-lg); line-height: var(--lh-body); }
.topic-hero__actions, .topic-section__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.topic-hero__actions { margin-top: 26px; }
.topic-hero__photo { min-width: 0; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-soft); aspect-ratio: 4 / 3; }
.topic-hero__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.topic-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: clamp(28px, 4vw, 52px) 0 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.topic-stats > div { min-width: 0; padding: 20px 24px; }
.topic-stats > div + div { border-left: 1px solid var(--line); }
.topic-stats dt { color: var(--quiet); font-size: var(--fs-small); line-height: var(--lh-small); }
.topic-stats dd { margin: 5px 0 0; color: var(--ink); font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--fw-heading); line-height: var(--lh-h3); font-variant-numeric: tabular-nums; }
.topic-stats dd span { font-size: var(--fs-body); }
.topic-section { margin-top: clamp(48px, 6vw, 88px); }
#topic-routes { scroll-margin-top: 90px; }
.topic-section__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 24px; margin-bottom: 24px; }
.topic-section__head h2, .topic-about h2, .topic-bottom h2 { margin: 0; }
.topic-routes .topic-empty { grid-column: 1 / -1; }
.topic-empty { padding: 28px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--copy); background: var(--bg-soft); font-size: var(--fs-small); line-height: var(--lh-body); }
.topic-pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: 32px; color: var(--copy); font-size: var(--fs-small); }
.topic-about, .topic-bottom { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding-top: clamp(32px, 4vw, 56px); border-top: 1px solid var(--line); }
.topic-about > div > p:last-child, .topic-tip p:last-child, .topic-faq__items { margin: 16px 0 0; color: var(--copy); font-size: var(--fs-body); line-height: var(--lh-body); }
.topic-tip { padding: 24px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg-soft); }
.topic-tip h3 { margin: 0; color: var(--ink); font-family: var(--font-display); font-size: var(--fs-h4); font-weight: var(--fw-title); }
.topic-tip p:last-child { margin-top: 10px; font-size: var(--fs-small); }
.topic-stories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.topic-stories .topic-empty { grid-column: 1 / -1; }
.topic-story { display: flex; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); transition: border-color 160ms ease, box-shadow 160ms ease; }
.topic-story:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.topic-story:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.topic-story__image { flex: 0 0 34%; min-width: 0; background: var(--bg-soft); }
.topic-story__image img { display: block; width: 100%; height: 100%; min-height: 160px; object-fit: cover; }
.topic-story__copy { display: grid; align-content: center; gap: 8px; min-width: 0; padding: 20px; }
.topic-story__meta { color: var(--quiet); font-size: var(--fs-caption); }
.topic-story__copy strong { font-family: var(--font-display); font-size: var(--fs-h4); line-height: var(--lh-h4); overflow-wrap: anywhere; }
.topic-story__description { display: -webkit-box; overflow: hidden; color: var(--copy); font-size: var(--fs-small); line-height: var(--lh-small); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.topic-faq__items { display: grid; gap: 14px; }
.topic-faq__items p { margin: 0; }
.topic-faq__items strong { color: var(--ink); }
.topic-related__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.topic-related__links .chip { white-space: normal; text-align: left; }
.topic-related__links .chip span { color: var(--quiet); }
@media (max-width: 900px) {
    .topic-hero { grid-template-columns: minmax(0, 1fr) minmax(220px, 38%); gap: 28px; }
    .topic-hero--plain { grid-template-columns: minmax(0, 1fr); }
    .topic-stats > div { padding: 18px; }
}
@media (max-width: 767px) {
    .topic-page .crumbs { margin-bottom: 20px; }
    .topic-hero, .topic-about, .topic-bottom { grid-template-columns: minmax(0, 1fr); }
    .topic-hero { gap: 22px; }
    .topic-hero__intro { font-size: var(--fs-body); }
    .topic-hero__actions { margin-top: 20px; }
    .topic-hero__photo { aspect-ratio: 16 / 8; }
    .topic-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic-stats > div:nth-child(3) { border-left: 0; }
    .topic-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); }
    .topic-section__actions { width: 100%; }
    .topic-stories { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 400px) {
    .topic-stats > div { padding: 14px; }
    .topic-story__copy { padding: 14px; }
    .topic-story__image { flex-basis: 32%; }
}
