/* Australia Camper Routes — design system
   Eucalypt green carries the brand and navigation. Sunset ochre is reserved for the one
   action that matters on each screen (compare prices / work out my cost). Road-sign yellow
   only marks cautions. Serif headings give an editorial voice; Overpass (a road-sign face)
   handles UI, numbers and body text. All colour pairs below pass WCAG AA. */
:root {
  /* colour */
  --ink: #15231c;            /* 14.8:1 on sand */
  --ink-2: #4a5a52;          /* 6.6:1 on sand — secondary text */
  --bg: #f7f4ee;             /* warm sand paper */
  --surface: #ffffff;
  --surface-2: #efeae0;      /* tinted bands */
  --line: #e3ddd0;
  --line-2: #cbc2b0;
  --green: #17573f;          /* eucalypt — brand, links, secondary buttons */
  --green-900: #0f3b2c;      /* footer, dark panels */
  --green-50: #e8f0eb;
  --accent: #b5521b;         /* sunset ochre — primary actions, 5.0:1 with white */
  --accent-700: #9a4416;
  --sea: #2c6e86;
  --sign: #f2b705;           /* caution yellow */
  --sign-50: #fdf4d7;
  /* type */
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --sans: "Overpass", "Helvetica Neue", Arial, sans-serif;
  --t-xs: 0.8125rem;   /* 13 */
  --t-sm: 0.9375rem;   /* 15 */
  --t-md: 1.0625rem;   /* 17 body */
  --t-lg: 1.25rem;     /* 20 lede */
  --t-xl: 1.5rem;      /* 24 h3 */
  --t-2xl: clamp(1.75rem, 1.2rem + 1.8vw, 2.25rem);   /* h2 */
  --t-3xl: clamp(2.25rem, 1.4rem + 3.4vw, 3.5rem);    /* h1 */
  /* space (4px base) */
  --s1: 0.25rem; --s2: 0.5rem; --s3: 0.75rem; --s4: 1rem; --s5: 1.5rem;
  --s6: 2rem; --s7: 3rem; --s8: 4rem; --s9: 6rem;
  /* shape */
  --r-sm: 8px; --r-md: 14px; --r-lg: 22px; --r-pill: 999px;
  --shadow-1: 0 1px 2px rgba(21, 35, 28, 0.06);
  --shadow-2: 0 1px 2px rgba(21, 35, 28, 0.05), 0 10px 30px rgba(21, 35, 28, 0.08);
  --measure: 42rem;
  --wrap: 73rem;
  color-scheme: light;
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5rem; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: var(--t-md); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-700); }
:focus-visible { outline: 3px solid var(--sea); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; letter-spacing: -0.015em; margin: 0; color: var(--ink); text-wrap: balance; }
h1 { font-size: var(--t-3xl); font-variation-settings: "opsz" 60; }
h2 { font-size: var(--t-2xl); font-variation-settings: "opsz" 48; }
h3 { font-size: 1.25rem; font-variation-settings: "opsz" 24; }
p { margin: 0 0 var(--s4); }
strong { font-weight: 700; }
.num, td, .facts dd, .total-value { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .wrap { padding: 0 32px; } }
.prose { max-width: var(--measure); }
.prose h2 { margin: var(--s7) 0 var(--s3); }
.prose h3 { margin: var(--s5) 0 var(--s2); }
.prose ul, .prose ol { padding-left: 1.25rem; }
.prose li { margin-bottom: var(--s2); }
.muted { color: var(--ink-2); }
.small { font-size: var(--t-sm); }
.eyebrow { font-family: var(--sans); font-size: var(--t-xs); font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); margin: 0 0 var(--s3); }
.lede { font-size: var(--t-lg); line-height: 1.55; color: var(--ink-2); max-width: 38rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: var(--s2) var(--s4); font-weight: 700; z-index: 50; }
.skip:focus { left: 16px; top: 8px; color: #fff; }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }

/* ------------------------------------------------------------------ header */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(247, 244, 238, 0.94); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; gap: var(--s5); min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.0625rem; letter-spacing: -0.01em; color: var(--ink); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--ink); }
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav { display: none; gap: var(--s1); align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-size: var(--t-sm); font-weight: 600; padding: 8px 12px; border-radius: var(--r-pill); }
.nav a:hover { background: var(--surface-2); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--green-50); color: var(--green); }
.site-header .header-cta { display: none; }
.sep { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; vertical-align: middle; margin: 0 9px; font-size: 0; opacity: .7; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: var(--t-sm); padding: 9px 14px; border: 1px solid var(--line-2); border-radius: var(--r-pill); background: var(--surface); }
.menu summary::-webkit-details-marker { display: none; }
.menu[open] summary { background: var(--ink); color: #fff; border-color: var(--ink); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 10px); width: min(88vw, 320px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-2); padding: var(--s2); display: grid; }
.menu-panel a { display: block; padding: 12px 14px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-weight: 600; }
.menu-panel a:hover, .menu-panel a[aria-current="page"] { background: var(--green-50); color: var(--green); }
.menu-panel .btn { margin-top: var(--s2); }
@media (min-width: 960px) {
  .nav { display: flex; }
  .site-header .header-cta { display: inline-flex; }
  .menu { display: none; }
}

/* ------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: var(--r-pill); border: 1.5px solid transparent; font-family: var(--sans); font-size: 1rem; font-weight: 700; line-height: 1.2; text-decoration: none; text-align: center; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08), 0 6px 16px rgba(181, 82, 27, 0.22); }
.btn-primary:hover { background: var(--accent-700); color: #fff; }
.btn-secondary { background: var(--surface); color: var(--green); border-color: var(--green); }
.btn-secondary:hover { background: var(--green); color: #fff; }
.btn-dark { background: var(--green); color: #fff; }
.btn-dark:hover { background: var(--green-900); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: var(--t-sm); }
.btn-block { display: flex; width: 100%; }
.btn .icon { width: 18px; height: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: center; }
.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow:hover { text-decoration: underline; }
.disclosure-inline { font-size: var(--t-xs); color: var(--ink-2); margin: var(--s3) 0 0; line-height: 1.5; }

/* ------------------------------------------------------------------ sections & cards */
.section { padding: var(--s8) 0; }
.section-tint { background: var(--surface-2); }
.section-head { max-width: 44rem; margin-bottom: var(--s6); }
.section-head h2 { margin-bottom: var(--s3); }
.section-head p { color: var(--ink-2); margin: 0; }
.grid-2, .grid-3 { display: grid; gap: var(--s5); }
@media (min-width: 760px) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s5); box-shadow: var(--shadow-1); }
.card h3 { margin-bottom: var(--s2); }
.card p:last-child { margin-bottom: 0; }
.card-link { display: block; color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
.card-link:hover { color: inherit; border-color: var(--line-2); box-shadow: var(--shadow-2); transform: translateY(-2px); }
.card-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--green-50); color: var(--green); margin-bottom: var(--s4); }
.card-icon .icon { width: 22px; height: 22px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: var(--t-xs); font-weight: 700; padding: 3px 10px; border-radius: var(--r-pill); background: var(--green-50); color: var(--green); }
.tag-rest { background: var(--sign-50); color: #6b5300; }
.tag-plain { background: var(--surface-2); color: var(--ink-2); }

/* ------------------------------------------------------------------ home hero */
.hero { padding: var(--s7) 0 var(--s8); background:
  radial-gradient(1200px 500px at 85% -10%, rgba(44, 110, 134, 0.10), transparent 60%),
  radial-gradient(900px 420px at -10% 110%, rgba(23, 87, 63, 0.08), transparent 60%); }
.hero-grid { display: grid; gap: var(--s7); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.05fr 0.95fr; gap: var(--s8); } .hero { padding: var(--s8) 0 var(--s9); } }
.hero h1 { margin-bottom: var(--s5); }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--green); }
.hero .lede { margin-bottom: var(--s6); }
.hero-points { list-style: none; padding: 0; margin: var(--s6) 0 0; display: grid; gap: var(--s2); font-size: var(--t-sm); color: var(--ink-2); }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; }
.hero-points .icon { color: var(--green); width: 18px; height: 18px; margin-top: 3px; }
@media (max-width: 639px) { .hero-points { display: none; } .hero { padding-top: var(--s6); } }

