/* 115th Ballinteer Scout Group – brand colours & typography */

:root {
  /* Brand palette (primary, secondary, neutrals, accents, gradients) */
  --brand-dark-blue: #014c61;
  --brand-dark-green: #00463f;
  --brand-cobalt: #077ab5;
  --brand-green: #389c51;
  --brand-teal: #05e1c7;
  --brand-navy: #0d2c3c;
  --brand-white: #ffffff;
  --brand-light-gray: #f3f3f3;
  --brand-slate: #262626;
  --brand-orange: #de7524;
  --brand-yellow: #fdb726;
  --gradient-dark: linear-gradient(90deg, #014c61 0%, #00463f 100%);
  --gradient-light: linear-gradient(90deg, #077ab5 0%, #05e1c7 100%);

  /* Semantic tokens (mapped to brand) */
  --green-900: var(--brand-dark-green);
  --green-800: #035548;
  --green-700: var(--brand-dark-blue);
  --green-500: var(--brand-green);
  --green-200: #d4e8e4;
  --green-50: var(--brand-light-gray);
  --cream: var(--brand-light-gray);
  --navy: var(--brand-navy);
  --text: var(--brand-slate);
  --text-muted: #4a4a4a;
  --white: var(--brand-white);
  --radius: 8px;
  --radius-lg: 12px;
  --shadow: 0 4px 20px rgba(13, 44, 60, 0.1);
  --shadow-strong: 0 8px 32px rgba(13, 44, 60, 0.14);
  --font-head: "Montserrat", system-ui, sans-serif;
  --font-body: "Noto Sans", system-ui, sans-serif;
  /* 115th Ballinteer logo stripes (meeting table badges) */
  --scout-red: #e53e28;
  --scout-yellow: #f5bd41;
  --scout-blue: #1d63b0;
}

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

html {
  scroll-behavior: smooth;
}

/* Anchor targets clear fixed header */
#when-we-meet,
#the-sections-heading {
  scroll-margin-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--cream);
}

.container {
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* Header – over hero, transparent until scroll (optional) or solid */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: linear-gradient(
    90deg,
    rgba(1, 76, 97, 0.98) 0%,
    rgba(0, 70, 63, 0.98) 100%
  );
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.875rem 1.25rem;
}

/* Logo – three bars only (no image / no text block underneath) */
.logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
  text-decoration: none;
}

.logo-bars {
  display: flex;
  width: 52px;
  height: 44px;
  border: 2px solid #0a0a0a;
  border-radius: 3px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.logo-link:hover .logo-bars {
  transform: scale(1.04);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.logo-bar {
  flex: 1;
  min-width: 0;
  border-right: 2px solid #0a0a0a;
}

.logo-bar:last-child {
  border-right: none;
}

.logo-bar--red {
  background: var(--scout-red);
}

.logo-bar--yellow {
  background: var(--scout-yellow);
}

.logo-bar--blue {
  background: var(--scout-blue);
}

.logo-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin-left: 0.65rem;
  line-height: 1.15;
}

.logo-title {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--white);
  letter-spacing: -0.02em;
}

.logo-sub {
  font-family: var(--font-head);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0.15rem;
}

@media (max-width: 380px) {
  .logo-sub {
    display: none;
  }
  .logo-title {
    font-size: 0.9rem;
  }
}

.nav {
  display: none;
}

.nav a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  font-weight: 500;
  padding: 0.35em 0.6em;
  border-radius: var(--radius);
  transition: background 0.15s, color 0.15s;
}

.nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.12);
}

.nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  font-weight: 700;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 1px;
  transition: transform 0.22s ease, opacity 0.18s ease;
}

/* Hamburger → X when menu is open */
.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 860px) {
  .nav {
    display: flex;
    gap: 0.25rem;
  }
  .menu-toggle {
    display: none;
  }
}

/* Hero – full-bleed forest background */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  padding: 6rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--brand-dark-green) url("assets/hero-forest.png") center center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(1, 76, 97, 0.55) 0%,
    rgba(0, 70, 63, 0.4) 45%,
    rgba(13, 44, 60, 0.75) 100%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

