/* Vietnam Trip Kit, mock direction A ("Sổ chàm"). Written from scratch; fonts self-hosted (OFL, see fonts/OFL.txt). */

@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("fonts/source-serif-4-vietnamese-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-latin-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("fonts/source-sans-3-vietnamese-wght-normal.woff2") format("woff2");
  font-weight: 200 900; font-style: normal; font-display: swap;
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}

:root {
  color-scheme: light dark;
  --bg: #FFFFFF;
  --ink: #15161D;
  --muted: #4B4C57;
  --line: #D9D6CE;
  --accent: #2B3A8C;
  --accent-hover: #202C6E;
  --btn-fg: #FFFFFF;
  --signal: #D2452A;
  --rb: #C3C9EC;
  --serif: "Source Serif 4", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --sans: "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --g: 16px;
  --section: 48px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131316;
    --ink: #EEEEF1;
    --muted: #B6B6C0;
    --line: #38383F;
    --accent: #AEBAFF;
    --accent-hover: #CBD2FF;
    --btn-fg: #121326;
    --signal: #FF7A59;
    --rb: #3A4278;
  }
}
@media (min-width: 768px) { :root { --g: 24px; --section: 64px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--ink); background: var(--bg); }
@media (min-width: 768px) { body { font-size: 18px; } }

a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; }
p { margin: 0 0 1em; }
ul, ol, dl, dd { margin: 0; padding: 0; }
img { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 var(--g); }
.skip { position: absolute; left: var(--g); top: -80px; z-index: 100; background: var(--bg); color: var(--ink); padding: 10px 14px; border: 2px solid var(--accent); }
.skip:focus { top: 8px; }

/* ---------- header */
.site-head { background: var(--bg); border-bottom: 2px solid var(--ink); position: relative; z-index: 40; }
.head-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font: 600 23px/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -0.01em; }
.brand svg { width: 34px; height: 24px; flex: none; }
.mk-ln { stroke: var(--ink); fill: none; stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; }
.mk-dot { fill: var(--signal); stroke: var(--bg); stroke-width: 2; }
.nav, .head-util { display: none; }
.menu { position: relative; }
.menu summary { display: flex; align-items: center; min-height: 44px; min-width: 44px; padding: 0 4px; font-weight: 600; cursor: pointer; list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: ""; width: 8px; height: 8px; margin-left: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg) translateY(-2px); }
.menu[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.menu ul { position: absolute; right: 0; top: 100%; width: min(86vw, 320px); list-style: none; background: var(--bg); border: 2px solid var(--ink); }
.menu li + li { border-top: 1px solid var(--line); }
.menu a { display: flex; align-items: center; min-height: 52px; padding: 0 18px; color: var(--ink); text-decoration: none; font-weight: 500; }
.menu a[aria-current] { color: var(--accent); font-weight: 700; }
@media (min-width: 960px) {
  .head-row { min-height: 72px; }
  .menu { display: none; }
  .nav { display: block; flex: 1; }
  .nav ul { display: flex; justify-content: center; list-style: none; }
  .nav a { position: relative; display: flex; align-items: center; height: 72px; padding: 0 16px; white-space: nowrap; color: var(--ink); text-decoration: none; font-weight: 500; font-size: 17px; }
  .nav a:hover { color: var(--accent); }
  .nav a[aria-current] { color: var(--accent); font-weight: 600; }
  .nav a[aria-current]::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: -2px; height: 4px; background: var(--signal); }
  .head-util { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; font-size: 16px; color: var(--muted); }
}

