:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, monospace;
  --text-main: #0F172A;
  --text-body: #1E293B;
  --text-muted: #475569;
  --text-subtle: #64748B;
  --border-subtle: #E2E8F0;
  --ink: #0B131E;
  --ink-2: #1E293B;
  --paper: #F8F9FA;
  --white: #ffffff;
  --line: #E5E7EB;
  --muted: #64748B;
  --lime: #0D5C56;
  --lime-2: #083E3A;
  --sky: #E6F4F1;
  --amber: #ffd166;
  --red: #c73535;
  --max: 1180px;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.65;
  font-weight: 400;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.shell { width: min(var(--max), calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 20; padding: 10px 14px; background: var(--lime); color: var(--ink); }
.skip-link:focus { left: 8px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(247, 248, 251, .92);
  border-bottom: 1px solid rgba(8, 21, 47, .12);
  backdrop-filter: blur(18px);
}
.nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 600; letter-spacing:0; font-size: 1.25rem; }
.brand-mark { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: var(--ink); color: var(--lime); font-size: .73rem; letter-spacing:0; box-shadow: 3px 3px 0 var(--lime); }
.nav-links { display: flex; align-items: center; gap: 20px; }
.nav-links a { text-decoration: none; font-size: .92rem; font-weight: 700; color: #36445a; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); text-decoration: underline; text-underline-offset: 7px; }
.nav-cta { padding: 10px 16px; border-radius: 999px; background: var(--ink); color: white !important; }
.nav-toggle { display: none; width: 44px; height: 44px; place-items: center; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--ink); cursor: pointer; }
.nav-toggle span, .nav-toggle::before, .nav-toggle::after { content: ""; display: block; width: 20px; height: 2px; background: currentColor; transition: transform .18s ease, opacity .18s ease; }
.nav-toggle span { margin: 4px 0; }
.nav-toggle[aria-expanded="true"]::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span { opacity: 0; }
.nav-toggle[aria-expanded="true"]::after { transform: translateY(-6px) rotate(-45deg); }

