/* ============================================================================
   AccessAbility — shared design system (the full-site stylesheet).
   One source of truth for every page: tokens, layout frame, header/nav,
   sections, typography, buttons, cards, media, CTA, footer, prose helpers.
   Self-contained (no external CSS/fonts/CDNs). Interactive accessibility UI +
   responsive hamburger live in aa-suite.css (loaded after this file).
   Brand: real lime (#89ce40) as a fill with dark ink on top; lime-deep for
   green text on paper. White is never placed on lime.
   ========================================================================== */
:root {
  --paper: #faf8f3;      /* light warm off-white page bg */
  --paper-2: #ffffff;    /* cards */
  --ink: #15120d;        /* near-black text (AAA on paper) */
  --muted: #54504a;      /* warm gray (AAA on paper) */
  --rule: #e6e0d4;       /* hairline grid lines */
  --rule-2: #dcd5c6;     /* component borders */
  --mark: #c2b6a0;       /* the "+" corner marks */
  --lime: #89ce40;       /* BRAND — fills only; dark text on top */
  --lime-deep: #4c7c1f;  /* brand green for TEXT on paper (~4.7:1 AA) */
  --measure: 64ch;
  --maxw: 1400px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: clamp(1rem, 0.95rem + 0.2vw, 1.0625rem); line-height: 1.65;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* faint full-bleed square grid behind everything (decoration) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: 80px 80px; opacity: 0.4;
  -webkit-mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 80%);
          mask-image: radial-gradient(circle at 50% 22%, #000 0%, transparent 80%);
}
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: 0.7rem 1rem; border-radius: 0 0 0.4rem 0; font-weight: 700; }
.skip:focus { left: 0; }
a { color: var(--lime-deep); }
:focus-visible { outline: 3px solid var(--lime-deep); outline-offset: 3px; border-radius: 3px; }

/* centered framed column = the vertical grid lines */
.frame { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; background: var(--paper); border-left: 1px solid var(--rule); border-right: 1px solid var(--rule); }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem clamp(1.25rem, 4vw, 3.25rem); border-bottom: 1px solid var(--rule); position: relative; z-index: 2; }
.brand { font-weight: 850; letter-spacing: -0.02em; font-size: 1.18rem; color: var(--ink); text-decoration: none; }
.nav { display: flex; align-items: center; gap: 1.25rem; }
.nav-links { display: flex; gap: 1.25rem; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; }
.nav-links a { position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; bottom: -5px; height: 2px; width: 0; background: var(--lime-deep); transition: width 0.22s ease; }
.nav-links a:hover::after, .nav-links a:focus-visible::after { width: 100%; }
.nav a[aria-current="page"] { color: var(--lime-deep); }
.phone { color: var(--lime-deep); text-decoration: none; font-weight: 800; white-space: nowrap; }
.phone:hover { text-decoration: underline; }

/* sections divided by hairlines, with + marks at the corners */
.section { position: relative; padding: clamp(2.6rem, 5.5vw, 5rem) clamp(1.25rem, 4vw, 3.25rem); border-top: 1px solid var(--rule); }
.section:first-of-type { border-top: 0; }
.section::before, .section::after { content: "+"; position: absolute; top: 0; display: grid; place-items: center; width: 1.1rem; height: 1.1rem; font-size: 1.05rem; line-height: 1; color: var(--mark); font-weight: 400; transform: translate(-50%, -50%); }
.section::before { left: 0; }
.section::after { left: 100%; }

/* typography */
h1, h2, h3 { text-wrap: balance; line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 0.5em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 1.4rem + 2.8vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 1.2rem + 1.6vw, 2.6rem); }
h3 { font-size: 1.18rem; }
p { text-wrap: pretty; max-width: var(--measure); }
.eyebrow { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; color: var(--lime-deep); margin: 0 0 1rem; }
.lede { font-size: clamp(1.1rem, 1rem + 0.55vw, 1.3rem); color: var(--ink); max-width: 62ch; margin: 0; }
.lede a { font-weight: 800; }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.7rem; }
.btn { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 3rem; padding: 0 1.45rem; border-radius: 0.6rem; font-weight: 800; text-decoration: none; border: 1.5px solid transparent; transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease; }
.btn-primary { background: var(--lime); color: var(--ink); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px -12px rgba(76, 124, 31, 0.6); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-2); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--ink); }

