/* ==========================================================================
   STG — Shenandoah Tumblers Gymnastics · public site v2.1 theme
   Matches the STG V3 app & portal: Fraunces + Figtree, navy ink, the logo's
   blue-violet for actions, gold for medals, light default + navy dark mode.
   No pink and no green anywhere (client rule).
   Loads AFTER vendor/bootstrap.min.css (Bootstrap 5.3.3). No pink anywhere.
   No wavy / ridge line art anywhere. Built by Kristo Designs LLC.
   ========================================================================== */

/* ==========================================================================
   1. BRAND COLORS — change the site's colors here, and only here.
      Light values on :root, dark values in [data-bs-theme="dark"].
   ========================================================================== */
:root {
  --stg-ink:          #1B2159;   /* midnight navy: headings, primary buttons, footer */
  --stg-ink-rgb:      27, 33, 89;
  --stg-ink-2:        #233066;
  --stg-accent:       #4A4FC0;   /* STG logo blue-violet: main call-to-action (Free Trial) */
  --stg-accent-rgb:   74, 79, 192;
  --stg-accent-dark:  #3A3FA6;   /* hover / text-safe */
  --stg-on-accent:    #FFFFFF;
  --stg-accent-soft:  #E8E9FA;
  --stg-violet:       #4A4FC0;   /* Tumblers blue-violet: links, tints, focus */
  --stg-violet-rgb:   74, 79, 192;
  --stg-violet-soft:  #E8E9FA;
  --stg-gold:         #E9B140;   /* medals, top scores, small highlights */
  --stg-gold-dark:    #D49A22;
  --stg-gold-soft:    #FCF1D7;
  --stg-gold-text:    #7A5300;
  --stg-alert:        #B42318;   /* errors only */
  --stg-alert-soft:   #FDECEC;

  --stg-bg:           #F3F4F8;   /* page */
  --stg-surface:      #FFFFFF;   /* cards, white bands */
  --stg-surface-2:    #F7F8FB;
  --stg-surface-3:    #ECEEF5;
  --stg-text:         #1B2159;
  --stg-text-2:       #454D6E;
  --stg-muted:        #585F7B;
  --stg-line:         rgba(27, 33, 89, .10);
  --stg-line-2:       rgba(27, 33, 89, .16);
  --stg-glass:        rgba(255, 255, 255, .78);

  --stg-hero-1:       #1B2159;   /* hero gradient (same as the app) */
  --stg-hero-2:       #2E3A8C;   /* brand gradient middle */
  --stg-on-dark:      #E4E7F6;   /* text on hero / footer */
  --stg-on-dark-muted:#B9BFDD;
  --stg-footer:       #141A47;

  --stg-overline: linear-gradient(90deg, #2E3A8C, #4A4FC0 55%, #E9B140);

  --stg-shadow-1: 0 1px 2px rgba(31,29,71,.05), 0 1px 1px rgba(31,29,71,.03);
  --stg-shadow-2: 0 6px 18px -6px rgba(31,29,71,.18), 0 2px 6px rgba(31,29,71,.06);
  --stg-shadow-3: 0 24px 48px -16px rgba(31,29,71,.35), 0 8px 18px -8px rgba(31,29,71,.10);

  --stg-font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --stg-font-ui: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --stg-header-h: 68px;
  --stg-actionbar-h: 64px;
  --stg-radius: 20px;      /* cards */
  --stg-radius-sm: 14px;   /* inputs */
  --stg-radius-lg: 28px;   /* heroes, big tiles */
  --stg-ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

[data-bs-theme="dark"] {
  --stg-ink:          #EEF1FA;
  --stg-ink-rgb:      238, 241, 250;
  --stg-ink-2:        #C8CEE6;
  --stg-accent:       #8E9CFF;
  --stg-accent-rgb:   142, 156, 255;
  --stg-accent-dark:  #A9B4FF;
  --stg-on-accent:    #0B1230;
  --stg-accent-soft:  rgba(142, 156, 255, .17);
  --stg-violet:       #A9ACF5;
  --stg-violet-rgb:   169, 172, 245;
  --stg-violet-soft:  rgba(169, 172, 245, .17);
  --stg-gold:         #F5C25C;
  --stg-gold-dark:    #F8CF78;
  --stg-gold-soft:    rgba(245, 194, 92, .16);
  --stg-gold-text:    #F5C25C;
  --stg-alert:        #FF7A7A;
  --stg-alert-soft:   rgba(255, 122, 122, .16);

  --stg-bg:           #101A3D;
  --stg-surface:      #17224A;
  --stg-surface-2:    #1C2953;
  --stg-surface-3:    #243262;
  --stg-text:         #EEF1FA;
  --stg-text-2:       #C8CEE6;
  --stg-muted:        #9AA3C6;
  --stg-line:         rgba(255, 255, 255, .08);
  --stg-line-2:       rgba(255, 255, 255, .14);
  --stg-glass:        rgba(20, 30, 66, .80);

  --stg-hero-1:       #1A2766;
  --stg-hero-2:       #2A3580;
  --stg-footer:       #0B1230;

  --stg-shadow-1: 0 1px 2px rgba(3,6,20,.35);
  --stg-shadow-2: 0 8px 22px -8px rgba(3,6,20,.6);
  --stg-shadow-3: 0 28px 56px -18px rgba(3,6,20,.75);
  color-scheme: dark;
}

/* ==========================================================================
   2. BOOTSTRAP MAPPING — wires the tokens into Bootstrap (both themes).
   ========================================================================== */
:root, [data-bs-theme="dark"] {
  --bs-primary: var(--stg-ink);
  --bs-primary-rgb: var(--stg-ink-rgb);
  --bs-body-font-family: var(--stg-font-ui);
  --bs-body-color: var(--stg-text);
  --bs-body-bg: var(--stg-bg);
  --bs-emphasis-color: var(--stg-ink);
  --bs-secondary-color: var(--stg-muted);
  --bs-secondary-bg: var(--stg-surface-2);
  --bs-tertiary-bg: var(--stg-surface-3);
  --bs-border-color: var(--stg-line-2);
  --bs-border-color-translucent: var(--stg-line);
  --bs-heading-color: var(--stg-ink);
  --bs-link-color: var(--stg-violet);
  --bs-link-color-rgb: var(--stg-violet-rgb);
  --bs-link-hover-color: var(--stg-accent-dark);
  --bs-link-hover-color-rgb: var(--stg-accent-rgb);
  --bs-border-radius: 12px;
  --bs-border-radius-lg: var(--stg-radius);
  --bs-border-radius-xl: var(--stg-radius-lg);
  --bs-focus-ring-color: rgba(var(--stg-violet-rgb), .3);
}

/* Buttons */
.btn { --bs-btn-font-weight: 700; --bs-btn-padding-x: 1.35rem; --bs-btn-padding-y: .72rem; --bs-btn-border-radius: 999px; --bs-btn-border-width: 2px; display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 48px; letter-spacing: .005em; }
.btn-sm { --bs-btn-padding-x: 1rem; --bs-btn-padding-y: .4rem; min-height: 40px; font-size: .9375rem; }
.btn-lg { min-height: 56px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.97); }
.btn-primary {
  --bs-btn-color: var(--stg-surface); --bs-btn-bg: var(--stg-ink); --bs-btn-border-color: var(--stg-ink);
  --bs-btn-hover-color: var(--stg-surface); --bs-btn-hover-bg: var(--stg-ink-2); --bs-btn-hover-border-color: var(--stg-ink-2);
  --bs-btn-active-color: var(--stg-surface); --bs-btn-active-bg: var(--stg-ink-2); --bs-btn-active-border-color: var(--stg-ink-2);
  --bs-btn-disabled-bg: var(--stg-ink); --bs-btn-disabled-border-color: var(--stg-ink);
}
.btn-accent {
  --bs-btn-color: var(--stg-on-accent); --bs-btn-bg: var(--stg-accent); --bs-btn-border-color: var(--stg-accent);
  --bs-btn-hover-color: var(--stg-on-accent); --bs-btn-hover-bg: var(--stg-accent-dark); --bs-btn-hover-border-color: var(--stg-accent-dark);
  --bs-btn-active-color: var(--stg-on-accent); --bs-btn-active-bg: var(--stg-accent-dark); --bs-btn-active-border-color: var(--stg-accent-dark);
  --bs-btn-focus-shadow-rgb: var(--stg-accent-rgb);
  box-shadow: 0 8px 20px -10px rgba(var(--stg-accent-rgb), .7);
}
.btn-highlight {
  --bs-btn-color: #1B2159; --bs-btn-bg: var(--stg-gold); --bs-btn-border-color: var(--stg-gold);
  --bs-btn-hover-color: #1B2159; --bs-btn-hover-bg: var(--stg-gold-dark); --bs-btn-hover-border-color: var(--stg-gold-dark);
  --bs-btn-active-color: #1B2159; --bs-btn-active-bg: var(--stg-gold-dark); --bs-btn-active-border-color: var(--stg-gold-dark);
}
.btn-outline-primary {
  --bs-btn-color: var(--stg-ink); --bs-btn-border-color: var(--stg-line-2); --bs-btn-bg: var(--stg-surface);
  --bs-btn-hover-color: var(--stg-surface); --bs-btn-hover-bg: var(--stg-ink); --bs-btn-hover-border-color: var(--stg-ink);
  --bs-btn-active-color: var(--stg-surface); --bs-btn-active-bg: var(--stg-ink); --bs-btn-active-border-color: var(--stg-ink);
}
.btn-outline-light { --bs-btn-color: #fff; --bs-btn-border-color: rgba(255,255,255,.5); --bs-btn-hover-color: #1B2159; --bs-btn-hover-bg: #fff; --bs-btn-hover-border-color: #fff; --bs-btn-active-color: #1B2159; --bs-btn-active-bg: #fff; }

/* Forms */
.form-control, .form-select { min-height: 50px; border: 1.5px solid var(--stg-line-2); border-radius: var(--stg-radius-sm); font-size: 16px; background-color: var(--stg-surface); color: var(--stg-text); }
.form-control::placeholder { color: var(--stg-muted); }
.form-control:focus, .form-select:focus { border-color: var(--stg-violet); background-color: var(--stg-surface); color: var(--stg-text); box-shadow: 0 0 0 .25rem rgba(var(--stg-violet-rgb), .18); }
.form-label { font-weight: 700; color: var(--stg-ink); font-size: .9375rem; }
.form-check-input { width: 1.25em; height: 1.25em; margin-top: .15em; background-color: var(--stg-surface); border-color: var(--stg-line-2); }
.form-check-input:checked { background-color: var(--stg-accent); border-color: var(--stg-accent); }
.form-check { min-height: 1.75rem; }
.form-text { color: var(--stg-muted); }
.required::after { content: " *"; color: var(--stg-alert); }

/* Nav pills (year tabs, filters) */
.nav-pills { --bs-nav-pills-link-active-bg: var(--stg-ink); --bs-nav-pills-link-active-color: var(--stg-surface); --bs-nav-pills-border-radius: 999px; gap: 6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.nav-pills::-webkit-scrollbar { display: none; }
.nav-pills .nav-link { flex: none; min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; color: var(--stg-ink); background: var(--stg-surface); border: 1px solid var(--stg-line-2); }
.nav-pills .nav-link:hover { border-color: var(--stg-violet); }
.nav-pills .nav-link.active { border-color: var(--stg-ink); }

/* Accordion */
.accordion { --bs-accordion-bg: var(--stg-surface); --bs-accordion-color: var(--stg-text); --bs-accordion-border-color: var(--stg-line-2); --bs-accordion-btn-color: var(--stg-ink); --bs-accordion-btn-bg: var(--stg-surface); --bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(var(--stg-violet-rgb), .18); --bs-accordion-active-bg: var(--stg-violet-soft); --bs-accordion-active-color: var(--stg-ink); --bs-accordion-border-radius: var(--stg-radius); --bs-accordion-inner-border-radius: calc(var(--stg-radius) - 1px); }
.accordion-button { font-weight: 700; line-height: 1.35; padding-block: 1.1rem; }

/* Tables */
.table { --bs-table-bg: var(--stg-surface); --bs-table-color: var(--stg-text); --bs-table-border-color: var(--stg-line); --bs-table-striped-bg: var(--stg-surface-2); --bs-table-striped-color: var(--stg-text); --bs-table-hover-bg: var(--stg-surface-3); --bs-table-hover-color: var(--stg-text); font-variant-numeric: tabular-nums; margin-bottom: 0; }
.table > :not(caption) > * > * { padding: .75rem .875rem; white-space: nowrap; }
.table thead th { background: #1B2159; color: #fff; font-size: .8125rem; font-weight: 700; position: sticky; top: 0; z-index: 2; border-bottom: 0; }
[data-bs-theme="dark"] .table thead th { background: #0B1230; }
.table-scroll { background: var(--stg-surface); border: 1px solid var(--stg-line-2); border-radius: var(--stg-radius); overflow: auto; max-height: 75vh; box-shadow: var(--stg-shadow-1); }
.table .sticky-col { position: sticky; left: 0; z-index: 1; background: var(--stg-surface); box-shadow: 1px 0 0 var(--stg-line-2); }
.table-striped > tbody > tr:nth-of-type(odd) > .sticky-col { background: var(--stg-surface-2); }
.table thead .sticky-col { z-index: 3; background: #1B2159; }
[data-bs-theme="dark"] .table thead .sticky-col { background: #0B1230; }
.table th[data-sort] { cursor: pointer; user-select: none; }
.table th[data-sort]::after { content: " ↕"; opacity: .45; font-weight: 400; }
.table th[aria-sort="ascending"]::after { content: " ↑"; opacity: 1; color: #F5C25C; }
.table th[aria-sort="descending"]::after { content: " ↓"; opacity: 1; color: #F5C25C; }
.table tr.is-stg > *, .table tr.is-stg > .sticky-col { --bs-table-bg-type: var(--stg-gold-soft) !important; background-color: var(--stg-gold-soft); }
.table-empty { padding: 2rem !important; text-align: center; color: var(--stg-muted); white-space: normal !important; }

/* Cards */
.card { --bs-card-border-color: var(--stg-line); --bs-card-border-radius: var(--stg-radius); --bs-card-inner-border-radius: calc(var(--stg-radius) - 1px); --bs-card-bg: var(--stg-surface); --bs-card-color: var(--stg-text); --bs-card-title-color: var(--stg-ink); box-shadow: var(--stg-shadow-1); }
a.card { text-decoration: none; color: var(--stg-text); transition: border-color .2s, transform .25s var(--stg-ease), box-shadow .25s; }
a.card:hover { border-color: rgba(var(--stg-violet-rgb), .45); transform: translateY(-2px); box-shadow: var(--stg-shadow-2); color: var(--stg-text); }
.badge { font-weight: 700; letter-spacing: .01em; }
.text-bg-tint { background: var(--stg-violet-soft) !important; color: var(--stg-violet) !important; }
.text-bg-accent { background: var(--stg-accent-soft) !important; color: var(--stg-accent-dark) !important; }
.text-bg-highlight { background: var(--stg-gold-soft) !important; color: var(--stg-gold-text) !important; }
.text-accent { color: var(--stg-accent-dark) !important; }
.text-highlight { color: var(--stg-gold) !important; }
.bg-tint { background: var(--stg-violet-soft) !important; }
.text-secondary { color: var(--stg-muted) !important; }
.text-body-secondary { color: var(--stg-muted) !important; }
.border, .border-top, .border-bottom { border-color: var(--stg-line-2) !important; }

/* Dropdowns / offcanvas */
.dropdown-menu { --bs-dropdown-bg: var(--stg-surface); --bs-dropdown-color: var(--stg-text); --bs-dropdown-border-color: var(--stg-line); --bs-dropdown-border-radius: var(--stg-radius); --bs-dropdown-link-color: var(--stg-ink); --bs-dropdown-link-hover-color: var(--stg-ink); --bs-dropdown-link-hover-bg: var(--stg-surface-2); --bs-dropdown-link-active-bg: var(--stg-violet-soft); --bs-dropdown-link-active-color: var(--stg-ink); --bs-dropdown-header-color: var(--stg-muted); --bs-dropdown-item-padding-y: .55rem; --bs-dropdown-item-border-radius: 10px; }
.offcanvas { --bs-offcanvas-bg: var(--stg-bg); --bs-offcanvas-color: var(--stg-text); }

/* Breadcrumb on hero */
.page-hero .breadcrumb { --bs-breadcrumb-divider-color: rgba(255,255,255,.4); --bs-breadcrumb-item-active-color: var(--stg-on-dark-muted); font-size: .875rem; margin-bottom: 1rem; }
.page-hero .breadcrumb a { color: #F5C25C; text-decoration: none; font-weight: 600; }

/* ==========================================================================
   3. BASE
   ========================================================================== */
html { scroll-padding-top: calc(var(--stg-header-h) + 12px); }
body { -webkit-font-smoothing: antialiased; background: var(--stg-bg); color: var(--stg-text); padding-bottom: calc(var(--stg-actionbar-h) + env(safe-area-inset-bottom)); overflow-x: hidden; }
@media (min-width: 992px) { body { padding-bottom: 0; } }
h1, h2, h3, .h1, .h2, .h3 { font-family: var(--stg-font-display); font-weight: 600; letter-spacing: -.015em; line-height: 1.08; text-wrap: balance; font-optical-sizing: auto; }
h4, h5, h6, .h4, .h5, .h6 { font-family: var(--stg-font-ui); font-weight: 800; letter-spacing: -.005em; line-height: 1.2; }
h1, .h1 { font-size: clamp(2.25rem, 6vw, 3.25rem); }
h2, .h2 { font-size: clamp(1.85rem, 4.2vw, 2.75rem); }
h3, .h3 { font-size: 1.4rem; }
a { text-underline-offset: .18em; text-decoration-thickness: 1px; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--stg-violet); outline-offset: 3px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--stg-gold); color: #1B2159; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip-link:focus { top: 12px; }
.display-stg { font-family: var(--stg-font-display); font-size: clamp(3rem, 11.5vw, 7.25rem); line-height: .92; font-weight: 600; letter-spacing: -.03em; }
.condensed { letter-spacing: -.02em; }
.lead, .lede { color: var(--stg-text-2); font-weight: 400; font-size: 1.15rem; max-width: 60ch; }
.measure { max-width: 68ch; }
.prose { max-width: 70ch; }
.prose h2 { margin-top: 1.6em; font-size: 1.5rem; }
.prose h3 { margin-top: 1.4em; font-size: 1.2rem; }
.prose li + li { margin-top: .35em; }
.container { --bs-gutter-x: 2rem; }
@media (min-width: 768px) { .container { --bs-gutter-x: 3rem; } }

/* Signature: gradient overline above big titles (same as the app) */
.overline::before, .page-hero h1::before, .section-head h2::before, .hero h1::before {
  content: ""; display: block; width: 44px; height: 4px; border-radius: 4px; background: var(--stg-overline); margin-bottom: .9rem;
}
.hero h1::before { width: 56px; height: 5px; margin-bottom: 1.25rem; }

/* Section bands */
.section { padding-block: 3.5rem; }
@media (min-width: 768px) { .section { padding-block: 5.5rem; } }
.section-white { background: var(--stg-surface); }
.section-primary, .section-ink { background: linear-gradient(135deg, var(--stg-hero-1), var(--stg-hero-2)); color: var(--stg-on-dark); }
.section-ink { background: var(--stg-footer); }
.section-primary :is(h1,h2,h3,h4,h5), .section-ink :is(h1,h2,h3,h4,h5) { color: #fff; }
.section-primary .lead, .section-ink .lead, .section-primary .lede { color: var(--stg-on-dark-muted); }
.section-primary a:not(.btn):not(.card), .section-ink a:not(.btn):not(.card) { color: #F5C25C; }
.section-head { margin-bottom: 2rem; }
.section-head p { color: var(--stg-text-2); font-size: 1.125rem; margin: 0; max-width: 46rem; }
.section-primary .section-head p, .section-ink .section-head p { color: var(--stg-on-dark-muted); }

.link-arrow { font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; color: var(--stg-violet); }
.link-arrow::after { content: ""; width: 8px; height: 8px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform .2s var(--stg-ease); }
.link-arrow:hover::after { transform: translateX(3px) rotate(45deg); }

/* ==========================================================================
   4. HEADER / NAV
   ========================================================================== */
/* blur lives on ::before — backdrop-filter on the header itself would trap the fixed offcanvas */
.site-header { min-height: var(--stg-header-h); border-bottom: 1px solid transparent; transition: border-color .2s; --bs-navbar-padding-y: .5rem; isolation: isolate; }
.site-header::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--stg-glass); backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px); }
.site-header.is-scrolled { border-bottom-color: var(--stg-line); }
.navbar-brand { display: flex; align-items: center; gap: 10px; color: var(--stg-ink); margin-right: auto; white-space: normal; }
.navbar-brand:hover { color: var(--stg-ink); }
/* official STG logo, shown at its own shape (never cropped or altered) on a white chip so it reads in dark mode too */
.navbar-brand img, .footer-logo { background: #fff; border-radius: 10px; padding: 3px 5px; box-shadow: var(--stg-shadow-1); object-fit: contain; }
.navbar-brand img { height: 46px; width: auto; flex: none; }
/* phones: keep logo, name, theme toggle & menu on one line */
@media (max-width: 991.98px) {
  .site-header > .container { flex-wrap: nowrap; }
  .navbar-brand { min-width: 0; flex: 1 1 auto; }
  .navbar-brand span { min-width: 0; }
}
@media (max-width: 430px) {
  .navbar-brand { gap: 8px; }
  .navbar-brand img { height: 40px; }
  .navbar-brand span { font-size: .98rem; }
  .navbar-brand small { display: none; }
}
.navbar-brand span { font-family: var(--stg-font-display); font-weight: 600; line-height: 1; font-size: 1.12rem; letter-spacing: -.01em; }
.navbar-brand small { display: block; font-family: var(--stg-font-ui); font-weight: 500; font-size: .75rem; color: var(--stg-muted); margin-top: 4px; letter-spacing: 0; }
.navbar-toggler { width: 48px; height: 48px; border: 0; border-radius: 50%; background: #1B2159; padding: 0; display: inline-grid; place-items: center; }
[data-bs-theme="dark"] .navbar-toggler { background: var(--stg-surface-3); }
.navbar-toggler:focus { box-shadow: 0 0 0 .25rem rgba(var(--stg-violet-rgb), .3); }
.navbar-toggler-icon { --bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-width='2.5' d='M5 9h20M5 15h14M5 21h20'/%3e%3c/svg%3e"); background-image: var(--bs-navbar-toggler-icon-bg); width: 1.25em; height: 1.25em; }
.site-header .nav-link { color: var(--stg-ink); font-weight: 600; }
.site-header .dropdown-item { font-weight: 600; white-space: normal; }
.site-header .dropdown-item small { display: block; font-weight: 400; color: var(--stg-muted); font-size: .8125rem; }
.site-header .dropdown-header { font-size: .75rem; font-weight: 700; padding-top: .75rem; }

@media (max-width: 991.98px) {
  .site-header .offcanvas { --bs-offcanvas-width: 100%; }
  .site-header .offcanvas-header .offcanvas-title { font-family: var(--stg-font-display); font-size: 1.5rem; }
  .site-header .offcanvas-body { padding-top: 0; }
  .site-header .navbar-nav > .nav-item { border-bottom: 1px solid var(--stg-line); }
  .site-header .navbar-nav > .nav-item > .nav-link { font-family: var(--stg-font-display); font-size: 1.6rem; font-weight: 600; padding-block: 1rem; display: flex; justify-content: space-between; align-items: center; letter-spacing: -.01em; }
  .site-header .dropdown-menu { border: 0; background: transparent; padding: 0 0 1rem; box-shadow: none; }
  .site-header .dropdown-item { font-size: 1.0625rem; font-weight: 500; padding-inline: 0; }
  .site-header .dropdown-item small { display: none; }
  .site-header .dropdown-header { padding-inline: 0; }
}
@media (min-width: 992px) {
  .site-header .nav-link { padding: .6rem .75rem !important; border-radius: 999px; font-size: .9375rem; }
  .site-header .nav-link:hover, .site-header .nav-link.show { background: var(--stg-violet-soft); }
  .site-header .nav-link.active { box-shadow: inset 0 -3px 0 var(--stg-accent); border-radius: 0; }
  .site-header .dropdown-menu { margin-top: .5rem !important; box-shadow: var(--stg-shadow-3); min-width: 290px; padding: .6rem; }
  .site-header .dropdown-mega { min-width: 560px; }
  .header-cta .btn { white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1279.98px) {
  .navbar-brand small, .header-cta .btn-outline-primary { display: none !important; }
  .site-header .nav-link { padding-inline: .55rem !important; }
}

/* Mobile bottom action bar */
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: grid; grid-template-columns: 1fr 1fr 1.6fr; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: var(--stg-glass); backdrop-filter: saturate(170%) blur(16px); -webkit-backdrop-filter: saturate(170%) blur(16px); border-top: 1px solid var(--stg-line); }
.actionbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 48px; border-radius: 14px; color: var(--stg-ink); text-decoration: none; font-size: .75rem; font-weight: 700; }
.actionbar a svg { width: 20px; height: 20px; }
.actionbar a.is-primary { flex-direction: row; gap: 8px; background: var(--stg-accent); color: var(--stg-on-accent); font-size: .9375rem; box-shadow: 0 8px 20px -10px rgba(var(--stg-accent-rgb), .8); }
.offcanvas-backdrop { z-index: 1035; }

/* ==========================================================================
   5. COMPONENTS
   ========================================================================== */

/* Home hero */
.hero { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #1B2159; min-height: calc(100svh - var(--stg-header-h) - var(--stg-actionbar-h)); display: flex; align-items: flex-end; }
@media (min-width: 992px) { .hero { min-height: min(820px, calc(100svh - var(--stg-header-h))); align-items: center; } }
.hero__media { position: absolute; inset: 0; z-index: -2; }
/* hero photo: gymnast sits right of center; keep her in frame on phones, show hands to toes on desktop */
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 64% center; }
/* desktop: photo fills the right ~72% (less cropping in short/wide windows), navy behind the headline */
@media (min-width: 992px) { .hero__media { left: auto; width: 72%; } .hero__media img { object-position: 60% 50%; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27,33,89,.10) 0%, rgba(27,33,89,.55) 42%, rgba(20,40,90,.97) 100%); }
@media (min-width: 992px) { .hero::before { background: linear-gradient(100deg, rgba(27,33,89,.94) 0%, rgba(24,40,100,.8) 30%, rgba(30,50,120,.3) 50%, rgba(30,50,120,0) 66%); } }
.hero__inner { padding-block: 3rem 2.5rem; width: 100%; }
/* phones & tablets: photo band on top (whole gymnast visible), text below on navy */
@media (max-width: 991.98px) {
  .hero { display: block; min-height: 0; background: linear-gradient(180deg, #1B2159 0%, #142A5A 100%); }
  .hero::before { display: none; }
  .hero__media { position: relative; inset: auto; z-index: 0; height: clamp(280px, 84vw, 540px); }
  .hero__media img { object-position: 62% 45%; }
  .hero__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,33,89,0) 55%, rgba(27,33,89,.85) 88%, #1B2159 100%); }
  .hero__inner { position: relative; z-index: 1; padding-block: .5rem 2.5rem; margin-top: -2.5rem; }
}
.hero__kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: #fff; margin-bottom: 1.4rem; font-size: .875rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); padding: 6px 14px; border-radius: 999px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.hero__kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #F5C25C; }
.hero h1 { color: #fff; margin-bottom: 1.25rem; max-width: 11ch; }
@media (min-width: 992px) { .hero h1.display-stg { font-size: clamp(3.5rem, 6.2vw, 6rem); } }
.hero p { color: var(--stg-on-dark); font-size: 1.125rem; max-width: 40ch; margin-bottom: 1.75rem; }
@media (min-width: 768px) { .hero p { font-size: 1.25rem; } }
.hero__links { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: 8px; font-size: .9375rem; }
/* quick-access chips: frosted pills so they read as tappable over the photo */
.hero__links a { display: inline-flex; align-items: center; min-height: 40px; padding: .45rem 1rem; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; line-height: 1.2; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, border-color .2s, color .2s; }
.hero__links a:hover, .hero__links a:focus-visible { background: rgba(255,255,255,.22); border-color: #F5C25C; color: #F5C25C; }
.arc { display: none !important; } /* retired: no line art */

/* Interior page hero — the app's navy brand gradient */
.page-hero { background: linear-gradient(135deg, var(--stg-hero-1) 0%, var(--stg-hero-1) 35%, var(--stg-hero-2) 100%); color: var(--stg-on-dark); position: relative; overflow: hidden; isolation: isolate; padding-block: 2.5rem 2.75rem; }
@media (min-width: 768px) { .page-hero { padding-block: 4.5rem 4.75rem; } }
.page-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(60% 80% at 100% 0%, rgba(74,79,192,.35), transparent 60%); }
.page-hero h1 { color: #fff; font-size: clamp(2.35rem, 8vw, 4.6rem); font-weight: 600; line-height: .98; max-width: 18ch; margin-bottom: 1rem; letter-spacing: -.025em; }
.page-hero p { color: var(--stg-on-dark-muted); font-size: 1.125rem; max-width: 58ch; margin: 0; }
.page-hero-image { background-size: cover; background-position: center; }
.page-hero-image::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(27,33,89,.95), rgba(46,58,140,.72)); }

/* Info strip (home) */
.infostrip { background: var(--stg-surface); border-bottom: 1px solid var(--stg-line); }
.infostrip__item { display: flex; gap: 14px; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid var(--stg-line); text-decoration: none; color: var(--stg-text); height: 100%; }
.infostrip__item:hover { color: var(--stg-text); }
.infostrip .col-md-4:last-child .infostrip__item { border-bottom: 0; }
@media (min-width: 768px) { .infostrip__item { border-bottom: 0; padding: 1.4rem 1.25rem; border-left: 1px solid var(--stg-line); } .infostrip .col-md-4:first-child .infostrip__item { border-left: 0; padding-left: 0; } }
.infostrip__item svg { width: 40px; height: 40px; padding: 9px; border-radius: 12px; background: var(--stg-accent-soft); color: var(--stg-accent-dark); flex: none; }
.infostrip__item strong { display: block; color: var(--stg-ink); line-height: 1.25; }
.infostrip__item span { color: var(--stg-muted); font-size: .9375rem; }
.status-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--stg-muted); margin-right: 6px; vertical-align: middle; }
.status-dot.is-open { background: #2862C8; box-shadow: 0 0 0 4px rgba(40,98,200,.18); }
[data-bs-theme="dark"] .status-dot.is-open { background: #8FB3F7; }

/* Program image tile */
.program { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 400px; height: 100%; border-radius: var(--stg-radius-lg); overflow: hidden; color: #fff; text-decoration: none; isolation: isolate; background: #1B2159; box-shadow: var(--stg-shadow-2); }
.program img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--stg-ease); }
.program::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(27,33,89,0) 25%, rgba(27,33,89,.94) 100%); }
.program:hover { color: #fff; } .program:hover img { transform: scale(1.05); }
.program__body { padding: 1.5rem; }
.program h3 { color: #fff; font-size: 2.1rem; font-weight: 600; margin: .75rem 0 .4rem; }
.program p { color: var(--stg-on-dark); margin-bottom: .9rem; }
.program .link-arrow { color: #F5C25C; }
.program .badge.text-bg-highlight { background: rgba(255,255,255,.16) !important; color: #fff !important; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }

/* Icon chip */
.icon-chip { width: 44px; height: 44px; border-radius: 12px; background: var(--stg-violet-soft); color: var(--stg-violet); display: grid; place-items: center; margin-bottom: 1rem; }
.icon-chip svg { width: 22px; height: 22px; }

/* Pillars */
.pillars { border-top: 1px solid rgba(255,255,255,.16); }
.pillar { padding: 1.75rem 0; border-bottom: 1px solid rgba(255,255,255,.16); }
@media (min-width: 992px) { .pillar { padding: 2.25rem 0; } }
.pillar h3 { font-size: clamp(3rem, 12vw, 6.25rem); font-weight: 600; line-height: .92; margin: 0; color: #fff; letter-spacing: -.035em; }
.pillar:nth-child(2) h3 { color: #F5C25C; }
.pillar p { margin: 0; color: var(--stg-on-dark-muted); font-size: 1.125rem; max-width: 44ch; }

/* Date block (events, schedules) — the app's countdown tile */
.date-block { width: 72px; flex: none; text-align: center; background: linear-gradient(160deg, #2E3A8C, #4A4FC0); color: #fff; border-radius: 16px; padding: 10px 6px; line-height: 1; box-shadow: 0 8px 18px -10px rgba(74,79,192,.8); }
.date-block b { display: block; font-family: var(--stg-font-display); font-size: 1.9rem; font-weight: 600; margin: 4px 0; }
.date-block span { font-size: .72rem; font-weight: 700; color: rgba(255,255,255,.85); }
.is-past { opacity: .55; }
.is-past .date-block { background: var(--stg-surface-3); color: var(--stg-muted); box-shadow: none; }
.is-past .date-block span { color: var(--stg-muted); }

/* Link list */
.linklist { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--stg-line-2); }
.linklist li { border-bottom: 1px solid var(--stg-line-2); }
.linklist a { display: flex; align-items: center; gap: 14px; padding: 1rem .25rem; text-decoration: none; color: var(--stg-ink); font-weight: 600; min-height: 56px; }
.linklist a:hover { color: var(--stg-violet); background: rgba(var(--stg-violet-rgb), .05); }
.linklist a::after { content: ""; margin-left: auto; width: 8px; height: 8px; flex: none; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); opacity: .5; }
.linklist small { display: block; font-weight: 400; color: var(--stg-muted); font-size: .875rem; }
.section-primary .linklist, .section-primary .linklist li { border-color: rgba(255,255,255,.16); }
.section-primary .linklist a { color: #fff; }

/* People */
.person-photo { aspect-ratio: 4 / 5; background: var(--stg-violet-soft); overflow: hidden; }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.person-initials { display: grid; place-items: center; font-family: var(--stg-font-display); font-size: 3rem; font-weight: 600; color: var(--stg-violet); }
.person-role { color: var(--stg-accent-dark); font-weight: 700; font-size: .9375rem; }

/* Logo wall */
.logo-tile { background: #fff; border: 1px solid var(--stg-line); border-radius: var(--stg-radius); aspect-ratio: 3 / 2; display: grid; place-items: center; padding: 1.1rem; height: 100%; box-shadow: var(--stg-shadow-1); }
.logo-tile img { max-height: 100%; width: auto; object-fit: contain; }

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 6px; bottom: 6px; width: 3px; border-radius: 3px; background: linear-gradient(180deg, #4A4FC0, #E9B140); }
.timeline li { position: relative; padding: 0 0 2rem 44px; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 17px; height: 17px; border-radius: 50%; background: var(--stg-surface); border: 3px solid var(--stg-violet); }
.timeline .year { display: block; font-family: var(--stg-font-display); font-weight: 600; font-size: 1.9rem; color: var(--stg-violet); line-height: 1; margin-bottom: 6px; }

/* Callout band */
.callout { border-radius: var(--stg-radius-lg); padding: 1.75rem; background: linear-gradient(135deg, var(--stg-hero-1), var(--stg-hero-2)); color: var(--stg-on-dark); box-shadow: var(--stg-shadow-3); position: relative; overflow: hidden; isolation: isolate; }
.callout::after { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(50% 70% at 100% 0%, rgba(74,79,192,.4), transparent 60%); }
@media (min-width: 768px) { .callout { padding: 3rem; } }
.callout :is(h2,h3) { color: #fff; }
.callout .lead { color: var(--stg-on-dark-muted); }
.callout a:not(.btn):not(.store-badge) { color: #F5C25C; }
.notice { border-left: 4px solid var(--stg-accent); background: var(--stg-surface); padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; box-shadow: var(--stg-shadow-1); }
.notice-highlight { border-left-color: var(--stg-gold); }

/* App */
.store-badge { display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 20px 0 16px; border-radius: 14px; background: #000; color: #fff; text-decoration: none; border: 1px solid rgba(255,255,255,.25); }
.store-badge:hover { color: #fff; background: #1a1a1a; }
.store-badge svg { width: 26px; height: 26px; }
.store-badge span { display: flex; flex-direction: column; line-height: 1.1; font-size: 1.1rem; font-weight: 700; }
.store-badge small { font-size: .6875rem; font-weight: 500; opacity: .85; }
.app-feats { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(255,255,255,.16); }
.app-feats li { padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,.16); display: grid; gap: 2px; }
.app-feats strong { color: #fff; font-size: 1.0625rem; }
.app-feats span { color: var(--stg-on-dark-muted); font-size: .9375rem; }

/* Medals (scores) */
.medal { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: .75rem; font-weight: 800; background: var(--stg-violet-soft); color: var(--stg-violet); }
.medal-1 { background: #E9B140; color: #1B2159; }
.medal-2 { background: #D5D7E0; color: #2B2D3A; }
.medal-3 { background: #E3B48A; color: #4A2A0C; }

/* Embedded hosted form (KD Forms) */
.form-embed { border: 1px solid var(--stg-line-2); border-radius: var(--stg-radius-lg); overflow: hidden; background: #fff; box-shadow: var(--stg-shadow-1); }
.form-embed iframe { display: block; width: 100%; min-height: 1400px; border: 0; }

/* Hours list */
.hours { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 0; }
.hours dt { font-weight: 700; } .hours dd { margin: 0; }
.hours .is-today { color: var(--stg-accent-dark) !important; font-weight: 700; }

/* ==========================================================================
   6. FOOTER
   ========================================================================== */
.site-footer { background: var(--stg-footer); color: var(--stg-on-dark-muted); padding-top: 4rem; font-size: .9375rem; position: relative; }
.site-footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--stg-overline); }
.site-footer a { color: #E6E8F7; text-decoration: none; }
.site-footer a:hover { color: #F5C25C; }
.site-footer h4 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.footer-logo { height: 76px; width: auto; margin-bottom: 1.1rem; }
.site-footer .hours dt { color: #E6E8F7; }
.site-footer .hours .is-today { color: #F5C25C !important; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255,255,255,.08); }
.socials a:hover { background: #F5C25C; color: #1B2159; }
.socials svg { width: 20px; height: 20px; }
.safesport { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.06); padding: 12px 14px; border-radius: 14px; }
.safesport img { height: 40px; width: auto; background: #fff; border-radius: 8px; padding: 4px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-block: 1.4rem 1.75rem; font-size: .8125rem; color: #8F95BD; }
.footer-bottom a { color: var(--stg-on-dark-muted); }

/* ==========================================================================
   7. MOTION + PRINT
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .actionbar, .site-footer, .hero__media { display: none !important; }
  body { padding: 0; background: #fff; color: #000; }
  .page-hero { background: none; color: #000; } .page-hero h1 { color: #000; }
}

/* ==========================================================================
   8. HEADER BRAND FIT (official logo is wider than a square badge)
   ========================================================================== */
@media (max-width: 430px) {
  .site-header .navbar-brand small { display: none; }
  .site-header .navbar-brand span { font-size: .98rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 992px) {
  .site-header .navbar-brand span { white-space: nowrap; }
}
@media (min-width: 992px) and (max-width: 1399.98px) {
  .site-header .navbar-brand small { display: none; }
}
@media (min-width: 992px) {
  .site-header .navbar-brand { flex: none; margin-right: 1rem; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .site-header .navbar-brand span { display: none; }
}
@media (min-width: 992px) and (max-width: 1399.98px) {
  .site-header .header-cta .btn-outline-primary { display: none !important; }
}

/* ===== Instagram feed (socials.html) ===== */
.ig-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
@media (min-width: 768px) { .ig-grid { grid-template-columns: repeat(4, 1fr); gap: 12px; } }
.ig-tile { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 10px; background: var(--stg-surface-3); border: 0; padding: 0; width: 100%; cursor: pointer; }
@media (min-width: 768px) { .ig-tile { border-radius: var(--stg-radius-sm); } }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s cubic-bezier(.2,.7,.2,1), opacity .4s; opacity: 0; }
.ig-tile img.is-loaded { opacity: 1; }
.ig-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27,33,89,0) 55%, rgba(27,33,89,.45)); opacity: 0; transition: opacity .3s; }
.ig-tile:hover img, .ig-tile:focus-visible img { transform: scale(1.06); }
.ig-tile:hover::after, .ig-tile:focus-visible::after { opacity: 1; }
.ig-tile:focus-visible { outline: 3px solid var(--stg-violet); outline-offset: 2px; }
.ig-badge { position: absolute; top: 8px; right: 8px; z-index: 1; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; background: rgba(16,26,61,.55); color: #fff; backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.ig-badge svg { width: 14px; height: 14px; }
.ig-skel { cursor: default; background: linear-gradient(100deg, var(--stg-surface-3) 30%, var(--stg-surface-2) 50%, var(--stg-surface-3) 70%); background-size: 300% 100%; animation: ig-shimmer 1.4s infinite linear; }
@keyframes ig-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) { .ig-skel { animation: none; } .ig-tile img { transition: none; } }
.ig-empty { grid-column: 1 / -1; text-align: center; padding: 2.5rem 1rem; border: 1.5px dashed var(--stg-line-2); border-radius: var(--stg-radius); color: var(--stg-muted); }
.ig-modal { overflow: hidden; border: 0; border-radius: var(--stg-radius); background: var(--stg-surface); }
.ig-modal__media { background: #0b1030; display: grid; place-items: center; min-height: 240px; }
.ig-modal__media img, .ig-modal__media video { display: block; width: 100%; max-height: 72vh; object-fit: contain; }
.ig-close { position: absolute; top: 12px; right: 12px; z-index: 2; background-color: rgba(16,26,61,.6); border-radius: 50%; padding: .6rem; opacity: 1; }
