:root {
  --ink: #08243a;
  --ink-soft: #436171;
  --paper: #f7f8f3;
  --surface: #ffffff;
  --line: #d9e4e5;
  --blue: #0b5c86;
  --blue-deep: #073a5e;
  --teal: #13a9a7;
  --orange: #f07332;
  --gold: #f2c35d;
  --shadow: 0 18px 50px rgba(8, 36, 58, 0.13);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

.subpage .site-header {
  background: rgba(7, 39, 61, 0.96);
  box-shadow: 0 10px 30px rgba(7, 39, 61, 0.18);
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 74px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: #ffffff;
  transition: background 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(7, 39, 61, 0.96);
  box-shadow: 0 10px 30px rgba(7, 39, 61, 0.18);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 17px;
  letter-spacing: 0;
}

.brand small {
  max-width: 240px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 12px;
}

.site-nav {
  position: absolute;
  top: calc(100% - 1px);
  right: clamp(18px, 4vw, 54px);
  display: none;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  width: min(340px, calc(100vw - 36px));
  padding: 10px;
  border-radius: var(--radius);
  background: rgba(7, 39, 61, 0.98);
  box-shadow: var(--shadow);
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  min-height: 42px;
  padding: 11px 14px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.86);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  outline: none;
}

.nav-toggle {
  display: block;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  padding-top: 74px;
  background: #0b5c86;
  overflow: hidden;
}

.hero-poster {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100svh - 118px);
  object-fit: contain;
  object-position: center;
  background: #0b5c86;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 800;
}

.button.primary {
  background: var(--orange);
  color: #ffffff;
}

.button.secondary {
  border-color: currentColor;
  background: rgba(255, 255, 255, 0.08);
  color: currentColor;
}

.button.danger {
  border-color: #b84724;
  background: #fff1eb;
  color: #8d3417;
}

.status-strip {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(1140px, calc(100% - 36px));
  margin: 18px auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.latest-updates {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 24px;
  width: min(1140px, calc(100% - 36px));
  margin: 22px auto 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 6px solid var(--orange);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.updates-header h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.05;
}

.updates-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.updates-list li {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 14px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
}

.updates-list li.notice-important,
.updates-list li.notice-urgent {
  padding: 10px 12px;
  border-left: 4px solid var(--orange);
  border-radius: var(--radius);
  background: #fff7ef;
}

.updates-list li.notice-urgent {
  border-left-color: #c33418;
  background: #fff1eb;
}

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

.updates-list li.notice-important:last-child,
.updates-list li.notice-urgent:last-child {
  padding-bottom: 10px;
}

.updates-list time {
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.updates-list span {
  color: var(--ink-soft);
  font-weight: 700;
}

.status-strip > div {
  min-height: 92px;
  padding: 22px;
  border-right: 1px solid var(--line);
}

.status-strip > div:last-child {
  border-right: 0;
}

.status-label {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-soft);
  font-size: 13px;
}

.status-strip strong {
  font-size: 18px;
}

.page-hero {
  padding: 144px clamp(18px, 7vw, 104px) 72px;
  background:
    linear-gradient(90deg, rgba(5, 26, 42, 0.94), rgba(11, 92, 134, 0.7)),
    url("assets/gallery-opening.jpg") center / cover no-repeat;
  color: #ffffff;
}

.page-hero-inner {
  width: min(820px, 100%);
}

.page-hero h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 0.98;
  letter-spacing: 0;
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(18px, 2vw, 23px);
}

.categories-hero {
  background:
    linear-gradient(90deg, rgba(5, 26, 42, 0.94), rgba(11, 92, 134, 0.68)),
    url("assets/gallery-action-girls.jpg") center / cover no-repeat;
}

.documents-hero {
  background:
    linear-gradient(90deg, rgba(5, 26, 42, 0.95), rgba(11, 92, 134, 0.66)),
    url("assets/gallery-action-boys.jpg") center / cover no-repeat;
}

.results-hero {
  background:
    linear-gradient(90deg, rgba(5, 26, 42, 0.95), rgba(19, 169, 167, 0.58)),
    url("assets/gallery-action-boys.jpg") center / cover no-repeat;
}

.standings-hero {
  background:
    linear-gradient(90deg, rgba(5, 26, 42, 0.95), rgba(11, 92, 134, 0.68)),
    url("assets/gallery-opening.jpg") center / cover no-repeat;
}

.scorers-hero {
  background:
    linear-gradient(90deg, rgba(5, 26, 42, 0.95), rgba(240, 115, 50, 0.58)),
    url("assets/gallery-action-girls.jpg") center / cover no-repeat;
}