/* media */
figure { margin: 0; }
figcaption { font-size: 0.8rem; color: var(--muted); margin-top: 0.5rem; }
.media { position: relative; overflow: hidden; border: 1px solid var(--rule-2); border-radius: 0.75rem; aspect-ratio: 4 / 3; background: #efeae0; }
.media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cap { position: absolute; left: 0.7rem; bottom: 0.7rem; z-index: 1; background: rgba(21, 18, 13, 0.85); color: #fff; font-size: 0.74rem; font-weight: 600; padding: 0.28rem 0.6rem; border-radius: 0.4rem; }

/* link cards */
.cards { display: grid; gap: clamp(0.8rem, 2vw, 1.2rem); margin-top: 1.8rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card { border: 1px solid var(--rule-2); border-radius: 0.75rem; padding: 1.6rem; background: var(--paper-2); color: var(--ink); text-decoration: none; display: block; transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 20px 44px -26px rgba(21, 18, 13, 0.4); border-color: var(--lime-deep); }
a.card:hover h3 { color: var(--lime-deep); }
.card .arrow { color: var(--lime-deep); font-weight: 900; font-size: 1.2rem; }
.card h3 { margin: 0.5rem 0 0.35rem; }
.card p { margin: 0; color: var(--muted); }
.card .tag { display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--lime-deep); background: rgba(137, 206, 64, 0.18); padding: 0.22rem 0.55rem; border-radius: 0.4rem; margin-bottom: 0.8rem; }

/* checklists */
.ticks { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.55rem 1.3rem; }
.ticks.cols { grid-template-columns: 1fr; }
@media (min-width: 560px) { .ticks.cols { grid-template-columns: 1fr 1fr; } }
.ticks li { position: relative; padding-left: 1.65rem; color: var(--ink); }
.ticks li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--lime-deep); font-weight: 900; }

/* prose (content pages) */
.prose { max-width: var(--measure); }
.prose > * + * { margin-top: 1rem; }
.prose h2 { margin-top: 1.8rem; }
.prose h3 { margin-top: 1.4rem; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin: 0.4rem 0; }
.prose li::marker { color: var(--lime-deep); }
.prose strong { color: var(--ink); }

/* two-column content layout for interior pages */
.cols-2 { display: grid; gap: clamp(1.5rem, 4vw, 3rem); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 880px) { .cols-2 { grid-template-columns: 1.1fr 0.9fr; } }

/* contact / info card */
.contact-card { border: 1px solid var(--rule-2); background: var(--paper-2); border-radius: 0.9rem; padding: 1.5rem 1.6rem; }
.contact-card p { margin: 0 0 0.5rem; }
.contact-card a { font-weight: 700; }

/* impact / pricing rows */
.give-tier { display: flex; align-items: baseline; gap: 0.9rem; padding: 0.7rem 0; border-top: 1px solid var(--rule); }
.give-tier:first-child { border-top: 0; }
.give-tier .amt { font-weight: 850; color: var(--lime-deep); font-size: 1.15rem; min-width: 4.5rem; }

/* CTA band */
.cta { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: 1rem; padding: clamp(2rem, 5vw, 3.5rem); }
.cta::after { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, var(--lime) 0%, transparent 68%); opacity: 0.55; pointer-events: none; }
.cta .eyebrow { color: var(--lime); }
.cta h2 { color: #fff; position: relative; }
.cta p { color: rgba(255, 255, 255, 0.88); position: relative; max-width: 52ch; }
.cta .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.45); }
.cta .btn-ghost:hover { border-color: #fff; }

/* footer */
.foot { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot { grid-template-columns: 1.7fr 1fr 1.3fr 1fr; } }
.foot-brand p { color: var(--muted); margin: 0 0 0.6rem; max-width: 42ch; }
.foot-brand .fine { font-size: 0.85rem; }
.foot-col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink); margin: 0 0 0.9rem; font-weight: 800; }
.foot-col a, .foot-col p { display: block; color: var(--muted); text-decoration: none; margin: 0 0 0.55rem; }
.foot-col a:hover { color: var(--lime-deep); text-decoration: underline; }
.foot-col a.contact { color: var(--lime-deep); font-weight: 700; }
.foot-bar { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; justify-content: space-between; margin-top: 2.5rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.82rem; }

