/*
  ================================================================
  GoPaws & Wellness — Design System Stylesheet
  ================================================================
  Architecture: Mobile-First | Zero-JS | Core Web Vitals Optimised
  Palette:
    --navy        #1E3A8A  (trust / navigation)
    --sage        #5B7F6E  (health / wellness accent)
    --sage-light  #EAF2EE  (section backgrounds)
    --ink         #1A1A2E  (primary text)
    --stone       #5C5C72  (secondary / meta text)
    --cream       #FAFAFA  (page background)
    --rule        #E2E4E9  (dividers / borders)
    --gold        #B8963E  (premium highlight — used sparingly)

  Typography:
    Display/Serif:  Cormorant Garamond (editorial gravitas)
    Body/Sans:      Inter (legibility at small sizes)
  ================================================================
*/


/* ── 0. CSS CUSTOM PROPERTIES (DESIGN TOKENS) ────────────────── */
:root {
  /* Color tokens */
  --color-navy:        #1E3A8A;
  --color-navy-dark:   #162C6E;
  --color-navy-light:  #EEF2FF;
  --color-sage:        #5B7F6E;
  --color-sage-light:  #EAF2EE;
  --color-ink:         #1A1A2E;
  --color-stone:       #5C5C72;
  --color-stone-light: #9898A6;
  --color-cream:       #FAFAFA;
  --color-white:       #FFFFFF;
  --color-rule:        #E2E4E9;
  --color-gold:        #B8963E;
  --color-gold-bg:     #FBF5E6;

  /* Feedback / callout colors */
  --color-tip-bg:      #EAF2EE;
  --color-tip-border:  #5B7F6E;
  --color-warn-bg:     #FEF9EE;
  --color-warn-border: #B8963E;
  --color-info-bg:     #EEF2FF;
  --color-info-border: #1E3A8A;

  /* Affiliate CTA */
  --color-cta:         #1E3A8A;
  --color-cta-hover:   #162C6E;
  --color-cta-text:    #FFFFFF;

  /* Pros / Cons */
  --color-pro:         #2D6A4F;
  --color-pro-bg:      #EAF2EE;
  --color-con:         #B91C1C;
  --color-con-bg:      #FEF2F2;

  /* Typography tokens */
  --font-serif:        'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:         'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Type scale — fluid via clamp() for CLS = 0 */
  --text-xs:    clamp(0.70rem, 1.8vw, 0.75rem);
  --text-sm:    clamp(0.80rem, 2vw,   0.875rem);
  --text-base:  clamp(1.00rem, 2.5vw, 1.0625rem);
  --text-lg:    clamp(1.10rem, 3vw,   1.1875rem);
  --text-xl:    clamp(1.25rem, 3.5vw, 1.375rem);
  --text-2xl:   clamp(1.50rem, 4vw,   1.875rem);
  --text-3xl:   clamp(1.875rem, 5vw,  2.5rem);
  --text-4xl:   clamp(2.25rem, 6vw,   3.25rem);
  --text-hero:  clamp(2.5rem, 7vw,    4rem);

  /* Line height */
  --leading-tight:   1.2;
  --leading-snug:    1.35;
  --leading-body:    1.65;   /* body copy — comfortable on mobile */
  --leading-loose:   1.8;

  /* Spacing scale */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;

  /* Layout */
  --container-max:    1200px;
  --article-max:      720px;   /* ~68ch — ideal reading column */
  --radius-sm:        4px;
  --radius-md:        8px;
  --radius-lg:        12px;

  /* Transitions */
  --transition-fast:  0.15s ease;
  --transition-base:  0.25s ease;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(26,26,46,0.08);
  --shadow-md:   0 4px 16px rgba(26,26,46,0.10);
  --shadow-lg:   0 8px 32px rgba(26,26,46,0.12);
}


