:root,
[data-theme="light"] {
  --brand: #e31837;
  --brand-deep: #b8102c;
  --brand-soft: rgba(227, 24, 55, 0.12);
  --bg: #f2f2f2;
  --bg-elevated: #ffffff;
  --bg-muted: #e6e6e6;
  --bg-page: linear-gradient(165deg, #f7f7f7 0%, #ececec 48%, #e4e4e4 100%);
  --text: #0a0a0a;
  --text-muted: #5a5a5a;
  --border: #d0d0d0;
  --border-strong: #a8a8a8;
  --accent: var(--brand);
  --accent-soft: var(--brand-soft);
  --focus: var(--brand);
  --input-bg: #fafafa;
  --header-bg: rgba(242, 242, 242, 0.94);
  --scrim: rgba(0, 0, 0, 0.45);
  --toast-bg: #0a0a0a;
  --toast-text: #f5f5f5;
  --hero-overlay: linear-gradient(
    100deg,
    rgba(0, 0, 0, 0.94) 0%,
    rgba(0, 0, 0, 0.86) 24%,
    rgba(0, 0, 0, 0.55) 48%,
    rgba(0, 0, 0, 0.18) 72%,
    rgba(0, 0, 0, 0.06) 100%
  );
  --shadow-soft: 0 12px 32px rgba(0, 0, 0, 0.08);
  --row-alt: rgba(10, 10, 10, 0.03);
  --col-kit: rgba(10, 10, 10, 0.045);
  --col-player: rgba(10, 10, 10, 0.02);
  --col-role: rgba(10, 10, 10, 0.06);
  --col-socks: rgba(10, 10, 10, 0.03);
  --col-shorts: rgba(10, 10, 10, 0.07);
  --header-h: 84px;
  --radius: 0;
  --font: "Barlow", "Segoe UI", sans-serif;
  --display: "Oswald", "Barlow Condensed", sans-serif;
  --transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  color-scheme: light;
}

[data-theme="dark"] {
  --brand: #e31837;
  --brand-deep: #ff2a4a;
  --brand-soft: rgba(227, 24, 55, 0.18);
  --bg: #070707;
  --bg-elevated: #121212;
  --bg-muted: #1a1a1a;
  --bg-page: linear-gradient(180deg, #050505 0%, #0a0a0a 45%, #101010 100%);
  --text: #f5f5f5;
  --text-muted: #9a9a9a;
  --border: #2a2a2a;
  --border-strong: #3f3f3f;
  --accent: var(--brand);
  --accent-soft: var(--brand-soft);
  --focus: var(--brand);
  --input-bg: #0c0c0c;
  --header-bg: rgba(7, 7, 7, 0.94);
  --scrim: rgba(0, 0, 0, 0.6);
  --toast-bg: #f5f5f5;
  --toast-text: #0a0a0a;
  --hero-overlay: linear-gradient(
    100deg,
    rgba(0, 0, 0, 0.95) 0%,
    rgba(0, 0, 0, 0.88) 26%,
    rgba(0, 0, 0, 0.58) 50%,
    rgba(0, 0, 0, 0.22) 74%,
    rgba(0, 0, 0, 0.1) 100%
  );
  --shadow-soft: none;
  --row-alt: rgba(255, 255, 255, 0.04);
  --col-kit: rgba(255, 255, 255, 0.06);
  --col-player: rgba(255, 255, 255, 0.03);
  --col-role: rgba(255, 255, 255, 0.08);
  --col-socks: rgba(255, 255, 255, 0.04);
  --col-shorts: rgba(255, 255, 255, 0.09);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  background: var(--bg-page);
  background-attachment: fixed;
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body > main {
  flex: 1 0 auto;
}

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

button,
input,
select {
  font: inherit;
  color: inherit;
}

.container {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border);
  box-shadow: inset 0 -3px 0 var(--brand);
  backdrop-filter: blur(14px);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  background: transparent;
  padding: 0;
}

.brand-logo {
  display: block;
  height: 58px;
  width: auto;
  max-width: 10.5rem;
  object-fit: contain;
  background: transparent;
}

[data-theme="light"] .brand-logo-dark,
[data-theme="dark"] .brand-logo-light,
[data-theme="light"] .footer-logo-dark,
[data-theme="dark"] .footer-logo-light,
[data-theme="light"] .hero-photo-dark,
[data-theme="dark"] .hero-photo-light {
  display: none;
}

.nav {
  display: none;
  gap: 1.25rem;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

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

.nav a.is-active {
  color: var(--text);
  box-shadow: inset 0 -3px 0 var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle,
.cart-btn,
.btn,
.seg-btn,
.file-btn {
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  transition: var(--transition);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: var(--radius);
}

.theme-toggle:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
}

[data-theme="light"] .icon-sun,
[data-theme="dark"] .icon-moon {
  display: none;
}

.cart-btn {
  min-height: 40px;
  padding: 0 0.95rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cart-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.cart-count {
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 0.3rem;
  display: inline-grid;
  place-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  border-radius: 999px;
  line-height: 1;
}

.cart-count:not([data-count="0"]) {
  animation: bag-pop 0.35s ease;
}

@keyframes bag-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.btn {
  min-height: 50px;
  padding: 0.85rem 1.55rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: var(--radius);
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.btn:focus-visible,
.cart-btn:focus-visible,
.theme-toggle:focus-visible,
.nav-toggle:focus-visible,
.seg-btn:focus-visible,
.text-btn:focus-visible,
.nav a:focus-visible,
.step-link:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: none;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-primary:hover {
  background: var(--brand-deep);
  filter: none;
}

.btn-primary:active {
  transform: none;
}

[data-theme="dark"] .btn-primary {
  box-shadow: none;
}

[data-theme="dark"] .btn-primary:hover {
  background: var(--brand-deep);
  box-shadow: none;
}

.btn-primary:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  filter: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.btn-secondary:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.hero .btn-secondary {
  background: rgba(0, 0, 0, 0.55);
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
  backdrop-filter: blur(4px);
}

.hero .btn-secondary:hover {
  background: rgba(0, 0, 0, 0.72);
  border-color: #fff;
  color: #fff;
}

.btn-ghost {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  min-height: 42px;
  padding: 0 1rem;
  font-size: 0.88rem;
}

.btn-ghost:hover {
  border-color: var(--border-strong);
}

.text-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.text-btn:hover {
  color: var(--brand);
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-h));
  display: grid;
  align-items: center;
  overflow: hidden;
  background: #000;
  color: #fff;
}

.hero-scroll.is-scrolling .hero-scroll-arrow {
  animation: none;
}

.hero-media {
  position: absolute;
  inset: -12% -4% -12% -10%;
  z-index: 0;
  will-change: transform;
  transform: translateX(4.5%);
}

.hero-media img,
.hero-photo,
.hero-photo-light,
.hero-photo-dark {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Shared crop so light + dark heroes align */
  object-position: 22% 46%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: var(--hero-overlay);
  pointer-events: none;
}

.hero-overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0.28) 38%,
    transparent 62%
  );
  pointer-events: none;
}