/* trip card: the hero's main visual — real numbers, schematic route */
.trip-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-2); overflow: hidden; }
.trip-card-head { background: var(--green-900); color: #fff; padding: var(--s5) var(--s5) var(--s4); position: relative; }
.trip-card-head .eyebrow { color: #a8c3b5; margin-bottom: var(--s2); }
.trip-card-head h2 { color: #fff; font-size: 1.5rem; }
.trip-card-head .meta { color: #c9d8cf; font-size: var(--t-sm); margin: var(--s1) 0 0; }
.trip-card-body { padding: var(--s5); }
.route-option { display: grid; grid-template-columns: 1fr auto; gap: var(--s1) var(--s4); align-items: center; padding: var(--s4); border: 1px solid var(--line); border-radius: var(--r-md); color: inherit; text-decoration: none; transition: border-color .15s, background-color .15s; }
.route-option + .route-option { margin-top: var(--s3); }
.route-option:hover { border-color: var(--green); background: #fbfdfb; color: inherit; }
.route-option .route-name { font-weight: 800; font-size: 1.0625rem; }
.route-option .route-meta { grid-column: 1; font-size: var(--t-sm); color: var(--ink-2); }
.route-option .route-price { grid-row: 1 / span 2; grid-column: 2; text-align: right; }
.route-price .label { display: block; font-size: var(--t-xs); color: var(--ink-2); }
.route-price .value { display: block; font-weight: 800; font-size: 1.375rem; letter-spacing: -0.01em; color: var(--ink); }
@media (max-width: 520px) {
  .route-option { grid-template-columns: 1fr; }
  .route-option .route-price { grid-row: auto; grid-column: 1; text-align: left; display: flex; align-items: baseline; gap: 8px; margin-top: 4px; }
}
.trip-card-foot { display: flex; justify-content: space-between; gap: var(--s4); align-items: center; padding: 0 var(--s5) var(--s5); font-size: var(--t-xs); color: var(--ink-2); flex-wrap: wrap; }

/* schematic list of overnight stops, used in route cards and itinerary pages */
.stops { list-style: none; margin: var(--s5) 0 0; padding: 0; display: flex; flex-wrap: wrap; row-gap: var(--s3); position: relative; }
.stops li { position: relative; padding: 18px 14px 0 0; font-size: var(--t-xs); font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.stops li::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; height: 2px; background: var(--green); opacity: .35; }
.stops li::after { content: ""; position: absolute; left: 0; top: 1px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); border: 3px solid var(--green); }
.stops li:last-child::before { display: none; }
.stops li.end::after { background: var(--green); }
.stops li.end { color: var(--ink); }

/* trust strip */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.trust ul { list-style: none; margin: 0; padding: var(--s5) 0; display: grid; gap: var(--s4); }
@media (min-width: 760px) { .trust ul { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }
.trust li { display: flex; gap: var(--s3); align-items: flex-start; font-size: var(--t-sm); color: var(--ink-2); line-height: 1.5; }
.trust li strong { display: block; color: var(--ink); font-size: 1rem; }
.trust .icon { color: var(--green); width: 22px; height: 22px; margin-top: 2px; }

/* ------------------------------------------------------------------ calculator */
.calc-layout { display: grid; gap: var(--s5); align-items: start; }
@media (min-width: 960px) { .calc-layout { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s6); } .calc-results { position: sticky; top: 88px; } }
.calc-form { padding: 0; overflow: hidden; }
.calc-group { border: 0; margin: 0; padding: var(--s5); border-top: 1px solid var(--line); min-width: 0; }
.calc-group:first-of-type { border-top: 0; }
.calc-group legend { float: left; width: 100%; padding: 0; margin-bottom: var(--s4); font-family: var(--sans); font-size: var(--t-xs); font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--green); }
.calc-group legend + * { clear: both; }
.fields { display: grid; gap: var(--s4); grid-template-columns: repeat(2, minmax(0, 1fr)); clear: both; }
.field-wide { grid-column: 1 / -1; }
@media (max-width: 520px) { .fields { grid-template-columns: minmax(0, 1fr); } }
.field { min-width: 0; }
.field label { display: block; font-weight: 700; font-size: var(--t-sm); margin-bottom: 6px; }
.field .hint { font-size: var(--t-xs); color: var(--ink-2); margin-top: 6px; line-height: 1.45; }
.control { display: flex; align-items: stretch; background: var(--surface); border: 1.5px solid var(--line-2); border-radius: 10px; transition: border-color .15s, box-shadow .15s; overflow: hidden; }
.control:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px rgba(23, 87, 63, 0.18); }
.control input, .control select { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; font: inherit; font-size: 1rem; font-weight: 600; color: var(--ink); padding: 11px 12px; min-height: 46px; font-variant-numeric: tabular-nums; }
.control input:focus, .control select:focus { outline: none; }
.control select { appearance: none; -webkit-appearance: none; padding-right: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2315231c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center; cursor: pointer; }
.control .unit { display: flex; align-items: center; padding: 0 12px; font-size: var(--t-sm); font-weight: 700; color: var(--ink-2); background: var(--bg); white-space: nowrap; }
.control .unit:first-child { border-right: 1px solid var(--line); }
.control .unit:last-child { border-left: 1px solid var(--line); }
.calc-error { color: #9a2a12; font-weight: 700; font-size: var(--t-sm); margin: 0; padding: 0 var(--s5) var(--s5); }

.calc-results { padding: 0; overflow: hidden; }
.results-head { padding: var(--s5); background: var(--green-900); color: #fff; }
.results-head .eyebrow { color: #a8c3b5; margin-bottom: var(--s1); }
.total-value { display: block; font-family: var(--sans); font-size: clamp(2.5rem, 2rem + 2vw, 3.25rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.per-person { color: #c9d8cf; margin: var(--s2) 0 0; font-size: var(--t-sm); }
.results-body { padding: var(--s5); }
.breakdown { list-style: none; margin: 0 0 var(--s5); padding: 0; display: grid; gap: var(--s4); }
.breakdown li { display: grid; grid-template-columns: 1fr auto; gap: 6px var(--s3); font-size: var(--t-sm); }
.breakdown .amount { font-weight: 800; color: var(--ink); }
.breakdown .bar { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.breakdown .bar span { display: block; height: 100%; width: 0; border-radius: 3px; background: var(--green); transition: width .25s ease; }
.breakdown li:nth-child(2) .bar span { background: var(--sea); }
.breakdown li:nth-child(3) .bar span { background: #7a9a3a; }
.breakdown li:nth-child(4) .bar span { background: var(--accent); }
.estimate-note { font-size: var(--t-xs); color: var(--ink-2); background: var(--bg); border-radius: var(--r-sm); padding: var(--s3); margin: 0 0 var(--s4); line-height: 1.5; }
.assumptions { font-size: var(--t-sm); color: var(--ink-2); margin-top: var(--s4); border-top: 1px solid var(--line); padding-top: var(--s4); }
.assumptions summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.assumptions ul { padding-left: 1.2rem; margin: var(--s3) 0 0; }
.assumptions li { margin-bottom: var(--s2); }
/* mobile: keep the total in view while editing */
.calc-sticky { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: 10px 10px 10px 18px; background: var(--green-900); color: #fff; border-radius: var(--r-pill); box-shadow: 0 10px 30px rgba(15, 59, 44, 0.35); transform: translateY(150%); transition: transform .2s ease; }
.calc-sticky.show { transform: none; }
.calc-sticky .mini-label { font-size: var(--t-xs); color: #c9d8cf; display: block; line-height: 1.2; }
.calc-sticky strong { font-size: 1.25rem; line-height: 1.2; }
.calc-sticky a { color: var(--green-900); background: #fff; text-decoration: none; font-weight: 700; font-size: var(--t-sm); padding: 9px 16px; border-radius: var(--r-pill); }
@media (min-width: 960px) { .calc-sticky { display: none; } }

/* ------------------------------------------------------------------ route & vehicle cards */
.route-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.route-card-head { padding: var(--s5); background: var(--green-50); border-bottom: 1px solid var(--line); }
.route-card-head .stops { margin-top: var(--s4); }
.route-card .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 639px) { .route-card-head .stops { display: none; } .route-card .facts dd { font-size: 1rem; } }
.route-card-body { padding: var(--s5); display: flex; flex-direction: column; flex: 1; }
.route-card-body p { color: var(--ink-2); }
.route-card-body .link-arrow { margin-top: auto; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: var(--s3); margin: 0 0 var(--s4); }
.facts div { background: var(--bg); border-radius: var(--r-sm); padding: 10px 12px; }
.facts dt { font-size: var(--t-xs); color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 800; font-size: 1.0625rem; }
.vehicle-card .fit { font-weight: 700; color: var(--green); font-size: var(--t-sm); margin-bottom: var(--s3); }
.vehicle-card ul { padding-left: 1.1rem; margin: 0 0 var(--s4); font-size: var(--t-sm); color: var(--ink-2); }
.vehicle-card li { margin-bottom: 6px; }
.vehicle-card .btn-row { margin-top: auto; }
.vehicle-card { display: flex; flex-direction: column; }

/* ------------------------------------------------------------------ photography
   Every photo has fixed width/height attributes (no layout shift), a WebP srcset and a credit. */
.photo { margin: 0; position: relative; }
.photo img { display: block; width: 100%; height: auto; background: var(--surface-2); }
.photo figcaption { font-size: 0.75rem; line-height: 1.4; color: var(--ink-2); margin-top: 8px; }
.photo figcaption a { color: inherit; }
/* credit chip laid over the image */
.photo-hero figcaption, .photo-card figcaption { position: absolute; margin: 0; padding: 3px 10px; border-radius: var(--r-pill); background: rgba(15, 59, 44, 0.72); color: #fff; font-size: 0.6875rem; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.photo-hero figcaption a { color: #fff; }
.photo-hero img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.photo-hero figcaption { top: 12px; left: 12px; }
.hero-visual { position: relative; }
.hero-visual .trip-card { position: relative; z-index: 1; margin: -28px 14px 0; }
@media (min-width: 960px) { .hero-visual .trip-card { margin: -56px 0 0 48px; } }
.photo-card img { aspect-ratio: 16 / 9; object-fit: cover; }
.photo-card figcaption { right: 10px; bottom: 10px; }
.photo-banner { margin-top: var(--s6); }
.photo-banner img { aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--r-lg); }
@media (min-width: 760px) { .photo-banner img { aspect-ratio: 21 / 8; } }
.photo-vehicle { margin: calc(-1 * var(--s5)) calc(-1 * var(--s5)) var(--s4); }
.photo-vehicle img { aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-md) var(--r-md) 0 0; }
.photo-vehicle figcaption { padding: 0 var(--s5); }

/* ------------------------------------------------------------------ callouts */
.callout { display: flex; gap: var(--s4); align-items: flex-start; background: var(--sign-50); border: 1px solid #f0dd9c; border-radius: var(--r-md); padding: var(--s4) var(--s5); margin: var(--s5) 0; }
.callout p:last-child { margin-bottom: 0; }
.diamond { flex: none; width: 26px; height: 26px; margin: 6px 4px 0; background: var(--sign); border: 2px solid var(--ink); transform: rotate(45deg); border-radius: 4px; display: grid; place-items: center; }
.diamond span { transform: rotate(-45deg); font-weight: 800; font-size: 0.85rem; line-height: 1; }
.insight { display: flex; gap: var(--s4); }
.insight .card-icon { margin: 0; }
.insight h3 { font-size: 1.125rem; margin-bottom: var(--s2); }
.insight p { color: var(--ink-2); font-size: var(--t-sm); }

/* ------------------------------------------------------------------ FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: var(--s4); padding: var(--s4) 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.125rem; }
.faq summary::after { content: "+"; font-family: var(--sans); font-size: 1.5rem; font-weight: 400; color: var(--green); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq details > div { padding: 0 0 var(--s4); color: var(--ink-2); max-width: var(--measure); }

/* ------------------------------------------------------------------ inner pages */
.crumbs { padding-top: var(--s5); font-size: var(--t-sm); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--ink-2); }
.crumbs [aria-current] { color: var(--ink); font-weight: 600; }
.page-hero { padding: var(--s5) 0 var(--s7); border-bottom: 1px solid var(--line); }
.page-hero h1 { max-width: 52rem; margin-bottom: var(--s4); }
.page-hero .lede { margin-bottom: var(--s5); }
.page-hero .facts { max-width: 46rem; margin-bottom: var(--s5); }
.page-hero .facts div { background: var(--surface); border: 1px solid var(--line); }
.page-hero .stops { margin: 0 0 var(--s6); max-width: 60rem; }
.article-layout { display: grid; gap: var(--s7); padding-top: var(--s6); }
@media (min-width: 1000px) { .article-layout { grid-template-columns: minmax(0, 1fr) 21rem; gap: var(--s8); } .aside-sticky { position: sticky; top: 88px; } }
.article-layout .prose > h2:first-child { margin-top: 0; }
.aside-card h2 { font-size: 1.25rem; margin-bottom: var(--s3); }
.aside-card .facts { grid-template-columns: 1fr 1fr; }
.aside-card .btn { width: 100%; }
.aside-card .btn + .btn { margin-top: var(--s3); }
.aside-links { list-style: none; padding: 0; margin: var(--s5) 0 0; border-top: 1px solid var(--line); padding-top: var(--s4); font-size: var(--t-sm); display: grid; gap: var(--s2); }
.cta-band { margin: var(--s7) 0; background: var(--green-900); color: #fff; border-radius: var(--r-lg); padding: var(--s6); display: grid; gap: var(--s4); }
.cta-band h2 { color: #fff; font-size: 1.625rem; margin: 0; }
.cta-band p { color: #c9d8cf; margin: 0; }
.cta-band .disclosure-inline { color: #a8c3b5; }
.cta-band .disclosure-inline a { color: #fff; }
.simple-page { padding-top: var(--s5); padding-bottom: var(--s8); }
.simple-page .prose { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); margin-top: var(--s5); }
.simple-page h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin-bottom: var(--s5); }
.simple-page .prose h2 { font-size: 1.375rem; margin-top: var(--s6); }
@media (max-width: 640px) { .simple-page .prose { padding: var(--s5); } }

/* itinerary days */
.days { list-style: none; margin: var(--s5) 0; padding: 0; position: relative; }
.days::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: linear-gradient(var(--green), var(--sea)); opacity: .3; }
.days li { position: relative; display: grid; grid-template-columns: 40px 1fr; gap: var(--s4); padding-bottom: var(--s5); }
.day-num { position: relative; z-index: 1; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 2px solid var(--green); color: var(--green); font-weight: 800; font-size: var(--t-sm); font-variant-numeric: tabular-nums; }
.days li.rest .day-num { border-color: #d9a400; color: #6b5300; background: var(--sign-50); }
.day-body { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: var(--s4) var(--s5); }
.days li.rest .day-body { background: #fffdf6; }
.day-body h3 { font-family: var(--sans); font-size: 1.0625rem; font-weight: 800; letter-spacing: -0.005em; margin: 0 0 6px; }
.day-body .tag { margin-bottom: var(--s2); }
.day-body p { margin: 0; color: var(--ink-2); font-size: var(--t-sm); line-height: 1.6; }

/* comparison */
.quick-picks { margin: var(--s6) 0; }
.quick-picks .card { padding: var(--s4) var(--s5); }
.quick-picks .label { font-size: var(--t-xs); font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.quick-picks .pick { font-weight: 800; font-size: 1.125rem; margin: 4px 0 2px; }
.quick-picks .why { font-size: var(--t-sm); color: var(--ink-2); margin: 0; }
.compare-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-1); overflow: hidden; }
table.compare { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
table.compare th, table.compare td { padding: 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--line); }
table.compare thead th { background: var(--bg); font-size: var(--t-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
table.compare tbody th { font-weight: 800; font-size: 1rem; }
table.compare tbody th .group { display: block; font-weight: 400; font-size: var(--t-xs); color: var(--ink-2); }
table.compare tbody tr:last-child th, table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare tbody tr:hover { background: #fcfbf8; }
table.compare .best { display: inline-block; margin-left: 6px; font-size: 0.6875rem; font-weight: 800; color: var(--green); background: var(--green-50); padding: 1px 7px; border-radius: var(--r-pill); vertical-align: 1px; }
table.compare .np { color: var(--ink-2); font-style: italic; }
table.compare td:last-child { text-align: right; }
table.compare .btn { white-space: nowrap; }
@media (max-width: 820px) {
  table.compare thead { display: none; }
  table.compare, table.compare tbody, table.compare tr, table.compare th, table.compare td { display: block; width: 100%; }
  table.compare tr { padding: var(--s4) var(--s5); border-bottom: 1px solid var(--line); }
  table.compare tbody tr:last-child { border-bottom: 0; }
  table.compare th, table.compare td { border: 0; padding: 6px 0; }
  table.compare tbody th { padding-bottom: var(--s3); font-size: 1.125rem; }
  table.compare td { display: flex; justify-content: space-between; gap: var(--s4); }
  table.compare td::before { content: attr(data-label); color: var(--ink-2); font-weight: 600; }
  table.compare td:last-child { padding-top: var(--s3); }
  table.compare td:last-child::before { content: none; }
  table.compare td:last-child .btn { width: 100%; }
}

/* sources */
.sources { font-size: var(--t-sm); color: var(--ink-2); border-top: 1px solid var(--line); margin-top: var(--s7); padding-top: var(--s5); }
.sources h2 { font-family: var(--sans); font-size: var(--t-sm); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin: 0 0 var(--s3); }
.sources ol { padding-left: 1.2rem; margin: 0 0 var(--s3); }
.sources li { margin-bottom: 6px; }

/* ------------------------------------------------------------------ footer */
.site-footer { background: var(--green-900); color: #c9d8cf; margin-top: var(--s8); padding: var(--s7) 0 var(--s5); font-size: var(--t-sm); }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: var(--s6); }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.footer-brand .brand { color: #fff; margin-bottom: var(--s3); }
.footer-brand p { max-width: 26rem; }
.footer-col h2 { font-family: var(--sans); font-size: var(--t-xs); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #a8c3b5; margin: 0 0 var(--s3); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.footer-base { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s3); font-size: var(--t-xs); color: #a8c3b5; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .calc-sticky, .btn { display: none !important; } }

/* ------------------------------------------------------------------ providers (step 2 of the planner) */
.providers { margin-top: var(--s8); }
.legend-row { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); color: var(--ink-2); margin: calc(-1 * var(--s3)) 0 var(--s5); }
.key { display: inline-block; font-size: 0.6875rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: var(--r-pill); margin-right: 4px; }
.key-verified { background: var(--green-50); color: var(--green); }
.key-confirm { background: #fbeedd; color: #7a3b10; }
.key-price { background: var(--surface-2); color: var(--ink-2); }
.provider-list { display: grid; gap: var(--s4); }
@media (min-width: 760px) { .provider-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .provider-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.provider { display: flex; flex-direction: column; gap: var(--s3); padding: var(--s5); }
.provider-head { display: flex; justify-content: space-between; gap: var(--s3); align-items: flex-start; }
.provider h3 { font-family: var(--sans); font-size: 1.125rem; font-weight: 800; letter-spacing: -0.005em; margin: 0; }
.provider-tag { font-size: var(--t-sm); color: var(--ink-2); margin: 2px 0 0; }
.link-badge { flex: none; font-size: 0.6875rem; font-weight: 700; color: var(--ink-2); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 2px 8px; white-space: nowrap; }
.link-badge.aff { color: #7a3b10; border-color: #e5b98f; background: #fbeedd; }
.provider .match { margin: 0; font-weight: 800; font-size: var(--t-sm); }
.provider[data-state="ok"] { border-color: #9cc3ad; box-shadow: 0 0 0 1px #9cc3ad inset, var(--shadow-1); }
.provider[data-state="ok"] .match { color: var(--green); }
.provider[data-state="check"] .match { color: #7a3b10; }
.provider[data-state="no"] { opacity: .72; }
.provider[data-state="no"] .match { color: #9a2a12; }
.provider[data-state="compare"] { background: var(--green-50); border-color: #c7dccf; }
.match-reasons { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: var(--t-sm); }
.match-reasons:empty { display: none; }
.match-reasons li { padding-left: 22px; position: relative; color: var(--ink-2); line-height: 1.45; }
.match-reasons li::before { position: absolute; left: 0; top: 0; font-weight: 800; }
.match-reasons .r-ok::before { content: "✓"; color: var(--green); }
.match-reasons .r-check::before { content: "?"; color: #b5521b; }
.match-reasons .r-no::before { content: "✕"; color: #9a2a12; }
.provider-oneway { margin: 0; font-size: var(--t-sm); color: var(--ink-2); }
.provider-oneway span { display: block; font-size: var(--t-xs); font-weight: 700; color: var(--ink); }
.provider-estimate { margin: 0; font-size: var(--t-sm); font-weight: 700; color: var(--ink); }
.provider-estimate:empty { display: none; }
.provider-details { font-size: var(--t-sm); color: var(--ink-2); border-top: 1px solid var(--line); padding-top: var(--s3); }
.provider-details summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.provider-details ul { padding-left: 1.1rem; margin: 6px 0 var(--s3); }
.provider-details li { margin-bottom: 4px; }
.provider-details .key { margin-top: var(--s3); }
.provider .btn { margin-top: auto; align-self: flex-start; }
.src { font-size: var(--t-xs); white-space: nowrap; }

/* data tables on guide pages */
.data-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); background: var(--surface); }
.data-table th, .data-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.data-table thead th { background: var(--bg); font-size: var(--t-xs); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.data-table tbody th { font-weight: 800; }
.data-table tr:last-child th, .data-table tr:last-child td { border-bottom: 0; }
.table-card { border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin: var(--s5) 0; box-shadow: var(--shadow-1); }
@media (max-width: 720px) {
  .data-table thead { display: none; }
  .data-table, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; width: 100%; }
  .data-table tr { padding: var(--s3) var(--s4); border-bottom: 1px solid var(--line); }
  .data-table th, .data-table td { border: 0; padding: 4px 0; }
  .data-table td::before { content: attr(data-label) ": "; font-weight: 700; color: var(--ink); }
}
.answer { background: var(--green-50); border: 1px solid #c7dccf; border-radius: var(--r-md); padding: var(--s4) var(--s5); margin: 0 0 var(--s5); }
.answer p:last-child { margin: 0; }

/* stops: on phones, a readable line of place names instead of tiny dots */
@media (max-width: 639px) {
  .page-hero .stops { display: block; font-size: var(--t-sm); line-height: 1.7; color: var(--ink-2); }
  .page-hero .stops li { display: inline; padding: 0; white-space: normal; font-weight: 600; font-size: inherit; }
  .page-hero .stops li::before { display: none; }
  .page-hero .stops li::after { content: " → "; position: static; width: auto; height: auto; border: 0; background: none; color: var(--green); font-weight: 400; }
  .page-hero .stops li:last-child::after { content: ""; }
  .page-hero .stops li.end { color: var(--ink); font-weight: 800; }
}
