:root {
  --blue: #1358f6;
  --blue-strong: #0b43d8;
  --deep: #06102f;
  --navy: #0a1742;
  --cyan: #11c7c3;
  --yellow: #ffd100;
  --green: #10c76f;
  --pink: #ff2b78;
  --violet: #6435d6;
  --ink: #172033;
  --muted: #657085;
  --line: #dbe2ef;
  --paper: #f4f7fb;
  --white: #ffffff;
  --shadow: 0 22px 70px rgba(6, 16, 47, 0.16);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
}

.temp-home {
  min-height: 100vh;
  color: var(--white);
  background:
    radial-gradient(circle at 18% 20%, rgba(17, 199, 195, 0.28), transparent 24%),
    radial-gradient(circle at 82% 18%, rgba(255, 209, 0, 0.2), transparent 18%),
    radial-gradient(circle at 72% 78%, rgba(16, 199, 111, 0.2), transparent 20%),
    linear-gradient(140deg, #04133f 0%, #0b43d8 55%, #1358f6 100%);
  overflow: hidden;
}

.temp-home::before,
.temp-home::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
}

.temp-home::before {
  top: -12vh;
  right: -10vw;
  width: 34vw;
  height: 34vw;
  min-width: 280px;
  min-height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 68%);
  filter: blur(8px);
}

.temp-home::after {
  left: 50%;
  bottom: -12vh;
  width: 72vw;
  height: 24vh;
  transform: translateX(-50%) skewY(-7deg);
  background: linear-gradient(90deg, rgba(17, 199, 195, 0.7), rgba(255, 209, 0, 0.68), rgba(16, 199, 111, 0.72));
  opacity: 0.92;
}

.temp-home__shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}

.temp-home__panel {
  position: relative;
  z-index: 1;
  width: min(100%, 720px);
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: clamp(28px, 5vw, 48px);
  text-align: center;
}

.temp-home__logo {
  display: block;
  width: min(100%, 440px);
  height: auto;
  filter: drop-shadow(0 16px 40px rgba(4, 19, 63, 0.22));
}

.temp-home__kicker {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.96rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.temp-home h1 {
  max-width: 640px;
  margin-bottom: 0;
  font-size: clamp(2.6rem, 7vw, 5.4rem);
  line-height: 0.96;
  text-transform: uppercase;
}

.temp-home__text {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
}

body.has-access-modal {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand-lockup img {
  display: block;
  width: clamp(170px, 16vw, 236px);
  height: auto;
  transition: width 0.18s ease;
}

.matrix-logo {
  display: block;
  width: min(360px, 76vw);
  max-width: 100%;
  height: auto;
}

.matrix-header,
.portal-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 70px;
  padding: 7px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(219, 226, 239, 0.9);
  backdrop-filter: blur(18px);
  transition: min-height 0.18s ease, padding 0.18s ease, box-shadow 0.18s ease;
}

.is-scrolled .matrix-header,
.is-scrolled .portal-topbar {
  min-height: 58px;
  padding-top: 4px;
  padding-bottom: 4px;
  box-shadow: 0 10px 36px rgba(6, 16, 47, 0.1);
}

.is-scrolled .brand-lockup img {
  width: clamp(150px, 13vw, 198px);
}

.matrix-nav,
.portal-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 800;
}

.matrix-nav a,
.portal-nav a,
.nav-dropdown > button {
  padding: 9px 11px;
  border-radius: 8px;
}

.matrix-nav a:hover,
.portal-nav a:hover,
.nav-dropdown:hover > button,
.nav-dropdown > button:focus,
.system-access {
  background: var(--blue);
  color: var(--white);
}