/* ── Shared accordions (native <details>) — promoted from the homepage so every
   page (Emergency, Donate, What is a CIL) can use the same pattern. ── */
.faq { max-width: 56rem; margin-top: 1.7rem; }
.faq-item { border-top: 1px solid var(--rule); }
.faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: space-between; gap: 1rem; padding: 1.15rem 0.25rem;
  font-weight: 800; font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: var(--ink);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary:hover { color: var(--lime-deep); }
.faq-q { min-width: 0; font-weight: 600; }
.faq-q b { font-weight: 800; }
.faq-mark { flex: none; width: 1.5rem; height: 1.5rem; position: relative; border: 1.5px solid var(--rule-2); border-radius: 999px; }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; left: 50%; top: 50%; background: var(--lime-deep); }
.faq-mark::before { width: 0.72rem; height: 2px; transform: translate(-50%, -50%); }
.faq-mark::after { width: 2px; height: 0.72rem; transform: translate(-50%, -50%); transition: transform 0.2s ease; }
.faq-item[open] > summary .faq-mark { border-color: var(--lime-deep); }
.faq-item[open] > summary .faq-mark::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-a { padding: 0 0.25rem 1.5rem; }
.faq-a > :first-child { margin-top: 0; }
@media (prefers-reduced-motion: reduce) { .faq-mark::after { transition: none; } }

/* ── Data tables (Donate accepted-items, Emergency hotlines) — hairline rules,
   generous padding, wraps to a scroll container on small screens. ── */
.table-wrap { overflow-x: auto; margin-top: 1.4rem; border: 1px solid var(--rule-2); border-radius: 0.9rem; background: var(--paper-2); }
.dtable { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.dtable caption { text-align: left; font-weight: 800; padding: 1.1rem 1.2rem 0.4rem; font-size: 1.05rem; color: var(--ink); }
.dtable th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.09em; color: var(--muted); font-weight: 800; padding: 0.9rem 1.2rem 0.55rem; border-bottom: 1px solid var(--rule-2); }
.dtable td { padding: 0.72rem 1.2rem; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink); }
.dtable tr:last-child td { border-bottom: 0; }
.dtable td.quiet { color: var(--muted); }
.dtable a { font-weight: 700; }

/* yes/no pills for accept / don't-accept tables */
.pill { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.78rem; font-weight: 800; border-radius: 999px; padding: 0.18rem 0.7rem; white-space: nowrap; }
.pill-yes { color: #33641a; background: rgba(137, 206, 64, 0.22); }
.pill-no { color: #8c2f22; background: rgba(216, 87, 62, 0.16); }

/* numbered process strip (how a donated item becomes inventory) */
.steps { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; gap: 0.9rem; counter-reset: step; }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(5, 1fr); } }
.steps li { counter-increment: step; border: 1px solid var(--rule-2); background: var(--paper-2); border-radius: 0.75rem; padding: 1rem 1.05rem; }
.steps li::before { content: counter(step); display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 999px; background: var(--lime); color: var(--ink); font-weight: 900; margin-bottom: 0.5rem; }
.steps b { display: block; margin-bottom: 0.2rem; }
.steps span { color: var(--muted); font-size: 0.92rem; }

/* ── "Create your own" CTA card (homepage programs grid, position 6) — a
   colorful blue→green gradient tile that invites custom workshop/program
   requests. White text on deep tones keeps WCAG AA contrast; the hover lift
   matches the standard card. ── */
.card-create {
  background: linear-gradient(135deg, #1d5fae 0%, #2f7d4f 55%, #4c7c1f 100%);
  border-color: transparent;
  color: #fff;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 14rem;
}
.card-create h3 { color: #fff; font-size: 1.45rem; }
.card-create p { color: rgba(255, 255, 255, 0.92); }
.card-create .arrow { color: #b9e88f; }
.card-create:hover { border-color: transparent; box-shadow: 0 24px 48px -24px rgba(29, 95, 174, 0.55); }
