/* Shared styles for every page: header, mobile menu, registration note, sponsor tiers. */

/* Header tagline lockup */
.brand-tag { font-size: 14px !important; letter-spacing: 0.16em !important; font-weight: 700; opacity: 1 !important; }
.brand-bars span { width: 22px !important; height: 5px !important; }

/* "Registration opens soon" reads as a note, not a button */
.reg-note {
  display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase; color: #F2B416; cursor: default;
}
.reg-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* Mobile menu (no JavaScript: a hidden checkbox toggles the menu) */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn { display: none; }

@media (max-width: 760px) {
  .site-header-inner { flex-wrap: nowrap !important; }
  .brand-logo { height: 52px !important; }
  .brand-tag { font-size: 11px !important; letter-spacing: 0.12em !important; }
  .nav-btn {
    display: inline-flex; align-items: center; gap: 8px; margin-left: auto; flex: none;
    min-height: 44px; padding: 0 14px; border: 1.5px solid rgba(255,255,255,0.5); border-radius: 8px;
    font-size: 15px; font-weight: 700; color: #FFFFFF; cursor: pointer; user-select: none;
  }
  .nav-btn .bars, .nav-btn .bars::before, .nav-btn .bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: "";
  }
  .nav-btn .bars::before { position: absolute; top: -6px; }
  .nav-btn .bars::after { position: absolute; top: 6px; }
  .main-nav {
    display: none !important; position: absolute; left: 0; right: 0; top: 100%; z-index: 50;
    flex-direction: column !important; align-items: stretch !important; gap: 0 !important;
    padding: 8px 24px 20px; background: inherit; box-shadow: 0 16px 30px rgba(0,0,0,0.35);
  }
  .main-nav a { padding: 14px 0 !important; font-size: 17px; border-bottom: 1px solid rgba(255,255,255,0.12) !important; }
  .main-nav .reg-note { padding-top: 16px; }
  .nav-toggle:checked ~ .main-nav { display: flex !important; }
  .site-header { position: relative; }
}

/* Sponsor tiers: Chief across the top, four even cards below */
.tiers { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; align-items: stretch !important; }
.tier > div:first-child { flex-direction: column !important; gap: 0 !important; }
.tier > div:first-child > span { justify-content: flex-start; padding: 12px 20px !important; font-size: 28px !important; }
.tier-chief { grid-column: 1 / -1; order: -1; }
.tier-chief > div:first-child { flex-direction: row !important; }
.tier-chief > div:first-child > span { padding: 18px 24px !important; font-size: 34px !important; }
.tier-chief ul { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
@media (max-width: 1000px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 560px) {
  .tiers { grid-template-columns: 1fr !important; }
  .tier-chief ul { grid-template-columns: 1fr; }
  .tier-chief > div:first-child { flex-direction: column !important; }
}

/* Contact page */
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }

/* Home page stats band: four even columns, two on phones */
.stats { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* ---------- Phone layout pass ---------- */
.m-collapse > summary { display: none; }
.to-top { display: none; }

@media (max-width: 760px) {
  /* Tighter vertical spacing between sections */
  body > div > section > div[style*="padding: 5"], body > div > section > div[style*="padding: 6"],
  body > div > section > div[style*="padding: 7"], body > div > section > div[style*="padding: 8"] { padding-top: 40px !important; padding-bottom: 40px !important; }
  body > div > section > div[style*="padding: 0 24px 72px"], body > div > section > div[style*="padding: 32px 24px 72px"] { padding-bottom: 40px !important; }
  section.page-hero > div, section.hero-bg > div { padding-top: 56px !important; padding-bottom: 48px !important; }

  /* Photos: a third of the screen instead of most of it */
  div[role="img"] { height: 210px !important; min-height: 0 !important; flex: 0 0 auto !important; width: 100%; margin-inline: 0 !important; }
  .m-short { height: 160px !important; }
  .m-hide { display: none !important; }

  /* Two-by-two grid for small detail cards */
  .m-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 10px !important; }
  .m-grid2 > div { padding: 14px !important; }
  .m-grid2 > div span:nth-child(2) { font-size: 21px !important; }
  .m-grid2 > div span:nth-child(3) { font-size: 13px !important; }

  /* Swipe-sideways rows */
  .m-swipe {
    display: flex !important; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px !important;
    margin-inline: -24px !important; padding: 0 24px 8px !important; scroll-padding-inline: 24px; scrollbar-width: none;
  }
  .m-swipe::-webkit-scrollbar { display: none; }
  .m-swipe > * { flex: 0 0 82%; scroll-snap-align: start; }
  .m-swipe-hint { display: block !important; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.7; margin-top: -4px; }

  /* Tap-to-open sections */
  .m-collapse > summary {
    display: flex; justify-content: space-between; align-items: center; cursor: pointer; list-style: none;
    padding: 16px 18px; font-weight: 700; font-size: 16px;
  }
  .m-collapse > summary::-webkit-details-marker { display: none; }
  .m-collapse > summary::after { content: "See the schedule \25BE"; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: #8C6A1F; }
  .m-collapse[open] > summary::after { content: "Hide \25B4"; }
  .m-collapse caption { display: none; }

  /* Jump links at the top of long pages */
  .jump-chips { gap: 8px !important; }
  .jump-chips a { border: 1px solid rgba(255,255,255,0.45) !important; border-radius: 999px; padding: 8px 14px !important; font-size: 13px; }

  /* Soot & Sisterhood hero: keep the title on screen */
  .ss-title { font-size: clamp(34px, 10.5vw, 56px) !important; }
  .ss-hero { min-height: 0 !important; }


  /* Training sign-up: choices above the button */
  .list-choice { order: -1 !important; }

  /* Back to top */
  .to-top {
    display: flex; position: fixed; right: 16px; bottom: 16px; z-index: 60; width: 46px; height: 46px; border-radius: 50%;
    align-items: center; justify-content: center; border: 0; background: #141922; color: #FFFFFF; font-size: 20px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35); opacity: 0; pointer-events: none; transition: opacity .2s;
  }
  .to-top.show { opacity: 0.92; pointer-events: auto; }
}

/* Sponsor logo strip */
.logo-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px 34px; width: 100%; }
.logo-row img { display: block; height: var(--h); width: auto; max-width: 100%; mix-blend-mode: multiply; }
@media (max-width: 760px) {
  .logo-row { gap: 14px 22px; }
  .logo-row img { height: calc(var(--h) * 0.62); }
}