.system-access:hover {
  background: var(--blue-strong);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown > button {
  border: 0;
  color: inherit;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.dropdown-menu a,
.dropdown-menu span {
  display: block;
  padding: 10px 12px;
  border-radius: 6px;
}

.dropdown-menu span {
  color: var(--muted);
  cursor: default;
}

.matrix-hero,
.portal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  min-height: calc(100vh - 70px);
  padding: clamp(40px, 6vw, 86px) clamp(18px, 5vw, 72px) clamp(28px, 5vw, 64px);
  color: var(--white);
  background:
    radial-gradient(circle at 86% 26%, rgba(17, 199, 195, 0.38), transparent 22%),
    linear-gradient(135deg, #04133f 0%, #0639ca 58%, #0879ff 100%);
  overflow: hidden;
}

.matrix-hero {
  position: relative;
}

.matrix-hero::after,
.portal-hero::after {
  content: "";
  position: absolute;
  inset: auto -10% -22% 42%;
  height: 44%;
  background:
    linear-gradient(90deg, var(--cyan), var(--yellow), var(--green), var(--pink));
  transform: skewY(-8deg);
  opacity: 0.82;
}

.matrix-hero__content,
.portal-hero__main,
.matrix-card,
.hero-scoreboard {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 780px;
  margin-bottom: 18px;
  font-size: clamp(2.8rem, 7vw, 6.9rem);
  line-height: 0.92;
  letter-spacing: 0;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 16px;
  color: var(--deep);
  font-size: clamp(1.8rem, 3.8vw, 3.4rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.matrix-hero p,
.portal-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.8vw, 1.26rem);
  line-height: 1.56;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 8px;
  font-weight: 900;
}

.button-primary {
  background: var(--white);
  color: var(--blue-strong);
}

.button-ghost {
  color: var(--white);
}

.matrix-card,
.hero-scoreboard,
.notice-panel {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.matrix-card {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 34px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--deep);
}

.matrix-logo-card {
  gap: 0;
  padding: clamp(18px, 3vw, 34px);
  overflow: hidden;
}

.matrix-url {
  display: grid;
  gap: 4px;
  width: 100%;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.matrix-url strong {
  color: var(--blue-strong);
  font-size: 1.45rem;
}

.matrix-url span {
  color: var(--pink);
  font-weight: 900;
}

.matrix-status {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-weight: 800;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
}

.section-band,
.features-section,
.structure-section,
.contact-section,
.matches-section,
.regulations-section,
.content-grid {
  padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

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

.section-heading > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.58;
}

.municipality-grid,
.document-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.municipality-card,
.document-grid a,
.competition-card,
.notice-panel,
.dashboard-strip article,
.feature-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(6, 16, 47, 0.08);
}

.municipality-card {
  position: relative;
  min-height: 210px;
  padding: 22px;
  overflow: hidden;
  isolation: isolate;
}

.features-section {
  background:
    linear-gradient(90deg, rgba(7, 84, 242, 0.08), rgba(17, 199, 195, 0.08)),
    var(--paper);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(320px, 1fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: start;
  background: var(--white);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 12px 38px rgba(6, 16, 47, 0.08);
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: var(--deep);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 13px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 3px solid rgba(19, 88, 246, 0.18);
  border-color: var(--blue);
}

.form-message,
.contact-form button {
  grid-column: 1 / -1;
}

.contact-form button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.contact-form button:hover {
  background: var(--blue-strong);
}

.access-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 18%, rgba(17, 199, 195, 0.24), transparent 24%),
    linear-gradient(135deg, #04133f 0%, #0b43d8 58%, #1358f6 100%);
}

.access-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.access-panel {
  width: min(100%, 460px);
  display: grid;
  gap: 18px;
  padding: clamp(20px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 24px 70px rgba(6, 16, 47, 0.2);
}

.access-brand img,
.access-modal__brand img {
  display: block;
  width: min(250px, 78vw);
  height: auto;
}

.access-copy p:not(.eyebrow),
.access-modal__copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.access-copy h1 {
  max-width: 100%;
  margin-bottom: 12px;
  color: var(--deep);
  font-size: clamp(2.1rem, 4.8vw, 3.2rem);
  line-height: 0.96;
}

.access-modal__copy h2 {
  margin-bottom: 10px;
  color: var(--deep);
  font-size: clamp(1.7rem, 3.2vw, 2.2rem);
  line-height: 1;
}

.access-form {
  display: grid;
  gap: 12px;
}

.access-form label {
  display: grid;
  gap: 8px;
}

.access-form span {
  color: var(--deep);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.access-form input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
}

.access-form input:focus {
  outline: 3px solid rgba(19, 88, 246, 0.18);
  border-color: var(--blue);
}

.access-form button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--blue);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.access-form button:hover {
  background: var(--blue-strong);
}

.access-note,
.access-feedback {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.access-feedback {
  color: var(--blue-strong);
  font-weight: 700;
}

.access-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
}

.access-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 16, 47, 0.58);
  backdrop-filter: blur(8px);
}

