:root {
  color-scheme: light;
  --navy: #111c2b;
  --deep: #0a1320;
  --ink: #152335;
  --muted: #546477;
  --ice: #f3f6f8;
  --paper: #fff;
  --line: #dce4ea;
  --orange: #ffae63;
  --link: #234a75;
  font-family: "Avenir Next", Avenir, system-ui, sans-serif;
  color: var(--ink);
  background: var(--ice);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; line-height: 1.55; }
main { flex: 1; }
a { color: var(--link); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .14em; }
:focus-visible { outline: 3px solid #dc7628; outline-offset: 4px; }
h1, h2, h3, p, figure { margin-top: 0; }
h1, h2, h3 { line-height: 1.14; letter-spacing: -.035em; }
h1 { font-size: clamp(2.25rem, 5vw, 4rem); margin-bottom: .65rem; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.55rem); margin-bottom: .55rem; }
h3 { font-size: 1.3rem; margin-bottom: .55rem; }
img { max-width: 100%; display: block; }
.shell { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 2; left: 1rem; top: 1rem; background: white; padding: .7rem; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-header { background: var(--deep); color: #fff; border-bottom: 1px solid #263548; }
.password-banner { background: #a52632; color: #fff; border-bottom: 1px solid #861b26; }
.password-banner p { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: .2rem .85rem; padding-block: .62rem; margin-block: 0; text-align: center; }
.password-banner a { color: inherit; font-weight: 800; }
.password-banner a:focus-visible { outline-color: #fff; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 78px; }
.brand { display: flex; gap: .7rem; align-items: center; font-size: 1.05rem; font-weight: 800; line-height: 1.15; }
.brand small { display: block; color: #b9c9dd; font-size: .72rem; letter-spacing: .16em; margin-top: .25rem; }
.site-header a, .site-footer a { color: inherit; text-decoration: none; }
.site-header nav, .header-account, .site-footer nav, .actions, .pager { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; }
.site-header nav a, .header-account > a, .site-footer nav a { font-size: .92rem; font-weight: 650; }
.site-header nav a { padding-block: .7rem; color: #c7d2df; }
.site-header nav a:hover, .site-header nav a[aria-current] { color: var(--orange); }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: .6rem 1rem; border: 1px solid transparent; border-radius: .45rem; font: inherit; font-size: .92rem; font-weight: 750; line-height: 1.25; text-decoration: none; cursor: pointer; white-space: normal; }
.button:hover { filter: brightness(.94); text-decoration: none; }
.subtle { border-color: #445367; background: transparent; color: #fff; }
.primary { color: #172333; background: var(--orange); }
.hero-link { color: #fff; border-color: #526174; }
.dark { background: var(--navy); color: #fff; }
.outline { color: var(--ink); background: white; border-color: #c5d0dc; }
.danger { background: #fff; color: #982d36; border-color: #d8a1a5; }
.hero { background: radial-gradient(ellipse at 87% 80%, #263b54, var(--navy) 68%); color: #fff; }
.hero-inner { padding-block: clamp(.9rem, 2vw, 1.35rem) clamp(1.15rem, 3vw, 2rem); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.team-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  border-radius: .75rem;
  border: 1px solid #64768a;
  aspect-ratio: 2.2;
  background: #24364c;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.team-photo figcaption { position: absolute; bottom: .75rem; left: .75rem; padding: .28rem .58rem; border-radius: .3rem; background: #101928eb; color: #fff; font-size: .82rem; font-weight: 650; }
.roster-section, .page-space { padding-block: 2.6rem 4rem; }
.roster-heading, .footer-inner, .card-header { display: flex; gap: 1rem; align-items: center; justify-content: space-between; }
.roster-heading p, .page-heading p { color: var(--muted); margin-bottom: 0; }
.roster-heading { margin-bottom: 1.15rem; align-items: center; }
.skate-date { display: grid; min-width: 12rem; padding: .65rem .9rem; border-left: 3px solid #d57a35; background: #e8eef3; border-radius: .25rem; }
.skate-date span { color: var(--muted); font-weight: 750; font-size: .8rem; }
.skate-date time { font-weight: 800; }
.skate-info, .preline { white-space: pre-wrap; overflow-wrap: anywhere; }
.grid, .photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.card { min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: .7rem; padding: 1.15rem; overflow-wrap: anywhere; }
.card-header { padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.card-header h3 { margin: 0; }
.capacity { background: #e9eff4; padding: .2rem .62rem; font-size: .875rem; font-weight: 800; border-radius: 1rem; }
.empty { color: var(--muted); margin: .85rem 0 0; }
.skate-info {
  margin-bottom: 1rem;
  padding: .7rem 1rem;
  background: #e8eef3;
  border-radius: .45rem;
  color: var(--ink);
}
.roster-access {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem 1.5rem;
  margin-bottom: 1rem;
  padding: .95rem 1.15rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: .7rem;
}
.roster-access h3 { font-size: 1rem; margin: 0 0 .15rem; letter-spacing: 0; }
.roster-access p { margin: 0 0 .35rem; font-size: .925rem; color: var(--muted); }
.roster-access a { font-weight: 750; font-size: .925rem; }
.roster-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
}
.roster-card { padding: 0; }
.roster-card-header {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--line);
  border-radius: .65rem .65rem 0 0;
  background: #f8fafc;
}
.roster-card-heading { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: .45rem .7rem; }
.roster-card-heading h3 { margin: 0; font-size: 1.4rem; }
.roster-availability { font-size: .8rem; font-weight: 750; padding: .18rem .54rem; border-radius: .8rem; }
.roster-availability.open { color: #185741; background: #e1f3ea; }
.roster-availability.full { color: #60401a; background: #f8ead8; }
.roster-count { margin: .32rem 0 .45rem; font-size: .91rem; color: var(--muted); }
.roster-progress {
  display: block;
  width: 100%;
  height: .45rem;
  appearance: none;
  border: 0;
  border-radius: 1rem;
  background: #dce6ef;
  overflow: hidden;
  accent-color: #48739e;
}
.roster-progress::-webkit-progress-bar { background: #dce6ef; border-radius: 1rem; }
.roster-progress::-webkit-progress-value { background: #48739e; border-radius: 1rem; }
.roster-progress::-moz-progress-bar { background: #48739e; border-radius: 1rem; }
.roster-card-action:empty { display: none; }
.roster-card-action { margin-top: .85rem; }
.roster-card-action > strong { color: #185741; }
.roster-names { display: grid; margin: 0; padding: .3rem 1.15rem .6rem; list-style: none; }
.roster-skaters .roster-names { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.1rem; }
.roster-names li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .35rem;
  min-width: 0;
  padding: .48rem 0;
}
.roster-goalies .roster-names li + li,
.roster-skaters .roster-names li:nth-child(n+3) { border-top: 1px solid var(--line); }
.roster-you { padding: .02rem .36rem; border-radius: .65rem; font-size: .8rem; color: #185741; background: #e1f3ea; }
.roster-card .empty { margin: 0; padding: 1rem 1.15rem; }
.site-footer { background: var(--deep); color: #d7e2ef; padding-block: 1.3rem; font-size: .9rem; }
.page-heading { margin-bottom: 1.5rem; }
.page-heading p { max-width: 66ch; }
.prose { max-width: 72ch; }
.prose img { height: auto; }
.prose iframe { max-width: 100%; }
.prose table, .table { border-collapse: collapse; width: 100%; }
.prose td, .table td, .table th { border-bottom: 1px solid var(--line); padding: .55rem; text-align: left; }
.table-wrap { overflow-x: auto; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; height: auto; border-radius: .55rem; }
.photo-grid figcaption, .muted { color: var(--muted); }
.photo-grid { margin-block: 1.5rem; }
.stack, .form-grid { display: grid; gap: .85rem; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stack > .button { justify-self: start; }
.narrow { max-width: 36rem; }
label { display: grid; gap: .3rem; font-weight: 650; }
input:not([type=checkbox]), textarea, select { width: 100%; padding: .55rem .65rem; font: inherit; color: var(--ink); background: white; border: 1px solid #aebccd; border-radius: .35rem; }
textarea { resize: vertical; }
input[type=checkbox] { width: 1.1rem; height: 1.1rem; }
.check { display: flex; align-items: center; gap: .45rem; }
.notice { padding: .75rem .9rem; background: #e2eef9; border-left: 3px solid #3d6492; border-radius: .28rem; overflow-wrap: anywhere; }
.pager a { font-weight: 700; }
.hero-roster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .65rem 1rem;
  margin-bottom: .9rem;
}
.hero-roster p { display: grid; margin: 0; padding-left: .7rem; border-left: 3px solid var(--orange); }
.hero-roster span { color: #dbe5ef; font-size: .92rem; }
.hero-roster .hero-intro { font-size: 1rem; margin-bottom: .2rem; }
.hero-intro a { color: inherit; }
.hero-roster .actions { gap: .45rem; }
.admin-layout {
  flex: 1;
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  align-items: start;
  gap: clamp(1.2rem, 3vw, 2.4rem);
  padding-block: 2rem 4rem;
}
.admin-nav { padding: .65rem; background: var(--paper); border: 1px solid var(--line); border-radius: .7rem; }
.admin-nav-group + .admin-nav-group { margin-top: .65rem; padding-top: .65rem; border-top: 1px solid var(--line); }
.admin-nav-group p { margin: 0 .58rem .2rem; color: var(--muted); font-size: .8rem; font-weight: 750; }
.admin-nav-group ul { margin: 0; padding: 0; list-style: none; }
.admin-link {
  display: block;
  padding: .38rem .58rem;
  border-radius: .35rem;
  color: var(--ink);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}
.admin-link:hover { background: var(--ice); text-decoration: underline; }
.admin-link.active { color: #fff; background: var(--navy); }
.admin-content { min-width: 0; }
.admin-content h1 { font-size: clamp(2rem, 4.6vw, 3rem); }
.admin-skate {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: start;
  gap: 1.2rem;
  background: var(--navy);
  color: #fff;
  padding: clamp(1.1rem, 3vw, 1.8rem);
  border-radius: .7rem;
}
.admin-skate h2 { font-size: .96rem; letter-spacing: 0; color: #bdcce0; }
.admin-skate-date { margin: 0; font-size: clamp(1.55rem, 3vw, 2.2rem); font-weight: 800; line-height: 1.12; }
.admin-skate-stats { grid-row: span 2; display: flex; gap: 1.55rem; margin: 0; }
.admin-skate-stats dt { color: #bdcce0; font-size: .88rem; font-weight: 650; }
.admin-skate-stats dd { margin: .2rem 0 0; font-size: 1.5rem; font-weight: 850; white-space: nowrap; }
.admin-skate-stats dd span { font-size: .92rem; color: #bdcce0; }
.admin-skate .button { justify-self: start; }
.admin-shortcuts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin-top: .85rem; }
.admin-shortcut { display: grid; gap: .22rem; color: var(--ink); text-decoration: none; }
.admin-shortcut:hover { border-color: #7793b1; }
.admin-shortcut:hover strong { text-decoration: underline; }
.shortcut-total { font-size: 1.65rem; font-weight: 850; line-height: 1.2; }
.admin-shortcut .muted { font-size: .88rem; }
@media (max-width: 790px) {
  .admin-layout { grid-template-columns: minmax(0, 1fr); }
  .admin-nav { display: flex; flex-wrap: wrap; gap: .25rem .7rem; }
  .admin-nav-group + .admin-nav-group { margin-top: 0; padding-top: 0; border-top: 0; }
  .admin-nav-group p { display: none; }
  .admin-nav-group ul { display: flex; flex-wrap: wrap; gap: .1rem; }
}
@media (max-width: 520px) {
  .admin-skate { grid-template-columns: minmax(0, 1fr); }
  .admin-skate-stats { grid-row: auto; }
  .admin-shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.pager { margin-top: 1rem; }
.inline-form { display: flex; align-items: end; flex-wrap: wrap; gap: .65rem; }
.inline-form label { flex: 1 1 10rem; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li + li { border-top: 1px solid var(--line); }
.list > li { padding: .7rem 0; }
.space { margin-top: 1rem; }
@media (max-width: 790px) {
  .header-inner { flex-wrap: wrap; gap: .65rem 1rem; padding-block: .65rem; }
  .site-header nav { order: 3; width: 100%; gap: .9rem; }
  .site-header nav a { padding: .25rem 0; }
}
@media (max-width: 620px) {
  .shell { width: calc(100% - 2rem); }
  .roster-grid, .roster-access, .grid, .photo-grid, .form-grid { grid-template-columns: 1fr; }
  .team-photo { aspect-ratio: 1.6; }
  .roster-heading, .footer-inner { align-items: flex-start; flex-direction: column; }
  .header-account { gap: .55rem; }
  .brand img { width: 43px; height: auto; }
  .brand { font-size: .95rem; }
}
@media (max-width: 420px) {
  .roster-skaters .roster-names { grid-template-columns: 1fr; }
  .roster-skaters .roster-names li + li { border-top: 1px solid var(--line); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
