:root {
  --navy: #0e3a66;
  --ink: #0a2b4c;
  --lime: #a8d437;
  --paper: #f1f4ea;
  --muted: #556b78;
  --line: #cbd6cc;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 115px; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; font-size: 17px; line-height: 1.6; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a, input, textarea, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
[hidden] { display: none !important; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--navy); outline-offset: 4px; }
.av-footer a:focus-visible, .av-footer button:focus-visible, .certificate-preview a:focus-visible, .button:not(.lime):focus-visible, .cookie-banner a:focus-visible, .cookie-banner button:focus-visible { outline-color: var(--lime); }
h1,h2,h3,h4,p { margin-top: 0; }
h1,h2,.wordmark { font-family: "Archivo Black", sans-serif; font-weight: 400; }
h1,h2 { letter-spacing: -.055em; line-height: .99; }
h2 { font-size: clamp(2.6rem, 5.4vw, 5.3rem); }
h3 { font-size: 1.6rem; letter-spacing: -.035em; line-height: 1.2; }
h4 { font-size: 1.12rem; line-height: 1.4; }
h1 span,h2 span { color: #477613; }
.av-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 94px; padding: 16px clamp(22px, 5vw, 84px); background: #f1f4eaf2; border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.wordmark { display: block; font-size: 1.55rem; letter-spacing: -.07em; text-decoration: none; line-height: .88; }
.wordmark > span { display: block; }
.wordmark-arrow { color: #557d1d; }
.av-header nav { display: flex; gap: 32px; font-size: .91rem; font-weight: 700; }
.av-header nav a { text-decoration: none; }
.av-header nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.button { border: 1px solid var(--navy); background: var(--navy); color: white; display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 15px 24px; border-radius: 4px; text-decoration: none; font-weight: 700; min-height: 52px; line-height: 1.3; transition: transform 180ms; }
.button:hover { transform: translateY(-2px); }
.button.lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.button.small { font-size: .88rem; min-height: 44px; padding: 12px 18px; }
.button:disabled { opacity: .6; cursor: wait; }
.actions { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.text-link { text-underline-offset: 6px; font-weight: 700; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .74rem; font-weight: 700; margin-bottom: 28px; }
.av-section { position: relative; padding: clamp(72px, 9vw, 140px) clamp(24px, 6vw, 100px); }
.hero { min-height: calc(100svh - 94px); display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; padding-top: 64px; padding-bottom: 68px; }
.hero h1 { font-size: clamp(4rem, 7.4vw, 7.4rem); margin-bottom: 35px; }
.hero-copy { max-width: 790px; }
.intro { font-size: 1.12rem; max-width: 38ch; margin-bottom: 32px; }
.territory-caption { justify-self: end; align-self: end; display: grid; gap: 18px; max-width: 300px; text-decoration: none; padding: 24px; border-left: 3px solid var(--lime); background: #f1f4eae8; }
.territory-caption span { font-size: .8rem; }
.territory-caption strong { font-size: 2rem; line-height: 1.06; letter-spacing: -.04em; }
.territory-backdrop { position: fixed; inset: 0; z-index: -1; background: var(--paper); }
#avanza-map { position: absolute; inset: 0; }
.territory-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #f1f4eaf7 0%, #f1f4eae5 30%, #f1f4ea4d 65%, #0e3a660f); pointer-events: none; }
.territory-controls { position: fixed; bottom: 0; left: 0; right: 0; z-index: 25; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 7px 20px; background: #f1f4eaf0; border-top: 1px solid var(--line); font-size: .7rem; }
.quiet-button { background: transparent; color: var(--ink); border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; min-height: 42px; font-weight: 700; }
.map-sign { display: flex; flex-direction: column; align-items: center; white-space: nowrap; pointer-events: none; opacity: .86; }
.map-sign span { border: 1px solid #ffffffc7; background: #0e3a66e6; color: white; padding: 6px 12px; border-radius: 3px; font-size: 12px; font-weight: 700; box-shadow: 4px 5px 0 #0e3a6633; }
.map-sign::after { content: ""; height: 24px; width: 2px; background: var(--navy); opacity: .7; }
.next-step { display: grid; grid-template-columns: 1.35fr 1fr; gap: 70px; align-items: center; background: #f1f4eaab; border-block: 1px solid var(--line); }
.next-panel { max-width: 38ch; font-size: 1.14rem; }
.next-panel .button { font-size: .93rem; margin-top: 12px; }
.section-heading { margin-bottom: 54px; }
.surface { padding: clamp(24px, 3vw, 42px); background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.questions-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 46px; align-items: start; }
label { display: block; font-size: .88rem; font-weight: 600; margin: 12px 0 8px; }
input, textarea, select { width: 100%; padding: 13px 14px; border: 1px solid #a5b6bb; border-radius: 4px; color: var(--ink); background: white; }
textarea { resize: vertical; }
fieldset { border: 0; margin: 20px 0; padding: 0; }
legend { font-size: .9rem; font-weight: 700; margin-bottom: 10px; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: .88rem; line-height: 1.5; font-weight: 400; }
.check input { width: 19px; height: 19px; flex: 0 0 19px; margin: 2px 0 0; accent-color: var(--navy); }
.form-help { font-size: .78rem; color: var(--muted); margin-top: 18px; }
.library-top { display: grid; grid-template-columns: 1fr; gap: 12px; padding-bottom: 24px; }
.library-top h3 { margin: 0; }
.library-top h3 span { font-size: 1rem; color: var(--muted); }
.question-card { border-bottom: 1px solid var(--line); padding: 24px 0; }
.question-meta { font-size: .73rem; color: var(--muted); margin-bottom: 9px; }
.question-card h4 { margin-bottom: 12px; }
.question-card p:last-child { margin: 0; }
.pending { font-size: .8rem; color: var(--muted); }
.video-answer { display: flex; align-items: center; gap: 16px; font-size: .86rem; font-weight: 700; }
.video-answer img { width: 130px; height: 74px; object-fit: cover; border-radius: 3px; }
#load-questions { margin-top: 20px; }
.quiz-section { display: grid; grid-template-columns: 1.1fr 1fr; gap: 7vw; align-items: start; background: #e4ecccbb; border-block: 1px solid var(--line); }
.quiz-intro h2 { font-size: clamp(3rem, 5.8vw, 5.8rem); }
.quiz-intro > p:not(.eyebrow) { max-width: 43ch; }
.quiz-surface { margin-top: 45px; box-shadow: 0 14px 36px #0e3a6609; }
.quiz-option { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); padding: 14px; border-radius: 4px; cursor: pointer; }
.quiz-option:has(input:checked) { border-color: var(--navy); background: #eaf1f7; }
.quiz-option input { width: 20px; height: 20px; flex: 0 0 20px; accent-color: var(--navy); }
#quiz-question legend { font-size: 1.4rem; line-height: 1.3; }
progress { width: 100%; height: 5px; accent-color: var(--lime); }
.quiz-review { padding: 16px 0; border-top: 1px solid var(--line); font-size: .85rem; }
.quiz-review a { display: block; }
.chat-bubble { background: #eaf1f7; padding: 12px 16px; border-radius: 12px 12px 12px 2px; margin: 12px 25px 12px 0; font-size: .92rem; }
.chat-bubble.reply { background: #e7f2c9; margin: 12px 0 12px 25px; border-radius: 12px 12px 2px 12px; }
#chat-messages { max-height: 320px; overflow: auto; }
#chat-form .button { margin-top: 16px; }
#registration-review { font-size: .88rem; overflow-wrap: anywhere; }
#registration-review dt { font-weight: 700; }
#registration-review dd { margin: 0 0 10px; }
.heading-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; }
.heading-row > p { padding-bottom: 25px; }
.stories-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.story-card { background: white; border-radius: 6px; overflow: hidden; border: 1px solid var(--line); }
.story-card a { text-decoration: none; display: block; height: 100%; }
.story-card img { width: 100%; height: auto; aspect-ratio: 1.7; object-fit: cover; }
.story-content { display: grid; gap: 18px; padding: 24px; font-size: .92rem; }
.story-content h3,.story-content .eyebrow { margin: 0; }
.story-content h3 { font-size: 1.35rem; }
.story-content .text-link { text-decoration: underline; }
.territory-window { min-height: 85vh; padding-bottom: 90px; }
.territory-links { display: flex; flex-wrap: wrap; gap: 12px; max-width: 640px; }
.territory-links a { background: #f1f4eaf2; border: 1px solid var(--line); padding: 12px 16px; font-size: .9rem; border-radius: 4px; text-decoration: none; }
.territory-links small { display: block; font-size: .7rem; }
.map-source { max-width: 60ch; font-size: .74rem; margin-top: 24px; background: #f1f4eae0; }
.av-footer { background: var(--navy); color: white; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 28px; padding: 55px 6vw 85px; font-size: .85rem; }
.av-footer p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: center; }
.footer-link-btn { background: transparent; border: 0; color: inherit; padding: 0; font-weight: inherit; text-decoration: underline; text-underline-offset: 4px; }
.legal-page h2 { font-size: clamp(1.35rem, 2.5vw, 1.85rem); letter-spacing: -.03em; line-height: 1.2; margin: 34px 0 12px; }
.legal-summary { margin: 28px 0; display: grid; gap: 8px; border-left: 4px solid var(--lime); }
.legal-summary p { margin: 0; }
.legal-section ul { padding-left: 20px; display: grid; gap: 8px; }
.legal-quote { margin: 16px 0; padding: 16px 20px; background: #eaf1f7; border-left: 4px solid var(--navy); border-radius: 4px; }
.legal-quote p:last-child { margin-bottom: 0; }
.legal-table-wrap { overflow-x: auto; margin: 16px 0; }
.legal-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); font-size: .9rem; }
.legal-table th, .legal-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal-table th { background: var(--navy); color: #fff; font-weight: 700; }
.cookie-banner { position: fixed; right: 24px; top: 110px; z-index: 45; width: min(350px, calc(100vw - 32px)); background: var(--navy); color: #fff; border: 2px solid var(--lime); border-radius: 8px; padding: 16px 18px; box-shadow: 0 16px 36px #0a2b4c47; }
.cookie-title { font-weight: 700; font-size: .95rem; margin-bottom: 6px; color: var(--lime); }
.cookie-copy { font-size: .82rem; line-height: 1.45; margin-bottom: 14px; }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.cookie-btn-dark { color: #fff; border-color: #ffffff66; font-size: .82rem; min-height: 40px; padding: 8px 12px; }
.cookie-config-link { background: transparent; border: 0; color: #fff; font-size: .82rem; text-decoration: underline; padding: 6px 4px; }
.cookie-modal { position: fixed; inset: 0; z-index: 80; background: #0a2b4c99; display: grid; place-items: center; padding: 16px; }
.cookie-modal-card { width: min(540px, 100%); max-height: 90dvh; overflow-y: auto; }
.cookie-modal-card h2 { font-size: 1.8rem; margin-bottom: 10px; }
.cookie-pref-item { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; margin: 12px 0; background: var(--paper); }
.cookie-pref-item p, .cookie-pref-item small { display: block; margin: 4px 0 0; font-size: .82rem; color: var(--muted); }
.cookie-badge { background: var(--navy); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.cookie-modal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.document-page { max-width: 900px; margin: 0 auto; padding: 80px 24px; min-height: 65vh; }
.document-page h1 { font-size: clamp(2.3rem, 5vw, 4.4rem); }
.document-page > img { width: 100%; height: auto; margin-block: 24px; }
.document-body img { max-width: 100%; height: auto; }
.certificate-preview { padding: 48px 30px; background: var(--navy); border: 8px solid var(--lime); color: white; text-align: center; margin-block: 32px; }
.certificate-preview h2 { font-size: 2.3rem; letter-spacing: -.04em; line-height: 1.15; }
.certificate-name { font-size: 2rem; overflow-wrap: anywhere; margin-block: 30px; }
#share-card { width: 100%; height: auto; max-width: 500px; margin-top: 30px; }
.sr-only,.honeypot { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 100; top: -100px; left: 20px; background: white; padding: 14px; }
.skip-link:focus { top: 12px; }
#question-status,#quiz-status,#registration-status { font-size: .88rem; overflow-wrap: anywhere; }
@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr .65fr; }
  .questions-grid,.quiz-section,.next-step { gap: 32px; }
  .stories-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  html { scroll-padding-top: 100px; }
  .av-header { min-height: 78px; padding: 14px 16px; gap: 10px; }
  .av-header nav { display: none; }
  .wordmark { font-size: 1.12rem; }
  .av-header .button.small { font-size: .8rem; min-height: 40px; padding: 8px 12px; white-space: nowrap; }
  .hero { display: block; padding-top: 44px; }
  .hero h1 { font-size: clamp(2.55rem, 11.2vw, 4.4rem); }
  h2 { font-size: clamp(2.15rem, 9.6vw, 3.6rem); }
  .quiz-intro h2 { font-size: clamp(2.2rem, 10vw, 3.8rem); }
  .hero .territory-caption { margin-top: 45px; max-width: 100%; }
  .territory-caption strong { font-size: 1.4rem; }
  .territory-shade { background: #f1f4eabd; }
  .questions-grid,.quiz-section,.next-step,.stories-grid { grid-template-columns: 1fr; }
  .next-step { gap: 10px; }
  .next-panel { font-size: 1rem; }
  .quiz-surface { margin-top: 0; }
  .heading-row { display: block; }
  .av-section { padding-inline: 18px; }
  .hero { min-height: auto; }
  .question-library { min-width: 0; }
  .button { font-size: .9rem; }
  .territory-controls { padding: 5px 12px; }
  .territory-controls > span { max-width: 60%; font-size: .6rem; }
  .av-footer { align-items: start; flex-direction: column; }
  .map-sign span { font-size: 11px; padding: 4px 7px; }
  .cookie-banner { top: auto; left: 12px; right: 12px; width: auto; bottom: 56px; padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .button { transition: none; }
  .button:hover { transform: none; }
}

body { isolation: isolate; }
.territory-backdrop { pointer-events: none; }
#avanza-map .maplibregl-ctrl-attrib { margin-bottom: 55px; background: #f1f4eae8; font-size: 10px; }
#avanza-map .maplibregl-ctrl-attrib a { pointer-events: auto; }
