/* =============================================================================
   LOAD TRAINING UK — Rucking & Weighted Fitness Brand System
   Primary: #24303B (Capability Slate) | Accent: #B8622F (Rugged Amber)
   Secondary: #8C9A7B (Khaki Sage) | Neutral Background: #F4F5F3
   Heading Font: DM Serif Display | Body: Inter | UI: DM Sans
   ============================================================================= */

/* ── ROOT VARIABLES ── */
:root {
  --soil-forest: #24303B;
  --soil-forest-dark: #17202A;
  --soil-forest-light: #35485A;
  --soil-terracotta: #B8622F;
  --soil-terracotta-hover: #C97640;
  --soil-sage: #8C9A7B;
  --soil-cream: #F4F5F3;
  --soil-sand: #E9E7E2;
  --soil-white: #ffffff;
  --soil-charcoal: #262B2E;
  --soil-muted: #6b6b6b;
  --font-heading: 'DM Serif Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ui: 'DM Sans', 'Inter', sans-serif;
}

/* ── GLOBAL ── */
body {
  background-color: var(--soil-cream);
  color: var(--soil-charcoal);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── HEADER / LOGO ── */
.logo--branded {
  padding: 14px 20px;
  background: transparent;
}

.logo--branded .logo__link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo--branded .logo__icon {
  flex-shrink: 0;
  line-height: 0;
  transition: transform 0.3s ease;
}

.logo--branded .logo__link:hover .logo__icon {
  transform: rotate(-5deg) scale(1.05);
}

.logo--branded .logo__title {
  color: var(--soil-white);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  font-family: var(--font-heading);
  line-height: 1;
}

.logo--branded .logo__tagline {
  color: var(--soil-sage);
  border-top: none;
  padding-top: 2px;
  font-size: 0.65rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.9;
}

/* Header — transparent dark gradient, stays in document flow */
.header {
  background: linear-gradient(180deg, rgba(26, 46, 21, 0.92) 0%, rgba(26, 46, 21, 0.85) 100%);
  border-bottom: none;
  box-shadow: none;
  position: relative;
}

/* ── NAVIGATION ── */
.menu__link {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.9) !important;
  text-transform: uppercase;
  font-family: var(--font-ui);
}

.menu__link:hover {
  color: var(--soil-white) !important;
}

.menu__link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0;
  height: 3px;
  background-color: var(--soil-terracotta);
  transition: width 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.menu__link:hover::after,
.menu__item--active .menu__link::after {
  width: 100%;
}

/* Nav hover stays white, no green shift */
.menu__link:hover {
  color: var(--soil-white) !important;
}

/* ── HERO ── GRADIENT BACKGROUND (no photo, deliberately — see note below) ── */
.hero--loadtraining {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  margin-bottom: 0;
  overflow: hidden;
}

/* Hero background — styled gradient, not a photo. Reliable, no dependency
   on the image-generation pipeline, and avoids a hero photo looking like
   generic "person rucking" stock imagery. A textured gradient in the
   capability-slate brand palette reads as intentional and on-brand. */
.hero--loadtraining .hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(184, 98, 47, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 80% 80%, rgba(140, 154, 123, 0.20) 0%, transparent 50%),
    linear-gradient(135deg, #17202A 0%, #24303B 45%, #35485A 100%);
  z-index: 0;
}

/* Dark overlay for text readability */
.hero--loadtraining .hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(23, 32, 42, 0.55) 0%, rgba(36, 48, 59, 0.35) 50%, rgba(23, 32, 42, 0.6) 100%);
  z-index: 1;
}

/* Subtle vignette */
.hero--loadtraining .hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(23, 32, 42, 0.5) 100%);
  z-index: 1;
  pointer-events: none;
}

.hero--loadtraining .hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 6rem 1.5rem 4rem;
}

