/* ==========================================================================
   Already Abroad — design system
   Evergreen ink / warm sand / coral action. Bricolage Grotesque for display,
   system UI for body text (no web-font cost for reading).
   ========================================================================== */

@font-face {
  font-family: "Bricolage Grotesque";
  font-style: normal;
  font-weight: 600 800;
  font-display: swap;
  src: url(/assets/fonts/bricolage-grotesque-latin.woff2) format("woff2");
}

:root {
  --ink: #16302b;
  --ink-2: #2b4a43;
  --text: #33413d;
  --muted: #5d6b67;
  --sand: #f7f3ec;
  --sand-2: #efe8db;
  --paper: #fffdf9;
  --mint: #e3f0ea;
  --mint-2: #c9e2d6;
  --green: #1f6b52;
  --coral: #d9512c;
  --coral-dark: #b8431f;
  --coral-tint: #fbe7df;
  --amber-tint: #fdf3dc;
  --amber: #8a5a00;
  --line: #e2dccf;
  --line-2: #cfc6b4;
  --focus: #f0a23b;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --maxw: 1160px;
  --prose: 70ch;
  --r: 10px;
  --r-lg: 16px;
  --shadow: 0 1px 2px rgba(22, 48, 43, .06), 0 6px 20px rgba(22, 48, 43, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--sand);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
a { color: var(--green); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 3px; }

h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.12; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 1.4rem + 3vw, 3.25rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1.2vw, 1.95rem); margin-top: 2.2em; }
h3 { font-size: 1.2rem; margin-top: 1.7em; }
p { margin: 0 0 1em; }
strong { color: var(--ink); }

.skip-link { position: absolute; left: -9999px; top: 0; z-index: 300; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip-link:focus { left: 0; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255, 253, 249, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(8px); }
.site-header__inner { max-width: var(--maxw); margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; color: var(--coral); }
.wordmark__text { font-family: var(--display); font-weight: 800; font-size: 1.32rem; color: var(--ink); letter-spacing: -0.03em; }
.wordmark__accent { color: var(--coral); margin-left: .18em; }
.logo-mark { flex: none; }

.site-nav { display: flex; align-items: center; gap: 2px; }
.nav-item { position: relative; }
.nav-link { display: inline-flex; align-items: center; gap: 6px; padding: 9px 12px; border-radius: 8px; border: 0; background: none; font: 600 .95rem var(--body); color: var(--ink); text-decoration: none; cursor: pointer; }
.nav-link:hover, .nav-link.is-active { background: var(--mint); color: var(--ink); }
.caret { width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .55; }
.nav-drop { display: none; position: absolute; top: calc(100% + 4px); left: 0; min-width: 290px; padding: 8px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.nav-drop a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav-drop a:hover { background: var(--mint); }
.has-drop:hover .nav-drop, .has-drop:focus-within .nav-drop, .has-drop.is-open .nav-drop { display: block; }

.nav-toggle { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--paper); font: 600 .9rem var(--body); color: var(--ink); cursor: pointer; }
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 3px; }
.nav-toggle__bars span { display: block; width: 16px; height: 2px; background: var(--ink); border-radius: 2px; }
.mnav { display: none; border-top: 1px solid var(--line); padding: 4px 0 12px; max-height: calc(100vh - 60px); overflow-y: auto; }
.mnav.is-open { display: block; }
.mnav__group { padding: 6px 20px; }
.mnav__label { margin: 8px 0 2px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.mnav__top { display: block; padding: 10px 0; font-weight: 700; color: var(--ink); text-decoration: none; }
.mnav__group a:not(.mnav__top) { display: block; padding: 10px 0; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }

@media (max-width: 900px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Page head / breadcrumbs ---------- */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 18px 0 0; margin: 0; font-size: .88rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.crumbs a { color: var(--muted); }
.page-head { max-width: 46rem; padding: 18px 0 8px; }
.deck { font-size: 1.18rem; line-height: 1.55; color: var(--ink-2); margin-bottom: .8em; }
.byline { font-size: .88rem; color: var(--muted); margin: 0; }
.byline a { color: var(--muted); }
.disclosure-bar { max-width: var(--prose); margin: 14px 0 0; padding: 10px 14px; font-size: .86rem; line-height: 1.5; color: var(--ink-2); background: var(--sand-2); border-radius: 8px; }

/* ---------- Article layout ---------- */
.article { max-width: var(--prose); padding-bottom: 56px; }
.prose > :first-child { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--coral); }
.prose h2 + p, .prose h3 + p { margin-top: 0; }

.toc { margin: 22px 0 0; padding: 14px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); font-size: .95rem; }
.toc summary { font-weight: 700; color: var(--ink); cursor: pointer; }
.toc ol { margin: 10px 0 2px; padding-left: 1.2em; }
.toc li { margin: 4px 0; }