.access-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(100% - 28px, 440px);
  margin: min(10vh, 72px) auto;
  display: grid;
  gap: 18px;
  padding: clamp(18px, 3vw, 26px);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 80px rgba(6, 16, 47, 0.24);
}

.access-modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 8px;
  color: var(--deep);
  background: rgba(6, 16, 47, 0.06);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.access-modal__close:hover {
  background: rgba(6, 16, 47, 0.12);
}

.access-modal__page-link {
  color: var(--blue-strong);
  font-weight: 800;
}

.feature-grid article {
  display: grid;
  gap: 18px;
  align-content: space-between;
  min-height: 150px;
  padding: 18px;
}

.feature-grid span {
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 900;
}

.feature-grid strong {
  color: var(--deep);
  line-height: 1.32;
}

.municipality-card.active {
  border-color: rgba(7, 84, 242, 0.42);
  background:
    linear-gradient(180deg, rgba(7, 84, 242, 0.08), rgba(255, 255, 255, 0.96)),
    var(--white);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.municipality-card.active::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.88) 32%,
      rgba(255, 255, 255, 0.58) 58%,
      rgba(255, 255, 255, 0.16) 100%
    ),
    url("assets/municipio-pariquera.png");
  background-position: left top, center right;
  background-size: auto, cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.22s ease, transform 0.32s ease;
  pointer-events: none;
}

.municipality-card.active:hover,
.municipality-card.active:focus-visible {
  border-color: rgba(19, 88, 246, 0.6);
  box-shadow: 0 18px 48px rgba(6, 16, 47, 0.16);
  transform: translateY(-2px);
}

.municipality-card.active:hover::after,
.municipality-card.active:focus-visible::after {
  opacity: 1;
  transform: scale(1);
}

.municipality-card > * {
  position: relative;
  z-index: 1;
}

.municipality-card__tag {
  display: inline-flex;
  margin-bottom: 28px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(16, 199, 111, 0.13);
  color: #087744;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.municipality-card__tag.muted {
  background: rgba(101, 112, 133, 0.12);
  color: var(--muted);
}

.municipality-card p,
.document-grid small,
.competition-card p,
.notice-panel p {
  color: var(--muted);
  line-height: 1.55;
}

.structure-section {
  display: grid;
  grid-template-columns: minmax(240px, 0.7fr) minmax(0, 1.3fr);
  gap: 34px;
  background: var(--white);
}

.structure-flow {
  display: grid;
  gap: 12px;
}

.structure-flow div {
  display: grid;
  grid-template-columns: minmax(170px, 0.32fr) 1fr;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border-left: 6px solid var(--blue);
  background: var(--paper);
}

.structure-flow div:nth-child(2) {
  border-color: var(--cyan);
}

.structure-flow div:nth-child(3) {
  border-color: var(--yellow);
}

.structure-flow div:nth-child(4) {
  border-color: var(--pink);
}

.structure-flow strong {
  color: var(--deep);
  font-size: 1.08rem;
}

.structure-flow span {
  color: var(--muted);
}

.portal-hero {
  position: relative;
  min-height: 610px;
}

.portal-page .portal-hero h1 {
  max-width: 700px;
  font-size: clamp(2.6rem, 5.4vw, 4.9rem);
}

.portal-contact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 920px;
  margin-top: 24px;
}

