:root {
  --ink: #171717;
  --muted: #5f6670;
  --paper: #fffdf6;
  --panel: #ffffff;
  --soft-blue: #eff9fb;
  --stripe-blue: rgba(11, 128, 201, 0.7);
  --blue: #0b80c9;
  --blue-dark: #075b91;
  --aqua: #5ed7df;
  --yellow: #ffd23f;
  --red: #f04a3a;
  --line: #d9e4ea;
  --shadow: 0 20px 60px rgba(20, 40, 60, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 4000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px clamp(18px, 5vw, 64px);
  background: rgba(255, 253, 246, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand img {
  width: 174px;
  height: 64px;
  object-fit: cover;
  object-position: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 34px);
  font-weight: 800;
}

.nav-links a {
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--blue);
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  display: inline-flex;
  min-height: auto;
  align-items: center;
  gap: 6px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 0;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.nav-dropdown-trigger::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}

.nav-dropdown:hover .nav-dropdown-trigger,
.nav-dropdown.is-current .nav-dropdown-trigger,
.nav-dropdown.is-open .nav-dropdown-trigger,
.nav-dropdown-trigger:hover {
  color: var(--blue);
  background: transparent;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  z-index: 4100;
  min-width: 190px;
  display: none;
  padding: 8px;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.12);
}

.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  display: grid;
  gap: 4px;
}

.nav-dropdown-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a[aria-current="page"] {
  color: #ffffff;
  background: var(--blue);
}

.auth-open {
  min-height: 38px;
  padding: 7px 12px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 6px;
  font-size: 0.92rem;
}

.auth-open[hidden] {
  display: none;
}

.nav-account-menu {
  position: relative;
}

.nav-account-menu[hidden] {
  display: none;
}

.nav-account-avatar {
  width: 55px;
  height: 55px;
  min-height: 55px;
  display: grid;
  place-items: center;
  padding: 0;
  overflow: hidden;
  color: #ffffff;
  background: var(--blue);
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: 1rem;
  font-weight: 900;
}

.nav-account-avatar:hover {
  background: var(--blue-dark);
}

.nav-account-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 45;
  min-width: 150px;
  display: none;
  padding: 8px;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.12);
}

.nav-account-menu.is-open .nav-account-dropdown {
  display: grid;
  gap: 4px;
}

.nav-account-dropdown a,
.nav-account-signout {
  width: 100%;
  min-height: auto;
  justify-content: flex-start;
  padding: 9px 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 6px;
  font: inherit;
  font-weight: 800;
  text-align: left;
  text-decoration: none;
}

.nav-account-dropdown a:hover,
.nav-account-signout:hover {
  color: #ffffff;
  background: var(--blue);
}

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

.hero {
  min-height: calc(100vh - 78px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(44px, 7vw, 86px) clamp(18px, 5vw, 64px);
  background: #ffffff;
}

.hero-copy {
  display: contents;
}

.hero-copy h1,
.hero-copy > p,
.hero-actions {
  grid-column: 1;
}

.hero-media {
  grid-column: 2;
  grid-row: 1 / span 3;
  position: relative;
}

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

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

h1 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 1;
}

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

.hero p {
  max-width: 590px;
  font-size: 1.18rem;
}

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

.hero-actions > .button {
  flex: 0 0 196px;
  width: 196px;
  height: 60px;
  min-height: 60px;
}

.button,
button {
  display: inline-flex;
  min-height: 60px;
  align-items: center;
  justify-content: center;
  padding: 14px 29px;
  border: 2px solid transparent;
  border-radius: 6px;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

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

.primary:hover,
button:hover {
  background: #ce382b;
}

.secondary {
  color: var(--ink);
  background: #ffffff;
  border-color: var(--ink);
}

.secondary:hover {
  color: #ffffff;
  background: var(--ink);
}

.modal-open {
  overflow: hidden;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: none;
  place-items: center;
  padding: 18px;
}

.auth-modal.is-open {
  display: grid;
}

.auth-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 28, 0.62);
}

.auth-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 430px);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  padding: 24px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.account-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 22px;
}

.account-avatar {
  width: 74px;
  height: 74px;
  flex: 0 0 74px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  background: var(--blue);
  border: 3px solid var(--ink);
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 900;
}

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

.account-email {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 18px;
}

.account-panel {
  padding: 20px;
  background: #eff9fb;
  border: 2px solid var(--ink);
  border-radius: 8px;
}

.profile-list {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.profile-list div,
.team-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
}

.profile-list dt {
  color: var(--muted);
  font-weight: 900;
}

.profile-list dd {
  margin: 0;
  font-weight: 900;
  text-align: right;
}

.profile-status-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.profile-status-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  color: var(--ink);
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.profile-status-tag-host {
  background: var(--yellow);
}

.profile-status-tag-club {
  color: #ffffff;
  background: var(--ink);
}

.profile-status-tag-judge {
  color: #ffffff;
  background: var(--blue);
}

.profile-status-tag-swimmers,
.profile-status-tag-swimmer {
  background: #dff7ef;
}

.profile-status-tag-squad,
.profile-status-tag-squad_leader {
  background: #ffe6ef;
}

.profile-status-tag-squad_covered {
  background: #e7f0ff;
}

.profile-status-empty {
  color: var(--muted);
}

.team-form,
.invite-form,
.tournament-form {
  display: grid;
  gap: 12px;
}

.newsletter-copy[hidden],
.signup-form[hidden],
.squad-panel[hidden],
.tournament-home-panel[hidden],
.team-form[hidden],
.invite-form[hidden],
.tournament-form[hidden] {
  display: none;
}

.squad-panel {
  align-self: stretch;
}

.newsletter-section > .signup-form,
.newsletter-section > .squad-panel,
.newsletter-section > .tournament-home-panel {
  min-height: 520px;
}

.newsletter-section.is-map-stage {
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.8fr);
}

.tournament-copy {
  align-self: center;
}

.tournament-copy .tournament-filters {
  max-width: 420px;
  margin-top: 24px;
  margin-bottom: 14px;
}

.tournament-home-panel {
  display: grid;
  padding: 24px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 8px;
}

.tournament-home-panel .map-frame {
  height: 100%;
  min-height: 460px;
  box-shadow: none;
}

.tournament-create-panel {
  grid-column: 1 / -1;
}

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

.category-builder {
  display: grid;
  gap: 10px;
}