/* Answer box: the direct answer, first thing on the page */
.answer { margin: 1.4em 0; padding: 18px 20px; background: var(--paper); border: 1px solid var(--mint-2); border-left: 5px solid var(--green); border-radius: var(--r); }
.answer__label { margin: 0 0 4px; font: 700 .78rem var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--green); }
.answer p:last-child { margin-bottom: 0; }
.answer p { color: var(--ink); }

.note { margin: 1.4em 0; padding: 14px 18px; border-radius: var(--r); background: var(--amber-tint); border: 1px solid #f0dcaa; font-size: .97rem; }
.note p:last-child { margin-bottom: 0; }
.note--policy { background: var(--paper); border: 1px dashed var(--line-2); }
.note--stop { background: var(--coral-tint); border-color: #f1c4b4; }

.checklist { list-style: none; padding: 0 !important; }
.checklist li { position: relative; padding-left: 32px; margin-bottom: .7em; }
.checklist li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border: 2px solid var(--green); border-radius: 5px; }
.steps { list-style: none; counter-reset: step; padding: 0 !important; }
.steps > li { counter-increment: step; position: relative; padding-left: 46px; margin-bottom: 1em; }
.steps > li::before { content: counter(step); position: absolute; left: 0; top: -2px; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: #fff; font: 700 .95rem var(--display); }

/* Tables: scroll inside their own box on phones, never the page */
.table-wrap { margin: 1.4em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
table { width: 100%; border-collapse: collapse; font-size: .94rem; line-height: 1.45; }
caption { text-align: left; padding: 12px 14px 0; font-size: .85rem; color: var(--muted); caption-side: bottom; padding-bottom: 12px; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
thead th { background: var(--mint); color: var(--ink); font-weight: 700; white-space: nowrap; }
tbody th { color: var(--ink); font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
.table-wrap--wide table { min-width: 620px; }

/* Decision tree */
.decide { margin: 1.4em 0; display: grid; gap: 10px; }
.decide__row { display: grid; grid-template-columns: 1fr; gap: 4px; padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
.decide__if { font-weight: 700; color: var(--ink); }
.decide__then { color: var(--text); }
.decide__then a { font-weight: 600; }
@media (min-width: 640px) { .decide__row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 18px; } }

/* ---------- CTA ---------- */
.cta { margin: 1.8em 0; padding: 20px; display: grid; gap: 16px; background: var(--ink); color: #e7efe9; border-radius: var(--r-lg); }
.cta__eyebrow { margin: 0 0 4px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9fc9b7; }
.cta__heading { margin: 0 0 6px; font: 700 1.3rem/1.2 var(--display); color: #fff; }
.cta__text { margin: 0; font-size: .97rem; color: #d5e2dc; }
.cta__micro { margin: 8px 0 0; font-size: .8rem; color: #a9bfb6; }
.cta__micro a { color: #cfe3da; }
@media (min-width: 700px) { .cta { grid-template-columns: 1fr auto; align-items: center; padding: 24px 26px; } .cta__action { text-align: right; } }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 22px; border-radius: 999px; font: 700 1rem var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn--primary { background: var(--coral); color: #fff; }
.btn--primary:hover { background: var(--coral-dark); color: #fff; }
.btn--ghost { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }

/* ---------- Cards ---------- */
.cards { display: grid; gap: 12px; margin: 1.2em 0; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.card-link { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: var(--green); transform: translateY(-1px); }
.card-link__title { font: 700 1.05rem/1.25 var(--display); color: var(--ink); }
.card-link__blurb { font-size: .92rem; line-height: 1.45; color: var(--muted); }

/* ---------- FAQ, sources, related ---------- */
.faqs, .sources, .related { margin-top: 2.6em; }
.faq { border-bottom: 1px solid var(--line); }
.faq:first-of-type { border-top: 1px solid var(--line); }
.faq summary { list-style: none; position: relative; padding: 16px 36px 16px 0; font-weight: 700; color: var(--ink); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 400 1.5rem var(--body); color: var(--coral); }
.faq[open] summary::after { content: "\2212"; }
.faq__a { padding: 0 0 16px; }
.faq__a p:last-child { margin-bottom: 0; }
.sources { font-size: .92rem; color: var(--muted); }
.sources h2, .related h2, .faqs h2 { font-size: 1.35rem; }
.sources ul { padding-left: 1.2em; }

/* ---------- Home ---------- */
.hero { background: var(--ink); color: #dfe9e4; }
.hero__inner { max-width: var(--maxw); margin: 0 auto; padding: 44px 20px 48px; display: grid; gap: 28px; }
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; padding: 5px 12px; border-radius: 999px; background: rgba(255,255,255,.08); font-size: .85rem; font-weight: 600; color: #bcd8cb; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 1.5rem + 4.4vw, 4.2rem); margin-bottom: .3em; }
.hero h1 em { font-style: normal; color: #ff9c78; }
.hero__lede { font-size: 1.2rem; line-height: 1.55; color: #dfe9e4; max-width: 36rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero .btn--ghost { border-color: rgba(255,255,255,.5); color: #fff; }
.hero .btn--ghost:hover { background: #fff; color: var(--ink); }
.hero__micro { margin: 12px 0 0; font-size: .82rem; color: #a9bfb6; }
.hero__micro a { color: #cfe3da; }
.facts-panel { align-self: start; background: var(--paper); color: var(--text); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }
.facts-panel h2 { margin: 0 0 10px; font-size: 1.1rem; }
.facts-panel ol { margin: 0; padding: 0; list-style: none; counter-reset: f; }
.facts-panel li { counter-increment: f; position: relative; padding: 10px 0 10px 38px; border-top: 1px solid var(--line); font-size: .97rem; line-height: 1.45; }
.facts-panel li:first-child { border-top: 0; }
.facts-panel li::before { content: counter(f); position: absolute; left: 0; top: 9px; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: var(--mint); color: var(--green); font: 800 .85rem var(--display); }
@media (min-width: 960px) { .hero__inner { grid-template-columns: 1.25fr 1fr; align-items: center; padding: 72px 20px 76px; gap: 48px; } }

.band { padding: 8px 0 24px; }
.band--alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-bottom: 40px; }
.band .wrap > h2:first-child { margin-top: 1.6em; }
.home-prose { max-width: var(--prose); }
.eyebrow { margin: 2.4em 0 .4em; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }
.eyebrow + h2 { margin-top: 0; }
.situations { display: grid; gap: 12px; grid-template-columns: 1fr; margin: 1.2em 0; }
@media (min-width: 640px) { .situations { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .situations { grid-template-columns: repeat(3, 1fr); } }
.situation { display: block; padding: 18px; background: var(--sand); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--text); }
.band:not(.band--alt) .situation { background: var(--paper); }
.situation:hover { border-color: var(--green); }
.situation__q { display: block; margin-bottom: 4px; font: 700 1.08rem/1.25 var(--display); color: var(--ink); }
.situation__a { display: block; font-size: .93rem; line-height: 1.45; color: var(--muted); }
.two-col { display: grid; gap: 0 40px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9d8d1; font-size: .93rem; }
.site-footer__inner { max-width: var(--maxw); margin: 0 auto; padding: 44px 20px 28px; display: grid; gap: 28px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .site-footer__inner { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.wordmark--footer .wordmark__text { color: #fff; }
.footer-brand p { margin-top: 12px; color: #c9d8d1; max-width: 34rem; }
.footer-disclosure { font-size: .86rem; color: #a9bfb6 !important; }
.site-footer a { color: #e7efe9; }
.footer-col h2 { margin: 4px 0 10px; font-size: .8rem; font-family: var(--body); letter-spacing: .1em; text-transform: uppercase; color: #9fc9b7; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin: 0; }
.footer-col a { display: inline-block; padding: 6px 0; text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.site-footer__bottom { max-width: var(--maxw); margin: 0 auto; padding: 16px 20px 28px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: .82rem; color: #a9bfb6; }

/* ---------- 404 ---------- */
.t-plain .article { padding-bottom: 72px; }

/* ---------- Phones: wide tables become labelled cards ---------- */
@media (max-width: 640px) {
  .table-wrap--wide { overflow: visible; border: 0; background: none; }
  .table-wrap--wide table { min-width: 0; }
  .table-wrap--wide thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .table-wrap--wide tr { display: block; margin-bottom: 12px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); }
  .table-wrap--wide th, .table-wrap--wide td { display: block; border-bottom: 1px solid var(--line); }
  .table-wrap--wide tbody th { background: var(--mint); border-radius: var(--r) var(--r) 0 0; }
  .table-wrap--wide tbody th:empty { display: none; }
  .table-wrap--wide td[data-label]::before { content: attr(data-label); display: block; margin-bottom: 2px; font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
  .table-wrap--wide tr > :last-child { border-bottom: 0; }
  .table-wrap--wide caption { display: block; padding: 0 0 10px; }
}

/* ---------- Analytics consent bar (only when GA4 is configured) ---------- */
.consent { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 200; max-width: 720px; margin: 0 auto; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-lg); box-shadow: 0 10px 30px rgba(22, 48, 43, .18); }
.consent__text { flex: 1 1 280px; margin: 0; font-size: .92rem; line-height: 1.45; color: var(--text); }
.consent__actions { display: flex; gap: 8px; flex: 0 0 auto; }
.consent__btn { min-height: 44px; padding: 10px 20px; background: var(--paper); border-color: var(--ink); color: var(--ink); font-size: .95rem; }
.consent__btn:hover { background: var(--ink); color: #fff; }
.link-btn { margin-left: 10px; padding: 0; border: 0; background: none; font: inherit; color: #e7efe9; text-decoration: underline; cursor: pointer; }
