:root {
  --ink: #102f3a;
  --ink-soft: #49646d;
  --deep-water: #004f61;
  --water: #007f91;
  --water-bright: #10a8b9;
  --foam: #f1fbfb;
  --ice: #e2f3f4;
  --white: #ffffff;
  --coral: #e75f4f;
  --coral-dark: #c84134;
  --sun: #f4c95d;
  --line: #c8dfe2;
  --shadow: 0 16px 40px rgba(16, 47, 58, 0.12);
  --content-width: 1160px;
  --header-height: 76px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--white);
  font-family: "BIZ UDPGothic", "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--sun);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.content-shell {
  width: min(calc(100% - 40px), var(--content-width));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(0, 79, 97, 0.16);
  backdrop-filter: blur(12px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--content-width));
  min-height: var(--header-height);
  margin-inline: auto;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  color: var(--ink);
  text-decoration: none;
  gap: 13px;
}

.brand-mark {
  position: relative;
  display: inline-block;
  flex: 0 0 46px;
  width: 46px;
  height: 38px;
  overflow: hidden;
}

.brand-mark span {
  position: absolute;
  left: -5px;
  width: 55px;
  height: 9px;
  border: 4px solid var(--water);
  border-top: 0;
  border-radius: 0 0 50% 50%;
  transform: rotate(-6deg);
}

.brand-mark span:nth-child(1) { top: 1px; }
.brand-mark span:nth-child(2) { top: 13px; left: 0; }
.brand-mark span:nth-child(3) { top: 25px; }

.brand-text {
  display: flex;
  min-width: 0;
  flex-direction: column;
  line-height: 1.25;
}

.brand-kicker {
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.brand-text strong {
  font-size: 1.24rem;
  font-weight: 800;
}

.primary-nav {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 4px;
}

.primary-nav a {
  position: relative;
  display: grid;
  min-height: 44px;
  padding: 9px 17px;
  place-items: center;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.primary-nav a::after {
  position: absolute;
  right: 16px;
  bottom: 3px;
  left: 16px;
  height: 3px;
  content: "";
  background: var(--coral);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.primary-nav a:hover::after,
.primary-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.menu-button {
  display: none;
  min-width: 44px;
  min-height: 44px;
  padding: 4px;
  color: var(--ink);
  background: transparent;
  border: 0;
  cursor: pointer;
}

.menu-icon {
  display: flex;
  width: 24px;
  flex-direction: column;
  gap: 5px;
}

.menu-icon span {
  width: 100%;
  height: 2px;
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.menu-label {
  font-size: 0.64rem;
  font-weight: 700;
}

.intro-band {
  position: relative;
  display: grid;
  min-height: min(590px, calc(100vh - var(--header-height)));
  overflow: hidden;
  color: var(--white);
  background-color: var(--deep-water);
  background-image:
    linear-gradient(90deg, rgba(0, 52, 65, 0.96) 0%, rgba(0, 79, 97, 0.84) 52%, rgba(0, 127, 145, 0.38) 100%),
    url("assets/pool-water.png");
  background-position: center;
  background-size: cover;
  place-items: center;
}

.intro-band::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image: linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 100% 84px;
  pointer-events: none;
}

.intro-content {
  position: relative;
  z-index: 2;
  padding-block: 72px 92px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--water);
  font-family: "Trebuchet MS", "Arial Narrow", sans-serif;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.intro-content .eyebrow {
  display: inline-flex;
  align-items: center;
  color: #c8fbff;
  gap: 12px;
}

.intro-content .eyebrow::before {
  width: 40px;
  height: 2px;
  content: "";
  background: var(--sun);
}

.intro-content h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2.7rem, 6.6vw, 5.9rem);
  font-weight: 800;
  line-height: 1.18;
}

.intro-content h1 span {
  color: #aef3f5;
}

.intro-copy {
  max-width: 580px;
  margin: 24px 0 34px;
  color: #e9ffff;
  font-size: 1.05rem;
  font-weight: 500;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, 260px);
  min-height: 54px;
  padding: 12px 20px;
  color: var(--deep-water);
  background: var(--sun);
  font-weight: 800;
  text-decoration: none;
  transition: background-color 160ms ease, transform 160ms ease;
}

.primary-action:hover {
  background: #ffda76;
  transform: translateY(-2px);
}

.primary-action span {
  font-size: 1.35rem;
}

