/* ==================================================
   CUB PACK 511

   Program-specific stylesheet for the Cub Pack section.
   Shared site behavior remains in css/style.css.
   ================================================== */

.cub-pack-page {
  --cub-navy-975: #071a2d;
  --cub-navy-950: #0a2239;
  --cub-navy-900: #102c48;
  --cub-navy-850: #163857;
  --cub-navy-800: #1d4566;
  --cub-gold: #d4a72c;
  --cub-gold-light: #f0cf72;
  --cub-gold-pale: #f3dda3;
  --cub-paper: #f2eee3;
  --cub-paper-deep: #e8e0cf;
  --cub-ink: #172536;
  --cub-muted: #526171;
  --cub-line: rgba(87, 84, 73, 0.32);
  --cub-shadow: rgba(24, 29, 35, 0.18);
  overflow-x: hidden;
  color: var(--cub-ink);
  background: var(--cub-paper);
}

.cub-pack-page *,
.cub-pack-page *::before,
.cub-pack-page *::after {
  box-sizing: border-box;
}

.cub-pack-page img,
.cub-pack-page svg {
  display: block;
  max-width: 100%;
}

.cub-pack-page a:focus-visible,
.cub-pack-page button:focus-visible {
  outline: 3px solid var(--cub-gold-light);
  outline-offset: 3px;
}

/* ==================================================
   COMPACT GLOBAL HEADER

   Geometry intentionally mirrors Scout Troop exactly. Only the Cub Pack
   navy/gold color treatment differs.
   ================================================== */

.cub-pack-page .site-header {
  min-height: 50px;
  padding: 0 38px;
  justify-content: flex-end;
}

.cub-pack-page .primary-navigation {
  margin-left: auto;
  justify-content: flex-end;
}

.cub-pack-page .cub-pack-global-header {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(0, 0, 0, 0.08)),
    var(--cub-navy-975);
  border-bottom-color: rgba(219, 180, 72, 0.45);
}

.cub-pack-page .cub-pack-global-header .primary-navigation a.is-current,
.cub-pack-page .cub-pack-global-header .primary-navigation a:hover,
.cub-pack-page .cub-pack-global-header .primary-navigation a:focus-visible {
  color: var(--cub-gold-light);
}

/* ==================================================
   HERO / PACK IDENTITY

   Dimensions, vertical alignment, and typography mirror the approved
   Advancements/Scout Troop detail-page hero. Cub-specific art and colors
   remain independent.
   ================================================== */

.cub-pack-hero {
  position: relative;
  z-index: 4;
  min-height: 258px;
  overflow: hidden;
  color: #fff8e8;
  background-color: #17282c;
  background-image: url("../images/ui/cub-pack/cub-pack-hero-background-muted.png");
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  border-bottom: 1px solid rgba(232, 193, 84, 0.5);
}

.cub-pack-hero::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 24, 39, 0.08) 0%, rgba(6, 24, 39, 0.04) 43%, rgba(6, 24, 39, 0.18) 100%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.12));
  pointer-events: none;
}

.cub-pack-hero-inner {
  position: relative;
  z-index: 2;
  width: min(calc(100% - 72px), 1120px);
  min-height: 258px;
  margin-inline: auto;
}

.cub-pack-identity {
  display: flex;
  align-items: center;
  gap: clamp(22px, 2.3vw, 32px);
  width: 49%;
  min-height: 258px;
  padding-block: 24px;
  text-shadow: 0 3px 11px rgba(0, 0, 0, 0.45);
}

.cub-pack-unit-lockup {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  padding-right: clamp(18px, 2vw, 27px);
  border-right: 1px solid rgba(232, 193, 84, 0.54);
}

.cub-pack-identity-mark {
  width: clamp(62px, 6vw, 82px);
  height: auto;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.38));
}

.cub-pack-identity-copy {
  min-width: 0;
}

.cub-pack-identity-copy h1 {
  margin: 0;
  color: #fffaf0;
  font-size: clamp(35px, 4.15vw, 52px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.cub-pack-mountain-accent {
  width: min(100%, 300px);
  height: auto;
  margin: 8px 0 0;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.34));
}

.cub-pack-identity-copy p {
  margin: 4px 0 0;
  color: var(--cub-gold-light);
  font-size: clamp(12px, 1.2vw, 16px);
  font-weight: 800;
  letter-spacing: 0.24em;
  line-height: 1;
  text-transform: uppercase;
}

/* ==================================================
   HORIZONTAL CUB PACK NAVIGATION
   ================================================== */

.cub-pack-home-navigation {
  position: relative;
  z-index: 8;
  color: #f7f0df;
  background:
    linear-gradient(180deg, rgba(35, 72, 110, 0.32), rgba(0, 0, 0, 0.1)),
    var(--cub-navy-950);
  border-top: 1px solid rgba(228, 187, 78, 0.2);
  border-bottom: 1px solid rgba(228, 187, 78, 0.62);
  box-shadow: 0 4px 8px rgba(9, 25, 39, 0.2);
}

.cub-pack-home-navigation-inner {
  display: flex;
  width: min(calc(100% - 48px), 1120px);
  min-height: 52px;
  align-items: stretch;
  justify-content: space-between;
  margin-inline: auto;
}

.cub-pack-home-navigation a {
  position: relative;
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  padding: 0 11px;
  color: #f4eedf;
  font-size: clamp(11px, 1.04vw, 14px);
  font-weight: 750;
  letter-spacing: 0.012em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: color 160ms ease, background-color 160ms ease;
}

.cub-pack-home-navigation a::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 6px;
  left: 10px;
  height: 2px;
  background: var(--cub-gold);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.cub-pack-home-navigation a:hover,
.cub-pack-home-navigation a:focus-visible,
.cub-pack-home-navigation a.is-current {
  color: var(--cub-gold-light);
  background: rgba(255, 255, 255, 0.035);
}

.cub-pack-home-navigation a:hover::after,
.cub-pack-home-navigation a:focus-visible::after,
.cub-pack-home-navigation a.is-current::after {
  transform: scaleX(1);
}

/* ==================================================
   CREAM PAPER LANDING SURFACE
   ================================================== */

.cub-pack-home-surface {
  position: relative;
  z-index: 2;
  background-color: var(--cub-paper);
  background-image:
    radial-gradient(circle at 84% 4%, rgba(201, 163, 74, 0.08), transparent 29%),
    url("../images/ui/paper-texture.png");
  background-repeat: no-repeat, repeat;
  background-size: auto, 256px 256px;
}

.cub-pack-home-content {
  width: min(calc(100% - 58px), 1110px);
  margin-inline: auto;
  padding: clamp(40px, 4.4vw, 56px) 0 clamp(18px, 2vw, 26px);
}

/* ==================================================
   WELCOME PANEL
   ================================================== */

.cub-pack-home-welcome {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(390px, 1.08fr);
  gap: clamp(38px, 5vw, 68px);
  align-items: center;
}

.cub-pack-home-welcome-copy {
  align-self: center;
}

.cub-pack-home-welcome-copy h2,
.cub-pack-home-section-heading h2,
.cub-pack-home-glance h2 {
  color: #102941;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.05;
  text-transform: uppercase;
}

.cub-pack-home-welcome-copy h2 {
  margin: 0 0 17px;
  font-size: clamp(29px, 3vw, 39px);
}

.cub-pack-home-welcome-copy p {
  max-width: 500px;
  margin: 0 0 27px;
  color: #2b3641;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.62;
}

.cub-pack-home-primary-button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  color: #fff8e5;
  background:
    linear-gradient(180deg, rgba(35, 79, 120, 0.34), rgba(0, 0, 0, 0.12)),
    var(--cub-navy-900);
  border: 1px solid #9c7d32;
  border-radius: 5px;
  box-shadow:
    0 3px 6px rgba(22, 30, 39, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.cub-pack-home-primary-button:hover,
.cub-pack-home-primary-button:focus-visible {
  color: #0b2239;
  background: var(--cub-gold-light);
  border-color: #9f7b2b;
  transform: translateY(-2px);
}

.cub-pack-home-welcome-figure {
  position: relative;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 1.55 / 1;
  margin: 0;
  background: #33465a;
  border: 1px solid #a68d54;
  border-radius: 7px;
  box-shadow:
    0 5px 10px rgba(44, 38, 29, 0.2),
    inset 0 0 0 2px rgba(255, 255, 255, 0.12);
}

.cub-pack-home-welcome-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: inherit;
  pointer-events: none;
}

.cub-pack-home-welcome-figure img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center 54%;
}

.cub-pack-home-divider {
  height: 1px;
  margin: clamp(36px, 4.5vw, 54px) 0 25px;
  background: rgba(117, 107, 86, 0.48);
}

/* ==================================================
   UPCOMING EVENTS + AT A GLANCE
   ================================================== */

.cub-pack-home-information-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.68fr) minmax(270px, 0.82fr);
  gap: 0;
  align-items: start;
}

.cub-pack-home-events {
  min-width: 0;
  padding-right: clamp(28px, 3.6vw, 46px);
}

.cub-pack-home-glance {
  min-width: 0;
  padding-left: clamp(28px, 3.4vw, 42px);
  border-left: 1px solid rgba(137, 123, 92, 0.48);
}

.cub-pack-home-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

.cub-pack-home-section-heading h2,
.cub-pack-home-glance h2 {
  margin: 0;
  font-size: clamp(21px, 2.15vw, 28px);
}

