/* ============================================================
   Chess4All — FBLA-inspired design system
   Navy / blue / gold palette (navy / gold), DM Sans (stand-in for Apercu Pro,
   FBLA's brand face), sans-serif headings, utility strip +
   white header with horizontal nav, navy hero/page banners,
   gold pill buttons, card grids and a navy footer.
   The physical chess board (chessboard-1.0.0.min.css + piece
   PNGs) is intentionally untouched.
   ============================================================ */
:root {
  --navy:        #00205b;
  --navy-dim:    #001640;
  --blue:        #0b5cc4;
  --blue-dark:   #0a3f8f;
  --cobalt:      #1f6fd6;
  --gold:        #f5b81c;
  --gold-dark:   #dca00b;
  --blue-tint:   #eef3fb;
  --blue-tint-2: #dbe6f6;
  --paper:       #ffffff;
  --ink:         #1a2233;
  --gray:        #5b6478;
  --gray-soft:   #a9b4cc;
  --line:        #dde4f0;

  --font-display: "DM Sans", "Apercu Pro", Arial, -apple-system, sans-serif;
  --font-body: "DM Sans", "Apercu Pro", Arial, -apple-system, sans-serif;

  --radius: 6px;
  --shadow-card: 0 2px 4px rgba(0,32,91,0.06), 0 8px 24px rgba(0,32,91,0.08);
  --wrap: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  font-size: 17px;
  line-height: 1.65;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
::selection { background: var(--blue-tint-2); color: var(--navy); }

a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.shell { min-height: 100vh; display: flex; flex-direction: column; }
.shell > .content { flex: 1; }

/* ---------- Utility strip ---------- */
.utility { background: var(--navy); color: #fff; font-size: 0.82rem; }
.utility__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 6px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.utility__tag { color: var(--gray-soft); display: none; }
@media (min-width: 720px) { .utility__tag { display: inline; } }
.utility__right { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.utility__link { color: var(--gold); font-weight: 700; letter-spacing: 0.02em; }
.utility__search { position: relative; }
.utility__search input {
  background: var(--navy-dim); border: 1px solid #2a4380; color: #fff;
  border-radius: 999px; padding: 5px 14px; font: inherit; width: 190px;
}
.utility__search input::placeholder { color: var(--gray-soft); }
.search-results {
  position: absolute; right: 0; top: calc(100% + 6px); width: 280px;
  background: #fff; color: var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow-card); overflow: hidden; z-index: 60;
}
.search-results a { display: block; padding: 9px 14px; color: var(--ink); border-bottom: 1px solid var(--line); }
.search-results a small { display: block; color: var(--gray); font-size: 0.75rem; }
.search-results a:hover { background: var(--blue-tint); text-decoration: none; }
.search-results__empty { padding: 10px 14px; color: var(--gray); }

/* ---------- Header / main nav ---------- */
.topbar {
  background: #fff; border-bottom: 1px solid var(--line);
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  box-shadow: 0 2px 10px rgba(0,32,91,0.06);
}
.topbar__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 78px;
  display: flex; align-items: center; gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); }
.brand:hover { text-decoration: none; }
.brand__logo { width: 52px; height: auto; display: block; }
.brand__title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.55rem;
  letter-spacing: -0.01em; color: var(--navy);
}

.mainnav { margin-left: auto; display: flex; align-items: stretch; height: 100%; }
.nav-item { position: relative; display: flex; align-items: stretch; }
.nav-top {
  display: flex; align-items: center; padding: 0 16px; height: 100%;
  font-weight: 700; font-size: 0.88rem; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--navy); border-bottom: 4px solid transparent;
}
.nav-top:hover { text-decoration: none; color: var(--blue); }
.nav-item.is-active > .nav-top { border-bottom-color: var(--gold); }
.nav-top--parent::after { content: "\25BE"; margin-left: 6px; font-size: 0.7rem; }

.nav-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 230px; background: #fff;
  border-top: 4px solid var(--gold); box-shadow: var(--shadow-card);
  display: none; padding: 8px 0;
}
.nav-item:hover > .nav-dropdown,
.nav-item:focus-within > .nav-dropdown { display: block; }
.nav-link { display: block; padding: 10px 20px; font-size: 0.95rem; color: var(--ink); }
.nav-link:hover { background: var(--blue-tint); color: var(--blue); text-decoration: none; }
.nav-link.is-active { color: var(--blue); font-weight: 700; background: var(--blue-tint); }