.category-row {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(150px, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.category-remove {
  min-height: 44px;
  padding: 8px 10px;
  color: var(--ink);
  background: #ffffff;
  border: 2px solid var(--ink);
}

.add-category-button {
  justify-self: start;
  color: var(--ink);
  background: var(--yellow);
  border: 2px solid var(--ink);
}

.team-current {
  margin: 16px 0;
  padding: 14px;
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 8px;
}

.team-summary {
  align-items: center;
  font-weight: 900;
}

.team-summary span {
  color: var(--blue-dark);
}

.team-list {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-weight: 800;
}

.team-roster-window {
  margin-top: 14px;
  padding: 12px;
  background: #eff9fb;
  border: 2px solid var(--line);
  border-radius: 8px;
}

.team-roster-heading,
.team-roster-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.team-roster-heading {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
}

.team-roster-heading span,
.team-roster-row small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.team-roster-list {
  padding-left: 0;
  list-style: none;
}

.team-roster-row {
  padding: 9px 0;
  border-top: 1px solid var(--line);
}

.team-roster-row > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.team-roster-row strong,
.team-roster-row small {
  overflow-wrap: anywhere;
}

.squad-standing-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 28px;
  padding: 5px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.squad-standing-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.squad-standing-line .squad-standing-badge {
  min-width: 68px;
  min-height: 24px;
  padding: 4px 8px;
  font-size: 0.72rem;
}

.squad-standing-badge.is-active {
  background: #168a4a;
}

.squad-standing-badge.is-inactive {
  background: #d33128;
}

.squad-remove-button {
  min-height: 32px;
  padding: 5px 10px;
  color: var(--ink);
  background: #ffffff;
  border: 2px solid var(--ink);
  font-size: 0.82rem;
  white-space: nowrap;
}

.squad-remove-button:hover {
  color: #ffffff;
  background: var(--blue);
}

.team-roster-empty {
  color: var(--muted);
}

.team-invite-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.team-invite-actions,
.invite-link-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.invite-message {
  display: grid;
  gap: 8px;
}

.invite-resend-link,
.invite-copy-button,
.invite-cancel-button {
  min-height: 32px;
  padding: 5px 10px;
  font-size: 0.82rem;
  white-space: nowrap;
}

.invite-cancel-button {
  color: #ffffff;
  background: #f54438;
  border-color: #c9281f;
}

.invite-cancel-button:hover {
  color: #ffffff;
  background: #c9281f;
}

.team-message,
.invite-message,
.tournament-message {
  min-height: 24px;
  margin: 0;
  color: var(--blue-dark);
  font-weight: 900;
}

.sign-out-button {
  width: 100%;
  background: var(--ink);
}

.auth-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  color: var(--ink);
  background: #ffffff;
  border: 2px solid var(--ink);
  font-size: 1.3rem;
  line-height: 1;
}

.auth-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 28px 0 20px;
}

.auth-tab {
  color: var(--ink);
  background: #eff9fb;
  border: 2px solid var(--ink);
}

.auth-tab.is-active {
  color: #ffffff;
  background: var(--blue);
}

button:disabled {
  opacity: 0.62;
  cursor: wait;
}

.auth-form {
  display: none;
  gap: 14px;
}

.auth-form.is-active {
  display: grid;
}

.auth-form h2 {
  margin-bottom: 2px;
  font-size: 2rem;
}

.auth-message {
  min-height: 24px;
  margin: 0;
  color: var(--blue-dark);
  font-weight: 900;
}

.avatar-preview {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  color: var(--muted);
  background: #eff9fb;
  border: 2px solid var(--line);
  border-radius: 6px;
  font-weight: 800;
}

.avatar-preview img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: cover;
  border: 2px solid var(--ink);
  border-radius: 50%;
}

.avatar-preview span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-media::before {
  content: "";
  position: absolute;
  inset: 24px -16px -18px 18px;
  z-index: 0;
  background: var(--soft-blue);
  border: 3px solid var(--ink);
  border-radius: 8px;
  transform: rotate(2deg);
}

.hero-media video {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: pointer;
}

.freestyle-feature,
.stroke-feature {
  position: relative;
  z-index: 30;
  height: 0;
  overflow: visible;
  padding: 0;
  pointer-events: none;
}

.freestyle-feature img,
.stroke-feature img {
  position: relative;
  z-index: 31;
  width: clamp(200px, 28vw, 430px);
  height: clamp(200px, 28vw, 430px);
  max-width: none;
  margin: 0;
  object-fit: contain;
  translate: 0 -50%;
  animation: freestyle-swim-across 9s linear infinite;
}

.breaststroke-feature img {
  animation-duration: 10s;
}

@keyframes freestyle-swim-across {
  from {
    transform: translateX(calc(100vw + 80px));
  }

  to {
    transform: translateX(calc(-100% - 80px));
  }
}

.section {
  padding: clamp(52px, 8vw, 92px) clamp(18px, 5vw, 64px);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 32px;
}

.section-heading p,
.about-section p,
.newsletter-copy p {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
}

.team-strip {
  position: relative;
  z-index: 32;
  padding-top: clamp(26px, 4vw, 42px);
  padding-bottom: clamp(26px, 4vw, 42px);
  color: var(--ink);
  background: var(--stripe-blue);
}

.team-strip::before {
  content: none;
}

.team-strip > * {
  position: relative;
  z-index: 1;
}

.team-strip .eyebrow,
.team-strip p {
  color: var(--muted);
}

.team-strip .section-heading {
  margin-bottom: 20px;
  text-align: center;
}

.team-strip h2 {
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(1.75rem, 3vw, 3rem);
  white-space: nowrap;
}

.team-logos {
  position: relative;
  overflow: hidden;
  padding: 4px 0;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
}

.team-logos::before,
.team-logos::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  width: min(12vw, 120px);
  pointer-events: none;
}

.team-logos::before {
  left: 0;
  background: linear-gradient(90deg, rgba(84, 166, 216, 1), rgba(84, 166, 216, 0));
}

.team-logos::after {
  right: 0;
  background: linear-gradient(270deg, rgba(84, 166, 216, 1), rgba(84, 166, 216, 0));
}

.team-logo-track {
  display: flex;
  width: max-content;
  gap: 14px;
  transform: translateX(0);
  will-change: transform;
}

.team-logos.is-dragging {
  cursor: grabbing;
}

.team-logos img {
  flex: 0 0 150px;
  width: 150px;
  height: 150px;
  padding: 4px;
  object-fit: contain;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 8px;
  user-select: none;
}

.about-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas:
    "about-title about-title"
    "about-side about-copy";
  grid-template-rows: auto auto;
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  background: #ffffff;
}

.about-heading {
  grid-area: about-title;
}

.about-side-box,
.about-copy-box {
  max-width: 760px;
  background: var(--panel);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.12);
}

.about-side-box {
  grid-area: about-side;
  width: 100%;
  height: var(--about-copy-box-height, auto);
  min-height: 240px;
  overflow: hidden;
}

