
:root {
  --background: #ECF1F2;
  --surface: #FFFFFF;
  --surface-alt: #E3EAEC;
  --text: #16232B;
  --text-muted: #4E6470;
  --ink-soft: #3D4E58;
  --accent: #A82A26;
  --accent-deep: #8E1F1C;
  --accent-press: #7A1917;
  --accent-soft: #F4E3E2;
  --on-accent: #FFFFFF;
  --jade: #17685A;
  --jade-deep: #0F4E43;
  --ok: #17685A;
  --bad: #8E1F1C;
  --line: #C6D2D6;
  --edge: #7E939B;
  --font-display: var(--font-display-fallback, 'Schibsted Grotesk'), system-ui, sans-serif;
  --font-text: var(--font-text-fallback, 'Hanken Grotesk'), system-ui, sans-serif;
  --radius: 10px;
  --radius-control: 6px;
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-section: 72px;
  --type-display: clamp(2.15rem, 1.2rem + 3.2vw, 3.1rem);
  --type-title: clamp(1.45rem, 1.15rem + 1.1vw, 1.75rem);
  --type-heading: 1.15rem;
  --type-lead: 1.2rem;
  --type-body: 1.0625rem;
  --type-small: 0.875rem;
}

html { background: var(--background); scroll-behavior: smooth; }
body { margin: 0; }
*, *::before, *::after { box-sizing: border-box; }
img { max-width: 100%; }

.cvf-page {
  background: var(--background);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--type-body);
  line-height: 1.55;
  min-height: 100vh;
}
.cvf-page h1, .cvf-page h2, .cvf-page h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0 0 var(--space-2);
}
.cvf-page p, .cvf-page li, .cvf-page figcaption { text-wrap: pretty; }
.cvf-page h1 { font-size: var(--type-display); line-height: 1.12; }
.cvf-page h2 { font-size: var(--type-title); line-height: 1.2; }
.cvf-page h3 { font-size: var(--type-heading); line-height: 1.3; }
.cvf-page a { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 2px; }
.cvf-page a:not(.btn):hover { color: var(--accent-press); }
.cvf-page a.btn-primary { color: var(--on-accent); text-decoration: none; }
.cvf-page a.btn-secondary { color: var(--text); text-decoration: none; }
.cvf-page :focus-visible { outline: 3px solid var(--jade); outline-offset: 2px; }
.cvf-page ::selection { background: var(--accent-soft); }

.container { max-width: 1200px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 32px); }
.fine { font-size: var(--type-small); color: var(--text-muted); line-height: 1.5; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Skip link */
.skip-link {
  position: fixed; top: -48px; left: 16px; z-index: 100;
  background: var(--surface); color: var(--text);
  padding: 10px 18px; border-radius: var(--radius-control);
  font-weight: 600; text-decoration: none; transition: top 120ms ease;
}
.skip-link:focus-visible { top: 12px; }

/* Buttons — one solid vermilion per view; the header action is outlined. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 12px 20px;
  border-radius: var(--radius-control); border: none;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover {
  background: var(--accent-press);
  box-shadow: 0 0 0 3px var(--accent-soft), 0 8px 20px rgba(168, 42, 38, 0.35);
  transform: translateY(-2px);
}
.btn-primary:active { background: var(--accent-press); transform: translateY(0); box-shadow: 0 0 0 2px var(--accent-press); }
.btn-primary, .btn-secondary { transition: background-color 120ms ease, box-shadow 120ms ease, transform 120ms ease, border-color 120ms ease, color 120ms ease; }
.btn-primary:focus-visible { outline: 3px solid var(--jade); outline-offset: 2px; }
.btn-primary[data-ready="false"], .btn-primary:disabled {
  background: var(--accent-soft); color: var(--accent); cursor: not-allowed;
}
.btn-secondary { background: var(--surface); color: var(--text); border: 2px solid var(--text); padding: 10px 18px; }
.btn-secondary:hover { border-color: var(--ink-soft); color: var(--ink-soft); background: var(--surface-alt); }
.btn-secondary:active { background: var(--surface-alt); }
.btn-quiet {
  display: inline-flex; align-items: center; min-height: 32px; padding: 6px 4px;
  background: none; border: none; padding-inline: 4px;
  font: inherit; font-weight: 600; color: var(--accent-deep);
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.btn-quiet:hover {
  color: var(--accent-press);
  background: var(--accent-soft);
  padding-inline: 8px;
  margin-inline: -4px;
  border-radius: 6px;
  text-decoration-thickness: 2px;
}

/* Form controls — visible 2px edge at 3:1, jade focus. */
.field-label { display: block; font-weight: 600; margin-bottom: 6px; }
select, input[type="text"], input[type="email"], input[type="number"], textarea {
  width: 100%; min-height: 44px; padding: 10px 12px;
  background: var(--surface); color: var(--text);
  border: 2px solid var(--edge); border-radius: var(--radius-control);
  font: inherit;
}
textarea { min-height: 132px; resize: vertical; }
select:hover, input:hover, textarea:hover { border-color: var(--ink-soft); }
select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--jade); outline-offset: 1px;
  border-color: var(--jade); border-width: 3px; padding-top: 9px; padding-bottom: 9px; padding-inline: 11px;
}
.select-wrap select:focus-visible { padding-right: 39px; }
.select-wrap { position: relative; display: block; }
.select-wrap select { appearance: none; padding-right: 40px; }
.select-wrap::after {
  content: ""; position: absolute; right: 16px; top: 50%;
  width: 9px; height: 9px; margin-top: -7px; pointer-events: none;
  border-right: 2px solid var(--text); border-bottom: 2px solid var(--text);
  transform: rotate(45deg);
}