.hero > .container.hero-inner,
.hero-inner {
  position: relative;
  z-index: 2;
  width: min(38rem, calc(100% - 2.5rem));
  max-width: 38rem;
  margin-left: clamp(1.75rem, 7vw, 4.5rem);
  margin-right: auto;
  padding: 4.5rem 0 5rem;
}

.hero-kicker {
  margin: 0 0 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.7);
  animation: hero-rise 0.7s ease both;
}

.hero-kicker::before {
  content: "";
  width: 1.75rem;
  height: 3px;
  background: var(--brand);
  transform: skewX(-28deg);
  flex-shrink: 0;
}

.hero h1 {
  margin: 0;
  display: flex;
  flex-direction: column;
  font-family: var(--display);
  font-size: clamp(3.1rem, 10vw, 5.8rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 0.9;
  font-style: italic;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.65), 0 1px 3px rgba(0, 0, 0, 0.85);
  animation: hero-rise 0.75s ease 0.06s both;
}

.hero h1 span {
  display: block;
}

.hero-brand-line {
  color: #fff;
  text-shadow: 0 0 0 transparent;
}

.hero-brand-accent {
  color: var(--brand);
  -webkit-text-stroke: 0;
}

.hero-lede {
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
  line-height: 1.65;
  max-width: 36ch;
  text-shadow: 0 1px 16px rgba(0, 0, 0, 0.75), 0 1px 2px rgba(0, 0, 0, 0.9);
  animation: hero-rise 0.75s ease 0.12s both;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
  animation: hero-rise 0.75s ease 0.18s both;
}

.hero .btn-primary {
  background: var(--brand);
  color: #fff;
  box-shadow: none;
}

.hero .btn-primary:hover {
  background: #fff;
  color: #0a0a0a;
  box-shadow: none;
}

.hero-scroll {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  margin-top: 2.25rem;
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  animation: hero-rise 0.8s ease 0.28s both;
  will-change: transform, opacity;
}

.hero-scroll:hover {
  color: var(--brand);
}

.hero-scroll-arrow {
  width: 28px;
  height: 28px;
  display: block;
  animation: arrow-bob 1.7s ease-in-out infinite;
}

@keyframes arrow-bob {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.7;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

@keyframes hero-rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-kicker,
  .hero h1,
  .hero-lede,
  .hero-actions,
  .hero-scroll,
  .hero-scroll-arrow,
  .cart-count:not([data-count="0"]) {
    animation: none;
  }

  .hero-scroll {
    will-change: auto;
  }
}

.step-rail {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: color-mix(in srgb, var(--bg-elevated) 94%, transparent);
  border-bottom: 2px solid var(--text);
  backdrop-filter: blur(12px);
}

.step-rail-inner {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  overflow-x: auto;
  padding: 0.85rem 0;
}

.step-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  padding: 0.55rem 0.95rem;
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: transparent;
  border: 1px solid transparent;
  transition: var(--transition);
}

.step-link span {
  display: inline-grid;
  place-items: center;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.75rem;
}

.step-link:hover {
  color: var(--text);
  border-color: var(--border);
}

.step-link.is-done {
  color: var(--text);
}

.step-link.is-done span {
  background: var(--text);
  color: var(--bg-elevated);
}

.step-link.is-current {
  color: #fff;
  background: var(--brand);
  border-color: var(--brand);
}

.step-link.is-current span {
  background: #fff;
  color: var(--brand);
}

.eyebrow {
  margin: 0 0 0.55rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--brand);
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 1.35rem;
  height: 3px;
  background: var(--brand);
  transform: skewX(-28deg);
  flex-shrink: 0;
}

.section {
  padding: clamp(3rem, 6vw, 4.75rem) 0;
  scroll-margin-top: calc(var(--header-h) + 3.25rem);
}

