[hidden] { display: none !important; }

/* Layout: one brand look (white pages, near-black bands, Better Story orange), max 1180px column, hash-routed pages */
:root {
  --ink: #1E1A16;
  --ink-2: #5C5249;
  --ink-3: #6E645A;
  --paper: #FFFFFF;
  --sand: #F8F3EE;
  --line: #EEE7DF;
  --orange: #EE7F33;
  --orange-text: #A6520A;
  --night: #16130F;
  --night-2: #241E18;
  --night-line: #3A3028;
  --night-text: #D9CFC4;
  --night-dim: #8C7D6E;
  --glow: #FFE3BF;
  --font: 'Rubik', 'Aharoni', 'Arial Black', system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 880px; }
.band-dark { background: var(--ink); color: #fff; }
.band-sand { background: var(--sand); }
.band-orange { background: var(--orange); color: var(--ink); }
.band-night { background: var(--night); color: #F6EFE7; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--orange-text); }
.band-dark .eyebrow, .band-night .eyebrow { color: var(--orange); }
.band-orange .eyebrow { color: var(--ink); }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 900; }
h1 { font-size: clamp(40px, 7vw, 72px); line-height: 1.02; text-transform: uppercase; }
h2 { font-size: clamp(30px, 4.5vw, 46px); line-height: 1.05; text-transform: uppercase; }
h3 { font-size: 22px; font-weight: 800; line-height: 1.25; }
p { margin: 0; }
.lede { font-size: clamp(17px, 2vw, 20px); line-height: 1.65; max-width: 62ch; }
.band-dark .lede, .band-night .lede { color: var(--night-text); }
.muted { color: var(--ink-2); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.section { padding-block: clamp(56px, 9vw, 96px); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 26px; border-radius: 999px; font: 800 16px var(--font); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-orange { background: var(--orange); color: var(--ink); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ghost-light { border-color: #fff; color: #fff; background: transparent; }
.btn-ghost-ink { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn:hover { filter: brightness(1.06); }

/* Preview ribbon + header */
header.site { border-bottom: 1px solid var(--line); background: var(--paper); }
header.site .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; padding-block: 16px; }
.logo img { height: 50px; width: auto; display: block; }
nav.main { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 22px; font-size: 15px; font-weight: 500; }
nav.main a { text-decoration: none; padding-block: 8px; }
nav.main a[aria-current="page"] { font-weight: 800; box-shadow: inset 0 -3px 0 var(--orange); }
nav.main a.btn { padding: 0 20px; min-height: 44px; font-weight: 700; box-shadow: none; }

/* Home */
.hero-grid { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.hero-grid > .stack { flex: 999 1 520px; min-width: 0; }
.photo { flex: 1 1 360px; min-width: 0; min-height: 320px; border-radius: 20px; background: #3A322B; color: #BDB2A6; display: flex; align-items: center; justify-content: center; text-align: center; padding: 24px; font-size: 14px; }
.photo.ph-light { background: #F1E8DE; color: var(--ink-3); }
.photo.tint { background: rgba(30,26,22,0.12); color: var(--ink); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.post { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; background: var(--paper); }
a.post { text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
a.post:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px rgba(30,26,22,0.35); }
a.post .read { margin-top: 4px; font-size: 14px; font-weight: 800; color: var(--orange-text); }
.post .photo { min-height: 180px; border-radius: 0; flex: none; }
.post img.cover { display: block; width: 100%; height: 200px; object-fit: cover; }
.post img.cover.contain { object-fit: contain; background: #F6EFE7; padding: 14px; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.post .body { padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.tag { align-self: flex-start; background: #FFF1E3; color: #8A4308; font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; letter-spacing: 1px; }
.meta { font-size: 13px; color: var(--ink-3); }
.split { display: flex; flex-wrap: wrap; gap: 40px; }
.split > .grow { flex: 999 1 480px; min-width: 0; }
.split > .side { flex: 1 1 340px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea { font: 400 16px var(--font); padding: 13px 15px; border: 1.5px solid #CFC5BA; border-radius: 12px; background: var(--paper); color: var(--ink); }
.field textarea { resize: vertical; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.note { font-size: 14px; font-weight: 700; }
.people { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 28px; }
.person { display: flex; gap: 16px; align-items: center; }
.avatar { width: 84px; height: 84px; flex-shrink: 0; border-radius: 50%; background: #E6DBCF; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--ink-3); }
footer.site { background: var(--ink); color: #fff; }
footer.site .top { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-end; justify-content: space-between; padding-block: 56px 36px; }
footer.site .bottom { border-top: 1px solid #3A322B; display: flex; flex-wrap: wrap; gap: 16px 24px; justify-content: space-between; align-items: center; padding-block: 24px 32px; font-size: 14px; color: var(--night-text); }
footer.site .bottom img { height: 34px; width: auto; display: block; }
footer.site .field input { border: none; }
.sub { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; flex: 1 1 400px; }
.sub .field { flex: 1 1 220px; font-size: 13px; }

/* Little Tables */
.isnt { background: var(--ink); color: #fff; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.isnt span { font-size: 19px; font-weight: 700; color: var(--night-text); }
.isnt strong { font-size: 21px; line-height: 1.4; color: var(--orange); margin-top: 6px; }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; }
.three > div { border: 2px solid var(--ink); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.num { width: 46px; height: 46px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 19px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { background: var(--paper); border: 1.5px solid #E2D6C9; padding: 10px 18px; border-radius: 999px; font-weight: 700; }

/* Lights map */
.count { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px; }
.count b { font-size: 44px; font-weight: 900; color: var(--orange); font-variant-numeric: tabular-nums; }
.count span { font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--night-text); }
.map { position: relative; width: 100%; max-width: 100%; aspect-ratio: 800 / 698; border-radius: 24px; overflow: hidden; background: radial-gradient(ellipse at 30% 25%, #2B221A 0%, var(--night) 70%); }
.map > img { position: absolute; inset: 0; width: 100%; height: 100%; }
.town { position: absolute; transform: translate(-50%, 12px); font-size: 10px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--night-dim); white-space: nowrap; pointer-events: none; }
.light { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: var(--glow); transform: translate(-50%, -50%); box-shadow: 0 0 6px 3px rgba(238,127,51,0.9), 0 0 22px 10px rgba(238,127,51,0.4); animation: twinkle 3.4s ease-in-out infinite; }
.light.new { animation: ignite 1.8s ease-out; }
.beacon-core { position: absolute; left: 22.6%; top: 16.5%; width: 22px; height: 22px; border-radius: 50%; background: #FFF1DD; transform: translate(-50%, -50%); box-shadow: 0 0 12px 6px rgba(238,127,51,1), 0 0 44px 22px rgba(238,127,51,0.55), 0 0 90px 40px rgba(238,127,51,0.2); }
.beacon-ring { position: absolute; left: 22.6%; top: 16.5%; border-radius: 50%; border: 2px solid rgba(238,127,51,0.7); transform: translate(-50%, -50%); animation: pulse 2.8s ease-out infinite; }
.beacon-label { position: absolute; left: 22.6%; top: 16.5%; transform: translate(16px, -30px); background: var(--orange); color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
@keyframes twinkle { 0%,100% { opacity: 1 } 50% { opacity: 0.72 } }
@keyframes ignite { 0% { transform: translate(-50%,-50%) scale(0); opacity: 0 } 35% { transform: translate(-50%,-50%) scale(2.6); opacity: 1 } 100% { transform: translate(-50%,-50%) scale(1); opacity: 1 } }
@keyframes pulse { 0% { width: 20px; height: 20px; opacity: 0.9 } 100% { width: 110px; height: 110px; opacity: 0 } }
@media (prefers-reduced-motion: reduce) { .light, .light.new, .beacon-ring { animation: none } }
.lform { background: var(--night-2); border: 1px solid var(--night-line); border-radius: 24px; padding: 26px; display: flex; flex-direction: column; gap: 15px; }
.lform .field { color: #F6EFE7; }
.lform .field input, .lform .field select, .lform .field textarea { background: var(--night); color: #F6EFE7; border-color: #4A3F35; color-scheme: dark; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--night-text); }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--orange); flex-shrink: 0; }
.err { color: #FFB27A; font-size: 14px; font-weight: 700; }
.ok { color: #FFD7A8; font-size: 14px; line-height: 1.5; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; }
.filters button { font: 700 14px var(--font); padding: 10px 16px; min-height: 44px; border-radius: 999px; border: 1.5px solid #4A3F35; background: transparent; color: #F6EFE7; cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.lcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.lcard { background: #2A241E; border: 1px solid var(--night-line); border-radius: 18px; padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.lcard .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.lcard .sec { background: var(--orange); color: var(--ink); font-size: 12px; font-weight: 800; padding: 5px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: 1px; }
.lcard .ex { border: 1px solid #6B5D50; color: #BFB2A4; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 999px; text-transform: uppercase; letter-spacing: 1px; }
.lcard p { color: var(--night-text); font-size: 15px; line-height: 1.55; }
.lcard small { color: #A89A8C; font-size: 13px; }
.admin { background: var(--sand); color: var(--ink); }
.pend { background: var(--paper); border: 1px solid #E6DBCF; border-radius: 16px; padding: 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.pend > div:first-child { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }

.connect-grid { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.connect-grid > .stack { flex: 999 1 380px; min-width: 0; }
.connect-form { flex: 1 1 380px; min-width: 0; background: var(--paper); border: 1px solid #E6DBCF; border-radius: 20px; padding: 26px; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.connect-form .full { grid-column: 1 / -1; }
.connect-form .consent { color: var(--ink-2); }
.private { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.conn { background: var(--paper); border: 1px solid #E6DBCF; border-radius: 16px; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.conn > div:first-child { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.conn .done { font-size: 13px; font-weight: 700; color: #2F6B3A; }

/* ---- Fruitful page (scoped) ---- */
.fr {
  --sand: hsl(40 25% 97%);
  --sand-warm: hsl(35 35% 93%);
  --card: hsl(40 20% 95%);
  --stone: hsl(60 3% 14%);
  --stone-2: hsl(60 3% 14% / 0.74);
  --stone-3: hsl(30 8% 38%);
  --line: hsl(60 3% 14% / 0.12);
  --clay: hsl(22 18% 57%);
  --clay-text: hsl(22 24% 38%);
  --sage: hsl(90 8% 53%);
  --btn-bg: hsl(60 3% 14%);
  --btn-fg: hsl(40 25% 97%);
  --tile-ink: hsl(60 3% 14%);
  --tile-love: hsl(12 35% 88%);
  --tile-joy: hsl(42 55% 86%);
  --tile-peace: hsl(195 30% 87%);
  --tile-patience: hsl(30 30% 86%);
  --tile-kindness: hsl(350 30% 89%);
  --tile-goodness: hsl(90 18% 84%);
  --tile-faithfulness: hsl(220 22% 87%);
  --tile-gentleness: hsl(320 22% 89%);
  --tile-selfcontrol: hsl(60 12% 84%);
  --dawn: radial-gradient(circle at 50% -10%, hsl(35 35% 91%) 0%, transparent 55%);
  --serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif;
  --calm: cubic-bezier(0.22, 1, 0.36, 1);
}
.fr * { box-sizing: border-box; }
.fr { margin: 0; background: var(--sand); background-image: var(--dawn); background-repeat: no-repeat; color: var(--stone); font-family: var(--sans); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
.fr a { color: inherit; }
.fr :focus-visible { outline: 2px solid var(--clay); outline-offset: 3px; }
.fr .wrap { max-width: 1120px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.fr .narrow { max-width: 760px; }
.fr .serif { font-family: var(--serif); }
.fr .eyebrow { font-size: 11px; letter-spacing: 0.4em; text-transform: uppercase; color: var(--clay-text); }
.fr h1, .fr h2, .fr h3 { margin: 0; font-family: var(--serif); font-weight: 400; font-style: italic; text-wrap: balance; }
.fr h1 { font-size: clamp(44px, 7.5vw, 84px); line-height: 0.98; letter-spacing: -0.01em; }
.fr h2 { font-size: clamp(32px, 4.6vw, 50px); line-height: 1.05; }
.fr h3 { font-size: 24px; line-height: 1.2; }
.fr p { margin: 0; text-wrap: pretty; }
.fr .lede { font-size: clamp(17px, 2vw, 19px); color: var(--stone-2); max-width: 58ch; }
.fr .muted { color: var(--stone-2); }
.fr .section { padding-block: clamp(64px, 10vw, 112px); }
.fr .rule { border-top: 1px solid var(--line); }
.fr .stack { display: flex; flex-direction: column; gap: 18px; }
.fr .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 24px; border-radius: 999px; font: 600 12px var(--sans); letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: background .3s var(--calm), color .3s var(--calm); }
.fr .btn-solid { background: var(--btn-bg); color: var(--btn-fg); }
.fr .btn-solid:hover { background: var(--clay); color: #fff; }
.fr .btn-line { border-color: var(--line); color: var(--stone); background: transparent; }
.fr .btn-line:hover { border-color: var(--clay); }
.fr .btn-clay { border-color: var(--clay); color: var(--clay-text); background: transparent; min-height: 42px; }
.fr .btn-clay:hover { background: var(--clay); color: #fff; }
.fr header.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; padding-block: 22px; }
.fr .mark { font-family: var(--serif); font-style: italic; font-size: 30px; text-decoration: none; }
.fr nav.links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 26px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
.fr nav.links a { text-decoration: none; color: var(--stone-2); padding-block: 8px; }
.fr nav.links a:hover { color: var(--stone); }
.fr .hero { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; padding-block: clamp(40px, 7vw, 80px) clamp(64px, 9vw, 104px); }
.fr .hero > .stack { flex: 999 1 460px; min-width: 0; gap: 26px; }
.fr .film { flex: 1 1 280px; display: flex; justify-content: center; margin: 0; }
.fr .phone { width: min(310px, 100%); max-width: 100%; aspect-ratio: 9 / 18.6; border-radius: 52px; padding: 12px; background: linear-gradient(145deg, hsl(40 6% 90%), hsl(40 5% 82%) 55%, hsl(40 6% 88%)); box-shadow: inset 0 0 0 1px hsl(40 5% 76%), inset 0 2px 3px hsl(0 0% 100% / .7), 0 40px 70px -30px hsl(30 10% 30% / .35), 0 0 90px -20px hsl(22 18% 57% / 0.35); }
.fr .screen { position: relative; width: 100%; height: 100%; border-radius: 41px; overflow: hidden; background: hsl(40 25% 98%); color: hsl(60 3% 14%); display: flex; flex-direction: column; box-shadow: 0 0 0 1px hsl(40 5% 78%); text-align: center; }
.fr .ph-status { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px 6px; font-size: 10px; }
.fr .ph-status b { font-weight: 600; font-size: 11px; }
.fr .ph-status span { font-size: 7px; letter-spacing: .35em; text-transform: uppercase; color: hsl(30 8% 40%); }
.fr .ph-status i { font-style: normal; font-size: 10px; letter-spacing: 1px; }
.fr .ph-bar { display: flex; align-items: center; justify-content: space-between; padding: 8px 18px 10px; border-bottom: 1px solid hsl(60 3% 14% / .1); }
.fr .ph-logo { font-family: var(--serif); font-style: italic; font-size: 17px; }
.fr .ph-menu { display: flex; flex-direction: column; gap: 3px; width: 13px; }
.fr .ph-menu i { height: 1.4px; background: hsl(60 3% 14% / .7); border-radius: 1px; }
.fr .ph-body { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 18px 14px 14px; }
.fr .ph-eyebrow { font-size: 7.5px; letter-spacing: .32em; text-transform: uppercase; color: hsl(30 8% 42%); }
.fr .screen .q { font-family: var(--serif); font-size: 21px; line-height: 1.12; padding: 0 6px; }
.fr .ph-sub { font-size: 9.5px; line-height: 1.45; color: hsl(30 8% 38%); padding: 0 4px; }
.fr .screen .field { width: 100%; display: flex; flex-direction: row; font-weight: 400; align-items: center; gap: 8px; border: 1px solid hsl(60 3% 14% / 0.14); border-radius: 999px; padding: 9px 12px; font-size: 11.5px; color: hsl(60 3% 14%); background: hsl(40 20% 96%); text-align: left; margin-top: 4px; }
.fr .screen .field svg { color: hsl(30 8% 45%); flex-shrink: 0; margin-right: 8px; }
.fr .mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; width: 100%; margin-top: 4px; }
.fr .mini .tile { aspect-ratio: 1; border-radius: 9px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-family: var(--serif); font-size: 11.5px; line-height: 1.1; min-width: 0; overflow: hidden; }
.fr .mini .tile small { font-family: var(--sans); font-size: 6px; letter-spacing: .25em; opacity: .6; }
.fr .mini .tile.on { box-shadow: 0 0 0 1.6px hsl(60 3% 14%); }
.fr .play { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); background: hsl(60 3% 14%); color: hsl(40 25% 97%); border: 0; border-radius: 999px; padding: 10px 16px; font: 600 10px var(--sans); letter-spacing: 0.18em; text-transform: uppercase; white-space: nowrap; }
.fr .film-note { font-size: 13px; color: var(--stone-3); text-align: center; margin-top: 14px; }
.fr .fruits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 640px; margin: 0 auto; }
.fr .fruit { aspect-ratio: 1; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--tile-ink); transition: transform .5s var(--calm); }
.fr .fruit:hover { transform: translateY(-3px); }
.fr .fruit small { font-size: 10px; letter-spacing: 0.3em; opacity: 0.7; font-variant-numeric: tabular-nums; }
.fr .fruit span { font-family: var(--serif); font-size: clamp(18px, 3vw, 26px); }
.fr .verse { text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(19px, 2.4vw, 23px); color: var(--stone-2); max-width: 640px; margin: 28px auto 0; }
.fr .steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 36px 28px; }
.fr .step { display: flex; flex-direction: column; gap: 10px; }
.fr .step .n { font-family: var(--serif); font-style: italic; font-size: 34px; color: var(--clay); line-height: 1; }
.fr .rooms { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--line); }
.fr .room { padding: 30px 26px 34px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fr .room .name { font-size: 11px; letter-spacing: 0.32em; text-transform: uppercase; color: var(--clay-text); }
.fr .pro { display: inline-block; margin-left: 8px; font-size: 9px; letter-spacing: 0.2em; border: 1px solid var(--clay); color: var(--clay-text); padding: 2px 7px; border-radius: 999px; vertical-align: 2px; }
.fr .themes { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.fr .theme { border-radius: 14px; padding: 22px; display: flex; flex-direction: column; gap: 10px; min-height: 150px; border: 1px solid var(--line); }
.fr .theme b { font-weight: 600; font-size: 13px; letter-spacing: 0.18em; text-transform: uppercase; }
.fr .theme .sw { display: flex; gap: 6px; margin-top: auto; }
.fr .theme .sw i { width: 22px; height: 22px; border-radius: 50%; display: block; }
.fr .church { background: var(--card); }
.fr .church-grid { display: flex; flex-wrap: wrap; gap: 48px; }
.fr .church-grid > div { flex: 1 1 340px; min-width: 0; }
.fr .list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fr .list li { padding: 14px 0; border-bottom: 1px solid var(--line); display: flex; gap: 14px; }
.fr .list li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--clay); margin-top: 10px; flex-shrink: 0; }
.fr .tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.fr .tier { border: 1px solid var(--line); border-radius: 6px; padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; background: var(--sand); }
.fr .tier.lead { border-color: hsl(22 18% 57% / 0.5); background: var(--card); box-shadow: 0 8px 24px -12px hsl(60 3% 14% / 0.12); }
.fr .price { font-family: var(--serif); font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.fr .price small { font-family: var(--sans); font-size: 14px; color: var(--stone-3); margin-left: 4px; }
.fr .tier ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--stone-2); }
.fr .tier li { display: flex; gap: 10px; }
.fr .tier li::before { content: "✓"; color: var(--clay-text); flex-shrink: 0; }
.fr .quote { font-family: var(--serif); font-style: italic; font-size: clamp(21px, 2.8vw, 27px); line-height: 1.5; color: var(--stone-2); text-align: center; }
.fr .orchard-head { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.fr .orchard-head > .stack { flex: 999 1 380px; min-width: 0; }
.fr form.note-form { flex: 1 1 360px; min-width: 0; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.fr .lbl { font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--stone-2); display: block; margin-bottom: 8px; }
.fr .ctl { width: 100%; font: 400 16px var(--sans); color: var(--stone); background: var(--sand); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; }
.fr textarea.ctl { resize: vertical; font-family: var(--serif); font-size: 19px; line-height: 1.45; }
.fr fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.fr .swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.fr .swatches label { position: relative; cursor: pointer; }
.fr .swatches input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fr .swatches span { display: block; width: 36px; height: 36px; border-radius: 50%; border: 2px solid transparent; box-shadow: inset 0 0 0 1px var(--line); }
.fr .swatches input:checked + span { border-color: var(--stone); }
.fr .swatches input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }
.fr .kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.fr .kinds label { cursor: pointer; }
.fr .kinds input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.fr .kinds span { display: inline-block; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; }
.fr .kinds input:checked + span { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.fr .kinds input:focus-visible + span { outline: 2px solid var(--clay); outline-offset: 2px; }
.fr .msg { font-size: 14px; color: var(--clay-text); }
.fr .msg.err { color: hsl(0 55% 48%); }
.fr .wall { columns: 260px; column-gap: 18px; margin-top: 40px; }
.fr .leaf { break-inside: avoid; margin: 0 0 18px; border-radius: 4px 18px 4px 18px; padding: 22px 22px 18px; color: var(--tile-ink); display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 2px hsl(60 3% 14% / 0.05), 0 10px 26px -16px hsl(60 3% 14% / 0.25); transform: rotate(var(--tilt, 0deg)); transition: transform .6s var(--calm); }
.fr .leaf:hover { transform: rotate(0deg) translateY(-2px); }
.fr .leaf.new { animation: settle 1.2s var(--calm); }
@keyframes settle{ from { opacity: 0; transform: translateY(14px) rotate(-4deg); } to { opacity: 1; } }
.fr .leaf .kind { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; opacity: 0.78; display: flex; justify-content: space-between; gap: 10px; }
.fr .leaf p { font-family: var(--serif); font-size: 21px; line-height: 1.35; }
.fr .leaf .by { font-size: 12px; opacity: 0.75; }
.fr .ex { border: 1px solid currentColor; border-radius: 999px; padding: 1px 7px; font-size: 9px; letter-spacing: 0.16em; }
.fr .filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 44px; }
.fr .filters button { font: 500 13px var(--sans); padding: 9px 15px; min-height: 40px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--stone); cursor: pointer; }
.fr .filters button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.fr .keeper { background: var(--card); border-top: 1px solid var(--line); }
.fr .pend { border: 1px solid var(--line); border-radius: 12px; background: var(--sand); padding: 18px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.fr .pend > div:first-child { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fr .pend .row { display: flex; gap: 8px; flex-wrap: wrap; }
.fr footer.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; padding-block: 36px 48px; font-size: 13px; color: var(--stone-3); border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: reduce){.fr *, .fr .leaf.new { animation: none !important; transition: none !important; }
 }


.fr h1, .fr h2, .fr h3 { text-transform: none; font-weight: 400; font-style: italic; font-family: var(--serif); }
.fr .screen .field { display: block; font-weight: 400; gap: 0; }
.fr .btn { box-shadow: none; filter: none; }
.fr .btn:hover { filter: none; }
.fr button.btn-line { font: 600 12px var(--sans); }
.fr .intro-band { background: var(--sand-warm); border-bottom: 1px solid var(--line); }
.fr .intro-band .wrap { padding-block: 16px; font-size: 14px; color: var(--stone-2); display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }
.fr .free { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; border: 1px solid var(--line); border-radius: 14px; padding: 32px; background: var(--card); }
.fr .free > div { flex: 1 1 380px; min-width: 0; }


/* ---- Live site additions ---- */
.photo-img { flex: 1 1 360px; min-width: 0; width: 100%; max-width: 100%; height: clamp(260px, 34vw, 400px); object-fit: cover; border-radius: 20px; display: block; }
.photo-img.logo-img { object-fit: contain; background: rgba(30,26,22,0.08); padding: 24px; }
.cover-blank { height: 200px; background: #F6EFE7; display: flex; align-items: center; justify-content: center; }
.cover-blank img { height: 64px; width: auto; opacity: 0.85; }
.skip { position: absolute; left: -999px; top: 0; background: var(--orange); color: var(--ink); padding: 10px 16px; font-weight: 800; z-index: 20; }
.skip:focus { left: 16px; }
footer.site a { color: #fff; }

/* Story page */
.article-head { padding-block: clamp(48px, 8vw, 88px) 32px; }
.article-head h1 { font-size: clamp(36px, 6vw, 64px); }
.article-meta { font-size: 15px; color: var(--night-text); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.article-cover { width: 100%; max-width: 100%; max-height: 460px; object-fit: cover; border-radius: 20px; display: block; }
.article-cover.contain { object-fit: contain; background: #F6EFE7; padding: 24px; max-height: 420px; }
.prose { font-size: 19px; line-height: 1.75; max-width: 68ch; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: clamp(24px, 3vw, 30px); text-transform: none; font-weight: 800; margin-top: 1.8em; }
.prose h3 { font-size: 22px; margin-top: 1.5em; }
.prose p { margin: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin-block: 0; }
.prose li + li { margin-top: 0.35em; }
.prose blockquote { margin: 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--orange); font-size: 21px; font-style: italic; }
.prose img { max-width: 100%; height: auto; border-radius: 14px; }
.prose a { color: var(--orange-text); font-weight: 700; }
.byline { font-weight: 800; }

/* Admin */
.admin-shell { padding-block: 40px 80px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.tabs button { font: 700 14px var(--font); min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.tabs .count { display: inline-block; min-width: 20px; margin-left: 6px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: var(--ink); font-size: 12px; }
.panel { padding-top: 28px; }
.item { background: var(--paper); border: 1px solid #E6DBCF; border-radius: 16px; padding: 18px 20px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; }
.item > .info { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.item > .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.item .text { white-space: pre-wrap; overflow-wrap: anywhere; }
.pill { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.pill.live { background: #DDF0DF; color: #1F5A29; }
.pill.draft { background: #F1E8DE; color: var(--ink-2); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-danger { background: #B3261E; color: #fff; }
.editor-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.editor-grid .full { grid-column: 1 / -1; }
#ed-body { min-height: 360px; font: 400 18px/1.7 var(--font); background: #fff; }
.ql-toolbar.ql-snow, .ql-container.ql-snow { border-color: #CFC5BA; }
.ql-toolbar.ql-snow { border-radius: 12px 12px 0 0; background: var(--sand); }
.ql-container.ql-snow { border-radius: 0 0 12px 12px; }
.cover-preview { max-width: 100%; max-height: 220px; border-radius: 12px; display: block; }
.status-line { font-size: 14px; font-weight: 700; color: var(--ink-2); }
.login-card { max-width: 460px; margin: 64px auto; background: var(--paper); border: 1px solid #E6DBCF; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }

/* Facilitator cards and bio pop-ups */
button.person { font: inherit; color: inherit; background: none; border: 0; padding: 8px; margin: -8px; text-align: left; cursor: pointer; border-radius: 16px; transition: background .15s; }
button.person:hover, button.person:focus-visible { background: rgba(238,127,51,.10); }
button.person:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.person-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.person-text strong { font-size: 18px; }
.person-text .muted { font-size: 14px; }
.person-more { font-size: 14px; font-weight: 700; color: var(--orange-text); margin-top: 4px; }
button.person:hover .avatar img { transform: scale(1.05); }
.avatar { overflow: hidden; }
.avatar img { transition: transform .2s; }
dialog.bio { border: 0; padding: 0; border-radius: 22px; width: min(760px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: auto; background: #fff; color: var(--ink); display: none; }
dialog.bio[open] { display: grid; grid-template-columns: 300px 1fr; }
dialog.bio::backdrop { background: rgba(30,26,22,.72); }
.bio-photo { width: 100%; height: 100%; min-height: 340px; object-fit: cover; display: block; }
.bio-body { padding: 36px 32px 32px; min-width: 0; }
.bio-body h3 { font-size: 30px; }
.bio-body p { line-height: 1.6; }
.bio-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--ink); font-size: 26px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
@media (max-width: 640px) {
  dialog.bio[open] { grid-template-columns: 1fr; }
  .bio-photo { min-height: 0; height: 280px; object-position: top; }
  .bio-body { padding: 24px 20px 28px; }
}

/* ---------- The Big Table: tabletop, polaroids, notes ---------- */
.tabletop { --hand: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive;
  background-color: #F3E9DD;
  background-image:
    radial-gradient(rgba(120, 84, 50, .07) 1px, transparent 1.4px),
    linear-gradient(90deg, rgba(255,255,255,.18) 50%, transparent 50%),
    linear-gradient(rgba(255,255,255,.18) 50%, transparent 50%);
  background-size: 7px 7px, 44px 44px, 44px 44px; }
.tabletop-notes { background-color: #EFE3D4; }
.tabletop-empty { font-family: var(--hand); font-size: 28px; color: var(--ink-2); }

.polaroids { display: flex; flex-wrap: wrap; justify-content: center; padding: 10px 4px 24px; }
.polaroid { --r: 0deg; position: relative; flex: 0 0 auto; width: clamp(150px, 22vw, 240px); margin: -6px -10px; padding: 10px 10px 0; background: #FFFDF9; border: 0; cursor: zoom-in;
  box-shadow: 0 1px 2px rgba(40,25,10,.18), 0 10px 22px -8px rgba(40,25,10,.35); transform: translateY(var(--y, 0px)) rotate(var(--r)); transition: transform .25s ease, box-shadow .25s ease; font: inherit; color: var(--ink); text-align: center; }
.polaroid:hover, .polaroid:focus-visible { transform: rotate(0deg) translateY(-8px) scale(1.06); z-index: 5; box-shadow: 0 2px 4px rgba(40,25,10,.2), 0 22px 40px -10px rgba(40,25,10,.45); }
.polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; background: #E6DBCF; }
.polaroid .cap { display: block; min-height: 46px; padding: 8px 4px 10px; font-family: var(--hand); font-size: 21px; line-height: 1.1; overflow-wrap: anywhere; }
@media (max-width: 560px) { .polaroid { width: calc(50% - 4px); margin: -4px -4px; } .polaroid .cap { font-size: 18px; min-height: 38px; } }

/* lined paper */
.paper { position: relative; background-color: #FFFEF8; color: #2A2620; padding: 34px 26px 24px 54px;
  background-image: linear-gradient(90deg, transparent 38px, rgba(214, 72, 52, .45) 38px, rgba(214, 72, 52, .45) 40px, transparent 40px),
                    repeating-linear-gradient(transparent 0 31px, rgba(80, 120, 190, .28) 31px 32px);
  background-position: 0 0, 0 22px;
  box-shadow: 0 1px 2px rgba(40,25,10,.15), 0 12px 24px -12px rgba(40,25,10,.35); }
.tape { position: absolute; top: -12px; left: 50%; width: 92px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: rgba(238, 127, 51, .72); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.notes-board { columns: 3 280px; column-gap: 30px; }
.paper-note { --r: 0deg; break-inside: avoid; display: inline-block; width: 100%; margin: 14px 0 26px; transform: rotate(var(--r)); }
.paper-note .say { font-family: var(--hand); font-size: 25px; line-height: 32px; white-space: pre-wrap; overflow-wrap: anywhere; }
.paper-note .by { margin-top: 10px; font-family: var(--hand); font-size: 22px; line-height: 32px; color: #8A4A12; text-align: right; }
.paper-note .by small { display: block; font-size: 19px; color: #6E645A; line-height: 24px; }

.paper-form { max-width: 640px; display: flex; flex-direction: column; gap: 14px; }
.paper-label { display: flex; flex-direction: column; gap: 2px; font: 700 13px var(--font); letter-spacing: 1px; text-transform: uppercase; color: #6E645A; }
.paper-label span { text-transform: none; letter-spacing: 0; font-weight: 500; }
.paper-lines, .paper-label input { font-family: var(--hand); font-size: 25px; line-height: 32px; color: #2A2620; background: transparent; border: 0; padding: 0; width: 100%; resize: vertical; }
.paper-label input { border-bottom: 1px dashed rgba(80, 120, 190, .5); line-height: 34px; text-transform: none; letter-spacing: 0; }
.paper-lines { min-height: 160px; }
.paper-lines:focus, .paper-label input:focus { outline: none; background: rgba(238,127,51,.06); }
.paper-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.thanks-note { font-family: 'Caveat', cursive; font-size: 26px; font-weight: 700; color: #8A4A12; }

/* photo viewer */
dialog.viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(18, 15, 12, .96); color: #F6EFE7; overflow: hidden; }
dialog.viewer[open] { display: grid; grid-template-rows: auto 1fr auto; }
dialog.viewer::backdrop { background: rgba(18, 15, 12, .9); }
.viewer-top { display: flex; justify-content: space-between; align-items: center; padding: max(12px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) 8px max(16px, env(safe-area-inset-left, 0px)); font-weight: 700; color: var(--night-text); }
.viewer-stage { margin: 0; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 0 64px; touch-action: pan-y; }
.viewer-stage img { max-width: 100%; max-height: calc(100dvh - 210px); object-fit: contain; background: #FFFDF9; padding: 10px 10px 10px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.viewer-stage figcaption { font-family: 'Caveat', cursive; font-size: 26px; text-align: center; min-height: 32px; }
.viewer-btn { width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; font-size: 30px; line-height: 1; cursor: pointer; }
.viewer-btn:hover { background: var(--orange); color: var(--ink); }
.viewer-prev, .viewer-next { position: absolute; top: 50%; transform: translateY(-50%); }
.viewer-prev { left: max(10px, env(safe-area-inset-left, 0px)); }
.viewer-next { right: max(10px, env(safe-area-inset-right, 0px)); }
.viewer-strip { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px max(14px, env(safe-area-inset-bottom, 0px)); justify-content: safe center; }
.viewer-strip button { flex: 0 0 auto; width: 58px; height: 58px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #333; cursor: pointer; opacity: .55; }
.viewer-strip button[aria-current="true"] { border-color: var(--orange); opacity: 1; }
.viewer-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) {
  .viewer-stage { padding: 0 12px; }
  .viewer-prev, .viewer-next { top: auto; bottom: 86px; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .polaroid, .paper-note { transition: none; } }
.photo-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.photo-card { background: var(--paper); border: 1px solid #E6DBCF; border-radius: 14px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.photo-card img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.photo-card input { font: 400 14px var(--font); padding: 8px 10px; border: 1.5px solid #CFC5BA; border-radius: 8px; min-width: 0; }
.photo-card .acts { display: flex; flex-wrap: wrap; gap: 6px; }
.photo-card .acts .btn { min-height: 36px; padding: 0 12px; }
.nl-steps { display: flex; flex-direction: column; gap: 10px; }
.nl-step { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: var(--paper); border: 1px solid #E6DBCF; border-radius: 14px; padding: 14px 16px; }
.nl-step > b { width: 32px; height: 32px; border-radius: 50%; background: var(--orange); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nl-step > div { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; }
#nl-body .ql-editor { min-height: 260px; }
.bt-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.bt-card { background: var(--sand); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.bt-card h3 { font-size: 22px; text-transform: uppercase; font-weight: 900; }
.bt-card p { font-size: 17px; line-height: 1.65; }
.bt-card a { color: var(--orange-text); font-weight: 700; }
.bt-num { font-weight: 900; color: var(--orange); font-size: 15px; letter-spacing: 2px; }
#invite-form .field input { border-color: #3A3028; }
.elc { font-size: clamp(40px, 7vw, 72px); letter-spacing: -0.5px; }
.elc span { color: var(--orange); }
.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; background: var(--paper); flex-wrap: wrap; }
.seg button { font: 700 13px var(--font); border: 0; background: none; padding: 8px 14px; border-radius: 999px; cursor: pointer; color: var(--ink); min-height: 36px; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 14px; }
.stat { background: var(--paper); border: 1px solid #E6DBCF; border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat-label { font-size: 12px; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase; color: var(--orange-text); }
.stat-num { font-size: 40px; font-weight: 900; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 13px; }
.stat-card { background: var(--paper); border: 1px solid #E6DBCF; border-radius: 16px; padding: 18px 20px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.stat-card h3 { font-size: 17px; font-weight: 800; }
.stat-chart-wrap { overflow-x: auto; }
.stat-chart { width: 100%; min-width: 480px; height: auto; display: block; }
.stat-chart rect { fill: var(--orange); }
.stat-chart rect:hover { fill: var(--ink); }
.stat-chart .grid { stroke: var(--line); stroke-width: 1; }
.stat-chart text { font: 11px var(--font); fill: var(--ink-3); }
.stat-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 14px; }
.stat-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.stat-list li { position: relative; display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; font-size: 14px; border-radius: 8px; overflow: hidden; }
.stat-bar { position: absolute; inset: 0 auto 0 0; background: rgba(238,127,51,.16); border-radius: 8px; z-index: 0; }
.stat-name, .stat-list b { position: relative; z-index: 1; min-width: 0; overflow-wrap: anywhere; }
.stat-list b { font-variant-numeric: tabular-nums; }
.done-line { font-size: 13px; font-weight: 700; color: #1F5A29; }
.pill.bt-pill { background: #FFE3BF; color: #8A4A12; }

/* "Edit this page" (only visible to signed-in admins) */
.ed-bar { position: fixed; z-index: 1000; left: max(16px, env(safe-area-inset-left, 0px)); bottom: max(16px, env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px; border-radius: 18px; background: var(--ink); color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.3); max-width: calc(100vw - 32px); font-family: var(--font); }
.ed-btn { font: 800 14px var(--font); min-height: 42px; padding: 0 18px; border-radius: 999px; border: 2px solid #fff; background: transparent; color: #fff; cursor: pointer; }
.ed-btn.ed-primary { background: var(--orange); border-color: var(--orange); color: var(--ink); }
.ed-hint { font-size: 14px; font-weight: 600; padding: 0 6px; }
.ed-msg { font-size: 14px; color: var(--glow); flex-basis: 100%; padding: 0 6px; }
.ed-msg:empty { display: none; }
body.ed-on { padding-bottom: 120px; }
body.ed-on [data-edit] { outline: 2px dashed rgba(238,127,51,.75); outline-offset: 4px; border-radius: 4px; cursor: text; min-width: 2ch; }
body.ed-on [data-edit]:hover { outline-style: solid; }
body.ed-on [data-edit]:focus { outline: 3px solid var(--orange); background: rgba(238,127,51,.08); }
body.ed-on [data-edit].ed-reset { opacity: .45; text-decoration: line-through; }
.ed-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 6px 0; padding: 4px 6px 4px 12px; border-radius: 999px; background: #FFE3BF; color: #8A4A12; font: 700 12px var(--font); letter-spacing: 0; text-transform: none; }
.ed-chip button { font: 700 12px var(--font); border: 0; border-radius: 999px; padding: 5px 10px; background: #fff; color: var(--ink); cursor: pointer; }
