/* ============================================================
   FONTS — self-hosted, latin subset, no external round-trip
   ============================================================ */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('fonts/inter.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/barlow-condensed-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/barlow-condensed-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6,
    U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122,
    U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   DESIGN TOKENS — Classic Rink palette
   ============================================================ */
:root {
  --bg:           #fffdf8;
  --ink:          #14110f;
  --red:          #c8102e;
  --red-dark:     #8f0a20;
  --muted:        #6c655a;
  --border:       #ddd6c8;
  --card-bg:      #ffffff;

  --font-body:      'Inter', system-ui, -apple-system, sans-serif;
  --font-condensed: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;

  --radius:   4px;
  --shadow:   0 2px 16px rgba(20, 17, 15, 0.07);
  --max-w:    760px;
}

/* ============================================================
   BASE RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px */
  line-height: 1.65;
}

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.content-narrow {
  max-width: 680px;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-body);
  line-height: 1.2;
  font-weight: 700;
  color: var(--ink);
}

h1 { font-size: clamp(1.75rem, 5vw, 2.5rem); margin-bottom: 0.5rem; }
h2 { font-size: clamp(1.25rem, 4vw, 1.75rem); margin-bottom: 0.75rem; margin-top: 3rem; }
h3 { font-size: 1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; }
em { font-style: italic; }

a {
  color: var(--red);
  text-decoration: underline;
  text-underline-offset: 2px;
}
a:hover { color: var(--red-dark); }

/* Universal keyboard focus indicator — applies wherever
   a more specific focus-visible rule is not set. */
a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 2px;
}

.kicker {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 0.4rem;
}

/* ============================================================
   SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  z-index: 200;
  background: var(--red);
  color: #fff;
  padding: 0.65rem 1.25rem;
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { top: 0; }

/* ============================================================
   SITE HEADER
   ============================================================ */
.site-header {
  border-bottom: 1px solid var(--border);
  padding: 0.875rem 0;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  display: block;
  height: 40px;
  width: auto;
}

/* Hamburger toggle — mobile only */
.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0 10px;
  background: none;
  border: 0;
  cursor: pointer;
  position: relative;
  z-index: 210;
}

.nav-toggle__bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Drawer-mode nav (mobile default) */
.site-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(80vw, 320px);
  background: var(--bg);
  border-left: 1px solid var(--border);
  box-shadow: -4px 0 24px rgba(20, 17, 15, 0.1);
  padding: 4.5rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s linear 0.25s;
  z-index: 200;
}

.site-nav.is-open {
  transform: translateX(0);
  visibility: visible;
  transition: transform 0.25s ease, visibility 0s linear 0s;
}

.site-nav a {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  transition: color 0.15s;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.site-nav a:last-child {
  border-bottom: 0;
}

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

.site-nav a:focus-visible {
  color: var(--red);
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: 2px;
}

/* Backdrop behind the open drawer */
.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 17, 15, 0.45);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.nav-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* Desktop: drop the drawer, return to inline nav */
@media (min-width: 560px) {
  .nav-toggle,
  .nav-backdrop { display: none; }

  .site-nav {
    position: static;
    transform: none;
    visibility: visible;
    transition: none;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
    width: auto;
    flex-direction: row;
    gap: 1.5rem;
    z-index: auto;
  }

  .site-nav a {
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    padding: 0.5rem 0;
    border-bottom: 0;
    white-space: nowrap;
  }
}

/* When drawer is open, lock body scroll */
body.nav-open {
  overflow: hidden;
}

.site-logo-link:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 4px;
  border-radius: var(--radius);
}

/* ============================================================
   SITE FOOTER
   ============================================================ */
.site-footer {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.55);
  padding: 2.5rem 0;
  border-top: 3px solid var(--red);
}

.footer-brand {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.2rem;
}

.footer-tagline {
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-bottom: 1.25rem;
}