.section-stage {
  position: relative;
  overflow: hidden;
}

.section-stage-bg {
  display: none;
}

.section-stage .container {
  position: relative;
  z-index: 1;
}

.section-stage .section-head {
  border-left: 4px solid var(--brand);
  padding-left: 1.15rem;
  will-change: transform, opacity;
  transition: opacity 0.55s ease;
}

.section-stage:not(.is-inview) .section-head {
  opacity: 0.5;
}

.section-stage.is-inview .section-head {
  opacity: 1;
}

.stage-num {
  display: inline-block;
  margin-right: 0.4rem;
  color: var(--text);
  opacity: 0.45;
}

.section-alt {
  background: color-mix(in srgb, var(--bg-muted) 60%, transparent);
}

/* Bold monochrome section blocks */
#design {
  background: #ffffff;
  border-top: 1px solid #d0d0d0;
  border-bottom: 1px solid #d0d0d0;
}

#players {
  background: #e8e8e8;
  border-top: 1px solid #c8c8c8;
  border-bottom: 1px solid #c8c8c8;
}

#how {
  background: #d6d6d6;
  color: var(--text);
  border-top: 1px solid #c0c0c0;
  border-bottom: 1px solid #c0c0c0;
}

[data-theme="dark"] #design {
  background: #1a1a1a;
  border-color: #2a2a2a;
}

[data-theme="dark"] #players {
  background: #121212;
  border-color: #222222;
}

[data-theme="dark"] #how {
  background: #0a0a0a;
  color: var(--text);
  border-color: #1c1c1c;
}

@media (prefers-reduced-motion: reduce) {
  .section-stage .section-head,
  .section-stage:not(.is-inview) .section-head,
  .section-stage.is-inview .section-head {
    transition: none;
    opacity: 1;
    transform: none !important;
    will-change: auto;
  }
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 42rem;
}

.section-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4.2vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-style: italic;
  line-height: 1.05;
}

.section-head p:not(.eyebrow) {
  margin: 0.65rem 0 0;
  color: var(--text-muted);
  line-height: 1.65;
  font-size: 1.05rem;
}

.section-next {
  margin-top: 1.5rem;
}

.split {
  display: grid;
  gap: 1rem;
}

.card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 1.45rem 1.4rem 1.5rem;
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: var(--transition);
}

.card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .card:hover {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.card h3 {
  margin: 0 0 0.95rem;
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 700;
  font-style: italic;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-note {
  margin: -0.35rem 0 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

.field {
  display: grid;
  gap: 0.35rem;
  margin-bottom: 0.85rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
}

.field input,
.field select,
.roster-table input:not([type="checkbox"]),
.roster-table select {
  width: 100%;
  min-height: 38px;
  padding: 0.4rem 0.55rem;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  outline: none;
  font-weight: 500;
  font-size: 0.9rem;
}

.roster-table input:not([type="checkbox"]),
.roster-table select {
  background-color: color-mix(in srgb, var(--bg-elevated) 82%, transparent);
}

.field select,
.roster-table select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%230a0a0a' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.55rem center;
  padding-right: 1.6rem;
  cursor: pointer;
  color-scheme: light;
}

[data-theme="dark"] .field select,
[data-theme="dark"] .roster-table select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ffffff' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  color-scheme: dark;
}

.field input:focus,
.field select:focus,
.roster-table input:not([type="checkbox"]):focus,
.roster-table select:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.upload-grid {
  display: grid;
  gap: 0.7rem;
}

.upload-card {
  display: grid;
  gap: 0.2rem;
  padding: 1.1rem;
  border: 1px solid var(--border);
  background: var(--input-bg);
  cursor: pointer;
  border-radius: var(--radius);
  transition: var(--transition);
  min-height: 6.5rem;
}

.upload-card:hover {
  border-color: var(--text);
  background: var(--bg-elevated);
}

[data-theme="dark"] .upload-card:hover {
  box-shadow: none;
}

.upload-copy {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.upload-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
}

.upload-hint {
  color: var(--text-muted);
  font-size: 0.84rem;
}

.upload-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
  align-self: start;
  flex-shrink: 0;
}

.upload-action svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}

.upload-card:hover .upload-action,
.upload-card-trigger:hover .upload-action {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg-elevated);
}

.upload-preview {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

.upload-preview img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.upload-preview--crest {
  margin-top: 0.65rem;
  display: block;
  line-height: 0;
}

.upload-preview--crest[hidden] {
  display: none !important;
}

.upload-preview--crest img {
  display: block;
  width: auto;
  height: auto;
  max-width: 4.5rem;
  max-height: 3.5rem;
  object-fit: contain;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  outline: none;
}

.upload-card-multi {
  cursor: default;
}

.upload-card-trigger {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.75rem;
  align-items: start;
  cursor: pointer;
}

.sponsor-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.sponsor-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.sponsor-item img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-shrink: 0;
}

.sponsor-item span {
  flex: 1;
  min-width: 0;
  font-size: 0.84rem;
  color: var(--text-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sponsor-item button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.2rem;
}

.sponsor-item button:hover {
  color: var(--text);
}

.muted {
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.import-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.1rem;
}

.import-bar h3 {
  margin: 0 0 0.3rem;
  font-size: 1rem;
}

.roster-toolbar {
  display: grid;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.toolbar-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.toolbar-defaults {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-elevated) 80%, transparent);
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: flex-end;
}

@media (min-width: 900px) {
  .roster-toolbar {
    grid-template-columns: 1fr auto;
    align-items: start;
  }
}