.rules-hero {
  background:
    linear-gradient(90deg, rgba(5, 26, 42, 0.95), rgba(19, 169, 167, 0.6)),
    url("assets/gallery-opening.jpg") center / cover no-repeat;
}

.registration-hero,
.admin-hero {
  background:
    linear-gradient(90deg, rgba(5, 26, 42, 0.95), rgba(11, 92, 134, 0.68)),
    url("assets/gallery-action-boys.jpg") center / cover no-repeat;
}

.section {
  width: min(1140px, calc(100% - 36px));
  margin: 0 auto;
  padding: 82px 0 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 26px;
}

.section-heading h2,
.contact-box h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
  letter-spacing: 0;
}

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

.info-card,
.category-card,
.metric-card,
.system-card,
.category-module,
.history-panel,
.document-card,
.location-panel,
.notice-panel,
.bulletin,
.sponsor-card,
.contact-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(8, 36, 58, 0.06);
}

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

.metric-card {
  min-height: 178px;
  padding: 22px;
}

.metric-card span {
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  color: var(--blue);
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1;
}

.metric-card p {
  margin: 12px 0 0;
  color: var(--ink-soft);
}

.info-card {
  min-height: 220px;
  padding: 22px;
}

.card-kicker,
.category-card span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.info-card h3,
.category-card h3,
.location-panel h3,
.notice-panel h3,
.bulletin h3 {
  margin: 12px 0 10px;
  font-size: 22px;
  line-height: 1.15;
}

.info-card p,
.category-card p,
.location-panel p,
.notice-panel p,
.bulletin p,
.contact-box p {
  margin: 0;
  color: var(--ink-soft);
}

.schedule-section {
  scroll-margin-top: 80px;
}

.history-bars {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.history-bar {
  display: grid;
  grid-template-columns: 72px minmax(140px, 1fr) 96px;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.history-bar span {
  display: block;
  width: var(--w);
  min-width: 8px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal), var(--orange));
}

.history-bar strong {
  color: var(--ink);
}

.history-bar em {
  color: var(--ink-soft);
  font-style: normal;
  font-weight: 700;
  text-align: right;
}

.history-bar.is-paused span {
  background: #b9c7cc;
}

.history-bar.is-paused em {
  color: var(--orange);
}

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

.history-table {
  width: 100%;
  min-width: 920px;
  border-collapse: collapse;
  background: var(--surface);
}

.history-table.compact {
  min-width: 420px;
}

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

.history-table th {
  background: var(--blue-deep);
  color: #ffffff;
  font-size: 13px;
}

.history-table td {
  color: var(--ink-soft);
}

.history-table td:first-child,
.history-table td:nth-child(2),
.history-table td:nth-child(3),
.history-table td:nth-child(4),
.history-table td:nth-child(5) {
  color: var(--ink);
  font-weight: 800;
}

.table-note {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff1df;
  color: #9a4a18;
  font-size: 11px;
  white-space: nowrap;
}

.history-two-col {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.history-panel {
  padding: 22px;
}

.history-panel h3 {
  margin: 0 0 16px;
  font-size: 22px;
}

.history-note {
  margin: 14px 0 0;
  color: var(--ink-soft);
}

.history-source {
  padding-bottom: 82px;
}

.schedule-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.filter-pill {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 800;
}

.filter-pill.is-active {
  border-color: var(--blue);
  background: var(--blue);
  color: #ffffff;
}

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

.match-row {
  display: grid;
  grid-template-columns: 90px minmax(170px, 1.25fr) minmax(220px, 1.1fr) 120px;
  align-items: center;
  gap: 18px;
  min-height: 86px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.match-row.is-hidden {
  display: none;
}

.match-row time {
  color: var(--orange);
  font-weight: 800;
}

.match-row strong,
.match-row span {
  display: block;
}

.match-row div span,
.match-row small {
  color: var(--ink-soft);
}

.match-row p {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
}

.match-row p span {
  display: inline;
  color: var(--teal);
}

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

.category-card {
  display: block;
  min-height: 170px;
  padding: 22px;
  border-top: 5px solid var(--teal);
  color: var(--ink);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.category-card:nth-child(2n) {
  border-top-color: var(--orange);
}

.category-card:hover,
.category-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: var(--shadow);
  outline: none;
}

.system-grid,
.category-module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.system-card,
.category-module {
  padding: 22px;
}

.system-card {
  min-height: 178px;
}

.system-card span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: var(--orange);
  color: #ffffff;
  font-weight: 900;
}

.system-card h3,
.category-module h3 {
  margin: 14px 0 8px;
  font-size: 22px;
}

.system-card p,
.category-module p {
  margin: 0;
  color: var(--ink-soft);
}

.documents-section.last-section {
  padding-bottom: 82px;
}

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

.document-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  min-height: 224px;
  padding: 22px;
  border-top: 5px solid var(--teal);
}