.menu-toggle {
  display: none; margin-left: auto; background: none; border: 2px solid var(--navy);
  color: var(--navy); font-size: 1.3rem; border-radius: var(--radius);
  cursor: pointer; padding: 2px 10px;
}

/* ---------- Hero (home) ---------- */
.hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(245,184,28,0.22), transparent 40%),
    radial-gradient(circle at 10% 110%, rgba(47,125,225,0.50), transparent 50%),
    linear-gradient(135deg, var(--navy) 0%, #07368a 100%);
  color: #fff;
}
.hero { position: relative; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute; inset: 0; background-size: cover; background-position: 50% 14%;
  opacity: 0; transition: opacity 1s ease;
}
.hero__slide.is-on { opacity: 1; }
/* navy tint keeps the white text readable on any photo */
.hero.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0,32,91,0.90) 0%, rgba(0,32,91,0.66) 38%, rgba(0,32,91,0.12) 75%, rgba(0,32,91,0.05) 100%);
}
.hero__inner { position: relative; z-index: 2; min-height: 460px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; max-width: var(--wrap); margin: 0 auto; padding: 84px 24px 92px; }
.hero__title {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 8vw, 5.6rem);
  line-height: 1.02; margin: 0 0 18px; color: #fff;
}
.hero__text { max-width: 560px; font-size: 1.15rem; color: var(--blue-tint-2); margin: 0 0 30px; }