.seg {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.25rem;
  background: var(--bg-elevated);
}

.seg-label {
  padding: 0 0.55rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

.seg-btn {
  min-height: 36px;
  padding: 0 0.85rem;
  background: transparent;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: calc(var(--radius) - 1px);
}

.seg-btn.is-active {
  background: var(--text);
  color: var(--bg-elevated);
}

.seg-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

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

.roster-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
  table-layout: fixed;
}

.roster-table th,
.roster-table td {
  padding: 0.45rem 0.35rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.roster-table tbody tr:nth-child(even) td {
  background: var(--row-alt);
}

.roster-table th {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 700;
  background: var(--bg-muted);
}

.roster-table .sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: inherit;
  cursor: pointer;
  white-space: nowrap;
}

.roster-table .sort-btn:hover,
.roster-table .sort-btn.is-active {
  color: var(--text);
}

.roster-table .sort-arrow {
  display: inline-block;
  min-width: 0.7em;
  font-size: 0.85em;
  opacity: 0.9;
}

.roster-table .sort-btn:not(.is-active) .sort-arrow::before {
  content: "↕";
  opacity: 0.35;
}

.roster-table .sort-btn.is-active .sort-arrow::before {
  content: none;
}

.roster-sort-mobile {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-right: auto;
}

.roster-sort-mobile select {
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 1.75rem 0.4rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23111' d='M6 8 0 0h12z'/%3E%3C/svg%3E")
    no-repeat right 0.55rem center / 0.55rem;
  color: var(--text);
  appearance: none;
  cursor: pointer;
}

[data-theme="dark"] .roster-sort-mobile select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23f5f5f5' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
}

@media (min-width: 900px) {
  .roster-sort-mobile {
    display: none;
  }
}

.roster-table td:nth-child(1),
.roster-table th:nth-child(1) {
  width: 7.5rem;
  background: var(--col-kit);
}

.roster-table tbody tr:nth-child(even) td:nth-child(1) {
  background: color-mix(in srgb, var(--col-kit) 70%, var(--row-alt));
}

.kit-cell,
.socks-cell,
.shorts-cell {
  white-space: nowrap;
}

.kit-cell .check-inline,
.socks-cell .check-inline,
.shorts-cell .check-inline {
  margin-right: 0.15rem;
}

.kit-cell .check-inline span,
.socks-cell .check-inline span,
.shorts-cell .check-inline span {
  font-size: 0.72rem;
}

.roster-table td:nth-child(2),
.roster-table td:nth-child(3),
.roster-table td:nth-child(4),
.roster-table th:nth-child(2),
.roster-table th:nth-child(3),
.roster-table th:nth-child(4) {
  background: var(--col-player);
}

.roster-table tbody tr:nth-child(even) td:nth-child(2),
.roster-table tbody tr:nth-child(even) td:nth-child(3),
.roster-table tbody tr:nth-child(even) td:nth-child(4) {
  background: color-mix(in srgb, var(--col-player) 55%, var(--row-alt));
}

.roster-table td:nth-child(2),
.roster-table th:nth-child(2) {
  width: 11.5rem;
}

.roster-table .name-input {
  width: 100%;
  min-width: 0;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.roster-table td:nth-child(3),
.roster-table th:nth-child(3) {
  width: 2.75rem;
  text-align: center;
}

.roster-table .num-input {
  width: 100%;
  max-width: 2.5rem;
  padding-left: 0.3rem;
  padding-right: 0.3rem;
  text-align: center;
}

.roster-table td:nth-child(4),
.roster-table th:nth-child(4) {
  width: 5.5rem;
}

.roster-table .size-select {
  width: 100%;
  max-width: 5.4rem;
  font-size: 0.82rem;
}

.roster-table td:nth-child(5),
.roster-table td:nth-child(6),
.roster-table th:nth-child(5),
.roster-table th:nth-child(6) {
  width: 3.6rem;
  text-align: center;
  background: var(--col-role);
}

.roster-table tbody tr:nth-child(even) td:nth-child(5),
.roster-table tbody tr:nth-child(even) td:nth-child(6) {
  background: color-mix(in srgb, var(--col-role) 70%, var(--row-alt));
}

.roster-table td:nth-child(7),
.roster-table th:nth-child(7) {
  width: 7.5rem;
  background: var(--col-socks);
}

.roster-table tbody tr:nth-child(even) td:nth-child(7) {
  background: color-mix(in srgb, var(--col-socks) 70%, var(--row-alt));
}

.roster-table td:nth-child(8),
.roster-table th:nth-child(8) {
  width: 7.5rem;
  background: var(--col-shorts);
}

.roster-table tbody tr:nth-child(even) td:nth-child(8) {
  background: color-mix(in srgb, var(--col-shorts) 70%, var(--row-alt));
}

.roster-table td:last-child,
.roster-table th:last-child {
  width: 2.2rem;
  text-align: center;
}

.roster-table th:nth-child(1) {
  background: color-mix(in srgb, var(--col-kit) 55%, var(--bg-muted));
}

.roster-table th:nth-child(2),
.roster-table th:nth-child(3),
.roster-table th:nth-child(4) {
  background: color-mix(in srgb, var(--col-player) 45%, var(--bg-muted));
}

.roster-table th:nth-child(5),
.roster-table th:nth-child(6) {
  background: color-mix(in srgb, var(--col-role) 55%, var(--bg-muted));
}

.roster-table th:nth-child(7) {
  background: color-mix(in srgb, var(--col-socks) 55%, var(--bg-muted));
}

.roster-table th:nth-child(8) {
  background: color-mix(in srgb, var(--col-shorts) 55%, var(--bg-muted));
}

.roster-table .check-inline {
  gap: 0.3rem;
  font-size: 0.75rem;
}

.check-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  user-select: none;
  white-space: nowrap;
}

