:root {
  color-scheme: light;
  font-family: "Source Sans 3", system-ui, sans-serif;
  background: #f4f2e9;
  color: #203237;
  --ink: #203237;
  --accent: #8d3829;
  --action: #213b42;
  --muted: #536366;
  --line: #cdd1c7;
  --paper: #fcfaf3;
  --water: #d4e1df;
  --land: #ebe9d8;
  --border-map: #a1b4ad;
  --selected: #e1caac;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: default; }
:focus-visible { outline: 3px solid #176fb1; outline-offset: 3px; }
[hidden] { display: none !important; }
.mast, main, footer { width: min(1312px, 100% - 64px); margin-inline: auto; }
.mast { min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; letter-spacing: -.045em; font-size: 22px; font-weight: 750; }
.brand-mark { width: 28px; height: 23px; border-top: 1px solid var(--ink); border-radius: 65% 55% 0 0; position: relative; transform: rotate(-28deg) translateY(5px); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; width: 6px; height: 6px; background: var(--accent); border-radius: 50%; top: 3px; }
.brand-mark::before { left: 0; }
.brand-mark::after { right: 0; }
.demo, .eyebrow, .map-caption { font-size: .78rem; color: var(--muted); }
.intro { padding-block: 29px 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 25px; }
h1, h2, h3, p { margin: 0; }
h1, h2 { font-family: "Baskervville", Georgia, serif; font-weight: 400; letter-spacing: -.045em; }
h1 { font-size: clamp(36px, 5vw, 61px); line-height: 1; }
.intro p { color: var(--muted); }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); gap: 0; border: 1px solid var(--ink); align-items: stretch; }
.map { min-height: 520px; position: relative; background: var(--water); overflow: hidden; isolation: isolate; }
.map svg, #markers { position: absolute; inset: 0; width: 100%; height: 100%; }
#markers { pointer-events: none; }
.crumbs, .zoom { position: absolute; z-index: 2; display: flex; background: var(--paper); border: 1px solid var(--ink); }
.crumbs { top: 12px; left: 12px; }
.crumbs button, .zoom button { border: 0; background: var(--paper); color: var(--ink); min-height: 42px; }
.crumbs button { padding: 0 12px; font-size: .85rem; }
.crumbs button[aria-current] { background: var(--action); color: white; }
.zoom { bottom: 36px; right: 12px; flex-direction: column; }
.zoom button { width: 42px; font-size: 23px; }
.zoom button + button { border-top: 1px solid var(--line); }
.map-caption { position: absolute; inset: auto 0 0; min-height: 26px; padding: 4px 8px; background: var(--paper); border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 2px 10px; justify-content: space-between; }
.marker { pointer-events: auto; position: absolute; transform: translate(-50%, -50%); white-space: nowrap; background: var(--action); border: 1px solid var(--paper); color: white; padding: 8px 11px; font-size: .83rem; font-weight: 680; min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
.marker.destination { background: var(--paper); color: var(--ink); border-color: var(--border-map); }
.marker.poi { min-width: 44px; justify-content: center; padding: 0; background: transparent; color: var(--action); border-color: transparent; }
.marker.poi::before { content: ""; width: 11px; height: 11px; border: 2px solid var(--paper); background: var(--accent); border-radius: 50%; }
.marker.poi[aria-current="true"]::before { outline: 2px solid var(--accent); outline-offset: 2px; }
.marker.featured::before { content: ""; width: 8px; height: 8px; background: #f2aa8b; border-radius: 50%; margin-right: 7px; }
.panel { background: var(--paper); border-left: 1px solid var(--ink); padding: 22px; min-width: 0; }
.panel > section, .panel > form { display: grid; gap: 12px; }
.panel h2, .campaign h2, dialog h2 { font-size: clamp(28px, 3vw, 41px); line-height: 1.02; }
.panel p, .campaign p { line-height: 1.42; }
.eyebrow { font-weight: 650; }
.count { display: flex; gap: 10px; align-items: baseline; border-block: 1px solid var(--line); padding-block: 8px; color: var(--muted); }
.count strong { font-size: 30px; color: var(--accent); font-weight: 650; font-variant-numeric: tabular-nums; }
.primary, .secondary { display: inline-grid; place-items: center; border: 1px solid var(--ink); padding: 9px 12px; min-height: 44px; font-weight: 650; text-decoration: none; text-align: center; }
.primary { background: var(--action); color: white; }
.primary:hover { background: #30555e; }
.secondary { background: transparent; color: var(--ink); }
.secondary:hover { background: #efeee5; }
.back, .plain { display: inline-flex; align-items: center; justify-self: start; border: 0; padding: 0; min-height: 32px; color: var(--action); background: transparent; font-weight: 620; text-align: left; text-decoration: underline; text-underline-offset: 3px; }
blockquote { margin: 0; border-left: 2px solid var(--accent); padding: 5px 0 5px 12px; line-height: 1.43; }
#city-directory h3, #country-directory h3 { font-size: .92rem; margin-top: 3px; }
#donor-list, #country-list { margin: 5px 0 0; list-style: none; padding: 0; }
#donor-list a, #country-list a { display: flex; justify-content: space-between; gap: 8px; align-items: center; min-height: 44px; padding: 3px 4px; text-decoration: none; border-bottom: 1px solid var(--line); }
#country-list a[aria-current] { background: #e8e9de; box-shadow: inset 2px 0 var(--accent); padding-left: 8px; }
#country-list a:hover .donor-name { text-decoration: underline; }
#country-list .donor-amount { text-align: right; white-space: normal; overflow-wrap: anywhere; }
#donor-list a:hover .donor-name { text-decoration: underline; }
.donor-name { font-weight: 650; min-width: 0; overflow-wrap: anywhere; }
.panel h2 { overflow-wrap: anywhere; }
.donor-amount { white-space: nowrap; color: var(--muted); }
fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
legend { padding: 0 0 6px; font-weight: 650; }
.amounts { display: flex; gap: 5px; flex-wrap: wrap; }
.amounts button { flex: 1; white-space: nowrap; padding: 7px 8px; min-height: 42px; border: 1px solid var(--line); background: transparent; color: var(--ink); }
.amounts button[aria-pressed="true"] { background: #e1e9e6; border-color: var(--action); font-weight: 680; }
.check { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; min-height: 30px; padding-block: 4px; }
.check input { accent-color: var(--action); width: 17px; height: 17px; flex: none; margin: 2px 0 0; }
.field { display: grid; grid-template-columns: 1fr; gap: 3px; font-size: .88rem; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid var(--line); background: white; border-radius: 0; padding: 8px; color: var(--ink); font-size: 16px; }
.field textarea { resize: vertical; }
.optional, small { color: var(--muted); }
.summary { margin: 0; display: grid; gap: 4px; padding-block: 8px; border-block: 1px solid var(--line); font-size: .9rem; }
.summary div { display: flex; justify-content: space-between; }
.summary dd { margin: 0; font-weight: 650; }
#receipt-reference { overflow-wrap: anywhere; text-align: right; max-width: 22ch; font-size: .8rem; }
#card-preview { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; background: var(--action); }
.share-actions { display: grid; gap: 5px; }
#feedback, #copy-fallback { margin-top: 10px; overflow-wrap: anywhere; }
.campaign { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 18px; padding-block: 20px; border-bottom: 1px solid var(--line); }
.campaign h2 { font-size: clamp(24px, 3vw, 32px); }
.campaign p { max-width: 47ch; color: var(--muted); }
footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-block: 10px 25px; color: var(--muted); font-size: .85rem; }
dialog { padding: 24px; max-width: min(440px, 100% - 32px); border: 1px solid var(--ink); background: var(--paper); color: var(--ink); }
dialog::backdrop { background: #20323766; }
dialog form, .dialog-actions { display: grid; gap: 12px; }
.dialog-actions { grid-template-columns: 1fr 1fr; }
.profile-fields, #profile-settings { display: grid; gap: 10px; margin-top: 10px; }
summary { cursor: pointer; min-height: 32px; display: list-item; }
.support-label { font-weight: 650; color: var(--accent); border-left: 2px solid var(--accent); padding-left: 8px; }
#invoice-list, #subscription-list { list-style: none; margin: 8px 0 0; padding: 0; }
#invoice-list li, #subscription-list a { display: block; padding-block: 9px; border-bottom: 1px solid var(--line); }
#profile-history h3 { font-size: .95rem; }
.window-sign { display: grid; gap: 10px; justify-items: center; text-align: center; }
.window-sign p { max-width: 30ch; line-height: 1.4; }
.window-sign img { width: min(224px, 100%); height: auto; }
#qr-dialog form { display: flex; justify-content: space-between; margin-top: 16px; }
@media print {
  body.print-receipt .mast, body.print-receipt .intro, body.print-receipt .map,
  body.print-receipt .campaign, body.print-receipt footer,
  body.print-receipt #thanks > :not(#payment-receipt):not(#confirmation) { display: none !important; }
  body.print-receipt .workspace, body.print-receipt .panel { display: block; border: 0; background: transparent; }
  body.print-receipt #payment-receipt::before { content: "GiveAcross · Testkvittering"; font-size: 24px; padding-block: 16px; }
  body:has(#qr-dialog[open]) > :not(#qr-dialog), #qr-dialog form { display: none !important; }
  #qr-dialog { position: static; border: 0; max-width: none; margin: 0 auto; }
  #qr-dialog::backdrop { display: none; }
  .window-sign { padding-top: 1cm; }
  .window-sign img { width: 7cm; }
}
@media (max-width: 820px) {
  .mast, main, footer { width: calc(100% - 28px); }
  .workspace { grid-template-columns: 1fr; }
  .panel { border-left: 0; border-top: 1px solid var(--ink); padding: 17px; }
  .map { min-height: 360px; }
  .campaign { grid-template-columns: 1fr; align-items: start; gap: 10px; }
  .campaign .secondary { justify-self: start; }
}
@media (max-width: 390px) {
  .brand { font-size: 18px; }
  .demo { max-width: 15ch; text-align: right; }
  .map { min-height: 315px; }
}

#account-link { flex-shrink: 0; font-size: .88rem; text-underline-offset: 4px; }
.account-donations { list-style: none; padding: 0; margin: 12px 0; }
.account-donations li { border-top: 1px solid var(--line); padding: 18px 0; display: grid; gap: 10px; }
.account-donations li p { font-size: .88rem; color: var(--muted); }
.account-donations li a, .account-donations li button { justify-self: start; }
#account-identity { overflow-wrap: anywhere; }
#account-signed-in, #account-signed-out { display: grid; gap: 16px; }
#email-login, #code-login { display: grid; gap: 12px; }
#login-code { letter-spacing: .25em; font-variant-numeric: tabular-nums; }
#auth-feedback, #code-destination { overflow-wrap: anywhere; }
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .85rem; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; background: var(--line); flex: 1; }
@media (max-width: 600px) { .mast { flex-wrap: wrap; padding-block: 12px; } .mast .demo { order: 3; flex-basis: 100%; } }