.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px; font-weight: 700;
  font-size: 0.92rem; letter-spacing: 0.05em; text-transform: uppercase; margin: 0 12px 10px 0;
  border: 2px solid transparent; transition: background 0.15s, color 0.15s;
}
.btn:hover { text-decoration: none; }
.btn--gold { background: var(--gold); color: var(--navy); }
.btn--gold:hover { background: var(--gold-dark); }
.btn--outline { border-color: #fff; color: #fff; }
.btn--outline:hover { background: #fff; color: var(--navy); }

/* ---------- Inner page banner ---------- */
.page-banner { background: linear-gradient(135deg, var(--navy) 0%, #07368a 100%); border-bottom: 5px solid var(--gold); }
.page-banner__inner { max-width: var(--wrap); margin: 0 auto; padding: 48px 24px 44px; }
.page-banner h1 {
  font-family: var(--font-display); font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700; margin: 0; color: #fff; line-height: 1.15;
}
.page-banner .eyebrow {
  display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 10px;
}

/* ---------- Content ---------- */
.content { max-width: 920px; width: 100%; margin: 0 auto; padding: 48px 24px 100px; }
.content > .eyebrow { color: var(--gray); }

.content h1 {
  font-family: var(--font-display); font-size: 2.4rem; font-weight: 700;
  margin: 0 0 6px; color: var(--navy);
}
.content h2 {
  font-family: var(--font-display); font-size: 1.7rem; font-weight: 700;
  margin: 2.2em 0 0.6em; color: var(--navy); padding-bottom: 0.3em; position: relative;
}
.content h2::after {
  content: ""; display: block; width: 56px; height: 4px; background: var(--gold);
  margin-top: 8px; border-radius: 2px;
}
.content h3 { font-family: var(--font-body); font-weight: 700; font-size: 1.2rem; margin: 1.8em 0 0.5em; color: var(--blue-dark); }
.content p { margin: 0.9em 0; }
.content ul, .content ol { padding-left: 1.4em; }
.content li { margin: 0.5em 0; }
.content li::marker { color: var(--blue); font-weight: 700; }

.content code { font-family: "SF Mono", Consolas, monospace; background: var(--blue-tint); padding: 0.15em 0.4em; border-radius: 4px; font-size: 0.88em; }
.content pre { background: var(--navy); color: #fff; padding: 16px 18px; border-radius: var(--radius); overflow-x: auto; font-size: 0.85rem; }
.content pre code { background: none; padding: 0; color: inherit; }

.callout {
  border-left: 5px solid var(--gold); background: var(--blue-tint);
  padding: 14px 18px; border-radius: 0 var(--radius) var(--radius) 0;
  margin: 1.4em 0; font-size: 0.96rem;
}
.callout strong { color: var(--navy); }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: var(--blue-tint-2); border-top: 6px solid var(--gold); }
.footer__inner {
  max-width: var(--wrap); margin: 0 auto; padding: 52px 24px 36px;
  display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px;
}
.footer__logo { width: 56px; background: #fff; border-radius: 50%; padding: 4px; }
.footer__name { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: #fff; margin: 12px 0 6px; }
.footer__blurb { font-size: 0.92rem; margin: 0; max-width: 340px; }
.footer__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 28px; }
.footer__cols h4 {
  margin: 0 0 12px; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold);
}
.footer__cols a { display: block; color: var(--blue-tint-2); font-size: 0.93rem; padding: 4px 0; }
.footer__cols a:hover { color: #fff; }
.footer__bottom {
  border-top: 1px solid #07368a; text-align: center; padding: 18px 24px;
  font-size: 0.82rem; color: var(--gray-soft);
}
@media (max-width: 760px) { .footer__inner { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Mobile nav ---------- */
@media (max-width: 960px) {
  .menu-toggle { display: inline-block; }
  .topbar__inner { height: 68px; }
  .mainnav {
    position: absolute; top: 100%; left: 0; right: 0; background: #fff; height: auto;
    flex-direction: column; border-top: 1px solid var(--line);
    box-shadow: 0 12px 20px rgba(0,32,91,0.12); display: none;
    max-height: calc(100vh - 110px); overflow-y: auto;
  }
  .mainnav.is-open { display: flex; }
  .nav-item { flex-direction: column; }
  .nav-top { padding: 14px 24px; border-bottom: 1px solid var(--line); border-left: 4px solid transparent; }
  .nav-item.is-active > .nav-top { border-bottom-color: var(--line); border-left-color: var(--gold); }
  .nav-top--parent::after { display: none; }
  .nav-dropdown { position: static; display: block; box-shadow: none; border-top: none; background: var(--blue-tint); padding: 0; }
  .nav-link { padding: 10px 24px 10px 40px; }
  .utility__search input { width: 130px; }
  .hero__inner { padding: 56px 24px 60px; }
}

/* ============================================================
   Chess board example widget
   ============================================================ */
.board-figure {
  margin: 2em 0 2.4em;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.board-figure__grid {
  display: grid;
  grid-template-columns: minmax(220px, 340px) 1fr;
  gap: 0;
}

@media (max-width: 620px) {
  .board-figure__grid { grid-template-columns: 1fr; }
}

.board-figure__board-wrap {
  padding: 20px;
  background: var(--blue-tint);
  display: flex;
  align-items: center;
  justify-content: center;
}

.board-figure__board { width: 100%; max-width: 300px; }

.board-figure__side {
  padding: 18px 20px;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  min-width: 0;
}

@media (max-width: 620px) {
  .board-figure__side { border-left: none; border-top: 1px solid var(--line); }
}

.board-figure__caption {
  font-size: 0.88rem;
  color: var(--gray);
  margin: 0 0 12px;
}

.board-figure__scoresheet {
  font-family: var(--font-body);
  font-size: 0.86rem;
  line-height: 1.9;
  flex: 1;
  overflow-y: auto;
  max-height: 220px;
  border-top: 1px dashed var(--line);
  border-bottom: 1px dashed var(--line);
  padding: 8px 0;
}

.board-figure__scoresheet .move-row {
  display: grid;
  grid-template-columns: 2.2em 1fr 1fr;
  gap: 6px;
}

.board-figure__scoresheet .move-num { color: var(--gray-soft); }

.board-figure__scoresheet .ply {
  cursor: pointer;
  padding: 0 3px;
  border-radius: 2px;
}

.board-figure__scoresheet .ply:hover { background: var(--blue-tint-2); }
.board-figure__scoresheet .ply.is-current {
  background: var(--blue);
  color: var(--blue-tint);
}

.board-figure__controls {
  display: flex;
  gap: 6px;
  margin-top: 12px;
}

.board-figure__controls button {
  font-family: var(--font-body);
  font-size: 0.8rem;
  background: var(--navy);
  color: var(--blue-tint);
  border: none;
  border-radius: var(--radius);
  padding: 6px 10px;
  cursor: pointer;
}

.board-figure__controls button:hover { background: var(--navy-dim); }
.board-figure__controls button:disabled { opacity: 0.35; cursor: default; }

.board-figure__status {
  font-family: var(--font-body);
  font-size: 0.76rem;
  color: var(--gray);
  margin-top: 10px;
}

.mode-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cobalt);
  border: 1px solid var(--cobalt);
  border-radius: 10px;
  padding: 1px 8px;
  margin-bottom: 10px;
}

/* ============================================================
   Prev/Next page footer
   ============================================================ */
.page-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3em;
  padding-top: 1.4em;
  border-top: 1px solid var(--line);
  gap: 16px;
}

.page-nav a {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 14px;
  font-size: 0.86rem;
  color: var(--ink);
}

.page-nav a:hover { border-color: var(--blue); text-decoration: none; }
.page-nav a.next { text-align: right; }
.page-nav__label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (max-width: 860px) {
  .board-figure__board { max-width: 100%; }
}

/* ============================================================
   Events calendar widget
   ============================================================ */
.cal-widget__grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  margin: 1.6em 0 2.4em;
}

@media (max-width: 640px) {
  .cal-widget__grid { grid-template-columns: 1fr; }
}

.cal-widget__month {
  background: var(--blue-tint);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.cal-widget__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.cal-widget__nav button {
  background: var(--navy);
  color: var(--blue-tint);
  border: none;
  border-radius: var(--radius);
  width: 26px;
  height: 26px;
  cursor: pointer;
  font-family: var(--font-body);
}
.cal-widget__nav button:hover { background: var(--navy-dim); }

.cal-widget__label {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
}

.cal-widget__weekdays,
.cal-widget__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}

.cal-widget__weekdays span {
  font-family: var(--font-body);
  font-size: 0.68rem;
  color: var(--gray);
  padding: 4px 0;
}

.cal-day {
  position: relative;
  font-size: 0.82rem;
  padding: 6px 0;
  border-radius: var(--radius);
  color: var(--ink);
}

.cal-day--empty { visibility: hidden; }
.cal-day--today { background: var(--blue-tint-2); font-weight: 700; }
.cal-day--event { color: var(--blue-dark); font-weight: 600; }

.cal-dot {
  display: block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blue);
  margin: 2px auto 0;
}

.cal-widget__list-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray);
  margin: 0 0 12px;
}

.cal-event {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.cal-event:last-child { border-bottom: none; }

.cal-event__date {
  background: var(--navy);
  color: var(--blue-tint);
  border-radius: var(--radius);
  text-align: center;
  padding: 6px 0;
  height: fit-content;
}
.cal-event__day { display: block; font-family: var(--font-display); font-size: 1.2rem; font-weight: 700; line-height: 1; }
.cal-event__mon { display: block; font-family: var(--font-body); font-size: 0.62rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gray-soft); }

.cal-event__title { margin: 0; font-weight: 600; color: var(--navy); }
.cal-event__meta { margin: 2px 0; font-family: var(--font-body); font-size: 0.78rem; color: var(--gray); }
.cal-event__desc { margin: 4px 0 0; font-size: 0.9rem; }

/* ============================================================
   Photo gallery
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
  margin: 1.6em 0 2.4em;
}

.gallery-tile {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--blue-tint);
}

.gallery-tile img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  background: var(--blue-tint-2);
}

.gallery-tile__placeholder {
  width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: var(--gray-soft);
  background: repeating-linear-gradient(135deg, var(--blue-tint), var(--blue-tint) 10px, var(--blue-tint-2) 10px, var(--blue-tint-2) 20px);
}

.gallery-tile__caption {
  padding: 8px 10px;
  font-size: 0.82rem;
  color: var(--gray);
}

/* ============================================================
   Sign-up form
   ============================================================ */
.signup-form {
  margin: 1.6em 0 2.4em;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  background: var(--blue-tint);
  max-width: 520px;
}

.signup-form .field { margin-bottom: 16px; }

.signup-form label {
  display: block;
  font-family: var(--font-body);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray);
  margin-bottom: 5px;
}