/* Header */
.site-header { background: var(--surface); }
.header-row { display: flex; align-items: center; gap: var(--space-3); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.brand:hover { color: var(--accent-deep); }
.brand img { width: 30px; height: 30px; display: block; }
.site-nav { display: flex; align-items: center; }
.site-nav ul { display: flex; gap: 20px; list-style: none; margin: 0; padding: 0; }
.site-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 2px; color: var(--text); text-decoration: none; font-weight: 600; }
.site-nav a:hover { color: var(--accent-deep); text-decoration: underline; text-underline-offset: 3px; }
.site-nav a[aria-current="page"] { color: var(--accent-deep); box-shadow: inset 0 -2px 0 var(--accent); }
.header-action { margin-left: auto; }
.nav-menu { display: none; position: relative; margin-left: auto; }
.nav-menu summary { list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center; border: 2px solid var(--edge); border-radius: var(--radius-control); background: var(--surface); }
.nav-menu summary::-webkit-details-marker { display: none; }
.menu-bars { display: grid; gap: 4px; }
.menu-bars span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 1px; }
.nav-menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 40;
  min-width: 230px; padding: var(--space-2);
  background: var(--surface); border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(22, 35, 43, 0.18);
  display: grid; gap: 4px;
}
.nav-menu-panel a { padding: 12px 10px; border-radius: var(--radius-control); color: var(--text); text-decoration: none; font-weight: 600; }
.nav-menu-panel a:hover { background: var(--surface-alt); }
.nav-menu-panel a[aria-current="page"] { color: var(--accent-deep); }

/* Hero — headline and lede left, the working checker right; on a phone the
   tool moves directly under the two-line headline. */
