/* =============================================================================
   What Are Peptides — main.css  (theme v1.0.0)
   Single source of theme styling. Tokens come from theme.json presets;
   shared widths/gutters are mirrored here as custom properties so every
   region references ONE system. No !important except where documented.
   See docs/STYLE-MAP.md for region → selector map.
   ========================================================================== */

:root {
  /* Brand palette (mirrors theme.json) */
  --wap-navy: #0E2A47;
  --wap-slate: #2B3A57;
  --wap-emerald: #34D399;
  --wap-teal: #1FA89B;
  --wap-steel: #657694;
  --wap-mist: #BFC7D9;
  --wap-frost: #F2F5FA;
  --wap-border: #E3E9F0;
  --wap-muted: #94A3B8;
  --wap-white: #FFFFFF;

  /* ONE shared width system (Section 3 of brief) ---------------------------
     content + featured image share --wap-content so the body column and the
     featured image align by default. section = marketing chrome width. */
  --wap-content: 720px;   /* article body + featured image (aligned)        */
  --wap-wide: 1040px;     /* .alignwide                                     */
  --wap-section: 1200px;  /* nav / hero / home sections                     */
  --wap-gutter: 24px;     /* one gutter, used everywhere (trims on mobile)  */

  /* Signature shadow (the single approved floating shadow) */
  --wap-shadow: rgba(24,31,56,0.25) 0px 25px 45px -45px;
  --wap-shadow-soft: rgba(24,31,56,0.25) 0px 25px 45px -45px, rgba(24,31,56,0.10) 0px 12px 28px -16px;

  --wap-font-body: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --wap-font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
}

/* --- Base ------------------------------------------------------------------ */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--wap-font-body);
  color: var(--wap-navy);
  background: var(--wap-white);
  -webkit-font-smoothing: antialiased;
  /* Mobile body floor ≥16px (Section 2): clamp floor is 1rem. */
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  line-height: 1.7;
  overflow-x: hidden; /* belt-and-suspenders against horizontal page scroll */
}
*, *::before, *::after { box-sizing: border-box; }
::selection { background: var(--wap-emerald); color: var(--wap-navy); }
img, video, svg { max-width: 100%; }

/* Shared inner-width helper for full-bleed sections */
.wap-section, .wap-trust__inner, .wap-why__inner, .wap-testi__inner,
.wap-nav__inner, .wap-hero__inner, .wap-footer__cols, .wap-footer__legalwrap {
  max-width: var(--wap-section);
  margin-inline: auto;
  padding-inline: var(--wap-gutter);
}

.wap-eyebrow {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.125em;
  text-transform: uppercase; color: var(--wap-steel);
}

/* --- Buttons (shared) ------------------------------------------------------ */
.wap-btn {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--wap-font-body); font-size: 1rem; font-weight: 600;
  border-radius: 40px; cursor: pointer; text-decoration: none; border: none;
  line-height: 1; transition: transform .2s ease, background .2s ease;
}
.wap-btn--primary { background: var(--wap-emerald); color: var(--wap-navy); padding: 16px 30px; }
.wap-btn--primary:hover { transform: translateY(-1px); }
.wap-btn--ghost { background: none; color: var(--wap-teal); padding: 8px; }
.wap-btn--outline {
  background: none; color: var(--wap-navy); border: 1px solid var(--wap-mist);
  padding: 13px 0; width: 100%; justify-content: center;
}
.wap-arrowlink {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.9375rem; font-weight: 600; color: var(--wap-teal); text-decoration: none;
}

/* --- Announcement + Nav ---------------------------------------------------- */
.wap-announce {
  background: var(--wap-emerald); color: var(--wap-navy);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 10px var(--wap-gutter); font-size: 0.8125rem; font-weight: 600; text-align: center;
}
.wap-announce a { color: var(--wap-navy); text-decoration: underline; text-underline-offset: 2px; }
.wap-nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92); backdrop-filter: saturate(180%) blur(8px);
}
.wap-nav__inner { display: flex; align-items: center; gap: 32px; padding-block: 16px; }
.wap-nav__brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.wap-nav__word { font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.01em; }
.wap-nav__word--navy { color: var(--wap-navy); }
.wap-nav__word--teal { color: var(--wap-teal); }
.wap-nav__links { display: flex; align-items: center; gap: 26px; font-size: 0.9375rem; font-weight: 500; }
.wap-nav__links a { color: var(--wap-navy); text-decoration: none; }
.wap-nav__util { margin-left: auto; display: flex; align-items: center; gap: 20px; font-size: 0.9375rem; font-weight: 500; }
.wap-nav__util a { color: var(--wap-navy); text-decoration: none; }
.wap-nav__checkbox, .wap-nav__burger { display: none; }