.signup-form input,
.signup-form select,
.signup-form textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.94rem;
  background: var(--paper);
  color: var(--ink);
}

.signup-form textarea { resize: vertical; min-height: 70px; }

.signup-form button {
  background: var(--gold);
  color: var(--navy);
  border: none;
  border-radius: var(--radius);
  padding: 12px 26px;
  font-weight: 600;
  cursor: pointer;
}
.signup-form button:hover { background: var(--gold-dark); }

/* ============================================================
   Team roster
   ============================================================ */
.roster {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
  margin: 1.6em 0 2.4em;
}

.roster-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  background: var(--blue-tint);
}

.roster-card__photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: calc(var(--radius) - 4px);
  margin: 0 0 10px;
  display: block;
}

.roster-card__name { font-family: var(--font-display); font-weight: 600; color: var(--navy); margin: 0 0 2px; }
.roster-card__role { font-family: var(--font-body); font-size: 0.75rem; color: var(--blue-dark); text-transform: uppercase; letter-spacing: 0.04em; margin: 0 0 8px; }
.roster-card__bio { font-size: 0.9rem; margin: 0; color: var(--ink); }

.page-nav > span:empty { display: none; }
.page-nav a { max-width: 100%; }
.page-nav a.next { margin-left: auto; }
.page-nav a.prev:only-child { max-width: 50%; }
.page-nav a.next:only-child { max-width: 50%; }
.page-nav a:hover { border-color: var(--gold); box-shadow: var(--shadow-card); }