.hero {
  display: grid; gap: var(--space-4);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "head tool" "lede tool" "rest rest";
  align-items: start; align-content: start;
  padding-block: 52px 0;
}
.hero-head { grid-area: head; }
.hero-lede { grid-area: lede; }
.hero-tool { grid-area: tool; }
.hero-lede .lede { font-size: var(--type-lead); line-height: 1.55; color: var(--ink-soft); max-width: 60ch; margin: 0 0 var(--space-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 8px var(--space-3); align-items: center; }
.hero-ctas a { display: inline-flex; align-items: center; min-height: 32px; font-weight: 600; }
.hero-rest { grid-area: rest; max-width: 72ch; color: var(--ink-soft); }
.hero-rest p { margin: 0; }

/* Tool card — the counter window. One bounded white surface; the answer
   lands inside it. */
.tool-card {
  background: var(--surface); border-radius: var(--radius);
  padding: var(--space-3);
  display: grid; gap: var(--space-2);
}
.tool-window-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.tool-window-head h2 { font-size: var(--type-heading); margin: 0; }
.tool-card form { display: grid; gap: var(--space-2); margin: 0; }
.tool-fields { display: grid; gap: var(--space-2); }
.tool-card .fine { margin: 0; }
.tool-hint { color: var(--text-muted); margin: 0; }

/* The stamped answer. */
.answer { display: flex; gap: var(--space-3); align-items: flex-start; padding-top: var(--space-1); }
.answer-body { min-width: 0; }
.answer-lead { margin: 0 0 4px; color: var(--text-muted); font-size: var(--type-small); }
.answer h3 { margin-bottom: 10px; }
.answer dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 20px; margin: 0 0 10px; }
.answer dt { color: var(--text-muted); font-size: var(--type-small); align-self: baseline; }
.answer dd { margin: 0; font-weight: 600; }
.answer-note { margin: 0 0 8px; font-size: var(--type-small); color: var(--ink-soft); }
.answer--no .answer-note { color: var(--bad); }
.answer-routes { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 0 0 8px; padding: 0; font-size: var(--type-small); color: var(--ink-soft); }
.stamp { flex: none; transform: rotate(-4deg); transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  .stamp-in { animation: stamp-in 240ms cubic-bezier(0.2, 0.8, 0.3, 1) both; }
}
@keyframes stamp-in {
  from { opacity: 0; transform: rotate(3deg) scale(1.45); }
  to { opacity: 1; transform: rotate(-4deg) scale(1); }
}
.tool-progress { display: flex; align-items: center; gap: 10px; color: var(--text-muted); margin: 0; min-height: 44px; }
.tool-progress .spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--line); border-top-color: var(--accent);
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Planner output */
.route-line { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 var(--space-2); padding: 0; }
.route-line li {
  display: inline-flex; align-items: baseline; gap: 6px;
  background: var(--surface-alt); border-radius: var(--radius-control);
  padding: 8px 12px; font-weight: 600;
}
.route-line li .route-nights { color: var(--text-muted); font-weight: 500; font-size: var(--type-small); }
.route-line li + li::before { content: "→"; margin-right: 2px; color: var(--jade); }
.day-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.day-grid li {
  display: grid; grid-template-columns: 72px 200px minmax(0, 1fr);
  gap: 16px; align-items: baseline;
  padding: 10px 12px; border-radius: var(--radius-control); background: var(--background);
}
.day-grid .day-cell { font-family: var(--font-display); font-weight: 700; color: var(--accent-deep); }
.day-grid .city-cell { font-weight: 600; }
.day-grid .text-cell { color: var(--ink-soft); }
.day-grid .travel-day { color: var(--jade-deep); font-weight: 600; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 4px; }
.share-link { word-break: break-all; font-size: var(--type-small); }

/* Sections below the tool — one rhythm token everywhere. */
.page-section { padding-block: var(--space-section) 0; }
.band { background: var(--surface); padding-block: var(--space-section) 0; }
.band .page-section { padding-block: 0; }

.section-body { max-width: 72ch; }
.section-body p { margin: 0 0 var(--space-2); }
/* The last block of a section carries no bottom margin, so the gap to the
   next heading is the one rhythm token, not the token plus a paragraph's. */
.page-section .section-body > :last-child, .page-section > .container > :last-child { margin-bottom: 0; }

/* The comp's duo: the how-steps sit beside the dated policy table on the
   home. The pair keeps DOM order; each column drops the section's own
   rhythm because the duo carries it. */
/* The how-steps and the dated policy table each take the full content width,
   the short one first, so no column is left standing empty. */
.duo { display: grid; gap: 0; }
.duo .band { background: var(--surface); padding-block: 0; }
.duo .band .page-section { padding-block: var(--space-section) 0; }

