/* Montserrat, the board's lettering (Tim, 2026-11-05: the system font was "plain and shitty" next to it).
   Hosted here like Caveat, so no third party sees a visit. SIL Open Font License, public/fonts/Montserrat-OFL.txt.
   One variable file per script range carries every weight from 100 to 900. */
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-latin-wght-normal.woff2') format('woff2-variations'), url('/fonts/montserrat-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/fonts/montserrat-latin-ext-wght-normal.woff2') format('woff2-variations'), url('/fonts/montserrat-latin-ext-wght-normal.woff2') format('woff2');
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* Helping Thy Neighbour. Written to sit beside the main site, using its own colour tokens
   (copied from src/style.css so this folder does not depend on the Vite build at all).
   Mobile first: most people who need this board are reading it on a phone. */

:root {
  --navy-950:#040817; --navy-900:#060d26; --navy-800:#0a1640;
  --blue-600:#1d4fd8; --blue-500:#2f6bff; --blue-300:#8fb2ff;
  --gold:#F6C522; --gold-logo:#D39E15; --gold-bright:#FFEE7A; --gold-wordmark:#FDE368;
  --gold-mid:#BD840E; --gold-deep:#8E5908;
  --ink:#eef2ff; --ink-soft:#b9c4e8;
  --line:rgb(143 178 255 / .22); --glass:rgb(8 16 48 / .62);
  --grad-gold:linear-gradient(135deg,#FFD93F 0%,var(--gold) 45%,#E2B01A 100%);
  --font-display:"Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-body:"Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --tap:48px;
  --need:#FFC75A; --offer:#8fb2ff; --ok:#5BD98A; --bad:#FF8A7A;
}

* { box-sizing:border-box; }
html { -webkit-text-size-adjust:100%; }
body {
  margin:0; font-family:var(--font-body); font-size:17px; line-height:1.6;
  color:var(--ink); background:var(--navy-950);
  background-image:radial-gradient(1200px 700px at 50% -10%, rgb(29 79 216 / .18), transparent 70%);
  background-attachment:fixed;
}
.wrap { max-width:820px; margin-inline:auto; padding-inline:16px; }

a { color:var(--gold-wordmark); }
a:hover { color:var(--gold-bright); }
.skip { position:absolute; left:-9999px; }
.skip:focus { left:8px; top:8px; background:var(--gold); color:#061030; padding:10px 14px; border-radius:10px; z-index:9; }
:focus-visible { outline:3px solid var(--gold); outline-offset:2px; }

/* ---- header ---- */
.hdr { border-bottom:1px solid var(--line); background:rgb(6 13 38 / .85); position:sticky; top:0; z-index:5; backdrop-filter:blur(8px); }
.hdr-in { display:flex; gap:12px; align-items:center; justify-content:space-between; padding-block:12px; flex-wrap:wrap; }
.brand { font-family:var(--font-display); font-size:1.15rem; color:var(--gold); text-decoration:none; font-weight:700; }
.hdr-nav { display:flex; gap:10px; align-items:center; }
.hdr-nav a { font-size:.92rem; text-decoration:none; }

/* ---- type ---- */
h1 { font-family:var(--font-display); color:var(--gold); font-size:clamp(1.7rem,6vw,2.5rem); line-height:1.12; margin:24px 0 10px; }
h2 { font-family:var(--font-display); color:var(--gold); font-size:clamp(1.25rem,4.2vw,1.65rem); margin:30px 0 8px; }
h3 { font-family:var(--font-display); color:var(--gold-wordmark); font-size:1.1rem; margin:0 0 4px; }
.feed h2 { font-family:var(--font-display); color:var(--gold-wordmark); font-size:1.1rem; margin:0 0 4px; }   /* post titles sit straight under the page's h1, so they are h2s (heading levels may not skip) */
p { margin:0 0 12px; }
.lede { color:var(--ink); font-size:1.05rem; max-width:62ch; }
.fine { font-size:.85rem; color:var(--ink-soft); }
.quiet { color:var(--ink-soft); }
.intro, .count { color:var(--ink-soft); font-size:.9rem; }
.back { margin:18px 0 0; font-size:.92rem; }
.switch { font-size:.92rem; color:var(--ink-soft); }

/* ---- buttons ---- */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  min-height:var(--tap); padding:12px 20px; border-radius:12px; border:1px solid transparent;
  font-family:var(--font-display); font-weight:700; font-size:1rem; text-decoration:none;
  cursor:pointer; transition:transform .12s ease, filter .12s ease;
}
.btn:active { transform:translateY(1px); }
.btn-gold { background:var(--grad-gold); color:#061030; box-shadow:0 6px 18px rgb(246 197 34 / .18); }
.btn-gold:hover { filter:brightness(1.07); color:#061030; }
.btn-ghost { background:transparent; color:var(--ink); border-color:var(--line); }
.btn-ghost:hover { border-color:var(--gold); color:var(--gold-wordmark); }
.btn-ghost.danger { border-color:rgb(255 138 122 / .5); color:var(--bad); }
.btn-sm { min-height:40px; padding:8px 15px; font-size:.9rem; }
.btn-lg { padding:15px 28px; font-size:1.08rem; border-radius:14px; }

/* ---- the two big front doors ---- */
.pair { display:grid; gap:12px; margin:22px 0 10px; }
@media (min-width:560px) { .pair { grid-template-columns:1fr 1fr; } }
.big-btn {
  display:block; padding:20px 18px; border-radius:20px; text-decoration:none;
  border:1px solid var(--line); background:var(--glass); color:var(--ink);
}
.big-btn strong { display:block; font-family:var(--font-display); font-size:1.25rem; color:var(--gold); margin-bottom:3px; }
.big-btn span { font-size:.92rem; color:var(--ink-soft); }
.big-btn:hover { border-color:var(--gold); }
.big-btn.need { border-left:4px solid var(--need); }
.big-btn.offer { border-left:4px solid var(--offer); }

/* ---- filters ---- */
.filters { display:flex; flex-wrap:wrap; gap:10px; align-items:end; margin:18px 0; padding:14px;
  border:1px solid var(--line); border-radius:16px; background:rgb(8 20 56 / .45); }
.filters label { display:flex; flex-direction:column; gap:4px; font-size:.82rem; color:var(--ink-soft); }
.filters .clear { font-size:.85rem; align-self:center; }
/* Every box a person types in, not only text and password: an email or name box with no type fell through
   to the browser's white default (measured 2026-11-07 on the Gift Guardian and Beehive sign-ins). */
select, input:not([type]), input[type=text], input[type=password], input[type=email], input[type=tel],
input[type=number], input[type=search], input[type=url], input[type=date], input[type=datetime-local], textarea {
  font:inherit; font-size:16px; color:var(--ink); background:rgb(4 8 23 / .75);
  border:1px solid var(--line); border-radius:12px; padding:11px 13px; min-height:var(--tap); width:100%;
}
textarea { min-height:120px; line-height:1.5; resize:vertical; }
select:focus, input:focus, textarea:focus { border-color:var(--gold); }

/* ---- the feed ---- */
.feed { list-style:none; margin:14px 0 0; padding:0; display:grid; gap:12px; }
.card { border:1px solid var(--line); border-radius:18px; background:var(--glass); overflow:hidden; }
.card.is-need  { border-left:4px solid var(--need); }
.card.is-offer { border-left:4px solid var(--offer); }
.card-link { display:block; padding:16px; text-decoration:none; color:inherit; }
.card-link:hover { background:rgb(29 79 216 / .12); }
/* Same padding as .card-link, no hover highlight: for a card that is not a link and does nothing
   when clicked, so it does not look clickable when it is not. Guardian status.php's step list. */
.card-body { display:block; padding:16px; }
.tag { display:inline-block; font-size:.74rem; letter-spacing:.04em; text-transform:uppercase;
  color:var(--navy-950); background:var(--gold-wordmark); border-radius:999px; padding:3px 10px; font-weight:700; margin-bottom:8px; }
.is-offer .tag { background:var(--blue-300); }
.meta { font-size:.85rem; color:var(--ink-soft); margin:2px 0 8px; }
.trade { font-size:.95rem; margin:6px 0 0; }
.trade.big { font-size:1.05rem; padding:12px 14px; border-radius:12px; background:rgb(246 197 34 / .09);
  border:1px solid rgb(246 197 34 / .26); }
.replies { font-size:.85rem; color:var(--gold-wordmark); margin:8px 0 0; }
.empty { text-align:center; padding:40px 16px; border:1px dashed var(--line); border-radius:20px; margin-top:18px; }

/* ---- one post ---- */
.post { border:1px solid var(--line); border-left-width:4px; border-radius:18px; background:var(--glass); padding:18px; margin-top:12px; }
.post.is-need { border-left-color:var(--need); }
.post.is-offer { border-left-color:var(--offer); }
.post h1 { margin-top:4px; }
.body p { margin:0 0 10px; }
.contact { padding:10px 14px; border-radius:12px; background:rgb(143 178 255 / .1); border:1px solid var(--line); font-size:.95rem; }
.done { color:var(--ok); }
.report-line { margin:14px 0 0; font-size:.85rem; }
.report-line a { color:var(--ink-soft); }
.replies-list { list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.replies-list li { border:1px solid var(--line); border-radius:16px; background:rgb(8 20 56 / .45); padding:14px; }
.who { margin:0 0 6px; font-size:.95rem; }
.when { color:var(--ink-soft); font-weight:400; font-size:.85rem; }
blockquote { margin:8px 0; padding-left:12px; border-left:3px solid var(--line); color:var(--ink-soft); }

/* ---- safety + notices ---- */
.safety, .notice {
  margin:16px 0; padding:16px; border-radius:16px;
  border:1px solid rgb(246 197 34 / .3); background:rgb(246 197 34 / .07);
}
.notice.urgent { border-color:rgb(255 138 122 / .45); background:rgb(255 138 122 / .09); }
.notice.keep { border-color:var(--gold); background:rgb(246 197 34 / .11); }
.notice ul { margin:0 0 12px; padding-left:20px; }
.notice li { margin-bottom:7px; }
.shout { font-family:var(--font-display); font-size:1.2rem; color:var(--gold); font-weight:700; }
.linkbox { background:rgb(4 8 23 / .8); border:1px solid var(--line); border-radius:12px; padding:12px; overflow-wrap:anywhere; }
.linkbox code { font-size:.9rem; color:var(--gold-wordmark); }
.ok { padding:12px 14px; border-radius:12px; background:rgb(91 217 138 / .12); border:1px solid rgb(91 217 138 / .35); color:#bff0d0; }
.err { padding:12px 14px; border-radius:12px; background:rgb(255 138 122 / .12); border:1px solid rgb(255 138 122 / .4); }
.err p { margin:0 0 6px; }
.err p:last-child { margin:0; }
/* An empty one draws nothing. beehive/requests.php and beehive/coverage.php both keep a permanent
   <p class="err" role="alert"> in the page so their scripts have a live region to write failures
   into, and clear it with textContent = ''. The box kept its red fill and border while empty, so
   Requests loaded showing an error-coloured bar with no error in it. The element has to STAY in the
   DOM for the live region to work, so this hides the box rather than removing the node. :empty
   matches only an element with no text and no children, so a real message - including the
   multi-paragraph .err blocks above - still shows. */
.ok:empty, .err:empty { display:none; }

/* ---- forms ---- */
.form { margin:18px 0 0; display:grid; gap:16px; max-width:640px; }
.f { display:grid; gap:6px; font-size:.95rem; }
.f em { color:var(--ink-soft); font-style:normal; font-size:.85rem; }
.f small { font-size:.82rem; color:var(--ink-soft); }
.f small.warn { color:var(--gold-wordmark); }
.row { display:flex; gap:12px; flex-wrap:wrap; }
.row .grow { flex:1 1 200px; }
fieldset.f { border:1px solid var(--line); border-radius:14px; padding:14px; }
legend { padding-inline:6px; color:var(--ink-soft); font-size:.9rem; }
.radio { display:flex; gap:10px; align-items:flex-start; padding:9px 0; min-height:var(--tap); cursor:pointer; }
.radio input { margin-top:5px; width:20px; height:20px; flex:0 0 auto; }
.agree-form { margin-top:20px; display:grid; gap:14px; }
.agree { display:flex; gap:12px; align-items:flex-start; padding:16px; cursor:pointer;
  border:1px solid var(--gold); border-radius:14px; background:rgb(246 197 34 / .08); }
.agree input { width:24px; height:24px; margin-top:2px; flex:0 0 auto; }
.actions { display:flex; gap:10px; flex-wrap:wrap; margin:14px 0; }
.hp { position:absolute; left:-9999px; }   /* honeypot: a human never sees it, a bot fills it in */

/* ---- footer ---- */
.ftr { margin-top:48px; padding:24px 0 36px; border-top:1px solid var(--line); background:rgb(4 8 23 / .6); }
.ftr p { font-size:.88rem; color:var(--ink-soft); max-width:70ch; }
.ftr strong { color:var(--ink); }

@media (prefers-reduced-motion:reduce) { * { transition:none !important; } }

/* ---------- Free to take, and asking us to collect (2026-10-18) ---------- */
/* A third kind of post. It is given the green the board already uses for "good news", not a third invented
   colour, and it never relies on that colour alone: the tag beside it says "Free to take" in words. */
.big-btn.free { border-left:4px solid var(--ok); }
.card.is-free { border-left:4px solid var(--ok); }
.post.is-free { border-left-color:var(--ok); }
.is-free .tag { background:var(--ok); }
/* The warm-things tick box on collect.php. Big enough to hit with a thumb, same as the app's. */
.f.check { display:flex; gap:12px; align-items:flex-start; }
.f.check input { flex:0 0 auto; width:28px; height:28px; margin:2px 0 0; accent-color:var(--gold); }
.f.check span { font-size:.95rem; }

/* The board's glow, the same as the main site's (Tim, 2026-11-05). Content only: .hdr is untouched. */
main h1 { text-shadow:0 0 18px color-mix(in srgb, currentColor 45%, transparent), 0 0 42px color-mix(in srgb, currentColor 22%, transparent), 0 3px 12px rgb(0 0 0 / .5); }
main h2 { text-shadow:0 0 14px color-mix(in srgb, currentColor 32%, transparent), 0 2px 10px rgb(0 0 0 / .45); }
main .btn-gold { background:linear-gradient(180deg,#FFE68A 0%,#F6C522 48%,#DDA30F 100%);
  box-shadow:inset 0 1px 0 rgb(255 255 255 / .65), inset 0 -3px 0 rgb(140 90 0 / .3), 0 0 0 1px rgb(255 226 122 / .7), 0 10px 26px rgb(246 197 34 / .38); }
main .btn-gold:hover { box-shadow:inset 0 1px 0 rgb(255 255 255 / .7), inset 0 -3px 0 rgb(140 90 0 / .3), 0 0 0 1px #ffe27a, 0 14px 34px rgb(246 197 34 / .55); }
main .card, main .notice { box-shadow:inset 0 1px 0 rgb(255 255 255 / .08), 0 10px 26px rgb(2 6 24 / .6), 0 0 24px rgb(47 107 255 / .16); }