.about-side-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-copy-box {
  grid-area: about-copy;
  align-self: start;
  padding: clamp(20px, 3vw, 30px);
}

.about-copy-box h3 {
  margin-bottom: 12px;
  font-size: clamp(1.35rem, 2.4vw, 2.2rem);
  line-height: 1.05;
}

.about-copy-box p {
  color: var(--ink);
  font-size: 1.18rem;
  margin-bottom: 18px;
  line-height: 1.32;
}

.about-copy-box p:last-child {
  margin-bottom: 0;
}

.play-section {
  position: relative;
  z-index: 32;
  background: var(--stripe-blue);
}

.play-section > * {
  position: relative;
  z-index: 1;
}

.rules-hero {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(520px, 1.28fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background:
    radial-gradient(circle at 80% 24%, rgba(255, 210, 63, 0.28), transparent 30%),
    linear-gradient(135deg, #effbff 0%, #fffdf6 100%);
}

.tournaments-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background:
    radial-gradient(circle at 82% 26%, rgba(240, 74, 58, 0.18), transparent 30%),
    linear-gradient(135deg, #effbff 0%, #fffdf6 100%);
}

.rules-hero h1 {
  max-width: 920px;
}

.rules-hero p,
.tournaments-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
}

.tournaments-hero h1 {
  max-width: 920px;
}

.tournaments-main-hero {
  display: block;
}

.tournaments-main-hero .tournaments-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.8fr);
  column-gap: clamp(28px, 5vw, 72px);
  row-gap: 0;
  align-items: center;
}

.tournaments-main-hero .tournaments-hero-copy > :not(.tournament-trophy-inline) {
  grid-column: 1;
}

.tournaments-main-hero .tournament-trophy-inline {
  display: grid;
  grid-column: 2;
  grid-row: 1 / span 4;
  align-self: center;
}

.video-embed {
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.12);
}

.video-embed iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.video-embed img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rulebook-link-section {
  display: grid;
  place-items: center;
  background: #ffffff;
}

.rulebook-image-link {
  display: block;
  width: min(100%, 680px);
}

.rulebook-image-link img {
  display: block;
  width: 100%;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.12);
}

.cards-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 0.8fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  background:
    radial-gradient(circle at 82% 26%, rgba(255, 210, 63, 0.28), transparent 30%),
    linear-gradient(135deg, #effbff 0%, #fffdf6 100%);
}

.cards-hero h1 {
  max-width: 920px;
}

.cards-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
}

.cards-hero img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.cards-section {
  background: #ffffff;
}

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

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

.card-detail-list li {
  padding: 12px 14px;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-weight: 800;
}

.cards-gallery-section {
  background: #eff9fb;
}

.cards-gallery-section-alt {
  background: #ffffff;
}

.card-image-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}

.card-image {
  margin: 0;
  padding: 5px;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 4px 4px 0 rgba(23, 23, 23, 0.1);
  cursor: zoom-in;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.card-image:hover,
.card-image:focus {
  outline: none;
  transform: translateY(-4px);
  box-shadow: 6px 8px 0 rgba(23, 23, 23, 0.14);
}

.card-image img {
  width: 100%;
  aspect-ratio: 5 / 7;
  object-fit: contain;
  background: #f7fbfd;
  border-radius: 4px;
}

.card-zoom-open {
  overflow: hidden;
}

.card-zoom-modal {
  position: fixed;
  inset: 0;
  z-index: 6500;
  display: none;
  place-items: center;
  padding: clamp(18px, 4vw, 42px);
  background: rgba(12, 20, 28, 0.82);
  cursor: zoom-out;
}

.card-zoom-modal.is-open {
  display: grid;
}

.card-zoom-modal img {
  width: auto;
  max-width: min(92vw, 720px);
  max-height: 90vh;
  object-fit: contain;
  background: #ffffff;
  border: 3px solid #ffffff;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  cursor: default;
}

.card-zoom-close {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 1;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  color: var(--ink);
  background: #ffffff;
  border: 2px solid var(--ink);
  font-size: 1.45rem;
  line-height: 1;
}

.card-zoom-close:hover {
  color: #ffffff;
  background: var(--red);
}

.card-zoom-nav {
  position: fixed;
  top: 50%;
  z-index: 1;
  width: clamp(48px, 6vw, 68px);
  height: clamp(48px, 6vw, 68px);
  min-height: clamp(48px, 6vw, 68px);
  padding: 0;
  color: var(--ink);
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 50%;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  line-height: 1;
  transform: translateY(-50%);
}

.card-zoom-nav:hover {
  color: #ffffff;
  background: var(--blue);
}

.card-zoom-prev {
  left: clamp(12px, 4vw, 42px);
}

.card-zoom-next {
  right: clamp(12px, 4vw, 42px);
}

.tournament-trophy {
  display: grid;
  place-items: center;
}

.tournament-trophy-inline {
  display: none;
}

.tournament-trophy img,
.tournament-trophy video {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  filter: drop-shadow(0 24px 40px rgba(20, 40, 60, 0.2));
}

.tournament-trophy-video {
  aspect-ratio: 1;
  opacity: 0;
  transform: scale(2);
  transform-origin: center;
  transition: opacity 160ms ease;
}

.tournament-trophy-video.is-ready {
  opacity: 1;
}

.tournament-trophy-video.has-error {
  transform: none;
}

.objective-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: start;
  background: var(--yellow);
}

.objective-section p {
  max-width: 760px;
  font-size: 1.1rem;
}

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

.steps article,
.product-card {
  background: var(--panel);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.12);
}

.steps article {
  min-height: 230px;
  padding: 22px;
}

.steps .home-step-image {
  min-height: auto;
  margin-top: 48px;
  padding: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  box-shadow: none;
}

.home-step-media {
  position: relative;
  overflow: hidden;
  height: 178px;
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.12);
}

.home-step-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-step-image span {
  position: absolute;
  top: 16px;
  right: 16px;
  margin: 0;
}

.home-step-image h3 {
  margin: 0 0 16px;
}

.home-step-image p {
  margin: 14px 0 0;
  color: var(--ink);
}

.rulebook-button {
  display: inline-flex;
  width: fit-content;
  margin-top: 34px;
  padding: 20px 34px;
  font-size: 1.12rem;
}

.steps span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: #ffffff;
  background: var(--blue);
  border-radius: 50%;
  font-weight: 900;
}

.rule-cards-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  background: #ffffff;
}

.swimmer-prize-section {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 210, 63, 0.36), transparent 42%),
    linear-gradient(135deg, #ffffff 0%, #eff9fb 100%);
}

.swimmer-prize-display {
  width: min(100%, 920px);
  padding: clamp(30px, 6vw, 58px);
  text-align: center;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 10px 12px 0 rgba(23, 23, 23, 0.14);
}

