/* Pack 491 — Cub Scouts brand (Scouting America): Cub Scout blue + Cub Scout gold.
   Layout: navy gradient bands top and bottom (same family as the Can & Bottle Race page),
   white content cards on a cool off-white ground, gold used for calls to action. */
:root {
  --navy: #003F87;      /* Cub Scout blue (PMS 294) */
  --navy-deep: #002B5C;
  --navy-2: #1A5490;
  --gold: #FDC116;      /* Cub Scout gold (PMS 123) */
  --gold-soft: #FFF4CC;
  --sky: #E6EEF8;
  --sky-line: #CFDCEB;
  --fg: #16243A;
  --muted: #4A5A70;
  --bg: #F6F8FB;
  --panel: #FFFFFF;
  --line: #E1E7EF;
  --ok: #2E7D4F;
  --err: #B3261E;
  --f-display: "Montserrat", "Proxima Nova", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Source Sans 3", "Source Sans Pro", -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --r: 14px;
  --wrap: 72rem;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }
a { color: var(--navy); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px;
}
h1, h2, h3 { font-family: var(--f-display); line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5.4vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 800; color: var(--navy-deep); }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.eyebrow { font-family: var(--f-display); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lead { font-size: 1.2rem; max-width: 38rem; }
.muted { color: var(--muted); }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy-deep); padding: .5rem 1rem; z-index: 100; font-weight: 700; }
.skip:focus { left: 1rem; top: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .45rem; font-family: var(--f-display); font-weight: 700; font-size: .98rem;
  text-decoration: none; border-radius: 10px; padding: .75rem 1.15rem; border: 2px solid transparent; cursor: pointer; line-height: 1.2; }