.intro-water {
  position: absolute;
  z-index: 1;
  right: max(-190px, calc((100vw - var(--content-width)) / 2 - 250px));
  bottom: -40px;
  width: min(55vw, 720px);
  height: 125%;
  opacity: 0.6;
  transform: rotate(13deg);
}

.lane {
  position: absolute;
  top: -15%;
  bottom: -15%;
  width: 2px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.38);
}

.lane::before {
  position: absolute;
  top: 0;
  left: 50%;
  width: 16px;
  height: 100%;
  content: "";
  background: repeating-linear-gradient(to bottom, var(--sun) 0 18px, var(--coral) 18px 36px);
  border-radius: 10px;
  transform: translateX(-50%);
  opacity: 0.78;
}

.lane-one { left: 4%; }
.lane-two { left: 34%; }
.lane-three { left: 64%; }
.lane-four { left: 94%; }

.section-block {
  padding-block: 76px 92px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 34px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  gap: 28px;
}

.section-heading h2,
.page-title-band h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 800;
  line-height: 1.2;
}

.section-heading p:not(.section-kicker) {
  margin: 0 0 6px;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.news-list {
  min-height: 150px;
}

.news-item {
  display: grid;
  grid-template-columns: 130px 100px minmax(0, 1fr) 32px;
  align-items: center;
  min-height: 86px;
  padding: 18px 12px;
  border-bottom: 1px solid var(--line);
  gap: 18px;
}

.news-item:first-child {
  border-top: 1px solid var(--line);
}

.news-item time {
  color: var(--ink-soft);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
}

.category-tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  color: var(--deep-water);
  background: var(--ice);
  border: 1px solid #91cbd1;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.3;
}

.category-tag.important,
.category-tag.tag-important {
  color: #8b271f;
  background: #fff0ed;
  border-color: #f1aaa1;
}

.category-tag.tag-meet {
  color: #00435a;
  background: #e2f3f4;
  border-color: #6ec4cc;
}

.category-tag.tag-result {
  color: #3a3000;
  background: #fdf5da;
  border-color: #d4b84a;
}

.news-item a {
  font-weight: 700;
  text-decoration: none;
}

.news-item a:hover {
  color: var(--water);
  text-decoration: underline;
}

.news-arrow {
  color: var(--water);
  font-size: 1.25rem;
  text-align: center;
}

.page-title-band {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background: var(--deep-water);
}

.page-title-band::after {
  position: absolute;
  right: -70px;
  bottom: -120px;
  width: 470px;
  height: 230px;
  content: "";
  border: 30px solid rgba(139, 234, 238, 0.16);
  border-right-color: transparent;
  border-left-color: transparent;
  border-radius: 50%;
  transform: rotate(-12deg);
}

.page-title-band .content-shell {
  position: relative;
  z-index: 1;
  padding-block: 72px 68px;
}

.page-title-band .section-kicker {
  color: #aef3f5;
}

.page-title-band p:last-child {
  max-width: 660px;
  margin: 16px 0 0;
  color: #dff8fa;
}

.year-tabs {
  display: flex;
  margin-bottom: 34px;
  overflow-x: auto;
  border-bottom: 2px solid var(--deep-water);
  scrollbar-width: thin;
}

.year-tab {
  flex: 0 0 auto;
  min-width: 140px;
  min-height: 52px;
  padding: 11px 20px;
  color: var(--ink-soft);
  background: var(--foam);
  border: 1px solid var(--line);
  border-bottom: 0;
  cursor: pointer;
  font-weight: 800;
}

.year-tab[aria-selected="true"] {
  color: var(--white);
  background: var(--deep-water);
  border-color: var(--deep-water);
}

.competition-list {
  display: grid;
  min-height: 200px;
  gap: 22px;
}

.competition-card {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 8px 28px rgba(16, 47, 58, 0.07);
}

.competition-date {
  display: flex;
  min-height: 218px;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: var(--white);
  background: var(--deep-water);
  text-align: center;
}

.competition-date time {
  display: flex;
  flex-direction: column;
  font-family: "Trebuchet MS", sans-serif;
  font-weight: 800;
  line-height: 1.15;
}

.competition-date .date-year {
  color: #aef3f5;
  font-size: 0.78rem;
}

.competition-date .date-main {
  margin-top: 5px;
  font-size: 1.9rem;
}

.competition-body {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 28px 32px;
}

.competition-meta {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 10px;
  gap: 8px;
}

