/* ==========================================================================
   Pack 3751 Design System
   Extracted from: Recruiting Flyer + 2026-2027 Annual Calendar
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;600;700&display=swap');

:root {
  /* --- Color tokens (from source materials) --- */
  --cream:        #FBF3E1;   /* page background */
  --cream-deep:   #E8DDC2;   /* calendar-page outer background */
  --cream-card:   #FDF8ED;   /* card fill, slightly lighter than bg */
  --navy:         #1C3A57;   /* headlines, primary bar fill, nav */
  --navy-deep:    #142B41;   /* darkest navy, footer text */
  --orange:       #DD7B3E;   /* "Explorers" accent, dates, CTA */
  --orange-deep:  #C4652A;   /* hover / pressed orange */
  --gold:         #E8B84B;   /* badge outlines, logo diamond */
  --green:        #3C6B4A;   /* second badge color, card borders */
  --green-deep:   #2C5038;   /* dark green text/dots */
  --ink:          #2B2A26;   /* body copy */
  --ink-soft:     #6B6558;   /* secondary copy */
  --line:         #D8CBA8;   /* hairline borders on cream */

  /* --- Type --- */
  --font-display: 'Baloo 2', 'Segoe UI', sans-serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --font-label: 'JetBrains Mono', 'SF Mono', monospace;

  /* --- Radius / shadow --- */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --shadow-card: 0 2px 0 rgba(28,58,87,0.04), 0 10px 24px -14px rgba(28,58,87,0.25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}

/* --- Eyebrow / label style (mono, tracked, uppercase) --- */
.eyebrow {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
}
.eyebrow.navy { color: var(--navy); }
.eyebrow.on-dark { color: var(--gold); }
.eyebrow.muted { color: var(--ink-soft); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--navy);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.accent { color: var(--orange); }
.accent-green { color: var(--green); }

p { margin: 0 0 1em; color: var(--ink); }
p:last-child { margin-bottom: 0; }

/* ==========================================================================
   Top utility bar
   ========================================================================== */
.topbar {
  background: var(--navy);
  color: var(--cream);
  font-family: var(--font-label);
  font-size: 12.5px;
  letter-spacing: 0.06em;
}
.topbar .wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 9px 28px;
  text-align: center;
}
.topbar strong { color: var(--gold); font-weight: 700; }
.btn-scoutmein {
  background: var(--orange);
  color: #fff;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background .15s ease;
}
.btn-scoutmein:hover { background: var(--orange-deep); }

/* ==========================================================================
   Header / Nav
   ========================================================================== */
.site-header {
  background: var(--cream);
  border-bottom: 3px dashed var(--navy);
  position: sticky;
  top: 0;
  z-index: 40;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.brand-mark { width: 52px; height: 52px; flex-shrink: 0; }
.brand-text .eyebrow { display: block; margin-bottom: 2px; }
.brand-text .pack-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  color: var(--navy);
}
.pack-name .accent { color: var(--orange); }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  font-family: var(--font-label);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--navy);
  padding: 9px 14px;
  border-radius: var(--radius-pill);
  transition: background .15s ease, color .15s ease;
}
.main-nav a:hover { background: rgba(28,58,87,0.08); }
.main-nav a.active { background: var(--navy); color: var(--cream); }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--navy);
  border-radius: 8px;
  padding: 7px 9px;
  cursor: pointer;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--navy);
  position: relative;
  transition: all .2s ease;
}
.nav-toggle span::before { content: ''; position: absolute; top: -6px; }
.nav-toggle span::after { content: ''; position: absolute; top: 6px; }

@media (max-width: 860px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--cream);
    border-bottom: 3px dashed var(--navy);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 20px 18px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; text-align: left; }
  .site-header .wrap { position: relative; }
}

/* ==========================================================================
   Dashed dividers (signature motif from flyer/calendar)
   ========================================================================== */
.dash-divider {
  border: none;
  border-top: 3px dashed var(--navy);
  margin: 0;
}
.dash-divider.orange { border-top-color: var(--orange); }
.dash-divider.thin { border-top-width: 2px; opacity: .6; }