.duo + .page-section { padding-top: var(--space-section); }
@media (min-width: 1021px) {
  ol.counter-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
  ol.counter-steps li { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; align-items: center; gap: 0 var(--space-3); }
  ol.counter-steps li h3 { grid-column: 2; }
  ol.counter-steps li p { grid-column: 1 / -1; margin-top: var(--space-2); }
}
/* Cards in a half-width column stack their title over their text. */
@media (min-width: 1021px) {
  .split .doc-items > li, .split .doc-items > div { display: block; }
}
.card-grid .card p { max-width: 68ch; }
@media (min-width: 1021px) {
  .split .media-fig { position: sticky; top: var(--space-4); }
}
.closing .container { max-width: calc(72ch + 64px); }
.closing-row { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.closing-row p { margin: 0; max-width: 52ch; }

.counter-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); margin: 0; padding: 0; }
.counter-steps li { display: grid; grid-template-columns: auto minmax(200px, 34ch) minmax(0, 1fr); gap: var(--space-1) var(--space-3); align-items: baseline; }
.step-no {
  width: 34px; height: 34px; display: grid; place-items: center;
  border: 2px solid var(--accent); border-radius: 50%;
  color: var(--accent-deep); font-family: var(--font-display); font-weight: 700;
}
.counter-steps h3 { margin-bottom: 4px; }
.counter-steps p { margin: 0; color: var(--ink-soft); }

.card-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.card-grid--two { grid-template-columns: minmax(0, 1fr); }
.card-grid .card { background: var(--surface); border-radius: var(--radius); padding: var(--space-3); display: grid; grid-template-columns: minmax(180px, 34ch) minmax(0, 1fr); gap: var(--space-1) var(--space-3); align-items: baseline; }
.card-grid h3 { margin-bottom: 6px; }
.card-grid p { margin: 0; color: var(--ink-soft); }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.split .section-body { max-width: none; }