.btn-gold { background: var(--gold); color: var(--navy-deep); box-shadow: 0 3px 0 #C99700; }
.btn-gold:hover { background: #FFCD3C; }
.btn-gold:active { transform: translateY(2px); box-shadow: 0 1px 0 #C99700; }
.btn-line { border-color: currentColor; color: #fff; }
.btn-line:hover { background: rgba(255,255,255,.12); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--sky); }
.btns { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Header */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--navy); }
.site-head { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); box-shadow: 0 2px 12px rgba(0,30,70,.2); }
.site-head .wrap { display: flex; align-items: center; gap: 1rem; padding-block: .6rem; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; }
.brand img { width: 2.6rem; height: 2.6rem; }
.brand b { font-family: var(--f-display); font-weight: 800; font-size: 1.2rem; display: block; line-height: 1.1; }
.brand small { display: block; font-size: .78rem; opacity: .85; }
.menu { display: flex; gap: .2rem; margin-left: auto; align-items: center; }
.menu a { color: rgba(255,255,255,.92); text-decoration: none; font-family: var(--f-display); font-weight: 600; font-size: .93rem; padding: .5rem .75rem; border-radius: 8px; white-space: nowrap; }
.menu a:hover { background: rgba(255,255,255,.14); color: #fff; }
.menu a[aria-current="page"] { background: #fff; color: var(--navy); }
.menu a.login { border: 2px solid var(--gold); color: var(--gold); margin-left: .35rem; }
.menu a.login:hover { background: var(--gold); color: var(--navy-deep); }
.menu-toggle .bars { display: inline-flex; flex-direction: column; justify-content: space-between; width: 20px; height: 14px; }
.menu-toggle .bars i { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] .bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars i:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.menu-toggle { align-items: center; gap: .5rem; }
.menu-toggle { display: none; margin-left: auto; background: transparent; color: #fff; border: 2px solid rgba(255,255,255,.7); border-radius: 8px; padding: .4rem .7rem; font: 700 .9rem var(--f-display); cursor: pointer; }
@media (max-width: 860px) {
  .menu-toggle { display: inline-flex; }
  .menu { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: .15rem; padding-bottom: .5rem; }
  .menu.open { display: flex; }
  .menu a { padding: .7rem .8rem; font-size: 1rem; }
  .menu a.login { margin: .4rem 0 0; text-align: center; }
}

/* Hero */
.hero { background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 55%, var(--navy-2) 100%); color: #fff; position: relative; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 2.5rem; align-items: center; padding-block: 3.5rem 4rem; }
.hero .eyebrow { color: var(--gold); }
.hero h1 { margin: .5rem 0 1rem; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { color: rgba(255,255,255,.92); margin-bottom: 1.6rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; padding: 0; list-style: none; }
.hero-facts li { background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: .35rem .85rem; font-size: .92rem; font-weight: 600; }
.trail { position: absolute; left: -5%; bottom: -1px; width: 110%; height: 46px; pointer-events: none; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: 1fr; padding-block: 2.25rem 3.25rem; } }

/* Photo collage */
.collage { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 5.2rem; gap: .6rem; }
.collage figure { margin: 0; border-radius: 12px; overflow: hidden; position: relative; background: var(--navy-2); border: 3px solid #fff; box-shadow: 0 8px 24px rgba(0,20,50,.35); }
.collage figure:nth-child(1) { grid-column: 1 / 5; grid-row: span 3; transform: rotate(-1.5deg); }
.collage figure:nth-child(2) { grid-column: 5 / 7; grid-row: span 2; transform: rotate(2deg); }
.collage figure:nth-child(3) { grid-column: 5 / 7; grid-row: span 2; transform: rotate(-1deg); }
.collage figure:nth-child(4) { grid-column: 1 / 5; grid-row: span 1; display: none; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage figcaption { position: absolute; left: .5rem; bottom: .5rem; background: rgba(0,30,70,.78); color: #fff; font-size: .78rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; }

/* Placeholder photo tiles (shown until real photos are in place) */
.ph { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; color: #fff; font-family: var(--f-display); font-weight: 700; font-size: .9rem; padding: .75rem;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.18), transparent 55%), linear-gradient(160deg, var(--navy-2), var(--navy-deep)); }
.ph span { display: block; font-size: 1.8rem; margin-bottom: .2rem; }

/* Sections */
.section { padding-block: 3.5rem; }
.section.alt { background: var(--panel); border-block: 1px solid var(--line); }
.section-head { display: grid; gap: .5rem; margin-bottom: 1.8rem; max-width: 44rem; }
.section-head .eyebrow { color: var(--navy-2); }
.grid { display: grid; gap: 1rem; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 1.3rem 1.25rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; align-content: start; min-width: 0; }
.section.alt .card { background: var(--bg); }
.card .icon { font-size: 1.9rem; line-height: 1; }
.card p { color: var(--muted); }

/* Quick facts strip */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); margin-top: -2.2rem; position: relative; z-index: 2; box-shadow: 0 10px 30px rgba(0,30,70,.08); }
.fact { padding: 1.1rem 1.2rem; border-right: 1px solid var(--line); min-width: 0; }
.fact:last-child { border-right: 0; }
.fact .k { font-family: var(--f-display); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-2); }
.fact .v { font-weight: 700; font-size: 1.05rem; margin-top: .15rem; }
.fact .s { font-size: .9rem; color: var(--muted); }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr 1fr; } .fact:nth-child(2) { border-right: 0; } .fact:nth-child(-n+2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 460px) { .facts { grid-template-columns: 1fr; } .fact { border-right: 0; border-bottom: 1px solid var(--line); } .fact:last-child { border-bottom: 0; } }

/* Steps (real sequence) */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); counter-reset: step; }
.steps li { counter-increment: step; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem; position: relative; display: grid; gap: .35rem; align-content: start; }
.section.alt .steps li { background: var(--bg); }
.steps li::before { content: counter(step); width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; font: 800 1rem var(--f-display); margin-bottom: .35rem; }
.steps li p { color: var(--muted); font-size: .98rem; }

/* Dens by grade */
.dens { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); }
.den { border-radius: var(--r); padding: 1rem; background: var(--panel); border: 1px solid var(--line); display: grid; gap: .2rem; border-top: 6px solid var(--c, var(--navy)); }
.den .grade { font-family: var(--f-display); font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.den h3 { font-size: 1.25rem; }
.den p { font-size: .92rem; color: var(--muted); }

/* Feature band (can race) */
.band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%); color: #fff; border-radius: 20px; padding: 2rem 2.25rem; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .8fr) auto; gap: 2rem; align-items: center; overflow: hidden; position: relative; }
.band-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.band-facts li { display: grid; grid-template-columns: 2.4rem 1fr; column-gap: .7rem; align-items: center; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); border-radius: 12px; padding: .6rem .8rem; }
.band-facts span { grid-row: span 2; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--gold); display: grid; place-items: center; font-size: 1.15rem; }
.band-facts b { font-family: var(--f-display); font-size: 1rem; line-height: 1.2; }
.band-facts small { color: rgba(255,255,255,.8); font-size: .85rem; }
@media (max-width: 1000px) { .band { grid-template-columns: minmax(0, 1fr) auto; } .band-facts { grid-column: 1 / -1; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-row: 2; } }
.band h2 { color: #fff; }
.band .eyebrow { color: var(--gold); }
.band p { color: rgba(255,255,255,.9); max-width: 36rem; margin-top: .5rem; }
.band .mascot-sm { width: 9rem; }
@media (max-width: 700px) { .band { grid-template-columns: 1fr; padding: 1.5rem 1.25rem; } .band .mascot-sm { width: 6rem; grid-row: 1; justify-self: center; margin-bottom: -.5rem; } .band-facts { grid-template-columns: 1fr; grid-row: auto; } }

/* Gallery */
.gallery { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.shot { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--panel); border: 1px solid var(--line); display: grid; grid-template-rows: auto 1fr; }
.shot .frame { aspect-ratio: 4 / 3; max-width: 100%; background: var(--sky); overflow: hidden; }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.shot:hover img { transform: scale(1.04); }
.shot figcaption { padding: .75rem .9rem .9rem; display: grid; gap: .15rem; }
.shot figcaption b { font-family: var(--f-display); font-size: 1rem; }
.shot figcaption span { font-size: .88rem; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.25rem; }
.chip { font: 600 .88rem var(--f-body); background: var(--panel); border: 1px solid var(--sky-line); color: var(--navy); border-radius: 999px; padding: .35rem .85rem; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }

/* FAQ */
.faq { display: grid; gap: .6rem; }
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 0 1.1rem; }
.section.alt .faq details { background: var(--bg); }
.faq summary { cursor: pointer; font-family: var(--f-display); font-weight: 700; padding: 1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; line-height: 1; color: var(--navy-2); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 1.1rem; color: var(--muted); display: grid; gap: .6rem; }