.check-inline.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.check-inline input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 0;
  flex: 0 0 auto;
  border: 1.5px solid var(--border-strong);
  border-radius: 3px;
  background: var(--bg-elevated);
  cursor: pointer;
  display: inline-grid;
  place-items: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.check-inline input[type="checkbox"]::before {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(-45deg) translateY(-1px);
}

.check-inline input[type="checkbox"]:checked {
  background: var(--text);
  border-color: var(--text);
}

.check-inline input[type="checkbox"]:checked::before {
  border-left-color: var(--bg-elevated);
  border-bottom-color: var(--bg-elevated);
}

.check-inline input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.check-inline:has(input:checked) span {
  color: var(--text);
}

.check-inline span {
  line-height: 1;
}

.kit-hint {
  margin: 0;
  flex: 1 1 auto;
  font-size: 0.88rem;
}

.kit-hint[hidden] {
  display: none;
}

.remove-row {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
}

.remove-row:hover {
  color: var(--text);
}

.roster-empty {
  margin: 0;
  padding: 2rem 1.25rem;
  text-align: center;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--bg-muted) 50%, transparent);
  display: grid;
  gap: 0.35rem;
  justify-items: center;
}

.roster-empty strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
}

.roster-empty span {
  max-width: 28ch;
  font-size: 0.92rem;
  line-height: 1.45;
}

.roster-empty[hidden] {
  display: none;
}

.summary-card {
  margin-top: 1rem;
}

.summary-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.summary-stats strong {
  color: var(--text);
}

.summary-total {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: end;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}

.price-label {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
}

.price {
  margin: 0.2rem 0 0;
  font-family: var(--display);
  font-size: clamp(1.55rem, 3.2vw, 1.95rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 0.95;
  font-style: italic;
}

.price-note {
  margin: 0.35rem 0 0;
  color: var(--text-muted);
  font-size: 0.84rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1.2rem 1.2rem 1.2rem 3.8rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.15rem;
  width: 1.6rem;
  height: 1.6rem;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  background: var(--accent-soft);
  color: var(--text);
  font-family: var(--display);
  font-weight: 700;
  font-size: 0.85rem;
}

.steps strong {
  display: block;
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-style: italic;
  margin-bottom: 0.25rem;
}

.steps span {
  color: var(--text-muted);
}

.site-footer {
  flex-shrink: 0;
  border-top: 3px solid var(--brand);
  padding: 2.75rem 0 2.75rem;
  background: var(--bg-elevated);
  color: var(--text);
}

.footer-tagline {
  margin: 0.35rem 0 0;
  font-family: var(--display);
  font-size: 0.78rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .footer-grid {
    grid-template-columns: 1.3fr 1fr 1fr;
    gap: 2rem;
    align-items: start;
  }
}

.footer-brand {
  display: grid;
  gap: 0.75rem;
  justify-items: start;
}

.footer-logo {
  height: 72px;
  width: auto;
  max-width: 12rem;
  display: block;
  object-fit: contain;
  background: transparent;
  padding: 0;
}

.footer-col {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.footer-col h3 {
  margin: 0 0 0.25rem;
  font-family: var(--display);
  font-size: 0.85rem;
  font-style: italic;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.footer-col a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 600;
}

.footer-col a:hover {
  color: var(--brand);
}

.footer-legal {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.footer-legal p {
  margin: 0;
  font-size: 0.82rem;
  max-width: 52rem;
  color: var(--text-muted);
}

.footer-legal a {
  color: var(--text-muted);
}

.footer-legal a:hover {
  color: var(--brand);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.footer-meta {
  display: grid;
  gap: 0.25rem;
  text-align: right;
}

.mobile-next {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: color-mix(in srgb, var(--bg-elevated) 94%, transparent);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(10px);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.06);
}

.mobile-next[hidden] {
  display: none;
}

.mobile-next .btn {
  width: 100%;
  min-height: 48px;
}

@media (min-width: 860px) {
  .mobile-next {
    display: none !important;
  }
}

body.has-mobile-next {
  padding-bottom: 5.5rem;
}

@media (max-width: 859px) {
  .btn,
  .btn-ghost,
  .file-btn,
  .cart-btn {
    min-height: 44px;
  }
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
}

.cart-drawer.is-open {
  pointer-events: auto;
}

.cart-scrim {
  position: absolute;
  inset: 0;
  background: var(--scrim);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.cart-drawer.is-open .cart-scrim {
  opacity: 1;
}

.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 390px);
  height: 100%;
  background: var(--bg-elevated);
  border-left: 1px solid var(--border);
  display: grid;
  grid-template-rows: auto 1fr auto;
  transform: translateX(100%);
  transition: transform 0.25s ease;
}

.cart-drawer.is-open .cart-panel {
  transform: translateX(0);
}

.cart-head,
.cart-foot {
  padding: 1.1rem 1.2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-foot {
  border-bottom: none;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.8rem;
}

.cart-head h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: italic;
}

.cart-items {
  overflow: auto;
  padding: 0.8rem 1.2rem;
}

.cart-line {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  align-items: start;
}

.cart-thumb {
  width: 64px;
  height: 64px;
  object-fit: contain;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.cart-thumb-fallback {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.cart-line-copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.7rem;
}

.line-price {
  color: var(--text);
  font-weight: 700;
}

.cart-line-copy span:not(.line-price) {
  grid-column: 1 / -1;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.cart-line-copy button {
  grid-column: 1 / -1;
  justify-self: start;
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0;
  font-size: 0.8rem;
}

.cart-empty {
  color: var(--text-muted);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-weight: 600;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.3rem;
  transform: translateX(-50%) translateY(120%);
  z-index: 100;
  background: var(--toast-bg);
  color: var(--toast-text);
  padding: 0.8rem 1.15rem;
  font-size: 0.9rem;
  font-weight: 600;
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
  pointer-events: none;
  border-radius: var(--radius);
}

.toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

@media (min-width: 860px) {
  .nav {
    display: flex;
  }

  .split {
    grid-template-columns: 0.9fr 1.1fr;
  }

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

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

  .steps.steps-four {
    grid-template-columns: repeat(4, 1fr);
  }

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

  .checkout-layout {
    grid-template-columns: 1.4fr 0.85fr;
  }

  .checkout-summary {
    position: sticky;
    top: calc(var(--header-h) + 1rem);
  }

  .checkout-extras .product-card {
    grid-template-columns: 148px 1fr;
  }
}

/* Extras */
.product-grid {
  display: grid;
  gap: 0.85rem;
}

.product-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  min-width: 0;
}

.product-media {
  position: relative;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.55), transparent 55%),
    linear-gradient(180deg, #f3f3f3, #e4e4e4);
  display: grid;
  place-items: center;
  padding: 0.75rem;
  overflow: hidden;
  min-height: 0;
}

[data-theme="dark"] .product-media {
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.08), transparent 55%),
    linear-gradient(180deg, #1a1a1a, #101010);
}

.product-base {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: 110px;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(0, 0, 0, 0.16));
  transition: transform 0.35s ease;
}