.document-card:nth-child(2n) {
  border-top-color: var(--orange);
}

.document-card h3 {
  margin: 12px 0 10px;
  font-size: 22px;
  line-height: 1.15;
}

.document-card p {
  margin: 0;
  color: var(--ink-soft);
}

.document-type {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.document-status {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f7e4d7;
  color: #7f3517;
  font-size: 13px;
  font-weight: 900;
}

.document-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.document-action {
  min-height: 38px;
  padding: 8px 13px;
  color: var(--blue);
  font-size: 13px;
}

.rules-grid,
.rules-two-col {
  display: grid;
  gap: 14px;
}

.rules-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.rules-two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rules-card {
  min-height: 178px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(8, 36, 58, 0.06);
}

.rules-card:nth-child(2n) {
  border-top-color: var(--orange);
}

.rules-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.15;
}

.rules-card p {
  margin: 0;
  color: var(--ink-soft);
}

.rules-card p + p {
  margin-top: 12px;
}

.rules-list {
  margin: 0;
  padding-left: 22px;
  color: var(--ink-soft);
  font-weight: 700;
}

.rules-list li + li {
  margin-top: 8px;
}

.rules-section.last-section {
  padding-bottom: 82px;
}

.rules-table {
  min-width: 680px;
}

.rules-table td:first-child,
.rules-table td:nth-child(2) {
  color: var(--ink);
  font-weight: 900;
}

.registration-section.last-section,
.admin-section.last-section {
  padding-bottom: 82px;
}

.registration-form,
.admin-login,
.admin-registration-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(8, 36, 58, 0.06);
}

.registration-form {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.registration-form fieldset {
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.registration-form legend,
.admin-login h2 {
  padding: 0 6px;
  color: var(--blue-deep);
  font-size: 22px;
  font-weight: 900;
}

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

.registration-form label,
.admin-login label,
.admin-editor-form label,
.admin-registration-card label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 800;
}

.registration-form input,
.registration-form select,
.registration-form textarea,
.admin-login input,
.admin-editor-form input,
.admin-editor-form select,
.admin-editor-form textarea,
.admin-registration-card input,
.admin-registration-card select,
.admin-registration-card textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 11px;
  border: 1px solid #b7c8ce;
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink);
  font: inherit;
}

.registration-form textarea,
.admin-editor-form textarea,
.admin-registration-card textarea {
  resize: vertical;
}

.hidden-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}

.form-table-scroll {
  overflow-x: auto;
}

.form-table {
  width: 100%;
  min-width: 1180px;
  border-collapse: collapse;
}

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

.form-table th {
  background: var(--blue-deep);
  color: #ffffff;
  font-size: 13px;
}

.form-table td:first-child {
  color: var(--ink-soft);
  font-weight: 900;
  text-align: center;
}

.form-table input,
.form-table select {
  min-height: 38px;
  padding: 8px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-message {
  margin-bottom: 16px;
  padding: 16px 18px;
  border-radius: var(--radius);
  font-weight: 800;
}

.form-message.success {
  border: 1px solid #8fd0bd;
  background: #e7f7f1;
  color: #14624e;
}

.form-message.error {
  border: 1px solid #e2a58f;
  background: #fff1eb;
  color: #7f3517;
}

.form-message ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.admin-inline-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-inline-nav a,
.admin-inline-nav span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  text-decoration: none;
  font-weight: 900;
}

.admin-inline-nav span {
  background: rgba(255, 255, 255, 0.08);
}

.admin-login {
  display: grid;
  gap: 16px;
  width: min(460px, 100%);
  padding: 24px;
}

.admin-login h2 {
  margin: 0;
  padding: 0;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-toolbar h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.05;
}

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

.admin-dashboard-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--orange);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(8, 36, 58, 0.06);
}

.admin-dashboard-card.is-ready {
  border-left-color: var(--teal);
}

.admin-dashboard-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.1;
}

.admin-dashboard-card p {
  margin: 0;
  color: var(--ink-soft);
}

