/* ================================================================
   styles.css — ZwiftWatts.com — v2
   Website-specific styles. Requires table.css to be loaded first
   (for CSS variables and shared table styles).
   ================================================================ */

/* ─── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Barlow', sans-serif;
  background-color: var(--white);
  color: var(--text-primary);
  min-height: 100vh;
}

/* ─── Hero Section ───────────────────────────────────────────── */
.hero {
  background-color: var(--zwift-orange);
  width: 100%;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%);
  padding: 3.5rem 1.5rem 5.5rem 1.5rem;
}

.hero-container {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3rem;
}

/* ── Gauge logo ── */
.hero-gauge {
  flex-shrink: 0;
  width: 160px;
  height: 160px;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.25), 0 2px 8px rgba(0,0,0,0.15);
  background: white;
}

.hero-gauge img {
  width: 100%;
  height: 100%;
  display: block;
}

/* ── Hero text (right column) ── */
.hero-text {
  flex: 1;
  min-width: 0;
}

.hero h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.hero p {
  font-family: 'Barlow', sans-serif;
  font-size: 1.05rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  padding: 0.4rem 1rem;
  font-family: 'Barlow', sans-serif;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--white);
  letter-spacing: 0.02em;
}

/* ─── Content Container ──────────────────────────────────────── */
.content {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.5rem;
}

/* ─── Info Card ──────────────────────────────────────────────── */
.info-card {
  background-color: var(--light-blue-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--zwift-blue);
  border-radius: 12px;
  padding: 1.5rem;
  margin-bottom: 2.5rem;
}

.info-card-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--deep-blue);
  margin-bottom: 0.5rem;
  letter-spacing: 0.05em;
}

.info-card-text {
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Calculator Card ────────────────────────────────────────── */
.calculator-card {
  background-color: var(--white);
  border: 1px solid var(--card-border);
  border-top: 3px solid var(--zwift-orange);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2.5rem;
  box-shadow: 0 2px 12px rgba(0, 173, 239, 0.08);
}

.calculator-card h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

.weight-input-wrapper {
  position: relative;
  margin-bottom: 1.5rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
}

.weight-input-wrapper input {
  flex: 1;
  min-width: 200px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--card-border);
  border-radius: 10px;
  color: var(--text-primary);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.weight-input-wrapper input:focus {
  outline: none;
  border-color: var(--zwift-orange);
  box-shadow: 0 0 0 3px rgba(255, 105, 0, 0.1);
}

.weight-input-wrapper input::placeholder {
  color: rgba(0, 0, 0, 0.25);
}

/* Hide spinner buttons */
.weight-input-wrapper input::-webkit-outer-spin-button,
.weight-input-wrapper input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.weight-input-wrapper input[type=number] {
  -moz-appearance: textfield;
}

.unit-toggle {
  display: flex;
  background-color: #f3f4f6;
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
}

.unit-toggle button {
  background-color: transparent;
  border: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.05em;
}

.unit-toggle button.active {
  background-color: var(--zwift-orange);
  color: var(--white);
}

.calc-btn {
  background-color: var(--zwift-orange);
  border: none;
  border-radius: 10px;
  padding: 0.85rem 2rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--white);
  cursor: pointer;
  transition: all 0.3s;
  box-shadow: 0 4px 15px rgba(255, 105, 0, 0.35);
  letter-spacing: 0.05em;
}

.calc-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 25px rgba(255, 105, 0, 0.45);
}

.calc-btn:active {
  transform: translateY(0);
}

.error-msg {
  display: none;
  font-family: 'Barlow', sans-serif;
  font-size: 0.9rem;
  color: #ef4444;
  margin-top: 1rem;
  padding: 0.75rem;
  background-color: rgba(239, 68, 68, 0.1);
  border-radius: 6px;
  border-left: 3px solid #ef4444;
}

/* ─── Results Section ────────────────────────────────────────── */
#results {
  display: none;
  animation: fadeUp 0.4s ease-out;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.results-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--deep-blue);
  letter-spacing: -0.01em;
}

.weight-tag {
  display: inline-block;
  background-color: var(--zwift-orange);
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  letter-spacing: 0.05em;
}

.pdf-btn {
  background-color: transparent;
  border: 2px solid var(--zwift-blue);
  color: var(--zwift-blue);
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
  letter-spacing: 0.05em;
  margin-left: auto;
}

.pdf-btn:hover {
  background-color: var(--zwift-blue);
  color: var(--white);
}

/* ─── Results disclaimer (flat-ground note) ──────────────────── */
.results-disclaimer {
  font-family: 'Barlow', sans-serif;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-top: 1rem;
  padding: 0.6rem 0.9rem;
  background-color: #f8f9fb;
  border-left: 3px solid var(--card-border);
  border-radius: 6px;
  opacity: 0.9;
}