/* Hero title — text only (logo stays in header); two clean stacked lines */
.hero-title {
  font-family: var(--font-head);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4), 0 0 1px rgba(0, 0, 0, 0.5);
}

.hero-title-line1 {
  display: block;
  font-size: clamp(2.35rem, 7vw, 3.85rem);
  line-height: 1.08;
}

.hero-title-line2 {
  display: block;
  margin-top: 0.4rem;
  font-size: clamp(1rem, 2.8vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  opacity: 0.94;
}

.hero-tagline {
  font-family: var(--font-body);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 500;
  color: rgba(255, 255, 255, 0.95);
  margin: 0 0 1.75rem;
  max-width: 36ch;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.btn-primary {
  background: var(--brand-orange);
  color: var(--brand-white);
  box-shadow: 0 2px 12px rgba(222, 117, 36, 0.35);
}

.btn-primary:hover {
  background: #c9661f;
  color: var(--brand-white);
  transform: translateY(-1px);
}

/* Sections */
.section {
  padding: 3.5rem 0;
}

.section:nth-child(even) {
  background: var(--white);
  box-shadow: 0 -1px 0 var(--green-200);
}

.section-title {
  font-family: var(--font-head);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--brand-dark-blue);
  margin: 0 0 1rem;
  letter-spacing: -0.02em;
}

.section-title::after {
  content: "";
  display: block;
  width: 3rem;
  height: 3px;
  margin-top: 0.5rem;
  border-radius: 2px;
  background: var(--gradient-light);
}

.section-intro {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.section-content {
  max-width: 100%;
}

.section-content p,
.about-content p,
.meetings-content p {
  margin: 0 0 1rem;
  color: var(--text);
}

.section-content .lead {
  font-size: 1.125rem;
  color: var(--brand-dark-green);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.section-content .btn {
  margin-top: 0.5rem;
}

/* Adventure skills section */
.skills-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}

@media (min-width: 560px) {
  .skills-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.skills-item {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--green-200);
  box-shadow: var(--shadow);
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text);
}

.skills-icon {
  font-size: 1.35rem;
  line-height: 1;
  flex-shrink: 0;
}

.skills-footnote {
  margin: 1.5rem 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: var(--brand-dark-green);
  text-align: center;
}

/* Hire the den — location highlights for visiting groups */
.den-location-highlights {
  margin: 1rem 0 1.5rem;
  padding: 0 0 0 1.25rem;
}

.den-location-highlights li {
  margin-bottom: 0.6rem;
}

.den-location-highlights li::marker {
  color: var(--brand-cobalt);
}

.location-night-links {
  font-size: 0.9375rem;
  margin: 1rem 0 0;
  line-height: 1.6;
}

.location-night-links a {
  font-weight: 600;
  color: var(--brand-cobalt);
  text-decoration: none;
}

.location-night-links a:hover {
  text-decoration: underline;
}

.location-more {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Hire the den — calendar placeholder & enquiry form */
.den-subtitle {
  font-family: var(--font-head);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--brand-dark-blue);
  margin: 2rem 0 0.65rem;
}

.den-subtitle:first-of-type {
  margin-top: 1.5rem;
}

.den-calendar-shell {
  margin: 0.75rem 0 1.5rem;
}

.den-calendar-placeholder {
  padding: 1.25rem 1.5rem;
  background: var(--brand-light-gray);
  border: 2px dashed var(--green-200);
  border-radius: var(--radius-lg);
  font-size: 0.9375rem;
  color: var(--text);
}

.den-calendar-placeholder p {
  margin: 0;
}

/* When you paste a Google Calendar iframe, use e.g. .den-calendar-iframe { width:100%; min-height:400px; border:0; border-radius:var(--radius-lg); } */
.den-calendar-iframe {
  width: 100%;
  min-height: 420px;
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.den-form {
  margin-top: 0.5rem;
  max-width: 40rem;
}

.den-form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.den-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 560px) {
  .den-form-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .den-form-row--full {
    grid-column: 1 / -1;
  }

  .den-form-row--narrow {
    max-width: 100%;
  }
}

.den-form-row label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.den-form-row .req {
  color: var(--brand-orange);
}

.den-form-row .optional {
  font-weight: 400;
  color: var(--text-muted);
}

.den-form-row input,
.den-form-row select,
.den-form-row textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-body);
  font-size: 1rem;
  border: 1px solid var(--green-200);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--text);
}