.admin-dashboard-card[href] {
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.admin-dashboard-card[href]:hover,
.admin-dashboard-card[href]:focus-visible {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: var(--shadow);
  outline: none;
}

.admin-editor-form {
  display: grid;
  gap: 18px;
  margin-bottom: 22px;
  padding: 22px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(8, 36, 58, 0.06);
}

.admin-editor-form h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
}

.form-grid-full {
  grid-column: 1 / -1;
}

.admin-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  font-weight: 900;
}

.admin-checkbox-row input {
  width: 20px;
  height: 20px;
}

.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: -4px 0 18px;
}

.admin-quick-actions .button {
  min-height: 44px;
}

.admin-notice-card textarea {
  min-height: 116px;
  resize: vertical;
}

.admin-form-note {
  margin: -8px 0 0;
  color: var(--ink-soft);
  font-weight: 800;
}

.admin-scorer-entry-table select,
.admin-scorer-entry-table input {
  width: 100%;
  min-width: 130px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}

.admin-scorer-entry-table input[type="number"] {
  min-width: 84px;
}

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

.admin-registration-card {
  padding: 22px;
}

.admin-registration-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.admin-registration-head h3 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.1;
}

.admin-registration-head p:not(.eyebrow),
.admin-note {
  margin: 0;
  color: var(--ink-soft);
}

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

.admin-meta div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfb;
}

.admin-meta dt {
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.admin-meta dd {
  margin: 4px 0 0;
  font-weight: 900;
}

.admin-note {
  margin-bottom: 16px;
  padding: 14px;
  border-left: 5px solid var(--orange);
  background: #fff7ef;
}

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

.competition-link-grid a {
  display: flex;
  align-items: center;
  min-height: 58px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--teal);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 34px rgba(8, 36, 58, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.competition-link-grid a:nth-child(2n) {
  border-left-color: var(--orange);
}

.competition-link-grid a:hover,
.competition-link-grid a:focus-visible {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: var(--shadow);
  outline: none;
}

.data-section {
  scroll-margin-top: 88px;
}

.data-section.last-section {
  padding-bottom: 82px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 999px;
  background: #f7e4d7;
  color: #7f3517;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.status-badge.muted {
  background: #eef3f4;
  color: var(--ink-soft);
}

.live-table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
  background: var(--surface);
}

.live-table.standings-table {
  min-width: 720px;
}

.live-table.scorers-table {
  min-width: 640px;
}

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

.live-table th {
  background: var(--blue-deep);
  color: #ffffff;
  font-size: 13px;
}

.live-table td {
  color: var(--ink-soft);
}

.live-table tbody tr:not(.empty-row) td:first-child,
.live-table tbody tr:not(.empty-row) td:nth-child(2) {
  color: var(--ink);
  font-weight: 900;
}

.empty-row td {
  padding: 30px 18px;
  background: #ffffff;
  color: var(--ink-soft);
  font-weight: 800;
  text-align: center;
}

.category-detail {
  scroll-margin-top: 88px;
}

.category-detail.last-section {
  padding-bottom: 82px;
}

.category-detail-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.category-detail-head h2 {
  margin: 0;
  font-size: clamp(32px, 5vw, 58px);
  line-height: 1;
}

.category-code {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--blue-deep);
  color: #ffffff;
  font-weight: 900;
  white-space: nowrap;
}

.category-module {
  min-height: 136px;
  border-left: 5px solid var(--teal);
}

.category-module:nth-child(2n) {
  border-left-color: var(--orange);
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 16px;
}

.location-panel,
.notice-panel {
  padding: 28px;
}

.location-panel dl {
  display: grid;
  gap: 12px;
  margin: 22px 0 0;
}

.location-panel dl div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.location-panel dt {
  color: var(--ink-soft);
  font-weight: 700;
}

.location-panel dd {
  margin: 0;
  font-weight: 800;
}

.notice-panel {
  background: var(--blue-deep);
  color: #ffffff;
}

.notice-panel p {
  color: rgba(255, 255, 255, 0.78);
}

.bulletin {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 14px;
}

.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(8, 36, 58, 0.06);
}

.gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.gallery-grid figcaption {
  padding: 14px 16px;
  font-weight: 800;
}

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

.sponsor-tier + .sponsor-tier {
  margin-top: 26px;
}

.sponsor-tier h3 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.15;
}

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

