:root {
  --navy: #071b35;
  --navy-2: #0b2949;
  --navy-3: #123b5c;
  --teal: #008f9d;
  --teal-bright: #00a4b4;
  --gold: #d4af37;
  --gold-dark: #9a761b;
  --ivory: #f7f6f1;
  --paper: #fffefa;
  --mist: #a7b5c3;
  --line: #ddd9cf;
  --ink: #142238;
  --muted: #657183;
  --danger: #9f3b3b;
  --success: #147c6f;
  --serif: Georgia, Cambria, "Times New Roman", serif;
  --sans: Aptos, "Segoe UI", Arial, sans-serif;
  --shadow: 0 24px 70px rgba(7, 27, 53, .14);
  --shell: min(1280px, calc(100% - 48px));
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ivory); font-family: var(--sans); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--navy); font-family: var(--serif); line-height: 1.08; font-weight: 500; }
h1 { font-size: clamp(2.8rem, 5.5vw, 5rem); letter-spacing: -.04em; }
h2 { font-size: clamp(2rem, 3.6vw, 3.3rem); letter-spacing: -.03em; }
h3 { font-size: 1.4rem; }
::selection { background: var(--gold); color: var(--navy); }
.shell { width: var(--shell); margin-inline: auto; }
.narrow { max-width: 800px; }
.center { text-align: center; }
.section { padding: 78px 0; }
.section-navy { background: var(--navy); color: #fff; }
.section-navy h2 { color: var(--ivory); }
.eyebrow { margin: 0 0 14px; color: var(--gold-dark); font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow.light { color: var(--gold); }
.lead { color: #38485b; font-family: var(--serif); font-size: clamp(1.18rem, 2vw, 1.48rem); line-height: 1.55; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 1000; transform: translateY(-160%); padding: 10px 18px; background: var(--gold); color: var(--navy); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

.fiction-banner { min-height: 26px; display: flex; align-items: center; justify-content: center; gap: 14px; padding: 4px 20px; background: #051427; color: #dce4eb; font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; }
.fiction-banner a { color: var(--gold); border-bottom: 1px solid rgba(212,175,55,.45); }
.site-header { position: relative; z-index: 100; height: 68px; background: rgba(247,246,241,.97); border-bottom: 1px solid rgba(7,27,53,.1); backdrop-filter: blur(14px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--navy); }
.brand img { color: var(--gold-dark); }
.brand strong { display: block; font-family: var(--serif); font-size: 1.33rem; line-height: 1; }
.brand small { display: block; margin-top: 3px; color: var(--muted); font-size: .57rem; letter-spacing: .15em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.site-nav a { position: relative; color: #27384c; font-size: .72rem; font-weight: 650; letter-spacing: .08em; text-transform: uppercase; }
.site-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -10px; height: 1px; background: var(--gold-dark); transition: right .25s ease; }
.site-nav a:hover::after, .site-nav a.is-active::after { right: 0; }
.language-picker { display:flex; align-items:center; margin:0; }
.language-picker label { display:flex; align-items:center; gap:5px; color:#27384c; }
.language-picker select { max-width:108px; border:0; background:transparent; color:inherit; font:650 .72rem/1.2 var(--sans); cursor:pointer; padding:5px 2px; }
.language-picker button { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0 0 0 0); white-space:nowrap; }
.header-cta { padding: 11px 18px; border: 1px solid var(--teal); color: var(--teal); font-size: .68rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.header-cta:hover { background: var(--teal); color: #fff; }
.nav-toggle { display: none; border: 0; background: none; padding: 10px; }
.nav-toggle > span:not(.sr-only) { display: block; width: 22px; height: 1px; margin: 5px 0; background: var(--navy); }

.button { min-height: 50px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 13px 22px; border: 1px solid transparent; border-radius: 2px; cursor: pointer; font-size: .72rem; font-weight: 760; letter-spacing: .07em; line-height: 1.3; text-transform: uppercase; transition: transform .2s ease, background .2s ease, color .2s ease, border-color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.button-teal { background: var(--teal); color: #fff; }
.button-teal:hover { background: #007b88; }
.button-gold { background: var(--gold); color: var(--navy); }
.button-gold:hover { background: #e0bd4d; }
.button-dark { background: var(--navy); color: #fff; }
.button-dark:hover { background: var(--navy-2); }
.button-outline-dark { border-color: rgba(7,27,53,.45); color: var(--navy); background: transparent; }
.button-outline-light { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.button-paypal { background: #ffc439; color: #112d61; }
.button-full { width: 100%; }
.button-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.center-row { justify-content: center; }
.text-link { display: inline-flex; gap: 12px; align-items: center; color: var(--navy); font-size: .75rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; border-bottom: 1px solid rgba(7,27,53,.28); padding-bottom: 5px; }
.text-link span { color: var(--teal); font-size: 1.15rem; }
.light-link { color: #fff; border-color: rgba(255,255,255,.35); }

.flash-stack { position: fixed; z-index: 500; top: 120px; right: 20px; width: min(420px, calc(100% - 40px)); }
.flash { margin-bottom: 10px; padding: 15px 18px; border-left: 4px solid var(--teal); background: #fff; box-shadow: var(--shadow); font-size: .88rem; }
.flash-error { border-color: var(--danger); }
.flash-success { border-color: var(--success); }

.hero { position: relative; min-height: min(760px, calc(100svh - 94px)); display: flex; align-items: center; overflow: hidden; color: #fff; background: var(--navy); }
.hero-media, .hero-media img, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: center; }
.hero-shade { background: linear-gradient(90deg, rgba(3,17,34,.88) 0%, rgba(3,17,34,.55) 42%, rgba(3,17,34,.08) 76%), linear-gradient(0deg, rgba(3,17,34,.58), transparent 40%); }
.hero-content { position: relative; z-index: 2; padding: 90px 0 180px; }
.hero h1 { max-width: 760px; margin: 0 0 8px; color: #fff; font-size: clamp(4.7rem, 10vw, 8.6rem); }
.hero-tagline { margin-bottom: 20px; font-family: var(--serif); font-size: clamp(1.5rem, 3vw, 2.4rem); }
.hero-copy { max-width: 580px; margin-bottom: 32px; color: #dce5eb; font-size: 1.03rem; }
.facts-bar { position: absolute; z-index: 3; left: 50%; bottom: 26px; transform: translateX(-50%); display: grid; grid-template-columns: repeat(5, 1fr); padding: 24px 14px; background: rgba(4,25,47,.9); border: 1px solid rgba(212,175,55,.26); backdrop-filter: blur(12px); }
.facts-bar div { min-width: 0; padding: 0 20px; border-right: 1px solid rgba(255,255,255,.16); }
.facts-bar div:last-child { border: 0; }
.facts-bar span { display: block; margin-bottom: 7px; color: var(--gold); font-size: .59rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.facts-bar strong { display: block; color: #fff; font-family: var(--serif); font-size: 1rem; font-weight: 500; }

.split-intro { display: grid; grid-template-columns: 1fr .95fr; gap: 90px; align-items: center; }
.section-copy h2 { margin-bottom: 28px; }
.section-copy > p:not(.eyebrow) { max-width: 650px; }
.flag-composition { position: relative; padding: 26px 26px 60px; background: #ece8df; }
.flag-large { width: 100%; box-shadow: 0 16px 38px rgba(7,27,53,.18); }
.flag-caption { position: absolute; right: 0; bottom: 0; width: 82%; display: flex; align-items: center; gap: 16px; padding: 20px 24px; background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.flag-caption strong, .flag-caption span { display: block; }
.flag-caption strong { font-family: var(--serif); font-size: 1.1rem; }
.flag-caption span { color: var(--mist); font-size: .68rem; letter-spacing: .06em; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-heading h2 { margin-bottom: 0; }
.city-grid { display: grid; grid-template-columns: 1.35fr 1fr 1fr; grid-template-rows: 250px 250px; gap: 12px; }
.city-card { position: relative; min-height: 250px; overflow: hidden; background: var(--navy-2); }
.city-card-featured { grid-row: span 2; }
.city-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s cubic-bezier(.2,.75,.2,1); }
.city-card:hover img { transform: scale(1.045); }
.city-overlay { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; padding: 68px 24px 22px; color: #fff; background: linear-gradient(transparent, rgba(3,17,34,.9)); }
.city-overlay small { color: var(--gold); font-size: .59rem; font-style: normal; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.city-overlay strong { font-family: var(--serif); font-size: 2rem; font-weight: 500; line-height: 1.1; }
.city-overlay em { margin-top: 4px; color: #d7e0e7; font-size: .72rem; font-style: normal; }
.city-card-featured .city-overlay strong { font-size: 3rem; }

.civic-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 80px; align-items: center; }
.civic-image { position: relative; }
.civic-image::before { content: ""; position: absolute; inset: -20px 40px 40px -20px; border: 1px solid var(--gold); z-index: -1; }
.civic-image img { width: 100%; min-height: 570px; object-fit: cover; }
.principles-list { margin: 32px 0; border-top: 1px solid var(--line); }
.principles-list > div { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.principles-list span { color: var(--gold-dark); font-size: .7rem; font-weight: 700; }
.principles-list p { margin: 0; color: var(--muted); font-size: .85rem; }
.principles-list strong { display: block; margin-bottom: 2px; color: var(--navy); font-family: var(--serif); font-size: 1.08rem; }
.news-preview { background: #efede6; }
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card { background: var(--paper); border-bottom: 2px solid transparent; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.news-card:hover { transform: translateY(-5px); border-color: var(--gold); box-shadow: 0 18px 45px rgba(7,27,53,.1); }
.news-card img { width: 100%; aspect-ratio: 16/10; object-fit: cover; }
.news-card-body { padding: 24px; }
.news-meta { display: inline-block; margin-bottom: 12px; color: var(--gold-dark); font-size: .65rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.news-card h2, .news-card h3 { margin-bottom: 12px; font-size: 1.42rem; }
.news-card p { margin: 0; color: var(--muted); font-size: .85rem; }
.read-more { display: inline-block; margin-top: 18px; color: var(--teal); font-size: .7rem; font-weight: 750; text-transform: uppercase; }
.support-section { padding: 66px 0; background: var(--navy); color: #fff; border-top: 1px solid rgba(212,175,55,.28); }
.support-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 34px; align-items: center; }
.support-inner > img { color: var(--gold); }
.support-inner h2 { margin-bottom: 10px; color: #fff; font-size: 2.7rem; }
.support-inner p:last-child { max-width: 680px; margin: 0; color: #bdc9d3; }

.page-hero { position: relative; height: 620px; display: flex; align-items: end; overflow: hidden; color: #fff; background: var(--navy); }
.page-hero picture, .page-hero picture img, .page-hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.page-hero img { object-fit: cover; }
.page-hero-shade { background: linear-gradient(0deg, rgba(3,17,34,.84), rgba(3,17,34,.08) 65%), linear-gradient(90deg, rgba(3,17,34,.4), transparent); }
.page-hero-content { position: relative; z-index: 2; padding-bottom: 74px; }
.page-hero h1 { margin-bottom: 12px; color: #fff; }
.page-hero p:last-child { max-width: 630px; margin: 0; color: #dce5eb; font-family: var(--serif); font-size: 1.3rem; }
.anchor-nav, .category-nav { background: var(--paper); border-bottom: 1px solid var(--line); }
.anchor-nav { position: sticky; top: 0; z-index: 50; }
.anchor-nav .shell, .category-nav .shell { display: flex; justify-content: center; gap: 34px; overflow-x: auto; scrollbar-width: none; }
.anchor-nav a, .category-nav a { padding: 18px 2px 14px; white-space: nowrap; color: var(--muted); font-size: .69rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; border-bottom: 2px solid transparent; }
.anchor-nav a:hover, .category-nav a:hover, .category-nav a.is-active { color: var(--navy); border-color: var(--teal); }
.country-intro { padding-bottom: 70px; }
.region-section { padding: 40px 0 120px; scroll-margin-top: 70px; }
.region-grid { display: grid; grid-template-columns: 1.18fr .82fr; gap: 80px; align-items: center; }
.region-reverse .region-image { order: 2; }
.region-image img { width: 100%; aspect-ratio: 16/11; object-fit: cover; box-shadow: var(--shadow); }
.region-copy { position: relative; }
.region-number { position: absolute; z-index: -1; top: -75px; right: 0; color: rgba(7,27,53,.055); font-family: var(--serif); font-size: 9rem; line-height: 1; }
.region-copy h2 { margin-bottom: 22px; font-size: clamp(3rem, 5vw, 5rem); }
.fact-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.fact-chips li { padding: 8px 13px; border: 1px solid var(--line); color: var(--muted); font-size: .68rem; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; }
.culture-section { background: #ebe8df; }
.culture-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 90px; }
.culture-points { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid #c8c3b8; border-left: 1px solid #c8c3b8; }
.culture-points article { min-height: 220px; padding: 28px; border-right: 1px solid #c8c3b8; border-bottom: 1px solid #c8c3b8; }
.culture-points span { color: var(--gold-dark); font-size: .7rem; }
.culture-points h3 { margin: 20px 0 8px; }
.culture-points p { color: var(--muted); font-size: .84rem; }
.government-section { padding: 110px 0; background: var(--navy); color: #d2dde5; scroll-margin-top: 60px; }
.government-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: center; }
.government-grid h2 { color: #fff; }
.government-grid > img { width: 100%; min-height: 700px; object-fit: cover; }
.institution-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin-top: 34px; background: rgba(255,255,255,.14); }
.institution-grid article { min-height: 150px; padding: 22px; background: var(--navy); }
.institution-grid span { color: var(--gold); font-size: 1.4rem; }
.institution-grid h3 { margin: 12px 0 6px; color: #fff; font-size: 1.15rem; }
.institution-grid p { margin: 0; color: #aebdca; font-size: .75rem; }
.flag-story-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.flag-story-grid > img { box-shadow: var(--shadow); }

.editorial-header { padding: 100px 0 64px; background: #efede6; border-bottom: 1px solid var(--line); }
.editorial-header h1 { margin-bottom: 22px; font-size: clamp(3.2rem, 7vw, 6.2rem); }
.editorial-header p:last-child { max-width: 650px; margin: 0 auto; color: var(--muted); font-family: var(--serif); font-size: 1.25rem; }
.category-nav .shell { justify-content: flex-start; }
.news-grid-full { grid-template-columns: repeat(3, 1fr); }
.empty-state { padding: 70px; text-align: center; }
.article-header { padding: 70px 0 48px; background: #efede6; }
.breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 35px; color: var(--muted); font-size: .7rem; }
.breadcrumbs a { color: var(--teal); }
.article-header h1 { margin-bottom: 22px; font-size: clamp(3rem, 6vw, 5.5rem); }
.article-image { margin-top: 52px; }
.article-image img { width: 100%; max-height: 680px; object-fit: cover; }
.article-body { max-width: 760px; padding: 64px 0 110px; }
.article-body > p { margin-bottom: 26px; color: #34465a; font-family: var(--serif); font-size: 1.18rem; line-height: 1.8; }
.fiction-note { display: flex; gap: 20px; align-items: center; margin: 50px 0; padding: 24px; border: 1px solid var(--line); background: #efede6; }
.fiction-note img { width: 54px; color: var(--gold-dark); }
.fiction-note p { margin: 0; color: var(--muted); font-size: .8rem; }
.fiction-note strong { display: block; color: var(--navy); }

.citizenship-page { min-height: calc(100vh - 108px); display: grid; grid-template-columns: minmax(390px, .85fr) minmax(620px, 1.15fr); background: var(--paper); }
.citizenship-aside { position: relative; min-height: 820px; display: flex; align-items: end; overflow: hidden; color: #fff; }
.aside-bg, .aside-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.aside-bg { object-fit: cover; }
.aside-shade { background: linear-gradient(0deg, rgba(3,17,34,.95), rgba(3,17,34,.28)); }
.aside-content { position: relative; z-index: 2; max-width: 580px; padding: 70px clamp(35px, 6vw, 80px); }
.aside-content img { margin-bottom: 30px; }
.aside-content h1 { color: #fff; font-size: clamp(2.9rem, 5vw, 5rem); }
.aside-content > p:not(.eyebrow) { color: #d2dce4; }
.aside-benefits { display: grid; gap: 8px; margin-top: 30px; color: #edf2f5; font-size: .8rem; }
.aside-benefits span::first-letter { color: var(--gold); }
.citizenship-form-wrap { width: min(760px, calc(100% - 60px)); margin: 0 auto; padding: 70px 0 90px; }
.form-heading { margin-bottom: 34px; text-align: center; }
.form-heading h2 { margin-bottom: 8px; }
.form-heading p:last-child { color: var(--muted); }
.citizenship-form { max-width: 650px; margin-inline: auto; }
.field { position: relative; margin-bottom: 18px; }
.field label { display: block; margin-bottom: 7px; color: #35475a; font-size: .68rem; font-weight: 750; letter-spacing: .07em; text-transform: uppercase; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #d5d4ce; border-radius: 2px; outline: none; background: #fff; color: var(--ink); padding: 13px 14px; transition: border-color .2s, box-shadow .2s; }
.field input { height: 50px; }
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--teal); box-shadow: 0 0 0 3px rgba(0,143,157,.1); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.upload-field { position: relative; margin: 4px 0 20px; }
.upload-field input { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.upload-preview { min-height: 150px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: 1px dashed #b6bcc3; background: #f8f8f5; color: var(--muted); text-align: center; overflow: hidden; }
.upload-preview img { width: 100%; height: 220px; object-fit: cover; }
.upload-preview strong { margin: 7px 0 2px; color: var(--navy); font-family: var(--serif); font-size: 1rem; }
.upload-preview small { font-size: .7rem; }
.upload-icon { color: var(--teal); font-size: 2rem; }
.field-hint { position: absolute; right: 9px; bottom: 7px; color: #8893a0; font-size: .64rem; }
.check-field { display: grid; grid-template-columns: 18px 1fr; gap: 10px; margin: 18px 0; color: #526173; font-size: .76rem; line-height: 1.5; cursor: pointer; }
.check-field input { width: 17px; height: 17px; accent-color: var(--teal); }
.check-required { padding: 15px; background: #f1efe8; }
.form-privacy { margin: 14px 0 0; color: #7e8997; font-size: .68rem; text-align: center; }
.honeypot { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.processing-overlay { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px; background: rgba(7,27,53,.94); }
.processing-overlay[hidden] { display: none; }
.processing-card { width: min(540px, 100%); padding: 55px; background: var(--ivory); text-align: center; box-shadow: 0 30px 100px rgba(0,0,0,.35); }
.processing-mark { width: 90px; margin: 0 auto 24px; color: var(--gold-dark); animation: rotate 7s linear infinite; }
.processing-card h2 { font-size: 2.3rem; }
.processing-card > p:last-child { color: var(--muted); font-size: .78rem; }
.progress-line { height: 3px; margin: 28px 0 18px; overflow: hidden; background: #d9d6cb; }
.progress-line span { display: block; width: 45%; height: 100%; background: var(--teal); animation: processing 1.6s ease-in-out infinite; }
@keyframes rotate { to { transform: rotate(360deg); } }
@keyframes processing { from { transform: translateX(-100%); } to { transform: translateX(270%); } }

.status-page { min-height: 750px; padding: 90px 0 110px; background: linear-gradient(160deg, #efede6 0%, #fffefa 100%); text-align: center; }
.status-shell { max-width: 930px; }
.status-mark { width: 78px; height: 78px; display: grid; place-items: center; margin: 0 auto 24px; border-radius: 50%; background: var(--gold); color: var(--navy); font-family: var(--serif); font-size: 2.5rem; }
.status-mark.approved { background: var(--teal); color: #fff; }
.status-mark.rejected { background: var(--danger); color: #fff; }
.status-page h1 { margin-bottom: 12px; font-size: clamp(3rem, 6vw, 5.2rem); }
.status-lead { color: var(--muted); }
.application-number { margin: 30px auto 44px; }
.application-number span { display: block; color: var(--muted); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.application-number strong { font-family: var(--serif); font-size: 1.35rem; }
.status-steps { display: grid; grid-template-columns: auto 1fr auto 1fr auto 1fr auto; align-items: start; max-width: 800px; margin: auto; }
.status-steps > div { width: 120px; color: #8b949f; }
.status-steps > div > span { width: 36px; height: 36px; display: grid; place-items: center; margin: auto; border: 1px solid #aab2ba; border-radius: 50%; background: var(--ivory); font-size: .7rem; }
.status-steps > div.done > span { border-color: var(--teal); background: var(--teal); color: #fff; }
.status-steps p { margin-top: 9px; font-size: .63rem; line-height: 1.25; }
.status-steps i { height: 1px; margin-top: 18px; background: #c3c8cd; }
.welcome-card { max-width: 700px; display: grid; grid-template-columns: 1fr 1fr; margin: 52px auto 26px; border: 1px solid var(--gold); background: #fff; }
.welcome-card > div { padding: 26px; }
.welcome-card > div + div { border-left: 1px solid var(--line); }
.welcome-card span { color: var(--gold-dark); font-size: .65rem; letter-spacing: .1em; text-transform: uppercase; }
.welcome-card h2 { margin: 5px 0 3px; font-size: 2rem; }
.welcome-card p { margin: 0; color: var(--muted); font-size: .72rem; }
.private-reminder { max-width: 650px; margin: 35px auto 0; color: #7d8793; font-size: .68rem; }

.profile-hero { position: relative; overflow: hidden; padding: 82px 0; background: var(--navy); color: #fff; }
.profile-grid { position: relative; display: grid; grid-template-columns: 260px 1fr; gap: 50px; align-items: center; }
.profile-photo-wrap { position: relative; }
.profile-photo-wrap > img { width: 260px; aspect-ratio: 1; object-fit: cover; border: 5px solid rgba(255,255,255,.12); }
.verified-badge { position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%); width: max-content; padding: 7px 12px; background: var(--teal); color: #fff; font-size: .61rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.profile-info { position: relative; z-index: 2; }
.profile-info h1 { margin-bottom: 5px; color: #fff; font-size: clamp(3rem, 6vw, 5.5rem); }
.profile-subtitle { color: var(--gold); font-family: var(--serif); font-size: 1.1rem; }
.profile-data { display: grid; grid-template-columns: repeat(2, minmax(180px, 260px)); gap: 0; margin: 30px 0; border-top: 1px solid rgba(255,255,255,.18); }
.profile-data div { padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.profile-data dt { color: var(--mist); font-size: .62rem; letter-spacing: .1em; text-transform: uppercase; }
.profile-data dd { margin: 3px 0 0; font-family: var(--serif); font-size: 1.08rem; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.profile-compass { position: absolute; right: -60px; top: 50%; width: 330px; transform: translateY(-50%); opacity: .18; }
.profile-content-grid { display: grid; grid-template-columns: .7fr 1.3fr; gap: 80px; align-items: center; }
.citizen-card-preview { width: min(430px, 100%); justify-self: center; box-shadow: 0 26px 60px rgba(7,27,53,.24); transition: transform .25s ease; }
.citizen-card-preview:hover { transform: translateY(-7px) rotate(.5deg); }
.pack-section { padding: 100px 0; background: var(--navy); color: #fff; }
.pack-heading { max-width: 720px; margin: 0 auto 45px; text-align: center; }
.pack-heading h2 { color: #fff; }
.pack-heading p:last-child { color: #bac8d3; }
.pack-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 950px; margin: auto; }
.pack-card { position: relative; padding: 38px; background: #0d2a49; border: 1px solid rgba(255,255,255,.14); }
.pack-card.pack-featured { border-color: var(--gold); }
.pack-label { color: var(--gold); font-size: .66rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.pack-card h3 { min-height: 54px; margin: 10px 0 22px; color: #fff; font-size: 1.7rem; }
.pack-price { display: flex; align-items: end; gap: 8px; padding-bottom: 22px; border-bottom: 1px solid rgba(255,255,255,.14); }
.pack-price strong { font-family: var(--serif); font-size: 2.8rem; line-height: 1; }
.pack-price span { color: var(--mist); font-size: .65rem; }
.pack-card ul { min-height: 150px; margin: 25px 0; padding: 0; list-style: none; }
.pack-card li { margin: 10px 0; color: #d5dfe6; font-size: .8rem; }
.pack-card li::before { content: "✓"; margin-right: 8px; color: var(--teal-bright); }
.payment-buttons { display: grid; gap: 8px; }
.limited-badge { position: absolute; top: 0; right: 0; padding: 7px 12px; background: var(--gold); color: var(--navy); font-size: .56rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.collectible-warning { margin: 30px 0 0; color: #8296a7; font-size: .61rem; letter-spacing: .16em; text-align: center; }
.configuration-note { max-width: 740px; margin: 30px auto 0; padding: 18px; border: 1px solid rgba(212,175,55,.4); text-align: center; }
.configuration-note p { margin: 4px 0 0; color: #b7c5cf; font-size: .76rem; }
.documents-section { padding: 90px 0; background: #ebe8df; }
.documents-grid { display: grid; grid-template-columns: 1fr .72fr .72fr; gap: 20px; align-items: stretch; }
.document-tile { display: flex; flex-direction: column; justify-content: space-between; min-height: 230px; padding: 28px; background: var(--paper); border-top: 3px solid var(--gold); box-shadow: 0 14px 35px rgba(7,27,53,.08); }
.document-tile span { color: var(--gold-dark); font-size: .65rem; font-weight: 750; letter-spacing: .12em; }
.document-tile strong { font-family: var(--serif); font-size: 1.45rem; }
.document-tile em { color: var(--teal); font-size: .7rem; font-style: normal; font-weight: 700; text-transform: uppercase; }
.privacy-panel { padding: 65px 0; background: #fff; border-top: 1px solid var(--line); }
.privacy-inner { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.privacy-inner h2 { margin-bottom: 8px; font-size: 2.3rem; }
.privacy-inner p { margin: 0; color: var(--muted); }
.privacy-inner form { display: flex; align-items: center; gap: 18px; }
.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; }
.toggle span { position: relative; width: 48px; height: 26px; border-radius: 20px; background: #bdc4ca; transition: background .2s; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .2s; }
.toggle input:checked + span { background: var(--teal); }
.toggle input:checked + span::after { transform: translateX(22px); }
.toggle em { font-size: .73rem; font-style: normal; font-weight: 700; }

.legal-grid { display: grid; grid-template-columns: 250px 1fr; gap: 80px; }
.legal-grid aside { position: sticky; top: 30px; align-self: start; display: grid; border-top: 1px solid var(--line); }
.legal-grid aside a { padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .72rem; }
.legal-copy section { margin-bottom: 65px; scroll-margin-top: 40px; }
.legal-copy h2 { font-size: 2.5rem; }
.legal-copy p { color: #405166; font-family: var(--serif); font-size: 1.08rem; }
.legal-copy a { color: var(--teal); text-decoration: underline; }
.legal-warning { margin: 25px 0; padding: 20px; border: 1px solid var(--gold); color: var(--danger); font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-align: center; }

.admin-page { background: #eef1f3; }
.admin-login { min-height: calc(100vh - 108px); display: grid; place-items: center; padding: 60px 20px; background: var(--navy); }
.admin-login-card { width: min(470px, 100%); padding: 48px; background: var(--ivory); box-shadow: 0 30px 90px rgba(0,0,0,.25); text-align: center; }
.admin-login-card > img { margin: 0 auto 22px; }
.admin-login-card h1 { margin-bottom: 25px; font-size: 3rem; }
.admin-login-card form { text-align: left; }
.admin-login-card > .text-link { margin-top: 25px; }
.setup-alert { margin-bottom: 22px; padding: 15px; background: #fff2d4; color: #6d5414; text-align: left; font-size: .74rem; }
.setup-alert p { margin: 5px 0 0; }
.setup-alert code { overflow-wrap: anywhere; }
.admin-shell { padding: 65px 0 110px; }
.admin-header { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 36px; }
.admin-header h1 { margin-bottom: 8px; font-size: 3.2rem; }
.admin-header p:last-child { margin: 0; color: var(--muted); }
.admin-actions { display: flex; align-items: center; gap: 18px; }
.text-button { border: 0; background: none; color: var(--teal); cursor: pointer; font-size: .7rem; font-weight: 700; text-transform: uppercase; }
.metrics-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-bottom: 32px; }
.metrics-grid article { min-height: 145px; padding: 22px; background: #fff; border-top: 3px solid var(--teal); }
.metrics-grid span { color: var(--muted); font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.metrics-grid strong { display: block; margin-top: 14px; color: var(--navy); font-family: var(--serif); font-size: 2.1rem; font-weight: 500; }
.metrics-grid small { color: var(--gold-dark); font-size: .63rem; }
.admin-tabs { position: sticky; top: 0; z-index: 30; display: flex; gap: 3px; margin-bottom: 20px; padding: 8px 8px 0; background: var(--navy); color: #fff; overflow-x: auto; scrollbar-width: thin; }
.admin-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 13px 17px; border-bottom: 2px solid transparent; color: #a9bccd; font-size: .67rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.admin-tabs a:hover { color: #fff; }
.admin-tabs a.is-active { background: rgba(255,255,255,.08); border-bottom-color: var(--gold); color: #fff; }
.admin-tabs a:focus-visible { outline: 2px solid var(--gold); outline-offset: -3px; }
.admin-tabs b { padding: 2px 7px; border-radius: 20px; background: rgba(255,255,255,.15); font-size: .6rem; font-weight: 750; letter-spacing: .02em; }
.admin-tabs a.is-active b { background: var(--gold); color: var(--navy); }
.admin-section { margin: 0 0 32px; padding: 28px; background: #fff; scroll-margin-top: 60px; }
.admin-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 10px 30px; margin-bottom: 22px; }
.admin-section-head h2 { margin: 0; font-size: 2rem; }
.admin-section-head .muted { max-width: 42em; margin: 0; font-size: .74rem; }
.breakdown-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.breakdown { padding: 20px 22px; background: #f5f7f8; }
.breakdown h3 { margin: 0 0 15px; color: var(--muted); font-family: var(--sans); font-size: .62rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.breakdown-row { display: grid; grid-template-columns: minmax(84px, auto) 1fr auto; align-items: center; gap: 12px; margin-bottom: 10px; font-size: .73rem; }
.breakdown-row i { height: 6px; border-radius: 3px; background: #dee4e8; }
.breakdown-row i::before { content: ""; display: block; width: 100%; height: 100%; border-radius: 3px; background: var(--teal); }
.breakdown-row[data-fill="5"] i::before { width: 5%; } .breakdown-row[data-fill="10"] i::before { width: 10%; } .breakdown-row[data-fill="15"] i::before { width: 15%; } .breakdown-row[data-fill="20"] i::before { width: 20%; } .breakdown-row[data-fill="25"] i::before { width: 25%; } .breakdown-row[data-fill="30"] i::before { width: 30%; } .breakdown-row[data-fill="35"] i::before { width: 35%; } .breakdown-row[data-fill="40"] i::before { width: 40%; } .breakdown-row[data-fill="45"] i::before { width: 45%; } .breakdown-row[data-fill="50"] i::before { width: 50%; } .breakdown-row[data-fill="55"] i::before { width: 55%; } .breakdown-row[data-fill="60"] i::before { width: 60%; } .breakdown-row[data-fill="65"] i::before { width: 65%; } .breakdown-row[data-fill="70"] i::before { width: 70%; } .breakdown-row[data-fill="75"] i::before { width: 75%; } .breakdown-row[data-fill="80"] i::before { width: 80%; } .breakdown-row[data-fill="85"] i::before { width: 85%; } .breakdown-row[data-fill="90"] i::before { width: 90%; } .breakdown-row[data-fill="95"] i::before { width: 95%; } .breakdown-row[data-fill="100"] i::before { width: 100%; }
.breakdown-row b { color: var(--navy); font-family: var(--serif); font-size: 1.05rem; font-weight: 500; }
.table-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 16px; }
.table-filter label { color: var(--muted); font-size: .62rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.table-filter input { flex: 1; min-width: 180px; max-width: 340px; padding: 9px 12px; border: 1px solid var(--line); background: #fff; color: inherit; font: inherit; font-size: .78rem; }
.table-filter input:focus-visible { outline: 2px solid var(--teal); outline-offset: 1px; }
.table-filter [data-filter-count] { color: var(--muted); font-size: .66rem; }
.table-wrap { overflow-x: auto; }
.admin-section th, .admin-section td { white-space: nowrap; }
.admin-section .table-wrap table { min-width: max-content; }
.admin-section .cell-wrap { max-width: 230px; white-space: normal; overflow-wrap: anywhere; }
.admin-section td small { max-width: 30ch; overflow: hidden; text-overflow: ellipsis; }
.admin-section td .record-link small { color: var(--muted); font-size: .64rem; }
.admin-section tr[hidden] { display: none; }
.country-tag { display: inline-flex; align-items: center; gap: 7px; }
.country-tag .flag { flex-shrink: 0; border: 1px solid rgba(7,27,53,.16); object-fit: cover; }
.country-tag small { color: var(--muted); font-size: .58rem; letter-spacing: .06em; }
.record-link { display: block; color: inherit; }
.record-link:hover strong { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.small-button.view { display: inline-block; background: #e2e8eb; color: #26516b; text-decoration: none; }
.small-button.view:hover { background: var(--navy); color: #fff; }
.resident-file { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; align-items: start; }
.resident-file-card { position: sticky; top: 20px; padding: 24px; background: #fff; border-top: 3px solid var(--teal); text-align: center; }
.resident-file-card img { width: 100%; max-width: 230px; aspect-ratio: 1; object-fit: cover; margin-bottom: 18px; background: #e6ebee; }
.resident-file-card strong { display: block; font-family: var(--serif); font-size: 1.5rem; line-height: 1.2; }
.resident-file-card > span { display: block; margin-top: 6px; color: var(--muted); font-family: monospace; font-size: .72rem; letter-spacing: .08em; }
.resident-file-card .country-tag { justify-content: center; margin: 14px 0 0; font-size: .85rem; }
.resident-file-card small { display: block; margin-top: 10px; color: var(--gold-dark); font-size: .63rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.resident-file-data .admin-section { margin-bottom: 20px; }
.fact-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; background: #eceff1; }
.fact-list > div { padding: 12px 15px; background: #fff; }
.fact-list > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.fact-list dt { color: var(--muted); font-size: .6rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.fact-list dd { margin: 5px 0 0; font-size: .85rem; overflow-wrap: anywhere; }
.plain-list { margin: 12px 0 0; padding-left: 18px; font-size: .82rem; }
.plain-list small { color: var(--muted); }
.settings-form { max-width: 720px; }
.settings-form fieldset { margin: 0 0 26px; padding: 22px 24px; border: 1px solid var(--line); background: #fbfbfa; }
.settings-form legend { padding: 0 8px; color: var(--navy); font-family: var(--serif); font-size: 1.15rem; }
.settings-form .field { margin-bottom: 16px; }
.settings-form .check-field { margin-bottom: 16px; }
.settings-note { margin: 0 0 14px; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.settings-note code, .settings-state code { padding: 1px 5px; background: #e9edef; font-size: .9em; overflow-wrap: anywhere; }
.settings-state { margin: 0 0 14px; padding: 10px 14px; font-size: .78rem; }
.settings-state.is-ok { background: #d8eee9; color: #10635a; }
.settings-state.is-off { background: #f4ead0; color: #7a6118; }
.button-danger { background: var(--danger); color: #fff; border-color: var(--danger); }
.button-danger:hover { background: #872f2f; color: #fff; }
.danger-zone { border-left: 3px solid var(--danger); }
.danger-zone h2 { color: var(--danger); }
.danger-zone .eyebrow { color: var(--danger); }
.danger-zone p { max-width: 62ch; font-size: .85rem; }
.confirm-modal { position: fixed; inset: 0; z-index: 200; display: none; place-items: center; padding: 20px; background: rgba(7,27,53,.62); }
.confirm-modal:target, .confirm-modal.is-open { display: grid; }
.confirm-modal[hidden] { display: none; }
.confirm-card { width: min(460px, 100%); padding: 32px; background: var(--paper); box-shadow: 0 30px 90px rgba(0,0,0,.32); }
.confirm-card h2 { margin: 0 0 12px; font-size: 1.8rem; line-height: 1.2; overflow-wrap: anywhere; }
.confirm-card p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.65; }
.confirm-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; margin-top: 26px; }
.confirm-actions .button { min-height: 44px; }
body.is-modal-open { overflow: hidden; }
table { width: 100%; border-collapse: collapse; }
th { padding: 10px 12px; color: var(--muted); font-size: .6rem; letter-spacing: .08em; text-align: left; text-transform: uppercase; border-bottom: 1px solid var(--line); }
td { padding: 13px 12px; font-size: .73rem; border-bottom: 1px solid #edece8; vertical-align: middle; }
td small { display: block; color: var(--muted); }
.status-pill { display: inline-block; padding: 4px 8px; border-radius: 20px; background: #e2e8eb; color: #4f606f; font-size: .58rem; font-weight: 750; text-transform: uppercase; }
.status-approved, .status-paid { background: #d8eee9; color: #116a60; }
.status-rejected, .status-failed { background: #f3dede; color: #8d3030; }
.status-pending { background: #f4ead0; color: #856819; }
.inline-actions { display: flex; gap: 5px; }
.small-button { border: 0; padding: 5px 8px; cursor: pointer; font-size: .59rem; font-weight: 700; text-transform: uppercase; }
.small-button.approve { background: #d8eee9; color: #116a60; }
.small-button.reject { background: #f3dede; color: #8d3030; }
.muted { color: var(--muted); }
.news-editor { max-width: 900px; padding-bottom: 35px; border-bottom: 1px solid var(--line); }
.article-admin-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.article-admin-list article { padding: 15px; background: #f4f3ef; }
.article-admin-list span, .article-admin-list small { display: block; color: var(--muted); font-size: .62rem; }
.article-admin-list strong { display: block; margin: 4px 0; font-family: var(--serif); }

.error-page { min-height: 650px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 80px 20px; text-align: center; }
.error-page img { margin-bottom: 25px; color: var(--gold-dark); }
.error-page h1 { margin-bottom: 15px; font-size: clamp(3rem, 6vw, 5rem); }
.error-page p:not(.eyebrow) { max-width: 560px; color: var(--muted); }

.site-footer { padding: 70px 0 22px; background: #051427; color: #d2dce4; }
.footer-grid { display: grid; grid-template-columns: 1.35fr .65fr .65fr 1.1fr; gap: 50px; }
.footer-brand { display: flex; gap: 17px; align-items: center; }
.footer-brand strong { display: block; color: #fff; font-family: var(--serif); font-size: 1.35rem; }
.footer-brand p { margin: 2px 0 0; color: var(--gold); font-family: var(--serif); }
.site-footer h2 { margin-bottom: 13px; color: var(--gold); font-family: var(--sans); font-size: .65rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; }
.site-footer > .footer-grid > div:not(.footer-brand) a { display: block; margin: 8px 0; color: #c7d1d9; font-size: .76rem; }
.footer-note p { color: #91a2b0; font-size: .7rem; }
.footer-bottom { display: flex; justify-content: space-between; margin-top: 48px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.13); color: #718494; font-size: .62rem; }

@media (max-width: 1050px) {
  :root { --shell: min(100% - 32px, 940px); }
  .site-nav { gap: 18px; }
  .header-cta { display: none; }
  .facts-bar div { padding: 0 12px; }
  .split-intro, .civic-grid, .region-grid, .government-grid, .flag-story-grid { gap: 45px; }
  .city-grid { grid-template-columns: 1.2fr 1fr; grid-template-rows: repeat(3, 230px); }
  .city-card-featured { grid-row: span 2; }
  .city-card:last-child { grid-column: 1 / -1; }
  .citizenship-page { grid-template-columns: .75fr 1.25fr; }
  .citizenship-form-wrap { width: calc(100% - 40px); }
  .aside-content { padding: 48px 35px; }
  .profile-compass { opacity: .09; }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.2fr .8fr .8fr; }
  .footer-note { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  body { font-size: 15px; }
  .section { padding: 64px 0; }
  .site-header { height: 68px; }
  .nav-toggle { display: block; margin-left: auto; }
  .site-nav { position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 14px 20px 25px; background: var(--ivory); border-bottom: 1px solid var(--line); box-shadow: 0 18px 35px rgba(7,27,53,.15); }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 14px 3px; border-bottom: 1px solid var(--line); }
  .language-picker { padding:12px 3px 0; }
  .language-picker select { max-width:none; font-size:.82rem; }
  .site-nav a::after { display: none; }
  .hero { min-height: 720px; align-items: end; }
  .hero-media img { object-position: 58% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(3,17,34,.95), rgba(3,17,34,.12) 80%); }
  .hero-content { padding: 70px 0 230px; }
  .hero h1 { font-size: clamp(3.7rem, 17vw, 5.4rem); }
  .hero-copy { font-size: .92rem; }
  .facts-bar { bottom: 18px; grid-template-columns: repeat(2, 1fr); padding: 10px; }
  .facts-bar div { padding: 11px 10px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.13); }
  .facts-bar div:nth-child(odd) { border-right: 1px solid rgba(255,255,255,.13); }
  .facts-bar div:last-child { grid-column: 1 / -1; text-align: center; border-bottom: 0; }
  .facts-bar strong { font-size: .88rem; }
  .split-intro, .civic-grid, .culture-grid, .government-grid, .flag-story-grid, .profile-content-grid, .documents-grid, .legal-grid { grid-template-columns: 1fr; }
  .split-intro, .civic-grid, .culture-grid, .government-grid, .flag-story-grid, .profile-content-grid { gap: 45px; }
  .section-heading { align-items: start; flex-direction: column; }
  .city-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 220px); }
  .city-card-featured { grid-row: auto; grid-column: 1 / -1; }
  .city-card:last-child { grid-column: 1 / -1; }
  .civic-image img { min-height: 420px; }
  .support-inner { grid-template-columns: auto 1fr; }
  .support-inner .button { grid-column: 1 / -1; }
  .page-hero { height: 520px; }
  .anchor-nav .shell { justify-content: flex-start; }
  .region-grid { grid-template-columns: 1fr; gap: 34px; }
  .region-reverse .region-image { order: 0; }
  .region-section { padding-bottom: 82px; }
  .region-number { top: -30px; font-size: 6rem; }
  .government-grid > img { min-height: 460px; }
  .news-grid, .news-grid-full { grid-template-columns: 1fr 1fr; }
  .citizenship-page { grid-template-columns: 1fr; }
  .citizenship-aside { min-height: 470px; }
  .citizenship-form-wrap { width: min(650px, calc(100% - 34px)); padding: 45px 0 60px; }
  .status-steps { grid-template-columns: 1fr 1fr; gap: 18px; }
  .status-steps i { display: none; }
  .status-steps > div { width: auto; }
  .profile-grid { grid-template-columns: 190px 1fr; gap: 30px; }
  .profile-photo-wrap > img { width: 190px; }
  .profile-compass { width: 260px; }
  .pack-grid { grid-template-columns: 1fr; max-width: 570px; }
  .pack-card h3, .pack-card ul { min-height: 0; }
  .documents-grid > div { margin-bottom: 10px; }
  .privacy-inner { grid-template-columns: 1fr; }
  .privacy-inner form { flex-wrap: wrap; }
  .legal-grid aside { position: static; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .article-admin-list { grid-template-columns: 1fr 1fr; }
  .breakdown-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand, .footer-note { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  :root { --shell: calc(100% - 28px); }
  .section { padding: 56px 0; }
  .fiction-banner { justify-content: flex-start; overflow-x: auto; white-space: nowrap; }
  .fiction-banner span { display: none; }
  .brand small { display: none; }
  .hero { min-height: 700px; }
  .hero-content { padding: 55px 0 225px; }
  .hero .button-row { align-items: stretch; flex-direction: column; }
  .hero .button { width: 100%; }
  .facts-bar { width: calc(100% - 28px); }
  .split-intro { gap: 55px; }
  .flag-composition { padding: 12px 12px 70px; }
  .flag-caption { width: 92%; }
  .city-grid { grid-template-columns: 1fr; grid-template-rows: repeat(5, 260px); }
  .city-card, .city-card-featured, .city-card:last-child { grid-column: auto; }
  .city-card-featured .city-overlay strong { font-size: 2rem; }
  .civic-image img { min-height: 350px; }
  .support-inner { grid-template-columns: 1fr; text-align: center; }
  .support-inner > img { margin: auto; }
  .support-inner h2 { font-size: 2.2rem; }
  .anchor-nav .shell { gap: 20px; }
  .culture-points, .institution-grid { grid-template-columns: 1fr; }
  .culture-points article { min-height: auto; }
  .news-grid, .news-grid-full { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .citizenship-aside { min-height: 420px; }
  .aside-content { padding: 35px 24px; }
  .processing-card { padding: 40px 24px; }
  .welcome-card { grid-template-columns: 1fr; }
  .welcome-card > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .status-page { padding-top: 65px; }
  .status-steps { grid-template-columns: 1fr; }
  .profile-hero { padding-top: 55px; }
  .profile-grid { grid-template-columns: 1fr; text-align: center; }
  .profile-photo-wrap { width: 200px; margin: auto; }
  .profile-photo-wrap > img { width: 200px; }
  .profile-data { grid-template-columns: 1fr 1fr; text-align: left; }
  .profile-actions { justify-content: center; }
  .profile-compass { display: none; }
  .pack-card { padding: 30px 22px; }
  .privacy-inner form { align-items: stretch; flex-direction: column; }
  .admin-login-card { padding: 35px 24px; }
  .admin-header { align-items: start; flex-direction: column; }
  .admin-actions { align-items: start; flex-direction: column; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metrics-grid article { min-height: 120px; padding: 17px; }
  .metrics-grid strong { font-size: 1.7rem; }
  .admin-section { padding: 20px 14px; }
  .admin-tabs { padding-inline: 4px; }
  .resident-file { grid-template-columns: 1fr; }
  .resident-file-card { position: static; }
  .fact-list { grid-template-columns: 1fr; }
  .confirm-card { padding: 24px 20px; }
  .confirm-actions { flex-direction: column-reverse; align-items: stretch; }
  .confirm-actions form, .confirm-actions .button { width: 100%; }
  .admin-tabs a { padding: 12px 13px; }
  .breakdown { padding: 16px; }
  .article-admin-list { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-note { grid-column: auto; }
  .footer-bottom { align-items: start; flex-direction: column; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Residence-first product experience */
.home-hero-new .hero-content { padding-top: 54px; }
.home-hero-new h1 { max-width: 760px; font-size: clamp(3.9rem, 7.2vw, 6.8rem); line-height: .9; }
.hero-fineprint { max-width: 600px; margin: 18px 0 0; color: #b9c6d1; font-size: .65rem; letter-spacing: .04em; }
.facts-bar-new { grid-template-columns: repeat(4, 1fr); }
.facts-bar-new strong { font-size: 1.08rem; }
.identity-path-section { padding: 78px 0; background: #ebe8df; }
.identity-path-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: center; }
.identity-step { min-height: 430px; padding: 38px; background: var(--paper); border-top: 4px solid var(--teal); box-shadow: 0 18px 45px rgba(7,27,53,.08); }
.identity-step.is-citizen { color: #d8e1e8; background: var(--navy); border-color: var(--gold); }
.identity-step > span { color: var(--gold-dark); font-size: .67rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.identity-step.is-citizen > span { color: var(--gold); }
.identity-step h2 { margin: 16px 0; font-size: clamp(2.4rem, 3.6vw, 3.5rem); }
.identity-step.is-citizen h2 { color: #fff; }
.identity-step p { min-height: 84px; color: var(--muted); }
.identity-step.is-citizen p { color: #b8c6d2; }
.identity-step ul { min-height: 112px; margin: 22px 0; padding: 16px 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.identity-step.is-citizen ul { border-color: rgba(255,255,255,.15); }
.identity-step li { margin: 8px 0; font-size: .82rem; }
.identity-step li::before { content: "✓"; margin-right: 10px; color: var(--teal); }
.identity-path-arrow { color: var(--gold-dark); font-family: var(--serif); font-size: 3rem; }
.section-side-copy { max-width: 310px; margin: 0; color: var(--muted); font-size: .8rem; text-align: right; }
.section-side-copy strong { color: var(--teal); }
.region-social-grid { display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: 240px 240px; gap: 12px; }
.region-social-card { position: relative; grid-column: span 2; overflow: hidden; background: var(--navy); }
.region-social-card:first-child, .region-social-card:nth-child(2) { grid-column: span 3; }
.region-social-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.region-social-card:hover img { transform: scale(1.04); }
.region-social-card > span { position: absolute; inset: auto 0 0; padding: 70px 24px 22px; color: #fff; background: linear-gradient(transparent, rgba(3,17,34,.95)); }
.region-social-card small, .region-social-card strong, .region-social-card em, .region-social-card b { display: block; }
.region-social-card small { color: var(--gold); font-size: .58rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.region-social-card strong { font-family: var(--serif); font-size: 2rem; font-weight: 500; line-height: 1.15; }
.region-social-card em { color: #d5e0e7; font-size: .7rem; font-style: normal; }
.region-social-card b { margin-top: 6px; color: #a8bdca; font-size: .62rem; font-weight: 500; }
.region-social-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 24px; }
.region-social-footer p { margin: 0; color: var(--muted); font-family: var(--serif); font-size: 1.2rem; }
.citizenship-home-section { overflow: hidden; padding: 88px 0; background: var(--navy); color: #d7e1e8; }
.citizenship-home-grid { display: grid; grid-template-columns: 1fr .9fr; gap: 90px; align-items: center; }
.home-passport-stack { position: relative; min-height: 470px; }
.home-passport-cover { width: min(370px, 76%); min-height: 465px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 34px; background: #092640; border: 2px solid var(--gold); box-shadow: 0 35px 80px rgba(0,0,0,.35); transform: rotate(-4deg); text-align: center; }
.home-passport-cover::after { content: ""; position: absolute; inset: 17px; border: 1px solid rgba(212,175,55,.45); pointer-events: none; }
.home-passport-cover img { width: 105px; margin-bottom: 32px; }
.home-passport-cover small { color: var(--gold); font-size: .65rem; letter-spacing: .18em; text-transform: uppercase; }
.home-passport-cover strong { margin-top: 18px; color: #fff; font-family: var(--serif); font-size: 2.4rem; font-weight: 500; }
.home-passport-cover span { margin-top: 42px; color: #9db0bf; font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; }
.home-citizen-card { position: absolute; right: 0; bottom: 30px; width: 58%; min-height: 220px; padding: 32px; background: var(--ivory); color: var(--navy); border-bottom: 5px solid var(--teal); box-shadow: var(--shadow); transform: rotate(5deg); }
.home-citizen-card img { width: 52px; margin-left: auto; }
.home-citizen-card span, .home-citizen-card small { display: block; color: var(--muted); font-size: .63rem; letter-spacing: .1em; text-transform: uppercase; }
.home-citizen-card strong { display: block; margin: 18px 0 5px; font-family: var(--serif); font-size: 2rem; }
.citizenship-home-section h2 { color: #fff; }
.citizenship-home-section .lead { color: #c0cdd6; }
.citizenship-home-features { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 32px 0; padding: 24px 0; border-top: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); font-size: .76rem; }
.citizenship-home-features span::first-letter { color: var(--teal-bright); }
.citizenship-home-price { display: flex; align-items: end; gap: 10px; margin-bottom: 26px; }
.citizenship-home-price strong { color: #fff; font-family: var(--serif); font-size: 3rem; line-height: 1; }
.citizenship-home-price span { color: var(--mist); font-size: .68rem; }
.citizenship-home-section .section-copy > small { display: block; margin-top: 15px; color: #879baa; font-size: .64rem; }
.profile-story-section { background: #f2f0ea; }
.profile-story-grid { display: grid; grid-template-columns: 1fr .8fr; gap: 90px; align-items: center; }
.profile-levels { margin-top: 38px; border-top: 1px solid var(--line); }
.profile-levels > div { display: grid; grid-template-columns: 42px 1fr; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.profile-levels > div > span { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #a8b0b8; color: var(--muted); font-size: .65rem; }
.profile-levels > div.done > span { border-color: var(--teal); background: var(--teal); color: #fff; }
.profile-levels p, .profile-levels small { margin: 0; }
.profile-levels strong, .profile-levels small { display: block; }
.profile-levels strong { font-family: var(--serif); }
.profile-levels small { color: var(--muted); font-size: .7rem; }
.sample-profile { padding: 36px; background: #fff; border-top: 4px solid var(--gold); box-shadow: var(--shadow); }
.sample-profile-top { display: grid; grid-template-columns: 72px 1fr; gap: 18px; align-items: center; }
.sample-avatar { width: 72px; height: 72px; display: grid; place-items: center; background: var(--navy); color: var(--gold); font-family: var(--serif); font-size: 2.3rem; }
.sample-profile-top small, .sample-profile-top strong, .sample-profile-top em { display: block; }
.sample-profile-top small { color: var(--gold-dark); font-size: .59rem; letter-spacing: .1em; text-transform: uppercase; }
.sample-profile-top strong { font-family: var(--serif); font-size: 1.8rem; }
.sample-profile-top em { color: var(--muted); font-size: .72rem; font-style: normal; }
.sample-profile dl { margin: 30px 0; border-top: 1px solid var(--line); }
.sample-profile dl div { display: flex; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.sample-profile dt { color: var(--muted); font-size: .68rem; text-transform: uppercase; }
.sample-profile dd { margin: 0; font-family: var(--serif); }
.sample-profile .locked { opacity: .48; }
.sample-badge { display: inline-flex; padding: 8px 12px; background: #f4ecd0; color: #71591d; font-size: .62rem; font-weight: 700; text-transform: uppercase; }

/* Free residence builder */
.residence-builder { min-height: calc(100svh - 94px); display: grid; grid-template-columns: minmax(360px, .76fr) minmax(620px, 1.24fr); background: var(--paper); }
.residence-story { position: sticky; top: 0; height: calc(100svh - 94px); overflow: hidden; display: flex; align-items: end; color: #fff; background: var(--navy); }
.residence-story-image, .residence-story-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.residence-story-image { object-fit: cover; }
.residence-story-shade { background: linear-gradient(0deg, rgba(3,17,34,.98), rgba(3,17,34,.28)); }
.residence-story-copy { position: relative; z-index: 1; padding: 42px clamp(32px, 4.5vw, 64px); }
.residence-story-copy > img { width: 62px; margin-bottom: 18px; }
.residence-story-copy h1 { margin-bottom: 18px; color: #fff; font-size: clamp(2.8rem, 4.2vw, 4.2rem); line-height: 1; }
.residence-story-copy > p:not(.eyebrow) { max-width: 520px; color: #d1dde5; }
.residence-proof { display: flex; gap: 14px; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.2); font-size: .68rem; }
.residence-proof strong { color: var(--gold); }
.residence-proof span { color: #afbfcb; }
.residence-workspace { width: min(780px, calc(100% - 56px)); margin: 0 auto; padding: 28px 0 42px; }
.residence-progress { display: flex; align-items: center; justify-content: center; margin-bottom: 30px; }
.residence-progress span { display: flex; align-items: center; gap: 8px; color: #8c96a1; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.residence-progress span b { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid #bdc2c6; border-radius: 50%; font-size: .61rem; }
.residence-progress span.is-current, .residence-progress span.is-done { color: var(--navy); }
.residence-progress span.is-current b { border-color: var(--teal); background: var(--teal); color: #fff; }
.residence-progress span.is-done b { border-color: var(--gold); color: var(--gold-dark); }
.residence-progress i { width: 55px; height: 1px; margin: 0 10px; background: #d8d7d1; }
.residence-form { max-width: 700px; margin: 0 auto; }
.residence-step { margin-bottom: 0; }
.residence-form.is-enhanced .residence-step { display: none; }
.residence-form.is-enhanced .residence-step.is-current { display: block; animation: fadeStep .32s ease; }
.residence-step h2 { margin-bottom: 10px; font-size: clamp(2.35rem, 3.7vw, 3.4rem); line-height: 1.04; }
.step-lead { max-width: 580px; margin-bottom: 22px; color: var(--muted); }
.field small { display: block; margin-top: 6px; color: #85909c; font-size: .65rem; }
.residence-form .field { margin-bottom: 12px; }
.residence-form .field input { height: 44px; padding-block: 10px; }
.residence-upload { margin-bottom: 14px; }
.residence-upload .upload-preview { min-height: 150px; }
.residence-upload .upload-preview img { height: 170px; }
.region-choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.region-choice:last-child { grid-column: auto; }
.region-choice { position: relative; cursor: pointer; }
.region-choice > input { position: absolute; opacity: 0; }
.region-choice-card { position: relative; min-height: 135px; display: block; overflow: hidden; border: 2px solid transparent; background: var(--navy); }
.region-choice-card > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .74; }
.region-choice-card > span { position: absolute; inset: auto 0 0; padding: 38px 14px 12px; color: #fff; background: linear-gradient(transparent, rgba(3,17,34,.95)); }
.region-choice-card small, .region-choice-card strong, .region-choice-card em { display: block; }
.region-choice-card small { color: var(--gold); font-size: .55rem; text-transform: uppercase; }
.region-choice-card strong { font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; }
.region-choice-card em { color: #d4dee6; font-size: .65rem; font-style: normal; }
.region-choice-card > b { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; display: none; place-items: center; border-radius: 50%; background: var(--gold); color: var(--navy); }
.region-choice input:checked + .region-choice-card { border-color: var(--gold); box-shadow: 0 12px 30px rgba(7,27,53,.2); }
.region-choice input:checked + .region-choice-card > b { display: grid; }
.region-choice input:focus-visible + .region-choice-card { outline: 3px solid rgba(0,143,157,.3); outline-offset: 2px; }
.step-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 20px; }
.residence-preview-card { position: relative; min-height: 215px; display: flex; flex-direction: column; justify-content: end; margin: 18px 0; padding: 26px; overflow: hidden; background: var(--navy); border-bottom: 5px solid var(--gold); color: #fff; box-shadow: var(--shadow); }
.residence-preview-card > img { position: absolute; top: 20px; right: 24px; width: 74px; opacity: .4; }
.residence-preview-card small { color: var(--gold); font-size: .62rem; letter-spacing: .13em; text-transform: uppercase; }
.residence-preview-card > strong { font-family: var(--serif); font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 500; line-height: 1.1; }
.residence-preview-card > span { color: #d1dce5; }
.residence-preview-card > em { margin-top: 12px; color: #92a6b5; font-size: .61rem; font-style: normal; letter-spacing: .08em; text-transform: uppercase; }
.residence-includes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 20px; margin: 16px 0; padding: 0; list-style: none; color: #425367; font-size: .72rem; }
.residence-includes li::before { content: "✓"; margin-right: 8px; color: var(--teal); }
.residence-form .check-field { margin: 10px 0; font-size: .7rem; }
.residence-form .form-privacy { margin-top: 8px; }
@keyframes fadeStep { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* Citizenship story */
.citizenship-intro { min-height: calc(100svh - 94px); display: flex; align-items: center; padding: 46px 0; overflow: hidden; background: var(--navy); color: #d4dfe7; }
.citizenship-intro-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 64px; align-items: center; }
.citizenship-intro h1 { max-width: 540px; margin-bottom: 18px; color: #fff; font-size: clamp(3.4rem, 5vw, 5.25rem); line-height: .96; }
.citizenship-intro-copy > p:not(.eyebrow) { max-width: 530px; margin-bottom: 0; font-family: var(--serif); font-size: 1.05rem; line-height: 1.6; }
.citizenship-intro-copy > small { display: block; margin-top: 18px; color: #8296a6; font-size: .62rem; }
.citizenship-price { display: flex; align-items: end; gap: 10px; margin: 22px 0 20px; }
.citizenship-price strong { color: #fff; font-family: var(--serif); font-size: 2.55rem; line-height: 1; }
.citizenship-price span { color: var(--mist); font-size: .68rem; }
.passport-showcase { position: relative; min-height: 450px; display: flex; align-items: center; }
.passport-cover { position: relative; z-index: 2; width: 44%; min-height: 420px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; background: #092740; border: 2px solid var(--gold); transform: rotate(-3deg); text-align: center; box-shadow: 0 28px 65px rgba(0,0,0,.36); }
.passport-cover img { width: 88px; margin-bottom: 25px; }
.passport-cover span { color: var(--gold); font-size: .58rem; letter-spacing: .16em; text-transform: uppercase; }
.passport-cover strong { margin: 13px 0 56px; color: #fff; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; }
.passport-cover em { color: #9bb0bf; font-size: .6rem; font-style: normal; letter-spacing: .12em; text-transform: uppercase; }
.passport-page { position: absolute; left: 37%; width: 63%; min-height: 330px; display: grid; grid-template-columns: 105px 1fr; gap: 20px; padding: 38px 28px; background: var(--ivory); color: var(--navy); box-shadow: var(--shadow); transform: rotate(2deg); }
.passport-photo-placeholder { height: 140px; display: grid; place-items: center; background: #dfe5e8; color: #80909c; text-align: center; font-size: .65rem; text-transform: uppercase; }
.passport-page small, .passport-page strong { display: block; }
.passport-page small { margin-top: 8px; color: var(--muted); font-size: .55rem; letter-spacing: .1em; text-transform: uppercase; }
.passport-page strong { font-family: var(--serif); }
.passport-page > b { position: absolute; inset: auto 20px 20px; padding: 12px; background: rgba(7,27,53,.92); color: #fff; font-size: .65rem; letter-spacing: .08em; text-align: center; text-transform: uppercase; }
.citizenship-included .section-heading > p { max-width: 380px; }
.included-intro { color: var(--muted); }
.unlock-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.unlock-grid article { min-height: 270px; padding: 30px; background: var(--paper); }
.unlock-grid span { color: var(--gold-dark); font-size: .68rem; font-weight: 700; }
.unlock-grid h3 { margin: 55px 0 12px; }
.unlock-grid p { color: var(--muted); font-size: .8rem; }
.citizenship-path { padding: 65px 0; background: #ebe8df; }
.citizenship-path-inner { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 25px; align-items: center; }
.citizenship-path-inner > div { padding: 26px; border: 1px solid #cbc7bd; }
.citizenship-path-inner > div.is-highlighted { border-color: var(--gold-dark); background: var(--paper); }
.citizenship-path-inner span, .citizenship-path-inner strong, .citizenship-path-inner small { display: block; }
.citizenship-path-inner span { color: var(--gold-dark); font-size: .61rem; font-weight: 700; text-transform: uppercase; }
.citizenship-path-inner strong { margin: 6px 0; font-family: var(--serif); font-size: 1.4rem; }
.citizenship-path-inner small { color: var(--muted); font-size: .66rem; }
.citizenship-path-inner > i { color: var(--gold-dark); font-size: 1.5rem; font-style: normal; }
.citizenship-final img { margin: 0 auto 24px; }
.citizenship-final p:not(.eyebrow) { color: var(--muted); }

/* Upgrade wizard */
.upgrade-page .site-header, .upgrade-page .fiction-banner, .upgrade-page .site-footer { display: none; }
.upgrade-page { overflow-x: hidden; background: #f3f1eb; }
.upgrade-shell { min-height: 100vh; }
.upgrade-header { min-height: 72px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 25px; align-items: center; }
.upgrade-back, .upgrade-secure { color: var(--muted); font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.upgrade-secure { justify-self: end; }
.upgrade-steps { display: flex; align-items: center; }
.upgrade-steps > span { display: flex; align-items: center; gap: 7px; color: #8a949e; font-size: .62rem; font-weight: 700; text-transform: uppercase; }
.upgrade-steps b { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid #bbc0c4; border-radius: 50%; font-size: .58rem; }
.upgrade-steps > span.is-current { color: var(--navy); }
.upgrade-steps > span.is-current b { border-color: var(--teal); background: var(--teal); color: #fff; }
.upgrade-steps > span.is-done b { border-color: var(--gold); color: var(--gold-dark); }
.upgrade-steps i { width: 32px; height: 1px; margin: 0 8px; background: #d1d0ca; }
.upgrade-panel { padding: 36px 0 56px; }
.upgrade-shell.is-enhanced .upgrade-panel { display: none; }
.upgrade-shell.is-enhanced .upgrade-panel.is-current { display: block; animation: fadeStep .32s ease; }
.upgrade-panel-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 52px; align-items: center; }
.upgrade-copy h1 { margin-bottom: 14px; font-size: clamp(3rem, 4.7vw, 4.8rem); line-height: .98; }
.upgrade-lead { color: var(--muted); font-family: var(--serif); font-size: 1.05rem; }
.upgrade-checklist { margin: 20px 0; padding: 14px 0; list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.upgrade-checklist li { margin: 5px 0; color: #44566a; font-size: .74rem; }
.upgrade-checklist li::before { content: "✓"; margin-right: 9px; color: var(--teal); }
.upgrade-price { display: flex; align-items: end; gap: 9px; margin-bottom: 18px; }
.upgrade-price strong { font-family: var(--serif); font-size: 2.5rem; line-height: 1; }
.upgrade-price span { color: var(--muted); font-size: .65rem; }
.skip-link-button { border: 0; padding: 11px 14px; background: transparent; color: var(--muted); cursor: pointer; font-size: .68rem; font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.personal-passport { position: relative; min-height: 460px; }
.personal-passport-cover { position: absolute; z-index: 2; left: 0; width: 48%; min-height: 440px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; background: #08243e; color: #fff; border: 2px solid var(--gold); box-shadow: var(--shadow); transform: rotate(-4deg); text-align: center; }
.personal-passport-cover img { width: 80px; margin-bottom: 28px; }
.personal-passport-cover small { color: var(--gold); font-size: .58rem; letter-spacing: .15em; text-transform: uppercase; }
.personal-passport-cover strong { margin: 12px 0 65px; font-family: var(--serif); font-size: 1.75rem; font-weight: 500; }
.personal-passport-cover em { color: #91a7b7; font-size: .58rem; font-style: normal; text-transform: uppercase; }
.personal-passport-data { position: absolute; z-index: 1; right: 0; top: 58px; width: 61%; min-height: 330px; display: grid; grid-template-columns: 110px 1fr; gap: 20px; padding: 38px 26px 26px 62px; background: var(--paper); box-shadow: var(--shadow); transform: rotate(3deg); }
.personal-passport-data > img { width: 110px; height: 145px; object-fit: cover; filter: saturate(.8); }
.personal-passport-data small, .personal-passport-data strong { display: block; }
.personal-passport-data small { margin-top: 8px; color: var(--muted); font-size: .55rem; text-transform: uppercase; }
.personal-passport-data strong { font-family: var(--serif); }
.personal-passport-data > span { position: absolute; inset: auto 20px 18px; padding: 10px; background: var(--navy); color: #fff; font-size: .64rem; font-weight: 700; text-align: center; text-transform: uppercase; }
.upgrade-selection-heading { max-width: 720px; margin: 0 auto 25px; text-align: center; }
.upgrade-selection-heading h2 { margin-bottom: 12px; }
.upgrade-selection-heading > p:last-child { color: var(--muted); }
.market-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.market-choice { position: relative; cursor: pointer; }
.market-choice > input, .office-choice > input { position: absolute; opacity: 0; }
.market-card { height: 100%; display: flex; flex-direction: column; background: var(--paper); border: 2px solid transparent; box-shadow: 0 10px 26px rgba(7,27,53,.08); }
.market-image { position: relative; }
.market-image img { width: 100%; aspect-ratio: 16/8; object-fit: cover; }
.market-image b { position: absolute; top: 10px; right: 10px; padding: 6px 9px; background: var(--teal); color: #fff; font-size: .55rem; letter-spacing: .06em; text-transform: uppercase; }
.market-body { flex: 1; display: flex; flex-direction: column; padding: 16px; }
.market-body small { color: var(--gold-dark); font-size: .57rem; font-weight: 700; text-transform: uppercase; }
.market-body strong { margin: 6px 0; font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; }
.market-body em { flex: 1; color: var(--muted); font-size: .72rem; font-style: normal; }
.market-body > span { margin-top: 12px; color: var(--teal); font-size: .68rem; font-weight: 750; text-transform: uppercase; }
.market-choice input:checked + .market-card { border-color: var(--gold); box-shadow: 0 18px 40px rgba(7,27,53,.16); }
.market-choice input:focus-visible + .market-card, .office-choice input:focus-visible ~ span { outline: 3px solid rgba(0,143,157,.3); outline-offset: 2px; }
.market-choice.is-occupied { cursor: not-allowed; }
.market-choice.is-occupied .market-card { opacity: .55; filter: grayscale(.65); }
.market-choice.is-occupied .market-image b { background: #536273; }
.market-choice.is-occupied .market-body > span { color: #536273; }
.office-market { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--line); }
.office-choice { position: relative; display: grid; grid-template-columns: 100px 1fr auto; gap: 20px; align-items: center; padding: 15px; border-bottom: 1px solid var(--line); cursor: pointer; }
.office-choice:has(input:checked) { background: #fff; box-shadow: inset 4px 0 var(--gold); }
.office-status { color: var(--teal); font-size: .6rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.office-main small, .office-main strong, .office-main em { display: block; }
.office-main small { color: var(--gold-dark); font-size: .57rem; text-transform: uppercase; }
.office-main strong { font-family: var(--serif); font-size: 1.35rem; }
.office-main em { color: var(--muted); font-size: .7rem; font-style: normal; }
.office-action { color: var(--teal); font-size: .65rem; font-weight: 700; text-align: right; text-transform: uppercase; }
.office-choice.is-occupied { opacity: .46; cursor: not-allowed; }
.office-choice.is-occupied .office-status, .office-choice.is-occupied .office-action { color: var(--muted); }
.upgrade-review-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 52px; align-items: start; }
.upgrade-review-copy h2 { font-size: clamp(2.7rem, 4.3vw, 4rem); }
.upgrade-review-copy > p { color: var(--muted); }
.review-items { margin-top: 24px; border-top: 1px solid var(--line); }
.review-items > div { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.review-items > div > span { color: var(--teal); }
.review-items p, .review-items small { margin: 0; }
.review-items strong, .review-items small { display: block; }
.review-items strong { font-family: var(--serif); }
.review-items small { color: var(--muted); font-size: .66rem; }
.review-items > div > b { font-size: .72rem; }
.checkout-card { position: sticky; top: 24px; padding: 30px; background: var(--navy); color: #d5e0e7; box-shadow: var(--shadow); }
.checkout-card > span { color: var(--gold); font-size: .63rem; letter-spacing: .12em; text-transform: uppercase; }
.checkout-card > strong { display: block; margin: 8px 0 12px; color: #fff; font-family: var(--serif); font-size: 3rem; font-weight: 500; }
.checkout-card > p { color: #aebdca; font-size: .75rem; }
.checkout-card .payment-buttons small { color: #91a2b0; font-size: .62rem; text-align: center; }
.checkout-legal { margin: 20px 0 5px !important; padding-top: 15px; border-top: 1px solid rgba(255,255,255,.14); font-size: .6rem !important; }

/* Resident and citizen profile */
.issuance-banner { padding: 34px 0; background: #e8dfba; }
.checkout-cancelled { padding: 16px 0; background: #f3e3dc; color: #6f3830; font-size: .74rem; }
.checkout-cancelled .shell { display: flex; align-items: center; gap: 14px; }
.checkout-cancelled span { color: #86665f; }
.checkout-cancelled a { margin-left: auto; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.issuance-banner.is-complete { background: var(--teal); color: #fff; }
.issuance-inner { display: grid; grid-template-columns: 70px 1fr auto; gap: 26px; align-items: center; }
.issuance-inner > img { width: 70px; }
.issuance-inner h2 { margin-bottom: 5px; font-size: 2rem; }
.issuance-banner.is-complete h2 { color: #fff; }
.issuance-inner p { margin-bottom: 0; }
.issuance-list { display: grid; gap: 5px; font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.profile-hero-new { padding: 92px 0; }
.profile-hero-new.is-citizen { background: linear-gradient(125deg, #071b35, #0a3151); }
.profile-hero-new.is-resident { background: linear-gradient(125deg, #071b35, #0b3a52); }
.profile-hero-new .profile-subtitle { color: var(--gold); }
.profile-unlocks { padding: 30px 0; background: #fff; border-bottom: 1px solid var(--line); }
.unlock-rail { display: flex; align-items: center; justify-content: center; }
.unlock-rail > div { min-width: 108px; text-align: center; }
.unlock-rail > div > span { width: 30px; height: 30px; display: grid; place-items: center; margin: 0 auto 6px; border: 1px solid #b6bdc3; border-radius: 50%; color: #8a959f; font-size: .63rem; }
.unlock-rail > div strong, .unlock-rail > div small { display: block; }
.unlock-rail > div strong { font-size: .65rem; text-transform: uppercase; }
.unlock-rail > div small { color: var(--muted); font-size: .58rem; }
.unlock-rail > div.is-unlocked > span { border-color: var(--teal); background: var(--teal); color: #fff; }
.unlock-rail > i { width: 55px; height: 1px; margin: 0 7px; background: var(--line); }
.resident-upgrade { padding: 100px 0; background: #ece9e0; }
.resident-upgrade-grid { display: grid; grid-template-columns: 1fr .78fr; gap: 80px; align-items: center; }
.resident-value > p:not(.eyebrow) { max-width: 620px; color: var(--muted); }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 30px 0; }
.badge-row span { padding: 8px 12px; background: #fff7d9; border: 1px solid #d7c27b; color: #6d571f; font-size: .61rem; font-weight: 700; text-transform: uppercase; }
.region-community { display: inline-flex; flex-direction: column; padding: 18px 22px; background: var(--paper); border-left: 3px solid var(--teal); }
.region-community span { color: var(--muted); font-size: .62rem; text-transform: uppercase; }
.region-community strong { font-family: var(--serif); font-size: 1.25rem; }
.citizen-invitation { padding: 40px; background: var(--navy); color: #d3dfe7; border-top: 4px solid var(--gold); box-shadow: var(--shadow); }
.citizen-invitation h2 { color: #fff; font-size: 3rem; }
.citizen-invitation > p { color: #b7c6d1; }
.citizen-invitation ul { padding: 20px 0; list-style: none; border-top: 1px solid rgba(255,255,255,.15); border-bottom: 1px solid rgba(255,255,255,.15); font-size: .75rem; }
.citizen-invitation li { margin: 7px 0; }
.citizen-invitation li::before { content: "✓"; margin-right: 8px; color: var(--teal-bright); }
.invitation-kicker { color: var(--gold); font-size: .62rem; font-weight: 700; text-transform: uppercase; }
.invitation-price { display: flex; align-items: end; gap: 8px; margin: 22px 0; }
.invitation-price strong { color: #fff; font-family: var(--serif); font-size: 2.8rem; line-height: 1; }
.invitation-price span { color: var(--mist); font-size: .62rem; }
.citizen-invitation > small { display: block; margin-top: 12px; color: #7f93a2; font-size: .58rem; text-align: center; }
.profile-dashboard { background: var(--paper); }
.profile-dashboard-grid { display: grid; grid-template-columns: 1fr 310px; gap: 65px; align-items: center; }
.profile-card-block { display: grid; grid-template-columns: .75fr 1.25fr; gap: 60px; align-items: center; }
.profile-card-block code { display: block; margin: 20px 0; padding: 12px; overflow-wrap: anywhere; background: #eeece5; color: var(--teal); font-size: .72rem; }
.completion-card { padding: 30px; background: #eeece5; }
.completion-card > span { color: var(--muted); font-size: .62rem; text-transform: uppercase; }
.completion-card > strong { display: block; margin: 4px 0 14px; font-family: var(--serif); font-size: 2.8rem; }
.completion-bar { height: 5px; overflow: hidden; background: #d4d2ca; }
.completion-bar i { display: block; height: 100%; background: var(--teal); }
.completion-card ul { margin: 25px 0 0; padding: 0; list-style: none; }
.completion-card li { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #d5d1c6; color: var(--muted); font-size: .69rem; }
.completion-card li.done { color: var(--navy); }
.completion-card li.done b { color: var(--teal); }
.profile-legacy { background: var(--paper); }
.legacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.legacy-property, .legacy-office { min-height: 260px; background: #eeeae0; box-shadow: 0 12px 28px rgba(7,27,53,.08); }
.legacy-property { position: relative; overflow: hidden; }
.legacy-property > img { width: 100%; height: 100%; object-fit: cover; }
.legacy-property > span { position: absolute; inset: auto 0 0; padding: 60px 25px 22px; color: #fff; background: linear-gradient(transparent, rgba(3,17,34,.95)); }
.legacy-property small, .legacy-property strong, .legacy-property em, .legacy-office small, .legacy-office strong, .legacy-office em { display: block; }
.legacy-property small, .legacy-office small { color: var(--gold); font-size: .58rem; text-transform: uppercase; }
.legacy-property strong, .legacy-office strong { font-family: var(--serif); font-size: 1.5rem; }
.legacy-property em, .legacy-office em { color: #b8c7d1; font-size: .66rem; font-style: normal; }
.legacy-office { display: flex; align-items: center; gap: 28px; padding: 40px; background: var(--navy); color: #fff; }
.legacy-office > span { color: var(--gold); font-size: 3rem; }

.arrival-benefits { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px 28px; margin: 25px 0; color: var(--teal); font-size: .7rem; font-weight: 700; }

.auth-shell { min-height: calc(100svh - 94px); display: grid; grid-template-columns: minmax(360px, .82fr) minmax(560px, 1.18fr); background: var(--paper); }
.auth-story { position: relative; overflow: hidden; display: flex; align-items: end; color: #fff; background: var(--navy); }
.auth-story > img, .auth-story > span { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-story > img { object-fit: cover; }
.auth-story > span { background: linear-gradient(0deg, rgba(3,17,34,.98), rgba(3,17,34,.3)); }
.auth-story > div { position: relative; z-index: 1; padding: 46px clamp(32px, 4.5vw, 64px); }
.auth-story > div > img { width: 62px; margin-bottom: 18px; }
.auth-story h1 { margin-bottom: 16px; color: #fff; font-size: clamp(2.5rem, 3.6vw, 3.6rem); line-height: 1.03; }
.auth-story > div > p:not(.eyebrow) { max-width: 480px; margin-bottom: 0; color: #d1dde5; }
.auth-workspace { display: flex; align-items: center; justify-content: center; padding: 56px clamp(24px, 4vw, 60px); }
.auth-card { width: min(430px, 100%); }
.auth-card h2 { margin-bottom: 12px; font-size: clamp(2.1rem, 3.2vw, 2.9rem); }
.auth-lead { margin-bottom: 26px; color: var(--muted); }
.google-button { min-height: 50px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid #d5d4ce; border-radius: 2px; background: #fff; color: var(--ink); font-size: .78rem; font-weight: 700; transition: border-color .2s ease, box-shadow .2s ease; }
.google-button:hover { border-color: var(--navy); box-shadow: 0 8px 20px rgba(7,27,53,.08); }
.google-button > span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--navy); color: #fff; font-family: var(--serif); font-size: .95rem; }
.auth-divider { display: flex; align-items: center; gap: 14px; margin: 20px 0; color: #8893a0; font-size: .61rem; letter-spacing: .12em; text-transform: uppercase; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form .field { margin-bottom: 16px; }
.auth-promises { display: grid; gap: 9px; margin: 24px 0 18px; padding-top: 20px; border-top: 1px solid var(--line); color: #526173; font-size: .72rem; }
.auth-promises span { display: flex; align-items: center; gap: 9px; }
.auth-promises b { color: var(--teal); }
.auth-legal { margin: 0; color: #8893a0; font-size: .68rem; line-height: 1.55; }
.auth-legal a { color: var(--navy); border-bottom: 1px solid rgba(7,27,53,.28); }

.auth-result-page { min-height: calc(100svh - 94px); display: grid; place-items: center; padding: 70px 24px 90px; background: linear-gradient(160deg, #efede6 0%, var(--paper) 100%); }
.auth-result-card { width: min(520px, 100%); padding: clamp(32px, 5vw, 56px); background: #fff; border-bottom: 4px solid var(--gold); box-shadow: var(--shadow); text-align: center; }
.auth-result-card > img { margin: 0 auto 22px; color: var(--gold-dark); }
.auth-result-card h1 { margin-bottom: 14px; font-size: clamp(2.3rem, 4.2vw, 3.3rem); }
.auth-result-card > p { margin-bottom: 0; color: var(--muted); }
.auth-result-card > p strong { color: var(--navy); }
.auth-result-card form { margin-top: 26px; }
.auth-result-card > .button { margin-top: 26px; }
.auth-result-card .text-link { margin-top: 24px; }
.auth-result-card .auth-legal { margin-top: 16px; }
.auth-result-note { display: flex; align-items: center; gap: 16px; margin-top: 26px; padding: 16px 18px; background: #f1efe8; text-align: left; }
.auth-result-note > span { flex-shrink: 0; color: var(--gold-dark); font-family: var(--serif); font-size: 1.1rem; }
.auth-result-note p { margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }

.account-hero { padding: 62px 0 54px; background: var(--navy); color: #fff; }
.account-hero-inner { display: flex; align-items: end; justify-content: space-between; gap: 40px; }
.account-hero h1 { margin-bottom: 10px; color: #fff; font-size: clamp(2.6rem, 4.6vw, 4.2rem); }
.account-hero p:not(.eyebrow) { max-width: 560px; margin-bottom: 0; color: #d1dde5; }
.account-status { flex-shrink: 0; padding: 16px 24px; border: 1px solid rgba(212,175,55,.4); text-align: center; }
.account-status b { display: block; color: var(--gold); font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.account-status small { display: block; margin-top: 4px; color: var(--mist); font-size: .57rem; letter-spacing: .12em; text-transform: uppercase; }
.account-overview { background: var(--navy-2); color: #fff; }
.account-metrics { display: grid; grid-template-columns: repeat(4, 1fr); }
.account-metrics div { padding: 22px 24px; border-right: 1px solid rgba(255,255,255,.14); }
.account-metrics div:first-child { padding-left: 0; }
.account-metrics div:last-child { border-right: 0; }
.account-metrics span { display: block; margin-bottom: 6px; color: var(--gold); font-size: .58rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.account-metrics strong { display: block; font-family: var(--serif); font-size: 1.4rem; font-weight: 500; }
.account-main { background: var(--paper); }
.account-layout { display: grid; grid-template-columns: 1.55fr .72fr; gap: 58px; align-items: start; }
.account-primary { min-width: 0; }
.account-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 30px; }
.account-section-heading .eyebrow { margin-bottom: 10px; }
.account-section-heading h2 { margin-bottom: 0; font-size: clamp(1.9rem, 3vw, 2.7rem); }
.visitor-start-card { display: grid; grid-template-columns: .8fr 1.2fr; overflow: hidden; background: #eeeae0; box-shadow: 0 14px 32px rgba(7,27,53,.09); }
.visitor-start-card > img { width: 100%; height: 100%; min-height: 250px; object-fit: cover; }
.visitor-start-card > span { display: block; padding: clamp(26px, 3vw, 38px); }
.visitor-start-card small { display: block; margin-bottom: 10px; color: var(--gold-dark); font-size: .59rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.visitor-start-card h3 { margin-bottom: 10px; font-size: 1.75rem; }
.visitor-start-card p { margin-bottom: 22px; color: var(--muted); font-size: .84rem; }
.account-resident-list { display: grid; gap: 16px; }
.account-resident-card { display: grid; grid-template-columns: 132px 1fr auto; gap: 26px; align-items: center; padding: 22px; background: #fff; border: 1px solid var(--line); box-shadow: 0 10px 26px rgba(7,27,53,.06); }
.account-resident-photo img { width: 132px; aspect-ratio: 1; object-fit: cover; }
.account-resident-copy > span { color: var(--teal); font-size: .61rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.account-resident-copy h3 { margin: 6px 0 3px; font-size: 1.5rem; }
.account-resident-copy > p { margin-bottom: 16px; color: var(--muted); font-size: .73rem; }
.account-card-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.account-card-actions .button { min-height: 42px; padding: 10px 16px; font-size: .63rem; }
.account-resident-progress { min-width: 128px; padding-left: 26px; border-left: 1px solid var(--line); text-align: center; }
.account-resident-progress span { display: block; color: var(--muted); font-size: .57rem; letter-spacing: .12em; text-transform: uppercase; }
.account-resident-progress strong { display: block; margin: 5px 0 3px; color: var(--navy); font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.account-resident-progress small { display: block; color: var(--muted); font-size: .62rem; }
.account-pending { margin-top: 30px; padding: 26px; background: #f1efe8; }
.account-pending .eyebrow { margin-bottom: 10px; }
.account-pending a { display: grid; grid-template-columns: 1fr auto auto; gap: 20px; align-items: center; padding: 13px 0; border-top: 1px solid #ddd9cf; }
.account-pending a:hover strong { color: var(--navy); }
.account-pending a > span { font-family: var(--serif); font-size: .95rem; }
.account-pending a > strong { color: var(--teal); font-size: .67rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.account-pending a > small { color: var(--muted); font-size: .67rem; }
.account-sidebar { position: sticky; top: 24px; display: grid; gap: 16px; }
.account-box { padding: 28px; background: #fff; border: 1px solid var(--line); }
.account-box h3 { margin-bottom: 5px; font-size: 1.3rem; }
.account-box > p { margin-bottom: 0; color: var(--muted); font-size: .78rem; overflow-wrap: anywhere; }
.account-box dl { margin: 20px 0 0; }
.account-box dl div { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-top: 1px solid var(--line); }
.account-box dt { color: var(--muted); font-size: .63rem; letter-spacing: .08em; text-transform: uppercase; }
.account-box dd { margin: 0; color: var(--navy); font-size: .74rem; font-weight: 650; text-align: right; }
.account-security form { margin-top: 18px; }
.account-security form + form { margin-top: 8px; text-align: center; }

@media (max-width: 1050px) {
  .identity-step { padding: 36px; }
  .auth-shell { grid-template-columns: minmax(320px, .8fr) minmax(520px, 1.2fr); }
  .auth-story > div { padding-inline: 34px; }
  .auth-workspace { padding: 44px 34px; }
  .account-layout { grid-template-columns: 1.45fr .8fr; gap: 38px; }
  .account-resident-card { grid-template-columns: 112px 1fr; gap: 20px; }
  .account-resident-photo img { width: 112px; }
  .account-resident-progress { grid-column: 1 / -1; display: flex; align-items: baseline; gap: 10px; min-width: 0; padding: 14px 0 0; border-top: 1px solid var(--line); border-left: 0; text-align: left; }
  .account-resident-progress strong { margin: 0; font-size: 1.4rem; }
  .citizenship-home-grid, .profile-story-grid, .citizenship-intro-grid, .upgrade-panel-grid, .resident-upgrade-grid { gap: 45px; }
  .residence-builder { grid-template-columns: minmax(320px, .72fr) minmax(560px, 1.28fr); }
  .residence-story-copy { padding-inline: 34px; }
  .upgrade-header { grid-template-columns: auto 1fr; }
  .upgrade-steps { justify-self: end; }
  .upgrade-secure { display: none; }
  .personal-passport-data { grid-template-columns: 100px 1fr; padding-left: 60px; }
  .personal-passport-data > img { width: 100px; height: 140px; }
  .market-grid { grid-template-columns: 1fr 1fr; }
  .profile-dashboard-grid { grid-template-columns: 1fr; }
  .completion-card { width: min(520px, 100%); }
}

@media (max-width: 800px) {
  .home-hero-new h1 { font-size: 4.2rem; }
  .auth-shell { display: block; }
  .auth-story { height: 340px; }
  .auth-story > div { padding: 34px 30px; }
  .auth-story h1 { font-size: 2.7rem; }
  .auth-workspace { padding: 40px 24px 60px; }
  .auth-card { width: min(460px, 100%); }
  .account-hero { padding: 48px 0 44px; }
  .account-hero-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .account-metrics { grid-template-columns: 1fr 1fr; }
  .account-metrics div { padding: 18px 20px; }
  .account-metrics div:nth-child(2n) { border-right: 0; padding-right: 0; }
  .account-metrics div:nth-child(2n+1) { padding-left: 0; }
  .account-metrics div:nth-child(n+3) { border-top: 1px solid rgba(255,255,255,.14); }
  .account-layout { grid-template-columns: 1fr; gap: 42px; }
  .account-sidebar { position: static; }
  .visitor-start-card { grid-template-columns: 1fr; }
  .visitor-start-card > img { min-height: 210px; }
  .facts-bar-new { grid-template-columns: 1fr 1fr; }
  .identity-path-grid, .citizenship-home-grid, .profile-story-grid, .citizenship-intro-grid, .upgrade-panel-grid, .upgrade-review-grid, .resident-upgrade-grid { grid-template-columns: 1fr; }
  .identity-path-arrow { transform: rotate(90deg); text-align: center; }
  .identity-step { min-height: auto; }
  .identity-step p, .identity-step ul { min-height: 0; }
  .region-social-grid { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 220px); }
  .region-social-card, .region-social-card:first-child, .region-social-card:nth-child(2) { grid-column: span 1; }
  .region-social-card:last-child { grid-column: 1 / -1; }
  .home-passport-stack { max-width: 590px; }
  .citizenship-intro-copy { order: 1; }
  .passport-showcase { min-height: 440px; }
  .citizenship-path-inner { grid-template-columns: 1fr; }
  .citizenship-path-inner > i { transform: rotate(90deg); text-align: center; }
  .unlock-grid { grid-template-columns: 1fr 1fr; }
  .residence-builder { display: block; }
  .residence-story { position: relative; height: 400px; }
  .residence-story-copy { padding: 36px 30px; }
  .residence-story-copy h1 { font-size: 3.15rem; }
  .residence-workspace { width: min(100% - 36px, 700px); padding-top: 26px; }
  .region-choice-grid { grid-template-columns: 1fr 1fr; }
  .region-choice:last-child { grid-column: 1 / -1; }
  .upgrade-steps em { display: none; }
  .upgrade-panel { padding-top: 30px; }
  .personal-passport { min-height: 430px; max-width: 650px; }
  .office-choice { grid-template-columns: 85px 1fr; }
  .office-action { grid-column: 2; text-align: left; }
  .checkout-card { position: static; }
  .issuance-inner { grid-template-columns: 55px 1fr; }
  .issuance-list { grid-column: 2; }
  .profile-card-block { grid-template-columns: 1fr; }
  .profile-card-block .citizen-card-preview { grid-row: 1; }
}

@media (max-width: 560px) {
  .home-hero-new .hero-content { padding: 48px 0 205px; }
  .auth-story { height: 300px; }
  .auth-story > div { padding: 28px 22px; }
  .auth-story > div > img { width: 48px; margin-bottom: 12px; }
  .auth-story h1 { margin-bottom: 12px; font-size: 2.25rem; }
  .auth-workspace { padding: 32px 20px 52px; }
  .auth-result-page { padding: 46px 18px 64px; }
  .auth-result-card { padding: 30px 22px; }
  .auth-result-note { flex-direction: column; align-items: flex-start; gap: 8px; }
  .account-hero { padding: 40px 0 36px; }
  .account-status { align-self: stretch; }
  .account-metrics { grid-template-columns: 1fr; }
  .account-metrics div { padding: 15px 0; border-right: 0; border-top: 1px solid rgba(255,255,255,.14); }
  .account-metrics div:first-child { border-top: 0; }
  .account-section-heading { flex-direction: column; align-items: flex-start; gap: 16px; }
  .account-resident-card { grid-template-columns: 1fr; padding: 18px; }
  .account-resident-photo img { width: 100%; max-width: 190px; }
  .account-card-actions .button { width: 100%; }
  .account-pending { padding: 20px; }
  .account-pending a { grid-template-columns: 1fr auto; gap: 6px 14px; }
  .account-pending a > small { grid-column: 1 / -1; }
  .account-box { padding: 22px; }
  .home-hero-new h1 { font-size: 3.45rem; }
  .facts-bar-new { bottom: 14px; }
  .facts-bar-new div { padding: 8px 12px; }
  .identity-path-section, .citizenship-home-section, .citizenship-intro { padding: 58px 0; }
  .identity-step { padding: 28px; }
  .region-social-grid { grid-template-columns: 1fr; grid-template-rows: repeat(5, 230px); }
  .region-social-card, .region-social-card:last-child { grid-column: 1; }
  .region-social-footer, .section-heading { align-items: flex-start; }
  .section-side-copy { text-align: left; }
  .home-passport-stack { min-height: 390px; }
  .home-passport-cover { min-height: 380px; }
  .home-citizen-card { width: 68%; min-height: 180px; padding: 24px; }
  .citizenship-home-features, .residence-includes { grid-template-columns: 1fr; }
  .passport-showcase { min-height: 360px; }
  .passport-cover { min-height: 350px; width: 58%; }
  .passport-page { left: 42%; width: 65%; min-height: 280px; grid-template-columns: 68px 1fr; padding: 26px 15px 22px 48px; }
  .passport-photo-placeholder { height: 96px; }
  .unlock-grid { grid-template-columns: 1fr; }
  .residence-story { height: 360px; }
  .residence-story-copy { padding: 30px 22px; }
  .residence-story-copy > img { width: 48px; margin-bottom: 12px; }
  .residence-story-copy h1 { margin-bottom: 13px; font-size: 2.65rem; }
  .residence-proof { margin-top: 15px; padding-top: 12px; }
  .residence-workspace { width: calc(100% - 28px); padding: 22px 0 34px; }
  .residence-progress { margin-bottom: 22px; }
  .residence-step h2 { font-size: 2.55rem; }
  .step-lead { margin-bottom: 18px; }
  .residence-upload .upload-preview { min-height: 135px; }
  .residence-progress span { font-size: 0; }
  .residence-progress span b { font-size: .61rem; }
  .residence-progress i { width: 38px; }
  .region-choice-grid, .market-grid { grid-template-columns: 1fr; }
  .region-choice:last-child { grid-column: 1; }
  .step-actions { align-items: stretch; flex-direction: column-reverse; }
  .step-actions .button { width: 100%; }
  .upgrade-header { min-height: 72px; }
  .upgrade-back { font-size: 0; }
  .upgrade-back::before { content: "←"; font-size: 1rem; }
  .upgrade-steps i { width: 17px; margin: 0 4px; }
  .upgrade-panel { padding: 24px 0 40px; }
  .upgrade-copy h1 { font-size: 3rem; }
  .personal-passport { min-height: 390px; }
  .personal-passport-cover { min-height: 370px; width: 59%; }
  .personal-passport-data { top: 42px; width: 65%; min-height: 295px; grid-template-columns: 65px 1fr; gap: 10px; padding: 26px 14px 22px 40px; }
  .personal-passport-data > img { width: 70px; height: 100px; }
  .personal-passport-data strong { font-size: .78rem; }
  .office-choice { grid-template-columns: 1fr; gap: 7px; }
  .office-action { grid-column: 1; }
  .unlock-rail { justify-content: flex-start; overflow-x: auto; padding-bottom: 8px; }
  .unlock-rail > div { min-width: 86px; }
  .unlock-rail > i { min-width: 25px; }
  .profile-dashboard-grid { gap: 35px; }
  .legacy-grid { grid-template-columns: 1fr; }
  .issuance-inner { grid-template-columns: 1fr; text-align: center; }
  .issuance-inner > img { margin: auto; }
  .issuance-list { grid-column: 1; }
  .checkout-cancelled .shell { align-items: flex-start; flex-direction: column; gap: 4px; }
  .checkout-cancelled a { margin: 5px 0 0; }
}

@media (min-width: 801px) and (max-height: 760px) {
  .citizenship-intro { padding: 28px 0; }
  .passport-showcase { min-height: 400px; }
  .passport-cover { min-height: 380px; }
  .passport-page { min-height: 300px; }
  .residence-workspace { padding: 18px 0 28px; }
  .residence-progress { margin-bottom: 22px; }
  .residence-upload .upload-preview { min-height: 125px; }
  .residence-upload .upload-preview img { height: 145px; }
  .upgrade-panel { padding: 24px 0 36px; }
  .personal-passport { min-height: 420px; }
  .personal-passport-cover { min-height: 400px; }
  .personal-passport-data { top: 48px; min-height: 310px; }
}