.tool-hero { padding: 76px 0 64px; background: var(--ink); color: white; }
.tool-hero h1 { margin-bottom: 20px; }
.tool-hero h1 em { color: var(--lime); font-style: normal; }
.tool-hero > .shell > p:not(.eyebrow) { max-width: 720px; color: #c6d0e2; font-size: 1.08rem; }
.tool-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.tool-tabs a, .country-tabs a { text-decoration: none; }
.tool-tabs a { padding: 9px 13px; border: 1px solid rgba(255,255,255,.23); border-radius: 7px; color: white; font-weight: 600; font-size: .86rem; }
.calc-panel { display: grid; grid-template-columns: 1.15fr .85fr; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: white; box-shadow: var(--shadow); }
.calc-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: clamp(26px,4vw,46px); }
.calc-output { padding: clamp(26px,4vw,46px); background: var(--ink); color: white; }
.calc-output > strong { display: block; margin: 8px 0; color: var(--lime); font-size: clamp(2.2rem,5vw,4rem); letter-spacing:0; line-height: 1; }
.calc-output > p { color: #c4cee0; }
.metric-list { display: grid; gap: 18px; margin-bottom: 26px; }
.metric-list span { display: block; color: #aebbd1; font-size: .78rem; }
.metric-list strong { color: var(--lime); font-size: 1.35rem; }
.calc-output .read-link { display: inline-block; margin-top: 22px; color: white; }
.diagnostic { display: grid; grid-template-columns: 1.18fr .82fr; gap: 24px; align-items: start; }
.diagnostic-form { display: grid; gap: 22px; }
.diagnostic-group { position: relative; padding: clamp(26px,4vw,42px); border: 1px solid var(--line); border-radius: 18px; background: white; }
.diagnostic-group .step { position: absolute; right: 28px; top: 26px; color: #91a0b7; font-weight: 600; }
.diagnostic-group h2 { margin-bottom: 28px; font-size: 2rem; }
.diagnostic-result { position: sticky; top: 98px; padding: clamp(28px,4vw,42px); border-radius: 18px; background: var(--ink); color: white; box-shadow: var(--shadow); }
.score-ring { width: 145px; height: 145px; display: grid; place-content: center; margin-bottom: 18px; border: 8px solid var(--lime); border-radius: 50%; text-align: center; }
.score-ring span { color: var(--lime); font-size: 3.3rem; line-height: .85; font-weight: 600; }
.score-ring small { color: #aebbd1; }
.score-label { font-size: 1.35rem; font-weight: 600; }
.finding-list { padding-left: 20px; color: #d8dfec; }
.finding-list li { margin: 12px 0; }
.diagnostic-result .button { margin-top: 22px; }
.topic-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.topic-grid article { padding: 22px; border-top: 3px solid var(--ink); background: white; }
.topic-grid span { color: #4e6a07; font-size: .76rem; font-weight: 600; }
.topic-grid h3 { margin: 18px 0 6px; }
.topic-grid p { margin: 0; color: var(--muted); font-size: .9rem; }
.research-lenses { background: white; }
.lens-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.lens-grid article { min-height: 280px; display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.lens-grid article:hover { transform: translateY(-4px); border-color: #b5c2d7; box-shadow: var(--shadow); }
.lens-grid article > span { color: #58720d; font-size: .75rem; font-weight: 600; letter-spacing: .08em; }
.lens-grid h3 { margin: 26px 0 9px; font-size: 1.35rem; line-height: 1.12; }
.lens-grid p { color: var(--muted); font-size: .88rem; }
.lens-grid a { margin-top: auto; text-decoration: none; font-size: .82rem; font-weight: 600; }
.city-card.city-photo { position: relative; isolation: isolate; min-height: 390px; display: flex; flex-direction: column; overflow: hidden; border: 0; color: white; text-align: left; text-decoration: none; cursor: pointer; background: var(--ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,.15), 0 18px 45px rgba(8,21,47,.14); transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.city-card.city-photo::before { content: ""; position: absolute; inset: -6%; z-index: -2; background-image: var(--city-image); background-position: center; background-size: cover; background-repeat: no-repeat; animation: city-drift 15s ease-in-out infinite alternate; transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .35s ease; }
.city-card.city-photo::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg,rgba(8,21,47,.08) 5%,rgba(8,21,47,.25) 42%,rgba(8,21,47,.96) 100%); }
.city-card.city-photo:hover, .city-card.city-photo:focus-visible { transform: translateY(-6px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.24), 0 26px 55px rgba(8,21,47,.22); outline: none; }
.city-card.city-photo:hover::before, .city-card.city-photo:focus-visible::before { transform: scale(1.035); filter: saturate(1.08); }
.city-card.city-photo h3 { margin-top: auto; color: white; font-size: clamp(1.9rem,3vw,2.65rem); text-shadow: 0 2px 16px rgba(0,0,0,.38); }
.city-card.city-photo p, .city-card.city-photo li { color: #f0f3f8; text-shadow: 0 1px 12px rgba(0,0,0,.45); }
.city-card.city-photo .fit-label { color: var(--lime); }
.city-card-topline { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: white; font-size: .69rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; text-shadow: 0 1px 10px rgba(0,0,0,.55); }
.city-card-topline span:first-child { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: rgba(8,21,47,.3); backdrop-filter: blur(8px); }
.city-card-action { display: block; padding-top: 20px; color: var(--lime); font-size: .82rem; font-weight: 600; }
.city-metrics { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.city-metrics span { padding: 6px 8px; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; background: rgba(8,21,47,.56); color: white; font-size: .67rem; font-weight: 600; line-height: 1.2; text-shadow: none; backdrop-filter: blur(6px); }
.city-filter-bar { display: flex; justify-content: space-between; gap: 18px; align-items: center; margin: 0 0 20px; }
.city-filter-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.city-filter-buttons button { padding: 8px 12px; border: 1px solid #bfc9da; border-radius: 999px; background: white; color: #3a475d; cursor: pointer; font-size: .76rem; font-weight: 600; transition: border-color .2s ease, background .2s ease, transform .2s ease; }
.city-filter-buttons button:hover { transform: translateY(-1px); border-color: var(--ink); }
.city-filter-buttons button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: white; }
.city-filter-bar p { flex: 0 0 auto; margin: 0; color: var(--muted); font-size: .76rem; font-weight: 600; }
@keyframes city-drift { from { transform: scale(1.02) translate3d(-.8%, -.4%, 0); } to { transform: scale(1.1) translate3d(.8%, .4%, 0); } }
.city-dialog { width: min(820px,calc(100% - 30px)); max-height: 88vh; padding: 0; border: 0; border-radius: 18px; color: var(--ink); box-shadow: 0 30px 90px rgba(0,0,0,.35); }
.city-dialog::backdrop { background: rgba(5,12,28,.72); backdrop-filter: blur(4px); }
.dialog-inner { padding: clamp(28px,5vw,52px); }
.dialog-close { float: right; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; font-size: 1.3rem; }
.dialog-inner h2 { margin: 18px 0; }
.dialog-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 28px; margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--line); }
.dialog-layout h3 { margin-bottom: 10px; }
.dialog-layout ul { padding-left: 18px; color: var(--muted); }
.dialog-links { display: grid; gap: 8px; }
.dialog-links a { padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; font-weight: 600; }
.photo-credit { margin-top: 20px; color: var(--muted); font-size: .72rem; }
.map-shell { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(390px, .85fr); gap: 18px; align-items: start; }
.country-map { height: 440px; min-height: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: #dfe8ef; box-shadow: var(--shadow); z-index: 1; }
.map-city-panel { height: 440px; min-height: 0; overflow: hidden; padding: 20px; border-radius: 20px; background: var(--ink); color: white; }
.map-city-panel h3 { margin: 4px 0 14px; color: white; font-size: 2rem; letter-spacing:0; }
.map-city-panel p { margin: 0 0 10px; font-size: .86rem; line-height: 1.45; }
.map-city-panel > p:not(.eyebrow):not(.map-disclaimer) { color: #c8d1df; }
.map-city-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.map-city-buttons button { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; background: white; color: var(--ink); cursor: pointer; font-size: .8rem; font-weight: 600; }
.map-city-buttons button[aria-pressed="true"] { border-color: var(--lime); background: var(--lime); }
.climate-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.climate-pair div { padding: 11px; border: 1px solid rgba(255,255,255,.15); border-radius: 10px; background: rgba(255,255,255,.05); }
.climate-pair span { display: block; margin-bottom: 5px; color: #9eabc0; font-size: .7rem; text-transform: uppercase; letter-spacing: .07em; }
.climate-pair strong { color: var(--lime); font-size: .9rem; line-height: 1.35; }
.map-money-note { padding: 10px 12px; border-left: 3px solid var(--lime); background: rgba(199,255,69,.08); font-size: .82rem; }
.map-money-note strong { color: white; }
.map-disclaimer { margin: 10px 0 0; color: #95a3ba; font-size: .68rem; }
.map-disclaimer a { color: white; }
.guide-figure { width: min(var(--max), calc(100% - 40px)); margin: 0 auto 54px; }
.guide-figure img { width: 100%; height: clamp(260px, 42vw, 500px); object-fit: cover; border-radius: 22px; box-shadow: var(--shadow); }
.guide-figure figcaption { margin-top: 9px; color: var(--muted); font-size: .72rem; }
.guide-figure figcaption a { color: inherit; }
.article-body .guide-figure { width: 100%; margin: 30px 0 44px; }
.editor-note { padding: clamp(28px,5vw,52px); border-radius: 22px; background: #fff6da; border: 1px solid #ead9a3; }
.editor-note blockquote { max-width: 860px; margin: 12px 0 0; font-family: Georgia, Cambria, serif; font-size: clamp(1.35rem,3vw,2.15rem); line-height: 1.4; letter-spacing:0; }
.trust-page { max-width: 800px; padding-top: 70px; padding-bottom: 90px; }
.trust-page h1 { font-size: clamp(3rem,7vw,5.5rem); }
.trust-page h2 { margin: 50px 0 14px; font-size: 2rem; }
.trust-page p, .trust-page li { color: #36445a; }
.trust-page li { margin-bottom: 10px; }
.blueprint-header { padding: 64px 0 44px; border-bottom: 1px solid var(--line); background: white; }
.blueprint-header .shell { display: grid; grid-template-columns: 1.15fr .85fr; gap: 50px; align-items: end; }
.blueprint-header h1 { margin: 0; color: var(--ink); }
.blueprint-header .shell > p { margin-bottom: 5px; color: var(--muted); font-size: 1.08rem; }
.blueprint-progress-panel { position: relative; margin-bottom: 24px; padding: 20px 22px 0; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.92); box-shadow: 0 14px 36px rgba(8,21,47,.05); overflow: hidden; scroll-margin-top: 96px; }
.blueprint-progress-copy { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.blueprint-progress-copy > div { display: grid; }
.blueprint-progress-copy span { color: var(--muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.blueprint-progress-copy strong { font-size: 1.2rem; letter-spacing:0; }
.live-indicator { display: inline-flex; align-items: center; gap: 8px; }
.live-indicator i { width: 8px; height: 8px; border-radius: 50%; background: #72a300; box-shadow: 0 0 0 0 rgba(114,163,0,.45); animation: live-pulse 2s ease-out infinite; }
.blueprint-progress-track { height: 4px; margin: 18px -22px 0; background: #e5eaf2; }
.blueprint-progress-track span { display: block; width: 33.333%; height: 100%; background: linear-gradient(90deg,#87b900,var(--lime-2)); transition: width .4s cubic-bezier(.2,.7,.2,1); }
.blueprint-step-nav { display: grid; grid-template-columns: repeat(3,1fr); margin-inline: -22px; }
.blueprint-step-nav button { min-height: 56px; display: flex; gap: 8px; align-items: center; justify-content: center; padding: 11px 14px; border: 0; border-right: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; font-size: .78rem; font-weight: 600; }
.blueprint-step-nav button:last-child { border-right: 0; }
.blueprint-step-nav button span { color: #7d899c; font-size: .68rem; }
.blueprint-step-nav button[aria-current="step"] { background: #f0f6e2; color: var(--ink); }
.blueprint-step-nav button[aria-current="step"] span { color: #58720d; }
.blueprint-layout { display: grid; grid-template-columns: 1.12fr .88fr; gap: 24px; align-items: start; }
.blueprint-form { display: grid; gap: 18px; }
.blueprint-form fieldset { margin: 0; padding: clamp(24px,4vw,38px); border: 1px solid var(--line); border-radius: 18px; background: white; }
.blueprint-form.is-stepped fieldset { display: none; }
.blueprint-form.is-stepped fieldset.is-active { display: block; animation: blueprint-in .35s ease both; }
.blueprint-form legend { padding: 0 10px 0 0; font-size: 1.35rem; font-weight: 600; letter-spacing:0; }
.blueprint-form legend span { margin-right: 8px; color: #4e6a07; font-size: .78rem; letter-spacing: .06em; }
.blueprint-step-note { max-width: 620px; margin: 5px 0 26px; color: var(--muted); font-size: .88rem; }
.blueprint-controls { display: flex; justify-content: space-between; gap: 12px; }
.blueprint-controls .button-ghost { border-color: var(--line); background: white; color: var(--ink); }
.blueprint-controls .button-ghost:hover { border-color: var(--ink); }
.blueprint-controls button:disabled { opacity: .4; cursor: not-allowed; }
.blueprint-result { position: sticky; top: 96px; max-height: calc(100vh - 116px); overflow-y: auto; padding: clamp(28px,4vw,42px); border-radius: 18px; background: var(--ink); color: white; box-shadow: var(--shadow); scroll-margin-top: 96px; scrollbar-color: rgba(255,255,255,.26) transparent; }
.blueprint-result.is-updated { animation: result-flash .45s ease; }
.blueprint-result-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.blueprint-result-head .eyebrow { margin-bottom: 0; }
.blueprint-result-head > span { padding: 5px 9px; border: 1px solid rgba(199,255,69,.35); border-radius: 999px; color: var(--lime); font-size: .69rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.blueprint-result h2 { margin-bottom: 15px; color: white; font-size: clamp(2.2rem,4vw,3.4rem); }
.blueprint-result > p:not(.eyebrow) { color: #c7d0df; }
.blueprint-steps { padding-left: 22px; margin: 28px 0; }
.blueprint-steps li { margin: 13px 0; padding-left: 5px; color: #ecf0f6; }
.blueprint-links { display: grid; gap: 8px; margin: 24px 0; }
.blueprint-links a { padding: 10px 12px; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; color: white; text-decoration: none; font-size: .86rem; font-weight: 600; }
.copy-status { min-height: 1.5em; margin: 10px 0 0; color: #b9c4d6; font-size: .8rem; }
.blueprint-email { background: #e9f2ff; }
@keyframes live-pulse { 70% { box-shadow: 0 0 0 8px rgba(114,163,0,0); } 100% { box-shadow: 0 0 0 0 rgba(114,163,0,0); } }
@keyframes blueprint-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes result-flash { 0%,100% { box-shadow: var(--shadow); } 45% { box-shadow: 0 0 0 3px rgba(199,255,69,.32), var(--shadow); } }

@media (max-width: 850px) {
  .calc-panel, .diagnostic, .dialog-layout, .blueprint-layout, .blueprint-header .shell, .map-shell { grid-template-columns: 1fr; }
  .diagnostic-result, .blueprint-result { position: static; }
  .blueprint-result { max-height: none; overflow: visible; }
  .topic-grid, .lens-grid { grid-template-columns: 1fr 1fr; }
  .country-map { height: 300px; min-height: 0; }
  .map-city-panel { height: auto; min-height: auto; overflow: visible; }
}
@media (max-width: 580px) {
  .calc-fields, .topic-grid, .lens-grid { grid-template-columns: 1fr; }
  .blueprint-progress-panel { padding-inline: 16px; }
  .blueprint-progress-track, .blueprint-step-nav { margin-inline: -16px; }
  .blueprint-progress-copy { align-items: flex-start; }
  .live-indicator { font-size: 0 !important; }
  .live-indicator::after { content: "Live"; font-size: .65rem; }
  .blueprint-step-nav { overflow-x: auto; grid-template-columns: repeat(3,minmax(145px,1fr)); }
  .blueprint-step-nav, .city-filter-buttons { scrollbar-width: none; }
  .blueprint-step-nav::-webkit-scrollbar, .city-filter-buttons::-webkit-scrollbar { display: none; }
}

.hero { padding: 54px 0 72px; }
.hero-grid { display: grid; grid-template-columns: .94fr 1.06fr; min-height: 520px; background: var(--ink); border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); }
.hero-copy { padding: clamp(42px, 6vw, 74px); display: flex; flex-direction: column; justify-content: center; color: white; }
.kicker { display: inline-flex; width: fit-content; align-items: center; gap: 8px; margin-bottom: 24px; padding: 7px 11px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: var(--lime); font-size: .76rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 4px rgba(199,255,69,.12); }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 24px; max-width: 720px; font-size: clamp(3rem, 5.5vw, 5.4rem); line-height: .96; letter-spacing:0; font-weight: 600; }
h1 em { font-style: normal; color: var(--lime); }
.hero-copy > p { max-width: 610px; margin-bottom: 30px; color: #c9d2e4; font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 11px 18px; border: 1px solid transparent; border-radius: 12px; text-decoration: none; font-weight: 600; cursor: pointer; }
.button-primary { background: var(--lime); color: var(--ink); }
.button-primary:hover { background: var(--lime-2); }
.button-ghost { border-color: rgba(255,255,255,.26); color: white; background: transparent; }
.hero-media { position: relative; min-height: 420px; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero-note { position: absolute; right: 22px; bottom: 22px; max-width: 250px; padding: 15px 17px; border-radius: 13px; background: rgba(255,255,255,.92); color: var(--ink); box-shadow: var(--shadow); font-size: .84rem; font-weight: 600; backdrop-filter: blur(10px); }
.hero-note span { display: block; color: var(--muted); font-size: .73rem; font-weight: 600; }

.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: -28px; position: relative; z-index: 2; background: var(--line); border: 1px solid var(--line); border-radius: 15px; overflow: hidden; box-shadow: var(--shadow); }
.trust-item { padding: 18px 20px; background: white; }
.trust-item strong { display: block; font-size: .91rem; }
.trust-item span { color: var(--muted); font-size: .8rem; }

.section { padding: 84px 0; }
.section-tight { padding-top: 46px; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 32px; }
.eyebrow { margin-bottom: 8px; color: #4e6a07; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
h2 { margin-bottom: 0; max-width: 720px; font-size: clamp(2.2rem, 4vw, 3.7rem); line-height: 1.02; letter-spacing:0; }
.section-head > p { max-width: 450px; margin-bottom: 3px; color: var(--muted); }

.planner { display: grid; grid-template-columns: 1.15fr .85fr; gap: 0; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; background: white; box-shadow: var(--shadow); }
.planner-form { padding: clamp(28px, 4vw, 48px); }
.planner-intro { max-width: 620px; margin-bottom: 30px; color: var(--muted); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 17px; }
.field { display: grid; gap: 7px; }
.field label { font-size: .82rem; font-weight: 600; }
.input-wrap { display: flex; align-items: center; min-height: 50px; border: 1px solid #bcc7d8; border-radius: 11px; background: var(--paper); overflow: hidden; }
.input-wrap span { padding-left: 14px; color: var(--muted); font-weight: 600; }
.input-wrap input, .input-wrap select { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; padding: 12px 14px 12px 8px; color: var(--ink); font-weight: 700; }
.input-wrap:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(8,21,47,.08); }
.range-row { margin-top: 24px; }
.range-label { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 8px; font-size: .82rem; font-weight: 600; }
.range-label output { color: #4e6a07; }
.field-help { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; margin-left: 4px; border: 1px solid #769718; border-radius: 50%; color: #4e6a07; font-size: .7rem; font-weight: 600; line-height: 1; cursor: help; }
.field-help::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 9px); z-index: 20; width: min(260px, 70vw); padding: 9px 11px; border-radius: 9px; background: var(--ink); color: white; font-size: .74rem; font-weight: 600; line-height: 1.45; box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .15s ease, transform .15s ease; }
.field-help:hover::after, .field-help:focus::after { opacity: 1; transform: translate(-50%, 0); }
input[type="range"] { width: 100%; accent-color: var(--ink); }
.planner-result { padding: clamp(28px, 4vw, 48px); background: var(--ink); color: white; display: flex; flex-direction: column; justify-content: space-between; }
.result-label { color: #aebbd1; font-size: .77rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.result-main { margin: 6px 0 2px; color: var(--lime); font-size: clamp(2.8rem, 6vw, 4.8rem); line-height: 1; font-weight: 600; letter-spacing:0; }
.result-caption { color: #c5cee0; font-size: .9rem; }
.result-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.result-card { padding: 15px; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; background: rgba(255,255,255,.05); }
.result-card span { display: block; color: #aebbd1; font-size: .73rem; }
.result-card strong { font-size: 1.08rem; }
.status { padding: 14px 15px; border-left: 3px solid var(--lime); background: rgba(199,255,69,.08); color: #e7edd9; font-size: .86rem; }
.result-copy { width: 100%; margin-top: 12px; padding: 11px 14px; border: 1px solid rgba(255,255,255,.28); border-radius: 10px; background: transparent; color: white; font: inherit; font-weight: 600; cursor: pointer; }
.result-copy:hover, .result-copy:focus-visible { border-color: var(--lime); color: var(--lime); }
.future-ad-slot[hidden] { display: none !important; }

.article-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.article-card { grid-column: span 6; display: flex; flex-direction: column; min-height: 310px; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: white; text-decoration: none; transition: transform .18s ease, box-shadow .18s ease; }
.article-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.article-card.featured { grid-column: span 7; background: var(--ink); color: white; }
.article-card.compact { grid-column: span 5; }
.article-meta { display: flex; justify-content: space-between; gap: 15px; margin-bottom: auto; color: var(--muted); font-size: .76rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.featured .article-meta { color: #aebbd1; }
.article-number { color: #4e6a07; }
.featured .article-number { color: var(--lime); }
.article-card h3 { margin: 38px 0 12px; font-size: clamp(1.55rem, 2.7vw, 2.45rem); line-height: 1.06; letter-spacing:0; }
.article-card p { margin-bottom: 24px; color: var(--muted); }
.featured p { color: #bec9db; }
.read-link { margin-top: auto; font-size: .86rem; font-weight: 600; }

.newsletter { display: grid; grid-template-columns: 1fr .9fr; gap: 50px; align-items: center; padding: clamp(32px, 5vw, 58px); border-radius: 24px; background: var(--lime); }
.newsletter h2 { font-size: clamp(2.2rem, 4vw, 3.6rem); }
.newsletter p { margin: 16px 0 0; max-width: 600px; color: #31400d; }
.signup { display: flex; padding: 6px; border: 2px solid var(--ink); border-radius: 13px; background: white; box-shadow: 5px 5px 0 var(--ink); }
.signup input { min-width: 0; flex: 1; border: 0; outline: 0; padding: 12px; }
.signup button { border: 0; border-radius: 9px; background: var(--ink); color: white; padding: 11px 16px; font-weight: 600; cursor: pointer; }
.form-note { margin: 12px 0 0; color: #344313; font-size: .77rem; }
.form-message { min-height: 1.5em; margin-top: 10px; font-size: .83rem; font-weight: 600; }

.site-footer { padding: 50px 0 28px; background: var(--ink); color: white; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 42px; padding-bottom: 36px; }
.footer-brand p { max-width: 560px; margin: 18px 0 0; color: #aebbd1; font-size: .88rem; }
.footer-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; align-content: start; }
.footer-links a { color: #dce3ef; text-decoration: none; font-size: .88rem; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-bottom: 18px; }
.footer-legal a { color: #dce3ef; text-decoration: none; font-size: .8rem; }
.footer-legal a:hover { color: var(--lime); }
.footer-bottom { padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); color: #8f9db3; font-size: .76rem; }

/* Destination-led editorial system */
.destination-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.destination-card { min-height: 390px; display: flex; flex-direction: column; justify-content: space-between; padding: 28px; border: 1px solid var(--line); border-radius: 22px; background: white; text-decoration: none; overflow: hidden; position: relative; isolation: isolate; transition: transform .18s ease, box-shadow .18s ease; }
.destination-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(90deg, rgba(255,255,255,.96), rgba(255,255,255,.73)), var(--flag-image); background-position: center, right center; background-repeat: no-repeat; background-size: cover, 72% auto; opacity: .9; }
.destination-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.destination-top { display: flex; justify-content: space-between; gap: 16px; align-items: center; color: var(--muted); font-size: .77rem; font-weight: 600; }
.flag { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: .7rem; font-weight: 600; }
.destination-card h3 { margin: 5px 0 12px; font-size: clamp(2.7rem, 5vw, 4.6rem); letter-spacing:0; line-height: .95; }
.destination-card p:not(.eyebrow) { max-width: 500px; color: var(--muted); }
.destination-card .read-link { position: relative; z-index: 1; }
.destination-uae { --flag-image: url("https://upload.wikimedia.org/wikipedia/commons/c/cb/Flag_of_the_United_Arab_Emirates.svg"); }
.destination-thailand { --flag-image: url("https://upload.wikimedia.org/wikipedia/commons/a/a9/Flag_of_Thailand.svg"); }
.destination-spain { --flag-image: url("https://upload.wikimedia.org/wikipedia/en/9/9a/Flag_of_Spain.svg"); }
.destination-portugal { --flag-image: url("https://upload.wikimedia.org/wikipedia/commons/5/5c/Flag_of_Portugal.svg"); }
.section-ink { background: var(--ink); color: white; }
.section-ink .section-head > p { color: #abb8ce; }
.section-ink .eyebrow { color: var(--lime); }
.lead-story { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; padding: clamp(28px, 5vw, 58px); border: 1px solid rgba(255,255,255,.14); border-radius: 24px; background: rgba(255,255,255,.04); }
.lead-story h3 { margin: 15px 0 18px; max-width: 700px; font-size: clamp(2rem, 4.2vw, 3.8rem); line-height: 1.02; letter-spacing:0; }
.lead-story p { max-width: 680px; color: #bcc7da; }
.story-index { color: var(--lime); font-size: .75rem; font-weight: 600; letter-spacing: .12em; }
.fact-stack { margin: 0; display: grid; gap: 1px; background: rgba(255,255,255,.12); }
.fact-stack div { padding: 22px; background: #101f3e; }
.fact-stack dt { color: var(--lime); font-size: 2.3rem; font-weight: 600; letter-spacing:0; }
.fact-stack dd { margin: 2px 0 0; color: #c6d0e1; font-size: .82rem; }
.micro-source { margin: 14px 0 0; color: #8897b1; font-size: .72rem; }
.center-action { display: flex; justify-content: center; margin-top: 28px; }
.button-outline { border-color: var(--ink); background: transparent; color: var(--ink); }
.button-outline:hover { background: var(--ink); color: white; }

/* Country desks */
.country-hero { padding: 64px 0 44px; }
.country-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 55px; align-items: end; }
.country-hero h1 { margin: 10px 0 22px; color: var(--ink); }
.country-hero .guide-dek { margin-bottom: 0; }
.country-stamp { padding: 24px; border-radius: 18px; background: var(--ink); color: white; }
.country-stamp strong { color: var(--lime); }
.country-stamp p { margin: 8px 0 0; color: #c0cadb; font-size: .85rem; }
.country-tabs { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.country-tabs a { padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: white; text-decoration: none; font-size: .8rem; font-weight: 600; }
.city-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.city-card { grid-column: span 4; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.city-card.wide { grid-column: span 6; }
.city-card h3 { margin: 6px 0 10px; font-size: 1.6rem; letter-spacing:0; }
.city-card p { color: var(--muted); font-size: .9rem; }
.city-card ul { padding-left: 18px; margin-bottom: 0; color: #334057; font-size: .84rem; }
.city-card li { margin: 7px 0; }
.fit-label { color: #4e6a07; font-size: .71rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.decision-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.decision-card { min-height: 275px; display: flex; flex-direction: column; padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; text-decoration: none; }
.decision-card h3 { margin: 25px 0 10px; font-size: 1.55rem; line-height: 1.08; letter-spacing:0; }
.decision-card p { color: var(--muted); font-size: .88rem; }
.decision-card .read-link { margin-top: auto; }
.country-note { padding: 24px; border-left: 4px solid var(--lime-2); background: #f0f5ff; }
.country-note p:last-child { margin-bottom: 0; }
.official-links { display: flex; flex-wrap: wrap; gap: 10px; }
.official-links a { padding: 10px 13px; border-radius: 10px; background: white; border: 1px solid var(--line); text-decoration: none; font-size: .8rem; font-weight: 600; }

/* Guide library and richer article components */
.library-hero { padding: 70px 0 30px; }
.library-hero p { max-width: 690px; color: var(--muted); font-size: 1.1rem; }
.library-hero h1 { max-width: 900px; font-size: clamp(2.8rem, 6vw, 4.9rem); }
.guide-filters { position: sticky; top: 76px; z-index: 7; padding: 14px 0; border-block: 1px solid var(--line); background: rgba(247,248,251,.96); backdrop-filter: blur(16px); }
.filter-bar { display: grid; grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(145px, .7fr)); gap: 10px; }
.filter-control { display: grid; gap: 5px; }
.filter-control label { color: var(--muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.filter-control input, .filter-control select { width: 100%; min-height: 44px; padding: 9px 11px; border: 1px solid #bcc7d8; border-radius: 10px; background: white; color: var(--ink); font: inherit; font-weight: 700; }
.filter-summary { margin: 12px 0 0; color: var(--muted); font-size: .82rem; }
.collection-section[hidden], .library-card[hidden] { display: none; }
.library-empty { display: none; padding: 34px; border: 1px dashed #aeb9ca; border-radius: 16px; background: white; text-align: center; }
.library-empty.is-visible { display: block; }
.library-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.library-card { display: flex; flex-direction: column; min-height: 280px; padding: 23px; border: 1px solid var(--line); border-radius: 17px; background: white; text-decoration: none; }
.library-card h2 { margin: 25px 0 10px; font-size: 1.55rem; line-height: 1.08; }
.library-card p { color: var(--muted); font-size: .88rem; }
.library-card .read-link { margin-top: auto; }
.verify-box { margin: 34px 0; padding: 22px; border: 1px solid #e4c152; border-radius: 15px; background: #fff9dc; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.verify-box strong { display: block; margin-bottom: 7px; }
.verify-box p:last-child { margin-bottom: 0; }
.data-table { width: 100%; margin: 28px 0; border-collapse: collapse; font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .86rem; }
.data-table th, .data-table td { padding: 13px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { background: var(--ink); color: white; }
.data-table td { background: white; }
.table-scroll { width: 100%; overflow-x: auto; }
.table-scroll .data-table { min-width: 660px; }
.table-note { margin: -16px 0 30px; color: var(--muted); font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-size: .78rem; line-height: 1.55; }
.mini-calculator { margin: 34px 0; padding: 25px; border-radius: 17px; background: #eaf1ff; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.mini-calculator h2 { margin-top: 0; }
.calc-results { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.calc-results div { padding: 14px; border-radius: 11px; background: white; }
.calc-results span { display: block; color: var(--muted); font-size: .72rem; }
.calc-results strong { font-size: 1.12rem; }
.related-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 40px 0; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.related-strip a { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: white; text-decoration: none; font-size: .85rem; font-weight: 600; }

/* Guide pages */
.guide-hero { padding: 68px 0 42px; }
.guide-hero-inner { max-width: 880px; }
.guide-breadcrumb { display: inline-flex; margin-bottom: 32px; color: var(--muted); text-decoration: none; font-size: .83rem; font-weight: 600; }
.guide-breadcrumb:hover { color: var(--ink); }
.guide-label { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 18px; }
.guide-label span { padding: 6px 10px; border-radius: 999px; background: var(--sky); color: #294b91; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.guide-hero h1 { max-width: 850px; margin-bottom: 20px; font-size: clamp(3rem, 7vw, 5.8rem); color: var(--ink); }
.guide-dek { max-width: 760px; margin-bottom: 24px; color: var(--muted); font-size: 1.18rem; }
.guide-byline { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: .82rem; font-weight: 700; }
.guide-layout { display: grid; grid-template-columns: minmax(0, 730px) 270px; gap: 70px; align-items: start; padding-bottom: 90px; }
.article-body { font-family: Georgia, Cambria, "Times New Roman", serif; font-size: 1.12rem; line-height: 1.8; }
.article-body h2, .article-body h3, .article-body .callout, .article-body .step, .article-body .sources, .article-body .checklist { font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.article-body h2 { margin: 56px 0 16px; font-size: clamp(2rem, 4vw, 2.85rem); line-height: 1.08; }
.article-body h3 { margin: 34px 0 10px; font-size: 1.25rem; line-height: 1.25; }
.article-body p { margin-bottom: 22px; }
.article-body ul, .article-body ol { padding-left: 24px; margin: 0 0 26px; }
.article-body li { margin-bottom: 10px; padding-left: 5px; }
.article-body strong { color: var(--ink); }
.article-body a { text-decoration-thickness: 1px; text-underline-offset: 3px; }
.standfirst { padding-left: 22px; border-left: 4px solid var(--lime-2); color: #31405a; font-size: 1.2rem; }
.key-takeaways { margin: 28px 0 34px; padding: 22px 24px; border: 1px solid #b8d76a; border-radius: 16px; background: #f5ffde; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.key-takeaways strong { display: block; margin-bottom: 9px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.key-takeaways ul { margin: 0; padding-left: 20px; }
.key-takeaways li { margin: 7px 0; font-size: .9rem; line-height: 1.5; }
.callout { margin: 34px 0; padding: 22px; border-radius: 15px; background: var(--ink); color: white; }
.callout strong { color: var(--lime); }
.callout p:last-child { margin-bottom: 0; }
.step { margin: 18px 0; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: white; }
.step-num { display: block; margin-bottom: 5px; color: #4e6a07; font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; }
.step h3 { margin: 0 0 8px; }
.step p:last-child { margin-bottom: 0; }
.checklist { margin: 34px 0; padding: 24px; border: 1px solid #b6d753; border-radius: 16px; background: #f4ffda; }
.checklist h3 { margin-top: 0; }
.checklist ul { margin-bottom: 0; }
.sources { margin-top: 58px; padding-top: 25px; border-top: 1px solid var(--line); }
.sources h2 { margin-top: 0; font-size: 1.4rem; }
.sources li { margin-bottom: 9px; font-size: .88rem; }
.sources a { color: #294b91; }
.guide-aside { position: sticky; top: 105px; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: white; box-shadow: var(--shadow); }
.guide-aside strong { display: block; margin-bottom: 8px; }
.guide-aside p { margin-bottom: 18px; color: var(--muted); font-size: .82rem; }
.guide-aside a { display: block; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; font-size: .82rem; font-weight: 600; }
.guide-aside a:hover { color: #4e6a07; }
.disclosure { margin-top: 20px; color: var(--muted); font-size: .78rem; }
.article-toc { margin: 0 0 34px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 14px; background: white; font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.article-toc strong { display: block; margin-bottom: 8px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.article-toc ol { margin: 0; padding-left: 20px; }
.article-toc li { margin: 5px 0; font-size: .86rem; }
.article-toc a { text-decoration: none; }
.article-toc a:hover { text-decoration: underline; }

/* Blueprint and city working pages */
.blueprint-result { min-width: 0; }
.blueprint-phases { display: grid; gap: 14px; margin: 24px 0; }
.blueprint-phase { padding: 16px; border: 1px solid rgba(255,255,255,.15); border-radius: 12px; background: rgba(255,255,255,.05); }
.blueprint-phase h3 { margin: 0 0 8px; color: var(--lime); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; }
.blueprint-phase ul { margin: 0; padding-left: 19px; }
.blueprint-phase li { margin: 7px 0; color: #edf1f6; font-size: .88rem; }
.readiness-board { display: grid; gap: 9px; margin: 24px 0; }
.readiness-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 9px; background: rgba(255,255,255,.07); }
.readiness-row span { font-size: .82rem; }
.readiness-row strong { color: var(--lime); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; }
.blueprint-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.blueprint-actions .button { flex: 1 1 150px; }
.city-page-hero { padding: 64px 0 44px; background: var(--ink); color: white; }
.city-page-hero .guide-breadcrumb { color: #b9c4d6; }
.city-page-hero h1 { margin-bottom: 18px; }
.city-page-hero .guide-dek { color: #c5cede; }
.city-facts { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-top: 28px; }
.city-facts div { padding: 15px; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; background: rgba(255,255,255,.05); }
.city-facts span { display: block; color: #9eabc0; font-size: .69rem; text-transform: uppercase; letter-spacing: .08em; }
.city-facts strong { display: block; margin-top: 5px; color: var(--lime); font-size: .91rem; line-height: 1.35; }
.city-page-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 24px; align-items: start; }
.city-panel { padding: clamp(24px,4vw,38px); border: 1px solid var(--line); border-radius: 18px; background: white; }
.city-panel h2 { font-size: clamp(1.9rem,3vw,2.8rem); }
.city-panel p, .city-panel li { color: #3c4960; }
.city-panel li { margin-bottom: 9px; }
.city-start { background: #eef4ff; }
.guide-path { display: grid; gap: 10px; margin-top: 22px; }
.guide-path a { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 11px; background: white; text-decoration: none; font-weight: 600; }
.guide-path b { color: #58720d; }
.city-back { margin-top: 24px; }
.city-card[hidden] { display: none; }
.reveal-ready .reveal-item { opacity: 0; transform: translateY(18px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.reveal-ready .reveal-item.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 900px) {
  .nav { gap: 14px; }
  .nav-links { gap: 12px; }
  .hero-grid, .planner, .newsletter { grid-template-columns: 1fr; }
  .hero-media { min-height: 390px; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .section-head { display: block; }
  .section-head > p { margin-top: 16px; }
  .article-card, .article-card.featured, .article-card.compact { grid-column: span 12; }
  .nav-toggle { display: grid; margin-left: auto; }
  .nav { position: relative; }
  .nav-links { display: none; position: absolute; inset: 67px 0 auto; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: white; box-shadow: var(--shadow); }
  .nav-links.is-open { display: grid; }
  .nav-links a { display: block !important; padding: 10px 12px; border-radius: 8px; }
  .nav-links a:hover { background: var(--paper); }
  .nav-cta { text-align: center; }
  .guide-layout { grid-template-columns: 1fr; gap: 30px; }
  .guide-aside { position: static; order: -1; }
  .destination-grid, .country-hero-grid, .lead-story { grid-template-columns: 1fr; }
  .city-card, .city-card.wide { grid-column: span 6; }
  .decision-grid, .library-grid { grid-template-columns: 1fr 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .city-page-grid { grid-template-columns: 1fr; }
  .city-facts { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .shell { width: min(100% - 24px, var(--max)); }
  .nav { min-height: 66px; }
  .brand { font-size: 1.08rem; }
  .nav-cta { padding: 8px 12px; font-size: .78rem !important; }
  .hero { padding: 22px 0 54px; }
  .hero-grid { border-radius: 20px; }
  .hero-copy { padding: 34px 24px 38px; }
  h1 { font-size: clamp(2.8rem, 15vw, 4rem); }
  .hero-media { min-height: 300px; }
  .hero-note { left: 14px; right: 14px; bottom: 14px; max-width: none; }
  .trust-strip { grid-template-columns: 1fr; margin-top: -18px; }
  .field-grid, .result-grid, .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .article-card { min-height: 285px; }
  .signup { display: grid; }
  .signup button { min-height: 46px; }
  .destination-grid, .decision-grid, .library-grid, .calc-results, .related-strip { grid-template-columns: 1fr; }
  .destination-card { min-height: 335px; }
  .city-card, .city-card.wide { grid-column: span 12; }
  .city-filter-bar { align-items: flex-start; flex-direction: column; }
  .city-filter-buttons { flex-wrap: nowrap; width: 100%; padding-bottom: 4px; overflow-x: auto; }
  .city-filter-buttons button { flex: 0 0 auto; }
  .lead-story { gap: 35px; }
  .data-table { display: block; overflow-x: auto; }
  .filter-bar { grid-template-columns: 1fr; }
  .guide-filters { position: static; }
  .city-facts { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .city-card.city-photo::before { animation: none; }
  .reveal-ready .reveal-item { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .blueprint-progress-panel, .blueprint-form, .blueprint-email, .blueprint-actions, .copy-status { display: none !important; }
  body { background: white; }
  .blueprint-header { padding: 20px 0; }
  .blueprint-layout { display: block; }
  .blueprint-result { position: static; color: #08152f; background: white; box-shadow: none; border: 1px solid #d9dfeb; }
  .blueprint-result h2, .blueprint-result > p:not(.eyebrow), .blueprint-phase li { color: #08152f; }
  .blueprint-phase, .readiness-row { break-inside: avoid; border-color: #d9dfeb; background: white; }
  .blueprint-phase h3, .readiness-row strong { color: #425c00; }
  .blueprint-links { display: none; }
}

/* Research, comparison and shortlisting */
.compare-hero, .corridor-hero { padding: clamp(72px,9vw,118px) 0 58px; background: radial-gradient(circle at 78% 18%,rgba(199,255,69,.16),transparent 30%),var(--ink); color: white; }
.city-filter-bar p a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.compare-hero .shell, .corridor-hero .shell { max-width: 930px; margin-inline: auto; }
.compare-hero h1, .corridor-hero h1 { max-width: 850px; margin: 0 0 22px; color: white; font-size: clamp(3rem,7vw,6.2rem); line-height: .95; letter-spacing:0; }
.compare-hero p:last-child, .corridor-hero .shell > p:last-child { max-width: 760px; color: #cbd4e3; font-size: 1.08rem; }
.compare-controls { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 46px 1fr 1fr; gap: 14px; align-items: end; margin-top: -42px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.compare-swap { width: 46px; height: 46px; margin-bottom: 1px; border: 1px solid var(--line); border-radius: 50%; background: var(--paper); color: var(--ink); font-size: 1.2rem; cursor: pointer; }
.compare-swap:hover { border-color: var(--ink); transform: rotate(180deg); transition: transform .35s ease; }
.compare-method { max-width: 760px; margin: 20px auto 28px; color: var(--muted); text-align: center; font-size: .83rem; }
.compare-board { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.compare-city-card { min-width: 0; padding: clamp(24px,4vw,42px); border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 15px 48px rgba(8,21,47,.07); }
.compare-city-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 22px; }
.compare-city-head span { color: var(--muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.compare-city-head h2 { margin: 3px 0 0; font-size: clamp(2rem,4vw,3.2rem); }
.save-city { flex: 0 0 auto; padding: 9px 12px; border: 1px solid #9aa8bd; border-radius: 999px; background: white; color: var(--ink); font: inherit; font-size: .76rem; font-weight: 600; cursor: pointer; }
.save-city[aria-pressed="true"] { border-color: #91bd1d; background: #eff8da; }
.compare-fit { min-height: 108px; margin: 0 -10px 24px; padding: 16px 18px; border-radius: 13px; background: #f1f5fb; color: #34435a; }
.compare-city-card dl { margin: 0 0 28px; }
.compare-city-card dl div { padding: 16px 0; border-top: 1px solid var(--line); }
.compare-city-card dt { margin-bottom: 6px; color: #5e6d82; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.compare-city-card dd { margin: 0; color: var(--ink); line-height: 1.55; }
.compare-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.compare-shortlist-section { background: #edf2fa; }
.shortlist-page { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 12px; }
.shortlist-page a, .shortlist-empty { min-height: 142px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: white; color: var(--ink); text-decoration: none; }
.shortlist-page a span, .shortlist-page a small, .shortlist-empty span { color: var(--muted); font-size: .78rem; }
.shortlist-page a strong { font-size: 1.25rem; }
.shortlist-drawer { position: fixed; z-index: 30; right: 20px; bottom: 20px; display: flex; gap: 18px; align-items: center; padding: 12px 15px; border: 1px solid rgba(255,255,255,.18); border-radius: 12px; background: var(--ink); color: white; box-shadow: 0 18px 60px rgba(4,15,34,.25); }
.shortlist-drawer span { font-size: .8rem; }
.shortlist-drawer a { color: var(--lime); font-size: .8rem; font-weight: 600; text-decoration: none; }
.compare-next, .resident-callout { display: flex; justify-content: space-between; gap: 36px; align-items: center; padding: clamp(28px,5vw,54px); border-radius: 22px; background: var(--ink); color: white; }
.compare-next h2, .resident-callout h2 { color: white; }
.compare-next p:not(.eyebrow), .resident-callout p:not(.eyebrow) { max-width: 720px; color: #cbd4e3; }
.compare-next .button, .resident-callout .button { flex: 0 0 auto; border-color: rgba(255,255,255,.4); color: white; }

.city-research { background: linear-gradient(180deg,#f1f5fb 0,#fff 100%); }
.city-research-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.city-research-actions .button { padding: 9px 13px; font-size: .76rem; }
.financial-snapshot { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 10px; margin: 28px 0 48px; }
.financial-snapshot article { min-height: 180px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: white; }
.financial-snapshot article:first-child, .financial-snapshot article:nth-child(2) { grid-column: span 3; min-height: 155px; }
.financial-snapshot article:nth-child(n+3) { grid-column: span 2; }
.financial-snapshot span { display: block; margin-bottom: 16px; color: #58720d; font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; }
.financial-snapshot p { margin: 0; color: #35445b; line-height: 1.55; }
.city-research-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 34px; align-items: start; }
.city-research-grid h3 { margin-top: 0; font-size: 1.7rem; }
.season-strip { display: grid; grid-template-columns: repeat(2,1fr); gap: 9px; }
.season-strip div { min-height: 125px; padding: 18px; border-radius: 13px; background: var(--ink); color: white; }
.season-strip strong, .season-strip span { display: block; }
.season-strip strong { margin-bottom: 12px; color: var(--lime); font-size: .78rem; text-transform: uppercase; letter-spacing: .07em; }
.season-strip span { color: #d8dfeb; font-size: .86rem; line-height: 1.45; }
.neighborhood-list { display: grid; gap: 9px; }
.neighborhood-list details { border: 1px solid var(--line); border-radius: 12px; background: white; overflow: hidden; }
.neighborhood-list summary { display: flex; justify-content: space-between; gap: 16px; padding: 17px 18px; cursor: pointer; font-weight: 600; }
.neighborhood-list summary span { color: #648404; }
.neighborhood-list details[open] summary span { transform: rotate(45deg); }
.neighborhood-list p { margin: 0; padding: 0 18px 18px; color: var(--muted); font-size: .9rem; }
.resident-inline { display: flex; justify-content: space-between; gap: 22px; align-items: center; margin-top: 34px; padding: 20px 22px; border: 1px dashed #93a1b6; border-radius: 14px; }
.resident-inline div { display: grid; gap: 4px; }
.resident-inline span { color: var(--muted); font-size: .86rem; }
.resident-inline a { flex: 0 0 auto; color: var(--ink); font-weight: 600; text-decoration: none; }
.dialog-city-page { margin-top: 22px; }

.home-compare { display: grid; grid-template-columns: 1fr .8fr; gap: clamp(28px,7vw,90px); align-items: center; padding: clamp(32px,6vw,64px); border-radius: 24px; background: #edf3fb; }
.home-compare h2 { font-size: clamp(2rem,4vw,3.4rem); }
.home-compare-steps { display: grid; gap: 9px; }
.home-compare-steps span { display: flex; gap: 15px; align-items: center; padding: 15px 17px; border-radius: 12px; background: white; font-weight: 600; }
.home-compare-steps b { color: #628006; font-size: .72rem; letter-spacing: .08em; }

.corridor-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.corridor-card { min-height: 290px; display: flex; flex-direction: column; padding: clamp(25px,4vw,40px); border: 1px solid var(--line); border-radius: 20px; background: white; color: var(--ink); text-decoration: none; }
.corridor-card > span { color: #58720d; font-size: .73rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; }
.corridor-card h3 { margin: auto 0 12px; font-size: clamp(1.45rem,3vw,2.2rem); }
.corridor-card p { color: var(--muted); }
.corridor-card b { margin-top: 20px; font-size: .83rem; }
.corridor-card:hover { transform: translateY(-4px); border-color: #91a1b8; box-shadow: 0 18px 50px rgba(8,21,47,.08); }
.corridor-layout { display: grid; grid-template-columns: minmax(0,1fr) 310px; gap: 44px; align-items: start; }
.corridor-body { max-width: 780px; }
.corridor-body > h2 { margin-top: 50px; font-size: clamp(1.7rem,3vw,2.35rem); }
.corridor-body > p { color: #34435a; font-size: 1.02rem; line-height: 1.8; }
.corridor-checklist { margin: 44px 0; padding: 26px; border-radius: 17px; background: #edf3fb; }
.corridor-checklist h3 { margin-top: 0; }
.corridor-checklist li { margin: 9px 0; }
.corridor-aside { position: sticky; top: 96px; display: grid; gap: 8px; padding: 22px; border-radius: 17px; background: var(--ink); }
.corridor-aside a { padding: 12px 13px; border: 1px solid rgba(255,255,255,.16); border-radius: 9px; color: white; text-decoration: none; font-size: .86rem; font-weight: 600; }
.corridor-aside a:hover { border-color: var(--lime); }

.reality-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 15px; }
.reality-grid article { padding: clamp(24px,4vw,38px); border: 1px solid var(--line); border-radius: 18px; background: white; }
.reality-grid article > span { color: #648404; font-size: .72rem; font-weight: 600; }
.reality-grid h2 { font-size: 1.35rem; }
.reality-grid p { color: var(--muted); }
.reality-form-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 42px; padding: clamp(28px,5vw,52px); border-radius: 22px; background: #edf3fb; }
.reality-form { padding: 24px; border-radius: 16px; background: white; }
.reality-form textarea { width: 100%; padding: 13px; border: 1px solid #b9c5d6; border-radius: 10px; color: var(--ink); font: inherit; resize: vertical; }
.check-list { padding-left: 20px; }
.check-list li { margin: 8px 0; }
.calc-panel-wide { grid-template-columns: 1.15fr .85fr; }

@media (max-width: 980px) {
  .compare-controls { grid-template-columns: 1fr 38px 1fr; }
  .compare-controls .field:last-child { grid-column: 1 / -1; }
  .compare-board, .city-research-grid, .home-compare, .corridor-layout, .reality-form-wrap { grid-template-columns: 1fr; }
  .financial-snapshot article:first-child, .financial-snapshot article:nth-child(2) { grid-column: span 3; }
  .financial-snapshot article:nth-child(n+3) { grid-column: span 2; }
  .corridor-aside { position: static; }
  .reality-grid { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .compare-controls { margin-top: -28px; padding: 16px; grid-template-columns: 1fr; }
  .compare-swap { margin-inline: auto; transform: rotate(90deg); }
  .compare-board, .corridor-grid, .season-strip { grid-template-columns: 1fr; }
  .compare-fit { min-height: 0; }
  .financial-snapshot { grid-template-columns: 1fr; }
  .financial-snapshot article, .financial-snapshot article:first-child, .financial-snapshot article:nth-child(2), .financial-snapshot article:nth-child(n+3) { grid-column: auto; min-height: 0; }
  .city-research-actions, .resident-inline, .compare-next, .resident-callout { align-items: flex-start; flex-direction: column; }
  .city-research-actions .button, .city-research-actions .save-city { width: 100%; text-align: center; }
  .shortlist-drawer { left: 12px; right: 12px; bottom: 12px; justify-content: space-between; }
  .corridor-hero h1, .compare-hero h1 { font-size: clamp(2.6rem,14vw,4.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  .compare-swap:hover, .corridor-card:hover { transform: none; }
}

/* Phase 1: clearer homepage, route starter and shared journey cues */
.hero-phase-one {
  padding: 34px 0 58px;
  background:
    radial-gradient(circle at 83% 12%, rgba(199,255,69,.14), transparent 25%),
    linear-gradient(180deg, #f7f8fb 0%, #eef3fb 100%);
}
.hero-phase-one .hero-grid { grid-template-columns: 1.14fr .86fr; min-height: 560px; align-items: stretch; padding: 0; }
.hero-phase-one .hero-copy { max-width: 760px; }
.hero-phase-one .hero-copy h1 { max-width: 780px; margin: 20px 0 24px; font-size: clamp(3rem,4.8vw,4.65rem); line-height: .96; letter-spacing:0; }
.hero-phase-one .hero-copy > p:not(.scope-badge):not(.hero-reassurance) { max-width: 720px; color: #cdd7e6; font-size: clamp(1.02rem,1.35vw,1.16rem); }
.hero-phase-one .scope-badge { width: fit-content; margin: 0; padding: 8px 12px; border: 1px solid rgba(199,255,69,.65); border-radius: 999px; background: var(--lime); color: var(--ink); font-size: .76rem; font-weight: 600; letter-spacing: .02em; }
.hero-phase-one .hero-reassurance { max-width: 660px; margin: 22px 0 0; color: #aebbd0; font-size: .82rem; }
.money-route-card { align-self: center; display: flex; flex-direction: column; justify-content: center; gap: 12px; margin: 24px 24px 24px 0; padding: clamp(25px,3vw,38px); border: 1px solid rgba(255,255,255,.13); border-radius: 22px; background: #122141; color: white; box-shadow: 0 25px 70px rgba(2,10,25,.2); }
.money-route-card .eyebrow { margin-bottom: 12px; color: var(--lime); }
.money-route-row { display: grid; grid-template-columns: 42px 1fr; gap: 14px; align-items: center; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.13); }
.money-route-row > span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(199,255,69,.45); border-radius: 50%; color: var(--lime); font-size: .78rem; font-weight: 600; }
.money-route-row strong, .money-route-row small { display: block; }
.money-route-row strong { margin-bottom: 2px; font-size: 1rem; }
.money-route-row small { color: #bac6d9; font-size: .8rem; line-height: 1.45; }
.money-route-note { margin: 16px 0 0; color: #dce4f0; font-size: .94rem; }

.route-starter-section { background: white; }
.route-starter-layout { display: grid; grid-template-columns: 1.02fr .98fr; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); }
.route-starter-form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; align-content: start; padding: clamp(26px,4.6vw,54px); background: white; }
.route-field { display: grid; gap: 8px; }
.route-field label, .signup-detailed label { font-size: .82rem; font-weight: 600; }
.route-field select, .signup-detailed select, .signup-detailed input { width: 100%; min-height: 50px; padding: 11px 13px; border: 1px solid #b6c2d4; border-radius: 11px; background: white; color: var(--ink); }
.route-field select:focus-visible, .signup-detailed select:focus-visible, .signup-detailed input:focus-visible { outline: 3px solid rgba(155,202,35,.25); border-color: #648404; }
.local-privacy { grid-column: 1 / -1; display: flex; gap: 8px; align-items: center; margin: 8px 0 0; color: #647188; font-size: .78rem; }
.local-privacy span { color: #58720d; font-weight: 600; }
.route-result { min-height: 485px; display: flex; padding: clamp(26px,4.6vw,54px); background: var(--ink); color: white; }
.route-result-empty { align-self: center; max-width: 460px; }
.route-result-empty h3, .route-result-content h3 { margin: 10px 0 14px; color: white; font-size: clamp(1.75rem,3.2vw,2.75rem); line-height: 1.03; letter-spacing:0; }
.route-result-empty p:last-child { color: #b9c5d7; }
.route-result-content { width: 100%; }
.route-result-content .eyebrow { color: var(--lime); }
.route-issues { display: grid; gap: 9px; margin: 24px 0; padding: 0; counter-reset: route-issue; list-style: none; }
.route-issues li { display: grid; grid-template-columns: 32px 1fr; gap: 11px; align-items: start; padding: 12px 13px; border: 1px solid rgba(255,255,255,.13); border-radius: 11px; background: rgba(255,255,255,.055); color: #edf2f9; font-size: .88rem; }
.route-issues li::before { counter-increment: route-issue; content: counter(route-issue); width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--lime); color: var(--ink); font-size: .69rem; font-weight: 600; }
.route-recommendations { display: grid; grid-template-columns: 1fr .8fr; gap: 10px; margin-bottom: 22px; }
.route-recommendations > div { padding: 14px; border-radius: 11px; background: rgba(255,255,255,.075); }
.route-recommendations > div > span { display: block; margin-bottom: 8px; color: #aebbd0; font-size: .67rem; font-weight: 600; text-transform: uppercase; letter-spacing: .09em; }
.route-recommendations a { display: block; margin: 5px 0; color: white; font-size: .82rem; font-weight: 600; text-decoration: none; }
.route-recommendations a:hover { color: var(--lime); }
.route-blueprint-link { width: 100%; justify-content: center; }

.persona-section { background: #edf3fb; }
.persona-paths { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 10px; }
.persona-paths a { min-height: 300px; display: flex; flex-direction: column; padding: 23px; border: 1px solid var(--line); border-radius: 17px; background: white; color: var(--ink); text-decoration: none; transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.persona-paths a:hover { transform: translateY(-4px); border-color: #9aaaBE; box-shadow: 0 17px 42px rgba(8,21,47,.08); }
.persona-paths a > span { color: #5c7807; font-size: .72rem; font-weight: 600; letter-spacing: .08em; }
.persona-paths h3 { margin: auto 0 10px; font-size: 1.35rem; line-height: 1.06; }
.persona-paths p { color: var(--muted); font-size: .84rem; }
.persona-paths strong { margin-top: 16px; font-size: .78rem; }
.featured-workbench { display: grid; grid-template-columns: 1.4fr .6fr; gap: 16px; align-items: stretch; }
.featured-guides { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.featured-guides .article-card:first-child { grid-row: span 2; }
.tool-stack { display: grid; align-content: start; gap: 9px; padding: clamp(24px,4vw,38px); border-radius: 20px; background: var(--ink); color: white; }
.tool-stack .eyebrow { color: var(--lime); }
.tool-stack > a:not(.button) { display: grid; gap: 2px; padding: 15px 0; border-bottom: 1px solid rgba(255,255,255,.14); color: white; text-decoration: none; }
.tool-stack > a:not(.button):hover span { color: var(--lime); }
.tool-stack span { font-weight: 600; }
.tool-stack small { color: #aebbd0; font-size: .75rem; line-height: 1.45; }
.tool-stack .button { margin-top: 10px; border-color: rgba(255,255,255,.36); color: white; }
.plan-alerts { grid-template-columns: .85fr 1.15fr; }
.signup-detailed { display: grid; grid-template-columns: 1.15fr .75fr .75fr auto; gap: 8px; align-items: end; }
.signup-detailed label { grid-row: 1; color: #d4ddec; }
.signup-detailed input, .signup-detailed select, .signup-detailed button { grid-row: 2; }
.signup-detailed button { min-height: 50px; white-space: nowrap; }

.stage-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.stage-chip-row button { padding: 8px 12px; border: 1px solid #b9c5d6; border-radius: 999px; background: white; color: #34435a; font: inherit; font-size: .75rem; font-weight: 600; cursor: pointer; }
.stage-chip-row button[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: white; }

.breadcrumb-trail { width: min(var(--max), calc(100% - 40px)); display: flex; flex-wrap: wrap; gap: 7px; align-items: center; margin: 0 auto 18px; color: #627087; font-size: .76rem; }
.breadcrumb-trail a { color: inherit; text-decoration: none; }
.breadcrumb-trail a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb-trail span[aria-current="page"] { color: var(--ink); font-weight: 600; }
.guide-hero .breadcrumb-trail, .city-page-hero .breadcrumb-trail { width: 100%; margin-bottom: 22px; }
.guide-hero .guide-breadcrumb, .city-page-hero .guide-breadcrumb { display: none; }
.page-next-step { padding: 0 0 clamp(56px,8vw,96px); }
.page-next-step-inner { width: min(var(--max), calc(100% - 40px)); display: flex; justify-content: space-between; gap: 30px; align-items: center; margin: auto; padding: clamp(25px,4vw,42px); border-radius: 20px; background: #e8eff9; }
.page-next-step h2 { max-width: 700px; margin: 6px 0 0; font-size: clamp(1.65rem,3vw,2.6rem); }
.page-next-step .button { flex: 0 0 auto; }

.global-search-button { display: inline-flex; gap: 7px; align-items: center; padding: 8px 10px; border: 1px solid #c0cad9; border-radius: 9px; background: rgba(255,255,255,.72); color: #445269; font-size: .76rem; font-weight: 600; cursor: pointer; }
.global-search-button kbd { padding: 1px 5px; border: 1px solid #ccd4df; border-radius: 4px; background: white; font: inherit; font-size: .65rem; }
.search-dialog { width: min(680px,calc(100% - 28px)); padding: 0; border: 0; border-radius: 18px; background: white; box-shadow: 0 30px 90px rgba(8,21,47,.28); }
.search-dialog::backdrop { background: rgba(3,12,29,.58); backdrop-filter: blur(4px); }
.search-dialog-head { display: flex; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.search-dialog-head input { flex: 1; min-width: 0; padding: 11px 12px; border: 0; outline: 0; font-size: 1rem; }
.search-dialog-head button { width: 40px; border: 0; border-radius: 9px; background: var(--paper); cursor: pointer; }
.search-results { max-height: 56vh; display: grid; gap: 4px; padding: 10px; overflow: auto; }
.search-results a { display: grid; gap: 2px; padding: 12px; border-radius: 10px; color: var(--ink); text-decoration: none; }
.search-results a:hover, .search-results a:focus { background: #eef3fb; outline: none; }
.search-results strong { font-size: .9rem; }
.search-results span { color: var(--muted); font-size: .75rem; }
.search-empty { padding: 28px; color: var(--muted); text-align: center; }

@media (max-width: 1060px) {
  .money-route-card { align-self: stretch; margin: 0 24px 24px; }
  .persona-paths { grid-template-columns: repeat(3,1fr); }
  .featured-workbench, .plan-alerts { grid-template-columns: 1fr; }
  .signup-detailed { grid-template-columns: 1fr 1fr; }
  .signup-detailed label, .signup-detailed input, .signup-detailed select, .signup-detailed button { grid-row: auto; }
  .signup-detailed label { display: none; }
  .signup-detailed input { grid-column: 1 / -1; }
}

@media (max-width: 820px) {
  .route-starter-layout, .route-starter-form { grid-template-columns: 1fr; }
  .local-privacy { grid-column: auto; }
  .route-result { min-height: 0; }
  .persona-paths { grid-template-columns: repeat(2,1fr); }
  .global-search-button { margin-left: auto; }
}

@media (max-width: 600px) {
  .hero-phase-one .hero-grid { padding-top: 0; }
  .hero-phase-one .hero-copy h1 { font-size: clamp(2.75rem,14vw,4.5rem); }
  .money-route-card { margin: 0 14px 14px; }
  .route-recommendations, .featured-guides, .persona-paths, .signup-detailed { grid-template-columns: 1fr; }
  .featured-guides .article-card:first-child { grid-row: auto; }
  .persona-paths a { min-height: 240px; }
  .signup-detailed input { grid-column: auto; }
  .page-next-step-inner { align-items: flex-start; flex-direction: column; }
  .page-next-step .button { width: 100%; text-align: center; }
  .global-search-button kbd { display: none; }
}

/* Editorial media and tactile feedback: shared by portal and portable edition. */
html { scroll-behavior: smooth; }
.article-figure { margin: 2.25rem 0; border-radius: 12px; overflow: hidden; background: var(--paper,#f7f7f4); border: 1px solid var(--line,#e2e8f0); box-shadow: 0 4px 20px -2px rgba(0,0,0,.05); }
.article-figure img { width: 100%; height: auto; aspect-ratio: 16/9; max-height: 480px; object-fit: cover; display: block; transition: transform .4s cubic-bezier(.16,1,.3,1); }
.article-figure:hover img { transform: scale(1.015); }
.article-figure figcaption { padding: .75rem 1.25rem; font-size: .85rem; line-height: 1.5; color: var(--muted,#64748b); background: var(--surface,#fff); border-top: 1px solid var(--line,#e2e8f0); display: flex; gap: 1rem; justify-content: space-between; align-items: center; }
.article-figure .source-credit { flex-shrink: 0; font-size: .72rem; letter-spacing: .02em; color: var(--muted,#64748b); }
.corridor-hero-banner { height: 240px; border-radius: 14px; position: relative; overflow: hidden; margin: 0 0 2rem; border: 1px solid var(--line,#e2e8f0); }
.country-hero-grid .corridor-hero-banner { grid-column: 1 / -1; width: 100%; margin-bottom: 0; }
.corridor-hero-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.corridor-hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg,rgba(11,19,30,.1),rgba(11,19,30,.82)); display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; padding: 1.5rem 2rem; color: #fff; }
.corridor-hero-overlay span { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; opacity: .9; }
.corridor-hero-overlay strong { font-size: clamp(1.4rem,3vw,2rem); }
.corridor-hero-overlay a { color: #fff; font-size: .72rem; opacity: .9; margin-top: .3rem; }
.pro-tip-box,.warning-box { padding: 1.15rem 1.35rem; margin: 1.75rem 0; border-radius: 0 10px 10px 0; font-size: .98rem; line-height: 1.65; }
.pro-tip-box { background: #f0fdf4; border-left: 4px solid #16a34a; color: #14532d; }
.warning-box { background: #fef2f2; border-left: 4px solid #dc2626; color: #7f1d1d; }
.article-body .pro-tip-box p,.article-body .warning-box p { margin: .45rem 0 0; color: inherit; }
.stat-highlight-strip { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--line,#e2e8f0); border-radius: 12px; margin: 2rem 0; overflow: hidden; background: var(--surface,#fff); }
.stat-highlight-strip div { padding: 1rem; display: flex; flex-direction: column; gap: .4rem; }
.stat-highlight-strip div + div { border-left: 1px solid var(--line,#e2e8f0); }
.stat-highlight-strip strong { font-size: clamp(1.25rem,3vw,1.8rem); font-variant-numeric: tabular-nums; color: var(--ink,#0f172a); }
.stat-highlight-strip span { color: var(--muted,#64748b); font-size: .8rem; line-height: 1.45; }
.comparison-table-wrapper { overflow-x: auto; overscroll-behavior-x: contain; max-width: 100%; margin: 1.5rem 0; }
.comparison-table-wrapper table { min-width: 580px; margin: 0; }
.comparison-table-wrapper:focus-visible { outline: 2px solid #0f766e; outline-offset: 4px; }
button:not(:disabled):active,.button:active,.nav-btn:active,.calculator-btn:active,.checklist-btn:active { transform: scale(.97); transition: transform .08s ease; }
#reading-progress-track { position: fixed; inset: 0 0 auto; height: 3px; background: rgba(100,116,139,.12); pointer-events: none; z-index: 1050; }
#reading-progress-bar { height: 100%; width: 0; background: #0f766e; transition: width .1s linear; }
#expat-toast { position: fixed; bottom: 24px; right: 24px; z-index: 9999; background: #0b131e; color: #fff; padding: 12px 18px; max-width: min(400px,calc(100vw - 32px)); border-radius: 10px; font-size: .9rem; line-height: 1.45; box-shadow: 0 10px 25px -5px rgba(0,0,0,.25); border: 1px solid rgba(255,255,255,.12); display: flex; gap: 10px; align-items: center; transform: translateY(24px); opacity: 0; pointer-events: none; transition: transform .2s ease,opacity .2s ease; }
#expat-toast.is-visible { transform: translateY(0); opacity: 1; }
[data-theme="dark"] .pro-tip-box { background: #102d25; color: #bbf7d0; }
[data-theme="dark"] .warning-box { background: #321e24; color: #fecaca; }
@media(max-width: 600px) { .article-figure figcaption { flex-direction: column; align-items: flex-start; gap: .4rem; } .corridor-hero-banner { height: 220px; } .corridor-hero-overlay { padding: 1.25rem; } .stat-highlight-strip div { padding: .8rem .6rem; } #expat-toast { right: 16px; bottom: 16px; } }
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .article-figure img,#reading-progress-bar,#expat-toast { transition: none; } .article-figure:hover img,button:not(:disabled):active,.button:active { transform: none; } }
@media print { #reading-progress-track,#expat-toast { display: none; } .article-figure img { max-height: 240px; } .pro-tip-box,.warning-box,.stat-highlight-strip { break-inside: avoid; } }
