@import 'tailwindcss';
@source '../views';

@font-face { font-family: 'DM Sans'; src: url('/fonts/dm-sans-latin.woff2') format('woff2'); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'DM Serif Display'; src: url('/fonts/dm-serif-display-latin.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@theme { --font-sans: 'DM Sans', sans-serif; --font-serif: 'DM Serif Display', serif; --font-mono: var(--font-sans); --color-blue: #14548a; --color-ink: #102f58; --color-paper: #fcfbf8; --color-yellow: #ffcf32; }

:root { --blue: #14548a; --ink: #102f58; --paper: #fcfbf8; --muted: #566a80; --line: #dce3ea; --yellow: #ffcf32; --ice: #eef5fa; --warm: #faf8f3; }
/* Borderless by design: separate content with spacing and surfaces. */
*, ::before, ::after { box-sizing: border-box; border: 0; }
html { font-family: var(--font-sans); font-synthesis: none; scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 16px/1.65 var(--font-sans); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea, option { font: inherit; }
code, kbd, samp, pre { font-family: var(--font-sans); font-size: inherit; }
button, a, input, select, textarea { touch-action: manipulation; }
button, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .6; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #17669c; outline-offset: 4px; }
p { margin: 0 0 1.25rem; }
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 400; }
h1, h2 { font-family: var(--font-serif); letter-spacing: -.035em; line-height: 1.1; }
h1 em, h2 em { font-style: normal; }
h2 { font-size: clamp(34px, 3.3vw, 46px); }
h3, h4, h5, h6 { font-family: var(--font-sans); font-size: 18px; font-weight: 600; line-height: 1.45; }
b, strong { font-weight: 600; }
/* Editorial headings use Serif; all application and form headings use Sans. */
.app-body :is(h1, h2, h3, h4, h5, h6), .auth-main :is(h1, h2, h3, h4, h5, h6), .sample-panels h3 { font-family: var(--font-sans); font-weight: 600; line-height: 1.25; }
img { display: block; max-width: 100%; }
figure { margin: 0; }
svg { display: block; }
.icon { width: 22px; height: 22px; flex-shrink: 0; }
.container { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.section { padding-block: 88px; }
.warm { background: var(--warm); }
.eyebrow { display: block; font-size: 11px; letter-spacing: .12em; font-weight: 600; line-height: 1.5; text-transform: uppercase; margin-bottom: 20px; color: var(--blue); }
.fine-print { font-size: 13px; line-height: 1.65; color: var(--muted); }
.lead { font-size: 20px; line-height: 1.7; max-width: 680px; color: var(--muted); }
.underlined { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; font-size: 14px; color: var(--blue); text-decoration: underline; text-decoration-color: #b6c8d6; text-underline-offset: 5px; }
.underlined .icon { width: 17px; height: 17px; }
.underlined:hover { text-decoration-color: currentColor; }

/* Shared identity and navigation. */
.site-header { height: 100px; position: relative; z-index: 30; background: #fff; }
.home-page .site-header { position: absolute; top: 0; left: 0; right: 0; background: transparent; }
.header-inner { width: min(1328px, calc(100% - 80px)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-symbol { display: block; width: 40px; height: 40px; flex-shrink: 0; }
.brand-symbol img { width: 100%; height: 100%; }
.site-header .brand-symbol, .site-footer .brand-symbol { width: 48px; height: 48px; }
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-copy strong { font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -1px; }
.site-header .wordmark .brand-copy strong, .site-footer .wordmark .brand-copy strong { font-size: 26px; }
.brand-copy small { font-size: 11px; line-height: 1.45; font-weight: 500; letter-spacing: 0; color: #385878; white-space: nowrap; }
.desktop-nav { display: flex; align-items: center; gap: 26px; font-size: 13px; font-weight: 500; }
.desktop-nav a { padding-block: 14px; white-space: nowrap; }
.desktop-nav a:hover, .desktop-nav a[aria-current] { color: var(--blue); text-decoration: underline; text-decoration-color: var(--yellow); text-underline-offset: 8px; text-decoration-thickness: 2px; }
.header-actions { display: flex; gap: 12px; align-items: center; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 14px 22px; min-height: 50px; color: white; background: var(--blue); border-radius: 4px; font-size: 14px; font-weight: 600; line-height: 1.4; transition: background .16s; }
.button .icon { width: 18px; height: 18px; }
.button:hover { background: #103f68; }
.button.yellow { color: var(--ink); background: var(--yellow); }
.button.yellow:hover { background: #f5c120; }
.button.small { min-height: 44px; padding: 11px 19px; font-size: 13px; gap: 14px; }
.button.secondary { color: var(--ink); background: #eaf2f8; }
.button.secondary:hover { background: #edf4f8; }
.button.danger { color: #fff; background: #8d2d2e; }
.menu-toggle { display: none; color: var(--ink); background: transparent; padding: 10px; min-width: 44px; min-height: 44px; }
.mobile-menu { position: absolute; top: 100%; left: 0; right: 0; padding: 16px 24px 24px; background: #fff; max-height: calc(100dvh - 76px); overflow-y: auto; }
.mobile-menu a, .mobile-menu .text-button { display: flex; align-items: center; gap: 14px; padding: 12px 14px; min-height: 48px; border-radius: 3px; font-size: 15px; }
.mobile-menu a[aria-current] { background: var(--ice); color: var(--blue); font-weight: 600; }
.mobile-menu .text-button { width: 100%; text-align: left; color: inherit; text-decoration: none; margin-top: 8px; border-radius: 0; }
.mobile-menu .icon { width: 19px; height: 19px; }

/* The photographic opening is deliberately part of the page, not a card. */
.hero { position: relative; min-height: 730px; overflow: hidden; background: #fff; }
.hero-image { position: absolute; inset: 0 0 0 auto; width: 82%; height: 100%; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 44%; }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, #fff 0%, #fffffff9 30%, #ffffffe6 40%, #ffffff73 55%, #ffffff00 75%); }
.hero-inner { position: relative; z-index: 2; padding-top: 164px; padding-bottom: 48px; }
.hero-copy { width: 570px; max-width: 100%; }
.hero .eyebrow { font-size: 11px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(56px, 5vw, 74px); line-height: 1.045; letter-spacing: -.045em; margin-bottom: 26px; }
.hero-description { font-size: 17px; line-height: 1.65; max-width: 475px; color: #27496d; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 26px; }
.hero-actions .secondary { background: #ffffffb8; }
.hero-support { margin-top: 13px; }
.hero-notice { font-size: 12px; line-height: 1.7; max-width: 360px; color: #385878; margin: 42px 0 0; }
.hero-image figcaption { position: absolute; z-index: 3; right: 40px; bottom: 27px; display: flex; align-items: center; gap: 8px; padding: 9px 13px; background: #102f58e6; border-radius: 3px; color: #fff; font-size: 12px; }
.hero-image figcaption .icon { width: 15px; height: 15px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 70px; margin-bottom: 44px; }
.section-heading > p { max-width: 405px; font-size: 15px; line-height: 1.75; color: var(--muted); margin-bottom: 3px; }
.section-heading .eyebrow { margin-bottom: 17px; }
.section-heading > .underlined { flex-shrink: 0; }
.feature-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 48px; }
.feature-item { display: flex; flex-direction: column; align-items: center; padding: 0 25px; text-align: center; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 66px; height: 66px; border-radius: 50%; background: #eaf3fa; color: var(--ink); }
.feature-icon .icon { width: 29px; height: 29px; }
.feature-item h3 { margin: 19px 0 10px; font-size: 16px; }
.feature-item p { font-size: 14px; line-height: 1.75; color: var(--muted); margin: 0; }
.feature-item:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.story-section { display: grid; grid-template-columns: .95fr 1.05fr; background: #fff; }
.story-image { position: relative; min-height: 590px; overflow: hidden; }
.story-image img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 50% 52%; }
.story-image figcaption { position: absolute; left: 32px; bottom: 28px; color: #fff; background: #102f58e6; padding: 8px 14px; font-size: 12px; border-radius: 3px; }
.story-copy { padding: 80px clamp(40px, 6vw, 104px); align-self: center; }
.story-copy h2 { font-size: clamp(35px, 3.4vw, 48px); margin-bottom: 24px; }
.story-copy > p { max-width: 520px; color: var(--muted); font-size: 16px; }
.check-list { list-style: none; padding: 0; margin: 25px 0 30px; font-size: 14px; }
.check-list li { position: relative; padding: 6px 0 6px 27px; }
.check-list li::before { content: '✓'; position: absolute; left: 0; font-weight: 600; color: var(--blue); }

/* One working sample, with honest labels and keyboard-accessible tabs. */
.sample { border-radius: 5px; overflow: hidden; background: #fff; }
.sample-top, .sample-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 17px 28px; }
.sample-label { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 500; }
.live-dot { width: 7px; height: 7px; background: #447a68; border-radius: 50%; }
.sample-body { display: grid; grid-template-columns: .95fr 1.2fr; min-height: 405px; }
.sample-stages { background: #f7f9fc; padding: 22px; }
.sample-stages button { display: flex; align-items: center; gap: 15px; width: 100%; min-height: 60px; padding: 12px 16px; color: #4a6076; text-align: left; background: transparent; border-radius: 3px; font-size: 14px; line-height: 1.5; }
.sample-stages button[aria-selected=true] { color: var(--ink); background: #e7f0f7; font-weight: 600; }
.stage-number { color: #526b83; font-size: 12px; width: 22px; flex-shrink: 0; }
.stage-arrow { visibility: hidden; margin-left: auto; }
.sample-stages button[aria-selected=true] .stage-arrow { visibility: visible; }
.sample-panels { padding: 38px 44px; }
.sample-panels .eyebrow { margin-bottom: 12px; font-size: 10px; }
.sample-panels h3 { font-size: 33px; margin-bottom: 18px; }
.sample-panels p { font-size: 14px; line-height: 1.75; color: var(--muted); max-width: 470px; }
.sample-task { display: flex; gap: 13px; align-items: center; padding: 11px 0; }
.sample-check { width: 25px; height: 25px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; color: #356950; background: #e9f1ec; font-size: 13px; }
.sample-check.empty { background: #e5edf4; }
.sample-task strong { display: block; font-size: 14px; font-weight: 500; }
.sample-task div > span { font-size: 12px; color: var(--muted); }
.sample-panels .underlined { margin-top: 12px; }
.sample-bottom { font-size: 12px; color: var(--muted); }
.sample-bottom a { color: var(--blue); font-weight: 500; padding-block: 6px; }
.sources-section { background: #fbfcfd; }
.authority-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.authority-item { padding: 22px 25px 10px; }
.authority-item:first-child { padding-left: 0; }
.authority-item:last-child { padding-right: 0; }
.authority-name { display: flex; align-items: center; min-height: 38px; font-size: 18px; font-weight: 600; letter-spacing: -.04em; }
.authority-item p { color: var(--muted); font-size: 14px; line-height: 1.7; min-height: 72px; margin: 14px 0; }
.authority-link { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; min-height: 44px; color: var(--blue); font-weight: 500; }
.authority-link .icon { width: 15px; height: 15px; }
.authority-item:hover .authority-link { text-decoration: underline; text-underline-offset: 5px; }
.source-note { font-size: 12px; color: var(--muted); margin: 38px 0 0; display: flex; justify-content: space-between; gap: 24px; }
.source-note a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.sfi-section { background: var(--ice); }
.sfi-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; }
.sfi-grid h2 { font-size: 44px; }
.sfi-grid > div > p { font-size: 15px; line-height: 1.8; color: var(--muted); }
.municipality-form { margin-top: 22px; }
.municipality-form > label { margin-bottom: 10px; }
.inline-form { display: flex; gap: 10px; align-items: stretch; }
.inline-form select { flex: 1; width: 50%; min-width: 0; }
.inline-form .button { white-space: nowrap; font-size: 13px; padding-inline: 16px; }
.municipality-form + .fine-print { margin: 14px 0 5px; font-size: 12px; }
.home-guides { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px; }
.home-guides > a { padding-top: 25px; display: flex; flex-direction: column; align-items: flex-start; }
.home-guides .eyebrow { font-size: 10px; margin-bottom: 15px; }
.home-guides h3 { font: 400 30px/1.18 var(--font-serif); letter-spacing: -.025em; margin-bottom: 25px; max-width: 330px; }
.home-guides .underlined { margin-top: auto; }
.plans-section { background: var(--warm); padding-block: 58px; }
.plan-strip { display: grid; grid-template-columns: 1.2fr 1fr 1.15fr auto; align-items: center; gap: 35px; }
.plan-strip > div:not(:first-child) { align-self: start; }
.plan-strip h2 { font-size: 34px; }
.plan-strip .eyebrow { font-size: 10px; }
.plan-strip h3 { font-size: 17px; margin-bottom: 10px; }
.plan-strip p { color: var(--muted); font-size: 13px; line-height: 1.7; margin-bottom: 12px; }
.plan-price { display: block; font-size: 26px; font-weight: 500; }
.plan-price span { font-size: 12px; font-weight: 400; }
.plan-strip .fine-print { display: block; font-size: 11px; margin-top: 5px; }
.plan-strip > .button { font-size: 13px; padding-inline: 16px; white-space: nowrap; }
.faq-section { display: grid; grid-template-columns: 1fr 1.5fr; gap: 100px; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 25px; cursor: pointer; min-height: 72px; padding-block: 18px; list-style: none; font-size: 15px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary > span { font-size: 22px; font-weight: 400; }
.faq details[open] summary > span { transform: rotate(45deg); }
.faq details p { font-size: 14px; line-height: 1.8; color: var(--muted); padding-bottom: 8px; max-width: 600px; }
.closing-section { position: relative; overflow: hidden; color: #fff; background: var(--ink); }
.closing-section > img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: 50% 89%; opacity: .35; }
.closing-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; padding-block: 62px; }
.closing-inner h2 { font-size: 49px; margin-bottom: 15px; }
.closing-inner p { font-size: 17px; margin: 0; }
.closing-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.closing-actions .underlined { color: #fff; font-size: 13px; }

/* Scroll progress seeks these paused keyframes; all visual styling stays here. */
@keyframes landing-parallax {
    from { transform: translate3d(0, calc(-1 * var(--parallax-travel)), 0); }
    to { transform: translate3d(0, var(--parallax-travel), 0); }
}
@media screen and (prefers-reduced-motion: no-preference) {
    .home-page [data-parallax].parallax-active { --parallax-travel: 8%; overflow: hidden; }
    .home-page [data-parallax].parallax-active > img {
        position: absolute;
        top: -10%;
        left: 0;
        width: 100%;
        height: 120%;
        animation: landing-parallax 1s linear both paused;
    }
}
@media screen and (max-width: 767px) and (prefers-reduced-motion: no-preference) {
    .home-page [data-parallax].parallax-active { --parallax-travel: 4%; }
    .home-page [data-parallax].parallax-active > img { top: -6%; height: 112%; }
}

/* Public information, authentication and forms share the same readable scale. */
.site-footer { background: #fff; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1.5fr; gap: 90px; }
/* Align the description with the wordmark text after the symbol and its gap. */
.footer-brand > p { max-width: 350px; font-size: 12px; color: var(--muted); margin-top: 16px; margin-inline-start: 58px; }
.footer-label { font-size: 11px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.footer-grid nav { display: flex; flex-direction: column; font-size: 13px; align-items: flex-start; gap: 7px; }
.footer-grid nav a { padding-block: 4px; }
.footer-grid nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-base { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; margin-top: 38px; padding-block: 22px; font-size: 11px; color: var(--muted); }
.photo-credits { max-width: 520px; font-size: 11px; }
.photo-credits summary { cursor: pointer; min-height: 30px; }
.photo-credits p { margin-top: 15px; }
.photo-credits a { text-decoration: underline; text-underline-offset: 3px; }
.public-page { min-height: 65vh; }
.public-page > h1 { max-width: 900px; font-size: clamp(42px, 4.5vw, 64px); margin-bottom: 35px; }
.public-page > .lead { margin-bottom: 40px; }
.public-page > .sfi-grid { margin-top: 55px; }
.public-page .price-grid { margin: 45px 0; }
.prose { max-width: 780px; font-size: 16px; line-height: 1.85; }
.prose p { margin-bottom: 24px; }
.prose h2 { font-size: 32px; margin: 40px 0 20px; }
.prose a:not(.button) { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }
.prose .button { margin: 12px 0 20px; }
.resource-row { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 28px 0; }
.resource-row:first-child { padding-top: 0; }
.resource-row .eyebrow { font-size: 10px; margin-bottom: 8px; }
.resource-row h3 { font-size: 18px; margin-bottom: 10px; }
.resource-row p { font-size: 14px; line-height: 1.8; color: var(--muted); margin: 0; max-width: 850px; }
.resource-row:hover h3 { text-decoration: underline; text-underline-offset: 5px; }
.external-arrow { font-size: 24px; color: var(--blue); flex-shrink: 0; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.price-block { padding: 40px; background: #fff; border-radius: 4px; }
.price-block.premium { background: var(--ice); }
.price-block h3 { font-size: 23px; margin-bottom: 20px; }
.price-block .eyebrow { font-size: 10px; }
.price { font-size: 48px; line-height: 1.2; letter-spacing: -.035em; margin-bottom: 15px; }
.price span { font-size: 14px; letter-spacing: 0; }
.price-block > p { font-size: 14px; color: var(--muted); }
.price-block .fine-print { margin-top: 17px; font-size: 12px; }
.how-list { list-style: decimal; padding-left: 40px; margin: 50px 0 65px; }
.how-list li { padding: 18px 0 18px 18px; max-width: 730px; }
.how-list h2 { font-size: 30px; margin-bottom: 17px; }
.how-list p { font-size: 15px; color: var(--muted); }
.guide-list { margin-top: 45px; max-width: 960px; }
.guide-list > a { display: block; padding: 32px 0; }
.guide-list h2 { font-size: 32px; margin: 10px 0 15px; }
.guide-list h2 span { float: right; color: var(--blue); }
.guide-list p { font-size: 15px; color: var(--muted); max-width: 780px; margin-bottom: 0; }
.page-cta { margin-top: 65px; padding: 40px; background: var(--ice); border-radius: 4px; }
.page-cta h2 { font-size: 32px; margin-bottom: 23px; }
.page-cta p { margin: 20px 0 0; }
.selected-municipality { padding: 32px; margin-top: 45px; background: var(--warm); }
.selected-municipality h2 { font-size: 32px; margin-bottom: 18px; }
.draft-note { background: #faf4e4; padding: 18px 22px; font-size: 13px; color: #685726; }
label { display: block; font-size: 14px; font-weight: 500; }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; min-width: 0; min-height: 48px; background: #edf3f8; border-radius: 4px; padding: 11px 13px; color: var(--ink); font-size: 15px; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--blue); flex-shrink: 0; }
label > input, label > select, textarea { margin-top: 8px; }
textarea { resize: vertical; }
.form-stack { display: flex; flex-direction: column; gap: 22px; }
.form-stack .button { align-self: flex-start; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.check-label { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; line-height: 1.7; font-weight: 400; }
.check-label input { margin-top: 4px; }
.check-label a { text-decoration: underline; color: var(--blue); text-underline-offset: 3px; }
.text-button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 0; background: transparent; color: var(--blue); font-size: 14px; text-decoration: underline; text-underline-offset: 4px; }
.text-button .icon { width: 18px; height: 18px; }
.flash, .error-summary { width: min(1280px, calc(100% - 40px)); margin: 20px auto; padding: 18px 22px; background: #eaf3ed; color: #264d3c; font-size: 14px; border-radius: 3px; }
.error-summary { color: #793e2d; background: #fbede6; }
.error-summary ul { padding-left: 20px; }
.skip-link { position: absolute; top: -80px; left: 15px; padding: 15px; z-index: 100; background: #fff; }
.skip-link:focus { top: 10px; }
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; max-width: 1020px; min-height: 590px; margin: 40px auto 90px; border-radius: 5px; overflow: hidden; }
.auth-aside { padding: 55px 44px; display: flex; flex-direction: column; justify-content: space-between; background: linear-gradient(#102f58b3, #102f58db), url('/images/stockholm-old-town-960.webp') center/cover; color: #fff; }
.auth-aside h2 { font-size: 44px; }
.auth-aside .eyebrow, .auth-aside .fine-print { color: #fff; }
.auth-aside .fine-print { max-width: 300px; margin-top: 35px; }
.auth-main { padding: 48px; background: #fff; }
.auth-main h1 { font-size: 40px; margin-bottom: 15px; }
.auth-main > p { font-size: 14px; color: var(--muted); margin-bottom: 27px; }
.auth-main .button { width: 100%; }
.auth-main .fine-print { margin-top: 20px; }
.auth-bottom { font-size: 14px; margin-top: 25px; }
.auth-bottom a { color: var(--blue); text-decoration: underline; text-underline-offset: 4px; }

/* The application emphasizes actions, legibility and recorded progress. */
.app-body { background: #f7f9fb; }
.app-body .site-header { position: sticky; top: 0; height: 84px; }
.app-body .header-inner { max-width: 1600px; width: calc(100% - 56px); }
.app-body .site-header .brand-symbol { width: 44px; height: 44px; }
.app-body .brand-copy strong { font-size: 22px; }
.header-context { font-size: 13px; color: var(--muted); margin-right: auto; padding-left: 35px; }
.account-profile { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.account-profile > .icon { width: 15px; height: 15px; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #e7eff5; color: var(--blue); font-size: 15px; font-weight: 600; }
.app-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); width: min(1600px, 100%); margin: auto; }
.app-nav { position: sticky; top: 84px; align-self: start; height: calc(100dvh - 84px); min-height: 580px; padding: 32px 18px 24px; background: #fff; display: flex; flex-direction: column; }
.app-nav > .eyebrow { color: #5c6e82; font-size: 10px; padding-left: 15px; margin-bottom: 18px; }
.app-nav nav > a { display: flex; align-items: center; gap: 12px; min-height: 47px; padding: 11px 14px; margin-bottom: 5px; border-radius: 4px; color: #4a6077; font-size: 13px; }
.app-nav nav > a .icon { width: 19px; height: 19px; }
.app-nav nav > a.active { color: var(--blue); font-weight: 600; background: #eaf2f8; }
.app-nav nav > a:hover { background: #f2f6fa; }
.nav-bottom { margin-top: auto; padding: 24px 14px 0; }
.plan-summary { display: flex; gap: 12px; align-items: center; }
.plan-summary > .icon { width: 21px; height: 21px; color: #6486a1; }
.plan-summary strong { display: block; font-size: 13px; }
.plan-summary span { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.nav-bottom .underlined { font-size: 12px; margin-top: 9px; }
.nav-bottom form { margin-top: 12px; }
.nav-bottom .text-button { text-decoration: none; font-size: 13px; color: var(--muted); }
.plan-label { display: inline-block; color: var(--blue); font-size: 12px; padding: 5px 10px; background: #eaf2f8; border-radius: 3px; }
.app-content { min-width: 0; padding: 38px clamp(28px, 3vw, 48px) 68px; }
.app-content .flash, .app-content .error-summary { width: 100%; margin-top: 0; }
.app-heading { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.app-heading .eyebrow { font-size: 10px; margin-bottom: 10px; }
.app-heading h1 { font-size: 39px; line-height: 1.2; letter-spacing: -.035em; }
.app-heading p { font-size: 14px; color: var(--muted); margin: 9px 0 0; }
.app-heading .button { font-size: 13px; padding: 12px 16px; min-height: 46px; white-space: nowrap; }
.panel { padding: 28px; border-radius: 5px; background: #fff; margin-bottom: 24px; }
.panel > h2 { font-size: 27px; margin-bottom: 18px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.panel-heading h2 { font: 600 18px/1.4 var(--font-sans); letter-spacing: -.02em; }
.panel-heading .eyebrow { font-size: 9px; margin-bottom: 9px; }
.panel-heading > a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--blue); font-size: 12px; white-space: nowrap; }
.panel-heading > a .icon { width: 15px; height: 15px; }
.panel-heading > .icon { width: 22px; height: 22px; color: #668aa6; }
.next-task { display: flex; align-items: flex-start; gap: 15px; padding: 21px 0; }
.next-task:last-child { padding-bottom: 0; }
.next-task > div { min-width: 0; }
.next-task h3 { font-size: 15px; line-height: 1.5; font-weight: 500; margin-bottom: 7px; }
.next-task p { font-size: 13px; line-height: 1.7; color: var(--muted); margin-bottom: 11px; }
.task-open { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 44px; margin-left: auto; flex-shrink: 0; color: var(--blue); border-radius: 3px; }
.task-open:hover { background: var(--ice); }
.task-open .icon { width: 19px; height: 19px; }
.status-badge { display: inline-block; padding: 4px 9px; border-radius: 3px; background: #eef3f7; color: #49617a; font-size: 11px; line-height: 1.5; white-space: nowrap; }
.status-badge.waiting { background: #faf2de; color: #725a22; }
.status-badge.action { background: #f9ecdf; color: #81502d; }
progress { display: block; width: 100%; height: 7px; border-radius: 3px; overflow: hidden; accent-color: var(--blue); background: #e7eef4; }
progress::-webkit-progress-bar { background: #e7eef4; border-radius: 3px; }
progress::-webkit-progress-value { background: var(--blue); border-radius: 3px; }
progress::-moz-progress-bar { background: var(--blue); border-radius: 3px; }
.journey-stage summary { display: flex; align-items: center; gap: 13px; min-height: 67px; cursor: pointer; list-style: none; font-size: 13px; line-height: 1.5; }
.journey-stage summary::-webkit-details-marker { display: none; }
.journey-stage summary .stage-number { color: var(--blue); font-size: 11px; width: 21px; }
.journey-stage summary .stage-state { margin-left: auto; color: var(--muted); font-size: 11px; white-space: nowrap; }
.journey-stage summary > span:last-child { width: 15px; text-align: center; font-size: 18px; }
.journey-stage[open] summary > span:last-child { transform: rotate(45deg); }
.stage-tasks { padding: 0 0 19px 34px; }
.mini-task { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 9px 0; font-size: 13px; }
.mini-task a { text-decoration: underline; text-underline-offset: 4px; text-decoration-color: #b1c4d4; }
.task-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 210px auto; align-items: end; gap: 18px; margin: 0 0 24px; }
.task-toolbar label { font-size: 12px; }
.task-toolbar .fine-print { padding-bottom: 13px; font-size: 12px; white-space: nowrap; }
.task-edit { padding: 30px 0; scroll-margin-top: 16px; }
.task-edit:first-of-type { padding-top: 0; }
.task-edit:last-child { padding-bottom: 0; }
.task-edit .eyebrow { font-size: 10px; margin-bottom: 10px; }
.task-edit h2 { font: 600 20px/1.4 var(--font-sans); letter-spacing: -.025em; margin-bottom: 12px; }
.task-edit p { font-size: 14px; color: var(--muted); max-width: 700px; margin-bottom: 23px; }
.task-edit .field-row { max-width: 700px; align-items: end; }
.task-edit .actions { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; margin-top: 20px; }
.task-edit .button { min-height: 46px; padding: 11px 19px; font-size: 13px; }
.task-edit .underlined { font-size: 13px; }
.task-edit > form + form { margin-top: 5px; }
.task-date { font-size: 12px; color: var(--muted); margin-top: 12px; }
.empty-state { padding: 20px 0; font-size: 14px; color: var(--muted); }
.checklist-intro { display: flex; gap: 18px; padding-bottom: 22px; margin-bottom: 4px; }
.checklist-intro > .icon { margin-top: 4px; color: var(--blue); }
.checklist-intro p { font-size: 14px; color: var(--muted); margin: 0; max-width: 790px; }
.checklist-row { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; gap: 22px; }
.checklist-row:last-child { padding-bottom: 0; }
.checklist-label { display: flex; gap: 15px; align-items: center; font-size: 15px; }
.checklist-symbol { background: #e5edf4; display: grid; place-items: center; width: 25px; height: 25px; border-radius: 3px; flex-shrink: 0; }
.is-complete .checklist-symbol { background: #e8f2ec; color: #35664c; }
.checklist-row .button { font-size: 12px; min-height: 44px; padding: 10px 14px; flex-shrink: 0; }
.sfi-panel .sfi-grid { grid-template-columns: 1fr 1.2fr; gap: 45px; padding: 8px 0 30px; }
.sfi-panel .sfi-grid h2 { font-size: 34px; }
.sfi-panel .sfi-grid p { font-size: 14px; }
.sfi-panel .inline-form { flex-wrap: wrap; }
.sfi-panel .inline-form select { width: 100%; flex-basis: 100%; }
.settings-block { max-width: 800px; padding: 28px; background: #fff; border-radius: 4px; margin-bottom: 24px; }
.settings-block h2 { font: 600 20px/1.4 var(--font-sans); margin-bottom: 17px; letter-spacing: -.02em; }
.settings-block p { font-size: 14px; color: var(--muted); }
.settings-block .form-stack { max-width: 590px; }
.billing-purchase { padding: 28px; border-radius: 4px; background: #fff; margin: 25px 0; }
.billing-purchase h2 { font-size: 30px; margin-bottom: 24px; }
.billing-details { display: grid; grid-template-columns: 1fr 1fr; gap: 23px; font-size: 14px; margin-bottom: 26px; overflow-wrap: anywhere; }
.billing-details dt { color: var(--muted); font-size: 12px; }
.billing-details dd { margin: 6px 0; }
.notice-box { max-width: 780px; background: #fff; border-radius: 4px; padding: 38px; margin: 45px 0; }
.notice-box h1 { font-size: 45px; margin-bottom: 25px; }
.notice-box p { font-size: 15px; color: var(--muted); }
.account-footer { max-width: 1600px; margin: auto; padding: 25px 35px; display: flex; justify-content: space-between; align-items: flex-start; gap: 50px; font-size: 11px; color: var(--muted); background: #fff; }
.account-footer p { max-width: 450px; margin: 0; }
.account-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.account-footer a { text-decoration: underline; text-underline-offset: 3px; }
.account-table { width: 100%; font-size: 13px; border-collapse: collapse; }
.account-table td, .account-table th { padding: 14px 9px; text-align: left; vertical-align: top; }
.account-table input { font-size: 13px; }
.admin-resource { padding: 28px 0; }
.admin-resource h2 { font-size: 27px; margin-bottom: 20px; }
hr { margin: 32px 0; }
.mfa-qr { margin: 22px 0; }
.mfa-qr svg { max-width: 100%; height: auto; }
.print-only { display: none; }
[hidden] { display: none !important; }
main:focus { outline: 0; }

@media (max-width: 1200px) {
    .header-inner { gap: 18px; width: calc(100% - 48px); }
    .desktop-nav { gap: 18px; font-size: 12px; }
    .brand-copy strong { font-size: 22px; }
    .header-actions .button { padding-inline: 14px; }
    .container { width: calc(100% - 80px); }
    .feature-item { padding-inline: 17px; }
    .authority-item { padding-inline: 17px; }
    .authority-name { font-size: 16px; }
    .story-copy { padding: 60px 45px; }
    .plan-strip { grid-template-columns: 1fr 1fr 1fr; }
    .plan-strip > .button { grid-column: 2 / 4; justify-self: start; }
    .app-shell { grid-template-columns: 215px minmax(0, 1fr); }
    .app-nav { padding-inline: 12px; }
    .app-nav nav > a { padding-inline: 10px; font-size: 12px; gap: 10px; }
    .app-content { padding-inline: 28px; }
    .panel { padding: 23px; }
    .sfi-panel .sfi-grid { display: block; }
    .sfi-panel .sfi-grid > div + div { margin-top: 25px; }
}
@media (max-width: 1000px) {
    .desktop-nav, .header-context { display: none; }
    .menu-toggle { display: block; }
    .site-header { height: 84px; }
    .home-page .site-header { height: 84px; background: #ffffffa6; }
    .hero { min-height: 710px; }
    .hero-inner { padding-top: 140px; }
    .hero-copy { width: 530px; }
    .hero h1 { font-size: 62px; }
    .hero::after { background: linear-gradient(90deg, #fff 0%, #fffffff2 40%, #ffffff85 65%, #ffffff00 95%); }
    .hero-image { width: 100%; }
    .feature-row { gap: 0; }
    .feature-item { padding-inline: 14px; }
    .feature-item h3 { font-size: 14px; }
    .feature-item p { font-size: 13px; }
    .feature-icon { width: 56px; height: 56px; }
    .section-heading { gap: 40px; }
    .section-heading > p { max-width: 340px; font-size: 14px; }
    .story-copy { padding: 45px 35px; }
    .story-copy h2 { font-size: 36px; }
    .story-copy p { font-size: 14px; }
    .story-image { min-height: 590px; }
    .authority-row { grid-template-columns: repeat(3, 1fr); row-gap: 30px; }
    .authority-item:nth-child(4) { padding-left: 0; }
    .authority-item p { min-height: 50px; }
    .source-note { display: block; }
    .source-note a { display: block; margin-top: 14px; }
    .sfi-grid { gap: 45px; }
    .sfi-grid h2 { font-size: 36px; }
    .inline-form { flex-wrap: wrap; }
    .inline-form select { width: 100%; flex-basis: 100%; }
    .home-guides { gap: 28px; }
    .home-guides h3 { font-size: 26px; }
    .faq-section { gap: 60px; }
    .footer-grid { gap: 45px; }
    .auth-wrap { margin-inline: 30px; }
    .auth-main { padding: 38px; }
    .app-shell { display: block; }
    .app-nav { display: none; }
    .app-content { padding: 32px; }
    .app-heading h1 { font-size: 36px; }
    .account-footer { padding-inline: 32px; gap: 30px; }
}
@media (max-width: 767px) {
    .container { width: calc(100% - 40px); }
    .section { padding-block: 56px; }
    .site-header, .home-page .site-header, .app-body .site-header { height: 76px; }
    .header-inner, .app-body .header-inner { width: calc(100% - 36px); gap: 12px; }
    .brand-symbol { width: 32px; height: 32px; }
    .site-header .brand-symbol, .site-footer .brand-symbol { width: 44px; height: 44px; }
    .brand-copy strong { font-size: 21px; letter-spacing: -.9px; }
    .site-header .wordmark .brand-copy strong, .site-footer .wordmark .brand-copy strong { font-size: 24px; }
    .brand-copy small { font-size: 10px; }
    .wordmark { gap: 7px; }
    .header-actions { gap: 1px; }
    .header-actions .login-link { display: none; }
    .header-actions .button { font-size: 11px; padding: 11px 12px; min-height: 44px; gap: 8px; white-space: nowrap; }
    .header-actions .button .icon { display: none; }
    .menu-toggle { padding-inline: 9px; }
    .hero { display: flex; flex-direction: column; padding-top: 76px; min-height: 0; }
    .hero-inner { padding-top: 34px; padding-bottom: 30px; order: 0; }
    .hero-copy { width: 100%; }
    .hero .eyebrow { font-size: 9px; margin-bottom: 20px; }
    .hero h1 { font-size: clamp(44px, 11.5vw, 62px); line-height: 1.07; margin-bottom: 22px; letter-spacing: -.04em; }
    .hero-description { font-size: 16px; line-height: 1.65; margin-bottom: 0; }
    .hero-description br { display: none; }
    .hero-actions { gap: 11px; margin-top: 24px; }
    .hero-actions .button { width: 100%; min-height: 49px; font-size: 13px; justify-content: space-between; padding-inline: 18px; }
    .hero-support { margin: 12px 0 0; font-size: 12px; }
    .hero-notice { position: static; max-width: 350px; width: auto; margin: 22px 0 0; padding: 0; background: none; color: #385878; font-size: 11px; line-height: 1.65; }
    .hero-image { position: relative; order: 1; inset: auto; width: 100%; height: 260px; }
    .hero-image img { object-position: 60% 45%; }
    .hero-image figcaption { right: 15px; bottom: auto; top: 15px; font-size: 10px; padding: 7px 10px; }
    .hero::after { display: none; }
    h2 { font-size: 35px; }
    .section-heading { display: block; margin-bottom: 30px; }
    .section-heading .eyebrow { font-size: 10px; margin-bottom: 15px; }
    .section-heading > p { max-width: none; margin: 23px 0 0; font-size: 14px; }
    .section-heading > .underlined { margin-top: 20px; }
    .feature-row { display: block; margin-top: 32px; }
    .feature-item { display: grid; grid-template-columns: 48px minmax(0, 1fr); column-gap: 19px; align-items: start; padding: 21px 0; text-align: left; }
    .feature-item:first-child { padding-top: 0; }
    .feature-item:last-child { padding-bottom: 0; }
    .feature-item .feature-icon { grid-row: 1 / 3; width: 48px; height: 48px; margin-top: 4px; }
    .feature-item .icon { width: 23px; height: 23px; }
    .feature-item h3 { margin: 0 0 7px; font-size: 16px; }
    .feature-item p { font-size: 14px; }
    .story-section { display: block; }
    .story-image { min-height: 0; height: 370px; }
    .story-image img { object-position: 50% 47%; }
    .story-image figcaption { left: 20px; bottom: 20px; font-size: 11px; }
    .story-copy { padding: 42px 20px 48px; }
    .story-copy h2 { font-size: 36px; margin-bottom: 22px; }
    .story-copy .eyebrow { font-size: 9px; }
    .story-copy > p { font-size: 15px; }
    .check-list { font-size: 14px; }
    .sample-top { display: block; padding: 17px 20px; }
    .sample-label { font-size: 11px; }
    .sample-top .fine-print { display: block; margin-top: 5px; font-size: 11px; }
    .sample-body { display: block; }
    .sample-stages { padding: 13px; }
    .sample-stages button { min-height: 54px; font-size: 12px; gap: 12px; padding: 11px 13px; }
    .sample-panels { padding: 28px 23px; }
    .sample-panels h3 { font-size: 29px; }
    .sample-panels p { font-size: 13px; }
    .sample-task strong { font-size: 13px; }
    .sample-task div > span { font-size: 11px; }
    .sample-bottom { display: block; padding: 17px 20px; font-size: 11px; }
    .sample-bottom a { display: inline-block; margin-top: 8px; min-height: 35px; }
    .authority-row { grid-template-columns: 1fr 1fr; gap: 22px 0; }
    .authority-item { padding: 10px 0 10px 20px; }
    .authority-item:nth-child(odd) { padding-left: 0; padding-right: 20px; }
    .authority-item:nth-child(even) { padding-left: 20px; }
    .authority-name { font-size: 16px; min-height: 35px; }
    .authority-item p { min-height: 72px; font-size: 13px; margin: 10px 0; }
    .authority-link { font-size: 12px; gap: 8px; }
    .source-note { font-size: 11px; margin-top: 28px; }
    .sfi-grid { display: block; }
    .sfi-grid > div + div { margin-top: 27px; }
    .sfi-grid h2 { font-size: 35px; }
    .sfi-grid > div > p { font-size: 14px; }
    .inline-form .button { width: 100%; justify-content: space-between; font-size: 14px; }
    .home-guides { display: block; }
    .home-guides > a { padding: 24px 0; }
    .home-guides > a:last-child { padding-bottom: 0; }
    .home-guides h3 { font-size: 29px; max-width: 340px; margin-bottom: 15px; }
    .plan-strip { display: block; }
    .plans-section { padding-block: 48px; }
    .plan-strip > div + div { margin-top: 28px; padding-top: 24px; }
    .plan-strip h2 { font-size: 35px; }
    .plan-strip .eyebrow { font-size: 9px; }
    .plan-strip p { font-size: 14px; }
    .plan-strip > .button { margin-top: 28px; }
    .faq-section { display: block; }
    .faq { margin-top: 28px; }
    .faq summary { font-size: 14px; min-height: 70px; }
    .faq details p { font-size: 13px; }
    .closing-inner { padding-block: 46px; display: block; }
    .closing-inner h2 { font-size: 39px; }
    .closing-inner p { font-size: 15px; }
    .closing-actions { align-items: flex-start; margin-top: 28px; gap: 8px; }
    .closing-actions .button { min-width: 230px; justify-content: space-between; }
    .closing-actions .underlined { font-size: 12px; }
    .site-footer { padding-top: 40px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 25px; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-brand > p { margin-block: 12px 0; margin-inline-start: 51px; }
    .footer-grid nav { font-size: 12px; gap: 6px; }
    .footer-label { font-size: 10px; }
    .footer-base { flex-wrap: wrap; font-size: 10px; gap: 15px; margin-top: 25px; }
    .footer-base > span:last-child { display: none; }
    .photo-credits { max-width: 100%; font-size: 10px; }
    .public-page > h1 { font-size: 40px; }
    .prose { font-size: 15px; }
    .prose h2 { font-size: 29px; }
    .lead { font-size: 18px; }
    .resource-row { gap: 18px; padding-block: 24px; }
    .resource-row h3 { font-size: 16px; }
    .resource-row p { font-size: 13px; }
    .price-grid { display: block; }
    .price-block { padding: 28px 24px; margin-bottom: 20px; }
    .price { font-size: 43px; }
    .price span { font-size: 12px; }
    .guide-list h2 { font-size: 28px; }
    .guide-list p { font-size: 14px; }
    .how-list { padding-left: 28px; }
    .how-list li { padding-left: 8px; }
    .how-list h2 { font-size: 27px; }
    .page-cta { padding: 28px; margin-top: 50px; }
    .page-cta h2 { font-size: 29px; }
    .selected-municipality { padding: 25px; }
    .selected-municipality h2 { font-size: 29px; }
    .auth-wrap { display: block; margin: 20px 20px 55px; min-height: auto; }
    .auth-aside { display: none; }
    .auth-main { padding: 30px 24px; }
    .auth-main h1 { font-size: 35px; }
    .auth-main > p, .auth-bottom { font-size: 13px; }
    .form-stack { gap: 20px; }
    .field-row { grid-template-columns: 1fr; gap: 20px; }
    input:not([type=checkbox]):not([type=radio]), select, textarea { font-size: 16px; }
    .check-label { font-size: 13px; }
    .account-profile > span:not(.avatar), .account-profile > .icon { display: none; }
    .account-profile { padding: 5px; }
    .app-body .brand-copy strong { font-size: 21px; }
    .app-content { padding: 27px 20px 45px; }
    .app-heading { align-items: flex-start; gap: 15px; margin-bottom: 24px; }
    .app-heading h1 { font-size: 34px; }
    .app-heading .eyebrow { font-size: 9px; margin-bottom: 9px; }
    .app-heading p { font-size: 13px; line-height: 1.7; margin-top: 10px; }
    .app-heading > .button { display: none; }
    .panel, .dashboard-side .panel { padding: 23px 21px; margin-bottom: 20px; }
    .panel-heading { gap: 12px; margin-bottom: 18px; }
    .panel-heading h2 { font-size: 17px; }
    .panel-heading > a { font-size: 11px; }
    .panel-heading .eyebrow { font-size: 8px; }
    .next-task { gap: 11px; padding-block: 21px; }
    .next-task h3 { font-size: 14px; }
    .next-task p { font-size: 12px; }
    .task-open { min-width: 31px; }
    .status-badge { font-size: 10px; }
    .journey-stage summary { gap: 9px; font-size: 12px; min-height: 68px; }
    .journey-stage summary .stage-number { width: 18px; font-size: 10px; }
    .journey-stage summary .stage-state { font-size: 10px; white-space: normal; width: 58px; text-align: right; flex-shrink: 0; }
    .journey-stage summary > span:last-child { font-size: 17px; flex-shrink: 0; }
    .stage-tasks { padding-left: 27px; }
    .mini-task { flex-wrap: wrap; align-items: flex-start; gap: 7px; font-size: 12px; }
    .mini-task a { flex: 1 1 140px; }
    .panel > .fine-print { font-size: 12px; }
    .task-toolbar { grid-template-columns: minmax(0, 1fr); gap: 15px; }
    .task-toolbar .fine-print { padding: 0; }
    .task-edit h2 { font-size: 18px; }
    .task-edit p { font-size: 13px; }
    .task-edit .field-row { grid-template-columns: 1fr; }
    .task-edit .actions { gap: 13px; }
    .task-edit .underlined { font-size: 12px; }
    .checklist-intro { gap: 12px; }
    .checklist-intro p { font-size: 13px; }
    .checklist-row { display: block; }
    .checklist-label { font-size: 14px; align-items: flex-start; }
    .checklist-row .button { margin: 15px 0 0 40px; font-size: 12px; }
    .sfi-panel .sfi-grid h2 { font-size: 32px; }
    .settings-block { padding: 24px 21px; }
    .settings-block h2 { font-size: 19px; }
    .settings-block p { font-size: 13px; }
    .settings-block .button { font-size: 13px; }
    .billing-purchase { padding: 23px 21px; }
    .billing-details { display: block; font-size: 13px; }
    .billing-details > div { margin-bottom: 20px; }
    .account-footer { display: block; padding: 23px 20px; font-size: 10px; }
    .account-footer nav { margin-top: 18px; gap: 12px 20px; font-size: 11px; }
    .notice-box { padding: 26px 22px; margin: 25px 0; }
    .notice-box h1 { font-size: 35px; }
    .notice-box p { font-size: 14px; }
    .account-table { font-size: 11px; }
    .account-table td, .account-table th { padding-inline: 5px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { transition: none !important; animation: none !important; }
}
@media print {
    .site-header, .app-nav, .site-footer, .account-footer, .no-print, .button, .flash { display: none !important; }
    .app-shell { display: block; }
    .app-content { padding: 0; }
    .container { width: 100%; }
    .print-only { display: block; }
    .panel { break-inside: avoid; }
    body { background: white; color: black; }
    .public-page { padding: 0; }
}

@media (max-width: 389px) {
    .header-inner, .app-body .header-inner { width: calc(100% - 20px); gap: 8px; }
    .site-header .wordmark, .site-footer .wordmark { gap: 5px; }
    .footer-brand > p { margin-inline-start: 49px; }
}

@media (max-width: 374px) {
    .site-header .wordmark .brand-copy strong, .site-footer .wordmark .brand-copy strong { font-size: 23px; }
    .header-actions > .button { display: none; }
    .hero h1 { font-size: 38px; }
    .authority-row { grid-template-columns: 1fr; gap: 0; }
    .authority-item:nth-child(n) { padding: 18px 0; }
    .authority-name { font-size: 18px; }
    .authority-item p { min-height: 0; }
}

/* A visual, personal journey overview. */
.account-search { display: flex; align-items: center; gap: 10px; width: min(330px, 35%); margin-left: auto; padding: 0 10px 0 14px; border-radius: 6px; background: #f0f5f9; }
.account-search > .icon { width: 18px; height: 18px; color: #6c849d; }
.account-search input[type=search] { min-width: 0; width: 100%; min-height: 42px; margin: 0; padding: 8px 0; background: transparent; font-size: 13px; }
.account-search button { display: grid; place-items: center; width: 30px; height: 36px; padding: 0; background: transparent; color: var(--blue); }
.account-search button .icon { width: 17px; height: 17px; }
.nav-help { display: flex; gap: 11px; margin: auto 0 24px; padding: 18px 14px; background: #eff6fb; border-radius: 6px; }
.nav-help > .icon { width: 21px; height: 21px; margin-top: 2px; color: var(--blue); }
.nav-help strong { font-size: 13px; }
.nav-help p { font-size: 12px; line-height: 1.6; margin: 5px 0 6px; color: var(--muted); }
.nav-help a { display: inline-flex; gap: 8px; align-items: center; min-height: 35px; color: var(--blue); font-size: 12px; }
.nav-help a .icon { width: 15px; height: 15px; }
.nav-help + .nav-bottom { margin-top: 0; }
.overview-page { --overview-gap: 24px; }
.overview-welcome { min-height: 290px; position: relative; overflow: hidden; isolation: isolate; border-radius: 9px; background: #dcebf4; }
.overview-welcome-image { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: center 100%; z-index: -2; }
.overview-welcome::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, #edf5fbeF 0%, #edf5fbdc 28%, #edf5fb70 52%, #edf5fb00 75%); z-index: -1; }
.overview-welcome-copy { padding: 28px 34px; max-width: 480px; }
.overview-welcome-copy .eyebrow { font-size: 10px; margin-bottom: 13px; overflow-wrap: anywhere; }
.overview-welcome h1 { font: 600 clamp(29px, 2.5vw, 40px)/1.15 var(--font-sans); letter-spacing: -.045em; max-width: 380px; }
.overview-welcome-copy p { font-size: 15px; line-height: 1.6; margin: 15px 0 19px; color: #254666; }
.overview-welcome .button { min-height: 44px; padding: 11px 18px; font-size: 13px; border-radius: 5px; gap: 25px; }
.overview-photo-credit { position: absolute; display: flex; gap: 8px; align-items: flex-start; right: 17px; top: 17px; padding: 9px 12px; border-radius: 5px; background: #163e60bb; color: #fff; font-size: 11px; line-height: 1.5; }
.overview-photo-credit > .icon { width: 14px; height: 14px; margin-top: 2px; }
.overview-photo-credit > .icon:last-of-type { width: 12px; height: 12px; }
.overview-photo-credit span > span { display: block; font-size: 8px; margin-top: 2px; opacity: .9; }
.overview-photo-credit span > a { display: block; color: #fff; font-size: 9px; line-height: 1.6; }
.overview-photo-credit span > a:hover { text-decoration: underline; }
.overview-grid { display: grid; grid-template-columns: minmax(0, 1fr) 285px; grid-template-areas: 'journey rail' 'lower rail' 'waiting rail'; gap: var(--overview-gap); align-items: start; margin-top: 27px; }
.journey-explorer { grid-area: journey; min-width: 0; }
.overview-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.overview-section-heading h2 { font: 600 25px/1.3 var(--font-sans); letter-spacing: -.035em; }
.overview-section-heading p { color: var(--muted); font-size: 13px; margin: 4px 0 0; }
.overview-section-heading > a { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; min-height: 35px; color: var(--blue); font-size: 12px; text-decoration: underline; text-underline-offset: 4px; }
.overview-section-heading > a .icon { width: 15px; height: 15px; }
.journey-map { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 24px 0 21px; }
.journey-stop { position: relative; display: flex; flex-direction: column; align-items: center; padding: 0 6px; background: transparent; color: var(--ink); font-size: 11px; line-height: 1.45; }
.journey-stop:not(:last-child)::after { content: ''; position: absolute; height: 2px; background: #c9d7e4; top: 23px; left: calc(50% + 26px); width: calc(100% - 52px); }
.journey-stop-icon { display: grid; place-items: center; width: 48px; height: 48px; background: #e8eff5; border-radius: 50%; margin-bottom: 9px; color: var(--blue); transition: background .18s, transform .18s; }
.journey-stop-icon .icon { width: 23px; height: 23px; }
.journey-stop.is-done .journey-stop-icon { background: var(--blue); color: #fff; }
.journey-stop.is-current .journey-stop-icon { background: #ffdb64; color: var(--ink); }
.journey-stop.is-skipped .journey-stop-icon { background: #f0f0ed; color: #6c756f; }
.journey-stop:hover .journey-stop-icon { transform: translateY(-3px); }
.journey-stop-label { display: block; max-width: 105px; font-weight: 500; min-height: 34px; }
.journey-stop-state { color: var(--muted); font-size: 9px; margin-top: 3px; }
.journey-stop[aria-selected=true] .journey-stop-label { color: var(--blue); font-weight: 600; }
.journey-stop[aria-selected=true]:not(.is-done):not(.is-current) .journey-stop-icon { background: #c9dfee; color: var(--ink); transform: translateY(-2px); }
.journey-stop.is-current[aria-selected=true] .journey-stop-icon { background: #ffdb64; }
.journey-stop.is-current .journey-stop-state { color: #665113; }
.journey-preview { padding: 18px 20px 12px; border-radius: 7px; background: #fcfaf1; }
.journey-preview-heading { display: flex; gap: 13px; align-items: center; }
.journey-preview-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #ffe28a; color: #174269; flex-shrink: 0; }
.journey-preview-icon .icon { width: 21px; height: 21px; }
.journey-preview-heading .fine-print { display: block; font-size: 10px; margin-bottom: 2px; }
.journey-preview-heading h3 { font-size: 14px; font-weight: 600; }
.journey-preview-heading > a { display: grid; place-items: center; margin-left: auto; min-height: 40px; min-width: 40px; color: var(--blue); }
.journey-preview > p { font-size: 12px; color: #52677a; line-height: 1.65; margin: 12px 0; }
.journey-preview-tasks { background: #ffffffa1; padding: 0 12px; border-radius: 4px; }
.journey-preview-tasks > a { display: flex; align-items: center; gap: 9px; min-height: 44px; padding: 9px 0; font-size: 11px; line-height: 1.5; }
.journey-preview-tasks > a > .icon { color: #708294; width: 15px; height: 15px; }
.journey-preview-tasks > a > span:not(.status-badge) { flex: 1; }
.journey-preview-tasks .status-badge { font-size: 9px; padding: 3px 6px; }
.journey-preview-tasks > a:hover > span:not(.status-badge) { text-decoration: underline; text-underline-offset: 3px; }
.journey-preview-details summary { display: flex; align-items: center; gap: 8px; min-height: 34px; cursor: pointer; list-style: none; color: var(--blue); font-size: 11px; }
.journey-preview-details summary::-webkit-details-marker { display: none; }
.journey-preview-details summary .icon { width: 13px; height: 13px; transition: transform .15s; }
.journey-preview-details[open] summary .icon { transform: rotate(90deg); }
.journey-preview-note { display: block; margin-top: 10px; color: #6b725f; font-size: 9px; }
.overview-lower { grid-area: lower; display: grid; grid-template-columns: 1.12fr 1fr; gap: 20px; min-width: 0; }
.overview-page .panel { margin: 0; padding: 22px; border-radius: 7px; }
.overview-card-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 17px; }
.overview-card-heading h2 { font: 600 17px/1.4 var(--font-sans); letter-spacing: -.025em; }
.overview-card-heading > a { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; color: var(--blue); font-size: 11px; white-space: nowrap; }
.overview-card-heading > a .icon { width: 15px; height: 15px; }
.overview-card-icon { color: #85a1b7; }
.overview-card-icon .icon { width: 18px; height: 18px; }
.overview-progress-label { display: flex; align-items: baseline; gap: 12px; justify-content: space-between; margin: 21px 0 10px; }
.overview-progress-label > span { font-size: 12px; max-width: 170px; }
.overview-progress-label > strong { font-size: 22px; line-height: 1; letter-spacing: -.04em; }
.overview-progress progress { height: 9px; border-radius: 6px; }
.overview-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 25px 0 20px; }
.overview-stats > div { display: grid; grid-template-columns: 29px 1fr; gap: 3px 7px; align-items: center; }
.stat-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: #e6eff8; color: var(--blue); flex-shrink: 0; }
.stat-icon .icon { width: 17px; height: 17px; }
.stat-icon.complete { background: var(--blue); color: #fff; }
.stat-icon.todo { background: #ffe390; color: #66501b; }
.overview-stats .stat-icon { grid-column: 1; grid-row: 1; }
.overview-stats strong { font-size: 17px; }
.overview-stats div > span:last-child { grid-column: 1 / -1; font-size: 9px; color: var(--muted); margin-top: 5px; }
.overview-progress-note { color: var(--muted); font-size: 10px; line-height: 1.65; margin: 15px 0 0; }
.overview-progress .underlined { font-size: 11px; min-height: 35px; margin-top: 8px; }
.overview-authorities > a { display: flex; align-items: center; gap: 11px; min-height: 58px; padding: 10px 0; }
.overview-authorities > a:last-child { padding-bottom: 0; }
.authority-symbol { display: grid; place-items: center; width: 33px; height: 36px; color: var(--blue); background: #edf3f8; border-radius: 5px; flex-shrink: 0; }
.authority-symbol.migration { color: #a52c46; background: #fbf0f2; }
.authority-symbol.social-insurance { color: #26734f; background: #edf5ef; }
.authority-symbol.healthcare { color: #9d3554; background: #faf0f3; }
.authority-symbol .icon { width: 21px; height: 21px; }
.overview-authorities a > span:nth-child(2) { display: block; flex: 1; min-width: 0; }
.overview-authorities strong { display: block; font-size: 12px; }
.overview-authorities a > span > span { display: block; margin-top: 2px; font-size: 10px; line-height: 1.5; color: var(--muted); }
.overview-authorities a > .icon { width: 12px; height: 12px; color: #7991a8; }
.overview-authorities a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.overview-waiting { grid-area: waiting; }
.waiting-count { font-size: 10px; color: #7b642c; background: #fbf3dd; padding: 3px 8px; border-radius: 3px; }
.overview-waiting-task { display: flex; gap: 12px; align-items: center; min-height: 44px; }
.overview-waiting-task > span:nth-child(2) { flex: 1; }
.overview-waiting-task strong { font-size: 12px; display: block; }
.overview-waiting-task > span > span { display: block; font-size: 10px; color: var(--muted); margin-top: 3px; }
.overview-waiting-task > .icon { width: 16px; height: 16px; color: var(--blue); }
.overview-rail { grid-area: rail; display: grid; gap: 18px; min-width: 0; }
.overview-page .overview-next { padding: 18px 19px; }
.overview-next .overview-card-heading { margin-bottom: 0; }
.overview-next .overview-card-heading h2 { font-size: 15px; }
.overview-next-hint { color: var(--muted); font-size: 10px; margin: 3px 0 12px; }
.overview-task { display: flex; gap: 10px; padding: 15px 0; }
.overview-task:last-child { padding-bottom: 0; }
.task-complete { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 4px; padding: 3px; margin-top: 2px; color: transparent; background: #e6eff7; transition: background .15s, color .15s; }
.task-complete .icon { width: 17px; height: 17px; }
.task-complete:hover, .task-complete:focus-visible { color: #fff; background: var(--blue); }
.overview-task-link { display: block; flex: 1; min-width: 0; }
.overview-task-link strong { display: block; font-size: 13px; font-weight: 500; line-height: 1.5; }
.overview-task-link > span:not(.status-badge) { display: block; margin-top: 3px; font-size: 10px; color: var(--muted); }
.overview-task-link .status-badge { margin-top: 8px; font-size: 9px; padding: 3px 6px; }
.overview-task-link:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.overview-tasks-clear { padding: 18px 0 0; }
.overview-tasks-clear > .icon { color: var(--blue); width: 30px; height: 30px; margin-bottom: 13px; }
.overview-tasks-clear h3 { font-size: 15px; margin-bottom: 8px; }
.overview-tasks-clear p, .overview-tasks-clear .underlined { font-size: 12px; }
.overview-sfi { display: flex; gap: 13px; padding: 20px; border-radius: 7px; background: #e6f2fc; }
.overview-sfi > .stat-icon { width: 27px; height: 27px; background: var(--blue); color: #fff; }
.overview-sfi h2 { font: 600 14px/1.5 var(--font-sans); letter-spacing: -.02em; }
.overview-sfi p { font-size: 12px; line-height: 1.7; margin: 9px 0; color: #49647f; }
.overview-sfi a { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; color: var(--blue); font-size: 11px; font-weight: 500; }
.overview-sfi a .icon { width: 16px; height: 16px; }
.overview-city-card { position: relative; display: block; overflow: hidden; isolation: isolate; min-height: 220px; padding: 23px; border-radius: 7px; background: #234a6b; color: #fff; }
.overview-city-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% center; z-index: -2; transition: transform .3s; }
.overview-city-card::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #1236528c, #12365230 55%, #123652d9); z-index: -1; }
.overview-city-card:hover img { transform: scale(1.04); }
.overview-city-copy { display: flex; flex-direction: column; min-height: 174px; }
.overview-city-copy > span:first-child { font: 400 28px/1.1 var(--font-serif); letter-spacing: -.025em; }
.overview-city-copy > span:last-child { display: flex; gap: 8px; align-items: center; margin-top: auto; font-size: 10px; }
.overview-city-copy .icon { width: 15px; height: 15px; }
.overview-self-paced { display: flex; gap: 10px; justify-content: center; font-size: 10px; line-height: 1.7; color: var(--muted); margin: 0; }
.overview-self-paced .icon { width: 18px; height: 18px; margin-top: 2px; }
.overview-undo { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 17px; margin-bottom: 20px; border-radius: 6px; background: #f1f8f3; }
.overview-undo > span { display: flex; gap: 10px; align-items: center; font-size: 12px; }
.overview-undo > span .icon { width: 18px; height: 18px; color: #377559; }
.overview-undo .text-button { white-space: nowrap; font-size: 12px; }
.journey-stage { scroll-margin-top: 15px; }
.journey-stage:target { background: #fffaf0; }
@media (min-width: 1001px) and (max-width: 1250px) {
    .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
    .app-content { padding: 28px; }
    .overview-grid { grid-template-columns: minmax(0, 1fr) 240px; gap: 18px; }
    .overview-lower { grid-template-columns: 1fr; }
    .overview-welcome-copy { max-width: 400px; }
    .overview-photo-credit { right: 12px; top: 12px; }
    .journey-stop { font-size: 10px; padding-inline: 3px; }
    .journey-stop-icon { width: 43px; height: 43px; }
    .journey-stop:not(:last-child)::after { top: 21px; }
}
@media (max-width: 1000px) {
    .overview-grid { grid-template-columns: minmax(0, 1fr) 260px; gap: 22px; }
    .overview-lower { grid-template-columns: 1fr; }
    .overview-welcome-copy { max-width: 430px; }
    .overview-welcome h1 { font-size: 34px; }
    .journey-stop { padding-inline: 2px; font-size: 10px; }
    .journey-stop-icon { width: 40px; height: 40px; }
    .journey-stop-icon .icon { width: 20px; height: 20px; }
    .journey-stop:not(:last-child)::after { top: 20px; left: calc(50% + 22px); width: calc(100% - 44px); }
    .journey-stop-label { min-height: 43px; }
    .journey-stop-state { font-size: 8px; }
    .journey-preview-tasks > a { flex-wrap: wrap; }
    .journey-preview-tasks .status-badge { margin-left: 24px; }
    .journey-preview-tasks > a > .icon:last-child { margin-left: auto; }
}
@media (max-width: 767px) {
    .account-search { display: none; }
    .overview-welcome { min-height: 355px; }
    .overview-welcome-image { object-position: 65% 100%; }
    .overview-welcome::before { background: linear-gradient(90deg, #edf5fbf5, #edf5fbd9 50%, #edf5fb25); }
    .overview-welcome-copy { padding: 27px 23px 96px; max-width: 360px; }
    .overview-welcome-copy .eyebrow { font-size: 9px; }
    .overview-welcome h1 { font-size: 31px; max-width: 290px; }
    .overview-welcome-copy p { font-size: 13px; margin: 13px 0 18px; }
    .overview-welcome .button { font-size: 12px; min-height: 44px; }
    .overview-photo-credit { top: auto; bottom: 13px; right: 13px; padding: 7px 10px; min-width: 175px; }
    .overview-grid { display: flex; flex-direction: column; gap: 22px; margin-top: 25px; }
    .overview-grid > *, .overview-lower > *, .overview-rail > * { width: 100%; }
    .overview-lower, .overview-rail { display: contents; }
    .journey-explorer { order: 0; }
    .overview-next { order: 1; }
    .overview-progress { order: 2; }
    .overview-links { order: 3; }
    .overview-sfi { order: 4; }
    .overview-waiting { order: 5; }
    .overview-city-card { order: 6; }
    .overview-self-paced { order: 7; }
    .overview-section-heading { gap: 12px; }
    .overview-section-heading h2 { font-size: 23px; }
    .overview-section-heading p { font-size: 12px; max-width: 240px; }
    .overview-section-heading > a { font-size: 10px; gap: 4px; }
    .journey-map { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 4px; padding: 23px 0; }
    .journey-stop { font-size: 11px; padding-inline: 3px; }
    .journey-stop-icon { width: 44px; height: 44px; margin-bottom: 8px; }
    .journey-stop-label { min-height: 32px; }
    .journey-stop-state { font-size: 9px; }
    .journey-stop:not(:last-child)::after { top: 22px; left: calc(50% + 25px); width: calc(100% - 46px); }
    .journey-stop:nth-child(3)::after { display: none; }
    .journey-preview { padding: 16px; }
    .journey-preview-heading h3 { font-size: 13px; }
    .journey-preview-heading { gap: 10px; }
    .journey-preview-heading > a { min-width: 26px; }
    .journey-preview-tasks > a > span:not(.status-badge) { flex-basis: calc(100% - 35px); }
    .journey-preview-tasks .status-badge { margin-left: 24px; }
    .journey-preview-note { font-size: 9px; }
    .overview-page .panel { padding: 21px; margin: 0; }
    .overview-progress-label > span { max-width: none; }
    .overview-card-heading h2 { font-size: 17px; }
    .overview-next-hint { font-size: 11px; }
    .overview-task-link strong { font-size: 13px; }
    .overview-task-link > span:not(.status-badge) { font-size: 11px; }
    .overview-task { gap: 10px; }
    .task-complete { width: 34px; height: 34px; }
    .overview-stats { margin: 23px 0 18px; gap: 15px; }
    .overview-stats strong { font-size: 20px; }
    .overview-stats div > span:last-child { font-size: 10px; }
    .overview-authorities strong { font-size: 12px; }
    .overview-authorities a > span > span { font-size: 10px; }
    .overview-authorities > a { min-height: 65px; }
    .overview-authorities > a > .icon { width: 14px; height: 14px; }
    .overview-sfi { padding: 21px; }
    .overview-sfi p { font-size: 13px; }
    .overview-sfi a { font-size: 12px; }
    .overview-undo { display: block; }
    .overview-undo .text-button { margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .journey-stop-icon, .overview-city-card img { transition: none; }
}
@media (min-width: 1100px) {
    .journey-preview { position: relative; display: grid; grid-template-columns: minmax(190px, .85fr) minmax(0, 1fr); column-gap: 25px; padding-right: 53px; }
    .journey-preview[hidden] { display: none; }
    .journey-preview-heading { grid-column: 1; }
    .journey-preview-heading > a { position: absolute; right: 10px; top: 17px; }
    .journey-preview > p { grid-column: 2; grid-row: 1; align-self: center; margin: 0; padding-left: 18px; }
    .journey-preview-details, .journey-preview-note { grid-column: 1 / -1; }
    .journey-preview-details { margin-top: 7px; }
    .journey-preview-note { margin-top: 3px; }
}
@media (min-width: 1001px) {
    .app-nav { overflow-y: auto; min-height: 0; scrollbar-width: thin; }
    .app-nav > * { flex-shrink: 0; }
}