/* ---------- in-page tab strip (sticky) */
.strip { position: sticky; top: 0; z-index: 30; background: var(--bg); border-bottom: 1px solid var(--line); }
.strip-in { display: flex; align-items: stretch; gap: 8px; position: relative; }
.strip-title { flex: none; display: flex; align-items: center; padding-right: 8px; font: 600 18px/1 var(--serif); white-space: nowrap; }
.tabs { position: relative; flex: 1; display: flex; overflow-x: auto; scrollbar-width: none; margin-right: calc(var(--g) * -1); }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { flex: none; display: inline-grid; align-content: center; justify-items: center; height: 48px; padding: 0 14px; margin-bottom: -1px; border-bottom: 3px solid transparent; color: var(--muted); text-decoration: none; }
.tabs a::after { content: attr(data-label); height: 0; overflow: hidden; visibility: hidden; font-weight: 600; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { color: var(--ink); font-weight: 600; border-bottom-color: var(--signal); }
.tabs a:focus-visible { outline-offset: -3px; }
.strip .more { position: absolute; right: 0; top: 0; bottom: 0; width: 40px; display: none; align-items: center; justify-content: center; background: var(--bg); border-left: 1px solid var(--line); color: var(--ink); font-size: 22px; pointer-events: none; }
.strip.can-scroll .more { display: flex; }
@media (min-width: 900px) { .strip .more { display: none !important; } }

/* ---------- home lead */
.lead { display: grid; gap: 24px 56px; padding: 28px 0 8px; grid-template-columns: 1fr; }
.lead h1 { font-size: clamp(2rem, 3.8vw, 3rem); font-weight: 700; line-height: 1.06; letter-spacing: -0.025em; margin: 0 0 18px; }
.lead .answer { margin: 0 0 18px; }
.lead figure { margin: 0; }
.lead picture { display: block; }
.lead figure img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 900px) { .lead { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.9fr); align-items: start; padding-top: 40px; } }
.monthline { display: flex; align-items: center; gap: 12px; margin: 0 0 18px; font-size: 17px; }
.monthline label { color: var(--muted); }
.monthline select { min-height: 44px; padding: 0 12px; font: 600 18px var(--sans); color: var(--ink); background: var(--bg); border: 2px solid var(--ink); border-radius: 2px; }
.linkrow { display: flex; flex-wrap: wrap; gap: 0 24px; }
.linkrow a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }

/* ---------- page head and photo band */
.crumbs { display: flex; flex-wrap: wrap; align-items: center; list-style: none; padding-top: 4px; font-size: 15px; color: var(--muted); }
.crumbs li + li::before { content: "\203A"; margin: 0 8px 0 4px; }
.crumbs a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; color: var(--muted); }
.crumbs a:hover { color: var(--accent); }
@media (min-width: 768px) { .crumbs a { min-height: 36px; } }
.pagehead { padding: 0 0 8px; scroll-margin-top: 64px; }
h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); font-weight: 700; line-height: 1.04; letter-spacing: -0.025em; margin: 4px 0 14px; }
.answer { font-size: clamp(1.25rem, 2.2vw, 1.5rem); line-height: 1.4; max-width: 46rem; margin: 0 0 12px; }
.checkline { font-size: 15px; line-height: 1.5; color: var(--muted); margin: 0; max-width: 60rem; }
.checkline b { color: var(--ink); font-weight: 600; }
.caveat { font-size: 17px; max-width: 38rem; margin: 14px 0 0; }
.switch { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; list-style: none; margin-top: 8px; font-size: 16px; }
.switch .k { color: var(--muted); }
.switch a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.switch [aria-current] { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; border-bottom: 3px solid var(--signal); }
.regline { display: flex; flex-wrap: wrap; gap: 0 26px; list-style: none; margin-top: 8px; font-size: 16px; }
.regline li { position: relative; display: flex; align-items: center; min-height: 44px; padding-left: 22px; }
.regline li::before { content: ""; position: absolute; left: 0; top: 50%; width: 12px; height: 12px; margin-top: -6px; border: 3px solid var(--ink); border-radius: 50%; background: var(--bg); }
.regline li.on::before { background: var(--signal); border-color: var(--signal); }
.regline li.on { font-weight: 600; }
.regline a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.band { margin: 16px 0 0; }
.band picture, .band img { display: block; width: 100%; }
.band img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; background: var(--line); }
@media (min-width: 768px) { .band img { aspect-ratio: 5 / 2; } }
.credit { font-size: 13px; line-height: 24px; color: var(--muted); margin: 4px 0 0; text-align: right; }
.credit a, .cr a, .fig figcaption a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; color: inherit; }
@media (min-width: 768px) { .credit a, .cr a, .fig figcaption a { min-height: 24px; } }
.cr { margin: 0; font-size: 13px; line-height: 1.3; color: var(--muted); }