.footer-nav a {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.55);
  transition: color 0.15s;
  padding: 0.4rem 0;
}

.footer-nav a:hover,
.footer-nav a[aria-current="page"] { color: #fff; }

.footer-nav a:focus-visible {
  color: #fff;
  outline: 2px solid #fff;
  outline-offset: 4px;
  border-radius: 2px;
}

.footer-legal {
  font-size: 0.8rem;
  line-height: 1.6;
  max-width: 560px;
}

.footer-legal a { color: rgba(255, 255, 255, 0.45); }
.footer-legal a:hover { color: var(--red); }

/* ============================================================
   BUTTONS
   ============================================================ */
.calc-btn {
  display: block;
  width: 100%;
  padding: 0.9rem 1.5rem;
  background: var(--red);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 0.5rem;
}

.calc-btn:hover { background: var(--red-dark); }

.calc-btn:focus-visible {
  outline: 3px solid var(--red-dark);
  outline-offset: 3px;
}

.affiliate-btn {
  display: block;
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius);
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-align: center;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  cursor: pointer;
}

.affiliate-btn--primary {
  background: var(--red);
  color: #fff;
  border: 1.5px solid var(--red);
}

.affiliate-btn--primary:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  color: #fff;
}

.affiliate-btn--secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border);
}

.affiliate-btn--secondary:hover {
  border-color: var(--red);
  color: var(--red);
}

.affiliate-btn:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 2px;
}

.refine-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.85);
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.75rem 1.1rem;
  min-height: 44px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.refine-btn:hover {
  border-color: var(--red);
  color: #fff;
}

.refine-btn:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.results-actions {
  margin-top: 1.5rem;
}

.reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--muted);
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  padding: 0.65rem 1rem;
  min-height: 44px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.reset-btn:hover {
  border-color: var(--ink);
  color: var(--ink);
}

.reset-btn:focus-visible {
  outline: 3px solid var(--red-dark);
  outline-offset: 2px;
}

/* ============================================================
   FORMS
   ============================================================ */
.field-group {
  margin-bottom: 1.25rem;
  border: none;
  padding: 0;
}