/* sans-serif display headings: slightly tighter tracking */
.hero__title, .page-banner h1, .content h1, .content h2 { letter-spacing: -0.02em; }

@media (prefers-reduced-motion: reduce) { .hero__slide { transition: none; } }

/* ---------- Hero photo arrows + dots ---------- */
.hero__controls {
  position: absolute; z-index: 3; right: max(24px, calc((100% - var(--wrap)) / 2 + 24px));
  top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; gap: 12px;
}
.hero__arrow {
  width: 48px; height: 48px; border-radius: 50%; cursor: pointer;
  background: rgba(0,32,91,0.55); color: #fff; border: 2px solid #fff;
  font-size: 1.1rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.hero__arrow:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.hero__dots {
  position: absolute; z-index: 3; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; gap: 10px;
}
.hero__dot {
  width: 12px; height: 12px; border-radius: 50%; padding: 0; cursor: pointer;
  background: transparent; border: 2px solid #fff;
}
.hero__dot.is-on { background: var(--gold); border-color: var(--gold); }
@media (max-width: 760px) {
  .hero__controls { top: auto; bottom: 14px; right: 16px; transform: none; flex-direction: row; }
  .hero__arrow { width: 40px; height: 40px; }
  .hero__dots { left: 24px; transform: none; bottom: 28px; }
}

/* ============================================================
   Home, photos, stats, chart
   ============================================================ */
.btn--navy { background: var(--navy); color: #fff; margin-top: 8px; }
.btn--navy:hover { background: var(--blue); }
.content a.btn { text-decoration: none; }

.lede { font-size: 1.25rem; line-height: 1.55; color: var(--navy); margin: 0 0 1.4em; }
.meta { color: var(--gray); margin-top: -0.3em; }

.fact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 1.6em 0 0.5em; }
.fact { display: flex; flex-direction: column; gap: 2px; padding: 18px 20px; border-left: 1px solid var(--line); min-width: 0; }
.fact:first-child { border-left: none; }
.fact__label { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); }
.fact__value { font-weight: 700; font-size: 1.15rem; color: var(--navy); line-height: 1.25; }
.fact__sub { font-size: 0.88rem; color: var(--gray); line-height: 1.4; }
@media (max-width: 760px) {
  .fact-grid { grid-template-columns: 1fr 1fr; }
  .fact:nth-child(3) { border-left: none; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
}

.photo-feature { margin: 1.6em 0; }
.photo-feature img { display: block; width: 100%; height: auto; border-radius: var(--radius); }
.photo-feature figcaption { font-size: 0.88rem; color: var(--gray); margin-top: 8px; }

.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; margin: 1.4em 0; }
.split img { width: 100%; height: auto; border-radius: var(--radius); display: block; }
@media (max-width: 700px) { .split { grid-template-columns: 1fr; } }
.big-stat { margin: 0; font-weight: 700; color: var(--navy); font-size: 1.1rem; }
.big-stat span { display: block; font-size: 4rem; line-height: 1; color: var(--blue); letter-spacing: -0.03em; }