.type-tag {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  padding: 2px 10px;
  color: var(--deep-water);
  background: var(--ice);
  border-left: 3px solid var(--water);
  font-size: 0.72rem;
  font-weight: 800;
}

.type-tag[data-type="水球"] {
  color: #003b6b;
  background: #ddeeff;
  border-left-color: #3a7fc4;
}

.type-tag[data-type="飛込"] {
  color: #360076;
  background: #ecdeff;
  border-left-color: #8c4fd8;
}

.type-tag[data-type="AS"] {
  color: #6a003b;
  background: #ffe8f2;
  border-left-color: #d44086;
}

.type-tag[data-type="OWS"] {
  color: #004232;
  background: #d5f5ea;
  border-left-color: #2aaa76;
}

.competition-note-text {
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.competition-body h2 {
  margin: 0 0 12px;
  font-size: clamp(1.18rem, 2.4vw, 1.52rem);
  line-height: 1.5;
}

.venue {
  display: flex;
  align-items: flex-start;
  margin: 0 0 20px;
  color: var(--ink-soft);
  gap: 8px;
}

.venue::before {
  flex: 0 0 auto;
  margin-top: 0.15em;
  color: var(--coral);
  content: "●";
  font-size: 0.72rem;
}

.competition-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.document-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 8px 14px;
  color: var(--deep-water);
  background: var(--white);
  border: 1px solid var(--water);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
  gap: 8px;
}

.document-link:hover {
  color: var(--white);
  background: var(--deep-water);
}

.document-link.result {
  color: var(--white);
  background: var(--coral-dark);
  border-color: var(--coral-dark);
}

.document-link.result:hover {
  background: #a93429;
}

.document-link.disabled {
  color: #667b82;
  background: #edf2f3;
  border-color: #cfdadd;
  cursor: not-allowed;
}