.sponsor-card {
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  min-height: 150px;
  padding: 18px;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.sponsor-card:hover,
.sponsor-card:focus-visible {
  transform: translateY(-2px);
  border-color: var(--teal);
  box-shadow: var(--shadow);
  outline: none;
}

.patron-card {
  min-height: 188px;
  border-top: 5px solid var(--teal);
}

.patron-card:nth-child(2n) {
  border-top-color: var(--orange);
}

.patron-card strong {
  font-size: 20px;
}

.sponsor-logo {
  display: grid;
  place-items: center;
  width: min(100%, 120px);
  height: 72px;
  border: 1px dashed #b7c8ce;
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-weight: 800;
}

.sponsor-logo.has-image {
  width: min(100%, 180px);
  height: 96px;
  border: 0;
}

.sponsor-logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.sponsor-card strong {
  font-size: 15px;
}

.bulletin .button.secondary {
  color: var(--blue);
}

.contact-section {
  padding-bottom: 82px;
}

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

.contact-card {
  min-height: 178px;
  padding: 22px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--teal);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 34px rgba(8, 36, 58, 0.06);
}

.contact-card:nth-child(2n) {
  border-top-color: var(--orange);
}

.contact-card span {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.contact-card h3 {
  margin: 12px 0 10px;
  font-size: 22px;
  line-height: 1.15;
}

.contact-card p {
  margin: 0;
  color: var(--ink-soft);
}

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 32px;
  background: var(--ink);
  color: #ffffff;
}

.contact-box p {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 54px);
  background: #051a2a;
  color: rgba(255, 255, 255, 0.78);
}

.site-footer p {
  margin: 0;
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 45;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  border-radius: 999px;
  background: var(--orange);
  color: #ffffff;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 24px;
  font-weight: 900;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 160ms ease, transform 160ms ease, background 160ms ease;
}

.scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top:hover,
.scroll-top:focus-visible {
  background: var(--blue);
  outline: none;
}