.portal-contact div {
  min-height: 92px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.portal-contact span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.portal-contact strong {
  display: block;
  color: var(--white);
  font-size: 0.95rem;
  line-height: 1.34;
}

.portal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.tab-button {
  min-height: 42px;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  cursor: pointer;
}

.tab-button.active,
.tab-button:hover {
  background: var(--white);
  color: var(--blue-strong);
}

.hero-scoreboard {
  display: grid;
  gap: 14px;
}

.scoreboard-group {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  overflow: hidden;
}

.scoreboard-group__header {
  display: grid;
  gap: 4px;
  padding: 16px 18px 0;
}

.scoreboard-kicker {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.scoreboard-group__header strong {
  color: var(--white);
  font-size: 1.12rem;
}

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

.scoreboard-grid div {
  min-height: 98px;
  padding: 16px 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.scoreboard-grid span {
  display: block;
  min-height: 28px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.scoreboard-grid strong {
  display: block;
  color: var(--white);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  line-height: 1.02;
}

.scoreboard-group-formative {
  background:
    linear-gradient(135deg, rgba(17, 199, 195, 0.18), rgba(19, 88, 246, 0.1)),
    rgba(255, 255, 255, 0.12);
}

.athlete-program-card {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 118px;
  grid-column: 1 / -1;
  padding: 20px;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(255, 209, 0, 0.2), rgba(255, 43, 120, 0.28)),
    rgba(255, 255, 255, 0.1);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  transition: background 0.18s ease, transform 0.18s ease;
}

.athlete-program-card:hover {
  background:
    linear-gradient(90deg, rgba(4, 19, 63, 0.82), rgba(7, 84, 242, 0.38), rgba(255, 43, 120, 0.22)),
    url("assets/bolsa-atleta-medalha.png");
  background-size: cover;
  background-position: center right;
  transform: translateY(-2px);
}

.athlete-program-card span {
  position: relative;
  z-index: 1;
  display: block;
  min-height: auto;
}

.athlete-program-card strong {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: clamp(1.35rem, 2.5vw, 2rem);
}

.dashboard-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 20px clamp(18px, 5vw, 72px);
  background: var(--white);
  transform: translateY(-1px);
}

.dashboard-strip article {
  position: relative;
  overflow: hidden;
  min-height: 120px;
  padding: 20px;
}

.dashboard-strip p {
  margin-bottom: 12px;
  color: var(--muted);
  font-weight: 800;
}

.dashboard-strip strong {
  color: var(--deep);
  font-size: 1.5rem;
}

.accent {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 5px;
}

.accent-cyan {
  background: var(--cyan);
}

.accent-yellow {
  background: var(--yellow);
}

.accent-green {
  background: var(--green);
}

.accent-pink {
  background: var(--pink);
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.34fr);
  gap: 20px;
}

.portal-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.34fr);
  gap: 20px;
  padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 72px);
}

.portal-board-main {
  display: grid;
  gap: 24px;
  align-content: start;
}

.span-wide {
  grid-column: 1 / -1;
}

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

.competition-list-center {
  grid-column: 1;
}

.school-programs {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(19, 88, 246, 0.04), rgba(255, 255, 255, 0.96));
  box-shadow: 0 12px 38px rgba(6, 16, 47, 0.08);
}

.school-programs__header {
  max-width: 760px;
}

.school-programs__header h3 {
  margin-bottom: 10px;
  color: var(--deep);
  font-size: 1.6rem;
}

.school-programs__header p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.school-program-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.school-program-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.school-program-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.school-program-card p {
  color: var(--muted);
  line-height: 1.55;
}

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

.school-program-stats div {
  min-height: 74px;
  padding: 10px;
  background: var(--paper);
}

.school-program-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.school-program-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--deep);
  font-size: 1rem;
  line-height: 1.2;
}

.competition-card {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.competition-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.sport-chip,
.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sport-chip {
  background: rgba(7, 84, 242, 0.1);
  color: var(--blue-strong);
}

.status-chip {
  background: rgba(17, 199, 195, 0.14);
  color: #087874;
}

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

.competition-stats div {
  min-height: 72px;
  padding: 10px;
  background: var(--paper);
}

.competition-stats span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.competition-stats strong {
  display: block;
  margin-top: 4px;
  color: var(--deep);
  font-size: 1.18rem;
}

.standings {
  display: grid;
  gap: 8px;
}

.standing-row {
  display: grid;
  grid-template-columns: 28px 1fr 44px;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  background: #f8faff;
  color: var(--deep);
  font-weight: 800;
}

.standing-row span:first-child {
  color: var(--blue);
}

.standing-row span:last-child {
  text-align: right;
}

.competition-actions,
.action-button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.competition-actions button,
.action-button-grid button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(7, 84, 242, 0.18);
  border-radius: 8px;
  color: var(--blue-strong);
  background: rgba(7, 84, 242, 0.06);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.competition-actions button:hover,
.action-button-grid button:hover {
  color: var(--white);
  background: var(--blue);
  transform: translateY(-1px);
}

.empty-competition {
  min-height: 180px;
  padding: 22px;
  border: 1px dashed rgba(7, 84, 242, 0.32);
  border-radius: 8px;
  background: rgba(7, 84, 242, 0.04);
}

.empty-competition p {
  color: var(--muted);
}

.notice-panel {
  align-self: start;
  display: grid;
  gap: 14px;
  padding: 20px;
}

.panel-heading h2 {
  font-size: 1.5rem;
}

.notice-panel article {
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.notice-panel article:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.notice-panel span {
  color: var(--blue);
  font-size: 0.8rem;
  font-weight: 900;
}

.matches-section {
  background: var(--white);
}

.athlete-section {
  padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 72px);
  background:
    linear-gradient(120deg, rgba(7, 84, 242, 0.08), rgba(255, 209, 0, 0.1)),
    var(--white);
}

.facilities-section {
  padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 72px);
  background: var(--paper);
}

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

