/* Gift Guardian. Sits on top of board.css and uses its tokens, so this folder inherits the brand
   and never re-declares a colour. Mobile first, like the board: a Gift Guardian is standing in a
   shop doorway holding a phone, not sitting at a desk. */

/* ---- the step rail on the way in ---- */
.steps { display:flex; gap:8px; list-style:none; margin:18px 0 26px; padding:0; flex-wrap:wrap; }
.steps li { flex:1 1 auto; min-width:92px; font-size:.78rem; letter-spacing:.06em; text-transform:uppercase;
  color:var(--ink-soft); border-top:3px solid var(--line); padding-top:8px; font-weight:700; }
.steps li.on { color:var(--gold); border-top-color:var(--gold); }
.steps li.done { color:var(--ok); border-top-color:var(--ok); }

/* ---- numbers that matter ---- */
.tiles { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:12px; margin:18px 0 8px; }
.tile { background:var(--glass); border:1px solid var(--line); border-radius:16px; padding:16px 18px; }
.tile .n { font-family:var(--font-display); font-size:clamp(1.5rem,5vw,2rem); color:var(--gold); line-height:1.1; display:block; }
.tile .k { font-size:.82rem; color:var(--ink-soft); display:block; margin-top:4px; }
.tile.good .n { color:var(--ok); }
.tile.held .n { color:var(--need); }