@media (max-width: 1120px) {
  .site-header {
    min-height: 68px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% - 1px);
    left: 18px;
    right: 18px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    width: auto;
    padding: 10px;
    border-radius: var(--radius);
    background: rgba(7, 39, 61, 0.98);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    min-height: 46px;
  }

  .brand small {
    display: none;
  }

  .hero {
    padding-top: 68px;
  }

  .status-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .latest-updates {
    grid-template-columns: 1fr;
  }

  .status-strip > div:nth-child(2) {
    border-right: 0;
  }

  .status-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .info-grid,
  .category-grid,
  .system-grid,
  .category-module-grid,
  .competition-link-grid,
  .rules-grid,
  .rules-two-col,
  .document-grid,
  .gallery-grid,
  .patron-grid,
  .sponsor-grid,
  .contact-grid,
  .form-grid,
  .admin-meta,
  .admin-dashboard-grid,
  .metric-grid,
  .history-two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .match-row {
    grid-template-columns: 80px 1fr;
  }

  .match-row p,
  .match-row small {
    grid-column: 2;
  }

  .split-layout,
  .contact-box {
    grid-template-columns: 1fr;
  }

  .contact-box,
  .bulletin {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding-inline: 14px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
  }

  .brand strong {
    font-size: 15px;
  }

  .hero {
    padding-top: 68px;
  }

  .hero-actions,
  .contact-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }

  .status-strip,
  .section {
    width: calc(100% - 28px);
  }

  .status-strip {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .latest-updates {
    width: calc(100% - 28px);
    margin-top: 14px;
    padding: 18px;
  }

  .updates-list li {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .status-strip > div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .status-strip > div:last-child {
    border-bottom: 0;
  }

  .section {
    padding-top: 62px;
  }

  .info-grid,
  .category-grid,
  .system-grid,
  .category-module-grid,
  .competition-link-grid,
  .rules-grid,
  .rules-two-col,
  .document-grid,
  .gallery-grid,
  .patron-grid,
  .sponsor-grid,
  .contact-grid,
  .form-grid,
  .admin-meta,
  .admin-dashboard-grid,
  .metric-grid,
  .history-two-col {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 118px 18px 52px;
  }

  .history-bar {
    grid-template-columns: 58px 1fr;
  }

  .history-bar span {
    grid-column: 1 / -1;
  }

  .history-bar em {
    text-align: left;
  }

  .info-card,
  .category-card,
  .system-card,
  .rules-card,
  .contact-card,
  .document-card,
  .category-module {
    min-height: auto;
  }

  .category-detail-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .schedule-tools {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-pill {
    width: 100%;
  }

  .match-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .match-row p,
  .match-row small {
    grid-column: 1;
  }

  .location-panel dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .site-footer {
    flex-direction: column;
  }

  .registration-form,
  .admin-registration-card,
  .admin-login {
    padding: 18px;
  }

  .registration-form fieldset {
    padding: 16px;
  }

  .admin-toolbar,
  .admin-registration-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-inline-nav {
    width: 100%;
  }

  .admin-inline-nav a,
  .admin-inline-nav span {
    justify-content: center;
    flex: 1 1 auto;
    text-align: center;
  }

  .scroll-top {
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    font-size: 22px;
  }
}

.admin-mobile-dock {
  display: none;
}

.admin-page .admin-editor-form,
.admin-page .admin-registration-card,
.admin-page .admin-registration-list {
  scroll-margin-top: 126px;
}

.admin-page input[type="number"] {
  font-weight: 900;
  text-align: center;
}

@media (max-width: 760px) {
  body.admin-page {
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }

  .admin-page .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    min-height: 0;
    padding: 10px 14px;
  }

  .admin-page .brand {
    gap: 10px;
  }

  .admin-page .brand-mark {
    width: 38px;
    height: 38px;
  }

  .admin-page .brand small {
    display: none;
  }

  .admin-page .admin-inline-nav {
    flex-wrap: nowrap;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .admin-page .admin-inline-nav::-webkit-scrollbar {
    display: none;
  }

  .admin-page .admin-inline-nav a,
  .admin-page .admin-inline-nav span {
    flex: 0 0 auto;
    justify-content: center;
    min-height: 36px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
  }

  .admin-page .page-hero {
    padding-top: 132px;
    padding-bottom: 32px;
  }

  .admin-page .page-hero h1 {
    font-size: clamp(30px, 10vw, 44px);
  }

  .admin-page .page-hero p {
    font-size: 15px;
  }

  .admin-page .section {
    padding-top: 42px;
  }

  .admin-section.last-section,
  .registration-section.last-section {
    padding-bottom: calc(128px + env(safe-area-inset-bottom));
  }

  .admin-page .admin-toolbar {
    gap: 12px;
    margin-bottom: 14px;
  }

  .admin-page .admin-toolbar h2 {
    font-size: clamp(28px, 10vw, 40px);
  }

  .admin-page .admin-dashboard-grid {
    gap: 10px;
  }

  .admin-page .admin-dashboard-card {
    min-height: 118px;
    padding: 16px;
    gap: 8px;
  }

  .admin-page .admin-dashboard-card h3 {
    font-size: 21px;
  }

  .admin-page .admin-editor-form,
  .admin-page .admin-registration-card,
  .admin-page .admin-login {
    padding: 16px;
  }

  .admin-page .admin-editor-form {
    gap: 14px;
    margin-bottom: 16px;
  }

  .admin-page .admin-editor-form h2,
  .admin-page .admin-registration-head h3 {
    font-size: 24px;
  }

  .admin-page .admin-registration-head {
    gap: 10px;
    margin-bottom: 14px;
  }

  .admin-page input,
  .admin-page select,
  .admin-page textarea {
    min-height: 48px;
    font-size: 16px;
  }

  .admin-page input[type="checkbox"] {
    min-height: 0;
  }

  .admin-page .admin-checkbox-row {
    align-items: flex-start;
    min-height: 48px;
    padding: 8px 0;
  }

  .admin-page .admin-card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .admin-page .admin-card-actions .button {
    width: 100%;
  }

  .admin-page .admin-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 0 0 14px;
  }

  .admin-page .admin-quick-actions .button {
    width: 100%;
    min-height: 46px;
    padding-inline: 10px;
  }

  .admin-page .admin-quick-actions .button.primary {
    grid-column: 1 / -1;
  }

  .admin-scorer-entry-table {
    min-width: 560px;
  }

  .admin-mobile-dock {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 80;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 6px;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
    border-top: 1px solid rgba(8, 36, 58, 0.18);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 -12px 30px rgba(8, 36, 58, 0.14);
  }

  .admin-mobile-dock a {
    display: grid;
    place-items: center;
    min-height: 46px;
    padding: 4px 5px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #f8fbfb;
    color: var(--ink);
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
  }

  .admin-mobile-dock a.is-active {
    border-color: var(--teal);
    background: var(--blue-deep);
    color: #ffffff;
  }

  .admin-page .scroll-top {
    bottom: calc(82px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  .admin-mobile-dock {
    gap: 4px;
    padding-inline: 6px;
  }

  .admin-mobile-dock a {
    font-size: 10px;
    padding-inline: 3px;
  }
}