.rule-squiggle {
  display: block;
  width: 100%;
  height: 10px;
  margin: 10px 0 0;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  padding: 56px 0 40px;
}
.hero .eyebrow { margin-bottom: 10px; }
.hero h1 {
  font-size: clamp(36px, 6vw, 58px);
  font-weight: 800;
}
.hero .lede {
  margin-top: 16px;
  max-width: 640px;
  font-size: 18px;
  color: var(--ink-soft);
  font-weight: 500;
}
.hero-cta-row {
  margin-top: 26px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: var(--radius-pill);
  transition: transform .12s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #fff; }
.btn-primary:hover { background: var(--orange-deep); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 2px solid var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--cream); }

/* ==========================================================================
   Info bar (TIME / LOCATION style block from flyer)
   ========================================================================== */
.info-bar {
  background: var(--navy);
  border-radius: var(--radius-md);
  border-bottom: 4px solid var(--gold);
  padding: 22px 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 22px;
  color: var(--cream);
}
.info-bar .item + .item { border-left: 1px solid rgba(255,255,255,0.18); padding-left: 22px; }
@media (max-width: 640px) { .info-bar .item + .item { border-left: none; padding-left: 0; } }
.info-bar .eyebrow { color: var(--gold); margin-bottom: 6px; }
.info-bar .value { font-family: var(--font-display); font-weight: 700; font-size: 20px; }
.info-bar .subvalue { font-size: 13px; color: rgba(255,255,255,0.75); margin-top: 2px; }

/* ==========================================================================
   Cards (Stop / program cards)
   ========================================================================== */
.section { padding: 56px 0; }
.section-head { margin-bottom: 34px; max-width: 680px; }
.section-head .eyebrow { margin-bottom: 8px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); }
.section-head p { margin-top: 12px; color: var(--ink-soft); font-size: 16px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.stop-card {
  background: var(--cream-card);
  border: 2px solid var(--green);
  border-radius: var(--radius-lg);
  padding: 26px 26px 24px;
  position: relative;
}
.stop-card .badges {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  gap: 10px;
  flex-wrap: wrap;
}
.pill {
  font-family: var(--font-label);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.pill-gold { background: transparent; border: 2px solid var(--gold); color: var(--navy-deep); }
.pill-green-line { background: transparent; border: 2px solid var(--green); color: var(--green-deep); }
.pill-navy { background: var(--navy); color: var(--cream); }
.pill-green { background: var(--green); color: var(--cream); }
.pill-orange { background: var(--orange); color: #fff; }

.stop-card .icon { width: 40px; height: 40px; margin-bottom: 14px; }
.stop-card h3 { font-size: 20px; margin-bottom: 8px; }
.stop-card p { color: var(--ink-soft); font-size: 14.5px; }

/* Generic program / activity card */
.program-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius-md);
  padding: 24px 26px;
  box-shadow: var(--shadow-card);
}
.program-card.green { border-left-color: var(--green); }
.program-card.gold { border-left-color: var(--gold); }
.program-card.navy { border-left-color: var(--navy); }
.program-card .top-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.program-card .icon-badge {
  width: 46px; height: 46px;
  border-radius: 12px;
  background: var(--cream);
  border: 2px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.program-card .icon-badge svg { width: 26px; height: 26px; }
.program-card h3 { font-size: 19px; }
.program-card .meta-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.program-card .meta-list li { font-size: 13.5px; color: var(--ink-soft); }
.program-card .meta-list strong { color: var(--navy); font-weight: 600; }
.program-card .meta-list a { color: var(--orange-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.program-card .desc { font-size: 14.5px; color: var(--ink); margin-top: 12px; }
.tbd-tag {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--orange-deep);
  border: 1.5px dashed var(--orange);
  border-radius: var(--radius-pill);
  padding: 2px 9px;
  margin-left: 8px;
}

/* ==========================================================================
   Trail icon band (decorative, reused from flyer footer strip)
   ========================================================================== */
.trail-band {
  position: relative;
  height: 92px;
  margin: 8px 0 0;
}
.trail-band .ground-line {
  position: absolute;
  left: 0; right: 0; bottom: 22px;
  border-top: 2px solid var(--line);
}
.trail-band svg { position: absolute; bottom: 14px; }

/* ==========================================================================
   Calendar page
   ========================================================================== */
body.calendar-page { background: var(--cream-deep); }
.cal-legend {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  align-items: center;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--navy);
}
.cal-legend .dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; margin-right: 7px; vertical-align: middle; }
.dot-pack { background: var(--orange); }
.dot-committee { background: var(--ink-soft); }
.dot-special { background: var(--green); }
.dot-popcorn { background: var(--gold); }

.cal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
  margin-top: 28px;
}
.month-card {
  background: var(--cream-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 18px 20px 20px;
  box-shadow: var(--shadow-card);
}
.month-card .month-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}
.month-card .month-head h3 { font-size: 18px; color: var(--navy); }
.month-card .month-head span { font-family: var(--font-label); font-size: 12px; color: var(--ink-soft); }