.hero__inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--soil-terracotta);
  background: rgba(199, 123, 62, 0.15);
  border: 1px solid rgba(199, 123, 62, 0.4);
  border-radius: 30px;
  padding: 6px 20px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.8s ease-out 0.2s both;
  font-family: var(--font-ui);
}

.hero__title {
  font-family: var(--font-heading);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 400;
  color: var(--soil-white);
  line-height: 1.05;
  margin: 0 0 1.5rem;
  letter-spacing: 0.5px;
  text-shadow: 0 4px 30px rgba(0,0,0,0.35);
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

.hero__title em {
  color: var(--soil-terracotta);
  font-style: italic;
}

.hero__tagline {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.7;
  margin: 0 auto 2.5rem;
  max-width: 600px;
  font-weight: 400;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.hero__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.hero__cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 50px;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  font-family: var(--font-ui);
}

.hero__cta--primary {
  background-color: var(--soil-terracotta);
  color: var(--soil-white);
  box-shadow: 0 4px 20px rgba(196, 93, 58, 0.35);
}

.hero__cta--primary:hover {
  background-color: var(--soil-terracotta-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(196, 93, 58, 0.5);
}

.hero__cta--secondary {
  background-color: transparent;
  color: var(--soil-white);
  border: 2px solid rgba(255, 255, 255, 0.4);
}

.hero__cta--secondary:hover {
  border-color: var(--soil-sage);
  color: var(--soil-sage);
  background: rgba(143, 166, 120, 0.1);
}

/* Scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounce 2s infinite;
}

.hero__scroll svg {
  width: 30px;
  height: 30px;
  stroke: rgba(255,255,255,0.5);
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
  40% { transform: translateX(-50%) translateY(-10px); }
  60% { transform: translateX(-50%) translateY(-5px); }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── TRUST STRIP ── */
.trust-strip {
  background: var(--soil-forest);
  border-top: none;
  border-bottom: 3px solid var(--soil-terracotta);
  padding: 1.2rem 1.5rem;
  margin-bottom: 0;
  position: relative;
}

.trust-strip__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem 3rem;
}

.trust-strip__item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.5px;
  font-family: var(--font-ui);
}

.trust-strip__item svg {
  stroke: var(--soil-sage) !important;
}

/* ── HOMEPAGE SECTIONS ── */
.hp-section {
  padding: 5rem 1.5rem;
  background: var(--soil-cream);
}

.hp-section--alt {
  background: linear-gradient(180deg, var(--soil-sand) 0%, var(--soil-cream) 100%);
  border-top: 1px solid #ddd8cc;
  border-bottom: 1px solid #ddd8cc;
}

.hp-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hp-section__header {
  text-align: center;
  margin-bottom: 3rem;
}

.hp-section__title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 400;
  color: var(--soil-forest);
  margin: 0 0 0.75rem;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.hp-section__title span {
  color: var(--soil-terracotta);
  font-style: italic;
}

.hp-section__sub {
  font-size: 1.05rem;
  color: var(--soil-muted);
  margin: 0;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ── HOW IT WORKS ── */
.hp-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
}

.hp-step {
  text-align: center;
  padding: 2rem 1.5rem;
  background: var(--soil-white);
  border-radius: 16px;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.hp-step::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--soil-terracotta), var(--soil-sage));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hp-step:hover {
  border-color: var(--soil-terracotta);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(26, 46, 21, 0.08);
}

.hp-step:hover::before {
  opacity: 1;
}

.hp-step__num {
  width: 56px;
  height: 56px;
  /* Organic leaf-blob shape rather than a plain circle — a small
     site-specific signature so this homepage doesn't
     read as a re-skin of the shared card/badge scaffold. */
  border-radius: 62% 38% 55% 45% / 45% 55% 40% 60%;
  background: linear-gradient(135deg, var(--soil-forest), var(--soil-sage));
  color: var(--soil-white);
  font-family: var(--font-ui);
  font-size: 1.3rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
  box-shadow: 0 4px 15px rgba(26, 46, 21, 0.15);
}

