:root {
  --ink: #111111;
  --muted: #6f7379;
  --line: #d0d2d6;
  --ice: #f3f3f1;
  --black: #090909;
  --charcoal: #1f2023;
  --grey: #7a7d82;
  --gold: #d6a72d;
  --gold-light: #f6d76a;
  --blue: #b88916;
  --red: #d6a72d;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--white);
  line-height: 1.5;
}

body.site-home {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(5, 5, 5, .48) 0%, rgba(34, 34, 34, .30) 48%, rgba(214, 167, 45, .18) 100%),
    url('assets/hockey-bg.png') center top / cover fixed,
    url('assets/hockey-aaaaa-chest.png') center top / cover fixed;
  background-blend-mode: screen, normal, normal;
}

body.site-home > main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

body.profile-page {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .92), rgba(255, 255, 255, .78) 44%, rgba(214, 167, 45, .16)),
    url('assets/hockey-goalie-aaaaa-diagonal.png') center top / cover fixed;
}

a {
  color: inherit;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 6vw;
  border-bottom: 1px solid rgba(214, 167, 45, .45);
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 10;
}

body.site-home .site-header {
  background: rgba(5, 5, 5, .72);
  backdrop-filter: blur(6px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  width: auto;
  max-width: 300px;
  max-height: 82px;
  object-fit: contain;
}

.brand span {
  color: var(--gold-light);
  font-size: 22px;
  font-weight: 800;
  text-decoration: none;
}

.nav {
  display: flex;
  gap: 18px;
  color: #d7d7d7;
  font-size: 15px;
}

.nav a {
  text-decoration: none;
}

.nav a:hover {
  color: var(--gold-light);
}

.hero {
  flex: 1;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  padding: 40px 6vw;
  color: var(--white);
}

body.site-home .hero {
  background:
    linear-gradient(135deg, rgba(5, 5, 5, .30) 0%, rgba(32, 32, 32, .18) 56%, rgba(214, 167, 45, .12) 100%);
  border-bottom: 1px solid rgba(214, 167, 45, .30);
}

.hero-content {
  max-width: 720px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 18px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: .98;
}

.page-title {
  color: var(--ink);
  font-size: 44px;
  line-height: 1.05;
}

body.site-home .page-title {
  color: var(--white);
}

h2 {
  margin-bottom: 10px;
  font-size: 32px;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

.intro {
  max-width: 620px;
  color: #e7eef7;
  font-size: 18px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--gold);
  color: var(--black);
}

.button.secondary {
  border-color: rgba(246, 215, 106, .78);
  color: var(--white);
}

.button.neutral {
  border-color: var(--line);
  color: var(--ink);
}

.section {
  padding: 48px 6vw;
}

body.site-home .section {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(8, 8, 8, .30), rgba(18, 18, 18, .44));
  border-top: 1px solid rgba(214, 167, 45, .18);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 28px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumbs a,
.breadcrumbs span {
  display: inline-flex;
  align-items: center;
}

.breadcrumbs a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.breadcrumbs a::after {
  content: "/";
  margin-left: 8px;
  color: var(--muted);
  font-weight: 400;
}

.section-heading p,
.split p,
.contact p {
  color: var(--muted);
}

body.site-home .section-heading p,
body.site-home .split p,
body.site-home .contact p,
body.site-home .program-card p,
body.site-home .howto-card p,
body.site-home .event-card p {
  color: #d2d5da;
}

.program-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.program-card {
  min-height: 160px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--white), #f8f8f6);
}

body.site-home .program-card,
body.site-home .howto-card,
body.site-home .event-card,
body.site-home .schedule-list {
  border-color: rgba(214, 167, 45, .34);
  background: rgba(16, 16, 16, .52);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .18);
}

.program-card p {
  color: var(--muted);
}

.program-card-link {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.program-card-link p {
  flex: 1;
  margin-bottom: 8px;
}

.program-card-link .button {
  width: fit-content;
}

.program-page {
  --program-bg: url('assets/hockey-aaaaa-chest.png');
  --program-position: center center;
  background:
    linear-gradient(105deg, rgba(4, 4, 4, .72) 0%, rgba(15, 15, 15, .54) 48%, rgba(214, 167, 45, .18) 100%),
    var(--program-bg) var(--program-position) / cover fixed,
    url('assets/hockey-aaaaa-chest.png') center center / cover fixed;
  background-blend-mode: normal, normal, normal;
}

.program-summer {
  --program-bg: url('assets/program-youth-summer-teams.png');
  --program-position: center top;
}

.program-fall-spring {
  --program-bg: url('assets/program-youth-fall-spring-teams.png');
  --program-position: center center;
}

.program-tournament {
  --program-bg: url('assets/program-youth-tournament-teams.png');
  --program-position: center bottom;
}

.program-hero {
  min-height: 520px;
  display: flex;
  align-items: center;
  padding: 64px 6vw;
  border-bottom: 1px solid rgba(214, 167, 45, .30);
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .48), rgba(0, 0, 0, .16) 58%, rgba(214, 167, 45, .10));
}