/* ── 1. RESET & BASE ──────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Prevent CLS from font size shifts */
html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family:      var(--font-sans);
  font-size:        var(--text-base);
  line-height:      var(--leading-body);
  color:            var(--color-ink);
  background-color: var(--color-cream);
  -webkit-font-smoothing:  antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Reserve scrollbar width to prevent CLS on content-heavy pages */
  overflow-y: scroll;
}

/* Prevent media from breaking layout — CLS prevention */
img,
video,
picture,
svg,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Remove list styles on nav elements */
nav ul,
nav ol {
  list-style: none;
}

/* Base anchor */
a {
  color: var(--color-navy);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

a:hover {
  color: var(--color-navy-dark);
}

/* Headings — serif, editorial */
h1, h2, h3, h4, h5, h6 {
  font-family:  var(--font-serif);
  font-weight:  600;
  line-height:  var(--leading-tight);
  color:        var(--color-ink);
  /* prevent orphaned single words */
  text-wrap: balance;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl);  }
h5 { font-size: var(--text-lg);  }
h6 { font-size: var(--text-base); }

p { max-width: 72ch; }  /* readability constraint */

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

abbr[title] {
  cursor: help;
  text-decoration: underline dotted;
}

/* Accessible focus ring */
:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Skip-to-content link (screen reader + keyboard navigation) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  padding: var(--space-2) var(--space-4);
  background: var(--color-navy);
  color: var(--color-white);
  font-size: var(--text-sm);
  z-index: 1000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: 0;
}

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}


/* ── 2. LAYOUT UTILITIES ──────────────────────────────────────── */

/* Main container: centred, padded */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

@media (min-width: 768px) {
  .container {
    padding-inline: var(--space-8);
  }
}

/* Reading column — article body stays narrow */
.article-layout {
  max-width: var(--article-max);
  padding-block: var(--space-10) var(--space-16);
}


/* ── 3. SITE HEADER ───────────────────────────────────────────── */
.site-header {
  position:         sticky;
  top:              0;
  z-index:          100;
  background-color: var(--color-white);
  border-bottom:    1px solid var(--color-rule);
  /* Prevents nav from contributing to CLS */
  min-height:       64px;
}

.header-inner {
  display:          flex;
  align-items:      center;
  justify-content:  space-between;
  gap:              var(--space-6);
  padding-block:    var(--space-4);
}

/* Logo */
.site-logo {
  display:      flex;
  align-items:  center;
  gap:          var(--space-2);
  text-decoration: none;
  color:        var(--color-navy);
  flex-shrink:  0;
}

.site-logo svg {
  width: 32px;
  height: 32px;
}

.site-logo__name {
  font-family:  var(--font-serif);
  font-weight:  600;
  font-size:    var(--text-xl);
  letter-spacing: -0.01em;
  white-space:  nowrap;
}

.site-logo__name em {
  font-style: italic;
  color: var(--color-sage);
}

.site-logo:hover {
  color: var(--color-navy-dark);
  text-decoration: none;
}

/* Desktop navigation */
.site-nav {
  display: none;  /* hidden on mobile — no JS hamburger, content first */
}