.cub-pack-home-section-heading a {
  flex: 0 0 auto;
  color: #284c6b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.cub-pack-home-section-heading a:hover,
.cub-pack-home-section-heading a:focus-visible {
  color: #8d6921;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cub-pack-home-events-status {
  margin: 0 0 7px;
  color: var(--cub-muted);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

.cub-pack-home-events-status[data-state="ready"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.cub-pack-home-events-status[data-state="setup"],
.cub-pack-home-events-status[data-state="error"] {
  margin: 8px 0 12px;
  padding: 9px 11px;
  color: #5b4219;
  background: rgba(237, 222, 196, 0.75);
  border: 1px solid rgba(157, 132, 78, 0.5);
  border-radius: 5px;
}

.cub-pack-home-events-status[data-state="error"] {
  color: #642e1f;
  background: rgba(244, 220, 208, 0.72);
  border-color: rgba(153, 75, 53, 0.48);
}

.cub-pack-home-event-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(146, 132, 102, 0.45);
}

.cub-pack-home-event-item {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 26px;
  gap: 17px;
  align-items: center;
  min-height: 92px;
  padding: 9px 4px;
  border-bottom: 1px solid rgba(146, 132, 102, 0.4);
}

.cub-pack-home-event-date {
  display: grid;
  width: 61px;
  overflow: hidden;
  background: #eee2c8;
  border: 1px solid #a99567;
  border-radius: 5px;
  box-shadow:
    0 2px 2px rgba(71, 54, 30, 0.09),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
  text-align: center;
}

.cub-pack-home-event-month {
  padding: 5px 4px 4px;
  color: #fff8e7;
  background: var(--cub-navy-900);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.cub-pack-home-event-day {
  padding: 6px 3px 7px;
  color: #263442;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.cub-pack-home-event-copy {
  display: grid;
  min-width: 0;
  gap: 3px;
  color: #263543;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.cub-pack-home-event-title {
  min-width: 0;
  color: #15283a;
  font-size: clamp(14px, 1.32vw, 17px);
  font-weight: 750;
  line-height: 1.22;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.cub-pack-home-event-title:hover,
.cub-pack-home-event-title:focus-visible {
  color: #165078;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cub-pack-home-event-meta,
.cub-pack-home-event-location {
  color: #52606d;
  font-size: clamp(11px, 1.02vw, 13px);
  font-weight: 600;
  line-height: 1.3;
}

.cub-pack-home-event-location {
  color: #606b76;
}

.cub-pack-home-event-mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  color: #a27b22;
  font-size: 18px;
  line-height: 1;
}

.cub-pack-home-event-empty {
  min-height: 92px;
  padding: 24px 9px;
  color: #5b6670;
  border-bottom: 1px solid rgba(146, 132, 102, 0.4);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-style: italic;
  line-height: 1.5;
}

.cub-pack-home-events-noscript {
  margin: 12px 0 0;
  padding: 10px 12px;
  color: #642e1f;
  background: rgba(244, 220, 208, 0.72);
  border: 1px solid rgba(153, 75, 53, 0.48);
  border-radius: 5px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
}

/* ==================================================
   AT A GLANCE
   ================================================== */

.cub-pack-home-glance h2 {
  margin-bottom: 18px;
}

.cub-pack-home-glance-list {
  display: grid;
  gap: 19px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cub-pack-home-glance-list li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  color: #293847;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(12px, 1.12vw, 14px);
  line-height: 1.5;
}

.cub-pack-home-glance-list svg {
  width: 24px;
  height: 24px;
  margin-top: 1px;
  fill: none;
  stroke: var(--cub-navy-850);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.cub-pack-home-glance-list strong {
  color: #172c40;
  font-weight: 800;
}

/* ==================================================
   FOOTER / SUPPLIED CUB PACK ARTWORK
   ================================================== */

.cub-pack-home-footer {
  --cub-footer-bottom-crop: clamp(34px, 3.2vw, 66px);

  position: relative;
  z-index: 3;
  min-height: clamp(180px, 21.7vw, 555px);
  overflow: hidden;
  color: #f8edd3;

  background-color: var(--cub-paper);
  background-image: url("../images/ui/paper-texture.png");
  background-repeat: repeat;
  background-size: 256px 256px;
}

/* No artificial continuation bar. */
.cub-pack-home-footer::before {
  content: none;
}

/*
  Preserve the footer artwork's original aspect ratio.

  The previous height:110% + object-fit:fill combination vertically
  compressed the tent, trees, and paw prints. Using height:auto keeps the
  artwork proportional. The small negative bottom offset crops the transparent
  / paper-colored strip built into the bottom of the source image so the blue
  foreground finishes cleanly at the bottom edge of the footer.
*/
.cub-pack-home-footer-art {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: calc(-1 * var(--cub-footer-bottom-crop));
  left: 0;
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  pointer-events: none;
  user-select: none;
}

/* Keep the rotating quote over the blue foreground, not below the artwork. */
.cub-pack-home-quote {
  position: absolute;
  z-index: 4;
  bottom: clamp(58px, 4.6vw, 88px);
  left: 50%;
  width: min(72%, 760px);
  margin: 0;
  color: #458241;
  text-align: center;

  transform: translateX(-50%);
}

.cub-pack-home-quote p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(15px, 1.55vw, 20px);
  font-style: italic;
  line-height: 1.3;
  transition: opacity 260ms ease, transform 260ms ease;
}

.cub-pack-home-quote footer {
  margin-top: 4px;
  color: #458241;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(10px, 0.9vw, 12px);
  font-weight: 650;
  letter-spacing: 0.025em;
  line-height: 1.2;
  transition: opacity 260ms ease, transform 260ms ease;
}

.cub-pack-home-quote.is-changing p,
.cub-pack-home-quote.is-changing footer {
  opacity: 0;
  transform: translateY(5px);
}

/* ==================================================
   RESPONSIVE LANDING PAGE
   ================================================== */

@media (max-width: 1110px) {
  .cub-pack-page .site-header {
    min-height: 58px;
    padding-inline: 30px;
  }

  .cub-pack-hero,
  .cub-pack-hero-inner,
  .cub-pack-identity {
    min-height: 236px;
  }

  .cub-pack-hero-inner {
    width: min(calc(100% - 54px), 1040px);
  }

  .cub-pack-identity {
    width: 54%;
  }

  .cub-pack-home-navigation-inner {
    width: min(calc(100% - 24px), 1060px);
  }

  .cub-pack-home-navigation a {
    padding-inline: 8px;
    font-size: 11px;
  }

  .cub-pack-home-content {
    width: min(calc(100% - 50px), 1040px);
  }

  .cub-pack-home-welcome {
    grid-template-columns: minmax(0, 0.9fr) minmax(350px, 1.1fr);
    gap: 38px;
  }
}

@media (max-width: 940px) {
  .cub-pack-page .site-header {
    min-height: 62px;
    padding-inline: 22px;
  }

  .cub-pack-page .menu-toggle {
    margin-left: auto;
  }

  .cub-pack-hero,
  .cub-pack-hero-inner,
  .cub-pack-identity {
    min-height: 220px;
  }

  .cub-pack-hero {
    background-position: 56% center;
  }

  .cub-pack-identity {
    width: 59%;
  }

  .cub-pack-home-navigation-inner {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
  }

  .cub-pack-home-navigation a {
    flex: 0 0 auto;
    min-height: 52px;
    padding-inline: 18px;
    font-size: 12px;
  }

  .cub-pack-home-welcome {
    grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
    gap: 32px;
  }

  .cub-pack-home-information-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(250px, 0.85fr);
  }

  .cub-pack-home-footer {
    min-height: clamp(170px, 23vw, 230px);
  }
}

@media (max-width: 760px) {
  .cub-pack-home-footer {
    --cub-footer-bottom-crop: clamp(18px, 3vw, 28px);
    min-height: clamp(110px, 28vw, 220px);
  }

  .cub-pack-hero {
    min-height: 244px;
    background-position: 66% center;
  }

  .cub-pack-hero::after {
    background:
      linear-gradient(90deg, rgba(6, 24, 39, 0.18), rgba(6, 24, 39, 0.24)),
      linear-gradient(180deg, rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.12));
  }

  .cub-pack-hero-inner {
    width: min(calc(100% - 40px), 680px);
    min-height: 244px;
  }

  .cub-pack-identity {
    width: 100%;
    min-height: 244px;
    justify-content: center;
  }

  .cub-pack-unit-lockup {
    gap: 7px;
    padding-right: 18px;
  }

  .cub-pack-identity-copy h1 {
    white-space: normal;
  }

  .cub-pack-home-content {
    width: min(calc(100% - 40px), 680px);
    padding-top: 34px;
  }

  .cub-pack-home-welcome {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .cub-pack-home-welcome-copy p {
    max-width: none;
  }

  .cub-pack-home-welcome-figure {
    aspect-ratio: 16 / 9;
  }

  .cub-pack-home-divider {
    margin-top: 38px;
  }

  .cub-pack-home-information-grid {
    grid-template-columns: 1fr;
  }

  .cub-pack-home-events {
    padding-right: 0;
  }

  .cub-pack-home-glance {
    margin-top: 36px;
    padding: 31px 0 0;
    border-top: 1px solid rgba(137, 123, 92, 0.48);
    border-left: 0;
  }

  .cub-pack-home-glance-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 24px;
  }

  .cub-pack-home-quote {
    right: 20px;
    bottom: clamp(42px, 7vw, 58px);
    left: 20px;
    width: auto;
    max-width: none;
    transform: none;
  }
}

@media (max-width: 520px) {
  .cub-pack-home-content {
    width: min(calc(100% - 30px), 490px);
  }

  .cub-pack-home-welcome-copy h2 {
    font-size: 29px;
  }

  .cub-pack-home-event-item {
    grid-template-columns: 59px minmax(0, 1fr) 18px;
    gap: 11px;
    min-height: 88px;
  }

  .cub-pack-home-event-date {
    width: 55px;
  }

  .cub-pack-home-event-day {
    font-size: 22px;
  }

  .cub-pack-home-event-mark {
    width: 18px;
    font-size: 15px;
  }

  .cub-pack-home-glance-list {
    grid-template-columns: 1fr;
  }

  .cub-pack-home-quote {
    right: 20px;
    bottom: 38px;
    left: 20px;
    width: auto;
    transform: none;
  }
}

@media (max-width: 430px) {
  .cub-pack-hero,
  .cub-pack-hero-inner,
  .cub-pack-identity {
    min-height: 226px;
  }

  .cub-pack-hero-inner {
    width: min(calc(100% - 28px), 390px);
  }

  .cub-pack-identity {
    gap: 14px;
  }

  .cub-pack-unit-lockup {
    gap: 5px;
    padding-right: 13px;
  }

  .cub-pack-identity-mark {
    width: 42px;
  }

  .cub-pack-identity-copy h1 {
    font-size: 30px;
  }

  .cub-pack-mountain-accent {
    width: 215px;
    margin-top: 7px;
  }

  .cub-pack-identity-copy p {
    font-size: 11px;
  }

  .cub-pack-home-navigation a {
    padding-inline: 15px;
  }

  .cub-pack-home-content {
    width: min(calc(100% - 26px), 400px);
  }

  .cub-pack-home-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .cub-pack-home-event-item {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .cub-pack-home-event-mark {
    display: none;
  }

  .cub-pack-home-quote {
    right: 18px;
    bottom: 32px;
    left: 18px;
    width: auto;
    transform: none;
  }

  .cub-pack-home-quote p {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cub-pack-home-navigation a::after,
  .cub-pack-home-primary-button,
  .cub-pack-home-quote p,
  .cub-pack-home-quote footer {
    transition: none;
  }
}

/* ==================================================
   CUB PACK DETAIL PAGE SHELL

   Mirrors the Scout Troop detail-page architecture while keeping the
   existing Cub Pack navy/gold visual system. These selectors are additive
   to the current Cub Pack stylesheet and do not change the landing page.
   ================================================== */

.cub-pack-page .site-shell {
  background-color: var(--cub-paper);
}

.cub-pack-layout {
  display: grid;
  grid-template-columns: clamp(226px, 21.5vw, 258px) minmax(0, 1fr);
  align-items: stretch;
  min-height: 900px;
  background-color: var(--cub-paper);
  background-image: url("../images/ui/paper-texture.png");
  background-repeat: repeat;
  background-size: 256px 256px;
}

.cub-pack-sidebar {
  position: relative;
  z-index: 3;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--cub-paper-deep);
  border-right: 1px solid rgba(133, 120, 91, 0.36);
  box-shadow: 6px 0 14px rgba(80, 66, 43, 0.06);
}


.cub-pack-sidebar-mountain {
  flex: 0 0 auto;
  overflow: hidden;
  padding-top: 7px;
  background: var(--cub-paper-deep);
}

.cub-pack-sidebar-mountain img {
  width: calc(100% + 4px);
  max-width: none;
  height: auto;
  margin: 0 -2px -1px;
}

.cub-pack-section-navigation {
  display: grid;
  flex: 0 0 auto;
  padding: 10px 0 0;
}

.cub-pack-section-navigation a {
  position: relative;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 11px;
  align-items: center;
  min-height: 51px;
  padding: 9px 18px 9px 20px;
  color: #273646;
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.cub-pack-section-navigation a::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 4px;
  background: var(--cub-gold);
  opacity: 0;
  transition: opacity 160ms ease;
}

.cub-pack-section-navigation svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.cub-pack-section-navigation a:hover,
.cub-pack-section-navigation a:focus-visible,
.cub-pack-section-navigation a.is-current {
  color: #fff8e6;
  background: linear-gradient(90deg, var(--cub-navy-800), var(--cub-navy-900));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.cub-pack-section-navigation a:hover::before,
.cub-pack-section-navigation a:focus-visible::before,
.cub-pack-section-navigation a.is-current::before {
  opacity: 1;
}

.cub-pack-motto-card {
  position: relative;
  z-index: 2;
  margin: 76px 16px 28px;
  padding: 19px 18px 21px;
  color: #f7edd4;
  background:
    radial-gradient(circle at 20% 0%, rgba(88, 136, 184, 0.24), transparent 42%),
    linear-gradient(145deg, var(--cub-navy-850), var(--cub-navy-975) 88%);
  border: 1px solid #a98a42;
  border-radius: 6px;
  box-shadow:
    0 5px 10px rgba(31, 38, 46, 0.25),
    inset 0 0 0 2px rgba(255, 255, 255, 0.06);
  text-align: center;
}

.cub-pack-motto-card h2 {
  margin: 0 0 12px;
  color: #fff8e9;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.1vw, 29px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}

.cub-pack-motto-card p {
  margin: 0;
  color: var(--cub-gold-pale);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(17px, 1.5vw, 21px);
  font-style: italic;
  font-weight: 700;
  line-height: 1.4;
}

.cub-pack-sidebar-forest {
  margin-top: auto;
  overflow: hidden;
  background: var(--cub-paper-deep);
}

.cub-pack-sidebar-forest img {
  width: calc(100% + 4px);
  max-width: none;
  height: auto;
  margin: -1px -2px -3px;
}

/* ==================================================
   CUB PACK ADVANCEMENTS PAGE
   ================================================== */

.cub-pack-advancements-page .cub-pack-layout {
  min-height: 1000px;
}

.cub-pack-advancements {
  min-width: 0;
  padding: clamp(40px, 4.1vw, 54px) clamp(28px, 4vw, 50px) 62px;
  color: var(--cub-ink);
}

.cub-pack-advancements-introduction {
  margin-bottom: clamp(24px, 2.8vw, 34px);
}

.cub-pack-advancements-introduction h2 {
  margin: 0 0 8px;
  color: #102941;
  font-size: clamp(31px, 3.1vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.cub-pack-advancements-introduction p {
  margin: 0;
  color: #394755;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(15px, 1.42vw, 18px);
  font-weight: 500;
  line-height: 1.45;
}

.cub-pack-advancement-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(210px, 0.75fr);
  gap: clamp(20px, 3vw, 38px);
  align-items: center;
  margin-bottom: clamp(36px, 4vw, 48px);
  padding: clamp(22px, 2.7vw, 32px);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(225, 212, 181, 0.09)),
    rgba(247, 242, 230, 0.7);
  border: 1px solid #b9ae92;
  border-left: 5px solid var(--cub-gold);
  border-radius: 9px;
  box-shadow:
    0 3px 0 rgba(77, 60, 35, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.64);
}

.cub-pack-advancement-kicker {
  display: block;
  margin-bottom: 7px;
  color: #8d6921;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.cub-pack-advancement-summary h3 {
  margin: 0 0 9px;
  color: #183450;
  font-size: clamp(20px, 2.05vw, 27px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.cub-pack-advancement-summary p {
  margin: 0;
  color: #4a5764;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.55;
}

.cub-pack-advancement-formula {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #fff8e7;
  font-family: "Helvetica Neue", Arial, sans-serif;
  text-align: center;
}

.cub-pack-advancement-formula span {
  display: grid;
  min-width: 88px;
  min-height: 88px;
  place-content: center;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(45, 91, 133, 0.34), rgba(0, 0, 0, 0.08)),
    var(--cub-navy-900);
  border: 1px solid #9a7b32;
  border-radius: 50%;
  box-shadow:
    0 5px 10px rgba(28, 35, 43, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 10px;
  font-weight: 750;
  line-height: 1.2;
  text-transform: uppercase;
}

.cub-pack-advancement-formula strong {
  display: block;
  color: var(--cub-gold-light);
  font-size: 27px;
  line-height: 1;
}

.cub-pack-advancement-formula b {
  color: #9a7627;
  font-size: 24px;
}

.cub-pack-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 14px;
}

.cub-pack-section-heading h3 {
  margin: 0 0 5px;
  color: #173854;
  font-size: clamp(17px, 1.65vw, 21px);
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.1;
  text-transform: uppercase;
}

.cub-pack-section-heading p {
  margin: 0;
  color: #53606d;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(11px, 1.05vw, 13px);
  line-height: 1.45;
}

.cub-pack-rank-overview {
  margin-bottom: clamp(42px, 4.8vw, 58px);
}

.cub-pack-rank-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(10px, 1.4vw, 18px);
}

.cub-pack-rank-card {
  --rank-color: var(--cub-navy-800);
  --rank-ink: #fff;
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 5px;
  padding: 12px 7px 13px;
  color: #1d2d3d;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--rank-color) 13%, white), rgba(255, 255, 255, 0.24)),
    rgba(247, 242, 230, 0.74);
  border: 1px solid #bdb298;
  border-top: 5px solid var(--rank-color);
  border-radius: 8px;
  box-shadow:
    0 2px 0 rgba(77, 60, 35, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  text-align: center;
  text-decoration: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.rank-lion { --rank-color: #e8ad19; --rank-ink: #29333d; }
.rank-tiger { --rank-color: #ec7b28; --rank-ink: #fff; }
.rank-wolf { --rank-color: #df3836; --rank-ink: #fff; }
.rank-bear { --rank-color: #77b7db; --rank-ink: #183047; }
.rank-webelos { --rank-color: #819c54; --rank-ink: #fff; }
.rank-aol { --rank-color: #c8bba9; --rank-ink: #25374a; }

.cub-pack-rank-badge {
  display: grid;
  width: clamp(58px, 6vw, 74px);
  height: clamp(58px, 6vw, 74px);
  place-items: center;
  color: var(--rank-ink);
  background: var(--rank-color);
  border: 3px solid rgba(255, 255, 255, 0.76);
  border-radius: 18px;
  box-shadow:
    0 4px 8px rgba(49, 39, 28, 0.18),
    inset 0 0 0 1px rgba(53, 46, 31, 0.2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.4vw, 31px);
  font-weight: 700;
  transform: rotate(45deg);
}

.cub-pack-rank-badge::first-letter {
  transform: rotate(-45deg);
}

.cub-pack-rank-card .cub-pack-rank-badge,
.cub-pack-adventure-card .cub-pack-rank-badge {
  line-height: 1;
}

.cub-pack-rank-card .cub-pack-rank-badge {
  text-indent: 0;
}

.cub-pack-rank-card .cub-pack-rank-badge,
.cub-pack-adventure-card .cub-pack-rank-badge {
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.cub-pack-rank-card .cub-pack-rank-badge {
  transform: rotate(45deg);
}

.cub-pack-rank-card .cub-pack-rank-badge::before,
.cub-pack-adventure-card .cub-pack-rank-badge::before {
  content: attr(aria-label);
}

.cub-pack-rank-name {
  margin-top: 7px;
  color: #173047;
  font-size: clamp(12px, 1.18vw, 15px);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.12;
  text-transform: uppercase;
}

.cub-pack-rank-grade,
.cub-pack-rank-link {
  color: #576573;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(10px, 0.9vw, 12px);
  line-height: 1.2;
}

.cub-pack-rank-grade {
  font-weight: 650;
}

.cub-pack-rank-link {
  color: #315875;
  font-weight: 750;
  text-transform: uppercase;
}

.cub-pack-rank-card:hover,
.cub-pack-rank-card:focus-visible {
  border-color: #9b824a;
  box-shadow: 0 9px 18px rgba(63, 47, 27, 0.16);
  transform: translateY(-4px);
}

.cub-pack-rank-card:hover .cub-pack-rank-link,
.cub-pack-rank-card:focus-visible .cub-pack-rank-link {
  color: #8a6721;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cub-pack-adventure-directory {
  display: grid;
  gap: 12px;
}

.cub-pack-adventure-card {
  --rank-color: var(--cub-navy-800);
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(220, 205, 176, 0.07)),
    rgba(247, 242, 230, 0.72);
  border: 1px solid #b8ad91;
  border-radius: 9px;
  box-shadow:
    0 2px 0 rgba(77, 60, 35, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.cub-pack-adventure-card > summary {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 72px;
  padding: 10px 16px;
  color: #173047;
  border-left: 5px solid var(--rank-color);
  cursor: pointer;
  list-style: none;
}

.cub-pack-adventure-card > summary::-webkit-details-marker {
  display: none;
}

.cub-pack-adventure-card > summary::marker {
  content: "";
}

.cub-pack-adventure-card > summary .cub-pack-rank-badge {
  width: 42px;
  height: 42px;
  border-width: 2px;
  border-radius: 10px;
  font-size: 17px;
}

.cub-pack-adventure-card > summary strong,
.cub-pack-adventure-card > summary small {
  display: block;
}

.cub-pack-adventure-card > summary strong {
  font-size: 17px;
  font-weight: 800;
  text-transform: uppercase;
}

.cub-pack-adventure-card > summary small {
  margin-top: 2px;
  color: #5e6a75;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 650;
}

.cub-pack-details-label {
  color: #315875;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cub-pack-details-label::after {
  content: " +";
}

.cub-pack-adventure-card[open] .cub-pack-details-label::after {
  content: " -";
}

.cub-pack-adventure-card[open] > summary {
  background: rgba(225, 210, 178, 0.24);
  border-bottom: 1px solid rgba(143, 130, 102, 0.38);
}

.cub-pack-adventure-card-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(22px, 3vw, 38px);
  padding: clamp(20px, 2.5vw, 30px);
}

.cub-pack-adventure-card-body h4 {
  margin: 0 0 11px;
  color: #173854;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.015em;
  line-height: 1.1;
  text-transform: uppercase;
}

.cub-pack-adventure-list,
.cub-pack-elective-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cub-pack-adventure-list {
  display: grid;
  gap: 7px;
}

.cub-pack-adventure-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
  min-height: 37px;
  padding: 8px 10px;
  background: rgba(250, 246, 236, 0.68);
  border: 1px solid rgba(154, 141, 110, 0.4);
  border-radius: 5px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.cub-pack-adventure-list strong {
  color: #233849;
  font-size: 12px;
  font-weight: 750;
}

.cub-pack-adventure-list span {
  color: #61707d;
  font-size: 10px;
  font-weight: 650;
  text-align: right;
}

.cub-pack-elective-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.cub-pack-elective-list li {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  color: #32495e;
  background: rgba(219, 228, 237, 0.56);
  border: 1px solid rgba(101, 126, 149, 0.28);
  border-radius: 99px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
}

.cub-pack-range-note {
  margin: 14px 0 0;
  padding: 9px 11px;
  color: #5a4a28;
  background: rgba(234, 211, 151, 0.28);
  border-left: 3px solid var(--cub-gold);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  line-height: 1.45;
}


@media (max-width: 1110px) {
  .cub-pack-layout {
    grid-template-columns: 224px minmax(0, 1fr);
  }

  .cub-pack-advancements {
    padding-inline: 34px;
  }

  .cub-pack-rank-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  .cub-pack-layout {
    display: block;
    min-height: 0;
  }

  .cub-pack-sidebar {
    display: block;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(133, 120, 91, 0.42);
    box-shadow: 0 5px 11px rgba(80, 66, 43, 0.08);
  }

  .cub-pack-sidebar-mountain,
  .cub-pack-motto-card,
  .cub-pack-sidebar-forest {
    display: none;
  }

  .cub-pack-section-navigation {
    display: flex;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0;
    scrollbar-width: thin;
  }

  .cub-pack-section-navigation a {
    grid-template-columns: 24px auto;
    flex: 0 0 auto;
    gap: 8px;
    min-height: 52px;
    padding: 10px 17px;
    font-size: 13px;
    white-space: nowrap;
  }

  .cub-pack-section-navigation a::before {
    top: auto;
    right: 10px;
    bottom: 0;
    left: 10px;
    width: auto;
    height: 3px;
  }

  .cub-pack-section-navigation svg {
    width: 21px;
    height: 21px;
  }

  .cub-pack-advancements {
    padding: 38px 32px 52px;
  }
}

@media (max-width: 760px) {
  .cub-pack-advancements {
    padding: 33px 22px 48px;
  }

  .cub-pack-advancement-summary {
    grid-template-columns: 1fr;
  }

  .cub-pack-advancement-formula {
    justify-content: flex-start;
  }

  .cub-pack-rank-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cub-pack-adventure-card-body {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .cub-pack-advancements {
    padding-inline: 17px;
  }

  .cub-pack-advancement-formula span {
    min-width: 78px;
    min-height: 78px;
  }

  .cub-pack-adventure-card > summary {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    padding-inline: 12px;
  }

  .cub-pack-details-label {
    display: none;
  }

  .cub-pack-adventure-list li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .cub-pack-adventure-list span {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .cub-pack-advancements-introduction h2 {
    font-size: 29px;
  }

  .cub-pack-rank-grid {
    gap: 10px;
  }

  .cub-pack-rank-card {
    padding-inline: 5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cub-pack-section-navigation a,
  .cub-pack-section-navigation a::before,
  .cub-pack-rank-card {
    transition: none;
  }
}

/* Rank badge letter counter-rotation. */
.cub-pack-rank-badge > span {
  display: block;
  transform: rotate(-45deg);
}

/* ==================================================
   CUB PACK ADVANCEMENTS - AUGUST 2026 REFINEMENTS

   These final overrides intentionally apply only to the Advancements detail
   page. They preserve the current Cub Pack landing-page hero sizing while
   matching this detail page to the Scout Troop detail-page hero geometry.
   ================================================== */

/* 1. Match the Scout Troop detail-page hero height. */
.cub-pack-advancements-page .cub-pack-hero,
.cub-pack-advancements-page .cub-pack-hero-inner,
.cub-pack-advancements-page .cub-pack-identity {
  min-height: 258px;
}

.cub-pack-advancements-page .cub-pack-identity {
  padding-block: 24px;
}

/* 2. Rank artwork is now a real image element so each rank can later point
      to its own PNG without changing the page structure. */
.cub-pack-adventure-card > summary {
  grid-template-columns: 54px minmax(0, 1fr) auto;
}

.cub-pack-rank-image {
  width: 46px;
  height: 46px;
  object-fit: contain;
  filter: drop-shadow(0 3px 3px rgba(48, 39, 29, 0.16));
}

/* The separate rank-card overview was removed, so the directory now starts
   directly with the renamed Cub Scout Ranks section. */
.cub-pack-adventure-guide {
  margin-top: 0;
}


@media (max-width: 1110px) {
  .cub-pack-advancements-page .cub-pack-hero,
  .cub-pack-advancements-page .cub-pack-hero-inner,
  .cub-pack-advancements-page .cub-pack-identity {
    min-height: 236px;
  }
}

@media (max-width: 940px) {
  .cub-pack-advancements-page .cub-pack-hero,
  .cub-pack-advancements-page .cub-pack-hero-inner,
  .cub-pack-advancements-page .cub-pack-identity {
    min-height: 220px;
  }
}

@media (max-width: 760px) {
  .cub-pack-advancements-page .cub-pack-hero,
  .cub-pack-advancements-page .cub-pack-hero-inner,
  .cub-pack-advancements-page .cub-pack-identity {
    min-height: 244px;
  }

  .cub-pack-adventure-card > summary {
    grid-template-columns: 50px minmax(0, 1fr) auto;
  }
}

@media (max-width: 520px) {
  .cub-pack-adventure-card > summary {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .cub-pack-rank-image {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 430px) {
  .cub-pack-advancements-page .cub-pack-hero,
  .cub-pack-advancements-page .cub-pack-hero-inner,
  .cub-pack-advancements-page .cub-pack-identity {
    min-height: 226px;
  }
}

/* ==================================================
   CUB PACK ADVANCEMENTS - ACCORDION + FOREST OVERLAY

   The lower-forest PNG is now expected to have transparency. It is layered
   over the existing sidebar paper rather than blended with a mask/gradient.
   Rank panels are enhanced by cub-pack-advancements.js so only one panel is
   open at a time and opening/closing receives a short motion treatment.
   ================================================== */

/* Transparent lower-forest artwork: no gradient, mask, or replacement
   background. The sidebar's existing paper remains visible through the PNG. */
.cub-pack-sidebar-forest {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 0;
  left: 0;
  margin: 0;
  overflow: visible;
  background: transparent;
  pointer-events: none;
}

.cub-pack-sidebar-forest img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  object-fit: contain;
  object-position: center bottom;
  -webkit-mask-image: none;
  mask-image: none;
  filter: none;
}

/* Keep navigation/motto content above the decorative forest overlay. */
.cub-pack-section-navigation,
.cub-pack-motto-card {
  position: relative;
  z-index: 2;
}

/* Small visual transitions complement the height animation performed by JS. */
.cub-pack-adventure-card {
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.cub-pack-adventure-card > summary {
  transition:
    background-color 220ms ease,
    border-color 220ms ease;
}

.cub-pack-adventure-card[open] {
  border-color: #a9966d;
  box-shadow:
    0 7px 16px rgba(63, 47, 27, 0.11),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.cub-pack-adventure-card-body {
  transform-origin: top center;
  will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
  .cub-pack-adventure-card,
  .cub-pack-adventure-card > summary {
    transition: none;
  }

  .cub-pack-adventure-card-body {
    will-change: auto;
  }
}


/* ==================================================
   CUB PACK UPCOMING EVENTS / GOOGLE CALENDAR PAGE

   Geometry mirrors the Scout Troop Events page. Cub Pack colors are applied
   independently and calendar data comes from the shared Scout Society config.
   ================================================== */

.cub-pack-events-page .cub-pack-layout {
  min-height: 880px;
}

.cub-pack-events {
  min-width: 0;
  padding: clamp(40px, 4.1vw, 54px) clamp(30px, 4.4vw, 55px) 54px;
  color: var(--cub-ink);
}

.cub-pack-events-introduction {
  margin-bottom: clamp(24px, 2.6vw, 32px);
}

.cub-pack-events-introduction h2 {
  margin: 0 0 8px;
  color: #102941;
  font-size: clamp(31px, 3.1vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.cub-pack-events-introduction p {
  margin: 0;
  color: #394755;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(15px, 1.42vw, 18px);
  font-weight: 500;
  line-height: 1.45;
}

.cub-pack-calendar-app {
  min-width: 0;
}

/* Month controls */

.cub-pack-calendar-toolbar {
  display: grid;
  grid-template-columns: minmax(72px, 1fr) auto minmax(126px, 1fr);
  gap: 16px;
  align-items: center;
  min-height: 54px;
  margin-bottom: 10px;
}

.cub-pack-calendar-month-heading {
  margin: 0;
  color: #172d42;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  text-align: center;
  text-transform: none;
  white-space: nowrap;
}

.cub-pack-calendar-toolbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(12px, 1.6vw, 20px);
}

.cub-pack-calendar-arrow,
.cub-pack-calendar-today {
  display: inline-grid;
  place-items: center;
  border: 0;
  cursor: pointer;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.cub-pack-calendar-arrow {
  width: 43px;
  height: 43px;
  padding: 9px;
  color: #294c69;
  background: transparent;
  border-radius: 50%;
}

.cub-pack-calendar-arrow svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.cub-pack-calendar-arrow:hover,
.cub-pack-calendar-arrow:focus-visible {
  color: #fff8e7;
  background: var(--cub-navy-800);
  transform: translateY(-1px);
}

.cub-pack-calendar-today {
  min-width: 100px;
  min-height: 40px;
  padding: 8px 16px;
  color: #fff8e5;
  background: linear-gradient(180deg, rgba(45, 91, 133, 0.34), rgba(0, 0, 0, 0.08)), var(--cub-navy-900);
  border: 1px solid #8c7131;
  border-radius: 5px;
  box-shadow: 0 3px 6px rgba(22, 30, 39, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.cub-pack-calendar-today:hover,
.cub-pack-calendar-today:focus-visible {
  color: #0b2239;
  background: var(--cub-gold-light);
  border-color: #9f7b2b;
  transform: translateY(-1px);
}

.cub-pack-calendar-arrow:disabled,
.cub-pack-calendar-today:disabled {
  cursor: wait;
  opacity: 0.5;
  transform: none;
}

/* Loading / connection status */

.cub-pack-calendar-status {
  min-height: 0;
  margin: 0;
  color: #405466;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.cub-pack-calendar-status[data-state="ready"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.cub-pack-calendar-status[data-state="loading"] {
  margin: -2px 0 8px;
  color: #49647b;
}

.cub-pack-calendar-status[data-state="setup"],
.cub-pack-calendar-status[data-state="error"] {
  margin: 0 0 12px;
  padding: 10px 12px;
  background: rgba(237, 222, 196, 0.72);
  border: 1px solid rgba(157, 132, 78, 0.55);
  border-radius: 5px;
}

.cub-pack-calendar-status[data-state="error"] {
  color: #642e1f;
  background: rgba(244, 220, 208, 0.72);
  border-color: rgba(153, 75, 53, 0.48);
}

/* Month grid */

.cub-pack-calendar-scroll {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border-radius: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(29, 69, 102, 0.58) rgba(222, 208, 179, 0.55);
}

.cub-pack-calendar-scroll:focus-visible {
  outline-offset: 5px;
}

.cub-pack-calendar-panel {
  min-width: 680px;
  overflow: hidden;
  background: rgba(249, 245, 234, 0.6);
  border: 1px solid #aaa188;
  border-radius: 8px;
  box-shadow: 0 2px 0 rgba(66, 52, 31, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.cub-pack-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-height: 40px;
  color: #fff9e8;
  background: linear-gradient(180deg, rgba(46, 90, 132, 0.36), rgba(0, 0, 0, 0.09)), var(--cub-navy-950);
  border-bottom: 1px solid #7d6a3c;
}

.cub-pack-calendar-weekdays span {
  display: grid;
  place-items: center;
  padding: 8px 4px;
  font-size: clamp(11px, 1.05vw, 14px);
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.cub-pack-calendar-grid {
  display: grid;
  background: rgba(134, 123, 96, 0.42);
  gap: 1px;
}

.cub-pack-calendar-week {
  position: relative;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-height: clamp(72px, 6.3vw, 84px);
  background: rgba(134, 123, 96, 0.42);
  gap: 1px;
}

.cub-pack-calendar-day {
  --calendar-bar-lanes: 0;
  position: relative;
  min-width: 0;
  min-height: clamp(72px, 6.3vw, 84px);
  overflow: hidden;
  padding: 5px 5px 7px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(228, 214, 184, 0.08)), rgba(248, 243, 231, 0.93);
}

.cub-pack-calendar-day.is-outside-month {
  color: #8b8b7c;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(225, 215, 193, 0.13)), rgba(240, 235, 222, 0.86);
}

.cub-pack-calendar-day.is-today {
  background: linear-gradient(180deg, rgba(225, 198, 118, 0.24), rgba(225, 198, 118, 0.07)), rgba(249, 244, 231, 0.98);
  box-shadow: inset 0 0 0 2px rgba(178, 138, 44, 0.6);
}

.cub-pack-calendar-date-number {
  position: relative;
  z-index: 4;
  display: block;
  color: #2c3945;
  font-size: clamp(10px, 0.98vw, 13px);
  font-weight: 800;
  line-height: 1;
  text-align: right;
}

.cub-pack-calendar-day.is-outside-month .cub-pack-calendar-date-number {
  color: #99998a;
}

.cub-pack-calendar-day.is-today .cub-pack-calendar-date-number {
  display: grid;
  width: 22px;
  height: 22px;
  margin: -2px -2px 0 auto;
  place-items: center;
  color: #fff8e8;
  background: var(--cub-navy-800);
  border-radius: 50%;
}

.cub-pack-calendar-day-events {
  position: relative;
  z-index: 3;
  display: grid;
  gap: 3px;
  padding-top: calc(17px + (var(--calendar-bar-lanes) * 22px));
}

/* All-day and multi-day events */

.cub-pack-calendar-event-bar {
  position: relative;
  z-index: 6;
  grid-column: var(--event-column) / span var(--event-span);
  grid-row: 1;
  align-self: start;
  min-width: 0;
  min-height: 22px;
  margin: calc(24px + (var(--event-lane) * 22px)) 2px 0;
  padding: 4px 8px 3px;
  overflow: hidden;
  color: #fff9e8;
  background: linear-gradient(180deg, rgba(79, 137, 188, 0.48), rgba(12, 57, 92, 0.12)), #2b628e;
  border: 1px solid rgba(21, 72, 108, 0.58);
  border-radius: 5px;
  box-shadow: 0 1px 2px rgba(30, 42, 54, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.16);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(10px, 0.96vw, 12px);
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cub-pack-calendar-event-bar.continues-before { margin-left: 0; border-left: 0; border-radius: 0 5px 5px 0; }
.cub-pack-calendar-event-bar.continues-after { margin-right: 0; border-right: 0; border-radius: 5px 0 0 5px; }
.cub-pack-calendar-event-bar.continues-before.continues-after { border-radius: 0; }

.cub-pack-calendar-event-bar:hover,
.cub-pack-calendar-event-bar:focus-visible {
  color: #0b2239;
  background: var(--cub-gold-light);
  border-color: #9a7730;
  text-decoration: none;
}

/* Timed events */

.cub-pack-calendar-timed-event {
  display: grid;
  min-width: 0;
  gap: 1px;
  padding: 3px 2px;
  color: #1d3042;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(9px, 0.9vw, 12px);
  font-weight: 700;
  line-height: 1.18;
  text-align: center;
  text-decoration: none;
  border-radius: 3px;
}

.cub-pack-calendar-timed-event-title,
.cub-pack-calendar-timed-event-time {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cub-pack-calendar-timed-event-time {
  font-weight: 800;
  white-space: nowrap;
}

.cub-pack-calendar-timed-event:hover,
.cub-pack-calendar-timed-event:focus-visible {
  color: #133d60;
  background: rgba(212, 167, 44, 0.24);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cub-pack-calendar-more-events {
  display: block;
  color: #466278;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

/* Highlight list */

.cub-pack-calendar-highlights {
  margin-top: clamp(24px, 2.8vw, 34px);
}

.cub-pack-calendar-highlights h3 {
  margin: 0 0 9px;
  color: #173854;
  font-size: clamp(15px, 1.52vw, 19px);
  font-weight: 800;
  letter-spacing: -0.015em;
  line-height: 1.1;
  text-transform: uppercase;
}

.cub-pack-calendar-highlight-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(147, 135, 105, 0.54);
}

.cub-pack-calendar-highlight {
  display: grid;
  grid-template-columns: minmax(105px, 0.3fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 42px;
  padding: 8px 18px;
  border-bottom: 1px solid rgba(147, 135, 105, 0.48);
}

.cub-pack-calendar-highlight-date {
  color: #2d4052;
  font-size: clamp(12px, 1.18vw, 15px);
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.cub-pack-calendar-highlight-detail {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-width: 0;
  align-items: baseline;
  gap: 16px;
  color: #2c3d4d;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(12px, 1.18vw, 15px);
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
}

.cub-pack-calendar-highlight-title { min-width: 0; }

.cub-pack-calendar-highlight-time {
  flex: 0 0 auto;
  color: #526b80;
  font-size: 0.9em;
  font-weight: 700;
  white-space: nowrap;
}

.cub-pack-calendar-highlight-detail:hover,
.cub-pack-calendar-highlight-detail:focus-visible {
  color: #1b567e;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cub-pack-calendar-highlight.is-empty {
  display: block;
  color: #596672;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-style: italic;
}

/* Full calendar link */

.cub-pack-calendar-full-link-wrap {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.cub-pack-calendar-full-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 25px;
  color: #fff8e5;
  background: linear-gradient(180deg, rgba(45, 91, 133, 0.34), rgba(0, 0, 0, 0.08)), var(--cub-navy-900);
  border: 1px solid #8c7131;
  border-radius: 5px;
  box-shadow: 0 3px 6px rgba(22, 30, 39, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 150ms ease, background-color 150ms ease, border-color 150ms ease, transform 150ms ease;
}

.cub-pack-calendar-full-link:hover,
.cub-pack-calendar-full-link:focus-visible {
  color: #0b2239;
  background: var(--cub-gold-light);
  border-color: #9f7b2b;
  transform: translateY(-2px);
}

.cub-pack-calendar-full-link.is-disabled {
  cursor: not-allowed;
  opacity: 0.55;
  pointer-events: none;
}

.cub-pack-calendar-noscript {
  margin: 18px 0 0;
  padding: 12px;
  color: #642e1f;
  background: rgba(244, 220, 208, 0.72);
  border: 1px solid rgba(153, 75, 53, 0.48);
  border-radius: 5px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

/* Responsive calendar layout */

@media (max-width: 1110px) {
  .cub-pack-events { padding-inline: 36px; }
  .cub-pack-calendar-highlight { padding-inline: 13px; }
}

@media (max-width: 940px) {
  .cub-pack-events-page .cub-pack-layout { min-height: 0; }
  .cub-pack-events { padding: 38px 32px 54px; }
  .cub-pack-calendar-week,
  .cub-pack-calendar-day { min-height: 82px; }
}

@media (max-width: 760px) {
  .cub-pack-events { padding: 33px 22px 48px; }
  .cub-pack-events-introduction { margin-bottom: 20px; }
  .cub-pack-calendar-toolbar { grid-template-columns: 48px minmax(0, 1fr) auto; gap: 8px; }
  .cub-pack-calendar-toolbar-actions { gap: 6px; }
  .cub-pack-calendar-arrow { width: 40px; height: 40px; }
  .cub-pack-calendar-today { min-width: 78px; min-height: 38px; padding-inline: 11px; font-size: 11px; }
  .cub-pack-calendar-panel { min-width: 650px; }
  .cub-pack-calendar-highlight { grid-template-columns: 94px minmax(0, 1fr); gap: 12px; padding-inline: 8px; }
}

@media (max-width: 520px) {
  .cub-pack-events { padding-inline: 17px; }
  .cub-pack-calendar-toolbar { grid-template-columns: 42px minmax(0, 1fr) 42px; margin-bottom: 12px; }
  .cub-pack-calendar-month-heading { font-size: 22px; }
  .cub-pack-calendar-toolbar-actions { display: contents; }
  .cub-pack-calendar-toolbar-actions .cub-pack-calendar-arrow { grid-column: 3; grid-row: 1; }
  .cub-pack-calendar-today { grid-column: 1 / -1; grid-row: 2; justify-self: center; min-width: 100px; }
  .cub-pack-calendar-highlight { grid-template-columns: 1fr; gap: 3px; padding-block: 10px; }
  .cub-pack-calendar-highlight-detail { grid-template-columns: 1fr; gap: 2px; }
}

@media (max-width: 430px) {
  .cub-pack-events-introduction h2 { font-size: 29px; }
  .cub-pack-calendar-panel { min-width: 620px; }
}

@media (prefers-reduced-motion: reduce) {
  .cub-pack-calendar-arrow,
  .cub-pack-calendar-today,
  .cub-pack-calendar-event-bar,
  .cub-pack-calendar-timed-event,
  .cub-pack-calendar-full-link {
    transition: none;
  }
}

/* ==================================================
   CUB PACK FORMS & DOCUMENTS PAGE

   Mirrors the Scout Troop Forms & Documents architecture while keeping
   Cub Pack navy/gold colors and the shared Cub Pack detail-page shell.
   ================================================== */

.cub-pack-forms-page .cub-pack-layout {
  min-height: 900px;
}

.cub-pack-forms {
  min-width: 0;
  padding: clamp(40px, 4.1vw, 54px) clamp(30px, 4.4vw, 55px) 48px;
  color: var(--cub-ink);
}

.cub-pack-forms-introduction {
  margin-bottom: clamp(25px, 2.8vw, 34px);
}

.cub-pack-forms-introduction h2 {
  margin: 0 0 8px;
  color: #102941;
  font-size: clamp(31px, 3.1vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.cub-pack-forms-introduction p {
  margin: 0;
  color: #394755;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(15px, 1.42vw, 18px);
  font-weight: 500;
  line-height: 1.45;
}

.cub-pack-download-status {
  margin: 0 0 13px;
  color: #38536a;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.cub-pack-download-status[data-state="ready"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.cub-pack-download-status[data-state="warning"],
.cub-pack-download-status[data-state="error"] {
  padding: 10px 12px;
  background: rgba(237, 222, 196, 0.74);
  border: 1px solid rgba(157, 132, 78, 0.55);
  border-radius: 5px;
}

.cub-pack-download-status[data-state="error"] {
  color: #642e1f;
  background: rgba(244, 220, 208, 0.74);
  border-color: rgba(153, 75, 53, 0.48);
}

.cub-pack-download-groups {
  display: grid;
  gap: clamp(28px, 3vw, 38px);
}

.cub-pack-download-group h3 {
  margin: 0 0 9px;
  color: #173854;
  font-size: clamp(16px, 1.58vw, 20px);
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.1;
  text-transform: uppercase;
}

.cub-pack-download-list {
  margin: 0;
  padding: 0;
  overflow: hidden;
  list-style: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(220, 205, 176, 0.07)),
    rgba(247, 242, 230, 0.58);
  border: 1px solid #b9ae92;
  border-radius: 9px;
  box-shadow:
    0 2px 0 rgba(77, 60, 35, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.cub-pack-download-item {
  display: grid;
  grid-template-columns: 45px minmax(0, 1fr) auto;
  gap: 13px;
  align-items: center;
  min-height: 66px;
  padding: 8px 15px;
}

.cub-pack-download-item + .cub-pack-download-item {
  border-top: 1px solid rgba(143, 130, 102, 0.32);
}

.cub-pack-file-icon {
  position: relative;
  display: grid;
  width: 36px;
  height: 43px;
  place-items: center;
  color: var(--cub-navy-850);
}

.cub-pack-file-icon svg {
  width: 30px;
  height: 35px;
  fill: rgba(255, 255, 255, 0.22);
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.cub-pack-download-list[data-document-list="documents"] .cub-pack-file-icon {
  color: #9e4d47;
}

.cub-pack-file-icon.file-type-doc,
.cub-pack-file-icon.file-type-docx {
  color: #375b74;
}

.cub-pack-file-icon.file-type-xls,
.cub-pack-file-icon.file-type-xlsx {
  color: #356b4b;
}

.cub-pack-file-icon.file-type-ppt,
.cub-pack-file-icon.file-type-pptx {
  color: #a85d35;
}

.cub-pack-file-icon.file-type-zip {
  color: #80663b;
}

.cub-pack-download-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.cub-pack-download-name {
  min-width: 0;
  color: #24384a;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(14px, 1.32vw, 17px);
  font-weight: 650;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.cub-pack-download-meta {
  color: #526171;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(10px, 0.98vw, 12px);
  font-weight: 600;
  line-height: 1.2;
}

.cub-pack-download-button {
  display: inline-flex;
  min-width: 112px;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 8px 13px;
  color: #fff8e6;
  background:
    linear-gradient(180deg, rgba(45, 91, 133, 0.35), rgba(0, 0, 0, 0.08)),
    var(--cub-navy-900);
  border: 1px solid #826f3a;
  border-radius: 5px;
  box-shadow:
    0 2px 4px rgba(38, 31, 19, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: clamp(10px, 0.96vw, 12px);
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.cub-pack-download-button:hover,
.cub-pack-download-button:focus-visible {
  color: #0b2239;
  background: var(--cub-gold-light);
  border-color: #9f7b2b;
  box-shadow: 0 4px 8px rgba(38, 31, 19, 0.2);
  transform: translateY(-1px);
}

.cub-pack-download-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: 0.58;
  pointer-events: none;
}

.cub-pack-download-item.is-empty,
.cub-pack-download-item.is-error {
  display: block;
  min-height: 58px;
  padding: 17px 18px;
  color: #596672;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  font-style: italic;
  line-height: 1.45;
}

.cub-pack-download-item.is-error {
  color: #642e1f;
}

.cub-pack-download-item.is-placeholder {
  pointer-events: none;
}

.cub-pack-download-item.is-placeholder .cub-pack-file-icon,
.cub-pack-download-placeholder-line,
.cub-pack-download-placeholder-button {
  background: rgba(158, 145, 116, 0.2);
  border-radius: 4px;
}

.cub-pack-download-placeholder-line {
  display: block;
  width: min(78%, 320px);
  height: 12px;
}

.cub-pack-download-placeholder-line.is-short {
  width: 92px;
  height: 9px;
}

.cub-pack-download-placeholder-button {
  width: 112px;
  height: 38px;
}

.cub-pack-forms-help {
  margin-top: clamp(34px, 4.2vw, 52px);
  color: #2b3b4a;
  text-align: center;
}

.cub-pack-forms-help p {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(12px, 1.15vw, 14px);
  line-height: 1.55;
}

.cub-pack-forms-help strong {
  font-weight: 700;
}

.cub-pack-download-noscript {
  margin: 18px 0 0;
  padding: 12px;
  color: #642e1f;
  background: rgba(244, 220, 208, 0.72);
  border: 1px solid rgba(153, 75, 53, 0.48);
  border-radius: 5px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

@media (max-width: 1110px) {
  .cub-pack-forms { padding-inline: 36px; }
  .cub-pack-download-item { padding-inline: 12px; }
}

@media (max-width: 940px) {
  .cub-pack-forms-page .cub-pack-layout { min-height: 0; }
  .cub-pack-forms { padding: 38px 32px 52px; }
}

@media (max-width: 760px) {
  .cub-pack-forms { padding: 33px 22px 46px; }
  .cub-pack-forms-introduction { margin-bottom: 23px; }
  .cub-pack-download-item {
    grid-template-columns: 40px minmax(0, 1fr) auto;
    gap: 10px;
    min-height: 64px;
    padding: 8px 10px;
  }
  .cub-pack-download-button,
  .cub-pack-download-placeholder-button {
    min-width: 96px;
    width: 96px;
  }
}

@media (max-width: 520px) {
  .cub-pack-forms { padding-inline: 17px; }
  .cub-pack-download-item {
    grid-template-columns: 38px minmax(0, 1fr);
    padding: 11px 10px 12px;
  }
  .cub-pack-download-button,
  .cub-pack-download-placeholder-button {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
    min-height: 38px;
  }
  .cub-pack-download-placeholder-button { margin-top: 2px; }
}

@media (max-width: 430px) {
  .cub-pack-forms-introduction h2 { font-size: 29px; }
  .cub-pack-download-group h3 { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .cub-pack-download-button { transition: none; }
}

/* ==================================================
   CUB PACK DENS PAGE

   Data-driven den directory based on the Scout Troop patrol-directory
   interaction pattern, restyled for the Cub Pack navy/gold system.
   ================================================== */

.cub-pack-dens-page .cub-pack-layout {
  min-height: 1000px;
}

.cub-pack-dens {
  min-width: 0;
  padding: clamp(40px, 4.1vw, 54px) clamp(28px, 4vw, 50px) 62px;
  color: var(--cub-ink);
}

.cub-pack-dens-introduction {
  margin-bottom: clamp(25px, 3vw, 36px);
}

.cub-pack-dens-introduction h2 {
  margin: 0 0 8px;
  color: #102941;
  font-size: clamp(31px, 3.1vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.cub-pack-dens-introduction > p:not(.cub-pack-dens-instruction) {
  margin: 0;
  color: #394755;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(15px, 1.42vw, 18px);
  font-weight: 500;
  line-height: 1.45;
}

.cub-pack-dens-instruction {
  margin: 9px 0 0;
  color: #596774;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(11px, 1.02vw, 13px);
  line-height: 1.45;
}

.cub-pack-den-status {
  margin: 0 0 14px;
  color: #526171;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

.cub-pack-den-status[data-state="ready"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.cub-pack-den-status[data-state="error"] {
  padding: 10px 12px;
  color: #642e1f;
  background: rgba(244, 220, 208, 0.72);
  border: 1px solid rgba(153, 75, 53, 0.48);
  border-radius: 5px;
}

.cub-pack-den-directory {
  display: grid;
  gap: 14px;
}

.cub-pack-den-card {
  min-width: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.19), rgba(220, 205, 176, 0.06)),
    rgba(247, 242, 230, 0.78);
  border: 1px solid #b8ad91;
  border-radius: 9px;
  box-shadow:
    0 2px 0 rgba(77, 60, 35, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.cub-pack-den-card[open] {
  border-color: #9e8a5e;
  box-shadow:
    0 8px 18px rgba(63, 47, 27, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
}

.cub-pack-den-summary {
  position: relative;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) minmax(130px, 178px);
  gap: clamp(16px, 2.2vw, 28px);
  align-items: center;
  min-height: 128px;
  padding: 16px 18px 16px 20px;
  color: #173047;
  border-left: 5px solid var(--cub-gold);
  cursor: pointer;
  list-style: none;
  transition: background-color 180ms ease;
}

.cub-pack-den-summary::-webkit-details-marker {
  display: none;
}

.cub-pack-den-summary::marker {
  content: "";
}

.cub-pack-den-card[open] > .cub-pack-den-summary,
.cub-pack-den-summary:hover {
  background: rgba(225, 210, 178, 0.22);
}

.cub-pack-den-emblem-wrap {
  display: grid;
  width: 72px;
  height: 72px;
  place-items: center;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.18), transparent 42%),
    var(--cub-navy-900);
  border: 1px solid #a98a42;
  border-radius: 16px;
  box-shadow:
    0 4px 8px rgba(40, 34, 27, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transform: rotate(45deg);
}

.cub-pack-den-emblem {
  width: 52px;
  height: 52px;
  object-fit: contain;
  transform: rotate(-45deg);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.22));
}

.cub-pack-den-summary-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.cub-pack-den-name-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.cub-pack-den-name {
  color: #173047;
  font-size: clamp(19px, 1.85vw, 24px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.08;
  text-transform: uppercase;
}

.cub-pack-den-status-chip {
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 4px 8px;
  color: #604a17;
  background: rgba(231, 199, 106, 0.28);
  border: 1px solid rgba(170, 133, 43, 0.42);
  border-radius: 99px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.055em;
  line-height: 1;
  text-transform: uppercase;
}

.cub-pack-den-card[data-status="active"] .cub-pack-den-status-chip {
  color: #fff8e7;
  background: var(--cub-navy-850);
  border-color: #8b763c;
}

.cub-pack-den-card[data-status="inactive"] .cub-pack-den-status-chip {
  color: #5c6670;
  background: rgba(190, 187, 177, 0.35);
  border-color: rgba(124, 124, 120, 0.35);
}

.cub-pack-den-level {
  color: #8b6924;
  font-size: clamp(11px, 1.04vw, 13px);
  font-weight: 750;
  line-height: 1.25;
}

.cub-pack-den-meta {
  color: #5a6875;
  font-size: clamp(11px, 1.04vw, 13px);
  line-height: 1.3;
}

.cub-pack-den-meta strong {
  color: #2f4355;
  font-weight: 800;
}

.cub-pack-den-expand {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
  color: #315875;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.045em;
  line-height: 1;
  text-transform: uppercase;
}

.cub-pack-den-expand svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transition: transform 180ms ease;
}

.cub-pack-den-card[open] .cub-pack-den-expand svg {
  transform: rotate(180deg);
}

.cub-pack-den-visual {
  position: relative;
  display: grid;
  min-height: 92px;
  place-items: center;
  align-content: center;
  gap: 4px;
  overflow: hidden;
  padding: 10px;
  color: var(--cub-gold-pale);
  background:
    linear-gradient(145deg, rgba(40, 85, 126, 0.92), rgba(7, 26, 45, 0.98)),
    var(--cub-navy-950);
  border: 1px solid #9a7b32;
  border-radius: 7px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
}

.cub-pack-den-visual > img:not(:only-child) {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.cub-pack-den-visual > span {
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cub-pack-den-visual.has-photo {
  padding: 0;
}

.cub-pack-den-visual.has-photo img {
  width: 100%;
  height: 100%;
  min-height: 92px;
  object-fit: cover;
}

.cub-pack-den-expanded {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 2.6vw, 30px);
  background: rgba(242, 236, 221, 0.64);
  border-top: 1px solid rgba(143, 130, 102, 0.38);
}

.cub-pack-den-roster-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
}

.cub-pack-den-roster-heading h3 {
  margin: 0;
  color: #173854;
  font-size: clamp(17px, 1.7vw, 21px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.cub-pack-den-roster-heading > span {
  color: #6a7580;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
}

.cub-pack-den-people-section h4 {
  margin: 0 0 9px;
  color: #315875;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.cub-pack-den-roster {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.cub-pack-den-member {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-height: 41px;
  padding: 8px 10px;
  background: rgba(250, 246, 236, 0.76);
  border: 1px solid rgba(154, 141, 110, 0.4);
  border-radius: 5px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.cub-pack-den-member.is-leadership {
  border-left: 3px solid var(--cub-gold);
}

.cub-pack-den-member-name {
  min-width: 0;
  color: #24384a;
  font-size: 12px;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.cub-pack-den-member-role {
  color: #61707d;
  font-size: 10px;
  font-weight: 650;
  text-align: right;
}

.cub-pack-den-empty,
.cub-pack-den-privacy-note,
.cub-pack-den-note {
  margin: 0;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
}

.cub-pack-den-empty {
  padding: 14px 15px;
  color: #5d6872;
  background: rgba(248, 244, 234, 0.62);
  border: 1px dashed rgba(143, 130, 102, 0.48);
  border-radius: 5px;
  font-style: italic;
}

.cub-pack-den-privacy-note {
  color: #596773;
}

.cub-pack-den-note {
  color: #5b4d2e;
  padding-left: 11px;
  border-left: 3px solid rgba(212, 167, 44, 0.72);
}

.cub-pack-den-updated {
  margin: 12px 0 0;
  color: #6a7580;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  text-align: right;
}

.cub-pack-den-noscript {
  margin: 18px 0 0;
  padding: 12px;
  color: #642e1f;
  background: rgba(244, 220, 208, 0.72);
  border: 1px solid rgba(153, 75, 53, 0.48);
  border-radius: 5px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

.cub-pack-den-system {
  margin-top: clamp(34px, 4.2vw, 52px);
  overflow: hidden;
  background: rgba(247, 242, 230, 0.72);
  border: 1px solid #b8ad91;
  border-radius: 7px;
}

.cub-pack-den-system > summary {
  position: relative;
  padding: 14px 48px 14px 17px;
  color: #fff8e7;
  background:
    linear-gradient(180deg, rgba(45, 91, 133, 0.32), rgba(0, 0, 0, 0.08)),
    var(--cub-navy-900);
  cursor: pointer;
  list-style: none;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.cub-pack-den-system > summary::-webkit-details-marker {
  display: none;
}

.cub-pack-den-system > summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  color: var(--cub-gold-light);
  font-size: 20px;
  transform: translateY(-50%);
}

.cub-pack-den-system[open] > summary::after {
  content: "−";
}

.cub-pack-den-system-copy {
  padding: 20px 22px 22px;
}

.cub-pack-den-system-copy h3 {
  margin: 0 0 8px;
  color: #173854;
  font-size: 17px;
  font-weight: 800;
}

.cub-pack-den-system-copy p {
  margin: 8px 0 0;
  color: #4d5b68;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.55;
}

.cub-pack-den-system-copy code {
  color: #173854;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.95em;
}

@media (max-width: 1110px) {
  .cub-pack-dens {
    padding-inline: 36px;
  }

  .cub-pack-den-summary {
    grid-template-columns: 72px minmax(0, 1fr) 150px;
  }
}

@media (max-width: 940px) {
  .cub-pack-dens-page .cub-pack-layout {
    min-height: 0;
  }

  .cub-pack-dens {
    padding: 38px 32px 52px;
  }
}

@media (max-width: 760px) {
  .cub-pack-dens {
    padding: 33px 22px 46px;
  }

  .cub-pack-den-summary {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 15px;
    min-height: 112px;
    padding: 14px 15px;
  }

  .cub-pack-den-emblem-wrap {
    width: 62px;
    height: 62px;
  }

  .cub-pack-den-emblem {
    width: 44px;
    height: 44px;
  }

  .cub-pack-den-visual {
    display: none;
  }

  .cub-pack-den-roster {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .cub-pack-dens {
    padding-inline: 17px;
  }

  .cub-pack-den-summary {
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 13px;
    padding-inline: 12px;
  }

  .cub-pack-den-emblem-wrap {
    width: 50px;
    height: 50px;
    border-radius: 12px;
  }

  .cub-pack-den-emblem {
    width: 36px;
    height: 36px;
  }

  .cub-pack-den-member {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .cub-pack-den-member-role {
    text-align: left;
  }
}

@media (max-width: 430px) {
  .cub-pack-dens-introduction h2 {
    font-size: 29px;
  }

  .cub-pack-den-name-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .cub-pack-den-roster-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cub-pack-den-card,
  .cub-pack-den-summary,
  .cub-pack-den-expand svg {
    transition: none;
  }
}

/* ==================================================
   PHOTO + VIDEO GALLERY PAGE

   Mirrors the established Scout Troop gallery behavior while keeping all
   Cub Pack presentation inside css/cub-pack.css. Album and media visibility
   is controlled by event.json metadata through the shared Gallery service.
   ================================================== */

.cub-pack-gallery-page .cub-pack-layout {
  min-height: 900px;
}

.cub-pack-gallery [hidden],
.cub-pack-lightbox[hidden] {
  display: none !important;
}

.cub-pack-gallery {
  min-width: 0;
  padding: clamp(40px, 4.1vw, 54px) clamp(26px, 3.5vw, 43px) 58px;
  color: var(--cub-ink);
}

.cub-pack-gallery-introduction {
  margin-bottom: clamp(22px, 2.5vw, 29px);
}

.cub-pack-gallery-introduction h2 {
  margin: 0 0 8px;
  color: #102941;
  font-size: clamp(31px, 3.1vw, 42px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.cub-pack-gallery-introduction p {
  margin: 0;
  color: #354454;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(15px, 1.42vw, 18px);
  font-weight: 500;
  line-height: 1.45;
}

/* Category filters are generated from event.json values. */

.cub-pack-gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 24px;
}

.cub-pack-gallery-filter {
  min-height: 38px;
  padding: 8px 18px;
  color: #263b4f;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.28), rgba(222, 208, 178, 0.12)),
    rgba(247, 242, 230, 0.74);
  border: 1px solid #b9ae92;
  border-radius: 5px;
  box-shadow:
    0 1px 1px rgba(66, 52, 31, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.cub-pack-gallery-filter:hover,
.cub-pack-gallery-filter:focus-visible,
.cub-pack-gallery-filter.is-active {
  color: #fff8e6;
  background:
    linear-gradient(180deg, rgba(55, 94, 131, 0.34), rgba(0, 0, 0, 0.08)),
    var(--cub-navy-900);
  border-color: #9f8139;
  box-shadow:
    0 2px 4px rgba(38, 31, 19, 0.17),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.cub-pack-gallery-status {
  margin: 0 0 15px;
  color: #3e556a;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
}

.cub-pack-gallery-status[data-state="ready"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.cub-pack-gallery-status[data-state="warning"],
.cub-pack-gallery-status[data-state="error"] {
  padding: 10px 12px;
  background: rgba(237, 222, 196, 0.74);
  border: 1px solid rgba(157, 132, 78, 0.55);
  border-radius: 5px;
}

.cub-pack-gallery-status[data-state="error"] {
  color: #642e1f;
  background: rgba(244, 220, 208, 0.74);
  border-color: rgba(153, 75, 53, 0.48);
}

/* Album overview cards */

.cub-pack-album-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(13px, 1.45vw, 18px);
}

.cub-pack-album-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  color: #1d3041;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(224, 209, 177, 0.08)),
    rgba(247, 242, 230, 0.74);
  border: 1px solid #bdb298;
  border-radius: 8px;
  box-shadow:
    0 2px 0 rgba(77, 60, 35, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
  text-align: center;
  text-decoration: none;
  transform: translateZ(0);
  transition:
    border-color 170ms ease,
    box-shadow 170ms ease,
    transform 170ms ease;
}

.cub-pack-album-image-wrap {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #c9c4b3;
  border-bottom: 1px solid rgba(137, 124, 96, 0.42);
}

.cub-pack-album-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 240ms ease;
}

.cub-pack-album-count-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  min-width: 28px;
  padding: 4px 7px;
  color: #fff8e7;
  background: rgba(7, 26, 45, 0.9);
  border: 1px solid rgba(231, 193, 84, 0.68);
  border-radius: 99px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}

.cub-pack-album-copy {
  display: grid;
  min-height: 72px;
  align-content: center;
  gap: 4px;
  padding: 10px 8px 11px;
}

.cub-pack-album-title {
  color: #173047;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(12px, 1.12vw, 15px);
  font-weight: 750;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.cub-pack-album-date {
  color: #526273;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(10px, 0.92vw, 12px);
  font-weight: 650;
  line-height: 1.2;
}

.cub-pack-album-card:hover,
.cub-pack-album-card:focus-visible {
  color: #102941;
  border-color: #9e8448;
  box-shadow: 0 9px 18px rgba(63, 47, 27, 0.19);
  transform: translateY(-4px);
}

.cub-pack-album-card:hover .cub-pack-album-image-wrap img,
.cub-pack-album-card:focus-visible .cub-pack-album-image-wrap img {
  transform: scale(1.035);
}

.cub-pack-album-empty {
  grid-column: 1 / -1;
  min-height: 150px;
  padding: 34px 24px;
  color: #596978;
  background: rgba(247, 242, 230, 0.58);
  border: 1px dashed #b9ae92;
  border-radius: 8px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  text-align: center;
}

.cub-pack-album-card.is-placeholder {
  min-height: 228px;
  pointer-events: none;
}

.cub-pack-album-card.is-placeholder span {
  display: block;
  aspect-ratio: 4 / 3;
  background: rgba(147, 139, 119, 0.22);
}

.cub-pack-album-card.is-placeholder i,
.cub-pack-album-card.is-placeholder b {
  display: block;
  height: 11px;
  margin-inline: auto;
  background: rgba(147, 139, 119, 0.22);
  border-radius: 4px;
}

.cub-pack-album-card.is-placeholder i {
  width: 72%;
  margin-top: 18px;
}

.cub-pack-album-card.is-placeholder b {
  width: 42%;
  height: 9px;
  margin-top: 9px;
}

.cub-pack-gallery-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(31px, 3.6vw, 43px);
}

.cub-pack-gallery-more {
  min-height: 43px;
  padding: 10px 24px;
  color: #fff8e5;
  background:
    linear-gradient(180deg, rgba(55, 94, 131, 0.28), rgba(0, 0, 0, 0.1)),
    var(--cub-navy-900);
  border: 1px solid #9a7b34;
  border-radius: 5px;
  box-shadow:
    0 3px 6px rgba(38, 31, 19, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.cub-pack-gallery-more:hover,
.cub-pack-gallery-more:focus-visible {
  color: #102941;
  background: var(--cub-gold-light);
  border-color: #9f8240;
  transform: translateY(-2px);
}

/* Selected album */

.cub-pack-gallery-back {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 8px;
  margin: 0 0 22px;
  padding: 7px 13px;
  color: #294a66;
  background: rgba(247, 242, 230, 0.6);
  border: 1px solid #b9ae92;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.cub-pack-gallery-back svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.cub-pack-gallery-back:hover,
.cub-pack-gallery-back:focus-visible {
  color: #fff8e7;
  background: var(--cub-navy-900);
}

.cub-pack-gallery-album-header {
  margin-bottom: 26px;
}

.cub-pack-gallery-album-category {
  margin: 0 0 7px;
  color: #315875;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.cub-pack-gallery-album-header h2 {
  margin: 0 0 8px;
  color: #102941;
  font-size: clamp(29px, 3vw, 40px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-transform: uppercase;
}

.cub-pack-gallery-album-date,
.cub-pack-gallery-album-description,
.cub-pack-gallery-album-count {
  margin: 0;
  color: #3e4c59;
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
}

.cub-pack-gallery-album-date {
  font-size: 14px;
  font-weight: 700;
}

.cub-pack-gallery-album-description {
  max-width: 720px;
  margin-top: 8px;
  font-size: 15px;
}

.cub-pack-gallery-album-count {
  margin-top: 7px;
  color: #596978;
  font-size: 12px;
  font-weight: 650;
}

.cub-pack-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.cub-pack-photo-button {
  position: relative;
  display: block;
  min-width: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  padding: 0;
  background: #c9c4b3;
  border: 1px solid #aa9d7f;
  border-radius: 7px;
  box-shadow: 0 2px 5px rgba(51, 42, 27, 0.13);
  cursor: zoom-in;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.cub-pack-photo-button img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}

.cub-pack-photo-button:hover,
.cub-pack-photo-button:focus-visible {
  border-color: #927438;
  box-shadow: 0 7px 13px rgba(51, 42, 27, 0.22);
  transform: translateY(-3px);
}

.cub-pack-photo-button:hover img,
.cub-pack-photo-button:focus-visible img {
  transform: scale(1.035);
}

.cub-pack-gallery-noscript {
  margin: 18px 0 0;
  padding: 12px;
  color: #642e1f;
  background: rgba(244, 220, 208, 0.72);
  border: 1px solid rgba(153, 75, 53, 0.48);
  border-radius: 5px;
  font-family: "Helvetica Neue", Arial, sans-serif;
}

/* Mixed-media / video treatments */

.cub-pack-video-marker {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 6px;
  color: #fff8e7;
  background: radial-gradient(circle, rgba(5, 20, 35, 0.08) 0%, rgba(5, 20, 35, 0.24) 75%);
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.7);
  pointer-events: none;
}

.cub-pack-video-marker svg {
  width: clamp(38px, 4.5vw, 54px);
  height: clamp(38px, 4.5vw, 54px);
  fill: rgba(10, 42, 70, 0.9);
  stroke: var(--cub-gold-light);
  stroke-width: 1.4;
  filter: drop-shadow(0 3px 5px rgba(0, 0, 0, 0.38));
  transition: transform 160ms ease;
}

.cub-pack-video-marker svg path {
  fill: #fff8e7;
  stroke: none;
}

.cub-pack-video-marker > span {
  padding: 4px 8px;
  background: rgba(7, 26, 45, 0.8);
  border: 1px solid rgba(231, 193, 84, 0.58);
  border-radius: 99px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.07em;
  line-height: 1;
  text-transform: uppercase;
}

.cub-pack-album-image-wrap.is-video-placeholder,
.cub-pack-photo-button.is-video.is-video-placeholder {
  background-color: var(--cub-navy-900);
  background-image:
    linear-gradient(rgba(5, 24, 42, 0.38), rgba(5, 24, 42, 0.68)),
    url("../images/ui/cub-pack/cub-pack-hero-background-muted.png");
  background-position: center;
  background-size: cover;
}

.cub-pack-video-placeholder-label {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  color: var(--cub-gold-pale);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.cub-pack-photo-button.is-video {
  cursor: pointer;
}

.cub-pack-photo-button.is-video:hover .cub-pack-video-marker svg,
.cub-pack-photo-button.is-video:focus-visible .cub-pack-video-marker svg {
  transform: scale(1.08);
}

/* Accessible photo/video lightbox */

.cub-pack-lightbox {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  padding: 0;
  color: #fff8e8;
  background: transparent;
  border: 0;
}

.cub-pack-lightbox::backdrop {
  background: rgba(3, 12, 21, 0.92);
  backdrop-filter: blur(3px);
}

.cub-pack-lightbox[open],
.cub-pack-lightbox.is-open {
  display: grid;
  place-items: center;
}

.cub-pack-lightbox.is-open {
  position: fixed;
  z-index: 1000;
  inset: 0;
  background: rgba(3, 12, 21, 0.94);
}

body.has-gallery-lightbox {
  overflow: hidden;
}

.cub-pack-lightbox-frame {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  width: min(96vw, 1240px);
  min-height: 280px;
  align-items: center;
  gap: 12px;
  padding: 54px 18px 24px;
}

.cub-pack-lightbox-figure {
  display: grid;
  min-width: 0;
  justify-items: center;
  gap: 12px;
  margin: 0;
  grid-column: 2;
}

.cub-pack-lightbox-figure img,
.cub-pack-lightbox-figure video {
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border: 1px solid rgba(232, 211, 142, 0.56);
  border-radius: 5px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
}

.cub-pack-lightbox-figure img {
  max-height: 78vh;
}

.cub-pack-lightbox-figure video {
  display: block;
  max-height: 76vh;
  background: #000;
}

.cub-pack-lightbox-figure video[hidden] {
  display: none !important;
}

.cub-pack-lightbox-figure figcaption {
  display: grid;
  max-width: 820px;
  gap: 5px;
  color: #f8f0dc;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  text-align: center;
}

.cub-pack-lightbox-counter {
  color: var(--cub-gold-light);
  font-size: 12px;
  font-weight: 750;
}

.cub-pack-lightbox-video-note {
  max-width: 680px;
  margin: 0;
  padding: 10px 14px;
  color: #fff0ce;
  background: rgba(101, 44, 31, 0.82);
  border: 1px solid rgba(232, 169, 134, 0.65);
  border-radius: 5px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  text-align: center;
}

.cub-pack-lightbox-close,
.cub-pack-lightbox-arrow {
  display: grid;
  place-items: center;
  color: #fff8e7;
  background: rgba(10, 34, 57, 0.88);
  border: 1px solid rgba(231, 193, 84, 0.7);
  border-radius: 50%;
  cursor: pointer;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.cub-pack-lightbox-close:hover,
.cub-pack-lightbox-close:focus-visible,
.cub-pack-lightbox-arrow:hover,
.cub-pack-lightbox-arrow:focus-visible {
  color: #102941;
  background: var(--cub-gold-light);
  transform: scale(1.05);
}

.cub-pack-lightbox-close svg,
.cub-pack-lightbox-arrow svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.cub-pack-lightbox-close {
  position: absolute;
  z-index: 2;
  top: 5px;
  right: 18px;
  width: 43px;
  height: 43px;
}

.cub-pack-lightbox-arrow {
  width: 48px;
  height: 48px;
}

.cub-pack-lightbox-arrow.is-previous {
  grid-column: 1;
}

.cub-pack-lightbox-arrow.is-next {
  grid-column: 3;
}

/* Responsive gallery behavior follows the Scout Troop breakpoints. */

@media (max-width: 1110px) {
  .cub-pack-gallery {
    padding-inline: 34px;
  }

  .cub-pack-album-grid {
    gap: 13px;
  }
}

@media (max-width: 940px) {
  .cub-pack-gallery-page .cub-pack-layout {
    min-height: 0;
  }

  .cub-pack-gallery {
    padding: 38px 32px 52px;
  }

  .cub-pack-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .cub-pack-gallery {
    padding: 33px 22px 47px;
  }

  .cub-pack-gallery-introduction {
    margin-bottom: 21px;
  }

  .cub-pack-gallery-filters {
    flex-wrap: nowrap;
    width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 2px 2px 7px;
    scrollbar-width: thin;
  }

  .cub-pack-gallery-filter {
    flex: 0 0 auto;
  }

  .cub-pack-album-grid,
  .cub-pack-photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cub-pack-lightbox-frame {
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    width: 100vw;
    gap: 5px;
    padding-inline: 7px;
  }

  .cub-pack-lightbox-arrow {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 520px) {
  .cub-pack-gallery {
    padding-inline: 17px;
  }

  .cub-pack-album-copy {
    min-height: 78px;
  }

  .cub-pack-lightbox-frame {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    align-content: center;
    padding: 55px 12px 18px;
  }

  .cub-pack-lightbox-figure {
    grid-column: 1 / -1;
    grid-row: 1;
  }

  .cub-pack-lightbox-arrow {
    grid-row: 2;
    justify-self: center;
  }

  .cub-pack-lightbox-arrow.is-previous {
    grid-column: 1;
  }

  .cub-pack-lightbox-arrow.is-next {
    grid-column: 2;
  }

  .cub-pack-lightbox-figure img {
    max-height: 68vh;
  }

  .cub-pack-lightbox-figure video {
    max-height: 64vh;
  }
}

@media (max-width: 430px) {
  .cub-pack-gallery-introduction h2,
  .cub-pack-gallery-album-header h2 {
    font-size: 29px;
  }

  .cub-pack-album-grid {
    grid-template-columns: 1fr;
  }

  .cub-pack-album-card.is-placeholder {
    min-height: 260px;
  }

  .cub-pack-album-copy {
    min-height: 70px;
  }

  .cub-pack-photo-grid {
    gap: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cub-pack-gallery-filter,
  .cub-pack-album-card,
  .cub-pack-album-image-wrap img,
  .cub-pack-gallery-more,
  .cub-pack-photo-button,
  .cub-pack-photo-button img,
  .cub-pack-video-marker svg,
  .cub-pack-lightbox-close,
  .cub-pack-lightbox-arrow {
    transition: none;
  }
}

/* ==================================================
   CUB PACK LINKS PAGE

   Mirrors the established Scout Troop Links page architecture while using
   the Cub Pack navy/gold palette and the shared Cub detail-page shell.
   ================================================== */

.cub-pack-links-page .cub-pack-layout {
  min-height: 900px;
}

.cub-pack-links {
  min-width: 0;
  padding: clamp(43px, 4.3vw, 58px) clamp(34px, 4.6vw, 58px) 76px;
  color: var(--cub-ink);
}

.cub-pack-links-introduction {
  margin-bottom: clamp(31px, 3.5vw, 43px);
}

.cub-pack-links-introduction h2 {
  margin: 0 0 9px;
  color: #102941;
  font-size: clamp(34px, 3.3vw, 43px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.cub-pack-links-introduction p {
  margin: 0;
  color: #394755;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.45;
}

.cub-pack-resource-groups {
  display: grid;
  gap: clamp(30px, 3.65vw, 45px);
}

.cub-pack-resource-group h3 {
  margin: 0 0 10px;
  color: #173854;
  font-size: clamp(16px, 1.65vw, 21px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.cub-pack-resource-list {
  margin: 0;
  padding: 9px 11px;
  list-style: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(220, 205, 176, 0.08)),
    rgba(247, 242, 230, 0.58);
  border: 1px solid var(--cub-line);
  border-radius: 10px;
  box-shadow:
    0 2px 0 rgba(77, 60, 35, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.cub-pack-resource-list li + li {
  border-top: 1px solid rgba(143, 130, 102, 0.16);
}

.cub-pack-resource-list a {
  display: grid;
  grid-template-columns: minmax(220px, 0.94fr) minmax(270px, 1.06fr);
  gap: 26px;
  align-items: center;
  min-height: 47px;
  padding: 9px 7px;
  color: inherit;
  text-decoration: none;
  border-radius: 5px;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    transform 150ms ease;
}

.cub-pack-resource-name {
  color: #213548;
  font-size: clamp(14px, 1.35vw, 17px);
  font-weight: 700;
  line-height: 1.25;
}

.cub-pack-resource-url {
  min-width: 0;
  color: #315875;
  font-size: clamp(12px, 1.24vw, 15px);
  font-weight: 600;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.cub-pack-resource-list a:hover,
.cub-pack-resource-list a:focus-visible {
  color: #0c2d49;
  background: rgba(219, 201, 157, 0.3);
  transform: translateX(3px);
}

.cub-pack-resource-list a:hover .cub-pack-resource-url,
.cub-pack-resource-list a:focus-visible .cub-pack-resource-url {
  color: #174f78;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 1110px) {
  .cub-pack-resource-list a {
    grid-template-columns: minmax(190px, 0.92fr) minmax(235px, 1.08fr);
    gap: 18px;
  }
}

@media (max-width: 940px) {
  .cub-pack-links-page .cub-pack-layout {
    min-height: 0;
  }

  .cub-pack-links {
    padding-top: 40px;
  }
}

@media (max-width: 760px) {
  .cub-pack-links {
    padding: 34px 24px 58px;
  }

  .cub-pack-links-introduction {
    margin-bottom: 31px;
  }

  .cub-pack-resource-groups {
    gap: 31px;
  }

  .cub-pack-resource-list {
    padding: 6px 8px;
  }

  .cub-pack-resource-list a {
    grid-template-columns: 1fr;
    gap: 4px;
    min-height: 66px;
    padding: 10px 8px;
  }

  .cub-pack-resource-name {
    font-size: 16px;
  }

  .cub-pack-resource-url {
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  .cub-pack-links {
    padding: 30px 17px 50px;
  }

  .cub-pack-links-introduction h2 {
    font-size: 31px;
  }

  .cub-pack-resource-group h3 {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cub-pack-resource-list a {
    transition: none;
  }
}

/* ==================================================
   CUB PACK RECOGNITIONS / ARROW OF LIGHT HONOR ROLL

   Keeps the established Cub Pack detail-page shell and presents a compact,
   data-driven honor roll. Recipient updates are handled entirely by
   cub-pack-recognitions-data.js; no routine HTML edits are required.
   ================================================== */

.cub-pack-recognitions-page .cub-pack-layout {
  min-height: 900px;
}

.cub-pack-recognitions {
  min-width: 0;
  padding: clamp(43px, 4.3vw, 58px) clamp(34px, 4.6vw, 58px) 76px;
  color: var(--cub-ink);
}

.cub-pack-recognitions-introduction {
  margin-bottom: clamp(28px, 3.25vw, 40px);
}

.cub-pack-recognitions-introduction h2 {
  margin: 0 0 9px;
  color: #102941;
  font-size: clamp(34px, 3.3vw, 43px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
  text-transform: uppercase;
}

.cub-pack-recognitions-introduction p {
  margin: 0;
  color: #394755;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(15px, 1.45vw, 18px);
  line-height: 1.45;
}

.cub-pack-aol-banner {
  display: grid;
  grid-template-columns: clamp(92px, 9vw, 122px) minmax(0, 1fr);
  gap: clamp(20px, 2.7vw, 34px);
  align-items: center;
  margin-bottom: clamp(37px, 4.4vw, 53px);
  padding: clamp(22px, 2.8vw, 34px);
  overflow: hidden;
  color: #fff7e7;
  background:
    radial-gradient(circle at 14% 4%, rgba(76, 128, 177, 0.34), transparent 36%),
    linear-gradient(140deg, var(--cub-navy-850), var(--cub-navy-975) 84%);
  border: 1px solid #a98a42;
  border-left: 6px solid var(--cub-gold);
  border-radius: 10px;
  box-shadow:
    0 8px 18px rgba(31, 38, 46, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.cub-pack-aol-banner-mark {
  display: grid;
  width: clamp(88px, 8.4vw, 114px);
  aspect-ratio: 1;
  place-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(237, 201, 103, 0.5);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.04),
    0 5px 10px rgba(0, 0, 0, 0.16);
}

.cub-pack-aol-banner-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.28));
}

.cub-pack-aol-banner-kicker {
  display: block;
  margin-bottom: 7px;
  color: var(--cub-gold-light);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}

.cub-pack-aol-banner-copy h3 {
  margin: 0 0 9px;
  color: #fffaf0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(24px, 2.7vw, 34px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}

.cub-pack-aol-banner-copy p {
  max-width: 710px;
  margin: 0;
  color: #ece4d1;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(13px, 1.2vw, 15px);
  line-height: 1.55;
}

.cub-pack-aol-directory-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 15px;
}

.cub-pack-aol-directory-heading h3 {
  margin: 0 0 5px;
  color: #173854;
  font-size: clamp(18px, 1.8vw, 23px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-transform: uppercase;
}

.cub-pack-aol-directory-heading p {
  margin: 0;
  color: #53606d;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(11px, 1.05vw, 13px);
  line-height: 1.45;
}

.cub-pack-aol-count {
  flex: 0 0 auto;
  min-width: 105px;
  padding: 8px 12px;
  color: #14314a;
  background: rgba(234, 211, 151, 0.42);
  border: 1px solid rgba(157, 128, 62, 0.44);
  border-radius: 999px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.cub-pack-aol-status {
  margin: 0 0 15px;
  color: #5b6670;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.4;
}

.cub-pack-aol-status[data-state="ready"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.cub-pack-aol-status[data-state="error"] {
  padding: 10px 12px;
  color: #642e1f;
  background: rgba(244, 220, 208, 0.72);
  border: 1px solid rgba(153, 75, 53, 0.48);
  border-radius: 5px;
}

.cub-pack-aol-year-directory {
  display: grid;
  gap: clamp(31px, 3.8vw, 45px);
}

.cub-pack-aol-year-group {
  min-width: 0;
}

.cub-pack-aol-year-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 12px;
}

.cub-pack-aol-year-heading::after {
  content: "";
  height: 1px;
  flex: 1 1 auto;
  background: rgba(137, 123, 92, 0.46);
}

.cub-pack-aol-year-heading h4 {
  margin: 0;
  color: #163857;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.2vw, 29px);
  font-weight: 700;
  line-height: 1;
}

.cub-pack-aol-year-heading span {
  order: 3;
  color: #68727d;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.cub-pack-aol-recipient-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cub-pack-aol-recipient-card {
  display: grid;
  grid-template-columns: 47px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  min-height: 76px;
  padding: 12px 15px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(220, 205, 176, 0.06)),
    rgba(247, 242, 230, 0.7);
  border: 1px solid #b9ae92;
  border-left: 4px solid var(--cub-gold);
  border-radius: 8px;
  box-shadow:
    0 2px 0 rgba(77, 60, 35, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.cub-pack-aol-recipient-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--cub-gold-light);
  background: var(--cub-navy-900);
  border: 1px solid #a28236;
  border-radius: 50%;
  box-shadow:
    0 3px 6px rgba(35, 39, 43, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.cub-pack-aol-recipient-mark svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.65;
}

.cub-pack-aol-recipient-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.cub-pack-aol-recipient-name {
  min-width: 0;
  color: #18324a;
  font-size: clamp(14px, 1.38vw, 17px);
  font-weight: 800;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.cub-pack-aol-recipient-earned {
  color: #5a6773;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(11px, 1vw, 13px);
  font-weight: 600;
  line-height: 1.35;
}

.cub-pack-aol-empty {
  padding: clamp(24px, 3vw, 34px);
  color: #43515f;
  background: rgba(247, 242, 230, 0.7);
  border: 1px dashed #a99b7c;
  border-radius: 9px;
  text-align: center;
}

.cub-pack-aol-empty h4 {
  margin: 0 0 8px;
  color: #173854;
  font-size: 18px;
  font-weight: 800;
}

.cub-pack-aol-empty p {
  max-width: 650px;
  margin: 0 auto;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.55;
}

.cub-pack-aol-updated {
  margin: 20px 0 0;
  color: #69737d;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-style: italic;
  line-height: 1.4;
  text-align: right;
}

.cub-pack-aol-noscript {
  margin: 18px 0 0;
  padding: 10px 12px;
  color: #642e1f;
  background: rgba(244, 220, 208, 0.72);
  border: 1px solid rgba(153, 75, 53, 0.48);
  border-radius: 5px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
}

@media (max-width: 1110px) {
  .cub-pack-recognitions {
    padding-inline: 34px;
  }
}

@media (max-width: 940px) {
  .cub-pack-recognitions-page .cub-pack-layout {
    min-height: 0;
  }

  .cub-pack-recognitions {
    padding: 40px 32px 54px;
  }
}

@media (max-width: 760px) {
  .cub-pack-recognitions {
    padding: 34px 22px 52px;
  }

  .cub-pack-aol-banner {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 18px;
    padding: 21px;
  }

  .cub-pack-aol-banner-mark {
    width: 78px;
  }

  .cub-pack-aol-directory-heading {
    align-items: flex-start;
  }

  .cub-pack-aol-recipient-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .cub-pack-recognitions {
    padding-inline: 17px;
  }

  .cub-pack-aol-banner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .cub-pack-aol-banner-mark {
    width: 82px;
  }

  .cub-pack-aol-directory-heading {
    flex-direction: column;
    gap: 10px;
  }

  .cub-pack-aol-count {
    min-width: 0;
  }
}

@media (max-width: 430px) {
  .cub-pack-recognitions-introduction h2 {
    font-size: 31px;
  }

  .cub-pack-aol-recipient-card {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    padding-inline: 12px;
  }

  .cub-pack-aol-recipient-mark {
    width: 38px;
    height: 38px;
  }
}


/* ==================================================
   ARROW OF LIGHT HONOR ROLL - RECENT / FULL TOGGLE
   ================================================== */

.cub-pack-aol-view-all-wrap {
  display: flex;
  justify-content: center;
  margin-top: clamp(24px, 3vw, 34px);
}

.cub-pack-aol-view-all {
  min-width: 190px;
  min-height: 43px;
  padding: 10px 24px;
  color: #fff8e5;
  background:
    linear-gradient(180deg, rgba(55, 94, 131, 0.28), rgba(0, 0, 0, 0.1)),
    var(--cub-navy-900);
  border: 1px solid #9a7b34;
  border-radius: 5px;
  box-shadow:
    0 3px 6px rgba(38, 31, 19, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.cub-pack-aol-view-all:hover,
.cub-pack-aol-view-all:focus-visible {
  color: #102941;
  background: var(--cub-gold-light);
  border-color: #9f8240;
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .cub-pack-aol-view-all {
    transition: none;
  }
}

/* ==================================================
   MOBILE - COMPACT CUB PACK HERO
   Keep branding, remove photographic background
   ================================================== */

@media (max-width: 760px) {
  .cub-pack-hero {
    display: block;

    /* Remove the large photographic hero artwork */
    background-image: url("../images/ui/cub-pack/Cub_Pack_Topographic_Panel_920x414.png") !important;
    /* Use the Cub Pack section's normal dark background */
    background-repeat: no-repeat;
	background-position: center;
	background-size: cover;
	/* Compact mobile height similar to Scout Troop */
    min-height: 190px;
  }

  .cub-pack-hero-inner {
    min-height: 190px;
  }
}

/* ==================================================
   CUB PACK CALENDAR - MOBILE AGENDA ENHANCEMENT

   At 600px and below the seven-column month grid is replaced by a
   date-grouped agenda. The agenda uses the same loaded Google Calendar data
   and therefore does not create a second event source or API request.
   ================================================== */

.cub-pack-calendar-mobile-agenda {
  display: none;
}

.cub-pack-calendar-agenda-list {
  display: grid;
  gap: 15px;
}

.cub-pack-calendar-agenda-day {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.17), rgba(220, 205, 176, 0.07)),
    rgba(247, 242, 230, 0.72);
  border: 1px solid var(--cub-line);
  border-radius: 9px;
  box-shadow:
    0 2px 0 rgba(77, 60, 35, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.cub-pack-calendar-agenda-date {
  display: flex;
  min-height: 41px;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 8px 12px;
  color: #fff9e8;
  background:
    linear-gradient(180deg, rgba(41, 94, 57, 0.28), rgba(0, 0, 0, 0.08)),
    var(--cub-navy-950);
  border-bottom: 1px solid rgba(119, 106, 74, 0.72);
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1;
}

.cub-pack-calendar-agenda-day.is-today .cub-pack-calendar-agenda-date {
  color: #172536;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(196, 157, 67, 0.08)),
    var(--cub-gold-light);
}

.cub-pack-calendar-agenda-weekday {
  min-width: 34px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.cub-pack-calendar-agenda-date-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

.cub-pack-calendar-agenda-today-label {
  margin-left: auto;
  padding: 4px 7px;
  color: #fff9e8;
  background: var(--cub-navy-850);
  border: 1px solid rgba(16, 63, 37, 0.76);
  border-radius: 99px;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.cub-pack-calendar-agenda-events {
  margin: 0;
  padding: 0;
  list-style: none;
}

.cub-pack-calendar-agenda-events li + li {
  border-top: 1px solid rgba(143, 130, 102, 0.31);
}

.cub-pack-calendar-agenda-event {
  display: grid;
  min-width: 0;
  gap: 5px;
  padding: 13px 14px 14px;
  color: #172536;
  font-family: "Helvetica Neue", Arial, sans-serif;
  line-height: 1.35;
  text-decoration: none;
  transition: color 150ms ease, background-color 150ms ease, transform 150ms ease;
}

.cub-pack-calendar-agenda-event[href]:hover,
.cub-pack-calendar-agenda-event[href]:focus-visible {
  color: var(--cub-navy-950);
  background: rgba(219, 201, 157, 0.28);
  transform: translateX(2px);
}

.cub-pack-calendar-agenda-title {
  min-width: 0;
  color: #172536;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.cub-pack-calendar-agenda-meta {
  display: flex;
  min-width: 0;
  flex-wrap: wrap;
  gap: 5px 9px;
  align-items: baseline;
  color: #526171;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.4;
}

.cub-pack-calendar-agenda-meta span + span::before {
  content: "•";
  margin-right: 9px;
  color: #a27b22;
}

.cub-pack-calendar-agenda-time,
.cub-pack-calendar-agenda-range {
  color: var(--cub-navy-850);
  font-weight: 750;
}

.cub-pack-calendar-agenda-location {
  min-width: 0;
  overflow-wrap: anywhere;
}

.cub-pack-calendar-agenda-empty {
  margin: 0;
  padding: 20px 16px;
  color: #526171;
  background: rgba(247, 242, 230, 0.62);
  border: 1px dashed #b9ae92;
  border-radius: 8px;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  font-style: italic;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 600px) {
  .cub-pack-calendar-scroll {
    display: none;
  }

  .cub-pack-calendar-mobile-agenda {
    display: block;
    margin-top: 13px;
  }

  .cub-pack-calendar-highlights {
    display: none;
  }

  .cub-pack-calendar-full-link-wrap {
    margin-top: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cub-pack-calendar-agenda-event {
    transition: none;
  }
}


/* ==================================================
   CUB PACK PHOTO GALLERY - AUTOMATIC FIVE-YEAR ARCHIVE

   Current Gallery = current calendar year + prior 4 calendar years.
   Archive = anything older. The files never move; gallery-data.asp assigns
   each event to the appropriate view from its event.json date.
   ================================================== */

.cub-pack-gallery-window-note {
  margin-top: 7px !important;
  color: #66717c !important;
  font-size: clamp(11px, 1vw, 13px) !important;
  font-weight: 600 !important;
}

.cub-pack-gallery-current-link {
  display: inline-flex;
  margin-top: 14px;
  color: #315875;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.025em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.cub-pack-gallery-current-link:hover,
.cub-pack-gallery-current-link:focus-visible {
  color: #8d6921;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.cub-pack-gallery-archive-link-wrap {
  display: grid;
  justify-items: center;
  gap: 9px;
  margin-top: clamp(32px, 3.8vw, 46px);
  padding-top: clamp(24px, 2.8vw, 34px);
  border-top: 1px solid rgba(143, 130, 102, 0.42);
  text-align: center;
}

.cub-pack-gallery-archive-link-wrap[hidden] {
  display: none !important;
}

.cub-pack-gallery-archive-link-wrap.is-return-link {
  margin-top: 34px;
}

.cub-pack-gallery-archive-link-wrap p {
  max-width: 590px;
  margin: 0;
  color: #596978;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
}

.cub-pack-gallery-archive-link {
  display: inline-flex;
  min-height: 43px;
  align-items: center;
  justify-content: center;
  padding: 10px 24px;
  color: #fff8e5;
  background:
    linear-gradient(180deg, rgba(55, 94, 131, 0.28), rgba(0, 0, 0, 0.1)),
    var(--cub-navy-900);
  border: 1px solid #9a7b34;
  border-radius: 5px;
  box-shadow:
    0 3px 6px rgba(38, 31, 19, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.035em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    color 150ms ease,
    background-color 150ms ease,
    border-color 150ms ease,
    transform 150ms ease;
}

.cub-pack-gallery-archive-link:hover,
.cub-pack-gallery-archive-link:focus-visible {
  color: #102941;
  background: var(--cub-gold-light);
  border-color: #9f8240;
  transform: translateY(-2px);
}

/* Category controls remain on the left while the year selector gives older
   albums a fast navigation path without requiring a long scroll. */

.cub-pack-gallery-archive-controls {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.cub-pack-gallery-archive-controls .cub-pack-gallery-filters {
  flex: 1 1 auto;
  margin-bottom: 0;
}

.cub-pack-gallery-year-filter {
  display: grid;
  flex: 0 0 auto;
  gap: 5px;
  min-width: 130px;
  color: #315875;
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.cub-pack-gallery-year-filter[hidden] {
  display: none !important;
}

.cub-pack-gallery-year-filter select {
  min-height: 38px;
  padding: 7px 32px 7px 11px;
  color: #263b4f;
  background-color: rgba(247, 242, 230, 0.84);
  border: 1px solid #b9ae92;
  border-radius: 5px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
  font-family: "Helvetica Neue", Arial, sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.cub-pack-gallery-year-filter select:focus-visible {
  border-color: #9f8139;
}

/* Archived albums reuse the normal album-card component and are grouped by
   year so a decade or more of history remains easy to browse. */

.cub-pack-album-grid.is-archive-grouped {
  display: block;
}

.cub-pack-album-grid.is-archive-grouped > .cub-pack-album-empty {
  display: block;
}

.cub-pack-archive-year-section + .cub-pack-archive-year-section {
  margin-top: clamp(35px, 4vw, 48px);
}

.cub-pack-archive-year-heading {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 13px;
  color: #173854;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(22px, 2.3vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
}

.cub-pack-archive-year-heading::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: rgba(143, 130, 102, 0.48);
}

.cub-pack-archive-year-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(13px, 1.45vw, 18px);
}

@media (max-width: 940px) {
  .cub-pack-gallery-archive-controls {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .cub-pack-gallery-year-filter {
    width: min(220px, 100%);
  }

  .cub-pack-archive-year-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .cub-pack-gallery-archive-controls .cub-pack-gallery-filters {
    width: 100%;
  }

  .cub-pack-archive-year-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 430px) {
  .cub-pack-gallery-year-filter {
    width: 100%;
  }

  .cub-pack-archive-year-grid {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cub-pack-gallery-archive-link {
    transition: none;
  }
}