.fee-card { gap: .6rem; }
.fee-list { margin: 0; padding: 0; list-style: none; display: grid; gap: .55rem; }
.fee-list li { padding-left: 1.6rem; position: relative; color: var(--muted); }
.fee-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 1.15rem; height: 1.15rem; border-radius: 50%; background: var(--gold); color: var(--navy-deep); font: 800 .7rem/1.15rem var(--f-display); text-align: center; margin-top: .25rem; }
.fee-list b { color: var(--fg); }

/* Cost table */
.cost { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.cost td, .cost th { padding: .7rem 0; border-bottom: 1px solid var(--line); text-align: left; }
.cost td:last-child, .cost th:last-child { text-align: right; font-weight: 700; }
.cost tfoot td { border-bottom: 0; font-size: 1.1rem; color: var(--navy-deep); }

/* Page header (inner pages) */
.page-head { background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-2) 100%); color: #fff; position: relative; overflow: hidden; }
.page-head .wrap { padding-block: 2.6rem 3.4rem; display: grid; gap: .6rem; }
.page-head .eyebrow { color: var(--gold); }
.page-head p { color: rgba(255,255,255,.9); max-width: 40rem; font-size: 1.12rem; }

/* Forms */
.form { display: grid; gap: 1rem; }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 700; font-size: .95rem; }
.field label small { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { font: inherit; padding: .7rem .8rem; border: 1.5px solid #B9C6D6; border-radius: 10px; background: #fff; color: var(--fg); width: 100%; }
.field textarea { min-height: 8rem; resize: vertical; }
.row2 { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .row2 { grid-template-columns: 1fr; } }
.form-note { font-size: .9rem; color: var(--muted); }
.status { border-radius: 10px; padding: .8rem 1rem; font-weight: 600; }
.status.ok { background: #E7F4EC; color: var(--ok); border: 1px solid #A9D5B9; }
.status.err { background: #FBEAE9; color: var(--err); border: 1px solid #EBB5B1; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.contact-side { display: grid; gap: 1rem; align-content: start; }
.info-row { display: grid; grid-template-columns: 2.2rem 1fr; gap: .6rem; align-items: start; }
.info-row .i { font-size: 1.4rem; line-height: 1.3; }
.info-row b { display: block; font-family: var(--f-display); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-2); }

/* Footer */
.site-foot { background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 100%); color: rgba(255,255,255,.9); margin-top: 0; }
.site-foot .wrap { padding-block: 2.5rem 2rem; display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
.site-foot h3 { color: var(--gold); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: .6rem; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.site-foot a { color: #fff; text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
.site-foot .fine { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.2); padding-top: 1.2rem; font-size: .85rem; opacity: .8; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
.foot-brand { display: flex; gap: .75rem; align-items: center; }
.foot-brand img { width: 3rem; height: 3rem; }
.foot-brand b { font-family: var(--f-display); font-size: 1.15rem; color: #fff; }
@media (max-width: 760px) { .site-foot .wrap { grid-template-columns: 1fr; } }

.cta-final { text-align: center; display: grid; justify-items: center; gap: 1rem; }
.cta-final p { max-width: 36rem; color: var(--muted); }

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

/* Family program section */
.family { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; background: var(--gold-soft); border: 1px solid #F3D77A; border-radius: 20px; padding: 2rem 1.5rem; }
.family .card { background: var(--panel); }
.family .eyebrow { color: var(--navy-2); }
@media (max-width: 560px) { .family { padding: 1.4rem 1rem; } }

/* Den links and den pages */
a.den-link { text-decoration: none; color: inherit; transition: transform .15s ease, box-shadow .15s ease; }
a.den-link:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,30,70,.12); }
.den .more { margin-top: auto; padding-top: .4rem; font: 700 .85rem var(--f-display); color: var(--navy); }
.den-page .page-head { border-bottom: 6px solid var(--c); }
.den-page .page-head .eyebrow a { text-decoration: underline; text-underline-offset: 3px; }
.den-emoji { display: inline-block; margin-right: .2rem; }
.adv-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.adv { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 1.2rem; display: grid; gap: .35rem; align-content: start; border-left: 5px solid var(--c, var(--navy)); min-width: 0; }
.adv .topic { justify-self: start; font: 700 .75rem var(--f-display); letter-spacing: .06em; text-transform: uppercase; color: var(--navy-2); background: var(--sky); border-radius: 999px; padding: .2rem .65rem; }
.adv p { color: var(--muted); font-size: .98rem; }
.elective-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.elective-list li { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; display: grid; gap: .1rem; }
.elective-list b { font-family: var(--f-display); }
.elective-list span { color: var(--muted); font-size: .95rem; }
.den-nav { justify-content: center; margin-top: 1rem; }

/* Donate band */
.donate { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.5rem; align-items: center; background: var(--gold-soft); border: 1px solid #F3D77A; border-radius: 20px; padding: 1.75rem 2rem; }
.donate-icon { width: 4rem; height: 4rem; border-radius: 50%; background: var(--navy); display: grid; place-items: center; font-size: 1.9rem; }
.donate-text { display: grid; gap: .4rem; }
.donate-text .eyebrow { color: var(--navy-2); }
.donate-text p:last-child { color: var(--muted); max-width: 46rem; }
.donate-btn { white-space: nowrap; }
.site-foot a.foot-donate { color: var(--gold); font-weight: 700; }
@media (max-width: 760px) { .donate { grid-template-columns: 1fr; padding: 1.4rem 1.25rem; } .donate-icon { width: 3.2rem; height: 3.2rem; font-size: 1.5rem; } .donate-btn { justify-self: start; } }