/* ─── Save Weight Row ────────────────────────────────────────── */
.save-weight-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: -0.75rem;
  margin-bottom: 1rem;
}

.save-btn {
  background-color: transparent;
  border: 2px solid var(--zwift-orange);
  border-radius: 10px;
  padding: 0.55rem 1.25rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--zwift-orange);
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}

.save-btn:hover {
  background-color: var(--orange-tint);
}

.save-btn.saved {
  border-color: #22c55e;
  color: #22c55e;
}

.saved-weight-info {
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

.save-weight-hint {
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem 0;
  opacity: 0.75;
}

/* ─── FAQ Section ────────────────────────────────────────────── */
.faq-section {
  margin-top: 3.5rem;
}

.faq-section > h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--deep-blue);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.faq-intro {
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.faq-item[open] {
  border-color: var(--zwift-blue);
  box-shadow: 0 2px 12px rgba(0, 173, 239, 0.1);
}

.faq-question {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.25rem;
  font-family: 'Barlow', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--deep-blue);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.15s;
}

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

.faq-question::marker {
  display: none;
}

.faq-question::after {
  content: '+';
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--zwift-orange);
  flex-shrink: 0;
  line-height: 1;
  width: 1.2rem;
  text-align: center;
}

.faq-item[open] > .faq-question::after {
  content: '−';
}

.faq-question:hover {
  background-color: var(--light-blue-bg);
}

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--card-border);
}

.faq-answer p {
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
  padding-top: 1rem;
}

/* ─── Site Nav (top bar) ──────────────────────────────────────── */
.site-nav {
  background-color: var(--deep-blue);
  padding: 0.55rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.site-nav a:hover {
  color: var(--zwift-orange);
}

.site-nav-home {
  color: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.95rem !important;
  letter-spacing: 0.04em !important;
  text-transform: none !important;
}

.site-nav-links {
  display: flex;
  gap: 1.5rem;
}

/* ─── Footer ─────────────────────────────────────────────────── */
footer {
  background-color: var(--deep-blue);
  color: var(--white);
  text-align: center;
  padding: 2rem 1.5rem;
  margin-top: 3rem;
  font-family: 'Barlow', sans-serif;
  font-size: 0.85rem;
  font-weight: 400;
  line-height: 1.6;
}

/* ─── Footer — From the Blog ──────────────────────────────────── */
.footer-blog {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-blog-heading {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zwift-orange);
  margin-bottom: 0.75rem;
}

.footer-blog-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem 1.5rem;
}

.footer-blog-links li a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.82rem;
  transition: color 0.2s;
}

.footer-blog-links li a:hover {
  color: var(--white);
  text-decoration: underline;
}

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }

  .calculator-card {
    padding: 1.5rem;
  }

  .weight-input-wrapper input {
    flex: 1;
    min-width: 120px;
    font-size: 1.25rem;
  }

  .unit-toggle {
    flex-shrink: 0;
  }

  .calc-btn {
    width: 100%;
  }

  .results-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .pdf-btn {
    margin-left: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 2.5rem 1.25rem 4rem 1.25rem;
  }

  .hero-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.75rem;
  }

  .hero-gauge {
    width: 120px;
    height: 120px;
    border-radius: 22px;
  }

  .hero h1 {
    font-size: 2rem;
  }

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

  /* Hide side watts columns, difficulty, and power bar on mobile */
  .watts-col.watts-side,
  .bar-cell {
    display: none;
  }

  thead th:nth-child(4),
  thead th:nth-child(5),
  thead th:nth-child(6),
  thead th:nth-child(8) {
    display: none;
  }

  /* Tighten table padding so remaining columns fit */
  thead th {
    padding: 0.7rem 0.6rem;
    font-size: 0.72rem;
  }

  td {
    padding: 0.75rem 0.6rem;
  }

  .pacer-name {
    font-size: 1.1rem;
  }

  .watts-col.watts-main {
    font-size: 1.45rem;
  }

  .content {
    padding: 2rem 1rem;
  }

  table td:nth-child(4),
  table td:nth-child(5),
  table td:nth-child(6),
  table td:nth-child(8) {
    display: none;
  }
}

/* ─── Cookie Consent Banner ──────────────────────────────────── */
#cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background-color: var(--deep-blue);
  color: var(--white);
  padding: 1.25rem 1.5rem;
  display: none;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  box-shadow: 0 -4px 28px rgba(0, 0, 0, 0.3);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

#cookie-banner.visible {
  transform: translateY(0);
}

