@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces-latin-wght-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  /* Design tokens, named as in shadcn/ui so components can be ported later. HSL triplets. */
  --background: 40 33% 98%;
  --foreground: 160 25% 12%;
  --card-bg: 0 0% 100%;
  --primary: 158 42% 24%;
  --primary-foreground: 40 33% 98%;
  --muted-bg: 40 24% 94%;
  --muted-foreground: 160 8% 36%;
  --accent: 18 65% 94%;
  --accent-foreground: 18 58% 32%;
  --terracotta: 18 58% 46%;
  --border: 38 24% 85%;
  --ring: 158 42% 24%;
  --destructive: 8 62% 42%;
  --surface-dark: 158 40% 13%;
  --surface-dark-2: 158 38% 22%;
  --on-dark-muted: 40 22% 78%;
  --highlight-on-dark: 26 80% 66%;
  --radius: 0.5rem;

  /* Older names, now derived from the tokens above. */
  --ink: hsl(var(--foreground));
  --muted: hsl(var(--muted-foreground));
  --bg: hsl(var(--background));
  --card: hsl(var(--card-bg));
  --line: hsl(var(--border));
  --teal: hsl(var(--primary));
  --teal-dark: hsl(var(--surface-dark));
  --saffron: #e2a030;
  --saffron-soft: #fcefd2;
  --red: hsl(var(--destructive));
  --red-soft: #fbe9e4;
  --green: #256c50;
  --green-soft: #e1f0e8;
  --serif: "Fraunces", "Iowan Old Style", Palatino, Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); }