.swimmer-prize-display h2 {
  margin: 4px 0 14px;
  color: var(--blue);
  font-size: clamp(4rem, 14vw, 9rem);
  line-height: 0.92;
}

.swimmer-prize-display p:last-child {
  max-width: 680px;
  margin: 0 auto;
  color: var(--ink);
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: 900;
  line-height: 1.28;
}

.host-earnings-section {
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 210, 63, 0.34), transparent 28%),
    linear-gradient(135deg, #eff9fb 0%, #ffffff 100%);
}

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

.host-earnings-card,
.host-math-panel {
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.12);
}

.host-earnings-card {
  display: grid;
  gap: 10px;
  padding: 24px;
}

.host-earnings-card h3 {
  margin: 0;
  color: var(--blue);
  font-size: clamp(2.4rem, 6vw, 4.8rem);
  line-height: 0.95;
}

.host-earnings-card p,
.host-earnings-card strong {
  margin: 0;
}

.host-earnings-card p:not(.eyebrow) {
  color: var(--muted);
  font-size: 1.04rem;
}

.host-earnings-card-highlight {
  background: var(--yellow);
}

.host-math-panel {
  margin-top: 24px;
  padding: clamp(22px, 4vw, 34px);
}

.host-math-panel h3 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 4vw, 2.8rem);
}

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

.host-math-grid div {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: #eff9fb;
  border: 2px solid rgba(23, 23, 23, 0.18);
  border-radius: 8px;
}

.host-math-grid span {
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
  text-transform: uppercase;
}

.host-math-grid strong {
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.3;
}

.host-math-panel > p {
  max-width: 860px;
  margin: 20px 0 0;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.35;
}

.tournament-lane-flow {
  position: relative;
  isolation: isolate;
}

.tournament-lane-flow::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 1;
  width: clamp(44px, 5vw, 74px);
  pointer-events: none;
  transform: translateX(-50%);
  background: url("assets/ChatGPT Image Aug 31, 2026, 09_50_58 PM.png") center / auto 100% no-repeat;
}

.tournament-lane-flow > .section {
  position: relative;
}

.tournament-info-section {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 96px);
  background: #ffffff;
}

.rule-card {
  position: relative;
  z-index: 2;
  padding: 28px;
  background: #eff9fb;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.12);
}

.info-link-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 16px;
  min-height: 230px;
  color: var(--ink);
  text-decoration: none;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease;
}

.tournament-info-section .info-link-card:first-child {
  grid-column: 1 / span 2;
}

.tournament-info-section .info-link-card:last-child {
  grid-column: 3 / span 2;
}

.info-link-card h2 {
  white-space: nowrap;
}

.info-link-card:hover,
.info-link-card:focus {
  outline: none;
  transform: translateY(-4px);
  box-shadow: 10px 12px 0 rgba(23, 23, 23, 0.16);
}

.info-link-card .button {
  justify-self: start;
}

.rule-card p {
  color: var(--muted);
  font-size: 1.05rem;
}

.judge-materials-section {
  background: #ffffff;
}

.judge-materials-list,
.judge-test-grid {
  display: grid;
  gap: 18px;
}

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

.judge-testing-section {
  background: var(--yellow);
}

.judge-test-grid {
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  align-items: start;
}

.judge-quiz-card {
  display: grid;
  gap: 18px;
  padding: clamp(20px, 4vw, 30px);
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.12);
}

.judge-quiz-card h3 {
  margin-bottom: 0;
  font-size: clamp(1.5rem, 3vw, 2.4rem);
}

.judge-quiz-card fieldset {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 16px;
  background: #eff9fb;
  border: 2px solid rgba(23, 23, 23, 0.18);
  border-radius: 8px;
}

.judge-quiz-card legend {
  padding: 0 6px;
  color: var(--ink);
  font-weight: 900;
}

.judge-quiz-card label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.judge-quiz-card input {
  flex: 0 0 auto;
  margin-top: 3px;
}

.judge-quiz-message {
  min-height: 24px;
  color: var(--ink);
  font-weight: 900;
}

.membership-section {
  background: var(--yellow);
}

#membership {
  position: relative;
  z-index: auto;
}

#membership .section-heading {
  position: relative;
  z-index: 2;
  max-width: clamp(360px, calc(50% - 56px), 620px);
}

.membership-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) minmax(32px, 7vw) repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 2vw, 28px);
}

.membership-card:nth-child(1) {
  grid-column: 1;
}

.membership-card:nth-child(2) {
  grid-column: 2;
}

.membership-card:nth-child(3) {
  grid-column: 4;
}

.membership-card:nth-child(4) {
  grid-column: 5;
}

.membership-card {
  display: grid;
  gap: 14px;
  padding: 26px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.12);
}

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

.membership-card > p:not(.badge):not(.membership-price) {
  color: var(--muted);
  font-size: 1.02rem;
}

.membership-price {
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-weight: 900;
  line-height: 1;
}

.membership-price-free {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  color: var(--blue);
}

.membership-price span {
  color: var(--muted);
  font-size: 1rem;
}

.membership-card button {
  margin-top: 6px;
}

.free-pass-message {
  min-height: 22px;
}

.free-pass-button.is-registered,
.free-pass-button.is-registered:hover {
  color: #ffffff;
  background: var(--blue);
  border-color: var(--blue-dark);
  cursor: default;
  opacity: 1;
}

.free-pass-cart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 18px;
  align-items: center;
  margin-top: 28px;
  padding: 22px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.12);
}

.free-pass-cart[hidden] {
  display: none;
}

.free-pass-cart h3,
.free-pass-cart p {
  margin: 0;
}

.free-pass-cart > div:first-child {
  display: grid;
  gap: 6px;
}

.free-pass-cart > div:first-child p:not(.eyebrow) {
  color: var(--muted);
  font-weight: 800;
}

.free-pass-cart-total {
  display: grid;
  gap: 2px;
  min-width: 98px;
  text-align: right;
}

.free-pass-cart-total span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
  text-transform: uppercase;
}

.free-pass-cart-total strong {
  color: var(--blue);
  font-size: 2.4rem;
  line-height: 1;
}

.membership-card .unavailable-button,
.membership-card .unavailable-button:hover {
  color: #ffffff;
  background: #8b949e;
  border-color: #6f7780;
  box-shadow: none;
  cursor: not-allowed;
  opacity: 1;
}

.membership-checkout-link {
  margin-top: 22px;
}

.leaderboard-section {
  background: #ffffff;
}

.leaderboard-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 18px;
}

.leaderboard-filters label {
  min-width: min(100%, 210px);
  font-size: 0.9rem;
}