/* ---------- body grid */
.page { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 64px; padding: 0 0 56px; }
.page-main { min-width: 0; }
@media (min-width: 1024px) {
  .page { grid-template-columns: minmax(0, 1fr) 300px; grid-template-areas: "main side"; padding-top: 8px; }
  .page-main { grid-area: main; }
  .page-side { grid-area: side; position: sticky; top: 72px; align-self: start; padding-top: 16px; }
}
.glance { border-top: 2px solid var(--ink); padding-top: 12px; }
.glance h2 { font-size: 21px; line-height: 1.2; margin: 0 0 4px; }
.glance dl > div { padding: 10px 0; border-top: 1px solid var(--line); }
.glance dl > div:first-child { border-top: 0; }
.glance dt { font-size: 15px; color: var(--muted); }
.glance dd { font-size: 17px; }

/* one station dot on a heavy rule per page, then plain spacing; some sections put the heading in a left column */
.sec { position: relative; padding: 0 0 var(--section); scroll-margin-top: 64px; }
.sec.first { padding-top: 24px; }
.sec.first::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); }
.sec.first::after { content: ""; position: absolute; left: 0; top: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px var(--bg); }
.sec h2, .block h2 { font-size: clamp(1.75rem, 3vw, 2.125rem); line-height: 1.15; letter-spacing: -0.015em; margin-bottom: 16px; }
.sec.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 36px; }
@media (min-width: 900px) { .sec.split { grid-template-columns: 170px minmax(0, 1fr); } .sec.split > h2 { font-size: 1.5rem; } }
.sec.close { padding: 16px 0 24px; border-top: 1px solid var(--line); }
.sec.close .pagefoot { margin-top: 0; }
.prose { max-width: 37rem; }
.prose p:last-child { margin-bottom: 0; }
.take { max-width: 40rem; }
.take p { margin: 0 0 14px; }
.take b { font-family: var(--serif); font-weight: 600; }

/* ---------- status marks */
.star { font-size: 0.8em; line-height: 0; color: var(--muted); margin-left: 1px; }
.ok { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 600; color: var(--accent); white-space: nowrap; }
.ok svg { width: 14px; height: 14px; }
.notchecked { color: var(--muted); font-style: italic; }
.foot-star { font-size: 14px; color: var(--muted); margin: 8px 0 0; }