table.mini-cal { width: 100%; border-collapse: collapse; margin-bottom: 12px; }
table.mini-cal th {
  font-family: var(--font-label);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  font-weight: 600;
  padding-bottom: 6px;
}
table.mini-cal td {
  text-align: center;
  font-size: 12.5px;
  padding: 4px 0;
  color: var(--ink);
  position: relative;
}
table.mini-cal td.empty { color: transparent; }
table.mini-cal td .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px; height: 22px;
  border-radius: 50%;
}
td.mark-pack .num { background: var(--orange); color: #fff; font-weight: 700; }
td.mark-committee .num { background: #e4dcc4; color: var(--ink-soft); font-weight: 700; border: 1.5px solid var(--ink-soft); }
td.mark-special .num { background: var(--green); color: #fff; font-weight: 700; }
td.mark-popcorn .num { background: var(--gold); color: var(--navy-deep); font-weight: 700; }

.event-list { list-style: none; margin: 0; padding: 10px 0 0; border-top: 1px dashed var(--line); font-size: 12.5px; }
.event-list li { display: flex; gap: 8px; padding: 3px 0; color: var(--ink-soft); }
.event-list li .ed { flex-shrink: 0; width: 15px; height: 15px; border-radius: 50%; margin-top: 2px; }
.event-list li strong { color: var(--navy); font-weight: 600; }

.summer-strip {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.summer-card {
  border: 2px solid var(--green);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  background: var(--cream-card);
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.summer-card .icon { width: 30px; height: 30px; flex-shrink: 0; }
.summer-card h4 { font-size: 16px; margin-bottom: 4px; }
.summer-card p { font-size: 13.5px; color: var(--ink-soft); }

/* ==========================================================================
   Pinewood derby timeline
   ========================================================================== */
.timeline {
  position: relative;
  padding-left: 34px;
  margin-top: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 6px; bottom: 6px;
  border-left: 3px dashed var(--navy);
}
.timeline-step {
  position: relative;
  padding-bottom: 40px;
}
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before {
  content: '';
  position: absolute;
  left: -34px; top: 2px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--orange);
  border: 4px solid var(--cream);
  box-shadow: 0 0 0 2px var(--orange);
}
.timeline-step.done::before { background: var(--green); box-shadow: 0 0 0 2px var(--green); }
.timeline-step .step-date { font-family: var(--font-label); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--orange-deep); font-weight: 700; margin-bottom: 4px; }
.timeline-step h3 { font-size: 20px; margin-bottom: 6px; }
.timeline-step p { color: var(--ink-soft); font-size: 15px; max-width: 560px; }

/* ==========================================================================
   Callout box (who's invited / rsvp style)
   ========================================================================== */
.callout-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 28px;
}
.callout {
  border-left: 3px solid var(--orange);
  padding-left: 18px;
}
.callout .eyebrow { margin-bottom: 6px; }
.callout p { font-size: 15px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--cream);
  padding-top: 0;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 26px 0 34px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand .icon { width: 26px; height: 26px; }
.footer-brand .name { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 15px; }
.footer-brand .tagline { font-size: 12.5px; color: var(--ink-soft); }
.footer-contact { text-align: right; }
.footer-contact .row { font-size: 13.5px; }
.footer-contact .eyebrow { margin-right: 8px; }
.footer-contact a { color: var(--green-deep); font-weight: 600; text-decoration: none; }
.footer-contact a:hover { text-decoration: underline; }
@media (max-width: 560px) { .footer-inner { flex-direction: column; align-items: flex-start; } .footer-contact { text-align: left; } }

/* ==========================================================================
   Utility
   ========================================================================== */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.stack-sm > * + * { margin-top: 8px; }