.leaderboard-filters select,
.leaderboard-filters input {
  min-height: 40px;
  font-size: 0.94rem;
}

.leaderboard-card {
  overflow: hidden;
  background: #eff9fb;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.12);
}

.leaderboard-scroll {
  max-height: 720px;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.leaderboard-row {
  display: grid;
  grid-template-columns: 76px minmax(180px, 1fr) 110px 150px 120px 110px;
  gap: 16px;
  align-items: center;
  min-height: 72px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 800;
}

.leaderboard-row:last-child {
  border-bottom: 0;
}

.leaderboard-head {
  color: #ffffff;
  background: var(--ink);
  font-size: 0.86rem;
  text-transform: uppercase;
}

.leaderboard-row.is-search-match {
  background: rgba(255, 210, 63, 0.56);
  box-shadow: inset 6px 0 0 var(--red);
}

.rank {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background: var(--blue);
  border-radius: 50%;
  font-weight: 900;
}

.tournament-map-section {
  background: #eff9fb;
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 24px;
  align-items: start;
}

.map-frame {
  height: 620px;
  overflow: hidden;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

#tournamentMap,
#tournamentMap iframe {
  width: 100%;
  height: 100%;
  display: block;
}

#tournamentMap iframe {
  border: 0;
}

.leaflet-container {
  font: inherit;
}

.leaflet-control-attribution a[href*="leaflet"] {
  display: none;
}

.locations-card {
  padding: 22px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.12);
}

.locations-card h3 {
  margin-bottom: 12px;
}

.tournament-filters {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.tournament-filters label {
  gap: 5px;
  font-size: 0.88rem;
}

.tournament-filters select {
  min-height: 40px;
  font-size: 0.94rem;
}

.tournament-search-button {
  width: 100%;
  min-height: 42px;
  padding: 8px 14px;
}

.locations-list {
  margin: 18px 0 0;
  padding: 0;
  color: var(--muted);
  font-weight: 800;
  list-style: none;
}

.locations-list li + li {
  margin-top: 10px;
}

.location-button {
  width: 100%;
  display: grid;
  gap: 4px;
  justify-items: start;
  min-height: auto;
  padding: 12px;
  color: var(--ink);
  background: #eff9fb;
  border: 2px solid var(--line);
  text-align: left;
}

.location-button:hover {
  color: #ffffff;
  background: var(--blue);
}

.location-button span,
.location-button small {
  color: inherit;
  font-weight: 800;
}

.tournament-register-button {
  width: 100%;
  min-height: 42px;
  margin-top: 8px;
  padding: 8px 12px;
}

.tournament-registration-message,
.team-meta {
  margin: 8px 0 0;
  color: var(--blue-dark);
  font-size: 0.88rem;
  font-weight: 900;
}

.newsletter-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(180px, 0.45fr) minmax(300px, 0.8fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  background: #ffffff;
}

.newsletter-section[hidden] {
  display: none;
}

.newsletter-art {
  display: grid;
  place-items: center;
  overflow: visible;
}

.newsletter-animation {
  width: min(150%, 780px);
  max-width: none;
  object-fit: contain;
}

.newsletter-art-mobile {
  display: none;
}

.newsletter-section.is-map-stage .newsletter-art {
  display: none;
}

.signup-form {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 24px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 8px;
}

.signup-offer {
  margin: 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1.25;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
}

.checkbox-label input {
  width: 18px;
  min-height: 18px;
  flex: 0 0 18px;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 11px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #ffffff;
  font: inherit;
}

textarea {
  resize: vertical;
}

.judge-quiz-card label {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.judge-quiz-card input[type="radio"] {
  width: 18px;
  min-height: 18px;
  flex: 0 0 18px;
  margin-top: 2px;
  padding: 0;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  padding-right: 78px;
}

.password-toggle {
  position: absolute;
  top: 5px;
  right: 5px;
  min-height: 34px;
  padding: 5px 10px;
  color: #ffffff;
  background: var(--ink);
  border-radius: 5px;
  font-size: 0.82rem;
}

.address-field {
  position: relative;
  display: block;
}

.address-suggestions {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 10;
  display: none;
  max-height: 220px;
  overflow-y: auto;
  background: #ffffff;
  border: 2px solid var(--ink);
  border-radius: 6px;
  box-shadow: 0 14px 32px rgba(20, 40, 60, 0.18);
}

.address-suggestions.is-open {
  display: grid;
}

.address-suggestion {
  width: 100%;
  justify-content: flex-start;
  min-height: auto;
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  font-size: 0.92rem;
  font-weight: 800;
  text-align: left;
}

.address-suggestion:last-child {
  border-bottom: 0;
}

.address-suggestion:hover {
  color: #ffffff;
  background: var(--blue);
}

.form-message {
  min-height: 24px;
  margin: 0;
  color: var(--blue-dark);
  font-weight: 900;
}

.workouts-page {
  display: grid;
  gap: 28px;
  align-items: start;
  background: #eff9fb;
}

.workouts-page-heading {
  max-width: 860px;
}

.workouts-page-heading h1 {
  margin-bottom: 0;
  font-size: clamp(3rem, 6vw, 5.8rem);
}

.workouts-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(22px, 4vw, 42px);
  align-items: start;
}

.workouts-layout-library {
  grid-template-columns: minmax(0, 1fr);
}

.workouts-list-panel {
  display: grid;
  align-content: start;
  gap: 18px;
}

.workout-submit-page {
  justify-items: center;
}

.workout-submit-page .workouts-page-heading {
  width: min(100%, 760px);
  text-align: center;
}

.workout-submit-panel {
  display: grid;
  width: min(100%, 760px);
  gap: 18px;
  padding: 24px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.12);
}

.workouts-panel-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.workouts-panel-heading h2,
.workout-submit-panel h2 {
  margin-bottom: 0;
  font-size: clamp(1.65rem, 2.8vw, 2.6rem);
}

.workout-status,
.workout-submit-note {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

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

.workout-item {
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: #fffdf6;
}

.workout-title-button {
  width: 100%;
  justify-content: space-between;
  min-height: 58px;
  padding: 14px 16px;
  color: var(--ink);
  background: #ffffff;
  border: 0;
  border-radius: 0;
  text-align: left;
}

.workout-title-button::after {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 10px;
  margin-left: 14px;
  border-right: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(45deg);
}

.workout-title-button:hover,
.workout-item.is-open .workout-title-button {
  color: #ffffff;
  background: var(--blue);
}

.workout-item.is-open .workout-title-button::after {
  transform: translateY(4px) rotate(225deg);
}

.workout-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.workout-author {
  margin: 0;
  color: var(--blue-dark);
  font-weight: 900;
}

.workout-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.workout-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 4px 10px;
  color: var(--ink);
  background: #ffffff;
  border: 2px solid var(--line);
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 900;
}

