/* ============================================================
   Pack 3291 design system — the whole thing, one file.
   Style: warm "camp flyer" look (cream paper, hand-drawn gear,
   campfire golds) anchored by official Cub Scout blue in the
   header/footer and primary actions.
   CONTRAST RULE: white text on blue; gold is for accents,
   badges, buttons, and large display text only — gold text on
   blue fails WCAG at body sizes. Dark ink on gold for buttons.
   ============================================================ */

:root {
  --blue: #003F87;        /* Cub Scout blue (PMS 294) — header/footer anchor */
  --blue-dark: #00285A;
  --gold: #FFC72C;
  --gold-dark: #E0A800;
  --paper: #F7F1DC;       /* warm cream, from the pack's flyer style */
  --cream-deep: #F0E7C6;  /* slightly deeper cream for the hero band */
  --wash: #F1E9CC;        /* warm panel background */
  --ink: #2A2420;         /* warm near-black, flyer-style */
  --muted: #6B5F4E;
  --line: #E0D6B4;
  --ok: #1C7C43;
  --err: #A02A2A;
  --radius: 10px;
  --shadow: 0 1px 3px rgba(84, 63, 22, .14);
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
}
img { max-width: 100%; height: auto; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(1.75rem, 4.5vw, 2.5rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }

/* ---------- layout ---------- */
.shell { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.prose { max-width: 70ch; }
main { display: block; padding: 2rem 0 3rem; }
.section { margin: 0 0 2.5rem; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--ink);
  padding: .5rem 1rem; z-index: 10; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ---------- header / nav ---------- */
.site-header { background: var(--blue); color: #fff; }
.header-row {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: .5rem 1rem; padding-top: .6rem; padding-bottom: .6rem;
}
.brand { display: flex; align-items: center; gap: .65rem; text-decoration: none; color: #fff; margin-right: auto; }
.brand-mark { flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-weight: 800; font-size: 1.1rem; }
.brand-sub { font-size: .8rem; color: #C9D8EC; }

.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .35rem; }
.site-nav a {
  color: #fff; text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: .5rem .7rem; border-radius: 6px; min-height: 44px;
  display: inline-flex; align-items: center;
}
.site-nav a:hover { background: var(--blue-dark); color: #fff; }
.site-nav a[aria-current="page"] { background: var(--blue-dark); box-shadow: inset 0 -3px 0 var(--gold); }
.site-nav .nav-cta { margin-left: .35rem; }
.site-nav .nav-cta[aria-current="page"] { box-shadow: none; background: var(--gold-dark); color: var(--ink); }

.nav-toggle {
  display: none; min-height: 44px; padding: .5rem .9rem;
  font: inherit; font-weight: 700; color: #fff;
  background: var(--blue-dark); border: 1px solid #33608F; border-radius: 6px;
  cursor: pointer;
}

/* JS-enhanced collapse on small screens; without JS the nav simply wraps. */
@media (max-width: 799px) {
  .site-header[data-js] .nav-toggle { display: inline-flex; align-items: center; }
  .site-header[data-js] .site-nav { display: none; flex-basis: 100%; flex-direction: column; align-items: stretch; padding-bottom: .6rem; }
  .site-header[data-js][data-open] .site-nav { display: flex; }
  .site-header[data-js] .site-nav .nav-cta { margin-left: 0; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .4rem; min-height: 44px; padding: .55rem 1.15rem;
  border-radius: var(--radius); border: 2px solid transparent;
  font-weight: 800; font-size: 1rem; text-decoration: none; cursor: pointer;
}
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: var(--gold-dark); color: var(--ink); }
.btn-blue { background: var(--blue); color: #fff; }
.btn-blue:hover { background: var(--blue-dark); color: #fff; }
.btn-outline { border-color: var(--blue); color: var(--blue); background: transparent; }
.btn-outline:hover { background: var(--wash); }
.btn-ghost { border-color: #fff; color: #fff; background: transparent; }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); color: #fff; }

/* ---------- announcement bar (seasonal, home page) ---------- */
.announce { background: var(--gold); color: var(--ink); }
.announce .shell { padding-top: .6rem; padding-bottom: .6rem; font-weight: 700; }
.announce a { color: var(--ink); }

/* ---------- hero (home) — warm flyer style ---------- */
.hero {
  background: var(--cream-deep);
  border-bottom: 1px solid var(--line);
  color: var(--ink); padding: 2.75rem 0 0;
}
.hero h1 { max-width: 22ch; font-size: clamp(2rem, 5.5vw, 3rem); }
.hero .tagline { font-size: 1.15rem; max-width: 55ch; color: var(--muted); }
.hero .facts { list-style: none; padding: 0; margin: 1.25rem 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-weight: 600; }
.hero .facts li { display: flex; align-items: center; gap: .45rem; }
.hero .facts .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--blue); flex: none; }
.hero .actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 2.25rem; }
.hero-art { margin: 0; }
.hero-art img { display: block; width: 100%; max-height: 340px; object-fit: cover; object-position: center bottom; }

/* ---------- cards / panels ---------- */
.card-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); padding: 0; margin: 0 0 1em; list-style: none; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.2rem; box-shadow: var(--shadow);
}
.card h3 { margin-top: 0; }
.panel { background: var(--wash); border-radius: var(--radius); padding: 1.25rem 1.4rem; }
.notice { background: var(--wash); border-left: 4px solid var(--blue); border-radius: 0 var(--radius) var(--radius) 0; padding: .8rem 1.1rem; }

/* ---------- events ---------- */
.event-month { margin: 1.75rem 0 .75rem; padding-bottom: .25rem; border-bottom: 2px solid var(--gold); }
.event-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem; }
.event-item {
  display: flex; gap: 1rem; align-items: flex-start;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: .85rem 1rem; box-shadow: var(--shadow);
}
.event-date {
  flex: none; width: 3.4rem; text-align: center;
  background: var(--blue); color: #fff; border-radius: 8px; padding: .35rem 0 .45rem;
}
.event-date .dow { display: block; font-size: .7rem; font-weight: 700; text-transform: uppercase; color: var(--gold); }
.event-date .day { display: block; font-size: 1.35rem; font-weight: 800; line-height: 1.1; }
.event-body h3 { margin: 0 0 .15rem; font-size: 1.05rem; }
.event-meta { color: var(--muted); font-size: .92rem; margin: 0; }
.event-desc { font-size: .95rem; margin: .35rem 0 0; }
.events-status { color: var(--muted); }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 1rem; max-width: 40rem; }
label { font-weight: 700; display: block; margin-bottom: .3rem; }
.hint { font-weight: 400; color: var(--muted); font-size: .9rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%; padding: .6rem .7rem; font: inherit; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
}
input:focus, select:focus, textarea:focus, .btn:focus, a:focus, button:focus {
  outline: 3px solid var(--gold); outline-offset: 1px;
}
textarea { min-height: 9rem; resize: vertical; }
.form-error {
  background: #FBEAEA; border-left: 4px solid var(--err); color: var(--err);
  padding: .8rem 1.1rem; border-radius: 0 var(--radius) var(--radius) 0; font-weight: 600;
}
/* honeypot — hidden from humans, present for bots */
.hp-field { position: absolute; left: -9999px; top: -9999px; }

/* ---------- FAQ ---------- */
details.faq { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 0; margin: 0 0 .6rem; }
details.faq summary { font-weight: 700; padding: .8rem 1.1rem; cursor: pointer; }
details.faq[open] summary { border-bottom: 1px solid var(--line); }
details.faq .faq-body { padding: .8rem 1.1rem; }

/* ---------- tables (dens, costs) ---------- */
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
th, td { text-align: left; padding: .55rem .8rem; border-bottom: 1px solid var(--line); }
th { background: var(--wash); }
tr:last-child td { border-bottom: none; }

/* ---------- footer ---------- */
.site-footer { background: var(--blue-dark); color: #D5E0EE; margin-top: 2rem; }
.footer-grid {
  display: grid; gap: 1.5rem; padding-top: 2rem; padding-bottom: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--gold); margin-bottom: .5rem; }
.site-footer a { color: #fff; }
.footer-col > a { display: block; text-decoration: none; padding: .2rem 0; }
.footer-col > a:hover { text-decoration: underline; color: #fff; }
.footer-note { border-top: 1px solid #1D4470; padding-top: 1rem; padding-bottom: 1.25rem; }
.footer-note p { font-size: .85rem; color: #A9BCD3; margin: 0; }

/* ---------- checklists (packing lists — print-friendly) ---------- */
.checklist { list-style: none; padding-left: 0; }
.checklist li { padding-left: 1.6em; position: relative; margin-bottom: .3em; }
.checklist li::before { content: "☐"; position: absolute; left: 0; color: var(--blue); font-size: 1.1em; line-height: 1.4; }

/* ---------- misc ---------- */
.crumbs { font-size: .9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- print (packing lists) ---------- */
@media print {
  .site-header, .site-footer, .skip-link, .no-print { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  main { padding: 0; }
  a { color: #000; text-decoration: none; }
  .card, .panel { border: 1px solid #999; box-shadow: none; }
}