/* Dated table */
.table-fig { margin: 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.table-fig table { width: 100%; border-collapse: collapse; }
.table-fig caption { text-align: left; padding: var(--space-3) var(--space-3) 0; font-weight: 600; font-family: var(--font-display); }
.table-fig th, .table-fig td { padding: 12px var(--space-3); text-align: left; vertical-align: top; }
.table-fig thead th { font-size: var(--type-small); color: var(--text-muted); border-bottom: 2px solid var(--line); }
@media (min-width: 1021px) {
  .table-fig thead th { white-space: nowrap; }
}
.table-fig tbody td { border-bottom: 1px solid var(--line); }
.table-fig tbody tr:last-child td { border-bottom: none; }
.table-checked { padding: 0 var(--space-3) var(--space-3); margin: 0; }
.status-cell { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.roundel { position: relative; width: 14px; height: 14px; flex: none; border: 2px solid var(--accent); border-radius: 50%; }
.roundel::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: var(--accent); }
.roundel--ink { border-color: var(--ink-soft); }
.roundel--ink::after { background: var(--ink-soft); }

/* Policy quick reference (home): the filter select and a compact dated
   table that collapses to label/value rows on a phone, same as table-fig. */
.quick-table { margin: var(--space-3) 0 0; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.quick-table-filter { padding: var(--space-2) var(--space-3) 0; max-width: 320px; }
.quick-table table { width: 100%; border-collapse: collapse; }
.quick-table th, .quick-table td { padding: 10px var(--space-3); text-align: left; vertical-align: top; font-size: var(--type-small); }
.quick-table thead th { color: var(--text-muted); border-bottom: 2px solid var(--line); white-space: nowrap; }
.quick-table tbody td { border-bottom: 1px solid var(--line); }
.quick-table tbody tr:last-child td { border-bottom: none; }
.quick-table figcaption { padding: 0 var(--space-3) var(--space-3); }
@media (max-width: 680px) {
  .quick-table thead { display: none; }
  .quick-table tbody tr { display: block; padding: 8px 0; }
  .quick-table tbody tr + tr { border-top: 1px solid var(--line); }
  .quick-table tbody td { display: flex; justify-content: space-between; gap: 16px; border-bottom: none; padding: 4px var(--space-3); }
  .quick-table tbody td::before { content: attr(data-label); color: var(--text-muted); font-weight: 600; }
}

/* FAQ */
.reading-col { max-width: 72ch; margin-inline: auto; }
.contact-fine { margin: 10px 0 0; }
.faq-list { display: grid; gap: var(--space-2); max-width: 72ch; }
.faq-list h3 { margin-bottom: 2px; }
.faq-list p { margin: 0; color: var(--ink-soft); }

/* Figures */
.media-fig { margin: 0; }
.media-fig img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.media-fig--tall img { aspect-ratio: 2 / 1; object-fit: cover; }
.media-fig figcaption { padding-top: 8px; font-size: var(--type-small); color: var(--text-muted); }

/* Legal doc */
.doc-header { padding-block: 48px 8px; }
.doc-section { padding-block: var(--space-section) 0; max-width: 72ch; margin-inline: auto; }
.doc-section h2 { margin-bottom: var(--space-2); }
.doc-items { display: grid; gap: var(--space-3); margin-top: var(--space-2); }
.doc-items h3 { margin-bottom: 4px; }
.doc-items p { margin: 0; }
.doc-ending { max-width: 72ch; margin-inline: auto; padding-block: var(--space-section) 0; }

/* Footer */
.site-footer { background: var(--text); color: var(--background); margin-top: var(--space-section); }
.site-footer a { color: var(--background); text-underline-offset: 2px; }
.site-footer a:hover { color: #FFFFFF; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(auto-fit, minmax(160px, 1fr)); gap: var(--space-4); padding-block: var(--space-5) var(--space-3); }
.brand--footer { color: var(--background); }
.footer-note { color: #B9C6CB; font-size: var(--type-small); max-width: 46ch; margin: var(--space-2) 0 0; }
.footer-group h2 { font-size: var(--type-small); letter-spacing: 0; color: #B9C6CB; margin-bottom: 8px; }
.footer-group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.footer-group a { display: inline-flex; align-items: center; min-height: 36px; text-decoration: none; font-weight: 500; }
.footer-group a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-small {
  display: flex; flex-wrap: wrap; gap: 8px var(--space-4);
  justify-content: space-between; align-items: center;
  padding-block: var(--space-3) var(--space-4);
  border-top: 1px solid rgba(236, 241, 242, 0.18);
}
.footer-small p { margin: 0; color: #B9C6CB; font-size: var(--type-small); }
.footer-seal { display: inline-block; margin-left: 10px; vertical-align: middle; }

/* Responsive */
@media (max-width: 1020px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "tool" "lede" "rest"; padding-block: 40px 0; gap: var(--space-3); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .duo { grid-template-columns: minmax(0, 1fr); }
  .media-fig--tall img { aspect-ratio: 3 / 2; }
}
@media (max-width: 900px) {
  .site-nav, .header-action { display: none; }
  .nav-menu { display: block; }
}
@media (max-width: 680px) {
  .counter-steps li { grid-template-columns: auto minmax(0, 1fr); }
  .counter-steps li p { grid-column: 2; }
  .card-grid .card { grid-template-columns: minmax(0, 1fr); gap: var(--space-1) 0; }
  .answer { gap: var(--space-2); }
  .stamp { width: 112px; height: 112px; }
  .day-grid li { grid-template-columns: 64px minmax(0, 1fr); }
  .day-grid .text-cell { grid-column: 1 / -1; }
  .table-fig thead { display: none; }
  .table-fig tbody tr { display: block; padding: 10px 0; }
  .table-fig tbody tr + tr { border-top: 1px solid var(--line); }
  .table-fig tbody td { display: flex; justify-content: space-between; gap: 16px; border-bottom: none; padding: 6px var(--space-3); }
  .table-fig tbody td::before { content: attr(data-label); color: var(--text-muted); font-weight: 600; font-size: var(--type-small); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Duo pairing (home): one container edge for both columns; the paired
   sections give up their own container padding. */



/* The page's freshness line (UpdatedLine) and the not-ready press. */
.doc-updated { font-size: var(--type-small); color: var(--ink-soft); }
.btn-primary[data-ready="false"] { cursor: pointer; }

/* Owner request: the home "Common questions" block reads as one centred
   column, about 720-800px wide, instead of a left-aligned column with the
   right half of the row empty. */
.reading-col-faq { max-width: 48rem; text-align: left; }
.reading-col-faq h2 { text-align: center; }
@media (max-width: 720px) { .reading-col-faq { max-width: 100%; } }