@media (min-width: 768px) {
  .site-nav {
    display: block;
  }

  .site-nav ul {
    display:    flex;
    gap:        var(--space-6);
    align-items: center;
  }

  .site-nav a {
    font-family:    var(--font-sans);
    font-size:      var(--text-sm);
    font-weight:    500;
    color:          var(--color-stone);
    text-decoration: none;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition:     color var(--transition-fast);
  }

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

/* Trust badge */
.disclosure-badge {
  display:      none;
  font-size:    var(--text-xs);
  color:        var(--color-stone);
  white-space:  nowrap;
}

@media (min-width: 1024px) {
  .disclosure-badge {
    display: block;
  }
}

.disclosure-badge abbr {
  cursor: help;
  text-decoration: none;
  background: var(--color-sage-light);
  color: var(--color-sage);
  padding: var(--space-1) var(--space-3);
  border-radius: 100px;
  font-weight: 500;
  font-size: var(--text-xs);
}


/* ── 4. ARTICLE HEADER ────────────────────────────────────────── */

/* Breadcrumb */
.breadcrumb {
  margin-bottom: var(--space-6);
  padding-top: var(--space-8);
}

.breadcrumb ol {
  display:    flex;
  flex-wrap:  wrap;
  gap:        var(--space-2);
  list-style: none;
  font-size:  var(--text-xs);
  color:      var(--color-stone);
}

.breadcrumb li + li::before {
  content: '›';
  margin-right: var(--space-2);
}

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

.breadcrumb a:hover {
  color: var(--color-navy);
}

/* Article eyebrow */
.article-eyebrow {
  font-family:    var(--font-sans);
  font-size:      var(--text-xs);
  font-weight:    600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:          var(--color-sage);
  margin-bottom:  var(--space-4);
}

/* H1 */
.article-title {
  font-family:   var(--font-serif);
  font-size:     var(--text-hero);
  font-weight:   700;
  line-height:   1.08;
  letter-spacing: -0.02em;
  color:         var(--color-ink);
  margin-bottom: var(--space-5);
  max-width:     22ch;
}

/* Article deck (sub-headline) */
.article-deck {
  font-size:     var(--text-xl);
  line-height:   var(--leading-snug);
  color:         var(--color-stone);
  margin-bottom: var(--space-6);
  max-width:     58ch;
  font-weight:   400;
}

/* Byline */
.byline {
  display:       flex;
  align-items:   center;
  gap:           var(--space-3);
  padding-block: var(--space-5);
  border-top:    1px solid var(--color-rule);
  border-bottom: 1px solid var(--color-rule);
  margin-bottom: var(--space-6);
}

.byline__avatar {
  width:         40px;
  height:        40px;
  border-radius: 50%;
  object-fit:    cover;
  flex-shrink:   0;
}

.byline__meta {
  display:        flex;
  flex-direction: column;
  gap:            var(--space-1);
}

.byline__author {
  font-size:   var(--text-sm);
  font-weight: 600;
  color:       var(--color-ink);
}

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

.byline__author a:hover {
  color: var(--color-navy);
  text-decoration: underline;
}

.byline__date {
  font-size: var(--text-xs);
  color:     var(--color-stone);
}

/* FTC Disclosure box — above fold version */
.disclosure-box {
  background:    var(--color-navy-light);
  border-left:   3px solid var(--color-navy);
  border-radius: var(--radius-md);
  padding:       var(--space-4) var(--space-5);
  margin-bottom: var(--space-8);
  font-size:     var(--text-sm);
  color:         var(--color-stone);
  line-height:   var(--leading-snug);
}

.disclosure-box strong {
  color: var(--color-ink);
}

.disclosure-box a {
  color: var(--color-navy);
}

.disclosure-box--footer {
  margin-top: var(--space-10);
  margin-bottom: var(--space-6);
}


/* ── 5. HERO IMAGE ────────────────────────────────────────────── */
.article-hero {
  margin-bottom:  var(--space-8);
  border-radius:  var(--radius-lg);
  overflow:       hidden;
  /* Declare aspect-ratio to eliminate CLS completely */
  aspect-ratio:   3 / 2;
  background:     var(--color-rule); /* placeholder while loading */
}

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

.article-hero__caption {
  font-size:  var(--text-xs);
  color:      var(--color-stone);
  padding:    var(--space-2) 0 0;
  text-align: right;
  font-style: italic;
}


/* ── 6. TABLE OF CONTENTS ─────────────────────────────────────── */
.toc {
  background:    var(--color-sage-light);
  border:        1px solid rgba(91,127,110,0.25);
  border-radius: var(--radius-md);
  padding:       var(--space-5) var(--space-6);
  margin-bottom: var(--space-10);
}

.toc__label {
  font-family:    var(--font-sans);
  font-size:      var(--text-xs);
  font-weight:    700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color:          var(--color-sage);
  margin-bottom:  var(--space-3);
}

.toc ol {
  list-style:    decimal;
  padding-left:  var(--space-5);
  display:       flex;
  flex-direction: column;
  gap:           var(--space-2);
}

.toc a {
  font-size:       var(--text-sm);
  color:           var(--color-ink);
  text-decoration: none;
  font-weight:     500;
}

.toc a:hover {
  color:           var(--color-navy);
  text-decoration: underline;
}


/* ── 7. ARTICLE BODY TYPOGRAPHY ───────────────────────────────── */
.article-body {
  /* All direct children spaced consistently */
}

.article-body > * + * {
  margin-top: var(--space-6);
}

.article-body section {
  padding-top: var(--space-4);
}

.article-body h2 {
  font-size:     var(--text-3xl);
  margin-top:    var(--space-12);
  margin-bottom: var(--space-4);
  padding-top:   var(--space-6);
  border-top:    1px solid var(--color-rule);
}

/* First H2 doesn't need top border */
.article-body section:first-child h2 {
  border-top: none;
  padding-top: 0;
}

.article-body h3 {
  font-size:     var(--text-2xl);
  margin-top:    var(--space-8);
  margin-bottom: var(--space-3);
}

.article-body p {
  font-size:   var(--text-base);
  line-height: var(--leading-body);
  color:       var(--color-ink);
}

.article-body p + p {
  margin-top: var(--space-4);
}

/* Inline links within content */
.article-body a:not(.product-cta):not(.tag) {
  color:            var(--color-navy);
  text-decoration:  underline;
  text-decoration-color: rgba(30,58,138,0.35);
  text-underline-offset: 3px;
  font-weight:      500;
  transition:       text-decoration-color var(--transition-fast);
}

.article-body a:not(.product-cta):not(.tag):hover {
  text-decoration-color: var(--color-navy);
}

/* Content lists */
.content-list {
  list-style:  disc;
  padding-left: var(--space-5);
  display:     flex;
  flex-direction: column;
  gap:         var(--space-2);
  font-size:   var(--text-base);
  line-height: var(--leading-body);
}

.article-body ol {
  list-style:  decimal;
  padding-left: var(--space-5);
  display:     flex;
  flex-direction: column;
  gap:         var(--space-2);
}


/* ── 8. CALLOUT / ASIDE BOXES ─────────────────────────────────── */
.callout {
  border-radius: var(--radius-md);
  padding:       var(--space-5) var(--space-6);
  border-left:   3px solid transparent;
  margin-block:  var(--space-8);
}

.callout__label {
  font-size:     var(--text-sm);
  font-weight:   700;
  margin-bottom: var(--space-2);
}

.callout--tip {
  background:   var(--color-tip-bg);
  border-color: var(--color-tip-border);
}

.callout--tip .callout__label {
  color: var(--color-sage);
}

.callout--warn {
  background:   var(--color-warn-bg);
  border-color: var(--color-warn-border);
}

.callout--warn .callout__label {
  color: var(--color-gold);
}

.callout--info {
  background:   var(--color-info-bg);
  border-color: var(--color-info-border);
}

.callout--info .callout__label {
  color: var(--color-navy);
}


/* ── 9. PRODUCT REVIEW BOX ────────────────────────────────────── */
/*
  Component: .product-box
  Used for affiliate product recommendations.
  See product-box.html for the full HTML template.
*/

.product-box {
  border:        1px solid var(--color-rule);
  border-radius: var(--radius-lg);
  overflow:      hidden;
  margin-block:  var(--space-10);
  box-shadow:    var(--shadow-md);
  background:    var(--color-white);
}

/* Badge across the top */
.product-box__badge {
  background:    var(--color-navy);
  color:         var(--color-white);
  font-family:   var(--font-sans);
  font-size:     var(--text-xs);
  font-weight:   700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding:       var(--space-2) var(--space-5);
  text-align:    center;
}

/* Image block */
.product-box__image-wrap {
  background:   var(--color-cream);
  display:      flex;
  align-items:  center;
  justify-content: center;
  padding:      var(--space-6);
  /* Declared dimensions prevent CLS */
  aspect-ratio: 4 / 3;
  overflow:     hidden;
}

.product-box__img {
  max-height: 220px;
  width:      auto;
  object-fit: contain;
  mix-blend-mode: multiply; /* removes white box around product photos */
}

/* Content area */
.product-box__body {
  padding: var(--space-6);
}

/* Product title */
.product-box__title {
  font-family:   var(--font-serif);
  font-size:     var(--text-2xl);
  font-weight:   700;
  line-height:   var(--leading-snug);
  color:         var(--color-ink);
  margin-bottom: var(--space-2);
}

/* Star rating display */
.product-box__rating {
  display:     flex;
  align-items: center;
  gap:         var(--space-2);
  margin-bottom: var(--space-4);
}

.product-box__stars {
  color:     var(--color-gold);
  font-size: var(--text-base);
  letter-spacing: -0.05em;
}

.product-box__rating-score {
  font-size:   var(--text-sm);
  font-weight: 600;
  color:       var(--color-ink);
}

.product-box__rating-count {
  font-size: var(--text-xs);
  color:     var(--color-stone);
}

/* Summary paragraph */
.product-box__summary {
  font-size:     var(--text-base);
  line-height:   var(--leading-body);
  color:         var(--color-stone);
  margin-bottom: var(--space-5);
}

/* Pros / Cons */
.product-box__verdict {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   var(--space-4);
  margin-bottom:         var(--space-6);
}

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

.verdict-col {
  border-radius: var(--radius-md);
  padding:       var(--space-4);
}

.verdict-col--pros {
  background: var(--color-pro-bg);
  border:     1px solid rgba(45,106,79,0.2);
}

.verdict-col--cons {
  background: var(--color-con-bg);
  border:     1px solid rgba(185,28,28,0.15);
}

.verdict-col__label {
  font-size:     var(--text-xs);
  font-weight:   700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

.verdict-col--pros .verdict-col__label { color: var(--color-pro); }
.verdict-col--cons .verdict-col__label { color: var(--color-con); }

.verdict-col ul {
  list-style:  none;
  display:     flex;
  flex-direction: column;
  gap:         var(--space-2);
}

.verdict-col li {
  font-size:   var(--text-sm);
  line-height: var(--leading-snug);
  display:     flex;
  gap:         var(--space-2);
  align-items: flex-start;
}

.verdict-col--pros li::before {
  content:    '✓';
  color:      var(--color-pro);
  font-weight: 700;
  flex-shrink: 0;
  margin-top:  1px;
}

.verdict-col--cons li::before {
  content:    '✗';
  color:      var(--color-con);
  font-weight: 700;
  flex-shrink: 0;
  margin-top:  1px;
}

/* CTA Button */
.product-cta {
  display:          flex;
  align-items:      center;
  justify-content:  center;
  gap:              var(--space-2);
  width:            100%;
  padding:          var(--space-4) var(--space-6);
  background:       var(--color-cta);
  color:            var(--color-cta-text);
  font-family:      var(--font-sans);
  font-size:        var(--text-base);
  font-weight:      600;
  letter-spacing:   0.01em;
  text-decoration:  none;
  border-radius:    var(--radius-md);
  transition:       background var(--transition-fast),
                    transform  var(--transition-fast),
                    box-shadow var(--transition-fast);
  cursor:           pointer;
  border:           none;
  -webkit-tap-highlight-color: transparent;
}

.product-cta:hover {
  background:  var(--color-cta-hover);
  transform:   translateY(-1px);
  box-shadow:  var(--shadow-md);
  color:       var(--color-cta-text);
  text-decoration: none;
}

.product-cta:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Amazon variant */
.product-cta--amazon {
  background: #1D3A6E; /* navy stays consistent */
}

/* Chewy variant */
.product-cta--chewy {
  background: var(--color-sage);
}

.product-cta--chewy:hover {
  background: #4A6B5C;
}

/* Price note */
.product-box__price-note {
  text-align:  center;
  font-size:   var(--text-xs);
  color:       var(--color-stone);
  margin-top:  var(--space-3);
}

.product-box__price-note a {
  color: var(--color-stone);
}


/* ── 10. FAQ ACCORDION ────────────────────────────────────────── */
/*
  Component: .faq-accordion
  Uses native <details>/<summary> — ZERO JavaScript required.
  Screen-reader accessible, keyboard navigable.
*/

.faq-intro {
  font-size:     var(--text-base);
  color:         var(--color-stone);
  margin-bottom: var(--space-6);
}

.faq-accordion {
  display:       flex;
  flex-direction: column;
  gap:           var(--space-3);
  margin-block:  var(--space-6);
}

.faq-item {
  border:        1px solid var(--color-rule);
  border-radius: var(--radius-md);
  overflow:      hidden;
  background:    var(--color-white);
  transition:    box-shadow var(--transition-base);
}

.faq-item:hover {
  box-shadow: var(--shadow-sm);
}

.faq-item[open] {
  border-color: rgba(30,58,138,0.3);
  box-shadow:   var(--shadow-sm);
}

/* Summary (the clickable question row) */
.faq-item > summary {
  display:        flex;
  align-items:    center;
  justify-content: space-between;
  gap:            var(--space-4);
  padding:        var(--space-5) var(--space-6);
  cursor:         pointer;
  user-select:    none;
  list-style:     none; /* removes default triangle marker */
  font-family:    var(--font-sans);
  font-size:      var(--text-base);
  font-weight:    600;
  color:          var(--color-ink);
  line-height:    var(--leading-snug);
  transition:     background var(--transition-fast),
                  color var(--transition-fast);
}

/* Remove default webkit triangle */
.faq-item > summary::-webkit-details-marker {
  display: none;
}

/* Custom expand/collapse icon — CSS-only */
.faq-item > summary::after {
  content:        '+';
  font-size:      1.4rem;
  font-weight:    300;
  color:          var(--color-navy);
  flex-shrink:    0;
  line-height:    1;
  transition:     transform var(--transition-base);
}

.faq-item[open] > summary::after {
  content:   '−';
  transform: rotate(0deg); /* subtle shift */
}

.faq-item > summary:hover {
  background: var(--color-navy-light);
  color:      var(--color-navy);
}

.faq-item[open] > summary {
  background:    var(--color-navy-light);
  border-bottom: 1px solid rgba(30,58,138,0.15);
}

/* Answer body */
.faq-answer {
  padding:    var(--space-5) var(--space-6);
  font-size:  var(--text-base);
  line-height: var(--leading-body);
  color:      var(--color-stone);
}

.faq-answer p + p {
  margin-top: var(--space-3);
}

.faq-answer a {
  color:      var(--color-navy);
  font-weight: 500;
}

.faq-answer ul,
.faq-answer ol {
  margin-top: var(--space-3);
  padding-left: var(--space-5);
  display:    flex;
  flex-direction: column;
  gap:        var(--space-2);
  font-size:  var(--text-sm);
}

.faq-answer ul {
  list-style: disc;
}


/* ── 11. ARTICLE FOOTER ───────────────────────────────────────── */
.article-footer {
  margin-top:  var(--space-12);
  padding-top: var(--space-8);
  border-top:  2px solid var(--color-rule);
}

/* Tags */
.article-tags {
  display:     flex;
  flex-wrap:   wrap;
  align-items: center;
  gap:         var(--space-2);
  margin-top:  var(--space-6);
}

.tag-label {
  font-size:   var(--text-xs);
  font-weight: 600;
  color:       var(--color-stone);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.tag {
  display:         inline-block;
  padding:         var(--space-1) var(--space-3);
  background:      var(--color-cream);
  border:          1px solid var(--color-rule);
  border-radius:   100px;
  font-size:       var(--text-xs);
  color:           var(--color-stone);
  text-decoration: none;
  font-weight:     500;
  transition:      border-color var(--transition-fast), color var(--transition-fast);
}

.tag:hover {
  border-color: var(--color-navy);
  color:        var(--color-navy);
}


/* ── 12. SITE FOOTER ──────────────────────────────────────────── */
.site-footer {
  background:   var(--color-ink);
  color:        var(--color-stone-light);
  margin-top:   var(--space-20);
  padding-block: var(--space-12) var(--space-8);
}

.site-footer__inner {
  display:        grid;
  grid-template-columns: 1fr;
  gap:            var(--space-10);
  padding-bottom: var(--space-10);
  border-bottom:  1px solid rgba(255,255,255,0.1);
}

@media (min-width: 768px) {
  .site-footer__inner {
    grid-template-columns: 1fr 2fr;
    align-items: start;
  }
}

.footer-brand .site-logo {
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer-tagline {
  font-size:   var(--text-sm);
  color:       var(--color-stone-light);
  max-width:   32ch;
  line-height: var(--leading-snug);
}

.footer-nav {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   var(--space-6);
}

.footer-nav ul {
  display:        flex;
  flex-direction: column;
  gap:            var(--space-3);
}

.footer-nav a {
  font-size:       var(--text-sm);
  color:           var(--color-stone-light);
  text-decoration: none;
  transition:      color var(--transition-fast);
}

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

.site-footer__legal {
  margin-top:  var(--space-8);
  display:     flex;
  flex-direction: column;
  gap:         var(--space-3);
}

.site-footer__legal p {
  font-size:   var(--text-xs);
  color:       rgba(152,152,166,0.7);
  max-width:   none;
  line-height: var(--leading-snug);
}


/* ── 13. PRINT STYLES ─────────────────────────────────────────── */
@media print {
  .site-header,
  .site-footer,
  .toc,
  .product-cta,
  .breadcrumb { display: none; }

  .article-layout { max-width: 100%; }
  .article-title  { font-size: 2rem; }

  a::after {
    content: ' (' attr(href) ')';
    font-size: 0.8rem;
    color: var(--color-stone);
  }
}


/* ── NAV COMPONENT ──────────────────────────────────────────── */
body { padding-top: 64px; }

#menu-toggle {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); border: 0;
}

.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200; height: 64px;
  background-color: rgba(255,255,255,0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--color-rule);
}

.site-header__inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 100%; max-width: 1200px;
  margin-inline: auto; padding-inline: 1.25rem;
}

.site-logo {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--color-navy);
  flex-shrink: 0; min-height: 44px;
}
.site-logo__mark     { width: 32px; height: 32px; flex-shrink: 0; }
.site-logo__wordmark { font-family: var(--font-serif); font-weight: 600; font-size: 1.25rem; letter-spacing: -0.01em; line-height: 1; white-space: nowrap; }
.site-logo__wordmark em { font-style: italic; color: var(--color-sage); }
.site-logo:hover     { color: var(--color-navy-dark); text-decoration: none; }