a { color: var(--teal); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.012em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.4rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); margin-top: 2.2em; }
h2.flush, .flush { margin-top: 0; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 760px; }
.wrap.narrow { margin-left: auto; margin-right: auto; }
.center { text-align: center; }
.muted, .small { color: var(--muted); }
.small { font-size: .88rem; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--saffron); color: #2a1c00; padding: 10px 16px; z-index: 100; font-weight: 700; }
.skip:focus { left: 8px; top: 8px; }
.eyebrow { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .14em; color: var(--red); margin: 0 0 .7em; }
.standfirst { font-family: var(--serif); font-size: clamp(1.15rem, 2.2vw, 1.35rem); line-height: 1.5; color: #2b423f; font-weight: 400; margin-bottom: 1.2em; }
mark.todo { background: #ffe58a; padding: 0 4px; border-radius: 3px; }

/* header */
.site-header { background: var(--teal-dark); color: #fff; position: sticky; top: 0; z-index: 40; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { font-family: var(--serif); font-size: 1.25rem; font-weight: 700; color: #fff; text-decoration: none; white-space: nowrap; }
.brand span { color: var(--saffron); font-style: italic; }
.nav { display: flex; align-items: center; gap: 6px 20px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { white-space: nowrap; }
.nav a { color: #d5e6e3; text-decoration: none; font-size: .94rem; font-weight: 500; }
.nav a:hover, .nav a[aria-current="page"] { color: #fff; text-decoration: underline; text-underline-offset: 6px; }
.nav a.btn { color: #2a1c00; text-decoration: none; }
.menu-btn { display: none; background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.5); border-radius: 999px; padding: 6px 16px; font: inherit; font-size: .9rem; cursor: pointer; }
@media (max-width: 1180px) {
  .menu-btn { display: block; }
  .site-header .wrap { flex-wrap: wrap; }
  .nav { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 0; padding: 6px 0 10px; }
  .nav.open { display: flex; }
  .nav a { padding: 10px 0; font-size: 1.05rem; width: 100%; }
  .nav a.btn { width: auto; margin-top: 8px; padding: 10px 20px; }
}

/* buttons */
.btn { display: inline-block; background: var(--saffron); color: #2a1c00; font: inherit; font-weight: 700; padding: 13px 24px; border-radius: 999px; text-decoration: none; border: 0; cursor: pointer; line-height: 1.2; transition: transform .12s, filter .12s; }
.btn:hover { filter: brightness(1.07); transform: translateY(-1px); }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.btn.small { padding: 8px 16px; font-size: .9rem; }
.btn.ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.55); }
.btn.dark { background: var(--teal); color: #fff; }
.btn.danger-btn { background: var(--red); color: #fff; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; align-items: center; }
.btn-row.center { justify-content: center; }
.btn-row form { margin: 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; }

/* hero */
.hero { background: var(--teal-dark) url("/img/hero.svg") center bottom / cover no-repeat; color: #fff; padding: 72px 0 96px; }
.hero .eyebrow { color: var(--saffron); }
.hero h1 { font-size: clamp(2.3rem, 5.6vw, 4rem); font-weight: 500; }
.hero h1 em { color: var(--saffron); }
.hero p.lead { font-size: 1.15rem; color: #e3efed; max-width: 560px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } .hero { padding: 40px 0 56px; } }

.trust { background: #fff; border-bottom: 1px solid var(--line); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 8px 36px; justify-content: center; padding-top: 16px; padding-bottom: 16px; font-size: .92rem; color: var(--muted); }
.trust strong { color: var(--ink); }

/* quiz */
.quiz { background: #fff; color: var(--ink); border-radius: 18px; padding: 26px; box-shadow: 0 18px 50px rgba(0,0,0,.3); }
.quiz .step { font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); font-weight: 600; }
.quiz h3 { font-size: 1.35rem; margin: 8px 0 16px; }
.quiz .opts { display: grid; gap: 9px; }
.quiz .opts button { text-align: left; background: var(--bg); border: 2px solid var(--line); border-radius: 12px; padding: 12px 16px; font: inherit; cursor: pointer; color: var(--ink); }
.quiz .opts button:hover:not(:disabled) { border-color: var(--teal); }
.quiz .opts button.right { background: var(--green-soft); border-color: var(--green); font-weight: 700; }
.quiz .opts button.wrong { background: var(--red-soft); border-color: var(--red); }
.quiz .reveal { margin-top: 14px; font-size: .95rem; }
.quiz .reveal a { font-weight: 700; }
.quiz .next { margin-top: 14px; }

/* sections and cards */
section.block { padding: 56px 0 8px; }
section.block > h2 { margin-top: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(235px, 1fr)); gap: 18px; margin-top: 22px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-decoration: none; color: inherit; display: block; transition: transform .14s, box-shadow .14s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(20,38,36,.1); }
.card .icon { font-size: 1.7rem; }
.card h3 { margin: 8px 0 4px; }
.card .price { font-family: var(--serif); font-weight: 600; color: var(--teal); font-size: 1.15rem; }
.card p { color: var(--muted); font-size: .93rem; margin: 6px 0 0; }
.card.scam .num { font-family: var(--serif); font-style: italic; font-size: 1.6rem; color: var(--red); }
.card.stat .big { font-family: var(--serif); font-size: 2.2rem; color: var(--teal); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 20px 0; }
.steps3 ol { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 28px; counter-reset: s; }
.steps3 li { counter-increment: s; border-top: 3px solid var(--ink); padding-top: 14px; }
.steps3 li::before { content: "0" counter(s); font-family: var(--serif); font-style: italic; font-size: 1.5rem; color: var(--red); }
.steps3 li p { color: var(--muted); margin: 0; }
.pledge { display: grid; grid-template-columns: repeat(auto-fit, minmax(225px, 1fr)); gap: 16px; margin-top: 22px; }
.pledge .card { border-top: 4px solid var(--saffron); }
.two-col { display: grid; grid-template-columns: 1.15fr 1fr; gap: 26px; align-items: start; margin-top: 10px; }
.two-col .pledge { grid-template-columns: 1fr; margin-top: 0; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* article */
.crumbs { font-size: .86rem; color: var(--muted); padding: 26px 0 18px; }
.crumbs a { color: var(--muted); }
article { padding-bottom: 20px; }
.answer { background: var(--saffron-soft); border: 2px solid var(--saffron); border-radius: var(--radius); padding: 22px 24px; margin: 26px 0; }
.answer .label { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: #7a5200; }
.answer .big { font-family: var(--serif); font-size: clamp(1.8rem, 5vw, 2.7rem); font-weight: 600; line-height: 1.15; }
.answer .note { color: #5c4300; }
.meta { display: flex; gap: 8px 14px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); margin-top: 12px; align-items: center; }
.pill { display: inline-block; padding: 2px 11px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.pill.agree { background: var(--green-soft); color: #1b5a40; }
.pill.mixed { background: #fff; color: #7a5200; border: 1px solid var(--saffron); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 520px; }
th, td { text-align: left; padding: 12px 15px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: #f8f3e7; }
tr:last-child td { border-bottom: 0; }
td.p { font-weight: 700; white-space: nowrap; }
td.n, span.n { color: var(--muted); font-size: .92rem; }
ul.ticks, ul.flags, ol.steps { padding-left: 0; list-style: none; margin: 0 0 1em; }
ul.ticks li, ul.flags li, ol.steps li { position: relative; padding: 6px 0 6px 32px; }
ul.ticks li::before { content: "✓"; position: absolute; left: 4px; color: var(--green); font-weight: 700; }
ul.flags li::before { content: "⚑"; position: absolute; left: 4px; color: var(--red); }
ol.steps { counter-reset: s; }
ol.steps li { counter-increment: s; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 9px; width: 22px; height: 22px; border-radius: 50%; background: var(--red); color: #fff; font-size: .78rem; font-weight: 700; text-align: center; line-height: 22px; }
.callout { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--teal); border-radius: var(--radius); padding: 16px 20px; margin: 22px 0; }
.sources { font-size: .9rem; color: var(--muted); }
.sources li { margin-bottom: 4px; }
.cta-band { background: var(--teal-dark); color: #fff; border-radius: 18px; padding: 30px; margin: 40px 0 10px; }
.cta-band h3 { font-size: 1.55rem; font-weight: 500; }
.cta-band p { color: #d5e6e3; margin-bottom: 0; max-width: 620px; }
.legal h2 { font-size: 1.3rem; }
.thanks { padding: 70px 16px 60px; }
.thanks .tick { width: 64px; height: 64px; line-height: 64px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 2rem; margin: 0 auto 18px; }

/* forms */
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.form-title { margin-top: 0; font-size: 1.4rem; }
label { display: block; font-weight: 600; font-size: .92rem; margin: 14px 0 5px; }
.field { margin: 0; }
.field .opt, label .opt { font-weight: 400; color: var(--muted); font-size: .82rem; }
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea { width: 100%; font: inherit; padding: 11px 13px; border: 1.5px solid #cdc4b0; border-radius: 10px; background: #fff; color: var(--ink); }
input[aria-invalid=true], textarea[aria-invalid=true] { border-color: var(--red); background: #fffafa; }
.field.check label { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.field.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--teal); }
.err { color: var(--red); font-size: .88rem; margin: 5px 0 0; font-weight: 600; }
.hint { font-size: .86rem; color: var(--muted); margin: 6px 0 0; }
.hint.after-form, .consent-line { margin-top: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.alert { border-radius: 10px; padding: 12px 16px; margin: 0 0 16px; font-size: .95rem; }
.alert.ok { background: var(--green-soft); color: #174a35; }
.alert.error { background: var(--red-soft); color: #7a2416; }
.alert.warn { background: var(--saffron-soft); color: #5c4300; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { margin: 0; font-weight: 500; border: 1.5px solid #cdc4b0; border-radius: 999px; padding: 6px 14px; cursor: pointer; background: #fff; }
.chips input { position: absolute; opacity: 0; }
.chips label:has(input:checked) { background: var(--teal); border-color: var(--teal); color: #fff; }
.chips label:has(input:focus-visible) { outline: 3px solid var(--saffron); outline-offset: 2px; }
form.inline { display: inline-flex; gap: 8px; align-items: center; margin: 0; }
form.inline select { width: auto; padding: 6px 8px; }
.auth { max-width: 500px; padding-top: 48px; padding-bottom: 40px; }
.auth h1 { font-size: 2.2rem; }

/* planner */
.planner-grid { display: grid; grid-template-columns: 350px 1fr; gap: 22px; align-items: start; }
@media (max-width: 860px) { .planner-grid { grid-template-columns: 1fr; } }
.stop { display: grid; grid-template-columns: 78px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.stop .days { font-family: var(--serif); font-weight: 600; color: var(--teal); }
.stop h3 { margin: 0 0 2px; }
.stop p { margin: 0; color: var(--muted); font-size: .94rem; }
.leg { font-size: .85rem; color: var(--muted); padding: 6px 0 6px 92px; border-bottom: 1px dashed var(--line); }
@media (max-width: 480px) { .leg { padding-left: 0; } .stop { grid-template-columns: 1fr; gap: 2px; } }
.cost { background: var(--saffron-soft); border-radius: 12px; padding: 16px 18px; margin-top: 18px; }
.cost table { min-width: 0; }
.cost td { border: 0; padding: 4px 0; }
.cost td:last-child { text-align: right; font-weight: 700; white-space: nowrap; padding-left: 12px; }
.cost tr.total td { border-top: 2px solid var(--saffron); padding-top: 8px; font-family: var(--serif); font-size: 1.15rem; }

/* account and admin */
.item { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; flex-wrap: wrap; }
.item p { margin: 4px 0 0; color: var(--muted); }
.item-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.item-actions form { margin: 0; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
details.danger { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 14px; }
details.danger summary { cursor: pointer; color: var(--red); font-weight: 600; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px 20px; border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 22px; }
.admin-nav a { text-decoration: none; font-weight: 600; }
.admin-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; }
.admin, .account { padding-top: 30px; padding-bottom: 30px; }

/* newsletter band and footer */
.nl-band { background: #f1e9d8; margin-top: 64px; padding: 54px 0; }
.nl-band h2 { margin-top: 0; }
.nl-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 36px; align-items: center; }
@media (max-width: 860px) { .nl-grid { grid-template-columns: 1fr; gap: 16px; } }
.nl-form { display: grid; gap: 10px; }
footer { background: var(--teal-dark); color: #b7cdc9; padding: 44px 0 30px; font-size: .92rem; }
footer .cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; margin-bottom: 26px; }
@media (max-width: 760px) { footer .cols { grid-template-columns: 1fr 1fr; } }
footer h3 { font-family: var(--sans); font-size: .76rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin-bottom: 10px; }
footer nav a, footer nav button { display: block; color: #d5e6e3; text-decoration: none; padding: 4px 0; text-align: left; }
footer nav a:hover, footer nav button:hover { color: #fff; text-decoration: underline; }
footer .small { color: #8fb0ab; border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; margin: 0; }

/* sticky call to action on phones */
.sticky-cta { display: none; }
@media (max-width: 760px) {
  .sticky-cta { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0,0,0,.08); padding: 10px 16px; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; font-size: .95rem; }
  body.has-sticky footer { padding-bottom: 90px; }
}

/* cookie banner */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; display: flex; justify-content: center; pointer-events: none; }
.cookie-banner[hidden] { display: none; }
.cb-inner { pointer-events: auto; background: #fff; color: var(--ink); max-width: 620px; border-radius: 16px; padding: 22px 24px; box-shadow: 0 16px 50px rgba(0,0,0,.28); border: 1px solid var(--line); max-height: calc(100vh - 32px); overflow: auto; }
.cb-inner h2 { font-size: 1.25rem; margin: 0 0 6px; }
.cb-inner p { font-size: .92rem; margin: 0 0 12px; }
.cb-options { display: grid; gap: 6px; margin-bottom: 12px; }
.cb-options[hidden] { display: none; }
.cb-options label { display: flex; gap: 10px; align-items: center; margin: 0; font-weight: 600; }
.cb-options label span { font-weight: 400; color: var(--muted); font-size: .84rem; }
.cb-options input { width: 18px; height: 18px; accent-color: var(--teal); }
.cb-actions { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
/* Accept and reject are deliberately identical so neither choice is nudged. */
.cb-actions .btn { background: var(--teal); color: #fff; padding: 10px 18px; font-size: .92rem; }
.cb-actions [hidden] { display: none; }

@media print {
  .site-header, footer, .nl-band, .cookie-banner, .sticky-cta, .no-print, .crumbs { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  h2 { margin-top: 1em; font-size: 13pt; break-after: avoid; }
  .table-scroll { border: 0; overflow: visible; }
  table { min-width: 0; }
  th, td { padding: 3px 6px; }
}

/* marketplace */
.hero-solo { max-width: 860px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 18px 0 0; font-size: .95rem; }
.hero-links a { color: #e3efed; }
.search { display: grid; grid-template-columns: 1fr 220px auto; gap: 10px; margin: 18px 0; }
.search.big { background: #fff; padding: 10px; border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.3); margin-top: 26px; }
.search.big input, .search.big select { border-color: transparent; background: var(--bg); }
@media (max-width: 720px) { .search { grid-template-columns: 1fr; } }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 18px; }
.chip { border: 1.5px solid #cdc4b0; border-radius: 999px; padding: 5px 14px; text-decoration: none; background: #fff; color: var(--ink); font-size: .92rem; font-weight: 500; }
.chip.on { background: var(--teal); border-color: var(--teal); color: #fff; }
.card.cat .count { display: inline-block; margin-top: 10px; font-size: .8rem; font-weight: 600; color: var(--teal); }
.card.biz h3 { font-size: 1.2rem; margin-top: 10px; }
.card.biz .where, article .where { color: var(--muted); font-size: .9rem; }
.card.biz.is-sponsored { border-color: var(--saffron); background: #fffdf7; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.pill.sponsored { background: var(--saffron); color: #2a1c00; }
.pill.plain { background: #f1ece0; color: #4a5856; }
.pill.bad { background: var(--red-soft); color: #7a2416; }
.sponsored-block { background: var(--saffron-soft); border-radius: var(--radius); padding: 4px 16px 18px; margin-bottom: 18px; }
.result-count { margin: 12px 0 0; font-size: .92rem; }
.panel.empty { margin-top: 20px; text-align: center; padding: 40px 24px; }
.pager { display: flex; gap: 16px; align-items: center; justify-content: center; margin: 28px 0; }
.banner { margin: 34px auto 0; text-align: center; max-width: 728px; }
.banner img { max-width: 100%; height: auto; border-radius: 8px; display: block; margin: 0 auto; }
.ad-label { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 4px; }
.thumb { max-width: 160px; max-height: 60px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.split .cta-band { margin: 0; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }
.cta-band.alt { background: #f1e9d8; color: var(--ink); }
.cta-band.alt p { color: #2b423f; }
.eyebrow.light { color: var(--saffron); }
.biz-page { grid-template-columns: 1.4fr 1fr; margin-top: 0; }
@media (max-width: 860px) { .biz-page { grid-template-columns: 1fr; } }
ul.contact { list-style: none; padding: 0; }
ul.contact li { padding: 6px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
ul.contact strong { display: inline-block; min-width: 96px; }
.panel .tick { width: 56px; height: 56px; line-height: 56px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-size: 1.7rem; margin: 0 auto 12px; }
fieldset.field { border: 0; padding: 0; margin: 14px 0 0; }
fieldset.field legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; padding: 0; }
form.review { flex: 1 1 100%; border-top: 1px solid var(--line); padding-top: 10px; }
form.review .btn-row { margin-top: 12px; }
.btn.google { display: block; text-align: center; background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1.5px #cdc4b0; }
.or { text-align: center; color: var(--muted); font-size: .86rem; margin: 14px 0; }
input[type=file] { width: 100%; font: inherit; }
.card .price { margin-top: 2px; }

/* onboarding, learn centre, news, assistants */
.checklist { margin: 8px 0 20px; border-top: 4px solid var(--saffron); }
.gs-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.gs-head span { color: var(--muted); font-size: .9rem; }
progress { width: 100%; height: 10px; margin: 10px 0 6px; accent-color: var(--teal); }
.checklist ol { list-style: none; padding: 0; margin: 8px 0; }
.checklist li { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.checklist li .mark { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #cdc4b0; flex: none; text-align: center; line-height: 18px; font-size: .8rem; font-weight: 700; }
.checklist li.done .mark { background: var(--green); border-color: var(--green); color: #fff; }
.checklist li.done { color: var(--muted); }
.checklist li a { margin-left: auto; font-size: .9rem; font-weight: 600; }
.docbox { flex: 1 1 100%; border-top: 1px solid var(--line); padding-top: 10px; }
form.upload { flex-wrap: wrap; margin-top: 8px; }
form.upload input[type=file] { width: auto; max-width: 100%; }
.ai-note { background: #f6f3ea; border-left: 4px solid var(--teal); border-radius: 8px; padding: 10px 14px; margin: 10px 0; }
.ai-note p, .ai-note ul { margin: 6px 0 0; }
.card.lesson .num, .card.post .n { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--red); }
.card.post .n { font-size: .95rem; }
.card.lesson.done { border-color: var(--green); }
.card.post { margin-bottom: 14px; }
.news-item { border-top: 1px solid var(--line); padding: 22px 0 6px; }
.news-item h2 { margin-top: 0; font-size: 1.45rem; }
.news-item .credit { font-size: .92rem; color: var(--muted); }
.news-note { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 24px; }
.tour-ring { position: absolute; z-index: 70; border-radius: 12px; box-shadow: 0 0 0 4px var(--saffron), 0 0 0 9999px hsl(var(--surface-dark) / .45); pointer-events: none; }
.tour-box { position: absolute; z-index: 71; width: min(340px, calc(100vw - 24px)); background: #fff; border-radius: 14px; padding: 18px 20px; box-shadow: 0 16px 50px rgba(0,0,0,.35); }
.tour-box h2 { font-size: 1.2rem; margin: 2px 0 6px; }
.tour-box p { margin: 0 0 10px; font-size: .95rem; }
.tour-count { font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.tour-actions { display: flex; gap: 10px; align-items: center; justify-content: flex-end; }
.tour-actions .linklike { margin-right: auto; font-size: .88rem; color: var(--muted); }
.btn.ghost-dark { background: transparent; color: var(--teal); box-shadow: inset 0 0 0 2px var(--teal); }

/* keep dashboard rows inside narrow screens */
.item > * { min-width: 0; max-width: 100%; }
form.inline { flex-wrap: wrap; max-width: 100%; }
form.inline select, form.upload input[type=file] { max-width: 100%; min-width: 0; }

/* staging and email notices */
.staging-bar { background: #3b2f00; color: #ffe9a8; text-align: center; font-size: .82rem; padding: 6px 16px; }
.mail-notice { margin-top: 22px; }

/* home page island */
.hero-island { padding: 56px 0 40px; background: radial-gradient(120% 90% at 75% 40%, hsl(158 40% 18%) 0%, hsl(var(--surface-dark)) 60%, hsl(158 42% 9%) 100%); }
.hero-island .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 32px; align-items: center; }
.hero-island .search.big { margin-top: 22px; }
.island-stage { position: relative; height: min(620px, 72vh); min-height: 420px; border-radius: 22px; overflow: hidden; background: radial-gradient(80% 70% at 50% 45%, hsl(var(--surface-dark-2)) 0%, #0e4442 70%); }
.island-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; }
.island-flat { position: absolute; inset: 18px 18px 64px; width: calc(100% - 36px); height: calc(100% - 82px); }
.island-flat .land { fill: #3f7a45; stroke: #d8c590; stroke-width: 3; }
.island-flat .dot { fill: #e9e2cf; stroke: hsl(var(--surface-dark)); stroke-width: 2; }
.island-flat .dot.on { fill: #ffb43c; }
.island-flat a:hover .dot, .island-flat a:focus .dot { fill: #fff; r: 12; }
.island-stage.is-3d .island-flat { display: none; }
.island-hint { position: absolute; left: 16px; top: 12px; margin: 0; font-size: .8rem; color: #d5e6e3; opacity: .85; pointer-events: none; }
.island-stage:not(.is-3d) .island-hint { display: none; }
.island-tip { position: absolute; left: 0; top: 0; z-index: 2; display: grid; gap: 1px; background: #fff; color: var(--ink); text-decoration: none; padding: 9px 13px; border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: .9rem; white-space: nowrap; }
.island-tip strong { font-family: var(--serif); font-size: 1.05rem; }
.island-tip span { color: var(--muted); }
.island-tip em { font-style: normal; font-weight: 700; color: var(--teal); }
.island-tip em::after { content: " \2192"; }
.district-chips { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px; background: linear-gradient(transparent, hsl(158 42% 8% / .85) 45%); scrollbar-width: thin; }
.district-chips a { flex: none; color: #fff; text-decoration: none; font-size: .85rem; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.35); background: hsl(var(--surface-dark) / .6); }
.district-chips a span { color: var(--saffron); font-weight: 700; }
.district-chips a:hover, .district-chips a:focus, .district-chips a.on { background: var(--saffron); color: #2a1c00; border-color: var(--saffron); }
.district-chips a:hover span, .district-chips a.on span, .district-chips a:focus span { color: #2a1c00; }
@media (max-width: 860px) {
  .hero-island { padding: 30px 0 24px; }
  .hero-island .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .island-stage { height: 440px; min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .island-tip { transition: none; } }
.island-tip[hidden] { display: none; }
.hero-island .search.big { grid-template-columns: minmax(0, 1fr) auto; }
.hero-island .search.big .s-q { grid-column: 1 / -1; }
@media (max-width: 720px) { .hero-island .search.big { grid-template-columns: minmax(0, 1fr); } }

/* district buttons snap as they scroll */
.district-chips { scroll-snap-type: x proximity; }
.district-chips a { scroll-snap-align: start; }

/* ---------- knowledge quiz ---------- */
.quiz-hero { background: radial-gradient(110% 120% at 85% 10%, hsl(var(--surface-dark-2)) 0%, hsl(var(--surface-dark)) 60%); color: #fff; padding: 56px 0 48px; }
.quiz-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 500; }
.quiz-hero h1 em, .quiz-band h2 em { color: var(--saffron); }
.quiz-hero .eyebrow { color: var(--saffron); }
.quiz-hero .lead { font-size: 1.15rem; color: #e3efed; max-width: 620px; }
.claim-note { background: var(--green-soft); color: #174a35; border-radius: 10px; padding: 10px 14px; margin: 14px 0; max-width: 620px; }
.daily-card { display: flex; align-items: center; gap: 16px; max-width: 620px; margin-top: 22px; background: #fff; color: var(--ink); border-radius: 16px; padding: 16px 18px; text-decoration: none; box-shadow: 0 14px 40px rgba(0,0,0,.25); }
.daily-card .icon { font-size: 2rem; }
.daily-card > span:nth-child(2) { flex: 1; min-width: 0; }
.daily-card .btn { flex: none; }
.quiz-grid .quiz-card { position: relative; border-top: 5px solid var(--teal); }
.quiz-card .icon { font-size: 2rem; }
.quiz-card .pill { margin-top: 10px; }
.topic-history .quiz-card, .quiz-card.topic-history { border-top-color: #7a3d2b; }
.quiz-card.topic-culture { border-top-color: #8c2f4f; }
.quiz-card.topic-unique-places { border-top-color: #1f5f48; }
.quiz-card.topic-fun-facts { border-top-color: #1e4f7c; }
.quiz-card.topic-hidden-gems { border-top-color: #4b2f7d; }
.badge-ladder, .badge-shelf { display: flex; flex-wrap: wrap; gap: 18px 26px; margin-top: 18px; }
.badge-ladder figure, .badge-shelf figure { margin: 0; text-align: center; width: 120px; font-size: .88rem; }
.badge-shelf figure { width: 104px; }
.badge-ladder img, .badge-shelf img { display: block; margin: 0 auto 6px; }
.badge-shelf.fresh { justify-content: center; }

.quiz-page { padding-bottom: 30px; }
.quiz-app { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; margin-top: 8px; box-shadow: 0 18px 50px rgba(20,38,36,.08); }
.quiz-start { text-align: center; }
.quiz-start h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.quiz-icon { font-size: 3rem; display: block; margin-bottom: 6px; }
.btn.big { font-size: 1.1rem; padding: 16px 30px; }
.quiz-start .btn-row { justify-content: center; }
.quiz-top { display: flex; justify-content: space-between; font-size: .9rem; color: var(--muted); font-weight: 600; }
.quiz-score { color: var(--teal); }
.quiz-bar { height: 8px; background: #efe9dc; border-radius: 99px; margin: 10px 0 22px; overflow: hidden; }
.quiz-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--saffron)); border-radius: 99px; transition: width .4s ease; }
.quiz-q { font-size: clamp(1.35rem, 3.4vw, 1.75rem); margin: 0 0 20px; outline: none; }
.quiz-opts { display: grid; gap: 10px; }
.quiz-opt { display: flex; gap: 14px; align-items: center; text-align: left; width: 100%; font: inherit; font-size: 1.02rem; padding: 14px 16px; border: 2px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--ink); cursor: pointer; transition: border-color .15s, transform .15s, background .15s; }
.quiz-opt:hover:not(:disabled) { border-color: var(--teal); transform: translateY(-1px); }
.quiz-opt:disabled { cursor: default; }
.quiz-opt .letter { flex: none; width: 32px; height: 32px; border-radius: 50%; background: #fff; border: 2px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: .9rem; }
.quiz-opt.chosen { border-color: var(--teal); }
.quiz-opt.right { border-color: var(--green); background: var(--green-soft); font-weight: 600; }
.quiz-opt.right .letter { background: var(--green); border-color: var(--green); color: #fff; }
.quiz-opt.wrong { border-color: var(--red); background: var(--red-soft); }
.quiz-opt.wrong .letter { background: var(--red); border-color: var(--red); color: #fff; }
.quiz-feedback { margin-top: 18px; padding: 16px 18px; border-radius: 14px; animation: quiz-in .3s ease; }
.quiz-feedback.ok { background: var(--green-soft); }
.quiz-feedback.no { background: var(--saffron-soft); }
.quiz-feedback p { margin: 8px 0 14px; }
.quiz-result { text-align: center; }
.result-badge { display: block; margin: 0 auto 8px; width: 160px; height: 160px; animation: badge-pop .7s cubic-bezier(.2, 1.4, .4, 1); }
.result-score { font-size: clamp(2.4rem, 7vw, 3.4rem); margin-bottom: 4px; outline: none; }
.result-beat { font-weight: 700; color: var(--teal); }
.result-card { background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 34px 26px; margin-top: 30px; }
.share-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 10px 0 18px; }
.share { display: inline-block; font: inherit; font-size: .9rem; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); text-decoration: none; cursor: pointer; }
.share:hover { border-color: var(--teal); }
.share.wa { border-color: #25d366; }
.quiz-result .callout { text-align: left; }
@keyframes badge-pop { 0% { transform: scale(.3) rotate(-25deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes quiz-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .result-badge, .quiz-feedback { animation: none; } .quiz-bar span { transition: none; } }
@media (max-width: 560px) { .quiz-app { padding: 20px 16px; border-radius: 16px; } .daily-card { flex-wrap: wrap; } }

/* home page band */
.quiz-band-inner { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; align-items: center; background: radial-gradient(120% 140% at 90% 0%, hsl(var(--surface-dark-2)) 0%, hsl(var(--surface-dark)) 65%); color: #fff; border-radius: 22px; padding: 34px; }
.quiz-band h2 { margin-top: 0; }
.quiz-band p { color: #d5e6e3; }
.quiz-band-badges { display: flex; align-items: center; justify-content: center; gap: 4px; }
.quiz-band-badges img:nth-child(1) { transform: rotate(-8deg); }
.quiz-band-badges img:nth-child(3) { transform: rotate(9deg); }
@media (max-width: 760px) { .quiz-band-inner { grid-template-columns: minmax(0, 1fr); padding: 26px 20px; } .quiz-band-badges { order: -1; } }

/* welcome card */
.quiz-welcome { position: fixed; left: 16px; bottom: 16px; z-index: 55; width: min(340px, calc(100vw - 32px)); background: #fff; border-radius: 18px; padding: 20px 20px 18px; box-shadow: 0 18px 50px rgba(0,0,0,.3); border-top: 5px solid var(--saffron); transform: translateY(24px); opacity: 0; transition: transform .35s ease, opacity .35s ease; }
.quiz-welcome.in { transform: none; opacity: 1; }
.quiz-welcome h2 { font-size: 1.35rem; margin: 2px 0 6px; }
.quiz-welcome p { font-size: .94rem; margin: 0 0 12px; }
.qw-close { position: absolute; right: 10px; top: 8px; background: none; border: 0; font-size: 1.5rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 4px 8px; }
@media (prefers-reduced-motion: reduce) { .quiz-welcome { transition: none; } }

/* vendor widget and admin */
textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .85rem; background: #f7f4ec; }
.widget-key { align-items: flex-start; }
.widget-key > div:first-child { flex: 1 1 420px; }
.q-item.inactive { opacity: .65; }
.opt-row { display: flex; gap: 10px; align-items: center; margin: 6px 0; }
.opt-row input[type=radio] { width: 20px; height: 20px; flex: none; accent-color: var(--green); }

/* embed */
.embed-body { background: transparent; margin: 0; padding: 4px; }
.embed-body .quiz-app { margin: 0; box-shadow: none; }
.embed-credit { text-align: right; font-size: .78rem; color: var(--muted); margin: 6px 6px 0; }
.quiz-result .result-score { margin-top: 0; }
.quiz-result .eyebrow { margin-bottom: 4px; }
.quiz-app { scroll-margin-top: 84px; }


/* ================= Design system (applied last, overrides earlier rules) ================= */
/* Container and section rhythm: max-w-6xl, px-4 sm:px-6, py-12 md:py-20 */
.wrap { max-width: 72rem; padding: 0 1rem; }
@media (min-width: 640px) { .wrap { padding: 0 1.5rem; } }
section.block, .hero, .hero-island, .quiz-hero { padding: 3rem 0; }
@media (min-width: 768px) { section.block, .hero, .hero-island, .quiz-hero { padding: 5rem 0; } }
section.block + section.block { padding-top: 0; }

/* Type: H1 text-3xl md:text-5xl bold tight; H2 text-2xl md:text-3xl semibold tight */
h1, .hero h1, .hero-island h1, .quiz-hero h1, .quiz-start h1 { font-size: 1.875rem; font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; }
h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.025em; }
@media (min-width: 768px) { h1, .hero h1, .hero-island h1, .quiz-hero h1, .quiz-start h1 { font-size: 3rem; } h2 { font-size: 1.875rem; } }
h3 { font-weight: 600; letter-spacing: -0.01em; }
.result-score { font-size: 3rem; }
.hero h1 em, .quiz-hero h1 em, .quiz-band h2 em { color: hsl(var(--highlight-on-dark)); }
h1 em, h2 em { font-style: italic; }

/* Eyebrows: text-xs font-semibold uppercase tracking-wider text-muted-foreground */
.eyebrow { font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: hsl(var(--muted-foreground)); margin: 0 0 0.75rem; }
.hero .eyebrow, .quiz-hero .eyebrow, .cta-band:not(.alt) .eyebrow, .eyebrow.light, .quiz-band .eyebrow { color: hsl(var(--on-dark-muted)); }
.answer .label, .tour-count, .quiz-top, .ad-label, footer h3, th { letter-spacing: 0.05em; }

/* Buttons: shadcn sizes (h-9, h-10, h-11), radius md, primary by default */
.btn { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); font-weight: 600; font-size: 0.95rem; padding: 0.625rem 1.125rem; border-radius: calc(var(--radius) - 2px); line-height: 1.25; }
.btn:hover { filter: brightness(1.1); transform: none; }
.btn.small { padding: 0.5rem 0.875rem; font-size: 0.875rem; }
.btn.big { padding: 0.75rem 2rem; font-size: 1rem; }
.btn.dark { background: hsl(var(--foreground)); color: hsl(var(--primary-foreground)); }
.btn.ghost { box-shadow: inset 0 0 0 1px hsl(0 0% 100% / .55); }
.btn.ghost-dark { box-shadow: inset 0 0 0 1px hsl(var(--primary)); }
/* On dark surfaces the primary button turns paper-coloured so it stays visible. */
.site-header .btn, .hero .btn:not(.ghost), .hero-island .search .btn, .quiz-hero .btn, .cta-band:not(.alt) .btn:not(.ghost), .quiz-band .btn:not(.ghost), .sticky-cta .btn { background: hsl(var(--background)); color: hsl(var(--primary)); }
.hero-island .search .btn, .sticky-cta .btn { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.daily-card .btn { background: hsl(var(--primary)); color: hsl(var(--primary-foreground)); }
.menu-btn { border-radius: calc(var(--radius) - 2px); }

/* Cards: light borders, generous whitespace, no heavy boxes */
.card { border: 1px solid hsl(var(--border) / .6); border-radius: var(--radius); padding: 1.5rem; box-shadow: none; transition: border-color .15s; }
a.card:hover { transform: none; box-shadow: none; border-color: hsl(var(--primary) / .45); }
.grid { gap: 1.5rem; margin-top: 1.5rem; }
.district-chips, .filters, .hero-links { gap: 0.5rem 1rem; }
.panel, .table-scroll, .callout, .answer { border-radius: var(--radius); border-color: hsl(var(--border) / .8); }
.cta-band, .quiz-band-inner, .result-card, .quiz-app, .island-stage, .daily-card, .quiz-welcome, .cb-inner, .tour-box { border-radius: calc(var(--radius) * 1.5); }
.quiz-app { box-shadow: none; border-color: hsl(var(--border) / .6); }
.quiz-opt { border-radius: var(--radius); border-width: 1px; }
.quiz-opt.right, .quiz-opt.wrong, .quiz-opt.chosen { border-width: 2px; }
.card.biz.is-sponsored { border-color: hsl(var(--terracotta) / .5); background: hsl(var(--accent) / .5); }
.pill.sponsored { background: hsl(var(--accent)); color: hsl(var(--accent-foreground)); }
.sponsored-block { background: hsl(var(--accent) / .6); }

/* Forms: shadcn Input/Select look */
input[type=text], input[type=email], input[type=password], input[type=number], select, textarea { border: 1px solid hsl(var(--border)); border-radius: calc(var(--radius) - 2px); padding: 0.5rem 0.75rem; min-height: 2.5rem; background: hsl(var(--card-bg)); }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 2px solid hsl(var(--ring)); outline-offset: 2px; }
.search.big { border-radius: calc(var(--radius) * 1.5); }
.chip, .chips label, .share { border-width: 1px; border-color: hsl(var(--border)); }
.chip.on, .chips label:has(input:checked) { background: hsl(var(--primary)); border-color: hsl(var(--primary)); }

/* Links and quiet text */
a { color: hsl(var(--primary)); }
.standfirst { color: hsl(var(--foreground) / .82); }