.program-hero-content {
  width: min(100%, 760px);
  padding: 26px 0;
}

.program-detail {
  background:
    linear-gradient(180deg, rgba(8, 8, 8, .48), rgba(16, 16, 16, .70));
}

.program-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.manage-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.manage-link:hover {
  border-color: var(--gold);
}

.howto-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.howto-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.howto-card ol {
  margin: 0;
  padding-left: 22px;
  color: var(--muted);
}

.howto-card li + li {
  margin-top: 8px;
}

.howto-card a {
  color: var(--gold);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  gap: 32px;
  background: #ececea;
}

body.site-home .split {
  background:
    linear-gradient(180deg, rgba(8, 8, 8, .30), rgba(18, 18, 18, .46));
}

.schedule-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.schedule-list li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}

.schedule-list li:last-child {
  border-bottom: 0;
}

body.site-home .schedule-list li {
  border-bottom-color: rgba(214, 167, 45, .12);
}

.schedule-list span {
  color: var(--gold);
  font-weight: 800;
}

.contact {
  border-top: 1px solid var(--line);
}

body.site-home .contact {
  border-top-color: rgba(214, 167, 45, .18);
}

.contact a {
  color: var(--gold);
  font-weight: 700;
}

.site-footer {
  padding: 24px 6vw;
  color: #d7d7d7;
  border-top: 1px solid rgba(214, 167, 45, .45);
  background: var(--black);
}

body.site-home .site-footer {
  background: rgba(5, 5, 5, .92);
}

.site-footer p {
  margin: 0;
}

.auth-page {
  min-height: calc(100vh - 76px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 6vw;
  background:
    radial-gradient(circle at top right, rgba(214, 167, 45, .15), transparent 30%),
    var(--ice);
}

body.site-home .auth-page {
  background:
    linear-gradient(135deg, rgba(5, 5, 5, .46) 0%, rgba(34, 34, 34, .28) 48%, rgba(214, 167, 45, .16) 100%),
    url('assets/hockey-bg.png') center top / cover fixed,
    url('assets/hockey-aaaaa-chest.png') center top / cover fixed;
}

.auth-panel {
  width: min(100%, 460px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

body.site-home .auth-panel {
  color: var(--white);
  background: rgba(18, 18, 18, .88);
  border-color: rgba(214, 167, 45, .28);
}

.auth-form {
  display: grid;
  gap: 16px;
}

.auth-form label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 700;
}

.auth-form input,
.auth-form select {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font: inherit;
}

.form-button {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.form-note {
  color: var(--muted);
}

.form-note a {
  color: var(--gold);
  font-weight: 700;
}

.alert {
  margin-bottom: 18px;
  padding: 12px 14px;
  border: 1px solid #f1b4bb;
  border-radius: 6px;
  color: #7e1520;
  background: #fff0f2;
}

.alert.neutral {
  border-color: var(--line);
  color: var(--ink);
  background: #f8fafc;
}

.alert p {
  margin: 0;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.data-table th,
.data-table td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.actions-cell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.inline-form {
  display: inline-flex;
  gap: 6px;
}

.compact-form {
  display: grid;
  gap: 6px;
  min-width: 220px;
}

.compact-form input,
.compact-form select,
.compact-form textarea {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.compact-form textarea {
  min-height: 58px;
  resize: vertical;
}

.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.check-row input {
  width: auto;
}

.muted {
  color: var(--muted);
  font-size: 13px;
}

.small-button {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  color: var(--black);
  background: var(--gold);
  cursor: pointer;
}

.small-button.danger {
  background: var(--red);
}

.small-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
}

.inline-form input,
.inline-form select,
.auth-form textarea {
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.inline-form input {
  max-width: 150px;
  min-height: 34px;
  padding: 0 8px;
}

.auth-form textarea {
  min-height: 96px;
  padding: 10px 12px;
  resize: vertical;
}

.wide-panel {
  width: min(100%, 860px);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-section {
  margin-bottom: 24px;
}

.compact-profile-card {
  padding: 22px;
}

.profile-shell {
  max-width: 1180px;
  padding-top: 28px;
}

.profile-hero-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 260px;
  margin-bottom: 22px;
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid rgba(214, 167, 45, .42);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(5, 5, 5, .86), rgba(31, 32, 35, .76) 52%, rgba(214, 167, 45, .20)),
    radial-gradient(circle at 85% 18%, rgba(246, 215, 106, .24), transparent 34%),
    url('assets/hockey-goalie-aaaaa-diagonal.png') center 28% / cover;
  box-shadow: 0 24px 54px rgba(0, 0, 0, .18);
}

.profile-identity {
  display: flex;
  align-items: center;
  gap: 22px;
}

.profile-identity h1 {
  margin: 0 0 6px;
  color: var(--white);
  font-size: clamp(32px, 5vw, 54px);
}

.profile-identity p:last-child {
  margin: 0;
  color: #e8e9eb;
  font-weight: 700;
}

.profile-avatar {
  width: 126px;
  height: 126px;
  flex: 0 0 126px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 4px solid var(--gold);
  border-radius: 50%;
  color: var(--black);
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 18px 42px rgba(0, 0, 0, .28);
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar span {
  font-size: 54px;
  font-weight: 900;
}

.large-avatar {
  width: 110px;
  height: 110px;
  flex-basis: 110px;
}

.photo-upload-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(243, 243, 241, .75);
}

.photo-upload-row label {
  flex: 1;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.profile-actions .button {
  min-width: 150px;
  justify-content: center;
}

.profile-dashboard {
  display: grid;
  gap: 22px;
  margin-bottom: 22px;
}

.profile-info-panel {
  padding: 24px;
  border: 1px solid rgba(208, 210, 214, .84);
  border-radius: 8px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .08);
  backdrop-filter: blur(8px);
}

.profile-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
}

.profile-summary div {
  display: grid;
  gap: 4px;
}

.profile-summary dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.profile-summary dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.player-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.player-card {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.player-card h3,
.player-card p {
  margin: 0;
}

.player-card p {
  color: var(--muted);
  font-size: 14px;
}

.player-card-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--black);
  background: var(--gold);
  font-weight: 900;
}

.empty-player-card {
  grid-template-columns: 1fr;
}

.registration-list {
  display: grid;
  gap: 16px;
}

.registration-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 22px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .06);
}