.nav-toggle-label {
  display: flex; flex-direction: column;
  justify-content: center; gap: 5px;
  width: 44px; height: 44px;
  cursor: pointer; padding: 10px;
  border-radius: 6px; flex-shrink: 0;
  transition: background var(--transition-fast);
}
.nav-toggle-label:hover { background: var(--color-navy-light); }

.nav-toggle-label__bar {
  display: block; width: 100%; height: 2px;
  background-color: var(--color-ink);
  border-radius: 2px; transform-origin: center;
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1),
              opacity   0.28s cubic-bezier(0.4,0,0.2,1),
              background var(--transition-fast);
}
#menu-toggle:checked + .nav-toggle-label .nav-toggle-label__bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menu-toggle:checked + .nav-toggle-label .nav-toggle-label__bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
#menu-toggle:checked + .nav-toggle-label .nav-toggle-label__bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
#menu-toggle:checked + .nav-toggle-label .nav-toggle-label__bar { background-color: var(--color-navy); }

.site-nav {
  position: absolute; top: 64px; left: 0; right: 0;
  background: #fff;
  border-bottom: 1px solid var(--color-rule);
  max-height: 0; overflow: hidden;
  transition: max-height 0.28s cubic-bezier(0.4,0,0.2,1),
              box-shadow 0.28s cubic-bezier(0.4,0,0.2,1);
}
#menu-toggle:checked ~ .site-nav {
  max-height: 400px;
  box-shadow: 0 8px 24px rgba(26,26,46,0.10);
}