.workout-text {
  white-space: pre-wrap;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.55;
}

.workout-form {
  display: grid;
  gap: 13px;
}

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

.store-section {
  background: var(--stripe-blue);
}

.store-hero {
  background:
    radial-gradient(circle at 82% 26%, rgba(94, 215, 223, 0.34), transparent 30%),
    linear-gradient(135deg, #effbff 0%, #fffdf6 100%);
}

.checkout-hero {
  background:
    radial-gradient(circle at 82% 24%, rgba(255, 210, 63, 0.26), transparent 30%),
    linear-gradient(135deg, #effbff 0%, #fffdf6 100%);
}

.profile-hero {
  background:
    radial-gradient(circle at 82% 24%, rgba(94, 215, 223, 0.3), transparent 30%),
    linear-gradient(135deg, #effbff 0%, #fffdf6 100%);
}

.partners-hero {
  background:
    radial-gradient(circle at 82% 26%, rgba(255, 210, 63, 0.28), transparent 30%),
    linear-gradient(135deg, #effbff 0%, #fffdf6 100%);
}

.store-hero h1 {
  max-width: 860px;
}

.store-hero p,
.checkout-hero p,
.profile-hero p,
.partners-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.12rem;
}

.profile-section {
  background: #ffffff;
}

.profile-shell {
  padding: 24px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.profile-shell .account-header {
  margin: 0 0 22px;
}

.profile-status {
  max-width: 760px;
  margin: 0;
  padding: 22px;
  color: var(--muted);
  background: #eff9fb;
  border: 3px solid var(--ink);
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 900;
}

.partners-section {
  background: #ffffff;
}

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

.partner-card {
  padding: 24px;
  background: #eff9fb;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.12);
}

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

.partner-card > p:not(.badge) {
  color: var(--muted);
  font-size: 1.02rem;
}

.partner-contact-section {
  background: var(--yellow);
}

.partner-contact {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.12);
}

.partner-contact h2,
.partner-contact p {
  margin: 0;
}

.partner-contact p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.05rem;
}

.checkout-section {
  background: #ffffff;
}

.success-hero {
  min-height: calc(100vh - 260px);
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 82% 24%, rgba(255, 210, 63, 0.26), transparent 30%),
    linear-gradient(135deg, #effbff 0%, #fffdf6 100%);
}

.success-panel {
  max-width: 860px;
  padding: clamp(24px, 5vw, 46px);
  background: #ffffff;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.12);
}

.success-panel p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.12rem;
}

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

.checkout-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
  gap: 24px;
  align-items: start;
}

.checkout-summary-form {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  grid-template-columns: 1fr;
}

.checkout-summary-form .checkout-summary {
  position: static;
}

.checkout-form-grid {
  display: grid;
  gap: 20px;
}

.checkout-panel,
.checkout-summary {
  padding: 22px;
  background: #eff9fb;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.12);
}

.checkout-panel {
  display: grid;
  gap: 14px;
}

.checkout-summary {
  position: sticky;
  top: 100px;
}

.checkout-items {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.checkout-item,
.checkout-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.checkout-item {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.checkout-item div {
  display: grid;
  gap: 3px;
}

.checkout-item span {
  color: var(--muted);
  font-weight: 800;
}

.checkout-total-row {
  padding: 10px 0;
  font-weight: 900;
}

.checkout-grand-total {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 3px solid var(--ink);
  font-size: 1.14rem;
}

.checkout-summary button {
  width: 100%;
  margin-top: 12px;
}

.checkout-message {
  min-height: 24px;
  margin: 12px 0 0;
  color: var(--blue-dark);
  font-weight: 900;
}

.store-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 24px;
  align-items: start;
}

.home-store-layout {
  grid-template-columns: minmax(0, 644px);
}

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

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

.home-product-grid {
  gap: 18px;
}

.store-product-grid {
  width: min(100%, 740px);
  gap: 20px;
}

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

.product-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
}

.product-card img {
  width: 100%;
  aspect-ratio: 1 / 0.9;
  object-fit: cover;
  object-position: center;
  background: #f5f5f5;
}

.home-product-grid .product-card img {
  aspect-ratio: 1 / 0.72;
}

.store-product-grid .product-card img {
  aspect-ratio: 1 / 0.76;
}

.home-product-grid .product-card div {
  padding: 18px;
}

.store-product-grid .product-card div {
  padding: 20px;
}

.home-product-grid .product-card h3 {
  font-size: 1.15rem;
}

.store-product-grid .product-card h3,
.store-product-grid .product-card p {
  font-size: 1.08rem;
}

.home-product-grid .product-card .button,
.home-product-grid .product-card button {
  min-height: 48px;
  padding: 10px 16px;
}

.store-product-grid .product-card .button,
.store-product-grid .product-card button {
  min-height: 52px;
  padding: 11px 18px;
}

.product-card .buy-button {
  width: 100%;
  margin-top: auto;
}

.product-card img.product-image-game {
  object-position: 79% center;
}

.product-card img.product-image-dice {
  object-position: 29% center;
}

.product-card div {
  display: grid;
  grid-template-rows: minmax(3.2rem, auto) auto 1fr;
  padding: 25px;
}

.product-card h3 {
  align-self: start;
  font-size: 1.15rem;
}

.product-card p {
  font-size: 1.15rem;
}

.badge {
  display: inline-flex;
  margin-bottom: 12px;
  padding: 4px 9px;
  color: var(--ink);
  background: var(--aqua);
  border: 2px solid var(--ink);
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
}

.cart-card {
  position: sticky;
  top: 100px;
  padding: 22px;
  background: #eff9fb;
  border: 3px solid var(--ink);
  border-radius: 8px;
  box-shadow: 8px 8px 0 rgba(23, 23, 23, 0.12);
}

.cart-card-header,
.cart-total,
.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cart-card-header {
  margin-bottom: 16px;
}

.cart-card-header h3,
.cart-card-header span {
  margin: 0;
}

.cart-card-header span {
  color: var(--muted);
  font-weight: 900;
}

.cart-items {
  display: grid;
  gap: 12px;
  min-height: 56px;
}