.product-card:hover .product-base {
  transform: translateY(-2px) scale(1.02);
}

.product-body {
  padding: 0.85rem 0.95rem 0.95rem;
  display: grid;
  gap: 0.35rem;
  align-content: start;
  min-width: 0;
}

.product-tag {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.product-body h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.15rem;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.15;
}

.product-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.4;
}

.product-price {
  margin: 0;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 700;
  font-style: italic;
}

.colour-field {
  display: grid;
  gap: 0.3rem;
}

.colour-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.colour-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.colour-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  min-height: 28px;
  padding: 0.15rem 0.45rem 0.15rem 0.2rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}

.colour-chip-swatch {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--swatch, #ccc);
  border: 1px solid rgba(0, 0, 0, 0.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2);
  flex: 0 0 auto;
}

.colour-chip:hover {
  transform: translateY(-1px);
  border-color: var(--border-strong);
}

.colour-chip.is-selected {
  border-color: var(--text);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 1px var(--text);
}

.product-controls {
  display: grid;
  gap: 0.5rem;
  align-items: end;
  margin-top: 0.15rem;
  min-width: 0;
}

.product-controls--qty {
  grid-template-columns: 4.25rem minmax(0, 1fr);
}

.product-controls--sized {
  grid-template-columns: minmax(3.5rem, 1fr) 4.25rem 4.25rem;
}

.field.compact {
  margin: 0;
  min-width: 0;
}

.field.compact input,
.field.compact select {
  min-height: 38px;
  width: 100%;
  padding-inline: 0.45rem;
  font-size: 0.9rem;
}

