/* Public homepage only: a light, editorial counterpart to the Ledger. */
:root {
  --ink: #181c11;
  --muted: #52514e;
  --line: #ded9c6;
  --line-strong: #c9c3ac;
  --paper: #f4f4ec;
  --surface: #fff;
  --surface-alt: #eaeedd;
  --tree: #2e6b44;
  --tree-deep: #1d4a2f;
  --gold: #f3d36b;
  --gold-line: #b69439;
  --bark: #9c6b34;
  --shadow: 0 1px 2px rgba(24, 28, 17, .06), 0 16px 36px -20px rgba(24, 28, 17, .35);
  font-family: "Public Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); line-height: 1.6; -webkit-text-size-adjust: 100%; }
a { color: var(--tree-deep); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid rgba(46, 107, 68, .45); outline-offset: 3px; }
main:focus-visible { outline: none; }
.skip-link {
  position: absolute;
  top: -100%;
  left: 12px;
  z-index: 10;
  border-radius: 0 0 8px 8px;
  padding: 10px 16px;
  background: var(--tree-deep);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 0; }
main, .site-head, .site-foot { max-width: 1040px; margin: 0 auto; padding-right: 24px; padding-left: 24px; }

.site-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 22px; padding-bottom: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 700; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; }
.brand span, .head-link { white-space: nowrap; }
.brand span { font-size: 1.08rem; }
.head-link { font-size: .92rem; font-weight: 700; text-decoration: none; }
.head-link:hover { text-decoration: underline; }