.site-nav__list {
  list-style: none; margin: 0;
  padding: 0.75rem 1.25rem;
  display: flex; flex-direction: column;
}
.site-nav__item            { border-bottom: 1px solid var(--color-rule); }
.site-nav__item:last-child { border-bottom: none; }

.site-nav__link {
  display: flex; align-items: center; gap: 0.625rem;
  min-height: 44px; padding: 0.625rem 0.25rem;
  text-decoration: none; font-family: var(--font-sans);
  font-size: 0.9375rem; font-weight: 500;
  color: var(--color-stone); letter-spacing: 0.01em;
  border-radius: 6px; position: relative;
  transition: color var(--transition-fast),
              background var(--transition-fast),
              padding var(--transition-fast);
}
.site-nav__link:hover                { color: var(--color-navy); background: var(--color-navy-light); padding-inline: 0.5rem; }
.site-nav__link[aria-current="page"] { color: var(--color-navy); font-weight: 600; background: var(--color-navy-light); padding-inline: 0.5rem; }
.site-nav__link[aria-current="page"]::before {
  content: ''; position: absolute; left: -1.25rem; top: 50%;
  transform: translateY(-50%); width: 3px; height: 60%;
  background: var(--color-navy); border-radius: 0 2px 2px 0;
}

.site-nav__icon { font-size: 1.05rem; line-height: 1; flex-shrink: 0; }
.site-nav__text { flex: 1; }

