/* GUARDIAN GIVE & GET on the website. Tokens come from ../board/board.css; this is only the section's own look.
   THE LOCK (Tim, 2026-11-05): GOLD = NEED, the neighbour receiving. BLUE = HAVE, the neighbour giving. Every
   button keeps its colour and wears the same silver chrome edge as the app's controls. */
:root {
  --gg-gold: linear-gradient(180deg, #fff3b0 0%, #ffd93f 18%, #f6c522 48%, #d9a514 78%, #b8830c 100%);
  --gg-blue: linear-gradient(180deg, #a9c8ff 0%, #5b97ff 18%, #2f6bff 48%, #1d4fd8 78%, #163c9e 100%);
  --gg-chrome: linear-gradient(180deg, #ffffff 0%, #eaf3ff 5%, #c6dbf3 12%, #93b2d8 21%, #6484b4 30%, #c0c0c0 40%,
    #ffffff 50%, #b9cfe9 59%, #7f9cc6 69%, #5a7aa8 79%, #a9c5e4 90%, #f2f8ff 100%);
  --gg-need-ink: #2a1f02;
}
body { background: radial-gradient(1200px 600px at 50% -10%, #12306f 0%, var(--navy-900) 55%, var(--navy-950) 100%) fixed, var(--navy-950); }

/* the official logo, master brand, top left; Give & Get sits under it as a section */
.gg-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-wordmark); text-decoration: none;
  font: 800 1.15rem/1 var(--font-display); }
.gg-logo img { width: 44px; height: 44px; object-fit: contain; }

/* the chrome edge: the fill paints the padding box, the metal the border box */
.gg-need, .gg-have, .gg-door, .gg-act, .gg-filters a, .gg-near .btn {
  border: 2px solid transparent !important; background-origin: border-box;
}
.gg-need, .gg-act.need, .gg-door.need { background: var(--gg-gold) padding-box, var(--gg-chrome) border-box; color: var(--gg-need-ink) !important; }
.gg-have, .gg-act.have, .gg-door.have { background: var(--gg-blue) padding-box, var(--gg-chrome) border-box; color: #fff !important; }
.btn.gg-need, .btn.gg-have, .btn.gg-act { border-radius: 12px; font-weight: 800; }

/* ---- the hero ---- */
.gg-hero { text-align: center; margin: 8px auto 18px; max-width: 760px; }
.gg-heart { display: block; width: min(320px, 70vw); height: auto; margin: 0 auto 6px; filter: drop-shadow(0 10px 30px rgb(47 107 255 / .35)); }
.gg-kicker { margin: 0; font: 700 1rem/1 var(--font-display); color: var(--gold-wordmark); letter-spacing: .02em; }
.gg-guardian { margin: 10px 0 0; font: 700 .95rem/1 var(--font-display); letter-spacing: .5em; color: var(--gold); }
.gg-guardian::before, .gg-guardian::after { content: ""; display: inline-block; width: 46px; height: 1px; margin: 0 14px; vertical-align: middle;
  background: linear-gradient(90deg, transparent, var(--gold)); }
.gg-guardian::after { background: linear-gradient(90deg, var(--gold), transparent); margin-left: 0; }
.gg-word { margin: 6px 0 4px; font: 900 clamp(2.8rem, 9vw, 5rem)/1 var(--font-display); letter-spacing: -.02em; }
.g-give { background: linear-gradient(180deg, #bcd6ff, #4f8dff 45%, #1d4fd8); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgb(47 107 255 / .45)); }
.g-amp, .g-get { background: linear-gradient(180deg, #fff3b0, #ffd93f 40%, #d9a514); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 18px rgb(246 197 34 / .4)); }
.gg-ask { margin: 10px 0 2px; font: 700 .95rem/1.3 var(--font-display); letter-spacing: .28em; text-transform: uppercase; color: var(--ink); }
.gg-script { margin: 0; font: italic 600 1.15rem/1.3 Georgia, "Times New Roman", serif; color: var(--gold-wordmark); }

/* ---- the two doors: gold NEED, blue HAVE ---- */
.gg-doors { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; margin: 0 auto 18px; }
.gg-door { display: flex; flex-direction: column; justify-content: center; gap: 6px; min-height: 120px; padding: 18px 16px;
  border-radius: 18px; text-decoration: none; text-align: center;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), inset 0 -10px 18px -8px rgb(0 0 0 / .35), 0 12px 28px rgb(2 7 26 / .55); transition: transform .18s; }
.gg-door.need { box-shadow: inset 0 1px 0 rgb(255 255 255 / .6), inset 0 -10px 18px -8px rgb(110 66 6 / .6), 0 0 26px rgb(246 197 34 / .35), 0 12px 28px rgb(2 7 26 / .55); }
.gg-door.have { box-shadow: inset 0 1px 0 rgb(255 255 255 / .5), inset 0 -10px 18px -8px rgb(8 20 70 / .6), 0 0 26px rgb(47 107 255 / .45), 0 12px 28px rgb(2 7 26 / .55); }
.gg-door b { font: 900 1.15rem/1.1 var(--font-display); letter-spacing: .04em; }
.gg-door span { font: 600 .88rem/1.3 var(--font-display); opacity: .92; }
.gg-door:hover { transform: translateY(-2px); } .gg-door:active { transform: scale(.98); }
@media (max-width: 520px) { .gg-doors { grid-template-columns: 1fr; } }

/* ---- the four promises ---- */
.gg-promises { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; max-width: 760px; margin: 0 auto 28px; padding: 0; }
.gg-promises li { text-align: center; padding: 6px 8px; border-left: 1px solid rgb(246 197 34 / .35); }
.gg-promises li:first-child { border-left: 0; }
.gg-promises b { display: block; font: 800 .95rem/1.1 var(--font-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.gg-promises span { font-size: .8rem; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
@media (max-width: 520px) { .gg-promises { grid-template-columns: 1fr 1fr; row-gap: 10px; } .gg-promises li:nth-child(3) { border-left: 0; } }

/* ---- the board ---- */
.gg-board h2 { margin: 0 0 10px; }
.gg-near { display: flex; gap: 8px; margin: 0 0 10px; }
.gg-near input { flex: 1; min-height: 46px; border-radius: 12px; border: 1px solid var(--line); background: rgb(4 8 23 / .7); color: var(--ink); padding: 0 12px; font: inherit; }
.gg-near .btn { background: var(--gg-blue) padding-box, var(--gg-chrome) border-box; color: #fff; border-radius: 12px; }
.gg-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; }
.gg-filters a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 12px; text-decoration: none;
  font: 700 .84rem/1 var(--font-display); color: var(--ink); background: linear-gradient(180deg, #17357c, #0e2054) padding-box, var(--gg-chrome) border-box; }
.gg-filters a[aria-current="true"] { background: var(--gg-blue) padding-box, var(--gg-chrome) border-box; color: #fff; }
.gg-filters a.need[aria-current="true"] { background: var(--gg-gold) padding-box, var(--gg-chrome) border-box; color: var(--gg-need-ink); }
.gg-sep { width: 1px; background: var(--line); margin: 4px 2px; }
.gg-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.gg-card { position: relative; border-radius: 16px; padding: 14px 14px 16px 18px; background: linear-gradient(160deg, #16316f 0%, #0b1b49 100%);
  border: 1px solid var(--line); box-shadow: 0 10px 24px rgb(2 7 26 / .45); }
.gg-card::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 5px; border-radius: 0 4px 4px 0; }
.gg-card.need::before { background: var(--gg-gold); box-shadow: 0 0 12px rgb(246 197 34 / .6); }
.gg-card.have::before { background: var(--gg-blue); box-shadow: 0 0 12px rgb(47 107 255 / .6); }
.gg-card h3 { margin: 4px 0 4px; font-size: 1.08rem; line-height: 1.25; }
.gg-card h3 a { color: var(--ink); text-decoration: none; } .gg-card h3 a:hover { text-decoration: underline; }
.gg-badge { margin: 0; font: 800 .74rem/1 var(--font-display); letter-spacing: .12em; }
.need > .gg-badge, .gg-card.need .gg-badge { color: var(--gold); } .have > .gg-badge, .gg-card.have .gg-badge { color: #8fb8ff; }
.gg-where { margin: 0; color: var(--ink-soft); font-size: .9rem; }
.gg-line { margin: 6px 0 12px; font-size: .9rem; }
.gg-st { font-weight: 700; color: var(--ok); }
/* red is urgency and nothing else; gold and blue together is a match; green is live and help delivered */
.gg-urgent { display: inline-block; margin-left: 6px; padding: 3px 7px; border-radius: 6px; background: #c8283c; color: #fff;
  font-size: .92em; letter-spacing: .1em; vertical-align: 1px; box-shadow: 0 0 10px rgb(200 40 60 / .45); }
.gg-urg-w { color: #ff8090; font-weight: 700; }
.gg-st.st-matched { display: inline-block; padding: 2px 8px; border-radius: 6px; color: #fff; text-shadow: 0 1px 2px rgb(0 0 0 / .45);
  background: linear-gradient(90deg, rgb(246 197 34 / .6), rgb(47 107 255 / .7)); }
.gg-st.st-expired { color: var(--ink-soft); }
.gg-card .gg-act { min-height: 42px; font-size: .9rem; }
.gg-card.is-closed { opacity: .8; }

/* ---- one post, the form, the poster's page ---- */
.gg-post, .gg-form, .gg-own { border-radius: 18px; padding: 18px 18px 20px; background: linear-gradient(160deg, #16316f 0%, #0b1b49 100%);
  border: 1px solid var(--line); border-top: 5px solid; margin: 0 0 18px; }
.gg-post.need, .gg-form.need, .gg-own.need { border-top-color: var(--gold); }
.gg-post.have, .gg-form.have, .gg-own.have { border-top-color: #4f8dff; }
.gg-post h1, .gg-form h1 { margin: 6px 0 6px; }
/* a heading takes its side's colour: gold only ever means a need */
.gg-form.have h1, .gg-post.have h1, .gg-own.have h2 { color: #cfe0ff; }
.gg-form.need h1, .gg-post.need h1 { color: var(--gold); }
.gg-status { margin: 4px 0 12px; }
.gg-cats, .gg-urg { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.gg-cats legend, .gg-urg legend { width: 100%; margin: 0 0 6px; font-weight: 700; }
.gg-cats label, .gg-urg label { position: relative; }
.gg-cats input, .gg-urg input { position: absolute; opacity: 0; }
.gg-cats span, .gg-urg span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 12px; cursor: pointer;
  border: 2px solid transparent; background: linear-gradient(180deg, #17357c, #0e2054) padding-box, var(--gg-chrome) border-box; font-weight: 700; }
.gg-form.need input:checked + span { background: var(--gg-gold) padding-box, var(--gg-chrome) border-box; color: var(--gg-need-ink); }
.gg-form.have input:checked + span { background: var(--gg-blue) padding-box, var(--gg-chrome) border-box; color: #fff; }
.gg-cats input:focus-visible + span, .gg-urg input:focus-visible + span { outline: 3px solid #fff; outline-offset: 2px; }
.gg-two { display: grid; grid-template-columns: 2fr 1fr; gap: 10px; }
.gg-reply { margin-top: 14px; }
.gg-report { margin: 16px 0 30px; } .gg-report summary { cursor: pointer; color: var(--ink-soft); }
.gg-thanks { margin-bottom: 16px; }
/* The photo on a post (2026-11-10): cropped thumbnail on the board, the whole picture on the post, a preview in the form. */
.gg-thumb-link { display: block; margin: 0 0 8px; }
.gg-thumb { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; background: rgb(255 255 255 / .06); }
.gg-photo { display: block; width: 100%; max-width: 640px; max-height: 420px; object-fit: contain; border-radius: 12px; margin: 10px 0; background: rgb(0 0 0 / .25); }
.gg-photo-pick { margin: 6px 0 14px; }
.gg-photo-label { display: block; font-weight: 700; margin: 0 0 6px; }
.gg-photo-label em { font-weight: 400; font-style: normal; color: var(--ink-soft); }
.gg-photo-pick input[type=file] { display: block; max-width: 100%; margin: 0 0 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (prefers-reduced-motion: reduce) { .gg-door { transition: none; } }