.den-form-row input:focus,
.den-form-row select:focus,
.den-form-row textarea:focus {
  outline: 2px solid rgba(7, 122, 181, 0.35);
  border-color: var(--brand-cobalt);
}

.den-form-row textarea {
  resize: vertical;
  min-height: 5rem;
}

.den-form-privacy {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 1rem 0;
}

.den-form-submit {
  margin-top: 0.25rem;
}

.den-form-alt {
  margin: 1.5rem 0 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* History timeline */
.history-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.history-timeline::before {
  content: "";
  position: absolute;
  left: 0.55rem;
  top: 0.35rem;
  bottom: 0.35rem;
  width: 3px;
  background: var(--gradient-light);
  border-radius: 2px;
}

.history-item {
  position: relative;
  padding-left: 2.25rem;
  margin-bottom: 1.35rem;
}

.history-item:last-child {
  margin-bottom: 0;
}

.history-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35rem;
  width: 14px;
  height: 14px;
  background: var(--brand-white);
  border: 3px solid var(--brand-cobalt);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--brand-light-gray);
}

.history-date {
  display: block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--brand-dark-blue);
  margin-bottom: 0.35rem;
  letter-spacing: 0.02em;
}

.history-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
}

.history-message {
  margin-top: 2rem;
  padding: 1.35rem 1.5rem;
  background: linear-gradient(
    135deg,
    rgba(7, 122, 181, 0.08) 0%,
    rgba(5, 225, 199, 0.1) 100%
  );
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--brand-orange);
}

.history-message p {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text);
}

/* History archive grid (aerial photo, documents, newspaper cuttings) */
.history-archive {
  margin: 2.5rem 0;
}

.history-archive-title {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.85rem;
}

.history-archive-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .history-archive-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.history-archive-item {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--brand-light-gray);
}

.history-archive-item img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.history-archive-item figcaption {
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 0.4rem 0.6rem;
  font-style: italic;
  line-height: 1.4;
}

/* 50th Anniversary section */
.history-anniversary {
  margin-top: 2.5rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, rgba(1, 76, 97, 0.06) 0%, rgba(13, 44, 60, 0.04) 100%);
  border: 1px solid rgba(1, 76, 97, 0.2);
  border-radius: 12px;
}

.history-anniversary-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.history-anniversary-badge {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}

.history-anniversary-title {
  font-family: var(--font-head);
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--brand-teal);
  margin: 0 0 0.2rem;
}

.history-anniversary-date {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.history-anniversary-body {
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
}

.history-anniversary-photos {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 1.25rem;
}

@media (min-width: 560px) {
  .history-anniversary-photos {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 800px) {
  .history-anniversary-photos {
    grid-template-columns: repeat(4, 1fr);
  }
}

.history-anniversary-photos figure {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  background: var(--brand-light-gray);
}

.history-anniversary-photos img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
}

.history-anniversary-photos figcaption {
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 0.35rem 0.5rem;
  font-style: italic;
  line-height: 1.35;
}

/* Section cards (Beavers, Cubs, etc.) – two columns so text isn’t squashed */
.section-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 560px) {
  .section-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem 1.75rem;
  }
}

.section-card {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--green-200);
  transition: box-shadow 0.2s, transform 0.2s;
}

.section-card:hover {
  box-shadow: var(--shadow-strong);
}

.section-card-badge {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-cobalt);
  background: rgba(7, 122, 181, 0.12);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  margin-bottom: 0.75rem;
}