.hp-step__title {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--soil-forest);
  margin: 0 0 0.75rem;
}

.hp-step__text {
  font-size: 0.92rem;
  color: var(--soil-muted);
  line-height: 1.65;
  margin: 0;
}

/* ── TRADE CARDS — horizontal layout ── */
.trade-cards {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.trade-card {
  background: var(--soil-white);
  border: 2px solid #e0dbd1;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  display: grid;
  grid-template-columns: 64px 1fr;
  grid-template-rows: auto auto auto;
  gap: 0.3rem 1.5rem;
  align-items: start;
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}

.trade-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  bottom: 0;
  background: linear-gradient(180deg, rgba(196, 93, 58, 0.08), rgba(196, 93, 58, 0.02));
  transition: width 0.35s ease;
}

.trade-card--active {
  border-color: var(--soil-forest);
  color: inherit;
}

.trade-card--active:hover {
  border-color: var(--soil-terracotta);
  box-shadow: 0 12px 40px rgba(26, 46, 21, 0.08);
  transform: translateX(6px);
}

.trade-card--active:hover::before {
  width: 6px;
}

.trade-card__icon {
  color: var(--soil-sage);
  line-height: 1;
  font-size: 2.2rem;
  margin-bottom: 0;
  transition: transform 0.3s ease, color 0.3s ease;
  grid-row: 1 / span 3;
  grid-column: 1;
  align-self: center;
}

.trade-card__icon svg {
  width: 48px;
  height: 48px;
}

.trade-card--active:hover .trade-card__icon {
  transform: scale(1.15) rotate(-5deg);
  color: var(--soil-terracotta);
}

.trade-card__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  color: var(--soil-forest);
  margin: 0;
  grid-row: 1;
  grid-column: 2;
}

.trade-card__desc {
  font-size: 0.92rem;
  color: var(--soil-muted);
  line-height: 1.6;
  margin: 0;
  grid-row: 2;
  grid-column: 2;
}

.trade-card__link {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--soil-terracotta);
  margin-top: 0.25rem;
  transition: color 0.2s;
  grid-row: 3;
  grid-column: 2;
  font-family: var(--font-ui);
}

.trade-card--active:hover .trade-card__link {
  color: var(--soil-forest);
}

/* ── FEATURE IMAGE SECTION ── */
.hp-video-section {
  background: var(--soil-forest);
  padding: 0;
  line-height: 0;
}

.hp-video-section--alt {
  background: linear-gradient(135deg, var(--soil-cream) 0%, var(--soil-sand) 100%);
  padding: 4rem 1.5rem;
  line-height: normal;
}

.hp-video-section__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.hp-video-section__inner--split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hp-video-block .hp-video {
  border-radius: 16px;
  max-height: 380px;
  box-shadow: 0 20px 60px rgba(26, 46, 21, 0.2);
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.hp-video-block:hover .hp-video {
  transform: scale(1.02);
  box-shadow: 0 25px 70px rgba(26, 46, 21, 0.25);
}

.hp-video-split__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--soil-forest);
  margin: 0 0 1rem;
  line-height: 1.1;
  letter-spacing: 0.5px;
}

.hp-video-split__body {
  font-size: 1rem;
  color: var(--soil-muted);
  line-height: 1.75;
  margin: 0 0 1.5rem;
}

/* ── WHY LOAD TRAINING UK — FEATURE ── */
.hp-feature {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.hp-feature__label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--soil-terracotta);
  margin-bottom: 1rem;
  padding: 4px 12px;
  background: rgba(196, 93, 58, 0.1);
  border-radius: 20px;
  font-family: var(--font-ui);
}

.hp-feature__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--soil-forest);
  line-height: 1.1;
  margin: 0 0 1.25rem;
  letter-spacing: 0.5px;
}