.registration-main {
  display: grid;
  gap: 18px;
}

.registration-main h2,
.registration-main p {
  margin: 0;
}

.registration-main h2 {
  font-size: 24px;
}

.registration-main p {
  color: var(--muted);
  font-weight: 700;
}

.status-pill {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--black);
  background: var(--gold);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.registration-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
}

.registration-facts div {
  display: grid;
  gap: 4px;
}

.registration-facts dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.registration-facts dd {
  margin: 0;
  font-weight: 700;
}

.registration-update-form {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(208, 210, 214, .9);
  border-radius: 8px;
  background: var(--ice);
}

.registration-update-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.registration-update-form input,
.registration-update-form select {
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  text-transform: none;
}

.card-heading-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.card-heading-row h2,
.card-heading-row p {
  margin: 0;
}

.delete-form {
  margin-top: 18px;
}

.registration-panel {
  margin: 24px 0;
}

.waiver-box {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.waiver-box h3,
.waiver-box p {
  margin: 0;
}

.waiver-box p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.team-messages {
  margin-top: 24px;
}

.message-form {
  max-width: 720px;
}

.message-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.message-item {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
}

.message-item time {
  color: var(--muted);
  font-size: 13px;
}

.message-item p {
  margin: 0;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 28px;
  align-items: start;
}

.feed-link {
  color: var(--gold);
  font-weight: 700;
  overflow-wrap: anywhere;
}

.event-list {
  display: grid;
  gap: 12px;
}

.event-card {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.event-card p {
  margin: 0;
  color: var(--muted);
}

.event-card time {
  color: var(--gold);
  font-weight: 800;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.team-page-frame {
  padding: clamp(18px, 4vw, 44px);
  border: 1px solid rgba(214, 167, 45, .28);
  border-radius: 8px;
  background: rgba(8, 8, 8, .34);
}

.team-layout {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(360px, 1fr);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
}

.team-sidebar {
  min-height: 520px;
  padding: 22px;
}

.team-sidebar h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 22px;
}

.team-sidebar h2:not(:first-child) {
  margin-top: 30px;
}

.compact-people-list {
  gap: 5px;
  font-size: 14px;
  line-height: 1.3;
}

.team-calendar-panel {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

body.site-home .team-calendar-panel {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: 38px 1fr 38px auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.calendar-toolbar h2 {
  margin: 0;
  color: var(--white);
  font-size: 24px;
  line-height: 1;
  text-align: center;
}

.calendar-toolbar p {
  margin: 4px 0 0;
  color: var(--gold-light);
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.calendar-icon-button,
.calendar-view-toggle {
  min-height: 36px;
  border: 1px solid rgba(246, 215, 106, .48);
  border-radius: 6px;
  color: var(--white);
  background: rgba(0, 0, 0, .34);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.calendar-icon-button {
  padding: 0;
  font-size: 22px;
}

.calendar-view-toggle {
  padding: 0 14px;
  color: var(--black);
  background: var(--gold);
}

.calendar-icon-button:hover,
.calendar-view-toggle:hover {
  border-color: var(--gold-light);
}

.team-calendar-widget {
  min-width: 0;
}

.team-calendar[hidden],
.calendar-list-view[hidden] {
  display: none;
}

.team-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid rgba(214, 167, 45, .28);
  border-radius: 8px;
  background: rgba(255, 255, 255, .05);
}

.calendar-weekday {
  min-height: 34px;
  padding: 8px;
  color: var(--gold-light);
  background: rgba(0, 0, 0, .42);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  min-height: 104px;
  padding: 8px;
  border-top: 1px solid rgba(214, 167, 45, .18);
  border-left: 1px solid rgba(214, 167, 45, .18);
  background: rgba(8, 8, 8, .28);
}

.calendar-day:nth-child(7n + 1) {
  border-left: 0;
}

.calendar-date {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  color: var(--white);
  font-size: 13px;
  font-weight: 800;
}

.outside-month {
  background: rgba(0, 0, 0, .18);
}

.outside-month .calendar-date {
  color: rgba(255, 255, 255, .42);
}

.calendar-events {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.calendar-event {
  display: grid;
  gap: 2px;
  padding: 7px;
  border-left: 3px solid var(--gold);
  border-radius: 4px;
  color: var(--white);
  background: rgba(214, 167, 45, .16);
  font-size: 12px;
  line-height: 1.25;
}

.calendar-event time {
  color: var(--gold-light);
  font-weight: 800;
}

.calendar-event strong {
  font-size: 12px;
}

.calendar-event span {
  color: #d2d5da;
}

.calendar-feed-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(214, 167, 45, .22);
}

.calendar-feed-box h3 {
  font-size: 18px;
}

.calendar-feed-box p {
  margin-bottom: 8px;
}

.calendar-list-view {
  display: grid;
  gap: 10px;
}

.calendar-list-item {
  display: grid;
  grid-template-columns: minmax(130px, 180px) minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(214, 167, 45, .24);
  border-radius: 8px;
  background: rgba(8, 8, 8, .36);
}

.calendar-list-item time {
  color: var(--gold-light);
  font-weight: 800;
}

.calendar-list-item strong {
  display: block;
  color: var(--white);
}

.calendar-list-item p {
  margin: 4px 0 0;
}

.plain-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

body.site-home .plain-list {
  color: #d2d5da;
}

.schedule-compact li {
  display: grid;
  gap: 4px;
}

.schedule-compact strong {
  color: var(--gold-light);
}

.access-panel {
  margin: 0 auto;
}

.about-panel {
  width: min(100%, 860px);
  padding: clamp(24px, 5vw, 46px);
  border: 1px solid rgba(214, 167, 45, .30);
  border-radius: 8px;
  background: rgba(12, 12, 12, .66);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .22);
}

.about-copy {
  display: grid;
  gap: 16px;
  max-width: 760px;
  color: #e3e5e8;
  font-size: 18px;
}

.about-copy p {
  margin: 0;
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .hero {
    min-height: 500px;
    align-items: flex-start;
    flex-direction: column;
  }

  .program-grid,
  .program-detail-grid,
  .team-grid,
  .team-layout,
  .howto-grid,
  .split,
  .two-column {
    grid-template-columns: 1fr;
  }

  .profile-hero-panel,
  .profile-identity,
  .photo-upload-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .profile-actions {
    justify-content: flex-start;
  }

  .profile-avatar {
    width: 96px;
    height: 96px;
    flex-basis: 96px;
  }

  .player-card {
    grid-template-columns: 48px 1fr;
  }

  .player-card .small-link {
    grid-column: 1 / -1;
    justify-content: center;
  }

  .registration-card,
  .registration-facts {
    grid-template-columns: 1fr;
  }

  .team-page-frame {
    padding: 14px;
  }

  .team-sidebar {
    min-height: 0;
  }

  .calendar-toolbar {
    grid-template-columns: 36px 1fr 36px;
  }

  .calendar-view-toggle {
    grid-column: 1 / -1;
  }

  .team-calendar {
    display: block;
    border: 0;
    background: transparent;
  }

  .calendar-weekday {
    display: none;
  }

  .calendar-day {
    display: grid;
    grid-template-columns: 42px 1fr;
    min-height: 0;
    margin-bottom: 8px;
    border: 1px solid rgba(214, 167, 45, .18);
    border-radius: 8px;
  }

  .outside-month {
    display: none;
  }

  .calendar-list-item {
    grid-template-columns: 1fr;
  }

  .event-card {
    flex-direction: column;
  }

  .form-grid,
  .profile-summary,
  .card-heading-row {
    grid-template-columns: 1fr;
  }

  .card-heading-row {
    display: grid;
  }

  .schedule-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