.hero { display: grid; overflow: hidden; margin-bottom: 8px; border-radius: 18px; background: var(--tree-deep); color: var(--paper); box-shadow: var(--shadow); }
.hero-copy { display: flex; position: relative; z-index: 1; flex-direction: column; justify-content: center; padding: 36px 28px 34px; }
.eyebrow { margin: 0 0 8px; color: #c9dfc9; font-family: "Fraunces", Georgia, serif; font-size: .98rem; font-style: italic; font-weight: 500; letter-spacing: .05em; }
h1, h2 { font-family: "Fraunces", Georgia, serif; font-weight: 600; letter-spacing: -.028em; line-height: 1.1; text-wrap: balance; }
h1 { margin: 0 0 18px; font-size: clamp(2.2rem, 7vw, 4rem); letter-spacing: -.04em; line-height: 1.02; }
.h1-tagline { display: inline-block; margin-top: .2em; font-size: .6em; letter-spacing: -.03em; }
h2 { margin: 0 0 16px; font-size: clamp(1.55rem, 4vw, 2.15rem); }
p { margin: 0 0 14px; }
.hero-sub { max-width: 35em; margin-bottom: 27px; color: #d8e5d3; font-size: clamp(1.02rem, 2.6vw, 1.17rem); }
.hero-sub strong { color: #fff; }
.cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 9px; padding: 13px 22px; background: var(--surface); color: var(--tree-deep); cursor: pointer; font: inherit; font-weight: 700; text-decoration: none; }
.cta-icon { flex: 0 0 18px; width: 18px; height: 18px; }
.cta-btn:hover { background: var(--surface-alt); }
.cta-note { max-width: 34em; margin: 14px 0 0; color: #c9dfc9; font-size: .88rem; }
.hero-photo { position: relative; min-height: 265px; margin: 0; }
.hero-photo::after { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(29, 74, 47, .18), transparent 45%); content: ""; pointer-events: none; }
.hero-photo picture { display: contents; }
.hero-photo img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 45% center; }
.hero-photo figcaption { position: absolute; right: 0; bottom: 0; left: 0; z-index: 1; padding: 10px 14px; background: var(--tree-deep); color: #fff; font-size: .77rem; line-height: 1.35; }

section { padding: 52px 0; border-top: 1px solid var(--line); }
.hero { padding: 0; border-top: 0; }
.pillars article { padding: 28px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.pillars article + article { margin-top: 24px; }
.pillars article p { margin-bottom: 0; }
.pillar-icon { display: block; width: 80px; height: 80px; margin: 0 auto 22px; object-fit: contain; }
.pillars h2 { text-align: center; font-family: "Public Sans", ui-sans-serif, sans-serif; font-size: 1.05rem; letter-spacing: -.015em; }
.pillars p, .signup-intro, .ledger p { max-width: 42em; color: var(--muted); }

.counts-intro { margin: -4px 0 24px; color: var(--muted); font-size: 1rem; }
.map-inventory { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.inventory-total { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: baseline; padding: 22px 20px; background: var(--surface-alt); }
.inventory-total strong { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: clamp(2rem, 8vw, 3rem); letter-spacing: -.06em; line-height: 1; }
.inventory-total span { color: var(--muted); font-size: .94rem; font-weight: 700; }
.inventory-total img { align-self: center; width: 44px; height: 44px; object-fit: contain; }
.inventory-groups { display: grid; }
.inventory-group { padding: 20px; border-top: 1px solid var(--line); }
.inventory-group h3 { margin: 0 0 13px; font-size: 1rem; }
.inventory-group h3 > a { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.inventory-group h3 span, .inventory-group dt a { display: flex; gap: 9px; align-items: center; }
.inventory-group h3 img { width: 38px; height: 38px; object-fit: contain; }
.inventory-group dt a { min-height: 24px; color: inherit; text-decoration: none; }
.inventory-group dt img { flex: 0 0 38px; width: 38px; height: 23px; object-fit: contain; }
.inventory-always img { width: 38px; height: 38px; object-fit: contain; }
.inventory-group h3 > strong, .inventory-group dd, .inventory-always > strong { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-variant-numeric: tabular-nums; }
.inventory-group dl { display: grid; gap: 5px; margin: 0; color: var(--muted); }
.inventory-group dl div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; align-items: center; }
.inventory-group dt, .inventory-group dd { margin: 0; }
.inventory-group h3 > a:hover, .inventory-group dt a:hover { color: var(--tree-deep); text-decoration: underline; text-underline-offset: 3px; }
.inventory-always { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; padding: 20px; border-top: 1px solid var(--line); }
.inventory-always div { display: flex; gap: 10px; align-items: flex-start; }
.inventory-always span { display: flex; flex-direction: column; }
.inventory-always small { margin-top: 4px; color: var(--muted); font-size: .8rem; }

.section-intro { margin: -4px 0 24px; color: var(--muted); font-size: 1rem; }
.offline-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.steps { display: grid; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps li { position: relative; display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 4px 14px; align-items: center; padding: 22px 20px; counter-increment: step; }
.steps li + li { border-top: 1px solid var(--line); }
.steps li::before { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--tree-deep); color: #fff; content: counter(step); font-family: "Fraunces", Georgia, serif; font-size: 1.1rem; font-weight: 600; line-height: 1; }
.steps li + li::after { position: absolute; top: -12px; left: 27px; display: grid; place-items: center; width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--tree); content: "↓"; font-size: .8rem; font-weight: 700; line-height: 1; }
.steps strong { font-size: 1.02rem; line-height: 1.3; }
.steps span { grid-column: 2; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.community-panel { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.community-lead { margin: 0; padding: 20px 20px 4px; font-size: 1.02rem; line-height: 1.5; }
.community-points { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.community-points li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 2px 14px; align-items: center; padding: 18px 20px; }
.community-points li + li { border-top: 1px solid var(--line); }
.community-icon { grid-row: span 2; width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--surface-alt); color: var(--tree); }
.community-points strong { font-size: 1.02rem; line-height: 1.3; }
.community-points span { color: var(--muted); font-size: .94rem; line-height: 1.5; }
.community-foot { display: grid; gap: 14px; justify-items: start; padding: 18px 20px 22px; border-top: 1px solid var(--line); background: var(--surface-alt); }
.community-foot p { margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.55; }
@media (min-width: 760px) {
  .community-points { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .community-points li { grid-template-columns: 1fr; gap: 6px; align-items: start; }
  .community-points li + li { border-top: 0; border-left: 1px solid var(--line); }
  .community-icon { grid-row: auto; }
}
.offline-note { display: flex; gap: 14px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--line); background: var(--surface-alt); }
.offline-note img { flex: 0 0 40px; width: 40px; height: 40px; object-fit: contain; }
.offline-note strong { display: block; margin-bottom: 2px; font-size: 1.02rem; line-height: 1.3; }
.offline-note p { max-width: 60em; margin: 0; color: var(--muted); font-size: .94rem; line-height: 1.5; }
.faq-list { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.faq-item { padding: 20px 22px; scroll-margin-top: 24px; }
.faq-item:target { background: #f6f1e7; }
.faq-item dt a { color: inherit; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.faq-item dt a:hover { color: var(--tree-deep); text-decoration-color: currentColor; }
.faq-item + .faq-item { border-top: 1px solid var(--line); }
.faq-item dt { margin: 0; font-size: 1.02rem; font-weight: 700; line-height: 1.4; }
.faq-item dd { max-width: 42em; margin: 6px 0 0; color: var(--muted); }
.tag-intro { display: grid; gap: 24px; align-items: center; margin-bottom: 24px; }
.tag-feature { order: -1; margin: 0; padding: 0; border: 0; }
.tag-copy p { margin: 0; color: var(--muted); }
.tag-story { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 84%); gap: 14px; align-items: start; overflow-x: auto; margin-top: 24px; padding: 2px 2px 12px; scroll-snap-type: x proximity; }
.tag-story figure { display: flex; flex-direction: column; margin: 0; scroll-snap-align: start; }
.tag-story .app-shot img { position: relative; z-index: 1; display: block; box-sizing: border-box; width: 84%; height: auto; margin: 0 auto; border: 4px solid var(--tree-deep); border-radius: 26px; background: var(--surface); box-shadow: 0 2px 6px rgba(24, 28, 17, .14); }
.tag-story figcaption { flex: 1; box-sizing: border-box; width: 84%; margin: -44px auto 0; padding: 58px 16px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); color: var(--muted); font-size: .84rem; line-height: 1.45; }
.tag-story figcaption strong { color: var(--ink); }
.tag-feature { display: flex; justify-content: center; }
.tag-feature img { display: block; width: min(280px, 70vw); height: auto; aspect-ratio: 1; border: 6px solid var(--surface); border-radius: 50%; box-shadow: var(--shadow); object-fit: cover; }
.ledger { margin-bottom: 52px; padding: clamp(24px, 4vw, 36px); border: 1px solid var(--line-strong); border-left: 5px solid var(--tree); border-radius: 14px; background: var(--surface-alt); box-shadow: var(--shadow); }
.ledger .eyebrow { color: var(--tree-deep); }
.ledger > p { margin: 0 0 20px; }
.ledger-latest { max-width: 56rem; margin: 0 0 22px; padding: 22px 0 0; border-top: 1px solid var(--line-strong); }
.ledger-latest-label { margin: 0 0 5px; color: var(--tree-deep); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.ledger-latest-summary { max-width: none !important; margin: 0 0 18px; color: var(--muted); }
.ledger-latest-date { display: block; margin-bottom: 18px; color: var(--ink); font-family: "Fraunces", Georgia, serif; font-size: clamp(1.28rem, 3vw, 1.65rem); font-weight: 600; line-height: 1.15; }
.ledger-stories { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.ledger-story { position: relative; min-width: 0; padding: 17px 0 18px 18px; border-bottom: 1px solid var(--line); }.ledger-story::before { position: absolute; top: 21px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--tree); content: ""; }.ledger-story--access::before { background: var(--bark); }.ledger-story--events::before { background: var(--gold-line); }
.ledger-story-type { display: block; margin-bottom: 5px; color: var(--tree-deep); font-size: .72rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }.ledger-story--access .ledger-story-type { color: #79451d; }.ledger-story--events .ledger-story-type { color: #765c0a; }
.ledger-story h3 { margin: 0 0 7px; font-family: "Fraunces", Georgia, serif; font-size: 1.08rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.18; }.ledger-story-meta { display: flex; flex-wrap: wrap; gap: 5px 10px; margin: 0; color: var(--muted); font-size: .83rem; font-weight: 700; line-height: 1.35; }.ledger-story-status { color: var(--tree-deep); }.ledger-story--access .ledger-story-status { color: #79451d; }.ledger-story--events .ledger-story-status { color: #765c0a; }
.ledger-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }.ledger-archive-link { font-size: .92rem; font-weight: 700; text-underline-offset: 3px; }
.signup { margin-bottom: 52px; padding: clamp(22px, 4vw, 36px); border: 1px solid var(--gold-line); border-left: 5px solid var(--gold); border-radius: 14px; background: #fff6d8; box-shadow: var(--shadow); }

.signup-intro { max-width: none; margin: 0 0 20px; }
.card-head { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.card-icon { flex: 0 0 44px; width: 44px; height: 44px; }
.card-head h2 { margin: 0; }
.signup-row { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 36rem; }
.signup-row .cta-btn { white-space: nowrap; }
.signup .cta-btn, .ledger .cta-btn { background: var(--tree); color: #fff; }
.signup .cta-btn:hover, .ledger .cta-btn:hover { background: var(--tree-deep); }
.signup-form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.signup-confirmation:not([hidden]) { display: flex; align-items: flex-start; gap: clamp(18px, 3vw, 28px); padding: 12px 0; }
.inbox-emblem { position: relative; display: grid; place-items: center; flex: 0 0 96px; width: 96px; height: 96px; border: 1px solid var(--gold-line); border-radius: 50%; background: var(--surface); }
.inbox-step-badge { position: absolute; top: -3px; right: -3px; display: grid; place-items: center; width: 32px; height: 32px; border: 3px solid var(--surface); border-radius: 50%; background: var(--gold); color: var(--ink); font-size: 1rem; font-weight: 800; box-shadow: 0 0 0 1px var(--gold-line); }
.inbox-emblem img { display: block; width: 72px; height: 72px; }
.inbox-copy { max-width: 36em; }
.inbox-step { margin: 0 0 6px; color: var(--tree-deep); font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.inbox-kicker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.inbox-kicker .inbox-step { margin: 0; }
.inbox-reminder { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--gold); color: var(--tree-deep); font-size: .78rem; font-weight: 700; }
.inbox-reminder svg { width: 16px; height: 16px; transform-origin: 50% 15%; }
.inbox-copy h2 { margin: 0 0 12px; color: var(--tree-deep); }
.inbox-copy h2:focus { outline: none; }
.inbox-copy > p:not(.inbox-step) { margin: 0; }
.inbox-copy > p.inbox-help { margin-top: 18px; color: var(--muted); font-size: .88rem; }
@media (prefers-reduced-motion: no-preference) {
  .signup-confirmation:not([hidden]) .inbox-reminder svg { animation: inbox-remind .9s .5s ease-in-out both; }
  .signup-confirmation:not([hidden]) .inbox-emblem img { animation: inbox-arrive .5s cubic-bezier(.2,.7,.2,1) both; }
  .signup-confirmation:not([hidden]) .inbox-copy { animation: rise .42s .07s cubic-bezier(.2,.7,.2,1) both; }
}
@keyframes inbox-remind { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(12deg); } 50% { transform: rotate(-9deg); } 75% { transform: rotate(5deg); } }
@keyframes inbox-arrive { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
@media (max-width: 599px) {
  .signup-confirmation:not([hidden]) { flex-direction: column; }
  .inbox-emblem { flex-basis: 80px; width: 80px; height: 80px; }
  .inbox-emblem img { width: 60px; height: 60px; }
}
.field-label { font-size: .9rem; font-weight: 700; }
.field { width: 100%; border: 1px solid var(--line-strong); border-radius: 9px; padding: 13px 14px; background: var(--surface); color: var(--ink); font: inherit; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin: 0; font-size: .92rem; }
.form-msg:empty { margin-top: -10px; }
.form-msg.is-error { color: #a5391d; }.form-msg.is-ok { color: var(--tree); font-weight: 700; }
.form-small { margin: 2px 0 0; color: var(--muted); font-size: .82rem; }
.site-foot { border-top: 1px solid var(--line-strong); padding-top: 28px; padding-bottom: 56px; color: var(--muted); font-size: .86rem; }
.site-foot p { margin: 0 0 8px; }

/* Motion: quiet, quick and skipped entirely for reduced-motion visitors. */
.cta-btn, .pillars article, .app-shot img, .app-shot figcaption, .tag-feature img, .ledger { transition: transform .25s ease, box-shadow .25s ease, background-color .2s ease; }
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.reveal.is-in { opacity: 1; transform: none; }
.app-shot img.reveal:not(.is-in) { transform: translateY(28px); }
.app-shot figcaption.reveal:not(.is-in) { transform: translateY(10px); }
.hero-copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; }
.hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; }
.hero-photo { animation: fade .9s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade { from { opacity: 0; } }
@media (hover: hover) {
  .app-shot:hover img { transform: translateY(-6px); box-shadow: 0 6px 12px -4px rgba(24, 28, 17, .22); }
  .app-shot:hover figcaption { transform: translateY(-1px); }
  .pillars article:hover, .ledger:hover { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(24, 28, 17, .06), 0 22px 40px -20px rgba(24, 28, 17, .42); }
  .tag-feature img:hover { transform: scale(1.03); }
  .cta-btn:hover { transform: translateY(-1px); }
}
.cta-btn:active { transform: translateY(0) scale(.98); }
.cta-btn:disabled { transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pillars article:hover, .app-shot:hover img, .app-shot:hover figcaption, .ledger:hover, .tag-feature img:hover, .cta-btn:hover, .cta-btn:active { transform: none; }
}

@media (min-width: 640px) {
  .ledger-stories { grid-template-columns: repeat(3, minmax(0, 1fr)); }.ledger-story { padding: 18px 18px 20px; border-bottom: 0; }.ledger-story + .ledger-story { border-left: 1px solid var(--line); }.ledger-story::before { top: 21px; left: 18px; }.ledger-story-type { margin-left: 14px; }
  .tag-intro { grid-template-columns: clamp(180px, 24vw, 260px) minmax(0, 1fr); gap: 40px; }
  .tag-feature img { width: 100%; }
  .hero { grid-template-columns: minmax(0, 1.08fr) minmax(300px, .92fr); min-height: 470px; }
  .hero-copy { padding: 48px 42px; }.hero-photo { min-height: 0; }
  .tag-story { grid-auto-flow: row; grid-auto-columns: auto; grid-template-areas: "search route age"; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; align-items: stretch; overflow: visible; padding: 0; }
  .app-shot-search { grid-area: search; }.app-shot-route { grid-area: route; }.app-shot-age { grid-area: age; }
  .signup-row { flex-direction: row; }.signup-row .field { flex: 1 1 auto; }
  .pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }.pillars article + article { margin-top: 0; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .steps li { align-content: start; padding: 24px; }
  .steps li + li { border-top: 0; border-left: 1px solid var(--line); }
  .steps li + li::after { top: 31px; left: -12px; content: "→"; }
  .offline-note { padding: 16px 24px; }
  .faq-item { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 32px; padding: 24px 28px; }
  .faq-item dd { margin: 0; }
  .inventory-total { padding: 26px 24px; }
  .inventory-groups { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inventory-group { min-height: 190px; padding: 20px; }
  .inventory-group:nth-child(3n + 2), .inventory-group:nth-child(3n + 3) { border-left: 1px solid var(--line); }
  .inventory-always { padding: 20px 24px; }
}
@media (max-width: 420px) { main, .site-head, .site-foot { padding-right: 18px; padding-left: 18px; }.brand-mark { width: 36px; height: 36px; }.brand span { font-size: 1rem; }.hero-copy { padding: 30px 22px; } }

/* Keep current forest news close to the introduction. */
.hero + .ledger { margin-top: 28px; margin-bottom: 28px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.cta .cta-note { flex-basis: 100%; margin-top: 0; }
.inventory-details summary { cursor: pointer; color: var(--tree-deep); font-size: .85rem; font-weight: 600; }
.inventory-details summary:focus-visible { outline: 3px solid rgba(46, 107, 68, .45); outline-offset: 3px; }
.inventory-details[open] summary { margin-bottom: 12px; }
.map-inventory[data-always-open] .inventory-details summary { display: none; }
.inventory-group { min-height: 0; }
.map-inventory [hidden] { display: none; }
.ledger-story h3 a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Community pages: the /contribute explainer and the /reports/tree-report discrepancy report. Built from the
   homepage's own pieces (hero, cards, steps, faq-list) plus a few components of their own. */
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.cta-btn.cta-ghost { border: 1px solid rgba(255, 255, 255, .5); background: transparent; color: #fff; }
.cta-btn.cta-ghost:hover { background: rgba(255, 255, 255, .12); }
.page-hero .hero-copy { padding: 40px 28px 38px; }
.page-hero h1 { margin-bottom: 14px; font-size: clamp(2rem, 6vw, 3.2rem); }
.page-lede { max-width: 38em; margin-bottom: 24px; color: #d8e5d3; font-size: clamp(1.02rem, 2.6vw, 1.17rem); }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; }
.hero-stats li { padding: 12px 14px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 12px; background: rgba(255, 255, 255, .08); color: #d8e5d3; font-size: .85rem; line-height: 1.3; }
.hero-stats strong { display: block; color: #fff; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 1.7rem; letter-spacing: -.04em; line-height: 1.15; }

.card-grid { display: grid; gap: 18px; }
@media (min-width: 760px) {
  .card-grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.info-card { padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.info-card h3 { margin: 0 0 6px; font-size: 1.05rem; line-height: 1.3; }
.info-card p { margin: 0; color: var(--muted); font-size: .96rem; line-height: 1.55; }
.info-icon { display: block; width: 48px; height: 48px; margin-bottom: 14px; padding: 11px; border-radius: 13px; background: var(--surface-alt); color: var(--tree); }
.section-lede { max-width: 42em; margin: -4px 0 22px; color: var(--muted); }
.rank-card { text-align: center; }
.rank-card .info-icon { margin-right: auto; margin-left: auto; background: #f6edc9; color: #7a5d00; }
.rank-points { display: block; margin-top: 6px; color: var(--tree-deep); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .9rem; font-weight: 700; }
.points-list { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.points-list li { display: flex; gap: 12px; align-items: baseline; padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.points-list strong { flex: 0 0 auto; min-width: 3.2em; color: var(--tree-deep); font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: 1.05rem; }
.note-card { margin-top: 18px; padding: 16px 20px; border-left: 4px solid var(--gold-line); border-radius: 10px; background: #fbf6e3; color: #4a3f17; font-size: .96rem; }
.note-card p { margin: 0; }
.plain-list { margin: 0 0 14px; padding-left: 1.2em; color: var(--muted); }
.plain-list li + li { margin-top: 6px; }
.cta-panel { display: grid; gap: 16px; padding: 30px 26px; border-radius: 18px; background: var(--tree-deep); color: var(--paper); box-shadow: var(--shadow); }
.cta-panel h2 { margin: 0; color: #fff; }
.cta-panel p { margin: 0; color: #d8e5d3; }
.def-list .faq-item dt { font-weight: 700; }
.def-list .faq-item dd { margin: 4px 0 0; color: var(--muted); }
.def-list .faq-item { display: grid; gap: 2px 24px; }
@media (min-width: 760px) { .def-list .faq-item { grid-template-columns: minmax(0, 17em) minmax(0, 1fr); align-items: baseline; } .def-list .faq-item dd { margin: 0; } }

.hero.page-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
@media (min-width: 640px) {
  .page-hero .hero-copy { padding: 52px 46px 48px; }
  .steps.steps-four { grid-template-columns: minmax(0, 1fr); }
  .steps.steps-four li + li { border-top: 1px solid var(--line); border-left: 0; }
}
@media (min-width: 900px) {
  .steps.steps-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .steps.steps-four li + li { border-top: 0; border-left: 1px solid var(--line); }
}

/* The report's tables */
.report-card { overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); }
.report-scroll { overflow-x: auto; }
.report-table { width: 100%; border-collapse: collapse; font-size: .93rem; }
.report-table th { padding: 12px 14px; background: var(--surface-alt); color: var(--muted); font-size: .74rem; letter-spacing: .06em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.report-table td { padding: 12px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.report-table .mono, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-variant-numeric: tabular-nums; }
.report-table td:first-child { font-weight: 700; }
.report-empty { margin: 0; padding: 28px 20px; color: var(--muted); text-align: center; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--surface-alt); color: var(--tree-deep); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.badge.warn { background: #f6edc9; color: #7a5d00; }
@media (max-width: 680px) {
  .report-table thead { display: none; }
  .report-table, .report-table tbody, .report-table tr, .report-table td { display: block; }
  .report-table tr { padding: 10px 14px; border-top: 1px solid var(--line); }
  .report-table tr:first-child { border-top: 0; }
  .report-table td { display: flex; gap: 16px; justify-content: space-between; padding: 4px 0; border: 0; text-align: right; }
  .report-table td::before { flex: 0 0 auto; color: var(--muted); content: attr(data-label); font-size: .78rem; font-weight: 700; text-align: left; }
  .report-table td:first-child { display: block; padding-bottom: 6px; text-align: left; }
  .report-table td:first-child::before { display: none; }
}
@media print {
  .site-head, .hero-actions, .skip-link, .cta-panel { display: none; }
  body { background: #fff; }
  .page-hero { background: #fff; color: #000; box-shadow: none; }
  .page-hero h1, .page-lede, .hero-stats li, .hero-stats strong { color: #000; }
}

/* Illustrated PNG icons sit in the existing 48px info tiles and 40px community tiles; less padding lets the artwork read at tile size. */
.info-icon.icon-art { padding: 4px; }
.community-icon.icon-art { padding: 3px; }