.link-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.link-card {
  position: relative;
  display: grid;
  min-height: 148px;
  padding: 24px 58px 24px 26px;
  overflow: hidden;
  background: var(--foam);
  border: 1px solid var(--line);
  align-content: center;
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.link-card:hover {
  border-color: var(--water);
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.link-card h2 {
  margin: 0 0 7px;
  font-size: 1.08rem;
  line-height: 1.45;
}

.link-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.link-card .external-mark {
  position: absolute;
  top: 50%;
  right: 24px;
  color: var(--water);
  font-size: 1.3rem;
  transform: translateY(-50%);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.contact-heading {
  display: flex;
  min-height: 300px;
  align-items: center;
  padding: 36px;
  color: var(--white);
  background: var(--deep-water);
  gap: 18px;
}

.contact-mark {
  display: grid;
  flex: 0 0 62px;
  width: 62px;
  height: 62px;
  color: var(--deep-water);
  background: var(--sun);
  border-radius: 50%;
  font-size: 1.6rem;
  font-weight: 800;
  place-items: center;
}

.contact-heading p {
  margin: 0 0 5px;
  color: #b8edf1;
  font-size: 0.76rem;
  font-weight: 700;
}

.contact-heading h2 {
  margin: 0;
  font-size: 1.5rem;
  line-height: 1.45;
}

.contact-details {
  margin: 0;
  padding: 36px 40px 20px;
}

.contact-details > div {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  gap: 20px;
}

.contact-details dt {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 800;
}

.contact-details dd {
  margin: 0;
  font-weight: 600;
}

.contact-details a {
  color: var(--deep-water);
}

.contact-note {
  grid-column: 2;
  margin: 0 40px 36px;
  padding: 14px 16px;
  color: var(--ink-soft);
  background: var(--foam);
  font-size: 0.82rem;
}

.sponsor-section {
  padding-block: 52px 62px;
  background: #f3f7f7;
  border-top: 1px solid var(--line);
}

.sponsor-heading {
  display: flex;
  align-items: baseline;
  margin-bottom: 22px;
  gap: 16px;
}

.sponsor-heading h2 {
  margin: 0;
  color: var(--deep-water);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
}

.sponsor-heading span {
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.sponsor-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.sponsor-link {
  display: flex;
  min-height: 94px;
  padding: 0;
  background: var(--white);
  border: 1px solid #d8e4e6;
  align-items: stretch;
  justify-content: stretch;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.sponsor-link:hover {
  border-color: var(--water);
  box-shadow: 0 7px 20px rgba(16, 47, 58, 0.08);
}

.sponsor-link img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 94px;
  object-fit: contain;
}

.site-footer {
  color: #d8f1f3;
  background: #0c3039;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-block: 44px 28px;
  gap: 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark-light span {
  border-color: #71dce4;
}

.footer-brand div {
  display: flex;
  flex-direction: column;
}

.footer-brand strong {
  color: var(--white);
  font-size: 0.98rem;
}

.footer-brand span:last-child {
  color: #9bc4c9;
  font-size: 0.66rem;
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.footer-nav a {
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--sun);
}

.site-footer small {
  grid-column: 1 / -1;
  padding-top: 22px;
  color: #8bb0b5;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 0.68rem;
}

.loading-state,
.empty-state,
.error-state {
  display: flex;
  min-height: 150px;
  align-items: center;
  justify-content: center;
  padding: 28px;
  color: var(--ink-soft);
  background: var(--foam);
  border: 1px dashed var(--line);
  text-align: center;
  gap: 12px;
}

.error-state {
  color: #852e27;
  background: #fff5f3;
  border-color: #efb7b0;
}

.loader {
  display: inline-block;
  width: 22px;
  height: 22px;
  border: 3px solid var(--line);
  border-top-color: var(--water);
  border-radius: 50%;
  animation: spin 700ms linear infinite;
}

.noscript-message {
  position: fixed;
  z-index: 500;
  right: 16px;
  bottom: 16px;
  left: 16px;
  padding: 18px;
  color: var(--white);
  background: #8b271f;
  text-align: center;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes routeIn {
  from { opacity: 0.4; transform: translateY(14px); }
  to   { opacity: 1;   transform: translateY(0); }
}

.route-enter {
  animation: routeIn 220ms ease;
}

.new-badge {
  display: inline-flex;
  min-height: 17px;
  align-items: center;
  padding: 1px 5px;
  margin-left: 6px;
  color: var(--white);
  background: var(--coral);
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  vertical-align: middle;
}

@media (max-width: 880px) {
  .menu-button {
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
  }

  .menu-button[aria-expanded="true"] .menu-icon span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-button[aria-expanded="true"] .menu-icon span:nth-child(2) {
    opacity: 0;
  }

  .menu-button[aria-expanded="true"] .menu-icon span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .primary-nav {
    position: fixed;
    z-index: 90;
    top: var(--header-height);
    right: 0;
    left: 0;
    display: grid;
    align-content: start;
    min-height: calc(100vh - var(--header-height));
    padding: 20px;
    background: var(--white);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-12px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .primary-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .primary-nav a {
    justify-content: start;
    min-height: 58px;
    border-bottom: 1px solid var(--line);
  }

  .primary-nav a::after {
    top: 14px;
    right: auto;
    bottom: 14px;
    left: 0;
    width: 3px;
    height: auto;
    transform: scaleY(0);
    transform-origin: top;
  }

  .primary-nav a:hover::after,
  .primary-nav a[aria-current="page"]::after {
    transform: scaleY(1);
  }

  .intro-band {
    min-height: 570px;
  }

  .intro-water {
    right: -220px;
    width: 620px;
    opacity: 0.38;
  }

  .sponsor-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-nav {
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  :root {
    --header-height: 68px;
  }

  .content-shell,
  .header-inner {
    width: min(calc(100% - 28px), var(--content-width));
  }

  .brand-kicker {
    font-size: 0.6rem;
  }

  .brand-text strong {
    font-size: 1.02rem;
  }

  .brand-mark {
    flex-basis: 38px;
    width: 38px;
    transform: scale(0.84);
    transform-origin: left center;
  }

  .intro-band {
    min-height: 540px;
  }

  .intro-content {
    padding-block: 64px 72px;
  }

  .intro-content h1 {
    font-size: clamp(2.45rem, 14vw, 4.1rem);
  }

  .intro-copy {
    font-size: 0.93rem;
  }

  .section-block {
    padding-block: 54px 68px;
  }

  .section-heading {
    display: block;
    margin-bottom: 24px;
  }

  .section-heading > p {
    margin-top: 10px !important;
  }

  .news-item {
    grid-template-columns: 95px minmax(0, 1fr) 22px;
    gap: 10px;
  }

  .news-item .category-tag {
    grid-column: 1;
    grid-row: 2;
  }

  .news-item a {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .news-arrow {
    grid-column: 3;
    grid-row: 1 / span 2;
  }

  .page-title-band .content-shell {
    padding-block: 54px 50px;
  }

  .competition-card {
    grid-template-columns: 1fr;
  }

  .competition-date {
    min-height: auto;
    justify-content: flex-start;
    padding: 14px 20px;
    text-align: left;
  }

  .competition-date time {
    flex-flow: row wrap;
    align-items: baseline;
    gap: 8px;
  }

  .competition-date .date-main {
    font-size: 1.3rem;
  }

  .competition-body {
    padding: 24px 20px;
  }

  .link-list {
    grid-template-columns: 1fr;
  }

  .contact-panel {
    grid-template-columns: 1fr;
  }

  .contact-heading {
    min-height: 180px;
    padding: 28px 24px;
  }

  .contact-details {
    padding: 22px 22px 10px;
  }

  .contact-details > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-note {
    grid-column: 1;
    margin: 0 22px 26px;
  }

  .sponsor-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .footer-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
}

@media (max-width: 420px) {
  .brand-kicker {
    display: none;
  }

  .brand-text strong {
    font-size: 0.95rem;
  }

  .sponsor-list {
    grid-template-columns: 1fr;
  }

  .news-item {
    grid-template-columns: 1fr 24px;
  }

  .news-item time,
  .news-item .category-tag {
    grid-column: 1;
  }

  .news-item a {
    grid-column: 1;
    grid-row: 3;
  }

  .news-arrow {
    grid-column: 2;
    grid-row: 1 / span 3;
  }
}

.status-badge {
  display: inline-flex;
  min-height: 22px;
  align-items: center;
  padding: 2px 9px;
  margin-bottom: 10px;
  border-radius: 2px;
  font-family: "Trebuchet MS", sans-serif;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.status-current {
  color: #00352a;
  background: #4de8ab;
  box-shadow: 0 0 0 2px rgba(77, 232, 171, 0.45);
}

.status-soon {
  color: #4a2000;
  background: var(--sun);
  box-shadow: 0 0 0 2px rgba(244, 201, 93, 0.45);
}

.status-past {
  color: rgba(255, 255, 255, 0.54);
  background: rgba(255, 255, 255, 0.12);
}

.status-cancelled {
  color: #fff;
  background: #7a7a7a;
}

.competition-date[data-status="past"] {
  background: #4a5e64;
}

.competition-date[data-status="past"] .date-year,
.competition-date[data-status="past"] .date-main {
  opacity: 0.72;
}

.competition-date[data-status="cancelled"] {
  background: #616161;
}

.competition-date[data-status="cancelled"] .date-main {
  opacity: 0.6;
}

.doc-icon {
  font-size: 0.8em;
  line-height: 1;
}

.back-top {
  position: fixed;
  z-index: 90;
  right: 22px;
  bottom: 24px;
  display: grid;
  width: 48px;
  height: 48px;
  color: var(--white);
  background: var(--deep-water);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 6px 20px rgba(16, 47, 58, 0.28);
  cursor: pointer;
  font-size: 1.35rem;
  place-items: center;
  transition: background-color 160ms ease, transform 160ms ease;
}

.back-top:hover {
  background: var(--water);
  transform: translateY(-3px);
}

@media print {
  .site-header,
  .primary-nav,
  .menu-button,
  .intro-band,
  .sponsor-section,
  .site-footer,
  .back-top,
  .skip-link,
  .year-tabs {
    display: none !important;
  }

  body {
    font-size: 11pt;
    color: #000;
    background: #fff;
  }

  .page-section {
    display: block !important;
  }

  .page-title-band {
    color: #000;
    background: none;
    border-bottom: 2pt solid #000;
  }

  .page-title-band .section-kicker,
  .page-title-band p {
    color: #000;
  }

  .competition-card {
    break-inside: avoid;
    box-shadow: none;
    border: 1pt solid #aaa;
  }

  .competition-date {
    color: #000;
    background: #eee;
  }

  .competition-date .date-year,
  .competition-date .date-main {
    color: #000;
  }

  .document-link {
    color: #000;
    background: none;
    border: 1pt solid #aaa;
  }

  .document-link.result {
    color: #000;
  }

  .document-link::after {
    content: " (" attr(href) ")";
    font-size: 0.75em;
    word-break: break-all;
  }

  .document-link.disabled::after {
    content: none;
  }

  a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.8em;
    word-break: break-all;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}