.field-qty input {
  text-align: center;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.product-controls .btn {
  min-height: 38px;
  padding-inline: 0.75rem;
  min-width: 0;
}

@media (max-width: 640px) {
  .product-card {
    grid-template-columns: 1fr;
  }

  .product-media {
    min-height: 140px;
  }

  .product-base {
    max-height: 120px;
  }

  .product-controls--sized {
    grid-template-columns: 1fr 4.25rem 4.25rem;
  }
}

.btn.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

/* Checkout */
.checkout-layout {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.checkout-main {
  display: grid;
  gap: 1.5rem;
}

.checkout-extras .section-head {
  margin-bottom: 1rem;
}

.checkout-bag-head,
.checkout-line,
.checkout-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
}

.checkout-bag-head {
  margin-bottom: 1rem;
  align-items: center;
}

.checkout-bag h3,
.checkout-summary h3 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.checkout-thumb {
  width: 72px;
  height: 72px;
  object-fit: contain;
  background: var(--bg-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex: 0 0 auto;
}

.checkout-thumb-fallback {
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
}

.checkout-line-main {
  flex: 1;
  display: grid;
  gap: 0.25rem;
}

.checkout-line-main span {
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.checkout-line-side {
  display: grid;
  gap: 0.35rem;
  justify-items: end;
  text-align: right;
}

.checkout-empty {
  text-align: center;
  padding: 2rem 1rem;
  display: grid;
  gap: 1rem;
  justify-items: center;
}

.checkout-summary textarea {
  width: 100%;
  padding: 0.55rem 0.75rem;
  background: var(--input-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font: inherit;
  resize: vertical;
  outline: none;
}

.checkout-summary textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 2px var(--accent-soft);
}

.field em {
  font-style: normal;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: none;
  letter-spacing: 0;
}

.checkout-totals {
  display: grid;
  gap: 0.55rem;
  margin: 1.1rem 0;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.checkout-totals > div {
  align-items: center;
}

.checkout-grand {
  font-size: 1.15rem;
}

.checkout-grand strong {
  font-family: var(--display);
  font-size: 1.25rem;
  font-style: italic;
}

.checkout-note,
.checkout-fineprint {
  font-size: 0.82rem;
}

.checkout-summary .btn {
  width: 100%;
}

.checkout-send-status {
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  background: color-mix(in srgb, var(--brand) 12%, var(--bg-elevated));
  border: 1px solid color-mix(in srgb, var(--brand) 35%, var(--border));
  border-radius: var(--radius);
}

.checkout-summary.is-sending {
  outline: 2px solid color-mix(in srgb, var(--brand) 45%, transparent);
  outline-offset: 2px;
}

.checkout-success {
  margin-top: 0;
  text-align: left;
  scroll-margin-top: calc(var(--header-h) + 1rem);
  border-color: var(--brand);
  animation: checkout-success-in 0.45s ease both;
}

.checkout-success:focus {
  outline: none;
}

.checkout-success h2 {
  margin: 0;
  font-family: var(--display);
  font-style: italic;
  text-transform: uppercase;
}

@keyframes checkout-success-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Skip link, mobile nav, validation */
.skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 100;
  padding: 0.55rem 0.85rem;
  background: var(--text);
  color: var(--bg-elevated);
  border-radius: var(--radius);
  font-weight: 700;
}

.skip-link:focus {
  top: 0.75rem;
}

.nav-toggle {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text);
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 2px;
  margin-inline: auto;
  background: currentColor;
}

.site-header.nav-open .nav,
.nav.is-open {
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--header-h);
  flex-direction: column;
  gap: 0;
  padding: 0.75rem 1.25rem 1rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  z-index: 45;
}

.site-header.nav-open .nav a,
.nav.is-open a {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

@media (min-width: 860px) {
  .nav-toggle {
    display: none;
  }
}

.field input.is-invalid,
.field textarea.is-invalid,
.field select.is-invalid {
  border-color: #b42318;
  outline-color: #b42318;
}

body.cart-open {
  overflow: hidden;
}

/* Design tools */
.template-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  margin-top: 0.75rem;
}

.template-select {
  flex: 1 1 10rem;
  min-width: 0;
}

/* Roster mobile cards + import */
.import-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  margin-top: 0.55rem;
}

.roster-warn {
  margin: 0.35rem 0 0.75rem;
  color: #9a3412;
  font-weight: 600;
}

[data-theme="dark"] .roster-warn {
  color: #fdba74;
}

.roster-cards {
  display: grid;
  gap: 0.75rem;
}

.roster-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem;
  display: grid;
  gap: 0.65rem;
  box-shadow: var(--shadow-soft);
}

.roster-card-top {
  display: grid;
  grid-template-columns: 1fr 4rem auto;
  gap: 0.45rem;
  align-items: center;
}

.roster-card-row {
  display: grid;
  gap: 0.35rem;
}

.roster-card-row--socks,
.roster-card-row--shorts {
  padding: 0.45rem 0.5rem;
  border-radius: var(--radius);
  margin: 0;
}

.roster-card-row--socks {
  background: var(--col-socks);
}

.roster-card-row--shorts {
  background: var(--col-shorts);
}

.roster-card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

@media (min-width: 900px) {
  .roster-cards {
    display: none;
  }
}

@media (max-width: 899px) {
  .roster-desktop {
    display: none;
  }
}

/* FAQ */
.faq-layout {
  max-width: 42rem;
}

.faq-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.5rem 0 2rem;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  overflow: hidden;
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid var(--text);
  border-bottom: 2px solid var(--text);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  opacity: 0.55;
}

.faq-item[open] summary::after {
  transform: rotate(225deg);
  margin-top: 0.25rem;
}

.faq-body {
  padding: 0 1.1rem 1.1rem;
}

.faq-body p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.faq-body a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.faq-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
}

.faq-cta .muted {
  flex: 1 1 100%;
  margin: 0 0 0.25rem;
}

/* Legal / privacy */
.legal-layout {
  max-width: 42rem;
}

.legal-updated {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
}

.legal-prose {
  display: grid;
  gap: 1.5rem;
  margin: 1.75rem 0 0.5rem;
}

.legal-prose section {
  display: grid;
  gap: 0.55rem;
}

.legal-prose h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.legal-prose p,
.legal-prose li {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.55;
}

.legal-prose ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.4rem;
}

.legal-prose strong {
  color: var(--text);
  font-weight: 600;
}

.legal-prose a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

/* Pricing page — plain list layout */
.pricing-simple {
  padding-top: clamp(2.25rem, 5vw, 3.25rem);
}

.pricing-simple-inner {
  max-width: 40rem;
  display: grid;
  gap: 2.25rem;
}

.pricing-simple-head h1 {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}

.pricing-simple-head .muted {
  margin: 0;
  max-width: 36rem;
  line-height: 1.5;
}

.pricing-block {
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.pricing-block h2 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pricing-block > .muted {
  margin: 0 0 0.85rem;
  font-size: 0.92rem;
  line-height: 1.45;
}

.pricing-dl {
  margin: 0;
  display: grid;
  gap: 0;
}

.pricing-dl > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--border);
}