.field-group > label,
.field-group > legend {
  display: block;
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

select,
input[type="number"] {
  display: block;
  width: 100%;
  padding: 0.65rem 0.85rem;
  min-height: 44px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s;
}

select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236c655a' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

select:focus,
input[type="number"]:focus {
  outline: 2px solid var(--red);
  outline-offset: 1px;
  border-color: var(--red);
}

select.is-error,
input[type="number"].is-error {
  border-color: var(--red);
  outline: 2px solid rgba(200, 16, 46, 0.25);
  outline-offset: 1px;
}

.field-error {
  font-family: var(--font-condensed);
  font-size: 0.82rem;
  color: var(--red);
  margin-top: 0.35rem;
  font-weight: 600;
}

/* Soft, non-blocking input hint (less urgent than .field-error). */
.field-hint {
  font-size: 0.85rem;
  color: var(--ink);
  background: #fff8e6;
  border-left: 3px solid #d99c1a;
  padding: 0.5rem 0.75rem;
  margin-top: 0.5rem;
  border-radius: 0 4px 4px 0;
  line-height: 1.45;
}

/* Generic helper text under a field group or fieldset. */
.field-help {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.6rem;
  line-height: 1.5;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
  margin-bottom: 1.25rem;
}

.field-row .field-group {
  margin-bottom: 0;
}

/* ============================================================
   RADIO BUTTON CARDS
   ============================================================ */
.radio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

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

.radio-label {
  cursor: pointer;
  position: relative;
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.radio-box {
  display: flex;
  flex-direction: column;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}

.radio-box strong {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}

.radio-box small {
  color: var(--muted);
  font-size: 0.75rem;
  font-family: var(--font-condensed);
}

.radio-label input[type="radio"]:checked + .radio-box {
  border-color: var(--red);
  background: #fff5f6;
}

.radio-label input[type="radio"]:focus-visible + .radio-box {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

@media (min-width: 480px) {
  .radio-grid { grid-template-columns: repeat(4, 1fr); }
  .radio-grid--2col { grid-template-columns: 1fr 1fr; }
  .radio-grid--3col { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   STEP INDICATOR
   ============================================================ */
.step-indicator {
  display: flex;
  align-items: center;
  margin-bottom: 1.75rem;
  list-style: none;
}

.step-indicator__step {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.step-indicator__num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
  flex-shrink: 0;
  transition: background 0.25s, border-color 0.25s, color 0.25s;
}

.step-indicator__label {
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.25s;
}

.step-indicator__connector {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 0.625rem;
  transition: background 0.25s;
}

.step-indicator__step--active .step-indicator__num {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

.step-indicator__step--active .step-indicator__label { color: var(--red); }

.step-indicator__step--done .step-indicator__num {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.step-indicator__step--done .step-indicator__label { color: var(--ink); }

.step-indicator__step--done + .step-indicator__connector {
  background: rgba(20, 17, 15, 0.3);
}

/* ============================================================
   CONTENT SECTIONS
   ============================================================ */
.content-section {
  padding: 2rem 0 4rem;
  border-top: 1px solid var(--border);
  content-visibility: auto;
  contain-intrinsic-size: auto 2400px;
}

.content-section--page {
  border-top: none;
  padding-top: 3rem;
  content-visibility: visible;
}

/* ============================================================
   TOOL SECTION
   ============================================================ */
.tool-section {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--border);
  background:
    linear-gradient(rgba(255, 253, 248, 0.75), rgba(255, 253, 248, 0.75)),
    image-set(
      url('ice-bg.webp') type('image/webp'),
      url('ice-bg.jpg') type('image/jpeg')
    ) center bottom / cover no-repeat;
}

.tool-intro {
  margin-bottom: 1.75rem;
}

.tool-subhead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 560px;
}

.tool-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

@media (min-width: 600px) {
  .tool-card { padding: 2rem 2.25rem; }
  .affiliate-btn { flex: 1; }
}

/* ============================================================
   CALCULATOR — size result
   ============================================================ */
.size-result {
  margin-top: 1.5rem;
  background: var(--ink);
  border-radius: 8px;
  padding: 1.75rem 1.5rem 1.5rem;
  color: #fff;
}

.size-result__hero {
  margin-bottom: 1rem;
}

.size-eyebrow {
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.1rem;
}

.size-num {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: clamp(4rem, 16vw, 6.5rem);
  line-height: 1;
  color: var(--red);
  margin-bottom: 0.2rem;
}

.size-sub {
  font-family: var(--font-condensed);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 0;
}

.size-result__reasoning {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 1rem;
  margin-bottom: 0.875rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
}

.size-result__reasoning p { margin-bottom: 0; }

.size-result__brand-note {
  margin-bottom: 1.25rem;
}

.brand-note-text {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ============================================================
   CALCULATOR — refine section
   ============================================================ */
.refine-section {
  padding: 2.5rem 0 1.5rem;
  border-top: 1px solid var(--border);
}

.refine-intro {
  margin-bottom: 1.5rem;
}

.refine-intro h2 {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

/* ============================================================
   CALCULATOR — fit guidance
   ============================================================ */
.fit-guidance {
  background: rgba(221, 214, 200, 0.2);
  border-left: 3px solid var(--border);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.1rem 1.25rem;
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
  color: var(--ink);
  line-height: 1.7;
}

.fit-guidance p { margin-bottom: 0.75rem; }
.fit-guidance p:last-child { margin-bottom: 0; }

/* ============================================================
   CALCULATOR — width helper
   ============================================================ */
.width-helper {
  margin-top: 0.75rem;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.width-helper__toggle {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.875rem;
  font-family: var(--font-condensed);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  user-select: none;
  transition: color 0.15s;
}

.width-helper__toggle::-webkit-details-marker { display: none; }

.width-helper__toggle::after {
  content: '+';
  font-size: 1.1rem;
  flex-shrink: 0;
  font-weight: 300;
}

.width-helper[open] .width-helper__toggle::after { content: '\2212'; }
.width-helper__toggle:hover { color: var(--ink); }

.width-helper__toggle:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.width-helper__body {
  padding: 0.25rem 0.875rem 0.875rem;
  border-top: 1px dashed var(--border);
}

.width-helper__question {
  margin-bottom: 0.875rem;
}

.width-helper__q-text {
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
  color: var(--ink);
}

.width-helper__result {
  font-family: var(--font-condensed);
  font-size: 0.875rem;
  color: var(--ink);
  background: rgba(221, 214, 200, 0.3);
  border-radius: var(--radius);
  padding: 0.5rem 0.75rem;
  margin-top: 0.25rem;
}

/* ============================================================
   RESULTS
   ============================================================ */
.results-section {
  padding: 2.5rem 0 1rem;
  border-top: 1px solid var(--border);
}

.results-heading {
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.results-list {
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 1.5rem;
}

.results-disclaimer,
.results-disclosure {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0.35rem;
}

@media (min-width: 640px) {
  .results-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
  }
}

/* ============================================================
   SKATE CARDS
   ============================================================ */
.skate-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.skate-card--top {
  border-color: var(--red);
  border-width: 2px;
}

.skate-card__header {
  margin-bottom: 0.75rem;
}

.skate-card__header-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.skate-card__badge {
  display: inline-block;
  background: var(--red);
  color: #fff;
  font-family: var(--font-condensed);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

.skate-card__rank {
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.skate-card__brand {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 0.1rem;
}

.skate-card__line {
  font-family: var(--font-condensed);
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 0;
}

.skate-card__body {
  margin-bottom: 1rem;
}

.skate-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.65rem;
}

.skate-card__fit {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 0;
}

.skate-card__links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 480px) {
  .skate-card__links { flex-direction: row; }
  .skate-card__links .affiliate-btn { flex: 1; }
}

/* Chips & badges */
.meta-chip {
  font-family: var(--font-condensed);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.15rem 0.55rem;
  border-radius: 2px;
  background: rgba(221, 214, 200, 0.4);
  color: var(--muted);
}

.match-chip {
  font-family: var(--font-condensed);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 0.1rem 0.45rem;
  border-radius: 2px;
  white-space: nowrap;
}

.match-chip--strong {
  background: #f0fdf4;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.match-chip--good {
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
}

.match-chip--fair {
  background: rgba(221, 214, 200, 0.4);
  color: var(--muted);
  border: 1px solid var(--border);
}

.placeholder-badge {
  display: block;
  font-family: var(--font-condensed);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: #fffbeb;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 0.1rem 0.45rem;
  border-radius: 2px;
  margin-bottom: 0.35rem;
}

/* Confidence badges — surface medium/low-confidence fit data.
   Action-oriented wording rather than data description: tell the
   user what to do, not what the dataset says. */
.confidence-badge {
  display: inline-block;
  font-family: var(--font-condensed);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  margin: 0.4rem 0 0.5rem;
}

.confidence-badge--medium {
  background: #fff8e6;
  color: #8c5a00;
  border: 1px solid #f3d784;
}

.confidence-badge--low {
  background: #f0f0f0;
  color: #555;
  border: 1px solid #d0d0d0;
}

/* Warrior provisional badge — expandable for honesty about the
   product, not a defect in our tool. */
.warrior-badge {
  background: #f5f5f5;
  border: 1px solid #d0d0d0;
  border-radius: 4px;
  padding: 0.4rem 0.65rem;
  margin: 0.4rem 0 0.6rem;
  font-size: 0.85rem;
}

.warrior-badge__summary {
  cursor: pointer;
  font-family: var(--font-condensed);
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #4a4a4a;
  list-style: none;
}

.warrior-badge__summary::-webkit-details-marker { display: none; }
.warrior-badge__summary::after { content: ' \25BE'; color: #888; }
.warrior-badge[open] .warrior-badge__summary::after { content: ' \25B4'; }

.warrior-badge__body {
  margin-top: 0.5rem;
  color: #444;
  line-height: 1.55;
}

/* Cross-brand fit translation panel. Sits above the per-model
   cards in Layer 2 — useful even when zero specific picks match. */
.cross-brand-panel {
  background: var(--ice);
  border-left: 3px solid var(--red);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.cross-brand-panel__title {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.cross-brand-panel__list {
  list-style: none;
  padding: 0;
  margin: 0 0 0.65rem;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.4rem 1.5rem;
  font-size: 0.95rem;
}

.cross-brand-panel__list li { line-height: 1.4; }

.cross-brand__est {
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  color: var(--muted);
  font-style: italic;
}

.cross-brand-panel__note {
  font-size: 0.82rem;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ============================================================
   TABLES
   ============================================================ */
.table-scroll {
  overflow-x: auto;
  margin: 1.25rem 0 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.size-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  min-width: 500px;
}

.size-table th {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.6rem 0.85rem;
  text-align: left;
  white-space: nowrap;
}

.size-table td {
  padding: 0.5rem 0.85rem;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}

.size-table tbody tr:nth-child(even) td {
  background: rgba(221, 214, 200, 0.18);
}

.size-table tbody tr:last-child td {
  border-bottom: none;
}

.table-note {
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-of-type {
  border-top: 1px solid var(--border);
}

.faq-item summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 700;
  font-size: 1rem;
  list-style: none;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  user-select: none;
}

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

.faq-item summary::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--red);
  flex-shrink: 0;
  font-weight: 400;
  line-height: 1.3;
}

.faq-item[open] summary::after {
  content: '\2212'; /* minus sign */
}

.faq-item summary:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}

.faq-item p {
  padding-bottom: 1.25rem;
  color: var(--ink);
}

/* ============================================================
   BLOG / ARTICLE
   ============================================================ */
.article-breadcrumb {
  font-family: var(--font-condensed);
  font-size: 0.82rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 1rem;
}

.article-breadcrumb a {
  color: var(--muted);
  text-decoration: none;
}

.article-breadcrumb a:hover { color: var(--red); }
.article-breadcrumb span { margin: 0 0.35rem; }

.article-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-family: var(--font-condensed);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-top: 0.75rem;
  margin-bottom: 1.75rem;
}

.article-meta__divider {
  width: 1px;
  height: 0.85em;
  background: var(--border);
  display: inline-block;
}

.article-hero {
  margin-bottom: 2rem;
  border-radius: 8px;
  overflow: hidden;
  background: var(--border);
  line-height: 0;
}

.article-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}

.article-hero figcaption {
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  line-height: 1.5;
}

.article-body ul,
.article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.article-body li {
  margin-bottom: 0.4rem;
  line-height: 1.65;
}

.article-body ol.steps-list {
  background: var(--ice);
  border-left: 3px solid var(--red);
  padding: 1rem 1rem 1rem 2.25rem;
  margin: 0.5rem 0 1.5rem;
  border-radius: 4px;
}

.article-body ol.steps-list li {
  margin-bottom: 0.35rem;
}

.article-body ol.steps-list li:last-child {
  margin-bottom: 0;
}

.article-body h3 {
  font-size: 1.05rem;
  margin-top: 1.5rem;
  margin-bottom: 0.4rem;
}

.article-figure {
  margin: 2rem 0;
  border-radius: 8px;
  overflow: hidden;
  background: var(--border);
  line-height: 0;
}

.article-figure img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
}

.article-figure figcaption {
  font-family: var(--font-condensed);
  font-size: 0.78rem;
  color: var(--muted);
  padding: 0.5rem 0.75rem;
  line-height: 1.5;
  background: var(--bg);
}

.article-figure--diagram {
  background: var(--bg);
  border: 1px solid var(--border);
  line-height: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 1rem 0;
}

.article-figure--diagram svg {
  display: block;
  width: 100%;
  height: auto;
}

.article-figure--diagram figcaption {
  width: 100%;
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

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

.ratio-table th {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.6rem 0.85rem;
  text-align: left;
}

.ratio-table td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.ratio-table tr:last-child td { border-bottom: none; }

.ratio-table tr.ratio-table__standard td {
  background: rgba(200, 16, 46, 0.04);
  font-weight: 600;
}

/* ============================================================
   BLOG FEED
   ============================================================ */
.post-feed-header {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
}

.post-feed {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.post-card {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.post-card__image-link {
  display: block;
  line-height: 0;
  overflow: hidden;
}

.post-card__image-link img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.post-card__image-link:hover img { transform: scale(1.02); }

.post-card__body {
  padding: 1.25rem 1.5rem 1.5rem;
}

.post-card__title {
  font-size: clamp(1.1rem, 3vw, 1.35rem);
  margin-top: 0.4rem;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.post-card__title a {
  color: var(--ink);
  text-decoration: none;
}

.post-card__title a:hover { color: var(--red); }

.post-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-condensed);
  font-size: 0.82rem;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}

.post-card__excerpt {
  font-size: 0.925rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 1rem;
}

.post-card__read-more {
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  color: var(--red);
}

.post-card__read-more span {
  font-size: 1.2em;
  margin-left: 0.15em;
  vertical-align: -0.05em;
}

.post-card__read-more:hover { color: var(--red-dark); }

@media (min-width: 560px) {
  .post-card {
    display: grid;
    grid-template-columns: 260px 1fr;
  }
  .post-card__image-link img {
    aspect-ratio: auto;
    height: 100%;
  }
}

/* ============================================================
   LOADING STATES
   ============================================================ */
.loading-text,
.no-match {
  font-size: 0.9rem;
  color: var(--muted);
  padding: 1.5rem 0;
  line-height: 1.6;
}

.no-match code {
  font-family: 'Courier New', monospace;
  font-size: 0.85em;
  background: rgba(221, 214, 200, 0.4);
  padding: 0.1em 0.3em;
  border-radius: 2px;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.size-result:not([hidden]),
.refine-section:not([hidden]),
.results-section:not([hidden]) {
  animation: fadeSlideIn 0.35s ease;
}

/* ============================================================
   ERROR / 404 PAGE
   ============================================================ */
.error-page__inner {
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.error-page__lede {
  color: var(--muted);
  max-width: 420px;
  margin: 0 auto 2rem;
}

.error-page__cta {
  display: inline-block;
  padding: 0.9rem 2rem;
  background: var(--red);
  color: #fff;
  border-radius: var(--radius);
  font-family: var(--font-condensed);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 0.15s;
}

.error-page__cta:hover,
.error-page__cta:focus-visible {
  background: var(--red-dark);
  color: #fff;
}

/* Brand note variant with extra top spacing */
.brand-note-text--spaced {
  margin-top: 0.75rem;
}

/* ============================================================
   ACCESSIBILITY — reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  .calc-btn,
  .affiliate-btn,
  .refine-btn,
  .reset-btn,
  .error-page__cta,
  .site-nav a,
  .footer-nav a,
  .step-indicator__num,
  .step-indicator__label,
  .step-indicator__connector,
  select,
  input[type="number"],
  .radio-box,
  .width-helper__toggle { transition: none; }

  .size-result:not([hidden]),
  .refine-section:not([hidden]),
  .results-section:not([hidden]) { animation: none; }

  .post-card__image-link img { transition: none; }
}
