/* ExpatGoals shared styles: tokens, sub-page layout, site header and footer, consent banner. */
:root {
  --bg: #EEF3F2; --surface: #FFFFFF; --ink: #132427; --muted: #56696C; --line: #D9E2E1;
  --accent: #0E6B73; --accent-2: #12A3A0; --accent-soft: #D5ECEC; --pin: #E0851A; --chip: #EEF3F2;
  --glass: rgba(255, 255, 255, 0.92); --glass-line: rgba(14, 107, 115, 0.14);
  --shadow: 0 14px 36px rgba(12, 40, 44, 0.18), 0 2px 6px rgba(12, 40, 44, 0.08);
  --f-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --f-body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #1C2B2F; --surface: #263A3F; --ink: #EEF5F5; --muted: #AEC0C2; --line: #3A545A;
  --accent: #6CCDD4; --accent-2: #7FE0D8; --accent-soft: #254C52; --pin: #F4B04B; --chip: #30474C;
  --glass: rgba(32, 49, 54, 0.94); --glass-line: rgba(92, 194, 201, 0.16);
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.32), 0 2px 6px rgba(0, 0, 0, 0.18);
  color-scheme: dark } }
:root[data-theme="dark"] {
  --bg: #1C2B2F; --surface: #263A3F; --ink: #EEF5F5; --muted: #AEC0C2; --line: #3A545A;
  --accent: #6CCDD4; --accent-2: #7FE0D8; --accent-soft: #254C52; --pin: #F4B04B; --chip: #30474C;
  --glass: rgba(32, 49, 54, 0.94); --glass-line: rgba(92, 194, 201, 0.16);
  --shadow: 0 14px 36px rgba(0, 0, 0, 0.32), 0 2px 6px rgba(0, 0, 0, 0.18);
  color-scheme: dark }

* { box-sizing: border-box; }
body { background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15.5px; line-height: 1.6; margin: 0; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; line-height: 1.15; margin: 0; }
a { color: var(--accent); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gutter { padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

/* Site header (all pages). On the map page it also holds the household and currency controls. */
.sitehead { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30; background: var(--glass); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 31; background: var(--surface); }
.sitehead-in { max-width: 1040px; margin: 0 auto; min-height: 60px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding-block: 8px; }
.sitehead.full .sitehead-in { max-width: none; }
.logo { font: 700 23px var(--f-display); letter-spacing: -0.02em; color: var(--ink); text-decoration: none; line-height: 1; }
.logo span { color: var(--accent); }
.sitehead .tagline { font: 500 15px var(--f-display); color: var(--muted); white-space: nowrap; }
.sitenav { display: flex; flex-wrap: wrap; gap: 2px; margin-left: auto; }
.sitenav a { color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600; padding: 7px 11px; border-radius: 9px; transition: background .15s, color .15s; }
.sitenav a:hover { color: var(--ink); background: var(--chip); }
.sitenav a[aria-current="page"] { color: var(--accent); background: var(--accent-soft); }
.navtoggle { display: none; margin-left: auto; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); cursor: pointer; place-items: center; }
.navtoggle svg { width: 22px; height: 22px; }
.themebtn { width: 36px; height: 36px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--ink); cursor: pointer; transition: background .15s, color .15s; }
.themebtn:hover { color: var(--accent); }
.themebtn svg { width: 18px; height: 18px; }
.themebtn .i-sun, .themebtn.is-dark .i-moon { display: none; }
.themebtn.is-dark .i-sun { display: block; }
.navtoggle .i-close, .navopen .navtoggle .i-open { display: none; }
.navopen .navtoggle .i-close { display: block; }
.hdr-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-left: 14px; border-left: 1px solid var(--line); }
@media (max-width: 1180px) { .sitehead .tagline { display: none; } }
@media (max-width: 899px) {
  .navtoggle { display: grid; order: 2; margin-left: 0; }
  .themebtn { order: 1; margin-left: auto; width: 42px; height: 42px; }
  .sitenav { display: none; order: 3; width: 100%; flex-direction: column; gap: 2px; padding: 4px 0 8px; margin-left: 0; }
  .navopen .sitenav { display: flex; }
  .sitenav a { font-size: 16px; padding: 11px 12px; }
  .hdr-controls { order: 4; width: 100%; padding-left: 0; border-left: 0; }
}
@media (max-width: 440px) { .hdr-controls .country { display: none; } }

/* Sub-page body */
.page { max-width: 760px; margin: 0 auto; padding-block: 44px 64px; }
.page.wide { max-width: 1040px; }
.page .eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--accent); }
.page h1 { font-size: clamp(32px, 5vw, 46px); letter-spacing: -0.025em; margin: 6px 0 14px; }
.page .lede { font-size: 18.5px; color: var(--muted); margin: 0 0 28px; max-width: 62ch; }
.page h2 { font-size: 23px; letter-spacing: -0.015em; margin: 38px 0 10px; }
.page h3 { font-size: 17px; margin: 24px 0 6px; }
.page p, .page li { max-width: 68ch; }
.page ul, .page ol { padding-left: 22px; }
.page li { margin-bottom: 6px; }
.callout { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin: 24px 0; }
.callout p { margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 18px 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.card h3 { margin: 0 0 4px; font-size: 16.5px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.tag { font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; border-radius: 4px; padding: 1px 6px; white-space: nowrap; }
.tag.S { color: var(--accent); background: var(--accent-soft); }
.tag.C { color: var(--muted); background: var(--chip); border: 1px solid var(--line); }
.tag.E { color: var(--pin); background: transparent; border: 1px dashed var(--pin); }
.updated { font-size: 13px; color: var(--muted); }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 12px; padding: 11px 18px; font: 700 15px var(--f-body); color: var(--surface); background: var(--accent); cursor: pointer; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { color: var(--accent); background: var(--accent-soft); }

/* Forms */
.form { display: grid; gap: 16px; margin-top: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field .hint { font-size: 13px; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: 500 15px var(--f-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 13px; }
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Site footer (all pages) */
.sitefoot { border-top: 1px solid var(--line); background: var(--surface); }
.sitefoot-in { max-width: 1040px; margin: 0 auto; padding-block: 28px calc(28px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 14px; }
.footnav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footnav a, .footnav button { font: 600 14px var(--f-body); color: var(--ink); text-decoration: none; background: none; border: 0; padding: 0; cursor: pointer; }
.footnav a:hover, .footnav button:hover { color: var(--accent); }
.footsmall { font-size: 12.5px; color: var(--muted); margin: 0; max-width: 90ch; }
.footsmall a { color: var(--muted); }

/* Consent banner (created by analytics.js) */
.consent { position: fixed; z-index: 50; left: max(12px, env(safe-area-inset-left, 0px)); right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px)); margin: 0 auto; max-width: 560px; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); padding: 16px 18px; display: grid; gap: 10px; font-family: var(--f-body); font-size: 14px; line-height: 1.5; }
.consent h2 { font: 700 16px var(--f-display); margin: 0; }
.consent p { margin: 0; color: var(--muted); }
.consent .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.consent button { border: 0; border-radius: 10px; padding: 9px 14px; font: 700 14px var(--f-body); cursor: pointer; }
.consent .yes { background: var(--accent); color: var(--surface); }
.consent .no { background: var(--chip); color: var(--ink); }