.cta-band {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--navy); color: #fff; border-radius: var(--radius); padding: 28px 32px; margin: 3.2em 0 0;
  border-bottom: 5px solid var(--gold);
}
.cta-band h2 { color: #fff; margin: 0 0 4px; font-size: 1.5rem; }
.cta-band h2::after { display: none; }
.cta-band p { margin: 0; color: var(--blue-tint-2); }
.cta-band .btn { margin: 0; }

/* stats + chart */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 1.6em 0; }
.stat { background: var(--blue-tint); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat__num { font-size: 2.4rem; line-height: 1; font-weight: 700; color: var(--navy); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stat__num small { font-size: 1rem; font-weight: 500; color: var(--gray); letter-spacing: 0; }
.stat__label { font-size: 0.88rem; color: var(--gray); line-height: 1.35; }
@media (max-width: 760px) { .stat-grid { grid-template-columns: 1fr 1fr; } .stat__num { font-size: 2rem; } }

.chart-card { position: relative; margin: 1.6em 0 2em; padding: 20px 20px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.chart-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 10px; }
.chart-card__title { font-weight: 700; color: var(--navy); }
.chart-card__legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 0.88rem; color: var(--ink); }
.chart-card__legend span { display: inline-flex; align-items: center; gap: 7px; }
.sw { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.sw--returning { background: #3d6fc9; }
.sw--new { background: #c78a00; }
.chart { width: 100%; }
.chart svg { display: block; max-width: 100%; overflow: visible; }
.chart .grid { stroke: #e4e9f3; stroke-width: 1; }
.chart .axis { stroke: #b9c3d9; stroke-width: 1; }
.chart .tick, .chart .xtag { fill: var(--gray); font-size: 12px; font-family: var(--font-body); }
.chart .xlab { fill: var(--ink); font-size: 12px; font-family: var(--font-body); }
.chart .total { fill: var(--ink); font-size: 13px; font-weight: 700; font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.chart .bar--returning { fill: #3d6fc9; }
.chart .bar--new { fill: #c78a00; }
.chart .col { outline: none; cursor: default; }
.chart .col:hover .bar, .chart .col:focus .bar { filter: brightness(1.12); }
.chart .col:focus-visible .hit { stroke: var(--navy); stroke-width: 2; }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; background: var(--navy); color: #fff;
  border-radius: var(--radius); padding: 10px 12px; font-size: 0.85rem; line-height: 1.4;
  display: flex; flex-direction: column; gap: 1px; max-width: 240px; box-shadow: var(--shadow-card);
}
.chart-tip[hidden] { display: none; }
.chart-tip em { font-style: normal; color: var(--blue-tint-2); margin-top: 3px; }

.attendance__tabletitle { margin-top: 2em; }
.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.data-table th { text-align: left; font-size: 0.76rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray); padding: 8px 12px; border-bottom: 2px solid var(--navy); }
.data-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table th.num { text-align: right; }
.pill { display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; background: var(--gold); color: var(--navy); border-radius: 999px; padding: 1px 8px; margin-left: 6px; }

/* timeline */
.timeline { list-style: none; padding: 0 !important; margin: 1.2em 0; border-left: 3px solid var(--line); }
.timeline li { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 10px 0 10px 20px; margin: 0; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -9px; top: 18px; width: 15px; height: 15px; border-radius: 50%; background: var(--gold); border: 3px solid #fff; }
.timeline__date { font-weight: 700; color: var(--blue); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: 2px; } }

/* gallery */
.gallery-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
button.gallery-tile { padding: 0; font: inherit; color: inherit; text-align: left; cursor: zoom-in; display: flex; flex-direction: column; background: #fff; transition: box-shadow 0.15s, transform 0.15s; }
button.gallery-tile:hover { box-shadow: var(--shadow-card); transform: translateY(-2px); }
.gallery-tile--wide { grid-column: span 2; }
@media (max-width: 560px) { .gallery-tile--wide { grid-column: span 1; } }
.gallery-tile img { height: 200px; }
.gallery-tile--wide img { height: 200px; }
.gallery-tile__caption { display: block; padding: 10px 12px; font-size: 0.9rem; color: var(--ink); line-height: 1.4; }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(0,16,48,0.92); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); max-height: 100%; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 120px); border-radius: var(--radius); object-fit: contain; }
.lightbox figcaption { color: #fff; text-align: center; }
.lightbox__close { position: absolute; top: 14px; right: 18px; background: none; border: 2px solid #fff; color: #fff; width: 42px; height: 42px; border-radius: 50%; font-size: 1.6rem; line-height: 1; cursor: pointer; }

.hero__btns { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__btns .btn { margin: 0; }