/* ---------- tables */
.tablewrap { position: relative; overflow-x: auto; margin: 8px 0 8px; }
.tablehint { display: none; font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.tablewrap.can-scroll + .tablehint { display: block; }
table.grid { width: 100%; border-collapse: collapse; font-size: 17px; font-variant-numeric: tabular-nums; }
.grid th, .grid td { padding: 12px 14px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
.grid thead th { font-weight: 600; vertical-align: bottom; background: var(--bg); }
.grid thead tr:last-child th { border-bottom: 2px solid var(--ink); }
.grid tbody th { position: sticky; left: 0; z-index: 1; font-weight: 600; white-space: nowrap; background: var(--bg); }
.tablewrap.scrolled .grid tbody th, .tablewrap.scrolled .grid thead th:first-child { box-shadow: 2px 0 0 var(--line); }
.grid .sub { display: block; font-size: 14px; font-weight: 400; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.grid .num { text-align: right; }
.grid th.grp { text-align: center; border-bottom: 1px solid var(--line); }
.climate { min-width: 520px; }
.climate th, .climate td { padding: 11px 10px; }
.climate td { color: var(--muted); font-family: var(--serif); font-size: 18px; font-feature-settings: "lnum", "tnum"; }
.grid tr.mark th, .grid tr.mark td { border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); font-weight: 700; color: var(--ink); }
.picked { font-size: 18px; margin: 0 0 12px; max-width: 40rem; }
.picked:empty { display: none; }
.climate td.best { color: var(--ink); font-weight: 700; }
.timetable { min-width: 640px; }
.timetable tr.data th, .timetable tr.data td { border-bottom: 0; padding-bottom: 2px; }
.timetable tr.takerow td { padding-top: 0; padding-bottom: 14px; }
.timetable td { white-space: nowrap; font-feature-settings: "lnum", "tnum"; }
.timetable td.num, .ten td.trn b { font-family: var(--serif); }
.timetable .big { font: 600 22px/1 var(--serif); }
.timetable td.mute { color: var(--muted); }
.timetable .train { font: 600 20px/1 var(--serif); }
.timetable .take-cell { white-space: normal; font-size: 16px; color: var(--ink); }
.timetable .take-cell b { font-weight: 700; }
.ten { min-width: 640px; }
.ten td.trn { white-space: normal; font-size: 16px; min-width: 15rem; }
.ten td[data-l="Date"] { white-space: nowrap; }
.ten td[data-l="Where"] { min-width: 12rem; }
.ten td .sub { color: var(--muted); }
.ten .train { width: 3.5rem; }
@media (max-width: 700px) {
  .ten { min-width: 0; }
  .ten, .ten tbody, .ten tr, .ten th, .ten td { display: block; }
  .ten thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ten tr { padding: 14px 0; border-top: 1px solid var(--line); }
  .ten th, .ten td { padding: 0; border: 0; white-space: normal; position: static; }
  .ten th.train { display: inline; font-size: 20px; }
  .ten th.train::before { content: "Day "; }
  .ten td[data-l="Date"] { display: inline; margin-left: 10px; color: var(--muted); }
  .ten td[data-l="Where"] { margin-top: 4px; }
  .ten td.trn { margin-top: 6px; min-width: 0; }
  .timetable { min-width: 0; }
  .timetable, .timetable tbody, .timetable tr, .timetable th, .timetable td { display: block; }
  .timetable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .timetable tr.data { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 12px; padding: 16px 0 4px; border-top: 1px solid var(--line); }
  .timetable tr.data th.train { grid-column: 1 / -1; position: static; padding: 0; border: 0; font-size: 24px; }
  .timetable tr.data td { padding: 0; border: 0; white-space: normal; text-align: left; }
  .timetable tr.data td::before { content: attr(data-l); display: block; font: 400 13px/1.3 var(--sans); color: var(--muted); }
  .timetable tr.takerow td { padding: 4px 0 14px; }
}
.defs { display: grid; gap: 4px 24px; grid-template-columns: 1fr; font-size: 17px; margin-top: 16px; }
@media (min-width: 768px) { .defs { grid-template-columns: 11rem 1fr; gap: 10px 24px; } }
.defs dt { font-weight: 600; }
.defs dd { margin: 0 0 8px; }
.dl-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 16px; font-weight: 600; }

/* ---------- lists */
.notes, .track { list-style: none; border-top: 2px solid var(--ink); }
.notes li, .track li { display: grid; grid-template-columns: 6.5rem 1fr; gap: 2px 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.notes .k, .track time { font-size: 15px; color: var(--muted); padding-top: 3px; }
.notes p, .track p { margin: 0; }
.track .src { font-size: 14px; color: var(--muted); margin-top: 2px; }

/* ---------- route modes */
.modes { list-style: none; border-top: 2px solid var(--ink); }
.mode { padding: 18px 0 16px; border-bottom: 1px solid var(--line); }
.mode h3 { font-size: 23px; line-height: 1.2; margin-bottom: 10px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
@media (min-width: 768px) { .fields { grid-template-columns: 1.2fr 1fr 1.4fr 1fr; } }
.fields dt { font-size: 15px; color: var(--muted); }
.fields dd { margin: 0; line-height: 1.35; }
.cond-line { font-size: 17px; margin: 12px 0 0; max-width: 46rem; }

/* ---------- route line diagram */
.routeline { list-style: none; position: relative; margin: 8px 0 0; padding: 0 0 0 28px; }
.routeline::before { content: ""; position: absolute; left: 8px; top: 8px; bottom: 8px; width: 4px; background: var(--signal); }
.routeline li { position: relative; padding: 0 0 18px; line-height: 1.3; }
.routeline li::before { content: ""; position: absolute; left: -26px; top: 4px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--ink); }
.routeline li.end::before { background: var(--ink); }
.routeline b { font-family: var(--serif); font-weight: 600; font-size: 19px; }
.routeline span { display: block; font-size: 15px; color: var(--muted); }
@media (min-width: 900px) {
  .routeline { height: 168px; margin: 8px 0 8px; padding: 0 0 0 0; }
  .routeline::before { left: 0; right: 0; top: 80px; bottom: auto; height: 4px; width: auto; }
  .routeline li { position: absolute; left: var(--p); top: 0; padding: 0; width: 0; height: 168px; }
  .routeline li::before { left: -9px; top: 73px; width: 18px; height: 18px; }
  .routeline .lab { position: absolute; left: 0; transform: translateX(-50%); white-space: nowrap; text-align: center; }
  .routeline li.up .lab { bottom: 100px; }
  .routeline li.down .lab { top: 100px; }
  .routeline li:first-child .lab { transform: none; text-align: left; left: -9px; }
  .routeline li:last-child .lab { transform: none; text-align: right; left: auto; right: -9px; }
  .routeline li.minor .lab { display: none; }
}
.routeline .lab { display: block; }

/* ---------- figures */
.figrow { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 768px) { .figrow { grid-template-columns: minmax(0, 1fr) 320px; } }
.fig { margin: 0; }
.fig img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--line); }
.fig figcaption { font-size: 13px; line-height: 24px; color: var(--muted); margin-top: 4px; }