.hp-feature__text p {
  font-size: 1rem;
  color: var(--soil-muted);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.hp-feature__list {
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 2rem;
}

.hp-feature__list li {
  padding: 0.5rem 0 0.5rem 1.8rem;
  position: relative;
  font-size: 0.95rem;
  color: var(--soil-charcoal);
}

.hp-feature__list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--soil-terracotta);
  font-weight: 700;
  font-size: 1.1rem;
}

.hp-feature__cta {
  display: inline-block;
  font-weight: 700;
  color: var(--soil-forest);
  text-decoration: none;
  font-size: 0.95rem;
  border-bottom: 3px solid var(--soil-terracotta);
  padding-bottom: 3px;
  transition: all 0.25s ease;
  font-family: var(--font-ui);
}

.hp-feature__cta:hover {
  color: var(--soil-sage);
  border-color: var(--soil-sage);
}

/* Stat cards in feature aside — horizontal row below text */
.hp-feature__aside {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.hp-stat-card {
  background: var(--soil-white);
  border-left: 5px solid var(--soil-terracotta);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(26, 46, 21, 0.05);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hp-stat-card:hover {
  transform: translateX(5px);
  box-shadow: 0 8px 30px rgba(26, 46, 21, 0.1);
}

.hp-stat-card__num {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 400;
  color: var(--soil-forest);
  line-height: 1;
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
}

.hp-stat-card__label {
  font-size: 0.9rem;
  color: var(--soil-muted);
  line-height: 1.5;
  font-weight: 500;
}

.hp-stat-card__source {
  font-size: 0.75rem;
  color: #999;
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-ui);
}

/* ── CTA PANEL ── */
.hp-hire-panel {
  background: linear-gradient(135deg, var(--soil-forest) 0%, var(--soil-forest-dark) 50%, var(--soil-sage) 100%);
  padding: 5rem 1.5rem;
  position: relative;
  overflow: hidden;
}

.hp-hire-panel::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(196, 93, 58, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hp-hire-panel__inner {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hp-hire-panel__title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 400;
  color: var(--soil-white);
  margin: 0 0 0.5rem;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.hp-hire-panel__sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  margin: 0 0 2rem;
}

.hp-hire-panel__list {
  list-style: none;
  padding: 0;
  margin: 0 0 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.hp-hire-panel__list li {
  padding-left: 2rem;
  position: relative;
  font-size: 1rem;
  color: rgba(255,255,255,0.88);
  line-height: 1.6;
}

.hp-hire-panel__list li::before {
  content: '✦';
  position: absolute;
  left: 0;
  color: var(--soil-terracotta);
  font-weight: 700;
  font-size: 1.1rem;
}

.hp-hire-panel__cta {
  display: inline-block;
  background: var(--soil-terracotta);
  color: var(--soil-white);
  text-decoration: none;
  font-weight: 800;
  font-size: 1rem;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  box-shadow: 0 4px 20px rgba(196, 93, 58, 0.3);
  font-family: var(--font-ui);
}

.hp-hire-panel__cta:hover {
  background: var(--soil-terracotta-hover);
  transform: translateY(-3px);
  box-shadow: 0 10px 35px rgba(196, 93, 58, 0.45);
}

/* ── MAIN HEADING ── */
.main__heading {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 400;
  letter-spacing: 0.5px;
  margin: 2rem 0 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 4px solid var(--soil-terracotta);
  color: var(--soil-forest);
}

/* ── ARTICLE THUMBNAILS ── */
.post__thumbnail img {
  border-radius: 12px;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.post__thumbnail:hover img {
  transform: scale(1.02);
}

/* ── SIDEBAR ── */
.widget__title {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  letter-spacing: 0.5px;
  border-bottom-color: var(--soil-terracotta) !important;
  color: var(--soil-forest) !important;
}

/* ── INLINE CTAs ── */
.btn, a.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--soil-terracotta), #b8542e);
  color: var(--soil-white);
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(196, 93, 58, 0.25);
  font-family: var(--font-ui);
}

.btn:hover, a.btn:hover {
  background: linear-gradient(135deg, var(--soil-terracotta-hover), #c86038);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 93, 58, 0.4);
  color: var(--soil-white);
}

/* ── AMAZON AFFILIATE CTA BUTTON ── */
.amazon-cta {
  display: inline-block;
  margin: 0.5rem 0 0;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(135deg, var(--soil-terracotta), #b8542e);
  color: var(--soil-white) !important;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 700;
  font-family: var(--font-ui);
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(196, 93, 58, 0.25);
}

.amazon-cta:hover {
  background: linear-gradient(135deg, var(--soil-terracotta-hover), #c86038);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(196, 93, 58, 0.4);
  color: var(--soil-white) !important;
}

/* ── BLOG LIST "READ MORE" BUTTON ── */
.list__footer {
  margin-top: 0.75rem;
}

.list__footer-readmore.btn {
  float: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  background: transparent;
  color: var(--soil-terracotta);
  border: 2px solid var(--soil-terracotta);
  border-radius: 50px;
  box-shadow: none;
  text-transform: uppercase;
}

.list__footer-readmore.btn::after {
  content: '→';
  transition: transform 0.2s ease;
}

.list__footer-readmore.btn:hover {
  background: var(--soil-terracotta);
  color: var(--soil-white);
  transform: translateX(3px);
  box-shadow: 0 4px 15px rgba(196, 93, 58, 0.25);
}

.list__footer-readmore.btn:hover::after {
  transform: translateX(3px);
}

/* ── TAGS ── */
.tags__item {
  background: transparent;
  margin: 0 6px 6px 0;
}

.tags__link.btn {
  display: inline-block;
  padding: 10px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--soil-white);
  background: var(--soil-terracotta);
  border: none;
  border-radius: 50px;
  box-shadow: 0 2px 8px rgba(196, 93, 58, 0.2);
  transition: all 0.2s ease;
  float: none;
}

.tags__link.btn:hover {
  background: var(--soil-terracotta-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(196, 93, 58, 0.35);
  color: var(--soil-white);
}

/* ── FOOTER ── */
.footer {
  background: linear-gradient(180deg, var(--soil-forest) 0%, var(--soil-forest-dark) 100%);
  border-top: 3px solid var(--soil-terracotta);
  color: rgba(255,255,255,0.6);
  padding: 1.5rem 1.5rem;
}

.footer__container {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.footer a {
  color: rgba(255,255,255,0.55);
  transition: color 0.2s;
  text-decoration: none;
}

.footer a:hover {
  color: var(--soil-sage);
}

/* ── RESPONSIVE ── */
@media (max-width: 768px) {
  .hp-steps {
    grid-template-columns: 1fr;
  }
  
  .hp-feature__aside {
    grid-template-columns: 1fr;
  }
  
  .trade-card {
    grid-template-columns: 48px 1fr;
    padding: 1.25rem;
  }
  
  .hero__title {
    font-size: clamp(2.2rem, 10vw, 3.5rem);
  }
}

/* Homepage has no sidebar (params.sidebar.home = false) — let .primary take the full container width */
.primary:only-child {
  flex: 1 0 100%;
}

/* =============================================================================
   AMAZON MARKETING TACTICS — CSS additions
   Portable source of truth. Tweaks go in this file, then copy onto the site
   being rolled — don't copy an older site's custom.css forward.
   Append this whole file to the end of a site's static/css/custom.css.

   Assumes the site's base theme defines the standard --soil-* variable set
   (--soil-cream, --soil-sand, --soil-terracotta, --soil-forest, --soil-white,
   --soil-muted, --font-ui) in its :root block — true for every site built on
   the shared base theme. If a site uses different variable names, find/replace
   the --soil-* names below to match that site's own :root block first.
   ============================================================================= */

/* ── RATING BADGES ──
   Real, verified star rating + review count (see
   patch-notes/check-amazon-availability-rating-scrape.md for how the data
   gets into product-link-plan.json). A trust signal shown to buyers, not
   marketing copy — only ever goes next to a product name that's already a UI
   element (table header, Quick Pick line), never stitched into narrative
   prose. Apply retroactively to already-published articles with
   scripts/refresh-rating-badges.js. */
.rating-badge {
  font-size: 0.75em;
  font-weight: 600;
  color: var(--soil-muted);
  white-space: nowrap;
}

/* ── QUICK PICK VERDICT BOX ──
   The <div class="quick-picks">...</div> box P3 writes right after the intro
   on comparison/"which one" articles. Plain product names in prose, no
   links — apply-amazon-links.js links the product name and appends a CTA
   button inline before </li> the same way it treats ordinary prose. */
.quick-picks {
  background: var(--soil-cream);
  border: 1px solid var(--soil-sand);
  border-left: 4px solid var(--soil-terracotta);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.quick-picks p:first-child {
  margin: 0 0 0.6rem;
  font-family: var(--font-ui);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--soil-terracotta);
}

.quick-picks ul {
  margin: 0;
  padding-left: 1.1rem;
}

.quick-picks li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.35rem;
  margin-bottom: 0.55rem;
}

.quick-picks li:last-child {
  margin-bottom: 0;
}

.quick-picks strong {
  color: var(--soil-forest);
}

/* Name stays left; CTA sits on the right as its own column. Works at every
   width: when the row is too narrow the button wraps onto the next line and
   margin-left: auto keeps it right-aligned instead of stranded mid-sentence. */
.quick-picks li .amazon-cta {
  margin: 0 0 0 auto;
  flex: 0 0 auto;
}

/* Duplicate "(paid link)" after the button — the product name already has one. */
.quick-picks li .amazon-cta + em {
  display: none;
}

@media (max-width: 600px) {
  .quick-picks li .amazon-cta {
    min-height: 44px;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
    margin-top: 0.25rem;
  }
}

/* ── STICKY PICK BAR ──
   Pairs with js/sticky-pick-bar.js. Mobile-first on purpose: most traffic is
   mobile, and the bottom third of the screen is the thumb zone. Full-width
   bar on phones; a smaller floating card on desktop where a full-width bar
   would look like a mistake. */
.sticky-pick-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--soil-forest);
  padding: 0.6rem 0.6rem calc(0.6rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.2);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}

.sticky-pick-bar.is-visible {
  transform: translateY(0);
}

.sticky-pick-bar__inner {
  display: flex;
  flex: 1;
  gap: 0.5rem;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.sticky-pick-bar__inner::-webkit-scrollbar {
  display: none;
}

/* Two-line button: product name + "Price Checker" sub-label, so the reader
   knows what they're clicking before they tap it. */
.sticky-pick-bar__btn.amazon-cta {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px; /* Apple/Google minimum comfortable tap target */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.1rem;
  margin: 0;
  padding: 0.4rem 0.85rem;
  border-radius: 8px;
  box-shadow: none;
}

/* Product name may wrap two lines so a four-item 2×2 (or a long three-item
   name) stays readable instead of ellipsising mid-word. Full name is also
   on the button's title attribute for hover. */
.sticky-pick-bar__btn-name {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.15;
}

.sticky-pick-bar__btn-sub {
  display: block;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  opacity: 0.85;
}

.sticky-pick-bar__close {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--soil-white);
  font-size: 1.4rem;
  line-height: 1;
  opacity: 0.65;
  cursor: pointer;
}

.sticky-pick-bar__close:hover,
.sticky-pick-bar__close:focus-visible {
  opacity: 1;
}

/* Four-item pick boxes: 2×2 grid instead of dropping the 4th product or
   crushing four buttons into one row. Three-item bars keep the original row. */
.sticky-pick-bar--quad .sticky-pick-bar__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow-x: visible;
}

.sticky-pick-bar--quad {
  align-items: flex-start;
}

.sticky-pick-bar--quad .sticky-pick-bar__close {
  margin-top: 0.2rem;
}

.sticky-pick-bar--quad .sticky-pick-bar__btn.amazon-cta {
  flex: unset;
  width: auto;
  padding: 0.35rem 0.55rem;
}

@media (min-width: 768px) {
  .sticky-pick-bar {
    left: auto;
    right: 20px;
    bottom: 20px;
    max-width: 380px;
    border-radius: 12px;
  }

  .sticky-pick-bar--quad {
    max-width: 520px;
  }
}

/* ── RESPONSIVE TABLES ──
   Pairs with js/responsive-tables.js. Below 600px, a comparison table with
   3+ columns forces horizontal scroll and the columns stop being readable.
   responsive-tables.js labels every cell with its column header; this turns
   each row into a labelled stacked card instead. Only tables the script
   actually labelled (.responsive-table) are touched, and only below the
   breakpoint — desktop keeps Hugo's plain table exactly as rendered. */

/* Coloured header row at every width — same cream-on-accent treatment the
   mobile card view uses for its own "heading" cell, so the two layouts read
   as one consistent design rather than a plain desktop table that suddenly
   grows colour on mobile. */
table.responsive-table thead th {
  background: var(--soil-cream);
  border-bottom: 2px solid var(--soil-terracotta);
}

/* The label carries the column header (and its link) into every cell so the
   mobile card view below doesn't lose it — but it's redundant with the
   visible header on a normal-width table, so it's hidden until the
   breakpoint below switches the table into cards. */
.responsive-table__label {
  display: none;
}

@media (max-width: 600px) {
  table.responsive-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
  }

  table.responsive-table,
  table.responsive-table tbody,
  table.responsive-table tr,
  table.responsive-table td {
    display: block;
    width: 100%;
  }

  table.responsive-table {
    border-top: none;
    border-left: none;
  }

  table.responsive-table tr {
    margin-bottom: 1rem;
    border: 1px solid var(--soil-sand);
    border-radius: 8px;
    overflow: hidden;
  }

  table.responsive-table tr:last-child {
    margin-bottom: 0;
  }

  /* Stacked, not side-by-side: a side-by-side label/value row overflows the
     screen the moment a value is longer than a couple of words (e.g. "ePTFE
     membranes (Gore-Tex)"), pushing text off the right edge instead of
     wrapping. Label on its own line, value below, wraps naturally at any
     length. (Fixed 2026-09-06 — the first version of this rule used
     display:flex + justify-content:space-between, which looked fine in a
     quick check but overflows on any value longer than ~15 characters. Test
     this specifically against a long cell value, not just a short one like a
     price, before considering a rollout to a new site done.) */
  table.responsive-table td {
    display: block;
    text-align: left;
    border: none;
    border-bottom: 1px solid var(--soil-sand);
    padding: 0.6rem 0.85rem;
  }

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

  table.responsive-table td .responsive-table__label {
    display: block;
    font-weight: 700;
    font-family: var(--font-ui);
    font-size: 0.8rem;
    color: var(--soil-muted);
    margin-bottom: 0.25rem;
  }

  /* A label on a linked column header (a product name) should look and act
     like a link, not blend into the muted grey text around it. */
  table.responsive-table td .responsive-table__label a {
    color: var(--soil-terracotta);
    text-decoration: underline;
  }

  /* The site's comparison tables put the row's own identity in the first
     column — either a feature name ("Optimal for") with products as the
     other columns, or a product name with features as the other columns.
     Either way that first cell reads as the card's own heading, not a value
     needing a label next to it — bold it and skip the label. */
  table.responsive-table td:first-child {
    background: var(--soil-cream);
    text-align: left;
    font-weight: 700;
  }

  table.responsive-table td:first-child .responsive-table__label {
    display: none;
  }
}