.section-card h3 {
  font-family: var(--font-head);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand-dark-green);
  margin: 0 0 0.5rem;
}

.section-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 0;
}

/* Night-section links under each age-group card */
.section-card-nights {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--green-200);
}

.section-card-nights-label {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--brand-dark-blue);
  margin: 0 0 0.5rem;
}

.section-card-nights-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.section-card-nights-list li {
  margin-bottom: 0.4rem;
}

.section-card-nights-list li:last-child {
  margin-bottom: 0;
}

.section-card-night-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
}

.section-card-night-row .section-card-night-time {
  font-size: 0.875rem;
  font-weight: 700;
  font-family: var(--font-head);
  color: var(--brand-dark-blue);
  letter-spacing: 0.02em;
}

.sections-where-lead {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  background: rgba(7, 122, 181, 0.08);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--brand-cobalt);
  font-size: 0.9875rem;
  line-height: 1.55;
  color: var(--text);
  max-width: 60ch;
}

.section-card-nights-list a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--brand-cobalt);
  text-decoration: none;
}

.section-card-nights-list a:hover {
  text-decoration: underline;
  color: var(--brand-dark-blue);
}

.section-card-nights-list .subpage-code {
  font-weight: 600;
}

.section-card-nights--note {
  border-top-style: dashed;
}

.section-card-nights-note {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

.section-card-nights-note a {
  font-weight: 600;
  color: var(--brand-cobalt);
  text-decoration: none;
}

.section-card-nights-note a:hover {
  text-decoration: underline;
}

/* Den features list */
.den-features {
  margin: 1rem 0 1.25rem 1.25rem;
  padding: 0;
  list-style: none;
}

.den-features li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.5rem;
}

.den-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-teal);
}

/* Contact */
.contact-map {
  margin: 0.5rem 0 1.75rem;
}

.contact-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.contact-list li {
  margin-bottom: 0.5rem;
}

.contact-list a,
.section-content a {
  color: var(--brand-cobalt);
  font-weight: 600;
}

.contact-list a:hover,
.section-content a:hover {
  color: var(--brand-dark-blue);
}

.contact-email {
  font-size: 1.15rem;
  margin: 0.5rem 0 1rem;
}

.contact-email a {
  font-weight: 600;
}

/* Meeting times table */
.meeting-times {
  margin: 1.25rem 0 1.5rem;
  overflow-x: auto;
}

.times-table {
  width: 100%;
  min-width: 260px;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.times-table th,
.times-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--green-200);
}

.times-table thead {
  background: var(--gradient-dark);
  color: var(--white);
}

.times-table thead th {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: none;
}

.times-table tbody tr:last-child td {
  border-bottom: none;
}

.times-table tbody tr:hover {
  background: var(--green-50);
}

.times-section {
  display: inline-block;
  font-weight: 600;
  padding: 0.2em 0.5em;
  border-radius: 4px;
}

.times-section.beavers {
  background: rgba(253, 183, 38, 0.25);
  color: #b87a0a;
}

.times-section.cubs {
  background: rgba(222, 117, 36, 0.2);
  color: var(--brand-orange);
}

.times-section.scouts {
  background: rgba(7, 122, 181, 0.15);
  color: var(--brand-cobalt);
}

.times-section.ventures {
  background: rgba(5, 225, 199, 0.18);
  color: #047a6b;
}

.times-section.rovers {
  background: rgba(56, 156, 81, 0.15);
  color: var(--brand-dark-green);
}

/* Gallery grid — masonry via CSS columns */
.gallery-section {
  padding: 0;
}

.gallery-section .container {
  max-width: 100%;
  padding: 0;
}

.gallery-section .section-intro {
  padding: 1rem 1.25rem 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}

@media (min-width: 640px) { .gallery-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .gallery-grid { grid-template-columns: repeat(4, 1fr); } }

.gallery-item {
  border-radius: 0;
  overflow: hidden;
  background: var(--green-50);
  margin: 0;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  cursor: zoom-in;
  object-fit: cover;
  aspect-ratio: 4 / 3;
}