/* ---- progress ---- */
.bar { height:14px; border-radius:999px; background:rgb(143 178 255 / .14); overflow:hidden; border:1px solid var(--line); }
.bar > i { display:block; height:100%; background:var(--grad-gold); border-radius:999px; transition:width .6s ease; }
.bar.green > i { background:linear-gradient(135deg,#7BE8A4,var(--ok)); }
.bar-row { display:flex; justify-content:space-between; gap:12px; font-size:.86rem; color:var(--ink-soft); margin:6px 0 0; }

/* ---- the ladder ---- */
.ladder { list-style:none; margin:12px 0; padding:0; display:grid; gap:10px; }
.ladder li { display:flex; align-items:center; gap:14px; padding:13px 16px; border-radius:14px;
  border:1px solid var(--line); background:rgb(8 16 48 / .45); }
.ladder .amt { font-family:var(--font-display); font-size:1.2rem; color:var(--gold); min-width:66px; }
.ladder .what { flex:1; min-width:0; }
.ladder .what b { display:block; }
.ladder .what small { color:var(--ink-soft); }
.ladder li.hit { border-color:rgb(91 217 138 / .5); background:rgb(91 217 138 / .09); }
.ladder li.hit .amt { color:var(--ok); }
.ladder li.held { border-color:rgb(255 199 90 / .45); background:rgb(255 199 90 / .08); }
.ladder li.held .amt { color:var(--need); }

/* ---- status pills ---- */
.pill { display:inline-block; font-size:.74rem; font-weight:800; letter-spacing:.07em; text-transform:uppercase;
  padding:4px 10px; border-radius:999px; border:1px solid currentColor; }
.pill.awaiting { color:var(--need); }
.pill.confirmed { color:var(--ok); }
.pill.declined, .pill.void { color:var(--bad); }
.pill.paid { color:var(--blue-300); }

/* ---- the gift list ---- */
.gifts { list-style:none; margin:14px 0; padding:0; display:grid; gap:10px; }
.gifts li { border:1px solid var(--line); border-radius:14px; padding:14px 16px; background:rgb(8 16 48 / .45); }
.gifts .top { display:flex; align-items:center; gap:10px; justify-content:space-between; flex-wrap:wrap; }
.gifts .who { font-weight:700; margin:0; }
.gifts .ref { font-family:ui-monospace,Menlo,Consolas,monospace; font-size:.9rem; color:var(--gold-wordmark); }
.gifts .sum { color:var(--ink-soft); font-size:.88rem; margin:6px 0 0; }

/* ---- THE CARD ------------------------------------------------------------------------------
   This is the thing a Gift Guardian holds up in a shop doorway, so it has to survive being seen
   on a cracked phone screen in daylight. Hence: real contrast, a genuine gold edge rather than a
   thin line, and the QR on WHITE. A QR code on a dark or tinted background is the single most
   common reason a scan fails, and a scan that fails in front of a donor is the whole pitch gone. */
.gcard { position:relative; border-radius:22px; padding:3px; background:var(--grad-gold);
  box-shadow:0 18px 44px rgb(0 0 0 / .5); max-width:420px; margin:20px 0; }
.gcard-in { background:linear-gradient(165deg,#0a1640,#060d26 60%,#040817);
  border-radius:19px; padding:22px; }
.gcard-top { display:flex; align-items:center; gap:12px; margin-bottom:16px; }
.gcard-top img { width:46px; height:auto; flex:0 0 auto; }
/* A face on the card. The phone app has shown a Guardian's photo on their card since 28 October, so a
   business can see who is asking before they decide. This page described the card in words and never
   showed one, which made the website and the app read as two different products. The sample here is
   the same person, same photo, same ID and same numbers as the app's (Tim, 2026-10-29).
   The selector carries img because .gcard-top img above it is more specific than a bare class. */
.gcard-top img.gcard-photo { width:76px; height:76px; border-radius:50%; object-fit:cover;
  border:2px solid var(--gold); background:#0a1640; }
.gcard-idlabel { color:var(--ink-soft); font-size:.7rem; letter-spacing:.12em; text-transform:uppercase;
  text-align:center; margin:14px 0 0; }
.gcard-idlabel + .gcard-code { margin-top:2px; }
.gcard-org { font-family:var(--font-display); color:var(--gold); font-size:1.02rem; line-height:1.2; }
.gcard-org small { display:block; color:var(--ink-soft); font-size:.74rem; letter-spacing:.09em;
  text-transform:uppercase; font-family:var(--font-body); margin-top:2px; }
.gcard-name { font-family:var(--font-display); color:var(--gold-wordmark); font-size:1.5rem; margin:0; line-height:1.15; }
.gcard-role { color:var(--ink-soft); font-size:.84rem; letter-spacing:.08em; text-transform:uppercase; margin:3px 0 14px; }
.gcard-lines { list-style:none; margin:0 0 16px; padding:0; display:grid; gap:7px; font-size:.94rem; }
.gcard-lines a { text-decoration:none; }
.gcard-qr { background:#fff; border-radius:14px; padding:12px; display:grid; place-items:center; }
.gcard-qr canvas, .gcard-qr img { display:block; width:100%; height:auto; max-width:230px; image-rendering:pixelated; }
.gcard-qr .cap { color:#0a1640; font-size:.76rem; font-weight:700; letter-spacing:.05em;
  text-transform:uppercase; margin-top:9px; text-align:center; }
.gcard-code { font-family:ui-monospace,Menlo,Consolas,monospace; color:var(--gold); font-size:1.1rem;
  letter-spacing:.09em; text-align:center; margin:12px 0 0; }

/* ---- the identification card, drawn on a canvas ----
   The card itself is painted by card-img.js at 1000x640, which is the same drawing the phone app
   makes, so there is nothing here but the box it sits in. It scales to whatever width it is given
   and keeps its shape, because a landscape ID card squashed to portrait stops looking like a card.
   Printing it: the page's print rules hide the chrome, and the picture comes out as one card on the
   sheet, which is what somebody pinning it beside a till actually wants. */
.idcard-wrap { margin: 20px 0; max-width: 620px; }
.idcard { display:block; width:100%; height:auto; border-radius:14px;
  box-shadow:0 18px 44px rgb(0 0 0 / .45); background:#f5f8fd; }
.idcard-wrap figcaption { margin-top:10px; }

/* ---- the masthead links, big enough to hit ----
   Measured in a browser at 375px wide on 2026-10-29: the wordmark was 29px tall and the "Getting By"
   link beside it 24px, because both are plain inline links in the shared masthead. A thumb on a bus
   misses those. Only the box grows; the text size is untouched. Two links are deliberately left out:
   .skip is off-screen until it is focused, and the footer's .fine a sits inside a sentence, which the
   WCAG 2.5.8 inline exception covers. Fixed here rather than in board.css so the change ships in the
   gift zip and cannot alter a folder this upload does not otherwise touch. */
.hdr-in .brand, .hdr-nav a { min-height:44px; display:inline-flex; align-items:center; }

/* ---- the recognition wall ---- */
.wall { list-style:none; margin:14px 0; padding:0; display:grid; gap:8px; }
.wall li { display:flex; align-items:baseline; gap:12px; padding:11px 15px; border-radius:12px;
  border:1px solid var(--line); background:rgb(8 16 48 / .4); }
.wall .nm { font-weight:700; flex:1; min-width:0; }
.wall .tn { color:var(--ink-soft); font-size:.85rem; }
.wall .amt { font-family:var(--font-display); color:var(--gold); font-size:1.05rem; }

/* ---- the donation landing page ---- */
.give-hero { text-align:center; padding:12px 0 4px; }
.give-hero .gcard { margin-inline:auto; }
/* The donor page shows the Gift Guardian identification card itself (Tim, 2026-11-07: the original,
   official one), drawn by card-img.js, so the donor sees the same card the Guardian is holding up. */
.give-card { margin:4px auto 14px; max-width:620px; }
.give-ok { margin:0 0 18px; color:var(--ink-soft); font-size:.9rem; }
.give-ok strong { color:var(--ok); }
.give-hero > h1 { margin:0 0 8px; }
.give-id { margin:0 0 14px; color:var(--ink-soft); font-size:.95rem; }
.give-id b { color:var(--gold); font-family:ui-monospace, Consolas, monospace; letter-spacing:.06em; }
.howto { counter-reset:step; list-style:none; margin:18px 0; padding:0; display:grid; gap:12px; }
.howto li { counter-increment:step; position:relative; padding:15px 18px 15px 56px; border-radius:14px;
  border:1px solid var(--line); background:rgb(8 16 48 / .45); }
.howto li::before { content:counter(step); position:absolute; left:16px; top:14px; width:28px; height:28px;
  border-radius:50%; background:var(--grad-gold); color:#061030; font-weight:800; display:grid;
  place-items:center; font-size:.95rem; }
.memo { font-family:ui-monospace,Menlo,Consolas,monospace; font-size:1.25rem; letter-spacing:.1em;
  color:var(--gold); background:rgb(246 197 34 / .09); border:1px dashed var(--gold);
  border-radius:12px; padding:12px 16px; display:inline-block; margin:6px 0; }
.copyline { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin:8px 0 0; }

/* ---- templates ---- */
.tpl { border:1px solid var(--line); border-radius:16px; background:rgb(8 16 48 / .5); margin:16px 0; overflow:hidden; }
.tpl > summary { cursor:pointer; padding:15px 18px; font-family:var(--font-display); color:var(--gold);
  font-size:1.08rem; list-style:none; }
.tpl > summary::-webkit-details-marker { display:none; }
.tpl > summary::before { content:"▸ "; color:var(--gold-logo); }
.tpl[open] > summary::before { content:"▾ "; }
.tpl .body { padding:0 18px 18px; }
.tpl pre { white-space:pre-wrap; font-family:var(--font-body); font-size:.96rem; line-height:1.62;
  background:rgb(4 8 23 / .6); border:1px solid var(--line); border-radius:12px; padding:16px; margin:0 0 12px; }

/* ---- warnings that must not be skimmed ---- */
.hard { border:1px solid var(--bad); border-left-width:5px; border-radius:12px;
  background:rgb(255 138 122 / .08); padding:14px 18px; margin:16px 0; }
.hard h3 { color:var(--bad); }
.hard h2 { color:var(--bad); font-size:1.17em; margin:1em 0; }   /* the notice is the first heading under the page title, so it is an h2 (heading levels may not skip), drawn the size an h3 was */
.legal { border:1px solid var(--need); border-left-width:5px; border-radius:12px;
  background:rgb(255 199 90 / .08); padding:14px 18px; margin:16px 0; }
.legal h3 { color:var(--need); }

/* ---- admin: the jump bar and the little forms that sit inside a list row ----
   board.css has no .inline because nothing on the board puts a form inside a list item. The admin
   screen does it constantly: confirm this amount, void this one, clear that bonus. They have to wrap
   on a phone, because Tim will be doing this standing in a kitchen with the banking app open. */
.jump { display:flex; flex-wrap:wrap; gap:8px; margin:16px 0 24px; }
.jump a { font-size:.82rem; font-weight:700; letter-spacing:.04em; text-decoration:none;
  padding:8px 14px; border-radius:12px; border:1px solid var(--line); color:var(--ink-soft);
  background:rgb(8 16 48 / .5); }
.jump a:hover, .jump a:focus-visible { color:var(--gold); border-color:var(--gold); }
.inline { display:flex; flex-wrap:wrap; gap:8px; align-items:center; margin:10px 0 0; }
.inline input[type=text], .inline input[type=email], .inline select {
  flex:1 1 150px; min-width:0; padding:9px 12px; border-radius:10px; border:1px solid var(--line);
  background:rgb(4 8 23 / .7); color:var(--ink); font:inherit; font-size:.92rem; }
.inline .btn { flex:0 0 auto; }

/* ---- forms ---- */
.gift .f input[type=file] { padding:10px; }
.goalset { display:flex; gap:10px; align-items:flex-end; flex-wrap:wrap; }
.goalset .f { flex:1 1 180px; }

/* ---- the thumb test, 2026-10-29 ----
   Measured on this page at 375x812, which is the phone a Guardian is actually holding while they
   stand outside a shop: "Get a thank-you note for Longo's Newmarket" was an 18 px link, and Set it,
   Log it and give me a reference and Take me off the wall were 40 px. The app itself has had a
   44 px floor since the beginning and its test suite fails the build if any screen drops below it.
   This page is the one a Guardian uses MOST and it was the one page held to a lower standard.

   44 px is not a style preference. It is roughly the width of an adult fingertip, it is what both
   Apple and Google publish, and below it a cold hand in a car park misses and hits the thing next
   to it instead. On this page the thing next to it is "It is not happening, take it off". */
.btn, .goalset .btn, .inline .btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
/* The thank-you link sits inside small print, so it inherited small print. It is an action, and the
   only one on a confirmed gift, so it gets the size of an action and the look of a quiet chip. */
.gifts .fine a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  margin-top: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--gold);
  text-decoration: none;
  font-size: .9rem;
}
.gifts .fine a:hover, .gifts .fine a:focus-visible { border-color: var(--gold); background: rgb(201 162 39 / .12); }

/* ---- the share, where the eye lands ----
   A Guardian opens this page to answer one question: what have I earned. That number was a phrase
   in the middle of a grey sentence ("your share $100.00 (owed)") in the same weight as the
   reference code beside it. It is now its own line, in gold, at a size you can read at arm's
   length, with the state after it in words rather than in brackets. */
.gifts .share {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold);
}
.gifts .share .lab { font-family: inherit; font-size: .82rem; color: var(--ink-soft); font-weight: 400; }
.gifts .share .st { font-size: .82rem; color: var(--ink-soft); font-family: system-ui, sans-serif; }
.gifts .share .st.paid { color: var(--ok); }

/* ---- print: the card and the certificate ----
   Someone will want this on paper for a shop counter. Dark navy on an inkjet is a waste of a
   cartridge and looks terrible, so print gets ink on white and drops the page furniture. */
@media print {
  .hdr, .ftr, .btn, .steps, .noprint { display:none !important; }
  body { background:#fff !important; color:#111 !important; }
  .gcard { box-shadow:none; background:#C9A227; max-width:none; }
  .gcard-in { background:#fff !important; }
  .gcard-name, .gcard-org, .gcard-code { color:#8E5908 !important; }
  .gcard-role, .gcard-lines, .gcard-org small, .gcard-idlabel { color:#333 !important; }
  .gcard-lines a { color:#111 !important; }
  /* The drawn card prints as one card on the sheet, as big as the paper allows, which is what
     somebody pinning it next to a till is after. */
  .idcard-wrap { max-width:none; margin:0; }
  .idcard { box-shadow:none; border-radius:0; width:100%; }
}