/* ---------- sources + history */
.twocol { display: grid; gap: 32px 56px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .twocol { grid-template-columns: 1fr 1fr; } }
.twocol h3 { font-size: 20px; margin-bottom: 8px; }
.src dt { padding-top: 4px; border-top: 1px solid var(--line); font-weight: 600; }
.src dt:first-child { border-top: 2px solid var(--ink); }
.src dt a { display: inline-flex; align-items: center; min-height: 44px; }
.src dd { margin: 0 0 10px; font-size: 16px; }
.pagefoot { font-size: 15px; color: var(--muted); margin: 14px 0 0; }
.pagefoot b { color: var(--ink); font-weight: 600; }

/* ---------- buttons, disclosure */
.btn { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; background: var(--accent); color: var(--btn-fg); border: 0; border-radius: 2px; font: 600 16px var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--accent-hover); }
.cite { margin: 10px 0 0; }
.cite summary { display: flex; align-items: center; min-height: 44px; width: fit-content; cursor: pointer; font-weight: 600; color: var(--accent); }
.cite p { max-width: 42rem; margin: 6px 0 10px; font-size: 16px; user-select: all; }

/* ---------- dates checker */
.datesform { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; margin: 14px 0 6px; max-width: 34rem; }
.datesform label { display: block; font-size: 15px; color: var(--muted); }
.datesform input { display: block; width: 100%; min-height: 44px; margin-top: 2px; padding: 0 10px; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); color-scheme: light dark; border: 2px solid var(--ink); border-radius: 2px; }
.datesout { min-height: 1.6em; margin: 6px 0 0; font-size: 16px; max-width: 40rem; }
.datesout p { margin: 0 0 6px; }
.dateres { list-style: none; margin: 6px 0 8px; }
.dateres li { padding: 6px 0; border-top: 1px solid var(--line); }