.facility-card {
  display: grid;
  gap: 14px;
  align-content: space-between;
  min-height: 230px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 38px rgba(6, 16, 47, 0.08);
}

.facility-card span {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.facility-card.available span {
  color: #087744;
  background: rgba(16, 199, 111, 0.13);
}

.facility-card.unavailable span {
  color: #b4234b;
  background: rgba(255, 43, 120, 0.12);
}

.facility-card h3 {
  color: var(--deep);
  font-size: 1.08rem;
  line-height: 1.25;
}

.facility-card p {
  color: var(--muted);
  line-height: 1.5;
}

.facility-card button {
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(7, 84, 242, 0.18);
  border-radius: 8px;
  color: var(--blue-strong);
  background: rgba(7, 84, 242, 0.06);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.facility-card button:hover {
  color: var(--white);
  background: var(--blue);
  transform: translateY(-1px);
}

.action-button-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.action-button-grid button {
  justify-content: center;
  min-height: 62px;
  padding: 0 14px;
  font-size: 0.86rem;
}

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

.match-table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
}

.match-table th,
.match-table td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.match-table th {
  color: var(--deep);
  background: #eef3ff;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.match-table td {
  color: var(--muted);
  font-weight: 700;
}

.match-table td strong {
  color: var(--deep);
}

.regulations-section {
  background:
    linear-gradient(90deg, rgba(7, 84, 242, 0.08), rgba(17, 199, 195, 0.08)),
    var(--paper);
}

.document-grid a {
  display: grid;
  gap: 8px;
  min-height: 160px;
  padding: 20px;
}

.document-grid span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 38px;
  border-radius: 6px;
  background: var(--blue);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 900;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) auto auto;
  gap: 24px;
  align-items: center;
  padding: 34px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.86);
  background: #1358f6;
}

.site-footer img {
  display: block;
  width: min(250px, 70vw);
  height: auto;
  margin-bottom: 10px;
  border-radius: 6px;
}

.site-footer p,
.site-footer small {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.site-footer a {
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .matrix-header,
  .portal-topbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .matrix-nav,
  .portal-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .matrix-hero,
  .portal-hero,
  .structure-section,
  .contact-section,
  .content-grid,
  .portal-board {
    grid-template-columns: 1fr;
  }

  .dropdown-menu {
    position: static;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
  }

  .municipality-grid,
  .dashboard-strip,
  .document-grid,
  .competition-list,
  .feature-grid,
  .portal-contact,
  .action-button-grid,
  .facility-grid,
  .school-program-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .brand-lockup img {
    width: 170px;
  }

  .is-scrolled .brand-lockup img {
    width: 154px;
  }

  .matrix-hero,
  .portal-hero {
    min-height: auto;
    padding-top: 42px;
  }

  h1 {
    font-size: clamp(2.5rem, 18vw, 4.4rem);
  }

  .municipality-grid,
  .dashboard-strip,
  .document-grid,
  .competition-list,
  .feature-grid,
  .portal-contact,
  .action-button-grid,
  .facility-grid,
  .school-program-list,
  .scoreboard-grid {
    grid-template-columns: 1fr;
  }

  .structure-flow div,
  .competition-card header,
  .competition-stats,
  .contact-form,
  .school-program-card header,
  .school-program-stats {
    grid-template-columns: 1fr;
  }

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

  .tab-button {
    width: 100%;
  }
}