/* =============================================================================
   === HERO START ===
   THE HERO IS SACRED (Section 6). This contiguous block is the ONLY place
   hero styling lives. md5-fingerprint between these banners. Do not interleave
   unrelated rules here. Mirrors the approved design 1:1.
   ========================================================================== */
.wap-hero__inner { padding-block: 60px 84px; }
.wap-hero__inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center;
}
.wap-hero__title {
  font-family: var(--wap-font-display); font-size: clamp(2.5rem, 1.8rem + 3.5vw, 3.875rem);
  line-height: 1.06; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 24px; color: var(--wap-navy);
}
.wap-hero__title em { color: var(--wap-emerald); font-style: italic; }
.wap-hero .wap-eyebrow { margin-bottom: 22px; }
.wap-hero__lede { font-size: 1.125rem; line-height: 1.6; color: var(--wap-steel); margin: 0 0 34px; max-width: 480px; }
.wap-hero__actions { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.wap-hero__visual {
  position: relative; width: 100%; aspect-ratio: 4/5; border-radius: 24px; overflow: hidden;
  background: var(--wap-navy);
  box-shadow: rgba(24,31,56,0.25) 0px 25px 45px -45px, rgba(24,31,56,0.10) 0px 12px 30px -16px;
}
.wap-hero__poster, .wap-hero__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.wap-hero__poster { display: none; } /* shown only under reduced-motion */
.wap-hero__cards {
  position: absolute; inset: 0; z-index: 1;
  display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 30px;
}
.wap-hero__card--stat { background: var(--wap-white); border-radius: 18px; box-shadow: rgba(24,31,56,0.20) 0px 16px 36px -14px; padding: 22px 24px; }
.wap-hero__cardtop { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.wap-hero__label { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wap-steel); }
.wap-hero__pill { flex: none; display: inline-flex; align-items: center; gap: 4px; font-size: 0.6875rem; font-weight: 600; color: var(--wap-navy); background: var(--wap-frost); padding: 5px 10px; border-radius: 40px; }
.wap-hero__statrow { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.wap-hero__bignum { font-family: var(--wap-font-display); font-size: 2.875rem; font-weight: 600; line-height: 1; color: var(--wap-emerald); letter-spacing: -0.02em; }
.wap-hero__sub { font-size: 0.9375rem; font-weight: 600; color: var(--wap-teal); }
.wap-hero__graph { display: block; margin-bottom: 12px; }
.wap-hero__graphline { stroke-dasharray: 300; stroke-dashoffset: 300; animation: wapHeroDraw 1.7s cubic-bezier(.4,0,.2,1) .35s forwards; }
.wap-hero__caption { font-size: 0.656rem; line-height: 1.5; color: var(--wap-muted); }
.wap-hero__card--glass { background: rgba(14,42,71,0.55); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.18); border-radius: 18px; padding: 20px 22px; }
.wap-hero__glasshead { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.wap-hero__check { width: 24px; height: 24px; border-radius: 50%; background: var(--wap-emerald); display: flex; align-items: center; justify-content: center; flex: none; animation: wapHeroPulse 2.4s ease-in-out infinite; }
.wap-hero__glasslabel { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wap-white); }
.wap-hero__chips { display: flex; gap: 8px; margin-bottom: 14px; }
.wap-hero__chip { font-size: 0.8125rem; font-weight: 600; background: rgba(52,211,153,0.18); color: var(--wap-emerald); padding: 7px 13px; border-radius: 8px; }
.wap-hero__reviewed { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: #cdd8e6; }

@keyframes wapHeroDraw { to { stroke-dashoffset: 0; } }
@keyframes wapHeroPulse { 0%,100% { box-shadow: 0 0 0 0 rgba(52,211,153,0.55); } 50% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } }

/* Trust strip is part of the hero contract (approved together). */
.wap-trust { border-top: 1px solid var(--wap-frost); border-bottom: 1px solid var(--wap-frost); background: var(--wap-white); }
.wap-trust__inner { padding-block: 40px; text-align: center; }
.wap-trust .wap-eyebrow { margin-bottom: 26px; }
.wap-trust__row { display: flex; align-items: center; justify-content: center; gap: 44px; flex-wrap: wrap; }
.wap-trust__item { display: flex; align-items: center; gap: 10px; color: var(--wap-slate); font-size: 0.9375rem; font-weight: 600; }

@media (max-width: 880px) {
  .wap-hero__inner { grid-template-columns: 1fr; gap: 32px; padding-block: 40px 56px; }
  .wap-hero__visual { aspect-ratio: 4/3; }
  .wap-trust__row { gap: 20px 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .wap-hero__video { display: none; }            /* pause video, show poster still */
  .wap-hero__poster { display: block; }
  .wap-hero__graphline { animation: none; stroke-dashoffset: 0; }
  .wap-hero__check { animation: none; }
}
/* === HERO END === */

/* =============================================================================
   HOME SECTIONS (below hero) — marketing body
   ========================================================================== */
.wap-section { padding-block: clamp(56px, 4vw + 40px, 96px); }
.wap-section__head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.wap-section__title { font-family: var(--wap-font-display); font-size: clamp(2rem, 1.6rem + 2vw, 2.625rem); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 16px; color: var(--wap-navy); }
.wap-section__title--left { text-align: left; }
.wap-section__title em { color: var(--wap-emerald); font-style: italic; }
.wap-section__intro { font-size: 1.125rem; line-height: 1.55; color: var(--wap-steel); margin: 0; }

.wap-grid { display: grid; gap: 24px; }
.wap-grid--3 { grid-template-columns: repeat(3, 1fr); }

.wap-step { background: var(--wap-frost); border-radius: 20px; padding: 32px; }
.wap-step__title { font-family: var(--wap-font-display); font-size: 1.5rem; font-weight: 600; margin: 12px 0; letter-spacing: -0.01em; color: var(--wap-navy); }
.wap-step__body { font-size: 0.9375rem; line-height: 1.6; color: var(--wap-steel); margin: 0 0 18px; }
.wap-step .wap-arrowlink { margin-bottom: 24px; }
.wap-step__art { position: relative; background: var(--wap-white); border-radius: 14px; height: 140px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wap-step__badge { position: absolute; bottom: -14px; left: -14px; width: 44px; height: 44px; border-radius: 13px; background: var(--wap-emerald); display: flex; align-items: center; justify-content: center; box-shadow: rgba(24,31,56,0.25) 0px 12px 24px -16px; }

.wap-why { background: var(--wap-white); }
.wap-why__inner { padding-block: 32px 96px; display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.wap-why .wap-eyebrow { margin-bottom: 18px; }
.wap-why__lede { font-size: 1.125rem; line-height: 1.6; color: var(--wap-steel); margin: 0 0 28px; }
.wap-why__list { display: flex; flex-direction: column; gap: 16px; }
.wap-why__item { display: flex; align-items: flex-start; gap: 12px; font-size: 1rem; line-height: 1.5; color: var(--wap-navy); font-weight: 500; }
.wap-why__check { width: 24px; height: 24px; border-radius: 7px; background: var(--wap-emerald); display: flex; align-items: center; justify-content: center; flex: none; margin-top: 1px; }
.wap-why__art { position: relative; background: var(--wap-frost); border-radius: 20px; height: 380px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.wap-why__badge { position: absolute; bottom: -16px; right: -16px; width: 52px; height: 52px; border-radius: 15px; background: var(--wap-emerald); display: flex; align-items: center; justify-content: center; box-shadow: rgba(24,31,56,0.25) 0px 12px 24px -16px; }

.wap-filters { display: flex; align-items: center; justify-content: center; gap: 12px; margin-bottom: 40px; flex-wrap: wrap; }
.wap-filter { display: flex; align-items: center; gap: 8px; background: var(--wap-white); border: 1px solid var(--wap-mist); border-radius: 40px; padding: 11px 18px; font-size: 0.875rem; font-weight: 600; color: var(--wap-navy); cursor: pointer; }
.wap-filter--active { background: var(--wap-emerald); border-color: var(--wap-emerald); }

.wap-prov { background: var(--wap-white); border: 1px solid var(--wap-frost); border-radius: 20px; padding: 28px; box-shadow: var(--wap-shadow); position: relative; }
.wap-prov--featured { border: 1.5px solid var(--wap-emerald); }
.wap-prov__flag { position: absolute; top: 20px; right: 20px; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em; color: var(--wap-navy); background: var(--wap-emerald); padding: 5px 10px; border-radius: 40px; }
.wap-prov__name { font-family: var(--wap-font-display); font-size: 1.375rem; font-weight: 600; margin: 0 0 6px; color: var(--wap-navy); letter-spacing: -0.01em; }
.wap-prov__spec { font-size: 0.875rem; font-weight: 600; color: var(--wap-teal); margin-bottom: 14px; }
.wap-prov__meta { display: flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--wap-steel); margin-bottom: 14px; }
.wap-prov__rating { display: flex; align-items: center; gap: 8px; margin-bottom: 22px; }
.wap-prov__count { font-size: 0.8125rem; color: var(--wap-steel); font-weight: 500; }
/* star rows rendered from data-stars (avoids 5 inline SVGs per card) */
.wap-stars { letter-spacing: 2px; color: var(--wap-emerald); font-size: 0.9375rem; }
.wap-stars::before { content: "★★★★★"; }
.wap-stars[data-stars="4"]::before { content: "★★★★☆"; }
.wap-stars--light { color: var(--wap-emerald); }
.wap-disclaimer { font-size: 0.8125rem; line-height: 1.5; color: #737a86; text-align: center; max-width: var(--wap-content); margin: 0 auto; }

.wap-testi { background: var(--wap-frost); }
.wap-testi__inner { padding-block: 88px; }
.wap-quote { background: var(--wap-white); border-radius: 20px; padding: 32px; box-shadow: var(--wap-shadow); }
.wap-quote__tag { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wap-teal); margin-bottom: 16px; }
.wap-quote__text { font-family: var(--wap-font-display); font-size: 1.125rem; line-height: 1.5; color: var(--wap-navy); margin: 0 0 22px; font-weight: 500; }
.wap-quote__by { font-size: 0.875rem; font-weight: 600; color: var(--wap-steel); }
.wap-metrics { display: flex; align-items: center; justify-content: center; gap: 40px; flex-wrap: wrap; margin-top: 48px; }
.wap-metric { text-align: center; }
.wap-metric__num { font-family: var(--wap-font-display); font-size: 2.125rem; font-weight: 600; color: var(--wap-navy); line-height: 1; }
.wap-metric__label { font-size: 0.875rem; color: var(--wap-steel); font-weight: 500; margin-top: 6px; }
.wap-metric__div { width: 1px; height: 40px; background: var(--wap-mist); }

/* --- Dark CTA band (home + reusable) -------------------------------------- */
.wap-cta { background: var(--wap-navy); position: relative; overflow: hidden; }
.wap-cta__inner { max-width: 760px; margin: 0 auto; padding: clamp(72px,6vw,100px) var(--wap-gutter); text-align: center; position: relative; z-index: 1; }
.wap-cta__glow { position: absolute; top: -60px; right: 8%; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(52,211,153,0.22), transparent 70%); }
.wap-cta__square { position: absolute; bottom: -40px; left: 4%; width: 90px; height: 90px; border-radius: 24px; background: var(--wap-emerald); opacity: 0.16; transform: rotate(18deg); }
.wap-cta__tri { position: absolute; top: 48px; left: 12%; opacity: 0.5; }
.wap-cta__title { font-family: var(--wap-font-display); font-size: clamp(2rem,1.5rem+2.2vw,2.875rem); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; color: var(--wap-white); margin: 0 0 18px; }
.wap-cta__title em { color: var(--wap-emerald); font-style: italic; }
.wap-cta__lede { font-size: 1.125rem; line-height: 1.6; color: #9fb3c8; margin: 0 0 36px; max-width: 540px; margin-inline: auto; }
.wap-cta__form { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 500px; margin: 0 auto 16px; }
.wap-cta__input { flex: 1; background: var(--wap-white); border: 1px solid var(--wap-mist); border-radius: 8px; padding: 15px 18px; font-family: inherit; font-size: 0.9375rem; color: var(--wap-navy); outline: none; }
.wap-cta__form .wap-btn--primary { border-radius: 8px; padding: 15px 24px; white-space: nowrap; }
.wap-cta__micro { font-size: 0.8125rem; color: var(--wap-steel); margin-bottom: 30px; }
.wap-cta__social { display: flex; align-items: center; justify-content: center; gap: 10px; color: #9fb3c8; font-size: 0.875rem; }

/* --- Footer ---------------------------------------------------------------- */
.wap-footer { background: var(--wap-navy); border-top: 1px solid rgba(255,255,255,0.08); }
.wap-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-block: 64px 40px; }
.wap-footer__brand { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.wap-footer__mark { width: 26px; height: 26px; border-radius: 7px; background: var(--wap-emerald); display: flex; align-items: center; justify-content: center; }
.wap-footer__word { font-size: 1.0625rem; font-weight: 700; color: var(--wap-white); }
.wap-footer__word--teal { color: var(--wap-emerald); }
.wap-footer__tagline { font-size: 0.875rem; line-height: 1.6; color: var(--wap-steel); margin: 0; max-width: 260px; }
.wap-footer__heading { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #9fb3c8; margin-bottom: 16px; }
.wap-footer__col { display: flex; flex-direction: column; gap: 11px; font-size: 0.9375rem; }
.wap-footer__col a { color: var(--wap-mist); text-decoration: none; }
.wap-footer__col a:hover { color: var(--wap-white); }
.wap-footer__legalwrap { padding-bottom: 40px; }
.wap-footer__legal { border-top: 1px solid rgba(255,255,255,0.08); padding-top: 24px; font-size: 0.8125rem; line-height: 1.6; color: var(--wap-steel); }

/* --- Mobile sticky CTA ----------------------------------------------------- */
.wap-mobcta { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60; background: var(--wap-white); border-top: 1px solid var(--wap-border); padding: 12px 16px; box-shadow: rgba(24,31,56,0.12) 0px -6px 24px -16px; }
.wap-mobcta .wap-btn--primary { width: 100%; justify-content: center; padding: 15px; }

/* =============================================================================
   EDITORIAL — single post / peptide page / archive
   Article body styled OFF the post-content wrapper so it applies to EVERY
   post uniformly (Trap 4). .wp-block-post-content is WP's class; .wap-prose is
   our hook on the same element.
   ========================================================================== */
.wap-single { padding-block: 48px 24px; }
.wap-single__head { max-width: var(--wap-content); margin-inline: auto; text-align: center; }
.wap-single__cat { display: inline-block; color: var(--wap-teal); margin-bottom: 18px; }
.wap-single__title { font-family: var(--wap-font-display); font-size: clamp(2.25rem,1.7rem+2.4vw,3rem); line-height: 1.1; font-weight: 600; letter-spacing: -0.02em; color: var(--wap-navy); margin: 0 0 20px; }
.wap-single__meta { justify-content: center; align-items: center; gap: 14px; color: var(--wap-steel); font-size: 0.875rem; margin-bottom: 30px; }
.wap-single__meta .wp-block-post-author__name { font-weight: 600; color: var(--wap-navy); }

/* Featured image shares the content width so it aligns with the body (Section 3) */
.wap-single__featured { max-width: var(--wap-content); margin: 0 auto 16px; }
.wap-single__featured img { width: 100%; border-radius: 20px; display: block; }

/* Article prose ------------------------------------------------------------- */
.wap-prose { font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.78; color: var(--wap-slate); }
.wap-prose > * { margin-block: 0 24px; }
.wap-prose h2 { font-family: var(--wap-font-display); font-size: clamp(1.6rem,1.4rem+1vw,2rem); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; color: var(--wap-navy); margin: 44px 0 16px; }
.wap-prose h3 { font-family: var(--wap-font-body); font-size: clamp(1.25rem,1.15rem+0.5vw,1.5rem); font-weight: 700; color: var(--wap-navy); margin: 32px 0 12px; }
.wap-prose p { margin: 0 0 24px; }
.wap-prose strong { color: var(--wap-navy); }

/* Body links: teal + underline (Section 4 — accessibility/E-E-A-T). Editorial
   offset so it doesn't crowd the text. Scoped to prose so nav/buttons/cards
   keep the approved no-underline design. */
.wap-prose a {
  color: var(--wap-teal); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.wap-prose a:hover { text-decoration-thickness: 2px; }

.wap-prose ul, .wap-prose ol { margin: 0 0 24px; padding-left: 1.4em; }
.wap-prose li { margin-bottom: 10px; }
.wap-prose blockquote {
  margin: 36px 0; padding: 8px 0 8px 28px; border-left: 3px solid var(--wap-emerald);
  font-family: var(--wap-font-display); font-size: 1.4rem; line-height: 1.45; font-style: italic; color: var(--wap-navy);
}
.wap-prose blockquote p { margin: 0; }

/* In-body images: cap floated width so a large image can't dominate the column
   (Section 4 — RHO101's 827px float). */
.wap-prose .wp-block-image img { border-radius: 14px; }
.wap-prose .alignleft  { float: left;  margin: 6px 28px 18px 0; max-width: 383px; }
.wap-prose .alignright { float: right; margin: 6px 0 18px 28px; max-width: 383px; }
.wap-prose .aligncenter { margin-inline: auto; }
.wap-prose figure.wp-block-image figcaption { font-size: 0.8125rem; color: var(--wap-muted); text-align: center; margin-top: 10px; }

/* --- TABLES (core/table) --------------------------------------------------
   Desktop: editorial table. Mobile: label-above-value stacking < 960px,
   driven by data-label attrs written by wap-table-stack.js (single posts).
   Irregular tables get .wap-table--scroll (soft-fade contained scroll). */
.wap-prose figure.wp-block-table { margin: 32px 0; max-width: 100%; }
.wap-prose figure.wp-block-table table {
  width: 100%; border-collapse: collapse; font-size: 0.9375rem;
  border: 1px solid var(--wap-border); border-radius: 14px; overflow: hidden;
}
.wap-prose figure.wp-block-table th,
.wap-prose figure.wp-block-table td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--wap-border); }
.wap-prose figure.wp-block-table thead th { background: var(--wap-navy); color: var(--wap-white); font-weight: 600; }
.wap-prose figure.wp-block-table tbody tr:nth-child(even) { background: var(--wap-frost); }
.wap-prose figure.wp-block-table tbody tr:last-child td { border-bottom: none; }

@media (max-width: 960px) {
  /* Label-above-value stacking. Applied to safe tables (the JS adds
     .wap-table--stack + data-label after verifying single header row,
     uniform columns, no merged cells). */
  .wap-prose figure.wp-block-table.wap-table--stack table,
  .wap-prose figure.wp-block-table.wap-table--stack thead,
  .wap-prose figure.wp-block-table.wap-table--stack tbody,
  .wap-prose figure.wp-block-table.wap-table--stack tr,
  .wap-prose figure.wp-block-table.wap-table--stack th,
  .wap-prose figure.wp-block-table.wap-table--stack td { display: block; width: 100%; }
  .wap-prose figure.wp-block-table.wap-table--stack thead { position: absolute; left: -9999px; } /* visually hide header row */
  .wap-prose figure.wp-block-table.wap-table--stack tr {
    border: 1px solid var(--wap-border); border-radius: 14px; margin-bottom: 14px; overflow: hidden; background: var(--wap-white);
  }
  .wap-prose figure.wp-block-table.wap-table--stack tbody tr:nth-child(even) { background: var(--wap-white); }
  .wap-prose figure.wp-block-table.wap-table--stack td {
    border-bottom: 1px solid var(--wap-border); padding: 12px 16px;
  }
  .wap-prose figure.wp-block-table.wap-table--stack td:last-child { border-bottom: none; }
  .wap-prose figure.wp-block-table.wap-table--stack td::before {
    content: attr(data-label); display: block;
    font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--wap-steel); margin-bottom: 4px;
  }
  /* Fallback for irregular tables: contained horizontal scroll + soft fade. */
  .wap-prose figure.wp-block-table.wap-table--scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; position: relative; border-radius: 14px;
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); }
  .wap-prose figure.wp-block-table.wap-table--scroll table { min-width: 640px; }
}

/* Author box insertion point (box itself added later via shortcode). */
.wap-authorbox { max-width: var(--wap-content); margin: 40px auto 0; }
.wap-authorbox:empty { display: none; }

.wap-single__nav { max-width: var(--wap-content); margin: 48px auto 0; display: flex; justify-content: space-between; gap: 16px; font-weight: 600; }
.wap-single__nav a { color: var(--wap-teal); text-decoration: none; }

/* --- Archive --------------------------------------------------------------- */
.wap-archive { padding-block: 56px; }
.wap-archive__head { text-align: center; max-width: var(--wap-content); margin: 0 auto 40px; }
.wap-archive__head .wap-eyebrow { margin-bottom: 14px; }
.wap-archive__title { font-family: var(--wap-font-display); font-size: clamp(2.5rem,1.9rem+2.6vw,3.25rem); line-height: 1.08; font-weight: 600; letter-spacing: -0.02em; color: var(--wap-navy); margin: 0; }
.wap-archive__desc { color: var(--wap-steel); font-size: 1.0625rem; margin-top: 14px; }
.wap-archive__query { max-width: var(--wap-section); margin-inline: auto; padding-inline: var(--wap-gutter); }
.wap-cardgrid { gap: 24px; }
.wap-postcard { background: var(--wap-white); border: 1px solid var(--wap-border); border-radius: 20px; overflow: hidden; box-shadow: var(--wap-shadow); transition: transform .28s ease, box-shadow .28s ease; }
.wap-postcard:hover { transform: translateY(-4px); box-shadow: var(--wap-shadow-soft); }
.wap-postcard__img img { width: 100%; aspect-ratio: 16/10; object-fit: cover; display: block; }
.wap-postcard__body { padding: 24px; }
.wap-postcard__cat { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--wap-teal); margin-bottom: 10px; }
.wap-postcard__cat a { color: var(--wap-teal); text-decoration: none; }
.wap-postcard__title { font-family: var(--wap-font-display); font-size: 1.3125rem; line-height: 1.25; font-weight: 600; color: var(--wap-navy); margin: 0 0 10px; }
.wap-postcard__title a { color: var(--wap-navy); text-decoration: none; }
.wap-postcard__excerpt { font-size: 0.9375rem; line-height: 1.55; color: var(--wap-steel); margin: 0; }
.wap-pagination { margin-top: 44px; gap: 8px; font-weight: 600; color: var(--wap-navy); }
.wap-pagination a { color: var(--wap-teal); text-decoration: none; }
.wap-noresults { text-align: center; color: var(--wap-steel); padding: 64px 0; }

/* =============================================================================
   RESPONSIVE — single shared breakpoint system. Gutter trims off the same var.
   ========================================================================== */
@media (max-width: 880px) {
  .wap-nav__links, .wap-nav__util { display: none; }
  .wap-nav__burger { display: flex; flex-direction: column; gap: 5px; margin-left: auto; cursor: pointer; padding: 6px; }
  .wap-nav__burger span { width: 24px; height: 2px; background: var(--wap-navy); border-radius: 2px; }
  .wap-nav__checkbox:checked ~ .wap-nav__links {
    display: flex; flex-direction: column; gap: 4px;
    position: absolute; top: 100%; left: 0; right: 0; background: var(--wap-white);
    padding: 16px var(--wap-gutter); box-shadow: var(--wap-shadow-soft); border-top: 1px solid var(--wap-border);
  }
  .wap-grid--3 { grid-template-columns: 1fr; }
  .wap-why__inner { grid-template-columns: 1fr; gap: 36px; padding-block: 8px 56px; }
  .wap-footer__cols { grid-template-columns: 1fr 1fr; gap: 32px; }
  .wap-cta__form { flex-direction: column; }
  .wap-cta__form .wap-btn--primary { width: 100%; justify-content: center; }
  .wap-mobcta { display: block; }
  body { padding-bottom: 80px; } /* room for sticky mobile CTA */
}
@media (max-width: 480px) {
  :root { --wap-gutter: 18px; }   /* mobile gutter trim — one system */
  .wap-footer__cols { grid-template-columns: 1fr 1fr; }
}
