/*
  Colors and fonts follow the Scouting America Brand Guidelines (2024).
  Primary palette: Red #CE1126, Blue #003F87, Tan #D6CEBD, Gray #515354, White.
  Secondary: Dark Blue #003366, Light Tan #E9E9E4, Dark Gray #232528.
  Never use a shade or tint of Scouting America Red.
  Fonts: Montserrat (approved alternate to Proxima Nova) for headings, Arial for body.
*/
@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
}

:root {
  --red: #ce1126;
  --blue: #003f87;
  --blue-dark: #003366;
  --tan: #d6cebd;
  --tan-light: #e9e9e4;
  --gray: #515354;
  --ink: #232528;
  --radius: 10px;
  --max: 64rem;
  --logo: 2rem;
}
@media (min-width: 40rem) { :root { --logo: 2.5rem; } }

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font: 1.0625rem/1.6 Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: #fff;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--blue); }
a:hover { color: var(--blue-dark); }

h1, h2, h3 { font-family: Montserrat, Arial, sans-serif; font-weight: 800; line-height: 1.2; margin: 0 0 .5em; color: var(--blue-dark); }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.7rem); }
h2 { font-size: 1.5rem; margin-top: 1.5em; }
h3 { font-size: 1.15rem; font-weight: 700; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem; z-index: 10; }

/* Header: the trademark appears only in full color on white, with clear space
   on every side at least the height of the fleur-de-lis (--logo). */
.site-header { background: #fff; }
.masthead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-top: var(--logo); padding-bottom: var(--logo);
}
.brand { display: flex; align-items: center; gap: var(--logo); text-decoration: none; color: var(--blue-dark); }
.brand img { height: var(--logo); width: auto; }
.brand span { font-family: Montserrat, Arial, sans-serif; font-weight: 800; font-size: 1.05rem; line-height: 1.2; }
@media (min-width: 40rem) { .brand span { font-size: 1.2rem; } }
.brand small { display: block; font-family: Arial, Helvetica, sans-serif; font-weight: 400; font-size: .85rem; color: var(--gray); }
.brand:hover { color: var(--blue-dark); }

.site-nav { background: var(--blue); }
.site-nav ul { list-style: none; margin: 0; padding: .6rem 0; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
.site-nav a { color: #fff; text-decoration: none; font-size: .95rem; font-weight: 700; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: 4px; }

/* Buttons: red is the action color. Hover moves to blue rather than a red shade. */
.btn {
  display: inline-block; background: var(--red); color: #fff; font-weight: 700;
  text-decoration: none; padding: .7rem 1.3rem; border-radius: 999px; border: 2px solid var(--red);
}
.btn:hover, .btn:focus { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover, .btn-outline:focus { background: var(--blue); border-color: var(--blue); color: #fff; }

/* Hero */
.hero { background: var(--tan-light); border-bottom: 1px solid var(--tan); }
.hero .wrap { display: grid; gap: 2rem; padding-top: 2.5rem; padding-bottom: 2.5rem; align-items: center; }
@media (min-width: 52rem) { .hero .wrap:has(> img, > picture) { grid-template-columns: 1.2fr 1fr; } }
.hero img { border-radius: var(--radius); }
.lede { font-size: 1.2rem; color: var(--gray); margin: 0 0 1.25rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: .75rem 1rem; align-items: center; }

main { padding-bottom: 3rem; }
section { margin-top: 2.5rem; }

/* Unit cards */
.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 1rem; }
.card {
  border: 1px solid var(--tan); border-radius: var(--radius); padding: 1.25rem;
  display: flex; flex-direction: column; gap: .5rem; background: #fff;
}
.card h3 { margin: 0; }
.card .who { font-weight: 700; color: var(--gray); margin: 0; }
.card p { margin: 0; }
.card .cta-row { margin-top: auto; padding-top: .75rem; flex-direction: column; align-items: flex-start; gap: .6rem; }

/* Facts list */
.facts { display: grid; gap: .75rem 2rem; grid-template-columns: max-content 1fr; margin: 1rem 0; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; }
@media (max-width: 30rem) { .facts { grid-template-columns: 1fr; } .facts dd { margin-bottom: .5rem; } }

.note { background: var(--tan-light); border-left: 4px solid var(--blue); padding: .75rem 1rem; border-radius: 4px; }

/* Prepared. For Life. lockup: clear space on all sides at least the height of the
   fleur-de-lis, which is about 77% of the lockup's height (7.5rem wide → ~5.4rem). */
.tagline { margin: 0; padding: 5.5rem 0 2.5rem; }
.tagline img { width: 7.5rem; margin: 0 auto; }

.join-band { background: var(--blue); color: #fff; border-radius: var(--radius); padding: 1.75rem; margin-top: 3rem; }
.join-band h2 { margin-top: 0; color: #fff; }
.join-band a:not(.btn) { color: #fff; }
.join-band .btn:hover, .join-band .btn:focus { background: #fff; border-color: #fff; color: var(--blue-dark); }

table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
th, td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--tan); vertical-align: middle; }
th { background: var(--tan-light); }

/* Join picker: on phones each row stacks into the child description over
   the group name and its Join button. */
@media (max-width: 40rem) {
  .picker, .picker tbody { display: block; }
  .picker thead { position: absolute; left: -999px; }
  .picker tr { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .5rem 1rem; padding: 1rem 0; border-bottom: 1px solid var(--tan); }
  .picker td { display: block; padding: 0; border: 0; }
  .picker td:first-child { grid-column: 1 / -1; font-weight: 700; }
}

.calendar { position: relative; width: 100%; aspect-ratio: 4 / 3; min-height: 32rem; border: 1px solid var(--tan); border-radius: var(--radius); overflow: hidden; }
.calendar iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

details { border-bottom: 1px solid var(--tan); padding: .75rem 0; }
summary { font-weight: 700; cursor: pointer; }
details p { margin: .5rem 0 0; }

/* Footer */
.site-footer { background: var(--blue-dark); color: #fff; font-size: .95rem; padding: 2rem 0; }
.site-footer a { color: #fff; }
.site-footer .cols { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.site-footer h2 { font-size: 1rem; margin: 0 0 .5rem; color: #fff; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer p { margin: 0 0 .5rem; }
.fineprint { margin-top: 1.5rem; color: var(--tan-light); font-size: .85rem; }