.cart-empty {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.cart-item {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item-name {
  margin: 0 0 4px;
  font-weight: 900;
}

.cart-item-meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.cart-item-price {
  white-space: nowrap;
  font-weight: 900;
}

.cart-total {
  margin: 18px 0;
  padding-top: 16px;
  border-top: 3px solid var(--ink);
  font-size: 1.1rem;
  font-weight: 900;
}

.checkout-button {
  width: 100%;
}

.full-store-link {
  width: 100%;
  margin-bottom: 12px;
}

.site-footer {
  padding: 36px clamp(18px, 5vw, 64px) 28px;
  color: var(--ink);
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: clamp(24px, 5vw, 58px);
  align-items: start;
  justify-content: end;
  margin-bottom: 24px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1rem;
  font-weight: 900;
}

.site-footer p,
.site-footer h3 {
  margin: 0 0 6px;
}

.footer-brand p,
.footer-copy {
  color: var(--muted);
  font-weight: 800;
}

.footer-column {
  display: grid;
  gap: 6px;
  min-width: 108px;
}

.footer-column h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
}

.footer-column a {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-decoration: none;
}

.footer-column a:hover {
  color: var(--blue);
}

@media (max-width: 1180px) {
  .card-image-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 10px 16px;
    overflow: visible;
  }

  .nav-links {
    width: 100%;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 4px;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar {
    display: none;
  }

  .nav-links > a,
  .nav-links > button,
  .nav-dropdown {
    flex: 0 0 auto;
  }

  .nav-links a,
  .nav-dropdown-trigger,
  .auth-open {
    min-height: 40px;
    padding: 8px 10px;
    white-space: nowrap;
  }

  .nav-dropdown-menu {
    position: fixed;
    top: 140px;
    right: auto;
    left: 16px;
    width: min(224px, calc(100vw - 32px));
    min-width: 0;
  }

  .section {
    padding: 44px 16px;
  }

  .hero {
    min-height: auto;
    gap: 24px;
    padding: 36px 16px 44px;
  }

  .hero-copy {
    display: block;
  }

  .hero-media {
    margin: 18px 0;
  }

  .hero p {
    font-size: 1rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 22px;
  }

  .hero-actions > .button {
    grid-column: 1 / -1;
    flex-basis: auto;
    width: 100%;
  }

  .hero-media::before {
    inset: 14px -8px -10px 10px;
  }

  .hero-media video {
    aspect-ratio: 16 / 11;
  }

  .footer-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-content: stretch;
    gap: 12px;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-column {
    min-width: 0;
  }

  .hero,
  .about-section,
  .account-grid,
  .objective-section,
  .rules-hero,
  .newsletter-section,
  .rule-cards-section,
  .host-earnings-grid,
  .judge-materials-list,
  .judge-test-grid,
  .tournament-info-section,
  .tournaments-hero,
  .cards-hero,
  .card-type-grid,
  .membership-grid,
  .checkout-form,
  .map-layout,
  .workouts-layout,
  .store-layout,
  .product-grid,
  .full-product-grid,
  .partner-grid {
    grid-template-columns: 1fr;
  }

  .membership-card {
    grid-column: auto;
  }

  .tournament-info-section {
    gap: 18px;
  }

  .tournament-info-section .info-link-card:first-child,
  .tournament-info-section .info-link-card:last-child {
    grid-column: auto;
  }

  .tournament-lane-flow::before {
    content: none;
  }

  .host-math-grid {
    grid-template-columns: 1fr;
  }

  .about-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "about-title"
      "about-side"
      "about-copy";
    gap: 14px;
    text-align: left;
  }

  .about-copy-box {
    padding: 14px;
  }

  .about-copy-box h3 {
    font-size: clamp(0.95rem, 3.4vw, 1.28rem);
  }

  .about-copy-box p {
    color: var(--ink);
    font-size: 0.94rem;
    line-height: 1.34;
  }

  .partner-contact {
    align-items: flex-start;
    flex-direction: column;
  }

  .newsletter-section.is-map-stage {
    grid-template-columns: 1fr;
  }

  .newsletter-animation {
    width: min(100%, 520px);
  }

  .newsletter-section {
    gap: 24px;
  }

  .free-pass-cart {
    grid-template-columns: 1fr;
  }

  .free-pass-cart-total {
    text-align: left;
  }

  .workouts-panel-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .signup-form {
    padding: 18px;
  }

  .cart-card {
    position: static;
  }

  .checkout-summary {
    position: static;
  }

  .card-image-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .leaderboard-card {
    overflow-x: auto;
  }

  .leaderboard-row {
    min-width: 820px;
  }

  .date-grid,
  .category-row,
  .workout-field-grid {
    grid-template-columns: 1fr;
  }

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

  .steps .home-step-image {
    margin-top: 20px;
  }

  .home-step-media {
    height: 158px;
  }
}