.cookie-text {
  flex: 1;
  min-width: 220px;
  font-size: 0.88rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.cookie-text strong {
  font-weight: 600;
  color: var(--white);
}

.cookie-text a {
  color: var(--zwift-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-actions {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
}

.cookie-btn-accept {
  background-color: var(--zwift-orange);
  border: none;
  border-radius: 8px;
  padding: 0.6rem 1.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 10px rgba(255, 105, 0, 0.35);
  white-space: nowrap;
}

.cookie-btn-accept:hover {
  box-shadow: 0 4px 18px rgba(255, 105, 0, 0.5);
  transform: translateY(-1px);
}

.cookie-btn-necessary {
  background-color: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  padding: 0.6rem 1.5rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.cookie-btn-necessary:hover {
  border-color: rgba(255, 255, 255, 0.6);
  color: var(--white);
}

.cookie-settings-link {
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.82rem;
  background: none;
  border: none;
  padding: 0;
  font-family: 'Barlow', sans-serif;
  transition: color 0.2s;
}

.cookie-settings-link:hover {
  color: var(--zwift-blue);
}

@media (max-width: 480px) {
  #cookie-banner {
    padding: 1rem 1.25rem 1.25rem 1.25rem;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-btn-accept,
  .cookie-btn-necessary {
    flex: 1;
    text-align: center;
  }
}

/* ─── PayHip Promo Banner ────────────────────────────────────── */
/* TO REMOVE: delete the .promo-banner block and its HTML in index.html */
.promo-banner {
  background: var(--deep-blue);
  border-radius: 12px;
  padding: 1.1rem 1.5rem;
  margin-top: 3rem;
  margin-bottom: 1.5rem;
}

.promo-banner-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.promo-badge {
  display: inline-flex;
  align-items: center;
  background: var(--zwift-orange);
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.28rem 0.7rem;
  border-radius: 20px;
  flex-shrink: 0;
  white-space: nowrap;
}

.promo-text {
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
  flex: 1;
  min-width: 160px;
}

.promo-text strong {
  color: white;
  font-weight: 700;
}

.promo-code-block {
  display: flex;
  align-items: stretch;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1.5px dashed rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  overflow: hidden;
}

.promo-code {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--zwift-orange);
  padding: 0.55rem 1rem;
  user-select: all;
  cursor: text;
}

.promo-copy-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--zwift-orange);
  border: none;
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.55rem 0.9rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.promo-copy-btn:hover {
  background: #d95a00;
}

.promo-copy-btn.copied {
  background: #22c55e;
}

@media (max-width: 640px) {
  .promo-banner-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .promo-code-block {
    width: 100%;
  }

  .promo-copy-btn {
    flex: 1;
    justify-content: center;
  }
}

/* ─── PayHip Downloads Carousel ──────────────────────────────── */
.carousel-section {
  margin-top: 3rem;
}

.carousel-section-header {
  margin-bottom: 1.25rem;
}

.carousel-section-header h2 {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--deep-blue);
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
}

.carousel-section-header p {
  font-family: 'Barlow', sans-serif;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.carousel-outer {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.carousel-nav {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--card-border);
  color: var(--deep-blue);
  font-size: 1.4rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
  padding: 0;
}

.carousel-nav:hover {
  background: var(--zwift-orange);
  border-color: var(--zwift-orange);
  color: white;
  box-shadow: 0 4px 12px rgba(255,105,0,0.3);
}

.carousel-viewport {
  flex: 1;
  overflow-x: auto;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.carousel-viewport::-webkit-scrollbar {
  display: none;
}

.carousel-track {
  display: flex;
  gap: 14px;
  padding: 4px 2px 10px;
  min-width: max-content;
}

.carousel-card {
  flex-shrink: 0;
  width: 262px;
  background: var(--white);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  scroll-snap-align: start;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

.carousel-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.11);
  border-color: var(--zwift-orange);
}

.carousel-card img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--card-border);
}

.carousel-card-body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.carousel-card-weight {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--deep-blue);
  line-height: 1.1;
  margin-bottom: 0.15rem;
}

.carousel-card-range {
  font-family: 'Barlow', sans-serif;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.carousel-card-detail {
  font-family: 'Barlow', sans-serif;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin-bottom: 0.85rem;
  flex: 1;
}

.carousel-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.carousel-card-cta {
  display: inline-block;
  background: var(--zwift-orange);
  color: white;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 6px;
  letter-spacing: 0.05em;
  transition: background 0.2s;
}

.carousel-card:hover .carousel-card-cta {
  background: var(--deep-blue);
}

.carousel-card-price {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-muted);
}

/* Closest-match highlight — applied by JS when user enters their weight */
.carousel-card--match {
  border-color: var(--zwift-orange);
  box-shadow: 0 0 0 2px var(--zwift-orange), 0 6px 20px rgba(0,0,0,0.25);
}

.carousel-card--match .carousel-card-weight {
  color: var(--zwift-orange);
}

.carousel-card--match .carousel-card-cta {
  background: var(--zwift-orange);
}

@media (max-width: 640px) {
  .carousel-card {
    width: 220px;
  }

  .carousel-nav {
    width: 30px;
    height: 30px;
    font-size: 1.2rem;
  }
}