/* ---------- home blocks */
.block { padding: 0; }
.block > .wrap { position: relative; padding-top: 8px; padding-bottom: var(--section); }
.block.first > .wrap { padding-top: 24px; }
.block.first > .wrap::before { content: ""; position: absolute; left: var(--g); right: var(--g); top: 0; height: 2px; background: var(--ink); }
.block.first > .wrap::after { content: ""; position: absolute; left: var(--g); top: -6px; width: 14px; height: 14px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px var(--bg); }
.block > .wrap > h2 { margin-bottom: 18px; }
.regions { display: grid; gap: 32px 56px; grid-template-columns: minmax(0, 1fr); margin: 44px 0 64px; }
@media (min-width: 900px) { .regions { grid-template-columns: minmax(0, 1fr) 300px; } }
.regions h2 { margin-bottom: 20px; }
.regroute { list-style: none; position: relative; padding: 0 0 0 32px; }
.regroute::before { content: ""; position: absolute; left: 8px; top: 12px; bottom: 28px; width: 4px; background: var(--signal); }
.regstop { position: relative; padding: 0 0 22px; }
.regstop::before { content: ""; position: absolute; left: -32px; top: 12px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 3px solid var(--ink); }
.regstop h3 { font-size: 24px; line-height: 1.2; margin: 0 0 2px; }
.regstop h3 a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; color: var(--ink); }
.regstop h3 a:hover { color: var(--accent); text-decoration: underline; }
@media (min-width: 768px) { .regstop h3 a { min-height: 32px; } }
.regstop .line { margin: 0 0 4px; font-size: 18px; }
.regstop .places { margin: 0; font-size: 15px; color: var(--muted); }
.regions figure.tall { margin: 0; }
.regions figure.tall img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; background: var(--line); }
.finder { margin-top: 12px; max-width: 28rem; }
.finder label { display: block; font-size: 15px; color: var(--muted); }
.finder input { display: block; width: 100%; min-height: 44px; margin-top: 2px; padding: 0 12px; font: inherit; font-size: 17px; color: var(--ink); background: var(--bg); border: 2px solid var(--ink); border-radius: 2px; }
.found { list-style: none; }
.found a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.found a:hover { text-decoration: underline; }
.found small { font: 400 14px var(--sans); color: var(--muted); }
.picks { list-style: none; display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .picks { grid-template-columns: 1fr 1fr; gap: 32px; } }
.pick h3 { font-size: 24px; margin: 14px 0 6px; }
.pick p { margin: 0 0 8px; }
.pick ul { list-style: none; }
.pick li a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; font-weight: 600; text-decoration: none; border-top: 1px solid var(--line); }
.pick li a:hover { text-decoration: underline; }
.pick li a svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; }
.planrows { list-style: none; border-top: 2px solid var(--ink); }
.planrows li { display: grid; grid-template-columns: 1fr; gap: 0 24px; padding: 10px 0 6px; border-bottom: 1px solid var(--line); }
@media (min-width: 768px) { .planrows li { grid-template-columns: 9rem 1fr; } .planrows .when { padding-top: 14px; } }
.planrows .when { font-size: 15px; color: var(--muted); padding-top: 8px; }
.planrows a.t { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; font-weight: 600; text-decoration: none; }
.planrows a.t:hover { text-decoration: underline; }
.planrows svg { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; }
.planrows p { margin: -4px 0 8px; font-size: 16px; }
.home-end > .wrap { padding-bottom: 64px; }