@media (max-width: 560px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
  }

  body {
    position: relative;
  }

  main,
  .site-footer {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .site-header {
    align-items: flex-start;
    gap: 4px;
    padding: 7px 12px;
    width: 100%;
    max-width: 100vw;
    overflow: visible;
  }

  .section {
    padding: 34px 14px;
  }

  .hero,
  .section,
  .team-strip,
  .store-section,
  .newsletter-section {
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }

  .hero {
    min-height: auto;
    gap: 18px;
    padding: 24px 14px 32px;
    justify-items: stretch;
  }

  .hero-copy {
    width: 100%;
    max-width: none;
    text-align: center;
  }

  .steps {
    grid-template-columns: 1fr;
  }

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

  .team-logo-track {
    gap: 8px;
  }

  .team-logos img {
    flex-basis: 104px;
    width: 104px;
    height: 104px;
    padding: 4px;
  }

  .brand img {
    width: 118px;
    height: 43px;
  }

  .brand {
    align-self: flex-start;
    margin-left: 0;
  }

  .nav-links {
    gap: 8px;
    row-gap: 2px;
    padding-bottom: 0;
    justify-content: center;
    overflow-x: visible;
    flex-wrap: wrap;
  }

  .nav-links > a,
  .nav-links > button,
  .nav-dropdown {
    display: inline-flex;
    align-items: center;
    flex: 0 1 auto;
  }

  .nav-links a,
  .nav-dropdown-trigger,
  .auth-open {
    min-height: 24px;
    padding: 2px 7px;
    font-size: clamp(0.66rem, 2.5vw, 0.82rem);
    line-height: 1.1;
    white-space: normal;
  }

  .auth-open {
    position: absolute;
    top: 11px;
    right: 12px;
    min-height: 30px;
    padding: 5px 9px;
    white-space: nowrap;
  }

  .nav-account-menu {
    position: absolute;
    top: 10px;
    right: 16px;
  }

  .nav-account-avatar {
    width: 37px;
    height: 37px;
    min-height: 37px;
    font-size: 0.72rem;
  }

  .nav-account-dropdown {
    right: 0;
  }

  .nav-dropdown-trigger {
    min-height: 24px;
    transform: none;
  }

  .nav-dropdown-trigger::after {
    transform: translateY(-1px) rotate(45deg);
  }

  .nav-dropdown-menu {
    top: 118px;
    right: auto;
    left: 14px;
    width: min(210px, calc(100vw - 28px));
  }

  .nav-account-menu {
    top: 9px;
    right: 12px;
  }

  .team-strip h2 {
    font-size: clamp(1.28rem, 7vw, 1.85rem);
    white-space: normal;
  }

  h1 {
    margin-bottom: 14px;
    font-size: clamp(2.08rem, 10.8vw, 3rem);
    line-height: 1;
  }

  h2 {
    font-size: clamp(1.62rem, 8.5vw, 2.35rem);
  }

  h3 {
    font-size: 1.08rem;
  }

  .hero p {
    max-width: none;
    margin-bottom: 0;
    font-size: 0.98rem;
    line-height: 1.42;
  }

  .button,
  button {
    min-height: 48px;
    padding: 11px 16px;
  }

  .hero-actions {
    gap: 8px;
    margin-top: 18px;
  }

  .hero-actions > .button {
    height: 56px;
    min-height: 56px;
  }

  .hero-media::before {
    inset: 10px 0 -7px 7px;
    border-width: 2px;
  }

  .hero-media {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    justify-self: stretch;
  }

  .hero-media video {
    aspect-ratio: 16 / 10;
    border-width: 2px;
    max-width: 100%;
  }

  .tournaments-hero {
    display: block;
  }

  .tournaments-main-hero .tournaments-hero-copy {
    display: flow-root;
    text-align: left;
  }

  .tournaments-main-hero .tournaments-hero-copy > :not(.tournament-trophy-inline) {
    grid-column: auto;
  }

  .tournament-trophy-inline {
    display: block;
    float: right;
    width: clamp(112px, 34vw, 166px);
    margin: 0 0 10px 22px;
    shape-outside: ellipse(44% 48% at 50% 50%);
  }

  .tournament-trophy-inline .tournament-trophy-video {
    max-height: none;
    transform: scale(1.85);
  }

  .freestyle-feature,
  .stroke-feature {
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
  }

  .freestyle-feature img,
  .stroke-feature img {
    width: clamp(118px, 36vw, 168px);
    height: clamp(118px, 36vw, 168px);
  }

  .team-strip {
    padding-top: 26px;
    padding-bottom: 24px;
  }

  .team-strip .section-heading {
    margin-bottom: 14px;
  }

  .section-heading {
    margin-bottom: 22px;
    text-align: center;
  }

  .about-section {
    grid-template-columns: 1fr;
    grid-template-areas:
      "about-title"
      "about-side"
      "about-copy";
    grid-template-rows: auto auto auto;
    gap: 14px;
    text-align: left;
  }

  .about-copy-box {
    padding: 12px;
    text-align: left;
    border-width: 2px;
    box-shadow: 3px 3px 0 rgba(23, 23, 23, 0.12);
  }

  .about-side-box {
    height: auto;
    min-height: 0;
    border-width: 2px;
    box-shadow: 3px 3px 0 rgba(23, 23, 23, 0.12);
  }

  .about-side-box img {
    height: auto;
    object-fit: contain;
  }

  .about-copy-box h3 {
    margin-bottom: 6px;
    font-size: clamp(0.8rem, 3vw, 0.95rem);
    line-height: 1.05;
  }

  .about-section .about-copy-box p {
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 0.84rem;
    line-height: 1.3;
  }

  .about-section p,
  .newsletter-copy p {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .steps .home-step-image {
    margin-top: 0;
  }

  .home-step-image h3 {
    margin-bottom: 10px;
    text-align: center;
  }

  .home-step-media {
    height: clamp(156px, 48vw, 190px);
    border-width: 2px;
    box-shadow: 5px 5px 0 rgba(23, 23, 23, 0.12);
  }

  .home-step-image p {
    margin-top: 10px;
    font-size: 0.96rem;
    line-height: 1.4;
    text-align: center;
  }

  .steps span {
    width: 34px;
    height: 34px;
    font-size: 0.96rem;
  }

  .rulebook-button {
    width: 100%;
    margin-top: 22px;
    padding: 13px 18px;
    font-size: 1rem;
  }

  .newsletter-section {
    grid-template-columns: 1fr;
    position: relative;
    column-gap: 0;
    row-gap: 14px;
    align-items: start;
  }

  .newsletter-section > .signup-form,
  .newsletter-section > .squad-panel,
  .newsletter-section > .tournament-home-panel {
    min-height: auto;
  }

  .newsletter-copy {
    grid-column: 1 / -1;
  }

  .newsletter-art {
    display: none;
  }

  .newsletter-art-mobile {
    position: absolute;
    top: -6px;
    right: -8px;
    z-index: 2;
    display: grid;
    width: min(42vw, 160px);
    pointer-events: none;
    place-items: center;
  }

  .newsletter-art-mobile .newsletter-animation {
    width: 100%;
    max-width: 100%;
    transform: none;
    transform-origin: center;
  }

  .signup-form {
    grid-column: 1;
    grid-row: 2;
    order: initial;
    gap: 8px;
    width: 100%;
    padding: 12px;
    padding-top: 16px;
    border-width: 2px;
    font-size: 0.74rem;
  }

  .signup-form label:nth-of-type(-n + 2) {
    padding-right: min(38vw, 150px);
  }

  .signup-form label {
    gap: 4px;
  }

  .signup-form .checkbox-label {
    align-items: flex-start;
    gap: 6px;
    font-size: 0.68rem;
    line-height: 1.2;
  }

  .signup-form .checkbox-label input {
    width: 14px;
    min-height: 14px;
    flex-basis: 14px;
  }

  .signup-form button {
    min-height: 36px;
    padding: 8px 10px;
  }

  .product-card div {
    padding: 16px;
  }

  .product-card img {
    aspect-ratio: 1 / 0.68;
  }

  .steps,
  .product-grid,
  .store-layout,
  .signup-form {
    min-width: 0;
    max-width: 100%;
  }

  .product-card h3,
  .product-card p {
    font-size: 1.02rem;
  }

  .home-product-grid .product-card .button,
  .home-product-grid .product-card button {
    min-height: 46px;
    padding: 10px 14px;
  }

  .newsletter-copy h2 {
    font-size: clamp(1.58rem, 8vw, 2.15rem);
    text-align: center;
  }

  input,
  select {
    min-height: 36px;
    padding: 6px 8px;
    font-size: 0.78rem;
  }

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

  .footer-column {
    gap: 3px;
    min-width: 0;
  }

  .footer-column h3 {
    margin-bottom: 2px;
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 900;
  }

  .footer-column a {
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.12;
  }

  .footer-copy {
    font-size: 0.72rem;
    line-height: 1.25;
  }

  .footer-copy span {
    display: block;
  }

  .footer-copy span:first-child {
    white-space: nowrap;
  }
}
