/* Generosity Navigator uses a teal and sand palette for its public-records tools. */
@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Source Serif 4";
  src: url("/fonts/source-serif-4.woff2") format("woff2");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --deep: #0a2e31;
  --teal: #0e4a4f;
  --sand: #efe4cf;
  --white: #fff;
  --sea-glass: #a9d3cb;
  --sea-glass-pale: #e8f3f0;
  --needle: #c8553d;
  --needle-text: #9c3b27;
  --ink-soft: #3e5454;
  --display: "Schibsted Grotesk", system-ui, sans-serif;
  --body: "Schibsted Grotesk", system-ui, sans-serif;
  --reading: "Source Serif 4", Georgia, serif;
  --wrap: 1180px;
  --radius: 14px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
  margin: 0;
  background: var(--sand);
  color: var(--deep);
  font: 17px/1.6 var(--body);
}
input[type="number"], .shares dd { font-variant-numeric: tabular-nums; }
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--needle-text); }
:focus-visible { outline: 3px solid var(--needle-text); outline-offset: 3px; border-radius: 4px; }
.site-header :focus-visible, .site-footer :focus-visible, .band-green :focus-visible { outline-color: var(--sea-glass); }
main:focus { outline: none; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; color: var(--deep); }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.1rem); font-weight: 650; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 20; background: var(--needle-text); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 12px; color: #fff; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }

