@font-face {
  font-family: Inter;
  src: url('/fonts/inter-4.1.woff2') format('woff2');
  font-weight: 100 900;
  font-display: optional;
}

:root {
  --navy: #111e32;
  --dark: #0b1526;
  --paper: #f8f5ed;
  --white: #fffdf8;
  --red: #a62635;
  --line: #d8d5cc;
  --muted: #515963;
  --font: Inter, system-ui, sans-serif;
  --page-width: 1120px;
  --page-gutter: clamp(12px, 4vw, 40px);
  font-family: var(--font);
  color: var(--navy);
  background: var(--paper);
  line-height: 1.55;
  scrollbar-gutter: stable;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--red); }
:focus-visible { outline: 3px solid #c45a20; outline-offset: 4px; }
img { max-width: 100%; }
h1, h2, h3 { font-weight: 800; line-height: 1.08; margin: 0 0 .35em; }
h1 { font-size: clamp(2.35rem, 8vw, 6.4rem); letter-spacing: -.018em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.7rem; }
p { margin: 0 0 1rem; }
.wrap { width: min(var(--page-width), calc(100% - 2 * var(--page-gutter))); margin-inline: auto; }
.skip { position: absolute; top: -100px; background: var(--white); color: var(--navy); padding: .65rem; z-index: 3; }
.skip:focus { top: .5rem; }
.site-header { background: var(--dark); color: var(--white); border-bottom: 1px solid #334153; }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; padding-block: 1.1rem; }
.brand { display: inline-flex; gap: .65rem; align-items: center; font-size: .86rem; line-height: 1.05; text-decoration: none; flex-shrink: 0; }
.brand strong { display: block; font-size: 1rem; margin-top: 2px; }
.brand:hover { color: inherit; }
.mark { width: 40px; height: 40px; background: var(--red); color: #fff; display: grid; place-items: center; font: 800 1.9rem/1 var(--font); }
nav ul { list-style: none; display: flex; gap: clamp(.75rem, 2.5vw, 2.2rem); margin: 0; padding: 0; align-items: center; flex-wrap: wrap; }
nav a { text-decoration: none; font-size: .9rem; font-weight: 600; }
nav a:hover, nav a[aria-current] { color: #ffadad; }
.header-inner nav ul { gap: .15rem clamp(.15rem, .8vw, .6rem); }
.header-inner nav a { display: flex; align-items: center; min-height: 48px; padding: .45rem .85rem; }
.login-link { border: 1px solid #89909a; padding: .5rem .7rem; display: inline-flex; align-items: center; min-height: 44px; font-size: .88rem; font-weight: 700; text-decoration: none; white-space: nowrap; }
.login-link:hover { color: #ffadad; }
.hero { position: relative; isolation: isolate; color: var(--white); background: var(--navy); padding-block: clamp(2.25rem, 5vw, 4.5rem); }
.hero-background, .hero::before { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-background { z-index: -2; object-fit: cover; object-position: center 63%; }
.hero::before { z-index: -1; content: ""; background: rgb(10 15 23 / 61%); }
.hero-heading { display: grid; grid-template-columns: clamp(7rem, 19vw, 16rem) minmax(0, 1fr); gap: clamp(1rem, 4vw, 3rem); align-items: center; text-align: center; }
.hero-logo { display: block; width: 100%; height: auto; }
.hero h1 { font-size: clamp(2.25rem, 6vw, 5.6rem); text-wrap: balance; }
.hero-heading p { margin: 0; text-transform: uppercase; letter-spacing: .16em; font-weight: 600; font-size: clamp(.95rem, 2vw, 1.45rem); }
.hero-actions { display: flex; justify-content: center; gap: .7rem; flex-wrap: wrap; margin-top: clamp(1.4rem, 3vw, 2.5rem); }
.eyebrow { margin-bottom: .95rem; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .16em; }
.button { display: inline-flex; align-items: center; gap: .55em; min-height: 44px; padding: .66rem 1rem; font: 700 .91rem/1.2 var(--font); text-decoration: none; border: 1px solid transparent; cursor: pointer; width: fit-content; }
.button.red { background: var(--red); color: white; }
.button.navy { background: var(--navy); color: white; }
.button.red:hover, .button.navy:hover { filter: brightness(1.2); }
.button.outlined { border-color: #9da8b8; background: transparent; color: inherit; }
.button.outlined:hover { border-color: currentColor; }
.mobile-menu-toggle { display: none; white-space: nowrap; }
.meeting { background: var(--white); border-bottom: 1px solid var(--line); }
.meeting-inner, .meeting p { display: flex; align-items: center; justify-content: space-between; gap: .5rem 1.3rem; flex-wrap: wrap; }
.meeting-inner { padding-block: .85rem; }
.meeting p { margin: 0; }
.meeting p span, .meeting a { font-size: .88rem; }
.meeting a, .section-top a, .event-feature a { font-weight: 700; }
.home-grid, .split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 4vw, 3rem); }
.home-grid { padding-block: clamp(2rem, 5vw, 4rem); align-items: start; }
.event-feature { background: #f1e0dd; border-left: 5px solid var(--red); padding: 1.5rem 1.75rem 1.7rem; }
.event-feature h2 { font-size: clamp(2.5rem, 5vw, 4rem); }
.event-feature .eyebrow { color: #85202d; }
.event-feature p:not(.eyebrow) { font-weight: 700; }
.section-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .35rem 1rem; align-items: baseline; }
.section-top a { font-size: .88rem; }
.result-list { list-style: none; padding: 0; margin: .55rem 0 0; }
.result-list li { border-top: 1px solid var(--line); padding-block: .7rem; overflow-wrap: anywhere; }
.result-list time { display: block; font-size: .83rem; font-weight: 700; color: var(--muted); }
.result-list p { margin: .15rem 0 0; white-space: pre-wrap; }
.link-list { list-style: none; padding: 0; margin: .55rem 0 0; }
.page-heading { background: var(--navy); color: var(--white); padding-block: 2.8rem; }
.page-heading h1 { margin: 0; }
.page-heading p { color: #d7e1ec; margin: .65rem 0 0; }
.content { padding-block: clamp(1.75rem, 5vw, 3.6rem); }
.content > * + * { margin-top: 1rem; }
.content > .panel + .panel { margin-top: 1rem; }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); align-items: start; }
.grid > .panel, .split > .panel { margin-top: 0 !important; }
.panel { background: var(--white); border: 1px solid var(--line); padding: clamp(1rem, 3vw, 1.65rem); }
.link-list a { display: flex; align-items: center; justify-content: space-between; gap: .6rem; border-top: 1px solid var(--line); padding-block: .7rem; text-decoration: none; }
.link-list small { display: block; color: var(--muted); }
.calendar { width: 100%; min-height: 540px; border: 1px solid var(--line); }
.public-sections, .home-extras { display: grid; gap: clamp(1.5rem, 4vw, 2.75rem); }
.public-sections > * + * { margin-top: 0; }
.home-extras { padding-bottom: clamp(1.75rem, 5vw, 3.6rem); }
.section-subheading { font-size: 1.2rem; }
.public-list { margin: .5rem 0 1rem; padding-inline-start: 1.3rem; }
.public-list li + li { margin-top: .28rem; }
.home-quote { display: grid; grid-template-columns: 1fr 1fr; align-items: center; margin: 0; background: var(--navy); color: var(--white); }
.home-quote-red { background: var(--red); }
.home-quote img { display: block; width: 100%; height: auto; aspect-ratio: 900 / 566; object-fit: cover; object-position: center 30%; }
.home-quote figcaption { padding: clamp(1.25rem, 4vw, 2.5rem); }
.home-quote blockquote { margin: 0 0 .65rem; font-size: clamp(1.35rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.15; }
.home-quote p { margin: 0; color: #d7e1ec; }
.home-quote-red p { color: var(--white); }
.public-embed { width: 100%; display: block; border: 1px solid var(--line); background: white; }
.slides-embed { height: 360px; }
.map-embed { height: 340px; }
.event-schedule th[scope="row"] { font-weight: 600; }
.about-photo { width: 100%; height: auto; display: block; }
.officer-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1rem; list-style: none; padding: 0; margin: 1rem 0 0; }
.officer-gallery li { background: var(--white); border: 1px solid var(--line); }
.officer-gallery img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: #000; }
.officer-gallery p { margin: 0; padding: .65rem .9rem; }
.officer-gallery span { display: block; font-size: .88rem; color: var(--muted); }
.site-footer { background: var(--dark); color: var(--white); }
.footer-inner { padding-block: 1.6rem; }
.footer-inner p { margin: 0; color: #d7e1ec; font-size: .8rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: .25rem; }
.footer-links a { display: grid; place-items: center; width: 44px; height: 44px; }
.footer-links svg { width: 22px; height: 22px; }
.site-footer a:hover { color: #ffadad; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; justify-items: start; }
label { font-weight: 600; }
.field { display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem; }
input, select, textarea { min-height: 42px; max-width: 100%; padding: .45rem .6rem; border: 1px solid #838a91; border-radius: 0; background: white; color: var(--navy); font: inherit; }
input[type="file"] { width: 100%; min-width: 0; }
.check { display: flex; align-items: center; gap: .6rem; }
.check input { min-height: auto; width: 1rem; height: 1rem; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: .6rem .4rem; text-align: left; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.table-scroll { overflow-x: auto; }
.notice { padding: .75rem 1rem; background: #f1e0dd; border-left: 4px solid var(--red); margin-bottom: 1rem; }
.dashboard-bar { position: sticky; top: 0; z-index: 4; background: var(--white); border-bottom: 1px solid var(--line); }
.dashboard-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.dashboard-toolbar nav { min-width: 0; overflow-x: auto; }
.dashboard-toolbar ul { flex-wrap: nowrap; gap: .25rem; width: max-content; }
.dashboard-toolbar nav a {
  display: block;
  padding: .9rem .7rem .7rem;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.dashboard-toolbar nav a:hover, .dashboard-toolbar nav a[aria-current] { color: var(--red); }
.dashboard-toolbar nav a[aria-current] { border-bottom-color: currentColor; }
.dashboard-toolbar nav a:focus-visible { outline-offset: -4px; }
.dashboard-toolbar form { flex-shrink: 0; margin: 0; }
.dashboard-toolbar .button { padding-inline: .55rem; }
.dashboard-heading h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0; }
.dashboard-heading p { color: var(--muted); margin: .5rem 0 0; }

@media (max-width: 730px) {
  .home-grid, .split, .home-quote { grid-template-columns: minmax(0, 1fr); }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: .85rem; }
  .content > .panel { margin-top: 0; }
}

@media (max-width: 600px) {
  .hero-heading { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .hero-logo { width: 8rem; }
}

textarea { width: 100%; resize: vertical; }
[hidden] { display: none !important; }
.stack > .field, .stack > .table-scroll { width: 100%; }
.public-results-tools details { border-top: 1px solid var(--line); padding-block: .75rem; }
.public-results-tools summary { cursor: pointer; font-weight: 700; }
.public-results-tools details form { margin-top: .85rem; }
.result-thumbnail { width: min(100%, 180px); aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
.result-list-header { display: flex; align-items: center; flex-wrap: wrap; gap: .65rem 1rem; margin-bottom: .85rem; }
.result-list-header h2 { margin: 0 auto 0 0; }
.tool-dialog {
  width: min(100% - 2rem, 40rem);
  max-height: calc(100% - 2rem);
  overflow: auto;
  padding: clamp(1rem, 4vw, 2rem);
  border: 1px solid var(--line);
  border-radius: .5rem;
  background: var(--white);
  color: var(--navy);
  box-shadow: 0 16px 50px rgb(11 21 38 / .24);
}
.tool-dialog::backdrop { background: rgb(11 21 38 / .56); }
.tool-dialog-header { display: flex; justify-content: space-between; align-items: start; gap: .65rem; margin-bottom: .85rem; }
.tool-dialog-header h2 { margin: 0; font-size: clamp(1.4rem, 4vw, 2rem); }
.dialog-context { color: var(--muted); }
.roster-sheet { background: #fff; border: 1px solid var(--line); }
.roster-toolbar { padding: .75rem; background: var(--white); }
.roster-search, .roster-update { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.roster-search input { flex: 1; min-width: min(100%, 13rem); max-width: 27rem; }
.roster-update { margin-top: .65rem; }
.roster-scroll { overflow: auto; max-height: 65vh; }
.roster-scroll:focus-visible { outline-offset: -3px; }
.roster-grid { border-collapse: separate; border-spacing: 0; font-size: .88rem; }
.roster-grid th, .roster-grid td {
  padding: .42rem .65rem;
  border-right: 1px solid #e0e3e7;
  border-bottom: 1px solid #e0e3e7;
  white-space: nowrap;
}
.roster-grid :is(th, td):last-child { border-right: 0; }
.roster-grid thead th { position: sticky; top: 0; z-index: 2; background: #eef1f5; }
.roster-grid :is(thead th:first-child, .roster-id) { position: sticky; left: 0; width: 5rem; }
.roster-grid thead th:first-child { z-index: 3; }
.roster-grid .roster-id { z-index: 1; background: #f5f6f8; color: var(--muted); font-variant-numeric: tabular-nums; }
.roster-grid tbody tr:focus-within > :is(td, th), .roster-grid tbody tr:hover > :is(td, th) { background: #f2f6fc; }
.roster-count { margin: 0; padding: .5rem .75rem; background: var(--white); color: var(--muted); font-size: .8rem; }
.cluster-portrait { display: block; width: min(100%, 14rem); height: auto; aspect-ratio: 3 / 4; object-fit: cover; margin-bottom: 1rem; }
.cluster-thumbnail { width: min(100%, 7rem); margin-bottom: 0; }
.cluster-message { white-space: pre-wrap; overflow-wrap: anywhere; }
.cluster-disclosure { margin-top: .7rem; border-top: 1px solid var(--line); padding-top: .7rem; }
.cluster-disclosure summary { cursor: pointer; font-weight: 700; }
.cluster-disclosure form, .cluster-empty { margin-top: .8rem; }
.attendance-filters { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; margin-bottom: 1rem; }
.visually-hidden, .attendance-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-height: 0;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.attendance-table :is(th, td) { vertical-align: middle; padding: .65rem; }
.attendance-table th:first-child { min-width: 9rem; }
.attendance-table thead th { background: var(--paper); }
.attendance-choices { display: flex; gap: .3rem; align-items: center; border: 0; padding: 0; margin: 0; }
.attendance-choice { position: relative; cursor: pointer; }
.attendance-choice > span {
  width: 2.05rem;
  height: 2.05rem;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 50%;
  font-size: .78rem;
}
[data-mark="P"] { --mark-ink: #30394a; --mark-bg: #ece8df; --mark-border: #cfc7b8; }
[data-mark="AE"] { --mark-ink: #6d4a0e; --mark-bg: #fff2bf; --mark-border: #dfc364; }
[data-mark="AU"] { --mark-ink: #8a2531; --mark-bg: #fbdde0; --mark-border: #e7a0a9; }
.attendance-choice input:checked + span {
  color: var(--mark-ink, var(--muted));
  background: var(--mark-bg, transparent);
  border-color: var(--mark-border, transparent);
  font-weight: 800;
}
.attendance-choice input:focus-visible + span { outline: 2px solid var(--navy); outline-offset: 2px; }
.attendance-actions { margin-top: 0; }
.attendance-stats { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .7rem; list-style: none; padding: 0; margin: 0; }
.attendance-stats li { display: flex; gap: .26rem; align-items: center; white-space: nowrap; font-size: .79rem; }
.attendance-mark { color: var(--mark-ink); background: var(--mark-bg); font-weight: 800; padding: .05rem .28rem; border-radius: .25rem; }
.attendance-no-data { color: var(--muted); font-size: .78rem; }
.attendance-mobile-history { display: none; }
.competition-create { display: flex; flex-wrap: wrap; align-items: end; gap: .75rem; }
.competition-disclosure { border-top: 1px solid var(--line); }
.competition-disclosure summary { cursor: pointer; padding: .9rem .15rem; overflow-wrap: anywhere; }
.competition-meta { color: var(--muted); font-size: .85rem; margin-inline-start: .65rem; }
.competition-content { padding-bottom: 1.25rem; }
.score-values td:last-child { white-space: pre-wrap; overflow-wrap: anywhere; }
.cluster-members { margin: .65rem 0 0; padding: 0; list-style: none; }
.cluster-members li { display: flex; align-items: center; gap: .55rem; padding: .35rem 0; }
.division-badge {
  display: inline-grid;
  place-items: center;
  flex: 0 0 1.6rem;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  color: #101827;
  font-size: .7rem;
  font-weight: 800;
}
.division-badge[data-division="V"] { background: #4399ff; }
.division-badge[data-division="JV"] { background: #ff2879; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; flex: none; clip-path: circle(49.8%); }

.recognition-year + .recognition-year { margin-top: 2.5rem; }
.recognition-year > h2 { font-size: 1.1rem; color: var(--muted); padding-bottom: .35rem; }
.recognition {
  display: grid;
  gap: clamp(1.1rem, 4vw, 3.5rem);
  align-items: center;
  border-top: 1px solid var(--line);
  padding-block: clamp(1.5rem, 5vw, 3.5rem);
}
.recognition.has-photo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.recognition-photo-frame { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.recognition-photo { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.recognition.photo-right .recognition-photo-frame { order: 1; }
.recognition-copy { max-width: 65ch; overflow-wrap: anywhere; }
.recognition-copy time { display: block; color: var(--muted); font-size: .85rem; font-weight: 700; margin-bottom: .5rem; }
.recognition-copy h3 { font-size: clamp(1.85rem, 4vw, 3.4rem); }
.recognition-copy p { white-space: pre-wrap; margin-bottom: 0; }
@media (max-width: 680px) {
  .recognition.has-photo { grid-template-columns: 1fr; }
  .recognition.photo-right .recognition-photo-frame { order: 0; }
}

@media (max-width: 820px) {
  .header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "brand login menu" "nav nav nav";
    gap: 0 .4rem;
    padding-block: .5rem;
  }
  .header-inner .brand { grid-area: brand; gap: .4rem; font-size: .76rem; }
  .header-inner .brand strong { font-size: .88rem; }
  .header-inner :is(.brand-logo, .mark) { width: 34px; height: 34px; }
  .header-inner .login-link { grid-area: login; padding-inline: .45rem; font-size: .77rem; }
  .header-inner .mobile-menu-toggle { grid-area: menu; }
  .header-inner nav { grid-area: nav; }
  .header-inner nav ul, .dashboard-toolbar .mobile-menu-toggle + nav ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .15rem .45rem;
    width: 100%;
    margin-top: .35rem;
  }
  .header-inner nav a, .dashboard-toolbar nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: .35rem .55rem;
    white-space: normal;
  }
  .dashboard-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 .5rem; padding-block: .3rem; }
  .dashboard-toolbar .mobile-menu-toggle { grid-column: 1; grid-row: 1; }
  .dashboard-toolbar nav { overflow: visible; }
  .dashboard-toolbar .mobile-menu-toggle + nav { grid-column: 1 / -1; grid-row: 2; }
  .dashboard-toolbar form { grid-column: 2; grid-row: 1; }
}

@media (max-width: 820px) and (scripting: enabled) {
  .mobile-menu-toggle { display: inline-flex; padding-inline: .55rem; gap: .35rem; font-size: .8rem; }
  .mobile-menu-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
  .mobile-menu-toggle[aria-expanded="false"] + nav { display: none; }
}

@media (max-width: 730px) {
  .dashboard-content:has(.attendance-panel) { padding-block: 1.2rem; }
  .attendance-panel { padding: .65rem; }
  .attendance-panel h2 { font-size: 1.35rem; }
  .attendance-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem .55rem; margin-bottom: .65rem; }
  .attendance-filters .field { min-width: 0; gap: .15rem; font-size: .8rem; }
  .attendance-filters :is(select, input) { width: 100%; min-width: 0; padding-inline: .3rem; font-size: 1rem; }
  .attendance-filters button { grid-column: 1 / -1; }
  .attendance-panel .stack { gap: .55rem; }
  .attendance-table { table-layout: fixed; }
  .attendance-table :is(th, td) { padding: .2rem .3rem; font-size: .86rem; }
  .attendance-table th:first-child { min-width: 0; }
  .attendance-table th:nth-child(2) { width: 8.85rem; text-align: center; }
  .attendance-table .attendance-history-column { display: none; }
  .attendance-choices { gap: 0; justify-content: flex-end; }
  .attendance-choice { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; flex-shrink: 0; }
  .attendance-mobile-history { display: block; margin-top: .05rem; font-weight: 400; color: var(--muted); }
  .attendance-mobile-history summary {
    display: list-item;
    width: fit-content;
    min-height: 24px;
    cursor: pointer;
    color: var(--navy);
    font-size: .75rem;
    line-height: 24px;
  }
  .attendance-mobile-history > div { display: grid; gap: .15rem; margin-bottom: .35rem; }
  .attendance-mobile-history > div > strong { font-size: .73rem; }
  .attendance-mobile-history .attendance-stats { gap: .15rem .4rem; }
  .attendance-mobile-history .attendance-stats li { font-size: .73rem; }
}