/* ---------- footer */
.site-foot { border-top: 2px solid var(--ink); padding: 40px 0 28px; font-size: 17px; }
.foot-grid { display: grid; gap: 24px 32px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.foot-h { font: 600 18px/1.2 var(--serif); margin: 0 0 6px; }
.foot-grid ul { list-style: none; }
.foot-grid a { display: flex; align-items: center; min-height: 44px; color: var(--ink); }
.foot-grid a:hover { color: var(--accent); }
.foot-note { margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 15px; color: var(--muted); }
.foot-note p { margin: 0 0 6px; max-width: 52rem; }

@media print {
  .site-head, .strip, .site-foot, .skip, .datesform, .cite, .menu { display: none; }
  body { font-size: 12pt; }
  .page { display: block; }
  a { color: inherit; }
}

/* ---------- v5 additions */
.byline { font-size: 15px; color: var(--muted); margin: 0; }
.byline a { color: inherit; }
.diary { margin: 6px 0 4px; max-width: 40rem; }
.diary-h { font: 600 15px/1.3 var(--sans); letter-spacing: 0; color: var(--muted); margin: 0 0 4px; }
.diary dl > div { display: grid; grid-template-columns: 6.4rem 1fr; gap: 0 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.diary dl > div:last-child { border-bottom: 1px solid var(--line); }
.diary dt { font: 600 19px/1.3 var(--serif); font-feature-settings: "lnum"; }
.diary dd { font-size: 17px; line-height: 1.5; }
@media (max-width: 480px) { .diary dl > div { grid-template-columns: 1fr; } .diary dt { font-size: 17px; } }
.datafoot { margin: 8px 0 0; padding: 20px 0 8px; border-top: 2px solid var(--ink); }
.datafoot h2 { font-size: 1.375rem; margin-bottom: 8px; }
.dcl { display: grid; gap: 0; }
.dcl > div { display: grid; grid-template-columns: 10rem 1fr; gap: 2px 20px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 16px; }
.dcl > div:first-child { border-top: 0; }
.dcl dt { color: var(--muted); }
.dcl dd { margin: 0; }
@media (max-width: 600px) { .dcl > div { grid-template-columns: 1fr; } }
.statuslist { list-style: none; margin: 8px 0 24px; font-size: 16px; max-width: 46rem; }
.statuslist li { padding: 6px 0; border-top: 1px solid var(--line); }
.mistakes { list-style: none; counter-reset: m; max-width: 42rem; }
.mistakes li { counter-increment: m; position: relative; padding: 12px 0 12px 2.2rem; border-top: 1px solid var(--line); }
.mistakes li:first-child { border-top: 2px solid var(--ink); }
.mistakes li::before { content: counter(m); position: absolute; left: 0; top: 10px; font: 600 1.3rem/1 var(--serif); font-feature-settings: "lnum"; color: var(--signal); }
.mistakes p { margin: 0 0 2px; }
.mistakes .src { font-size: 14px; color: var(--muted); }
.steps { list-style: none; counter-reset: s; max-width: 40rem; }
.steps li { counter-increment: s; position: relative; padding: 10px 0 10px 2.2rem; border-top: 1px solid var(--line); }
.steps li::before { content: counter(s); position: absolute; left: 0; top: 8px; font: 600 1.3rem/1 var(--serif); color: var(--signal); }
.sub3 { font-size: 20px; line-height: 1.2; margin: 26px 0 8px; }
.wrap-cell { white-space: normal; min-width: 18rem; }
.grid td { color: var(--ink); }
.climate td { color: var(--muted); }
.sec.split > div, .sec.split > .take, .sec.split > ul, .sec.split > ol { min-width: 0; }
@media (min-width: 900px) { .climate { min-width: 720px; } }
.climate th.num, .climate td.num { padding-left: 6px; padding-right: 6px; }
.climate thead tr:last-child th { font-size: 14px; font-weight: 600; white-space: normal; }
.datafoot { scroll-margin-top: 64px; }
.glance a.blk { display: inline-flex; align-items: center; min-height: 44px; }
.grid tbody th a { display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- inline links keep a 24px hit area */
main p a, main dd a, main td a, main li > a, main figcaption a { padding-block: 3px; }

/* ---------- pages without a side column use the full width */
@media (min-width: 1024px) { .page:not(:has(.page-side)) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main"; } }

/* ---------- places and wet season */
.regplaces { display: flex; flex-wrap: wrap; align-items: center; gap: 0 20px; margin-top: 4px; font-size: 16px; }
.regplaces span { color: var(--muted); }
.regplaces a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
.facts { max-width: 46rem; margin: 0; }
.facts > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px 28px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts > div:first-child { border-top: 0; padding-top: 0; }
.facts dt { font: 600 18px/1.3 var(--serif); }
.facts dd { margin: 0; }
@media (min-width: 700px) { .facts > div { grid-template-columns: 11rem minmax(0, 1fr); } }
.linklist { list-style: none; margin: 0; padding: 0; max-width: 40rem; }
.linklist li { padding: 12px 0; border-top: 1px solid var(--line); }
.linklist li:first-child { border-top: 0; padding-top: 0; }
.linklist a { font-weight: 600; }
.linklist p { margin: 2px 0 0; font-size: 16px; color: var(--muted); }
.placegrid { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 36px 28px; }
.pcard .pimg { display: block; }
.pcard .pimg img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; background: var(--line); }
.pcard h3 { font-size: 22px; line-height: 1.2; margin: 12px 0 2px; }
.pcard h3 a { display: inline-block; padding-block: 10px; }
.pcard p { margin: 2px 0; font-size: 17px; }
.pcard .pm { color: var(--muted); font-size: 15px; }
.pcard .pc { font-size: 13px; line-height: 24px; color: var(--muted); }
.notices td, .notices th { white-space: normal; vertical-align: top; }
.notices th { min-width: 7.5rem; }
.notices td[data-l="What was announced"] { min-width: 24rem; }
.notices td.srccell { min-width: 11rem; font-size: 15px; }
@media (max-width: 700px) {
  .notices, .notices tbody, .notices tr, .notices th, .notices td { display: block; }
  .notices thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .notices tr { padding: 14px 0; border-top: 1px solid var(--line); }
  .notices th, .notices td { padding: 0; border: 0; min-width: 0 !important; position: static; }
  .notices td { margin-top: 6px; }
}
.regplaces a, .pcard h3 a, .glance dd a, .pagefoot a { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding-block: 0; }
.pcard h3 a { justify-content: flex-start; }
.glance dd a, .pagefoot a { justify-content: flex-start; }

.take p.lede { font: 400 21px/1.5 var(--serif); }
.take p.lede b { font-weight: 600; }

.foot-note a { display: inline-flex; align-items: center; min-height: 44px; padding-block: 0; }
