/* ==========================================================================
   Harrison Youth Flag Football
   Design tokens first, then base, layout, components, pages, utilities.
   Mobile-first. Brand: navy #1E2E57 + red #E22A3A, sampled from the logo.
   ========================================================================== */

/* --- Fonts (self hosted: no third party origin, no render blocking request) -- */
@font-face {
  font-family: "Anton";
  src: url("/assets/fonts/anton-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var.woff2") format("woff2");
  font-weight: 400 800; font-style: normal; font-display: swap;
}

/* --- Design tokens ------------------------------------------------------ */
:root {
  /* Brand */
  --navy:        #1E2E57;
  --navy-dark:   #16223F;
  --navy-deep:   #0E1730;
  --navy-soft:   #2A3E70;
  --red:         #E22A3A;
  --red-dark:    #C21F2E;
  --red-light:   #F0555F;   /* red that clears 4.5:1 on the dark navy footer */
  --red-soft:    #FDECEE;

  /* Neutrals */
  --white:       #FFFFFF;
  --ink:         #131A2C;
  --muted:       #5B6580;
  --line:        #E1E6F0;
  --bg:          #FFFFFF;
  --bg-soft:     #F5F7FB;
  --bg-tint:     #EEF2F9;

  /* Type */
  --font-display: "Anton", "Arial Narrow", Impact, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --step-0:  1rem;
  --step-1:  clamp(1.06rem, 0.99rem + 0.35vw, 1.25rem);
  --step-2:  clamp(1.25rem, 1.12rem + 0.65vw, 1.6rem);
  --step-3:  clamp(1.6rem, 1.35rem + 1.2vw, 2.25rem);
  --step-4:  clamp(2rem, 1.55rem + 2.2vw, 3.1rem);
  --step-5:  clamp(2.6rem, 1.75rem + 4.2vw, 4.75rem);

  /* Space */
  --gap:        1rem;
  --gap-lg:     1.5rem;
  --pad-x:      1.25rem;
  --section-y:  clamp(3rem, 7vw, 5.5rem);
  --maxw:       1180px;
  --maxw-text:  68ch;

  /* Shape */
  --radius:    14px;
  --radius-sm: 8px;
  --radius-lg: 20px;
  --shadow:      0 2px 6px rgba(19, 26, 44, .06), 0 12px 28px rgba(19, 26, 44, .07);
  --shadow-lg:   0 6px 14px rgba(19, 26, 44, .09), 0 24px 60px rgba(19, 26, 44, .13);
  --ring:        0 0 0 3px rgba(226, 42, 58, .35);

  --header-h: 68px;
}

/* --- Reset / base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.08; letter-spacing: .01em; }
h1, h2 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; letter-spacing: .02em; }
h1 { font-size: var(--step-5); }
h2 { font-size: var(--step-4); }
h3 { font-size: var(--step-2); font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 1em; padding-left: 1.25em; }
li + li { margin-top: .35em; }
hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }
table { border-collapse: collapse; width: 100%; }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--red); color: #fff; padding: .75rem 1.25rem;
  font-weight: 700; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

/* --- Layout ------------------------------------------------------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad-x); }
.section { padding-block: var(--section-y); }
.section--soft { background: var(--bg-soft); }
.section--tint { background: var(--bg-tint); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: rgba(255,255,255,.82); }
.section--navy a { color: #fff; }

.section-head { max-width: var(--maxw-text); margin-bottom: clamp(1.5rem, 4vw, 2.5rem); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: var(--step-1); margin-bottom: 0; }
.section--navy .section-head p { color: rgba(255,255,255,.82); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .78rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .14em; color: var(--red-dark); margin-bottom: .75rem;
}
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--red); border-radius: 2px; }
.section--navy .eyebrow { color: #FF8A93; }
.section--navy .eyebrow::before { background: var(--red); }

.grid { display: grid; gap: var(--gap-lg); }
/* Breakpoints ascend so the widest matching rule wins. */
@media (min-width: 560px) { .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 620px) { .grid--2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 620px) { .grid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 860px) { .grid--4 { grid-template-columns: repeat(4, 1fr); } }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.6rem; min-height: 48px;
  font-family: var(--font-body); font-size: .95rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .07em; text-decoration: none;
  border: 2px solid transparent; border-radius: var(--radius-sm); cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--red); color: #fff; box-shadow: 0 4px 0 var(--red-dark); }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--navy { background: var(--navy); color: #fff; box-shadow: 0 4px 0 var(--navy-deep); }
