/* Placeholder palette: warm and high-contrast. Content & Culture will refine. */
:root { --bg:#fbf6ef; --ink:#1d130e; --card:#fff; --brand:#3b1f14; --accent:#b4471d; --gold:#e0a526; --muted:#5b4a40; --line:#e6d9c8; --ok:#1f6b3a;
  --r:14px; font-size:18px; }
* { box-sizing:border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:1rem/1.55 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; padding-bottom:84px; }
a { color:var(--accent); } a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible { outline:3px solid var(--gold); outline-offset:2px; }
h1 { font-size:1.6rem; line-height:1.2; margin:.4em 0; } h2 { font-size:1.15rem; margin:.2em 0; }
main { max-width:860px; margin:0 auto; padding:16px; outline:none; }
.skip { position:absolute; left:-999px; } .skip:focus { left:8px; top:8px; background:#fff; padding:8px; z-index:9; }
.topbar { background:var(--brand); color:#fff; padding:10px 16px; display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.brand { color:#fff; font-weight:800; font-size:1.3rem; text-decoration:none; letter-spacing:.02em; }
#topnav { display:none; gap:4px; flex-wrap:wrap; }
.navlink { color:inherit; text-decoration:none; padding:10px 12px; border-radius:10px; background:none; border:0; font:inherit; cursor:pointer; min-height:44px; text-align:left; }
#topnav .navlink { color:#fff; } #topnav .navlink[aria-current=page] { background:rgba(255,255,255,.18); }
.bottombar { position:fixed; bottom:0; left:0; right:0; background:var(--brand); display:grid; grid-template-columns:repeat(5,1fr); padding-bottom:env(safe-area-inset-bottom); z-index:5; }
.bottombar a { color:#fff; text-decoration:none; display:flex; flex-direction:column; align-items:center; padding:8px 2px; min-height:60px; font-size:.78rem; }
.bottombar a span { font-size:1.3rem; } .bottombar a[aria-current=page] { background:rgba(255,255,255,.18); color:var(--gold); }
@media (min-width:900px) { #topnav { display:flex; } .bottombar { display:none; } body { padding-bottom:0; } }
.hero { background:linear-gradient(135deg,var(--brand),#6b2c14); color:#fff; border-radius:var(--r); padding:28px 20px; margin-bottom:16px; }
.hero h1 { font-size:2rem; } .hero .small, .hero a:not(.btn) { color:#fde7c2; }
.lead { font-size:1.08rem; } .small { font-size:.88rem; color:var(--muted); } .hero .small { color:#fde7c2; }
.grid { display:grid; gap:12px; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); }
.card { background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:16px; margin:10px 0; }
a.card.block { display:block; color:var(--ink); text-decoration:none; border-left:6px solid var(--accent); } a.card.block:hover { border-color:var(--gold); }
.list { display:flex; flex-direction:column; gap:4px; } .list > .navlink { background:var(--card); border:1px solid var(--line); color:var(--ink); }
.row { display:flex; gap:10px; flex-wrap:wrap; margin:10px 0; }
.btn { display:inline-flex; align-items:center; justify-content:center; min-height:48px; padding:10px 20px; border-radius:999px; border:2px solid var(--accent); background:var(--accent); color:#fff; font:inherit; font-weight:700; text-decoration:none; cursor:pointer; }
.btn.alt { background:#fff; color:var(--accent); } .btn.small { min-height:44px; padding:6px 14px; font-size:.92rem; }
.linkbtn { background:none; border:0; color:var(--accent); font:inherit; text-decoration:underline; cursor:pointer; padding:8px 4px; min-height:44px; }
.form label { display:block; margin:10px 0; font-weight:600; } .form label.check { font-weight:400; display:flex; gap:10px; align-items:center; }
input, select, textarea { display:block; width:100%; font:inherit; padding:12px; border:2px solid #b9a693; border-radius:10px; background:#fff; color:var(--ink); margin-top:4px; min-height:48px; }
input[type=checkbox] { width:24px; height:24px; min-height:0; margin:0; }
.filters { display:grid; gap:8px; grid-template-columns:1fr 1fr; } .filters .wide { grid-column:1/-1; } .filters label { font-weight:600; }
.note { background:#fff4e0; border-left:5px solid var(--gold); padding:10px 12px; border-radius:8px; }
.protect { font-weight:700; color:var(--brand); }
.badge { background:var(--ok); color:#fff; padding:3px 10px; border-radius:999px; font-size:.85rem; margin-right:6px; }
.tag { display:inline-block; background:#efe4d6; color:var(--ink); padding:2px 10px; border-radius:999px; font-size:.82rem; margin-right:6px; } .tag.warn { background:#ffe0d0; }
.meta { color:var(--muted); margin:0; } .contact { font-weight:600; }
.error { color:#a10f0f; font-weight:700; } .demo-hint { background:#eef; padding:8px; border-radius:8px; }
.comment { background:var(--card); border:1px solid var(--line); border-radius:var(--r); padding:12px 14px; margin:8px 0; }
.comment .body { white-space:pre-wrap; overflow-wrap:anywhere; margin:.3em 0; } .comment.muted { opacity:.6; border-style:dashed; }
.replies { border-left:3px solid var(--line); margin-left:8px; padding-left:10px; } .actions { display:flex; gap:8px; }
.rules li { margin:.4em 0; }
.tabs { display:flex; gap:6px; flex-wrap:wrap; } .tabs a { padding:10px 12px; border-radius:10px; background:#efe4d6; color:var(--ink); text-decoration:none; } .tabs a[aria-current=page] { background:var(--brand); color:#fff; }
.code { font-family:ui-monospace,monospace; letter-spacing:.06em; }
.copybox textarea { font-size:.95rem; }
.demobar { background:#2d2dbd; color:#fff; text-align:center; padding:6px; font-weight:700; } .demobar .linkbtn { color:#fff; min-height:0; }
.nudge { position:fixed; left:12px; right:12px; bottom:92px; background:#fff; border:2px solid var(--brand); border-radius:var(--r); padding:12px 16px; z-index:6; max-width:520px; margin:0 auto; box-shadow:0 6px 24px rgba(0,0,0,.2); }
.toast { position:fixed; left:50%; transform:translateX(-50%); bottom:96px; background:var(--ink); color:#fff; padding:12px 18px; border-radius:12px; z-index:7; max-width:90vw; }
.foot { text-align:center; padding:20px 16px; color:var(--muted); }
@media (prefers-reduced-motion:reduce) { * { scroll-behavior:auto !important; } }
.comment img.photo, .card img.photo { display:block; max-width:min(100%,320px); max-height:320px; height:auto; border-radius:10px; margin:.4em 0; background:#efe4d6; object-fit:cover; }
#photoprev img { display:block; max-width:160px; max-height:160px; border-radius:10px; margin-top:8px; }
.photopick { margin:8px 0; } .photopick label.btn { display:inline-flex; font-weight:700; margin:0; }
.status .stats { list-style:none; padding:0; margin:.4em 0; display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:4px 12px; }
a.card.block.corner { border-left-color:var(--ok); background:#f2f8f3; } .note.safety { border-left:4px solid var(--ok); padding-left:10px; } h2.group { margin-top:24px; }
.sub { margin:-6px 0 8px; font-weight:600; color:var(--ok); }
/* ---------- Section themes: shared cream base; each section changes only accent, one line icon, and header strip ---------- */
.sec-head { position:relative; display:flex; align-items:center; gap:12px; color:#fff; background:var(--brand); border-radius:var(--r); padding:18px 16px; margin:4px 0 14px; }
.sec-head h1 { margin:0; font-size:1.75rem; } .sec-icon { width:36px; height:36px; flex:none; }
.blockhead { display:flex; align-items:center; gap:8px; } .blockhead .sec-icon { width:26px; height:26px; color:var(--accent); }
.theme-clinic { --accent:#1f5f56; } .sec-head.theme-clinic { background:#1f5f56; }
.theme-counsel { --accent:#1b2a4a; } .sec-head.theme-counsel { background:#1b2a4a; border-bottom:4px solid #c9a227; } .sec-head.theme-counsel .sec-icon { color:#e3c463; }
.theme-counsel h1, .theme-counsel h2 { font-family:Georgia,"Iowan Old Style","Times New Roman",serif; }
.theme-classroom { --accent:#1e4d34; } .sec-head.theme-classroom { background:#21392c; border:3px dashed rgba(255,255,255,.55); }
.sec-head.theme-classroom h1 { font-family:"Segoe Print","Bradley Hand","Marker Felt","Chalkboard SE","Comic Sans MS",cursive; letter-spacing:.01em; }
.theme-block { --accent:#8a4b08; } .sec-head.theme-block { background:radial-gradient(circle at 88% 30%,rgba(242,181,68,.35),transparent 38%),linear-gradient(180deg,#2a2340,#4a3050); }
.sec-head.theme-block .sec-icon { color:#f2c46a; } .theme-block .listing { box-shadow:inset 4px 0 0 #f2b544; }
.theme-peace { --accent:#5c4630; } .sec-head.theme-peace { background:#5c4630; }
.theme-porch { --accent:#8a4b08; } .sec-head.theme-porch { background:linear-gradient(180deg,#6e3d0c,#8a4b08); } .sec-head.theme-porch .sec-icon { color:#ffd27a; }
.theme-square { --accent:#9a2c1f; } .sec-head.theme-square { background:#8a2a1c; }
.live { position:absolute; top:10px; right:12px; font-size:.8rem; font-weight:700; display:flex; align-items:center; gap:6px; }
.live .dot { width:9px; height:9px; border-radius:50%; background:#7ee08f; }
@media (prefers-reduced-motion:no-preference) { .live .dot { animation:livepulse 2.4s ease-in-out infinite; } }
@keyframes livepulse { 50% { opacity:.45; } }
.theme-corner { --accent:#1e4d34; } .sec-head.theme-corner { background:radial-gradient(circle at 92% 50%,transparent 26px,rgba(255,255,255,.14) 27px,rgba(255,255,255,.14) 29px,transparent 30px),#2b4a3a; }
.theme-corner .note.safety { background:#fff6e6; border-left-color:#1e4d34; }
/* Home "What's happening" strip: text only, shared cream base */
.happening h3 { margin:16px 0 6px; } .hap-item { display:block; color:var(--ink); text-decoration:none; padding:10px 0; border-top:1px solid rgba(0,0,0,.08); }
.hap-item p { margin:4px 0; } .hap-item .tag { font-size:.8em; }