/* Header */
.site-header { background: var(--deep); color: var(--sand); }
.bar { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; font-family: var(--display); font-size: 1.32rem; font-weight: 600; letter-spacing: -0.01em; }
.brand:hover { color: inherit; }
.brand em { font-style: italic; font-weight: 500; color: var(--sea-glass); }
.mark { width: 38px; height: 38px; flex: none; }
.mark path { fill: var(--sea-glass); }
.mark circle { fill: var(--needle); }
.site-nav { margin-left: auto; display: flex; gap: 4px; }
.site-nav a { color: var(--sand); text-decoration: none; padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: 0.97rem; }
.site-nav a:hover { background: rgba(169, 211, 203, 0.16); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--sea-glass); color: var(--deep); }
.menu-toggle { display: none; margin-left: auto; align-items: center; gap: 10px; background: transparent; color: var(--sand); border: 2px solid var(--sea-glass); border-radius: 999px; padding: 8px 16px; font: 600 1rem var(--body); cursor: pointer; min-height: 44px; }
.menu-icon { width: 18px; height: 12px; border-top: 2px solid currentColor; border-bottom: 2px solid currentColor; position: relative; }
.menu-icon::after { content: ""; position: absolute; left: 0; right: 0; top: 3px; border-top: 2px solid currentColor; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 22px; border-radius: 12px; font: 700 1rem/1.2 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; text-align: center; }
.btn-ochre { background: var(--needle-text); color: #fff; }
.btn-ochre:hover { background: var(--deep); color: #fff; }
.btn-green { background: var(--teal); color: var(--sand); }
.btn-green:hover { background: var(--deep); color: #fff; }
.btn-line { background: transparent; color: var(--deep); border-color: var(--teal); }
.btn-line:hover { background: var(--teal); color: var(--sand); }
.band-green .btn-line, .band-ink .btn-line { color: var(--sand); border-color: var(--sea-glass); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* Bands */
.band { padding: clamp(56px, 8vw, 104px) 0; }
.band-paper { background: var(--sand); }
.band-sage { background: var(--sea-glass-pale); }
.band-green { background: var(--teal); color: var(--sand); }
.band-ink { background: var(--deep); color: var(--sand); }
.band-green h2, .band-green h3, .band-ink h2 { color: var(--sand); }
.band-green a:not(.btn), .on-dark a:not(.btn) { color: var(--sea-glass); }
.band-green a:not(.btn):hover { color: #fff; }
.eyebrow { font-weight: 700; font-size: 0.92rem; letter-spacing: 0.04em; color: var(--needle-text); margin-bottom: 0.7em; display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ""; width: 12px; height: 12px; border-radius: 50% 0 50% 50%; background: var(--needle-text); transform: rotate(-45deg); flex: none; }
.band-green .eyebrow, .band-ink .eyebrow, .eyebrow.on-dark { color: var(--sea-glass); }
.band-green .eyebrow::before { background: var(--sea-glass); }
.lede { font-size: clamp(1.1rem, 1.7vw, 1.28rem); color: var(--ink-soft); max-width: 62ch; }
.lede-sm { font-size: 1.12rem; color: var(--ink-soft); }
.section-lede { font-size: 1.15rem; max-width: 56ch; }
.band-green .section-lede, .on-dark { color: var(--sea-glass-pale); }
.prose { max-width: 66ch; font-family: var(--reading); }
.prose h2 { margin-top: 1.4em; font-size: 1.6rem; }
.prose h2:first-child { margin-top: 0; }
.note { background: var(--sea-glass-pale); border-left: 6px solid var(--needle-text); padding: 16px 20px; border-radius: 0 var(--radius) var(--radius) 0; }
.fine { font-size: 0.92rem; color: var(--ink-soft); margin-top: 14px; max-width: 64ch; }
.hint { font-size: 0.95rem; color: var(--ink-soft); margin: 10px 0 0; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); background-image: radial-gradient(rgba(14, 74, 79, 0.06) 1.4px, transparent 1.6px); background-size: 22px 22px; background-position: right top; }

/* Home hero */
.hero { position: relative; background: var(--sand); overflow: hidden; min-height: min(78vh, 720px); display: flex; align-items: center; }
.hero-art { position: absolute; inset: 0; }
.hero-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--sand) 0 30%, transparent 57%);
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-copy { position: relative; padding: 72px 0 80px; }
.hero-copy > * { max-width: min(560px, 48%); }
.hero h1 { margin-bottom: 0.4em; }
.quick-check { margin-top: 26px; }
.quick-check label, .check-form label { display: block; font-weight: 700; margin-bottom: 8px; color: var(--deep); }
.quick-row { display: flex; gap: 10px; }
.quick-row input { flex: 1; min-width: 0; min-height: 52px; padding: 12px 16px; font: 1.05rem var(--body); color: var(--deep); background: #fff; border: 2px solid var(--teal); border-radius: 12px; }
.quick-row input::placeholder { color: #6a7570; }
.hero-alt { margin-top: 16px; font-weight: 600; }

/* Four directions */
.petal-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(24px, 3vw, 40px); margin-top: 44px; }
.petal-card { color: var(--sand); text-decoration: none; display: flex; flex-direction: column; padding-top: 6px; }
.petal-card:hover { color: #fff; }
.petal-card h3 { color: #fff; margin-top: 18px; font-size: 1.45rem; }
.petal-card p { color: var(--sea-glass-pale); flex: 1; }
.card-cta { font-weight: 700; color: var(--sea-glass); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.petal-card:hover .card-cta { color: #fff; }
.petal-badge { width: 64px; height: 64px; border-radius: 50% 0 50% 50%; background: var(--sea-glass); position: relative; }
.petal-badge::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--needle); right: -4px; top: -4px; }
.p-nw { transform: rotate(0deg); }
.p-ne { transform: rotate(90deg); }
.p-se { transform: rotate(180deg); }
.p-sw { transform: rotate(270deg); }

/* Honest band */
.honest h2 { max-width: 14ch; }

/* Feature (study) */
.feature-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.feature-rosette { width: min(360px, 80%); margin-inline: auto; }
.feature-rosette .ghost path { fill: var(--teal); }
.feature-rosette circle { fill: var(--needle-text); }
.band-paper .feature-rosette .ghost path { fill: var(--teal); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 22px 0 24px; }
.facts div { border-top: 4px solid var(--teal); padding-top: 10px; }
.facts dt { font-size: 0.9rem; font-weight: 700; color: var(--needle-text); }
.facts dd { margin: 2px 0 0; font-weight: 600; color: var(--deep); }

/* Verse */
.verse blockquote { margin: 0 auto; max-width: 900px; text-align: center; }
.verse blockquote p { font-family: var(--reading); font-size: clamp(1.5rem, 3.2vw, 2.4rem); line-height: 1.3; font-weight: 450; font-style: italic; color: #fff; }
.verse footer { font-weight: 700; color: var(--sea-glass); }
.next-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: center; }
.next-grid .actions { justify-content: flex-end; }

/* Check page */
.check-form { margin-top: 28px; }
.results-title { margin-bottom: 6px; }
.results-status { font-weight: 600; color: var(--ink-soft); margin-bottom: 28px; }
.source-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 40px; counter-reset: src; }
.source { border-left: 6px solid var(--teal); padding: 4px 0 4px 20px; counter-increment: src; }
.source h3 { font-size: 1.25rem; margin-bottom: 0.35em; }
.source p { font-family: var(--reading); color: var(--ink-soft); margin-bottom: 0.6em; }
.src-link { font-weight: 700; }
.source.is-match { border-left-color: var(--needle-text); }
.sign-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 14px; }
.sign-list li { position: relative; padding-left: 34px; font-size: 1.08rem; color: var(--sea-glass-pale); }
.sign-list li::before { content: ""; position: absolute; left: 0; top: 0.35em; width: 16px; height: 16px; border-radius: 50% 0 50% 50%; background: var(--sea-glass); transform: rotate(-45deg); }

/* Questions and diagnostics */
.question-set { margin: 28px 0 0; display: grid; gap: 14px; }
.q { border: 0; margin: 0; padding: 18px 20px; background: var(--white); border-radius: var(--radius); border-left: 6px solid var(--sea-glass); }
.band-sage .q { background: var(--sand); }
.q legend { float: left; width: 100%; padding: 0; font-weight: 600; font-size: 1.05rem; color: var(--deep); margin-bottom: 6px; }
.q legend + * { clear: both; }
.q > p { clear: both; margin: 0 0 10px; color: var(--ink-soft); font-size: 0.97rem; }
.q.is-yes { border-left-color: var(--teal); }
.q.is-unsure { border-left-color: var(--needle-text); }
.q.is-no { border-left-color: #8a3a2a; }
.choices { clear: both; display: flex; flex-wrap: wrap; gap: 8px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; background: var(--sea-glass-pale); cursor: pointer; font-weight: 600; color: var(--deep); }
.band-sage .choices label { background: var(--sea-glass); }
.choices input { accent-color: var(--teal); width: 18px; height: 18px; margin: 0; }
.choices label:has(input:checked) { background: var(--teal); color: #fff; }
.choices label:has(input:focus-visible) { outline: 3px solid var(--needle-text); outline-offset: 2px; }
.ps-group { font-family: var(--display); font-size: 1.25rem; color: var(--needle-text); margin: 14px 0 0; font-weight: 600; }
.result-panel { margin-top: 26px; background: var(--teal); color: var(--sand); border-radius: var(--radius); padding: 22px 26px; }
.result-panel h3 { color: #fff; margin-bottom: 0.4em; }
.result-panel p:last-child, .result-panel ul:last-child { margin-bottom: 0; }
.result-panel a:not(.btn) { color: var(--sea-glass); }
.result-panel ul { padding-left: 1.2em; }
.result-panel .btn { margin-top: 6px; }
.result-meter { height: 14px; border-radius: 999px; background: rgba(239, 228, 207, 0.22); overflow: hidden; margin: 10px 0 16px; }
.result-meter span { display: block; height: 100%; background: var(--sea-glass); border-radius: 999px; width: 0; transition: width 0.3s ease; }
.print-row { margin-top: 22px; }

/* Compass */
.compass-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.inline-verse { margin: 18px 0 22px; padding: 0 0 0 20px; border-left: 6px solid var(--needle-text); }
.inline-verse p { font-family: var(--display); font-style: italic; font-size: 1.2rem; line-height: 1.45; color: var(--deep); margin-bottom: 6px; }
.inline-verse footer { font-weight: 700; font-size: 0.95rem; color: var(--needle-text); }
.sliders { display: grid; gap: 18px; margin-top: 18px; }
.slider { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; align-items: center; }
.slider label { grid-column: 1 / -1; color: var(--ink-soft); }
.slider label strong { color: var(--deep); display: block; font-size: 1.08rem; }
.slider input { width: 100%; accent-color: var(--teal); height: 32px; }
.slider output { font-weight: 700; color: var(--deep); min-width: 3ch; text-align: right; }
.amount { display: grid; gap: 6px; font-weight: 600; color: var(--deep); margin-top: 6px; }
.amount input { min-height: 48px; padding: 10px 14px; font: 1rem var(--body); border: 2px solid var(--teal); border-radius: 12px; background: #fff; max-width: 260px; }
.compass-card { position: sticky; top: 24px; }
.compass-rosette { width: min(420px, 100%); margin: 0 auto 10px; }
.compass-rosette .ghost path { fill: var(--sea-glass); }
.compass-rosette .live path { fill: var(--teal); transition: transform 0.25s ease; transform-box: view-box; transform-origin: 32px 32px; }
.compass-rosette .hub { fill: var(--needle-text); }
.shares { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 0 0 16px; }
.shares div { border-top: 4px solid var(--teal); padding-top: 8px; }
.shares dt { font-size: 0.92rem; color: var(--ink-soft); font-weight: 600; }
.shares dd { margin: 0; font-family: var(--display); font-size: 1.6rem; font-weight: 600; color: var(--deep); }
.shares .amt { display: block; font-family: var(--body); font-size: 0.95rem; color: var(--needle-text); font-weight: 700; }
.compass-reflect { font-size: 1.05rem; color: var(--deep); font-weight: 500; }

/* Nonprofit checklist */
.check-set { display: grid; gap: 12px; margin-top: 24px; }
.check-item { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; padding: 16px 18px; background: var(--white); border-radius: var(--radius); border-left: 6px solid var(--sea-glass); cursor: pointer; }
.check-item input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--teal); }
.check-item:has(input:checked) { border-left-color: var(--teal); }
.check-item strong { color: var(--deep); }

/* Method */
.criteria-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin-top: 30px; }
.crit-group { border-top: 6px solid var(--teal); padding-top: 14px; }
.crit-group ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.sample-card { background: var(--sea-glass-pale); border-radius: 18px; padding: 26px 28px; border-left: 8px solid var(--needle-text); }
.sample-flag { display: inline-block; background: var(--needle-text); color: #fff; font-weight: 700; font-size: 0.92rem; padding: 6px 12px; border-radius: 999px; }
.sample-card dl { margin: 12px 0 0; display: grid; gap: 12px; }
.sample-card dt { font-weight: 700; color: var(--deep); }
.sample-card dd { margin: 0; color: var(--ink-soft); }

/* Footer */
.site-footer { background: var(--deep); color: var(--sea-glass-pale); padding: 64px 0 28px; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 3fr)); gap: 32px; }
.foot-brand p { margin-top: 14px; max-width: 38ch; }
.site-footer h2 { font-family: var(--body); font-size: 1rem; font-weight: 700; color: var(--sea-glass); margin-bottom: 10px; }
.site-footer nav a { display: block; color: var(--sand); text-decoration: none; padding: 6px 0; overflow-wrap: anywhere; }
.site-footer nav a:hover { color: #fff; text-decoration: underline; }
.foot-note { font-size: 0.92rem; margin-bottom: 6px; }
.family-links { margin-top: 32px; }
.family-links ul { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 0; margin: 0; list-style: none; }
.family-links li a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-base { margin-top: 40px; padding-top: 22px; border-top: 2px solid rgba(169, 211, 203, 0.22); font-size: 0.9rem; color: var(--sea-glass); }
.foot-base p { margin: 0; }

/* Responsive */
@media (max-width: 1020px) {
  .petal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .criteria-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .bar { flex-wrap: wrap; }
  .site-nav { display: none; width: 100%; flex-direction: column; padding: 0 0 16px; }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 14px; }
  .split, .feature-grid, .compass-grid, .next-grid { grid-template-columns: 1fr; }
  .next-grid .actions { justify-content: flex-start; }
  .compass-card { position: static; }
  .source-list { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 16.5px; }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; }
  .hero-art { position: relative; order: 2; height: 300px; }
  .hero-art::after { background: linear-gradient(var(--sand), transparent 30%); }
  .hero-art img { object-position: 50% 82%; }
  .hero-copy { padding: 44px 0 8px; }
  .hero-copy > * { max-width: none; }
  .quick-row { flex-direction: column; }
  .petal-grid, .criteria-grid, .foot-grid, .shares { grid-template-columns: 1fr; }
  .feature-rosette { width: 200px; }
  .brand { font-size: 1.15rem; }
  .mark { width: 32px; height: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .print-row, .skip, .hero-art { display: none !important; }
  body { background: #fff; }
  .band { padding: 18px 0; background: #fff !important; color: #000 !important; }
  .result-panel { background: #fff; color: #000; border: 2px solid var(--teal); }
  .result-panel h3, .result-panel a { color: #000 !important; }
}

/* Common questions */
.faq-list h3 { margin-top: 1.4em; }
.faq-list h3:first-child { margin-top: 0; }
.faq-list p { max-width: 66ch; font-family: var(--reading); }

/* Copy the open questions */
.copy-row { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; }
.copy-row[hidden] { display: none; }
.copy-note { margin: 0; }