.nav-trust-badge {
  display: none; align-items: center;
  font-family: var(--font-sans); font-size: 0.6875rem;
  font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--color-sage);
  background: var(--color-sage-light);
  padding: 0.25rem 0.75rem; border-radius: 100px;
  white-space: nowrap; cursor: help;
  flex-shrink: 0; text-decoration: none;
}

body:has(#menu-toggle:checked)::before {
  content: ''; position: fixed; inset: 64px 0 0 0;
  background: rgba(26,26,46,0.35);
  z-index: 199; pointer-events: none;
}

.site-nav__link:focus-visible,
.site-logo:focus-visible,
.nav-toggle-label:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 3px; border-radius: 4px;
}

@media (min-width: 768px) {
  .nav-toggle-label { display: none; }
  .site-nav { position: static; max-height: none; overflow: visible; border: none; background: transparent; box-shadow: none; transition: none; flex: 1; }
  .site-nav__list { flex-direction: row; align-items: center; justify-content: center; gap: 0.25rem; padding: 0; }
  .site-nav__item { border-bottom: none; }
  .site-nav__link { padding-block: 0.375rem; padding-inline: 0.75rem; font-size: 0.8125rem; letter-spacing: 0.04em; text-transform: uppercase; min-height: 36px; }
  .site-nav__link:hover,
  .site-nav__link[aria-current="page"] { padding-inline: 0.75rem; }
  .site-nav__link[aria-current="page"]::before { display: none; }
  .site-nav__link[aria-current="page"]::after { content: ''; position: absolute; bottom: -2px; left: 0.75rem; right: 0.75rem; height: 2px; background: var(--color-navy); border-radius: 2px 2px 0 0; }
  .site-nav__icon { display: none; }
  .nav-trust-badge { display: flex; }
  .site-header__inner { padding-inline: 2rem; }
}

@media (min-width: 1024px) {
  .site-nav__link { font-size: 0.875rem; }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav, .nav-toggle-label__bar { transition: none; }
}