.pricing-dl dt {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

.pricing-dl dd {
  margin: 0;
  text-align: right;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.pricing-dl dd span {
  display: inline-block;
  margin-left: 0.35rem;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  font-style: normal;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pricing-simple-foot {
  display: grid;
  gap: 1.1rem;
  padding-top: 0.5rem;
}

.pricing-simple-foot .muted {
  margin: 0;
  max-width: 36rem;
}

.pricing-simple-foot .hero-actions {
  margin: 0;
}

/* Home marketing */
.home-talk {
  max-width: 36rem;
}

.path-split {
  display: grid;
  gap: 0;
  margin-top: 1.75rem;
  border: 1px solid var(--border);
}

.path-lane {
  display: grid;
  gap: 0.75rem;
  padding: 1.75rem 1.5rem;
  text-decoration: none;
  color: inherit;
  background: var(--bg);
  transition: background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 0 0 0 var(--brand);
}

.path-lane + .path-lane {
  border-top: 1px solid var(--border);
}

.path-lane:hover {
  background: var(--bg-muted);
  box-shadow: inset 4px 0 0 var(--brand);
}

.path-lane--online {
  background: var(--bg-elevated);
}

.path-lane--human {
  background: color-mix(in srgb, var(--bg-muted) 70%, var(--bg));
}

.path-index {
  margin: 0;
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--brand);
}

.path-lane h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.05;
}

.path-lane p {
  margin: 0;
  max-width: 36rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.5;
}

.path-cta {
  margin-top: 0.35rem;
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.path-lane:hover .path-cta {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

@media (min-width: 900px) {
  .path-split {
    grid-template-columns: 1fr 1fr;
  }

  .path-lane + .path-lane {
    border-top: 0;
    border-left: 1px solid var(--border);
  }
}

/* Full online order — tool banner (not photo hero) */
.builder-banner {
  background: #050505;
  color: #f5f5f5;
  padding: 2.5rem 0 2rem;
  border-bottom: 3px solid var(--brand);
}

.builder-banner .eyebrow {
  color: var(--brand);
}

.builder-banner h1 {
  margin: 0.35rem 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
}

.builder-banner-lede {
  margin: 0;
  max-width: 38rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
  line-height: 1.45;
}

.builder-banner-lede a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.builder-banner-note {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.order-page .step-rail,
.checkout-page .step-rail {
  position: sticky;
  top: var(--header-h);
  z-index: 20;
}

/* Contact / talk path — rink lines, form-forward */
.contact-page {
  background:
    repeating-linear-gradient(
      -18deg,
      transparent,
      transparent 11px,
      color-mix(in srgb, var(--text) 4%, transparent) 11px,
      color-mix(in srgb, var(--text) 4%, transparent) 12px
    ),
    var(--bg);
}

.contact-mast {
  padding: 3rem 0 1.5rem;
  border-bottom: 3px solid var(--brand);
  background: #050505;
  color: #f5f5f5;
}

.contact-mast .eyebrow {
  color: var(--brand);
}

.contact-mast h1 {
  margin: 0.35rem 0 0.85rem;
  font-family: var(--display);
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 700;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 0.95;
  color: #fff;
}

.contact-lede {
  margin: 0;
  max-width: 36rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.05rem;
  line-height: 1.5;
}

.contact-layout {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .contact-layout {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 3rem;
  }
}

.contact-aside-label {
  margin: 0 0 0.55rem;
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-aside-label + .contact-aside-label,
.contact-points + .contact-aside-label {
  margin-top: 1.75rem;
}

.contact-points {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.45;
}

.contact-aside a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.contact-aside-note {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.contact-form {
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.contact-intent {
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 0.55rem;
}

.contact-intent legend {
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.enquiry-form {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.enquiry-form .field-check,
.contact-intent .field-check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  flex-direction: row;
}

.enquiry-form .field-check input,
.contact-intent .field-check input {
  margin-top: 0.2rem;
  width: auto;
  flex-shrink: 0;
}

.enquiry-form .field-check span,
.contact-intent .field-check span {
  font-size: 0.95rem;
  color: var(--text);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 500;
}

.enquiry-note {
  margin: 0.25rem 0 0;
  font-size: 0.88rem;
}

.enquiry-note a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

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

@media (min-width: 720px) {
  .steps-four {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1100px) {
  .steps-four {
    grid-template-columns: repeat(4, 1fr);
  }
}

.footer-legal a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.footer-legal a:hover {
  color: var(--text);
}

/* Trust + size chart */
.trust-grid {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0 0.5rem;
}

.trust-grid > div {
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  display: grid;
  gap: 0.25rem;
}

.trust-grid strong {
  font-family: var(--display);
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.trust-grid span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

@media (min-width: 720px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.size-chart-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 860px) {
  .size-chart-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.size-table th,
.size-table td {
  text-align: left;
  padding: 0.45rem 0.35rem;
  border-bottom: 1px solid var(--border);
}

.size-table th {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.footer-meta {
  display: grid;
  gap: 0.25rem;
  text-align: right;
}

.cart-deposit {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
}

.line-breakdown {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.roster-details {
  margin-top: 0.35rem;
  font-size: 0.84rem;
}

.roster-details ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.bag-head-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.85rem;
  justify-content: flex-end;
}

.reorder-card {
  margin-top: 1rem;
}

.reorder-btn {
  width: 100%;
  margin-top: 0.5rem;
  justify-content: flex-start;
}

.narrow {
  max-width: 32rem;
}

.sizes-page .card .btn {
  width: 100%;
  margin-top: 0.35rem;
}