.gallery-item--featured {
  grid-column: span 2;
}

.gallery-item--featured img {
  aspect-ratio: 16 / 9;
}

.gallery-placeholder-item {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--green-200);
  color: var(--text-muted);
  font-size: 0.875rem;
}

.gallery-item-stag {
  position: relative;
}

.gallery-item-stag .gallery-placeholder-inner {
  display: none;
  align-items: center;
  justify-content: center;
  position: absolute;
  inset: 0;
  padding: 1rem;
  text-align: center;
  background: var(--green-50);
  border: 2px dashed var(--green-200);
  color: var(--text-muted);
  font-size: 0.8125rem;
}

/* Section photo placeholder */
.section-photo {
  margin: 1.25rem 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--brand-light-gray);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--green-200);
}

.section-photo img[src=""] {
  display: none;
}

/* ── Lightbox ────────────────────────────────────────────────── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.92);
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}

.lightbox.is-open {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: var(--radius);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
  cursor: default;
}

.lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2.25rem;
  color: rgba(255, 255, 255, 0.85);
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  padding: 0;
}

.lightbox-close:hover { color: #ffffff; }

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.8);
  background: rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius);
  line-height: 1;
  transition: background 0.15s, color 0.15s;
}

.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(0, 0, 0, 0.6);
  color: #ffffff;
}

/* Footer */
.site-footer {
  padding: 1.5rem 0;
  background: var(--brand-navy);
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  font-size: 0.9375rem;
  font-family: var(--font-body);
}

.site-footer a {
  color: var(--brand-teal);
}

.site-footer a:hover {
  color: var(--brand-yellow);
}

.site-footer p {
  margin: 0;
}

/* Subpages (sections/mnc.html etc.) */
.subpage-main {
  padding-top: 4.5rem;
}

.subpage-hero {
  position: relative;
  overflow: hidden;
  padding: 5.5rem 0 2.5rem;
  border-bottom: 1px solid rgba(1, 76, 97, 0.25);
}

.subpage-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brand-dark-green) url("assets/hero-forest.png") center 35% / cover no-repeat;
  z-index: 0;
}

.subpage-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(1, 76, 97, 0.78) 0%,
    rgba(0, 70, 63, 0.62) 55%,
    rgba(13, 44, 60, 0.88) 100%
  );
  z-index: 0;
}

.subpage-hero > .container {
  position: relative;
  z-index: 1;
}

.breadcrumb {
  font-size: 0.875rem;
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.72);
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
  color: var(--white);
}

.subpage-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.subpage-code {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 0.85em;
  font-weight: 700;
  color: var(--brand-cobalt);
  letter-spacing: 0.06em;
}

.subpage-meta {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.82);
  margin: 0;
}

.subpage-placeholder {
  padding: 1rem 1.25rem;
  background: var(--brand-light-gray);
  border-left: 4px solid var(--brand-orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0 0 1.25rem;
}

.section-hub-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.25rem;
}

@media (min-width: 520px) {
  .section-hub-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .section-hub-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.hub-card {
  display: block;
  padding: 1.25rem 1.35rem;
  background: var(--white);
  border: 1px solid var(--green-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.15s;
}

.hub-card:hover {
  box-shadow: var(--shadow-strong);
  transform: translateY(-2px);
}

/* Emoji icon at top of hub cards */
.hub-card-code {
  display: block;
  font-size: 1.75rem;
  line-height: 1;
  margin-bottom: 0.6rem;
}

.hub-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
}

.hub-card-when {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin: 0.35rem 0 0;
}

.hub-card--join {
  border-color: rgba(222, 117, 36, 0.55);
  background: linear-gradient(135deg, rgba(253, 183, 38, 0.1) 0%, rgba(222, 117, 36, 0.08) 100%);
}

.hub-card--join .hub-card-code {
  /* emoji inherits naturally, no overrides needed */
}

.home-hub .section-hub-grid {
  margin-top: 0.5rem;
}

.hero--home {
  min-height: 78vh;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.15);
}