.btn--navy:hover { background: var(--navy-dark); color: #fff; }
.btn--ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn--ghost:hover { background: var(--navy); color: #fff; }
.btn--onnavy { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn--onnavy:hover { background: #fff; color: var(--navy); border-color: #fff; }
.btn--block { width: 100%; }
.btn--sm { padding: .65rem 1.1rem; min-height: 40px; font-size: .8rem; }
.btn[aria-disabled="true"], .btn:disabled { opacity: .55; pointer-events: none; box-shadow: none; }

.btn-row { display: flex; flex-wrap: wrap; gap: .85rem; }
.btn-row--center { justify-content: center; }
@media (max-width: 479px) { .btn-row .btn { flex: 1 1 100%; } }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 800; font-size: .85rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--red-dark); text-decoration: none;
}
.link-arrow::after { content: "\2192"; transition: transform .15s ease; }
.link-arrow:hover::after { transform: translateX(4px); }

/* --- Alert bar (CMS driven) --------------------------------------------- */
.alertbar { background: var(--red); color: #fff; font-weight: 600; }
.alertbar__inner {
  display: flex; align-items: flex-start; gap: .7rem;
  padding-block: .7rem; font-size: .93rem; line-height: 1.45;
}
.alertbar__tag {
  flex: none; background: rgba(0,0,0,.22); color: #fff;
  font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase;
  padding: .25rem .5rem; border-radius: 4px; margin-top: .1rem;
}
.alertbar a { color: #fff; text-decoration: underline; }

/* --- Header / nav ------------------------------------------------------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; flex: none; }
/* The eagle mark plus a typeset wordmark, rather than the full lockup: at
   header size the lockup's own text is too small to read. */
.brand img { height: 32px; width: auto; }
.brand__text {
  font-family: var(--font-display); text-transform: uppercase;
  font-size: .82rem; line-height: 1.04; color: var(--navy); letter-spacing: .02em;
}
.brand__text span { display: block; color: var(--red); }
@media (min-width: 420px) { .brand img { height: 36px; } .brand__text { font-size: .95rem; } }
@media (min-width: 900px) { .brand img { height: 42px; } .brand__text { font-size: 1.1rem; } }

.nav-toggle {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--navy); color: #fff; border: 0; border-radius: var(--radius-sm);
  padding: .6rem .85rem; min-height: 44px; font: inherit; font-weight: 800;
  font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; cursor: pointer;
}
.nav-toggle__bars { display: block; width: 18px; height: 2px; background: #fff; position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: #fff;
}
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

.nav { display: none; }
.nav.is-open {
  display: block; position: absolute; left: 0; right: 0; top: 100%;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  padding: .5rem var(--pad-x) 1.25rem;
}
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav__list li + li { margin-top: 0; border-top: 1px solid var(--line); }
.nav__list a {
  display: block; padding: .95rem .25rem; text-decoration: none;
  font-weight: 700; font-size: .95rem; text-transform: uppercase; letter-spacing: .06em; color: var(--navy);
}
.nav__list a[aria-current="page"] { color: var(--red); }
.nav__cta { margin-top: 1rem; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .nav, .nav.is-open {
    display: block; position: static; padding: 0; border: 0; box-shadow: none; background: none;
  }
  .nav__list { display: flex; align-items: center; gap: .35rem; }
  .nav__list li + li { margin-top: 0; border-top: 0; }
  .nav__list a { padding: .5rem .7rem; font-size: .82rem; border-radius: var(--radius-sm); }
  .nav__list a:hover { background: var(--bg-tint); color: var(--navy); }
  .nav__list a[aria-current="page"] { color: var(--red); background: var(--red-soft); }
  .nav__cta { margin-top: 0; margin-left: .6rem; }
  .nav__cta .btn { padding: .7rem 1.1rem; min-height: 42px; font-size: .78rem; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  background: linear-gradient(160deg, var(--navy-soft) 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff; text-align: center;
  padding-block: clamp(2.75rem, 9vw, 5.5rem);
}
/* Yard lines, drawn in CSS so the hero looks finished with no photo yet. */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.075) 0 2px, transparent 2px 84px);
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent);
}
.hero::after {
  content: ""; position: absolute; z-index: -2; inset: auto -10% -55% -10%; height: 70%;
  background: radial-gradient(60% 100% at 50% 0%, rgba(226,42,58,.5), transparent 70%);
}
/* Photo slot: set --hero-photo on .hero and the image layers in behind the type. */
.hero__photo {
  position: absolute; inset: 0; z-index: -1;
  background-size: cover; background-position: center;
  opacity: .3; mix-blend-mode: luminosity;
}
.hero__mark { width: clamp(230px, 56vw, 430px); margin: 0 auto clamp(1.25rem, 3vw, 1.9rem); filter: drop-shadow(0 8px 26px rgba(0,0,0,.4)); }
.hero__badge {
  display: inline-block; background: var(--red); color: #fff;
  font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .14em;
  padding: .45rem .85rem; border-radius: 100px; margin-bottom: 1.1rem;
}
.hero h1 { color: #fff; margin-bottom: .35em; text-shadow: 0 4px 24px rgba(0,0,0,.3); }
.hero__sub {
  max-width: 46ch; margin: 0 auto clamp(1.5rem, 4vw, 2rem);
  font-size: var(--step-1); color: rgba(255,255,255,.88);
}
.hero .btn-row { justify-content: center; }

/* Compact hero for interior pages */
.pagehero {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--navy-soft), var(--navy) 55%, var(--navy-deep));
  color: #fff; padding-block: clamp(2.25rem, 6vw, 3.5rem);
}
.pagehero::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.07) 0 2px, transparent 2px 84px);
}
.pagehero .wrap { position: relative; }
.pagehero h1 { color: #fff; font-size: var(--step-4); margin-bottom: .25em; }
.pagehero p { color: rgba(255,255,255,.85); max-width: 56ch; font-size: var(--step-1); margin-bottom: 0; }

.crumbs { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; margin-bottom: .85rem; color: rgba(255,255,255,.6); }
.crumbs a { color: rgba(255,255,255,.85); text-decoration: none; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs span { padding: 0 .4rem; }

/* --- Cards -------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(1.25rem, 3vw, 1.75rem); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: .35rem;
}
.card h3 { margin-bottom: .15em; }
.card p { color: var(--muted); }
.card__foot { margin-top: auto; padding-top: 1rem; }

/* Big linked action cards on the home page */
.actioncard {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 210px; padding: 1.4rem; border-radius: var(--radius); overflow: hidden;
  background: var(--navy); color: #fff; text-decoration: none;
  border: 0; box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.actioncard::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 2px, transparent 2px 56px);
}
.actioncard::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--red);
}
.actioncard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); color: #fff; }
.actioncard > * { position: relative; }
.actioncard__num {
  font-family: var(--font-display); font-size: 3.5rem; line-height: 1;
  color: rgba(255,255,255,.16); margin-bottom: auto;
}
.actioncard h3 { font-family: var(--font-display); font-weight: 400; text-transform: uppercase; font-size: var(--step-3); margin-bottom: .15em; letter-spacing: .02em; }
.actioncard p { color: rgba(255,255,255,.8); font-size: .95rem; margin-bottom: .8rem; }
.actioncard__go { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: #fff; }
.actioncard__go::after { content: " \2192"; }
.actioncard--red { background: var(--red); }
.actioncard--red::after { background: var(--navy); }

/* Stat strip */
.stats { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 620px) { .stats { grid-template-columns: repeat(3, 1fr); } }
.stat { background: #fff; padding: 1.35rem 1.25rem; text-align: center; }
.stat__k { font-family: var(--font-display); font-size: var(--step-3); color: var(--navy); line-height: 1.1; text-transform: uppercase; }
.stat__l { font-size: .76rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }

/* --- Mission block ------------------------------------------------------ */
.mission { text-align: center; }
.mission p {
  font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(1.15rem, 2.4vw, 1.85rem); line-height: 1.35; letter-spacing: .015em;
  color: #fff; max-width: 30ch; margin-inline: auto;
}
.mission .eyebrow { justify-content: center; }

/* --- News --------------------------------------------------------------- */
.badge {
  display: inline-block; font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .11em;
  padding: .28rem .6rem; border-radius: 100px;
  background: var(--bg-tint); color: var(--navy);
}
.badge--cancellation { background: var(--red); color: #fff; }
.badge--weather      { background: #FFF1D6; color: #8A5A00; }
.badge--schedule     { background: #E4EEFF; color: #1F4FA8; }
.badge--announcement { background: var(--navy); color: #fff; }

.post {
  background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--navy);
  border-radius: var(--radius); padding: clamp(1.15rem, 3vw, 1.6rem); box-shadow: var(--shadow);
}
.post + .post { margin-top: 1.1rem; }
.post--urgent { border-left-color: var(--red); background: #FFFBFB; }
.post__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.post__date { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.post h3 { font-size: var(--step-2); margin-bottom: .4em; }
.post__body { color: var(--ink); }
.post__body > *:last-child { margin-bottom: 0; }
.post__body a { color: var(--red); font-weight: 600; }
.post__body ul, .post__body ol { color: var(--ink); }
.post__body blockquote {
  margin: 1em 0; padding: .5em 0 .5em 1em; border-left: 3px solid var(--line);
  color: var(--muted); font-style: italic;
}

/* --- Schedule / download rows ------------------------------------------- */
.dl-list { display: grid; gap: .9rem; }
.dl {
  display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.25rem; box-shadow: var(--shadow);
}
.dl__icon {
  flex: none; width: 44px; height: 44px; border-radius: var(--radius-sm);
  display: grid; place-items: center; background: var(--navy); color: #fff;
  font-family: var(--font-display); font-size: .8rem; letter-spacing: .04em;
}
.dl__main { flex: 1 1 200px; min-width: 0; }
.dl__title { font-weight: 800; font-size: var(--step-1); color: var(--navy); line-height: 1.25; }
.dl__note { font-size: .82rem; color: var(--muted); }
.dl__action { flex: none; display: flex; gap: .5rem; }
@media (max-width: 520px) { .dl__action { width: 100%; } .dl__action .btn { flex: 1 1 0; } }
.dl--empty { background: var(--bg-soft); box-shadow: none; border-style: dashed; }
.dl--empty .dl__icon { background: var(--line); color: var(--muted); }
.dl--empty .dl__title { color: var(--muted); }


/* --- Inline PDF viewer -------------------------------------------------- */
.pdfview {
  position: fixed; inset: 0; z-index: 300; display: none;
  flex-direction: column; background: rgba(9,14,30,.94);
}
.pdfview.is-open { display: flex; }
.pdfview__bar {
  flex: none; display: flex; align-items: center; gap: .75rem;
  padding: .7rem var(--pad-x); background: var(--navy-deep);
  border-bottom: 1px solid rgba(255,255,255,.14);
}
.pdfview__title {
  flex: 1; min-width: 0; color: #fff; font-weight: 800;
  font-size: .9rem; text-transform: uppercase; letter-spacing: .07em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.pdfview__close {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: rgba(255,255,255,.12); color: #fff; font-size: 1.5rem;
  line-height: 1; cursor: pointer;
}
.pdfview__close:hover { background: rgba(255,255,255,.28); }
/* Block layout, not centred flex: a canvas wider than the container would
   overflow both sides under align-items:center and the left edge becomes
   unreachable by scrolling. */
.pdfview__body {
  flex: 1; overflow: auto; -webkit-overflow-scrolling: touch;
  padding: 1rem .75rem 2rem; text-align: center;
  touch-action: pan-x pan-y pinch-zoom;
}
.pdfview__body > * + * { margin-top: 1rem; }
/* White sheet behind each page so a transparent PDF stays readable. */
.pdfview__page {
  display: inline-block; background: #fff;
  border-radius: var(--radius-sm); box-shadow: var(--shadow-lg);
}
.pdfview__status { color: rgba(255,255,255,.8); font-size: .95rem; margin: 2rem 0 1rem; }
.pdfview__hint {
  position: sticky; left: 0; color: rgba(255,255,255,.65);
  font-size: .8rem; margin: 0 0 .75rem;
}
@media (max-width: 520px) { .pdfview__bar .btn { padding: .5rem .7rem; font-size: .7rem; } }

/* --- Photo gallery ------------------------------------------------------ */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem; }
@media (min-width: 620px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: .85rem; } }
@media (min-width: 960px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.gallery__item {
  position: relative; display: block; padding: 0; border: 0; cursor: pointer;
  font: inherit; color: inherit; text-align: left; width: 100%;
  aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius-sm);
  background: var(--bg-tint); box-shadow: var(--shadow);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.gallery__item:hover img { transform: scale(1.05); }
.gallery__cap {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .7rem .55rem;
  background: linear-gradient(transparent, rgba(14,23,48,.85));
  color: #fff; font-size: .78rem; font-weight: 600; text-align: left;
}

/* Placeholder tiles: clearly graphic, never mistaken for real photos */
.ph {
  display: grid; place-items: center; width: 100%; height: 100%;
  background:
    repeating-linear-gradient(90deg, rgba(255,255,255,.09) 0 2px, transparent 2px 34px),
    linear-gradient(150deg, var(--navy-soft), var(--navy) 60%, var(--navy-deep));
}
.ph span {
  font-family: var(--font-display); text-transform: uppercase; letter-spacing: .1em;
  font-size: .78rem; color: rgba(255,255,255,.5); text-align: center; padding: .5rem;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: none;
  background: rgba(9,14,30,.94); padding: 1rem;
  align-items: center; justify-content: center;
}
.lightbox[open], .lightbox.is-open { display: flex; }
.lightbox img { max-width: min(100%, 1100px); max-height: 82vh; border-radius: var(--radius-sm); }
.lightbox__cap { color: #fff; text-align: center; margin-top: .85rem; font-size: .9rem; }
.lightbox__close, .lightbox__nav {
  position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0;
  width: 48px; height: 48px; border-radius: 50%; font-size: 1.4rem; cursor: pointer; line-height: 1;
}
.lightbox__close { top: 1rem; right: 1rem; }
.lightbox__nav--prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 1rem; top: 50%; transform: translateY(-50%); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.28); }

/* --- Sponsors ----------------------------------------------------------- */
.sponsors { display: grid; grid-template-columns: repeat(2, 1fr); gap: .85rem; }
@media (min-width: 620px) { .sponsors { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 960px) { .sponsors { grid-template-columns: repeat(4, 1fr); } }
.sponsor {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem; text-align: center; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: .5rem;
  box-shadow: var(--shadow); transition: transform .18s ease, box-shadow .18s ease;
}
.sponsor:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.sponsor__logo { height: 68px; width: 100%; display: grid; place-items: center; }
.sponsor__logo img { max-height: 68px; width: auto; object-fit: contain; }
.sponsor__logo--none {
  border-radius: var(--radius-sm); background: var(--bg-tint);
  font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); letter-spacing: .04em;
}
.sponsor__name { font-weight: 800; font-size: .98rem; color: var(--navy); line-height: 1.25; }
.sponsor__desc { font-size: .83rem; color: var(--muted); line-height: 1.5; }
.sponsor__link { margin-top: auto; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--red-dark); }

/* Compact logo wall for the home page */
.sponsors--wall { grid-template-columns: repeat(3, 1fr); }
@media (min-width: 700px) { .sponsors--wall { grid-template-columns: repeat(6, 1fr); } }
.sponsors--wall .sponsor { padding: .8rem; }
.sponsors--wall .sponsor__desc, .sponsors--wall .sponsor__link { display: none; }
.sponsors--wall .sponsor__logo { height: 52px; }
.sponsors--wall .sponsor__logo img { max-height: 52px; }
.sponsors--wall .sponsor__logo--none { font-size: 1.15rem; }
.sponsors--wall .sponsor__name { font-size: .8rem; }

/* --- Steps -------------------------------------------------------------- */
.steps { counter-reset: step; display: grid; gap: 1.1rem; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding-left: 3.4rem; }
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: -.15rem;
  width: 2.5rem; height: 2.5rem; border-radius: 50%;
  background: var(--red); color: #fff; display: grid; place-items: center;
  font-family: var(--font-display); font-size: 1.15rem;
}
.step h3 { font-size: var(--step-1); margin-bottom: .2em; }
.step p { color: var(--muted); font-size: .93rem; margin-bottom: 0; }

/* --- Divisions table ---------------------------------------------------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); }
.table-wrap table { min-width: 460px; }
th, td { text-align: left; padding: .85rem 1.1rem; border-bottom: 1px solid var(--line); }
th { background: var(--navy); color: #fff; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:nth-child(even) td { background: var(--bg-soft); }
td strong { color: var(--navy); }

/* --- Callout ------------------------------------------------------------ */
.callout {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--red-soft); border: 1px solid #F6C9CE; border-left: 5px solid var(--red);
  border-radius: var(--radius); padding: 1.15rem 1.35rem;
}
.callout__icon { flex: none; font-size: 1.4rem; line-height: 1.2; }
.callout__title { font-size: var(--step-1); font-weight: 800; line-height: 1.25; margin: 0 0 .25em; color: var(--ink); }
.callout p { margin-bottom: 0; font-size: .95rem; color: #6C2027; }
.callout--info { background: #EEF3FC; border-color: #CBDBF5; border-left-color: var(--navy); }
.callout--info p { color: var(--muted); }

/* --- Forms -------------------------------------------------------------- */
.form { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } }
.field { display: grid; gap: .35rem; }
.field label { font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; color: var(--navy); }
.field .req { color: var(--red); }
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 2px solid var(--line); border-radius: var(--radius-sm);
  padding: .8rem .9rem; width: 100%; min-height: 48px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--navy); box-shadow: var(--ring);
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__note { font-size: .82rem; color: var(--muted); }
.form__status { border-radius: var(--radius-sm); padding: .85rem 1rem; font-weight: 600; font-size: .93rem; }
.form__status[data-state="ok"]   { background: #E7F6EC; color: #17603A; border: 1px solid #B7E3C7; }
.form__status[data-state="err"]  { background: var(--red-soft); color: #8E1F2A; border: 1px solid #F6C9CE; }
.form__status[hidden] { display: none; }

/* --- Contact split ------------------------------------------------------ */
.contact-grid { display: grid; gap: clamp(1.75rem, 5vw, 3rem); }
@media (min-width: 900px) { .contact-grid { grid-template-columns: 1fr 1.15fr; align-items: start; } }
.contact-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 1rem; }
.contact-list li { display: flex; gap: .8rem; align-items: flex-start; }
.contact-list .k { font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .11em; color: var(--muted); display: block; }
.contact-list .v { font-weight: 700; color: var(--navy); font-size: 1.02rem; }
.contact-list a { color: var(--navy); }

/* --- CTA band ----------------------------------------------------------- */
.cta-band {
  position: relative; overflow: hidden; text-align: center; color: #fff;
  background: linear-gradient(120deg, var(--red) 0%, var(--red-dark) 55%, #8E1520 100%);
  padding-block: clamp(2.75rem, 7vw, 4.25rem);
}
.cta-band::before {
  content: ""; position: absolute; inset: 0;
  background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.08) 0 2px, transparent 2px 72px);
}
.cta-band .wrap { position: relative; }
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { color: rgba(255,255,255,.9); font-size: var(--step-1); max-width: 52ch; margin: 0 auto 1.6rem; }

/* --- Footer ------------------------------------------------------------- */
.footer { background: var(--navy-deep); color: rgba(255,255,255,.72); padding-block: clamp(2.5rem, 6vw, 3.5rem) 1.5rem; font-size: .93rem; }
.footer a { color: rgba(255,255,255,.82); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__grid { display: grid; gap: 2rem; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__mark { width: 190px; margin-bottom: .85rem; }
.footer__wordmark {
  font-family: var(--font-display); text-transform: uppercase; color: #fff;
  font-size: 1.4rem; line-height: 1.05; letter-spacing: .02em; margin-bottom: 1rem;
}
.footer__wordmark span { display: block; color: var(--red-light); }
.footer h3 {
  font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .13em;
  color: #fff; margin-bottom: .9rem;
}
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li + li { margin-top: .55rem; }
.footer__bottom {
  margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: .5rem 1rem; justify-content: space-between;
  font-size: .82rem; color: rgba(255,255,255,.55);
}

/* --- States ------------------------------------------------------------- */
.loading { color: var(--muted); font-size: .95rem; padding: 1rem 0; }
.empty {
  border: 2px dashed var(--line); border-radius: var(--radius);
  padding: clamp(1.75rem, 5vw, 2.75rem); text-align: center; background: var(--bg-soft);
}
.empty h3 { color: var(--navy); margin-bottom: .3em; }
.empty p { color: var(--muted); max-width: 46ch; margin-inline: auto; }

/* --- Utilities ---------------------------------------------------------- */
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.prose { max-width: var(--maxw-text); }
[hidden] { display: none !important; }
