/* ═══════════════════════════════════════════════════════════════
   SCLEROSING SKIN · Clinical Editorial Design System
   Cormorant Garamond + Source Sans 3 · Cream / Forest / Gold
   Dr. Heidi Jacobe · UT Southwestern Medical Center
   ═══════════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

/* ── Design Tokens — Jade Pebble Morning palette ── */
:root {
  /* Backgrounds */
  --ivory:         #F2F5ED;  /* Bright pale sage cream — main */
  --ivory-dark:    #d7e3d0;  /* Light sage — alt sections */
  --white:         #FAFAF8;  /* Card surfaces */

  /* Text — deep with green undertone */
  --ink:           #2A2F26;
  --text:          #2C322A;
  --text-mid:      #54635D;
  --text-light:    #8A958D;

  /* Primary: Dark Forest (anchors buttons, headings, brand) */
  --teal:          #404E3B;
  --teal-mid:      #5A6D52;
  --teal-light:    #7B9669;  /* Jade sage — mid-tone */
  --teal-mist:     #BAC8B1;  /* Light sage */
  --teal-mist2:    #9DB291;

  /* Accent: Slate green-grey */
  --amber:         #6C8480;  /* Slate — accent contrast */
  --amber-light:   #A4BAB6;
  --amber-pale:    #DCE4E2;

  /* Neutrals — sage-tinted */
  --stone:         #C4CCBE;
  --stone-dark:    #9DA89A;

  /* Danger */
  --danger:        #7D2020;
  --danger-bg:     #FEF2F2;
  --danger-border: #DEB8B8;

  /* Typography */
  --font-display:  'Cormorant Garamond', Georgia, serif;
  --font-body:     'Source Sans 3', system-ui, sans-serif;

  /* Layout */
  --max-w:         1180px;
  --radius-sm:     3px;
  --radius:        6px;
  --radius-lg:     10px;

  /* Motion */
  --ease-out:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out:   cubic-bezier(0.45, 0, 0.55, 1);
  --transition:    0.3s cubic-bezier(0.22, 1, 0.36, 1);

  /* Shadows */
  --shadow-xs: 0 1px 4px rgba(42,47,38,0.05);
  --shadow-sm: 0 4px 20px rgba(42,47,38,0.08);
  --shadow-md: 0 12px 44px rgba(42,47,38,0.10);
  --shadow-lg: 0 28px 80px rgba(42,47,38,0.13);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--text);
  font-size: 17px;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2.5rem; }
.section { padding: 8rem 0; }
.section--alt { background: var(--ivory-dark); }

/* ── Reading Progress ── */
#reading-progress {
  position: fixed; top: 0; left: 0; width: 0%; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--amber));
  z-index: 9999; transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(64,78,59,0.35);
}

/* ── Navigation ── */
.nav {
  position: sticky; top: 0; z-index: 200;
  background: rgba(242,245,237,0.96);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(196,204,190,0.7);
  transition: box-shadow 0.4s ease, border-color 0.4s ease;
}
.nav.scrolled {
  box-shadow: 0 2px 30px rgba(42,47,38,0.07);
  border-color: var(--stone);
}
.nav__inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 2.5rem;
  height: 76px; display: flex; align-items: center; justify-content: space-between;
}
.nav__brand {
  font-family: var(--font-display); font-size: 1.25rem; font-weight: 500;
  color: var(--teal); letter-spacing: 0.01em;
}
.nav__brand span { color: var(--amber); font-style: italic; font-weight: 400; }

/* Menu Toggle Button — always visible (Dell-style) */
.nav__toggle {
  display: inline-flex; align-items: center;
  cursor: pointer;
  padding: 0.55rem 2.45rem 0.55rem 1.1rem;
  border: 1.5px solid var(--teal); border-radius: 2px;
  background: transparent; transition: all 0.25s var(--ease-out);
  position: relative; min-height: 38px;
}
.nav__toggle::before {
  content: 'Menu';
  font-family: var(--font-body); font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal);
  padding-right: 0.85rem; border-right: 1px solid var(--teal-mist2);
  transition: color 0.25s ease, border-color 0.25s ease;
}
/* Hamburger lines via absolute positioning so they don't conflict with flex */
.nav__toggle span {
  position: absolute; right: 1.1rem;
  width: 18px; height: 1.5px; background: var(--teal); display: block;
  transition: transform 0.32s var(--ease-out), opacity 0.2s ease,
              background 0.25s ease, top 0.32s var(--ease-out);
  transform-origin: center;
}
.nav__toggle span:nth-child(1) { top: calc(50% - 6px); }
.nav__toggle span:nth-child(2) { top: 50%; transform: translateY(-50%); }
.nav__toggle span:nth-child(3) { top: calc(50% + 6px); transform: translateY(-100%); }
.nav__toggle:hover { background: var(--teal); border-color: var(--teal); }
.nav__toggle:hover::before { color: #fff; border-right-color: rgba(255,255,255,0.35); }
.nav__toggle:hover span { background: #fff; }

/* Hamburger morph when menu is open (sibling selector) */
.nav__links.open ~ .nav__toggle span:nth-child(1) {
  top: 50%; transform: translateY(-50%) rotate(45deg);
}
.nav__links.open ~ .nav__toggle span:nth-child(2) { opacity: 0; }
.nav__links.open ~ .nav__toggle span:nth-child(3) {
  top: 50%; transform: translateY(-50%) rotate(-45deg);
}
.nav__links.open ~ .nav__toggle::before { content: 'Close'; }

/* Full-width Dropdown Panel */
.nav__links {
  list-style: none;
  position: absolute; top: 100%; left: 0; right: 0;
  background: var(--ivory);
  border-bottom: 1px solid var(--stone);
  box-shadow: 0 24px 60px rgba(42,47,38,0.10);
  flex-direction: column;
  padding: 1.5rem 0 2.5rem;
  margin: 0;
  max-height: 0; overflow: hidden;
  opacity: 0; pointer-events: none;
  display: flex;
  transition: max-height 0.45s var(--ease-out), opacity 0.3s ease, padding 0.4s var(--ease-out);
}
.nav__links.open {
  max-height: 600px; opacity: 1; pointer-events: auto;
  padding: 2.25rem 0 3rem;
}
.nav__links li {
  max-width: var(--max-w); margin: 0 auto; width: 100%;
  padding: 0 2.5rem;
}
.nav__links a {
  font-family: var(--font-display); font-size: 1.65rem; font-weight: 500;
  letter-spacing: -0.005em; text-transform: none;
  color: var(--ink);
  padding: 1rem 0;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--stone);
  position: relative;
  transition: color 0.25s ease, padding-left 0.3s var(--ease-out);
}
.nav__links a::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 0; height: 1.5px; background: var(--teal);
  transform: translateY(-50%);
  transition: width 0.35s var(--ease-out);
}
.nav__links a::after {
  content: '→'; font-family: var(--font-body); font-size: 1.2rem; font-weight: 400;
  color: var(--teal-light);
  transition: transform 0.3s var(--ease-out), color 0.25s ease;
}
.nav__links a:hover { color: var(--teal); padding-left: 1.75rem; }
.nav__links a:hover::before { width: 1.25rem; }
.nav__links a:hover::after { transform: translateX(8px); color: var(--teal); }
.nav__links a.active { color: var(--teal); padding-left: 1.75rem; font-weight: 600; }
.nav__links a.active::before { width: 1.25rem; }
.nav__links a.active::after { color: var(--teal); }

/* Staggered link reveal when menu opens */
.nav__links li {
  opacity: 0; transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.4s var(--ease-out);
}
.nav__links.open li { opacity: 1; transform: translateY(0); }
.nav__links.open li:nth-child(1) { transition-delay: 0.08s; }
.nav__links.open li:nth-child(2) { transition-delay: 0.14s; }
.nav__links.open li:nth-child(3) { transition-delay: 0.20s; }
.nav__links.open li:nth-child(4) { transition-delay: 0.26s; }
.nav__links.open li:nth-child(5) { transition-delay: 0.32s; }

/* Body lock when menu open (handled in JS via class on body) */
body.nav-open { overflow: hidden; }

/* ── Hero ── */
.hero {
  min-height: 88vh;
  display: flex; align-items: center;
  padding: 7rem 0 6rem;
  position: relative; overflow: hidden;
  background: var(--ivory);
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--stone) 30%, var(--stone) 70%, transparent 100%);
}

/* When hero has background image */
.hero[style*="background-image"] {
  background-color: var(--ivory);
}

.hero__overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(242,245,237,0.98) 0%,
    rgba(242,245,237,0.95) 35%,
    rgba(242,245,237,0.80) 55%,
    rgba(242,245,237,0.40) 75%,
    rgba(242,245,237,0.10) 100%
  );
}

.hero__inner {
  max-width: var(--max-w); margin: 0 auto; width: 100%; padding: 0 2.5rem;
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center;
}
.hero__content { max-width: 560px; }

.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 0.85rem;
  font-size: 0.68rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal-light); margin-bottom: 1.75rem;
  opacity: 0; animation: fadeUp 0.9s var(--ease-out) 0.1s forwards;
}
.hero__eyebrow::before {
  content: ''; width: 32px; height: 1px; background: var(--teal-light); flex-shrink: 0;
  display: inline-block;
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5rem);
  font-weight: 500;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 2rem;
  letter-spacing: -0.01em;
  opacity: 0; animation: fadeUp 1s var(--ease-out) 0.22s forwards;
}
.hero__title em { font-style: italic; color: var(--teal); font-weight: 400; }
.hero__subtitle {
  font-size: 1.05rem; color: var(--text-mid); max-width: 48ch;
  margin: 0 0 2.5rem; line-height: 1.85;
  opacity: 0; animation: fadeUp 1s var(--ease-out) 0.35s forwards;
}
.hero__disclaimer {
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--stone);
  border-left: 2px solid var(--teal-light);
  border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
  font-size: 0.82rem; color: var(--text-mid); line-height: 1.72;
  max-width: 52ch;
  backdrop-filter: blur(8px);
  margin-bottom: 2.25rem;
  opacity: 0; animation: fadeUp 1s var(--ease-out) 0.38s forwards;
}
.hero__disclaimer strong { color: var(--text); }
.hero__ctas {
  display: flex; gap: 1rem; flex-wrap: wrap;
  opacity: 0; animation: fadeUp 1s var(--ease-out) 0.52s forwards;
}
.hero__visual {
  opacity: 0; animation: fadeUp 1s var(--ease-out) 0.18s forwards;
  display: flex; justify-content: flex-end;
}
.hero__visual-frame {
  position: relative; width: 100%; max-width: 440px;
}
.hero__visual-frame::before {
  content: ''; position: absolute;
  top: -18px; left: -18px;
  width: 100%; height: 100%;
  border: 1px solid var(--teal-mist2);
  border-radius: var(--radius-lg);
  z-index: 0;
}
.hero__visual-img {
  width: 100%; height: 500px; object-fit: cover; object-position: center 20%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  position: relative; z-index: 1;
  display: block;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 2.1rem;
  border-radius: 2px;
  font-family: var(--font-body); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.10em; text-transform: uppercase;
  transition: all 0.28s var(--ease-out);
  cursor: pointer; border: none; white-space: nowrap;
  position: relative; overflow: hidden;
}
.btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 100%);
  opacity: 0; transition: opacity 0.2s ease;
}
.btn:hover::before { opacity: 1; }
.btn--primary {
  background: var(--teal); color: #fff;
  box-shadow: 0 2px 14px rgba(64,78,59,0.28);
}
.btn--primary:hover {
  background: var(--teal-mid);
  box-shadow: 0 6px 28px rgba(64,78,59,0.35);
  transform: translateY(-1px);
}
.btn--outline {
  background: transparent; color: var(--teal);
  border: 1.5px solid var(--teal);
}
.btn--outline:hover {
  background: var(--teal); color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(64,78,59,0.25);
}

/* ── Section Typography ── */
.section__label {
  font-family: var(--font-body);
  font-size: 0.67rem; font-weight: 600; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--teal-light);
  display: flex; align-items: center; gap: 0.85rem; margin-bottom: 1.4rem;
}
.section__label::before {
  content: ''; display: inline-block; width: 28px; height: 1px;
  background: var(--teal-light); flex-shrink: 0;
}
.section__label::after {
  content: ''; display: inline-block; height: 1px;
  width: 0; background: var(--teal-mist2);
  transition: width 0.7s var(--ease-out) 0.2s;
}
.reveal.visible .section__label::after { width: 40px; }

.section__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 500;
  color: var(--ink); line-height: 1.1; margin-bottom: 1.5rem;
  letter-spacing: -0.01em;
}
.section__title em { font-style: italic; color: var(--teal); font-weight: 400; }
.section__title strong { font-weight: 600; }
.section__body {
  color: var(--text-mid); max-width: 56ch;
  font-size: 1.02rem; line-height: 1.88;
}

/* ── Navigation Cards ── */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card {
  background: var(--white);
  border: 1px solid var(--stone);
  border-radius: var(--radius);
  padding: 2.5rem 2.25rem 2rem;
  transition: all 0.38s var(--ease-out);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.card::before {
  content: attr(data-num);
  position: absolute; top: 1.25rem; right: 1.75rem;
  font-family: var(--font-display); font-size: 5.5rem; font-weight: 400;
  color: var(--teal-mist);
  line-height: 1; pointer-events: none; user-select: none;
  transition: color 0.38s ease, transform 0.38s ease;
  letter-spacing: -0.04em;
}
/* Bottom gradient bar — draws in on hover */
.card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--amber) 100%);
  transform: scaleX(0); transform-origin: left center;
  transition: transform 0.4s var(--ease-out);
}
.card:hover {
  transform: translateY(-12px) scale(1.08);
  box-shadow: 0 30px 60px rgba(42,47,38,0.18), 0 12px 24px rgba(42,47,38,0.10);
  border-color: var(--teal-mist2);
  z-index: 2;
}
.card:hover::before {
  color: var(--amber-pale);
  transform: scale(1.06) translateY(-2px);
}
.card:hover::after { transform: scaleX(1); }
.card__icon { font-size: 1.6rem; margin-bottom: 1.5rem; }
.card__title {
  font-family: var(--font-display); font-size: 1.55rem; font-weight: 500;
  color: var(--ink); margin-bottom: 0.75rem; line-height: 1.18;
}
.card__text {
  font-size: 0.92rem; color: var(--text-mid); line-height: 1.82; margin-bottom: 2rem;
}
.card__link {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em;
  color: var(--teal); text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 0.5rem;
  transition: gap 0.22s ease, color 0.22s ease;
}
.card__link:hover { gap: 0.85rem; color: var(--amber); }

/* ── Compliance Box ── */
.compliance {
  background: var(--white); border: 1px solid var(--stone);
  border-radius: var(--radius); padding: 2.25rem 2.75rem;
  margin: 2rem 0; position: relative; overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.compliance::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px;
  background: linear-gradient(180deg, var(--teal) 0%, var(--amber) 100%);
}
.compliance__title {
  font-family: var(--font-body);
  font-size: 0.67rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--amber); font-weight: 600; margin-bottom: 1rem;
}
.compliance__text { font-size: 0.92rem; color: var(--text-mid); line-height: 1.88; }
.compliance__text ul { padding-left: 1.25rem; margin-top: 0.5rem; }
.compliance__text ul li { margin-bottom: 0.35rem; }

/* ── Mayo Grid ── */
.mayo-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.5rem; align-items: start; }
.mayo-col { display: flex; flex-direction: column; gap: 1.5rem; }
.mayo-card {
  display: flex; flex-direction: column;
  border: 1px solid var(--stone); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: inherit; background: var(--white);
  transition: all 0.35s var(--ease-out);
  cursor: pointer; position: relative;
  box-shadow: var(--shadow-xs);
}
.mayo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--teal-mist2);
}
.mayo-card--accent { background: var(--amber-pale); }
.mayo-card--accent:hover { border-color: var(--amber-light); }
/* Bottom accent line */
.mayo-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), transparent);
  transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s var(--ease-out);
}
.mayo-card--accent::after { background: linear-gradient(90deg, var(--amber), transparent); }
.mayo-card:hover::after { transform: scaleX(1); }
.mayo-card__img { width: 100%; height: 200px; display: flex; align-items: center; justify-content: center; }
.mayo-card__img--sm { height: 130px; }
.mayo-card__body { padding: 2rem; flex: 1; display: flex; flex-direction: column; }
.mayo-card__icon-row { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.85rem; }
.mayo-card__tag {
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal-light); font-weight: 600;
}
.mayo-card__title {
  font-family: var(--font-display); font-size: 1.5rem; font-weight: 500;
  color: var(--ink); margin-bottom: 0.75rem; line-height: 1.15;
}
.mayo-card__text { font-size: 0.9rem; color: var(--text-mid); line-height: 1.72; margin-bottom: 1.25rem; flex: 1; }
.mayo-card__link {
  font-size: 0.72rem; font-weight: 600; color: var(--teal);
  letter-spacing: 0.10em; display: inline-flex; align-items: center; gap: 0.4rem;
  text-transform: uppercase; transition: gap 0.2s ease, color 0.2s ease; margin-top: auto;
}
.mayo-card:hover .mayo-card__link { gap: 0.65rem; color: var(--amber); }

/* ── Footer ── */
.footer {
  background: #121A14;
  color: rgba(255,255,255,0.42);
  padding: 5.5rem 0 4rem;
  text-align: center;
  font-size: 0.83rem;
  position: relative; overflow: hidden;
}
/* Gradient top accent */
.footer::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--teal-light) 25%, var(--amber) 75%, transparent 100%);
}
/* Radial ambient glow */
.footer::after {
  content: '';
  position: absolute; bottom: -220px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, rgba(64,78,59,0.14) 0%, transparent 65%);
  pointer-events: none;
}
.footer__brand {
  font-family: var(--font-display); font-size: 2.2rem; font-weight: 500;
  font-style: italic; color: rgba(255,255,255,0.82); margin-bottom: 2rem;
  letter-spacing: 0.02em; position: relative; z-index: 1;
}
.footer__links {
  display: flex; gap: 2rem; justify-content: center; flex-wrap: wrap;
  margin-bottom: 2.5rem; position: relative; z-index: 1;
}
.footer__links a {
  font-size: 0.71rem; font-weight: 500; letter-spacing: 0.14em;
  text-transform: uppercase; transition: color 0.22s ease;
}
.footer__links a:hover { color: rgba(255,255,255,0.85); }
.footer__disclaimer {
  max-width: 58ch; margin: 0 auto; line-height: 1.85;
  font-size: 0.77rem; color: rgba(255,255,255,0.28);
  position: relative; z-index: 1;
}

/* ── Keyframes ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes slideDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Scroll Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.95s var(--ease-out), transform 0.95s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: none; }

/* Cards and mayo-cards: lift & scale instead of horizontal slide */
.card.reveal, .mayo-card.reveal {
  transform: translateY(28px) scale(0.985);
  opacity: 0;
}
.card.reveal.visible, .mayo-card.reveal.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.reveal--d1 { transition-delay: 0.07s !important; }
.reveal--d2 { transition-delay: 0.15s !important; }
.reveal--d3 { transition-delay: 0.23s !important; }
.reveal--d4 { transition-delay: 0.31s !important; }

/* ── Alt Section ── */
.section--alt {
  background: var(--ivory-dark);
  position: relative;
}
.section--alt::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--stone), transparent);
}
.section--alt::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--stone), transparent);
}

/* ── Article Page ── */
.article-page { display: flex; gap: 0; min-height: 100vh; }
.article-sidebar {
  width: 265px; flex-shrink: 0;
  position: sticky; top: 76px; height: calc(100vh - 76px);
  overflow-y: auto; background: var(--white);
  border-right: 1px solid var(--stone);
  padding: 3rem 2rem;
  scrollbar-width: thin; scrollbar-color: var(--stone) transparent;
}
.article-sidebar::-webkit-scrollbar { width: 3px; }
.article-sidebar::-webkit-scrollbar-thumb { background: var(--stone); border-radius: 2px; }
.toc__title {
  font-size: 0.63rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal-light); font-weight: 600;
  margin-bottom: 1.5rem; padding-bottom: 1rem;
  border-bottom: 1px solid var(--stone);
}
.toc__list { list-style: none; display: flex; flex-direction: column; gap: 1px; }
.toc__list a {
  color: var(--text-light); display: block;
  padding: 0.5rem 0.85rem; border-radius: var(--radius-sm);
  transition: all 0.22s ease; border-left: 2px solid transparent;
  font-size: 0.83rem; line-height: 1.45;
}
.toc__list a:hover { color: var(--teal); background: var(--teal-mist); border-left-color: var(--teal-mist2); }
.toc__list a.toc-active { color: var(--teal); background: var(--teal-mist); border-left-color: var(--teal); font-weight: 600; }
.article-main { flex: 1; min-width: 0; padding: 4rem 4.5rem 7rem; max-width: 800px; }
.content-section { scroll-margin-top: 96px; margin-bottom: 5rem; }
.content-section__label {
  font-size: 0.63rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--teal-light); font-weight: 600; margin-bottom: 0.75rem;
  display: flex; align-items: center; gap: 0.65rem;
}
.content-section__label::before {
  content: ''; display: inline-block; width: 0; height: 1px;
  background: var(--teal-light);
  transition: width 0.55s var(--ease-out) 0.1s;
}
.reveal.visible .content-section__label::before { width: 20px; }
.content-section h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.6rem);
  font-weight: 500; color: var(--ink); line-height: 1.15;
  margin-bottom: 1.35rem; letter-spacing: -0.01em;
}
.content-section p {
  font-size: 0.96rem; color: var(--text-mid); line-height: 1.92;
  margin-bottom: 1.15rem; max-width: 68ch;
}
.content-section strong { color: var(--text); font-weight: 600; }

/* ── Info Box ── */
.info-box {
  background: var(--white); border: 1px solid var(--stone);
  border-left: 3px solid var(--teal-mist2);
  border-radius: var(--radius); padding: 1.5rem 1.85rem;
  margin: 1.5rem 0; box-shadow: var(--shadow-xs);
  transition: border-left-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.info-box:hover { border-left-color: var(--teal-light); transform: translateX(3px); box-shadow: var(--shadow-sm); }
.info-box__title {
  font-family: var(--font-display); font-size: 1.1rem; font-weight: 500;
  color: var(--ink); margin-bottom: 0.8rem; display: flex; align-items: center; gap: 0.55rem;
}
.info-box ul { padding-left: 1.25rem; color: var(--text-mid); font-size: 0.92rem; line-height: 1.9; }
.info-box ul li { margin-bottom: 0.3rem; }

/* ── Fire Grid ── */
.fire-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 1.75rem 0; }
.fire-card {
  border-radius: var(--radius); padding: 1.75rem; border: 1px solid var(--stone);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-xs); background: var(--white);
}
.fire-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.fire-card--active   { border-top: 2px solid #C0614A; background: linear-gradient(160deg, #FFF9F8 0%, var(--white) 100%); }
.fire-card--inactive { border-top: 2px solid var(--teal-light); background: linear-gradient(160deg, #F2FAF5 0%, var(--white) 100%); }
.fire-card__icon { font-size: 1.4rem; margin-bottom: 0.85rem; }
.fire-card__title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; color: var(--ink); margin-bottom: 0.7rem; }
.fire-card ul { padding-left: 1.2rem; font-size: 0.9rem; color: var(--text-mid); line-height: 1.87; }

/* ── Fire Meter ── */
.fire-meter { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; margin: 1.75rem 0; }
.fire-meter__item {
  border-radius: var(--radius); padding: 1.5rem 1.6rem; border: 1px solid var(--stone);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-xs); background: var(--white);
}
.fire-meter__item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.fire-meter__item--low  { border-top: 2px solid var(--teal-light); }
.fire-meter__item--mid  { border-top: 2px solid var(--amber); }
.fire-meter__item--high { border-top: 2px solid var(--danger); }
.fire-meter__label {
  font-size: 0.64rem; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 0.6rem; display: flex; align-items: center; gap: 0.35rem;
}
.fire-meter__label--low  { color: var(--teal-light); }
.fire-meter__label--mid  { color: var(--amber); }
.fire-meter__label--high { color: var(--danger); }
.fire-meter__text { font-size: 0.86rem; color: var(--text-mid); line-height: 1.68; }
.fire-meter__text strong { color: var(--text); display: block; margin-top: 0.4rem; font-size: 0.82rem; }
@keyframes highRiskGlow {
  0%, 100% { box-shadow: 0 2px 8px rgba(125,32,32,0.05); }
  50%       { box-shadow: 0 4px 24px rgba(125,32,32,0.18); }
}
.fire-meter__item--high { animation: highRiskGlow 3s ease-in-out infinite; }

/* ── Accordion ── */
.accordion {
  margin: 0.75rem 0; border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--stone);
  background: var(--white); box-shadow: var(--shadow-xs);
}
.accordion__trigger {
  width: 100%; background: none; border: none; padding: 1.25rem 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; text-align: left; transition: background 0.2s ease; gap: 1rem;
}
.accordion__trigger:hover { background: var(--ivory); }
.accordion__myth { font-size: 0.9rem; color: var(--danger); font-weight: 500; flex: 1; line-height: 1.45; }
.accordion__chevron {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--teal-mist); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; font-size: 0.65rem; color: var(--teal);
  transition: transform 0.32s ease, background 0.32s ease;
}
.accordion.is-open .accordion__chevron { transform: rotate(180deg); background: var(--teal); color: #fff; }
.accordion__body { max-height: 0; overflow: hidden; transition: max-height 0.38s ease; background: var(--ivory); }
.accordion.is-open .accordion__body { max-height: 400px; }
.accordion.is-open { box-shadow: var(--shadow-sm); }
.accordion.is-open .accordion__trigger { background: rgba(64,78,59,0.03); }
.accordion__content {
  padding: 1.15rem 1.5rem 1.4rem; font-size: 0.9rem;
  color: var(--text-mid); line-height: 1.85; border-top: 1px solid var(--stone);
}
.accordion__content strong { color: var(--teal); font-weight: 600; }

/* ── Callout Quote ── */
.callout-quote {
  border-left: 2px solid var(--amber); padding: 1.65rem 2.5rem; margin: 2.75rem 0;
  background: var(--amber-pale);
  border-radius: 0 var(--radius) var(--radius) 0;
  position: relative; overflow: hidden;
}
.callout-quote::before {
  content: '\201C'; position: absolute; top: -1.75rem; left: 0.75rem;
  font-family: var(--font-display); font-size: 10rem; line-height: 1;
  color: rgba(206,132,24,0.10); pointer-events: none; z-index: 0;
}
.callout-quote p {
  font-family: var(--font-display); font-size: 1.35rem; font-style: italic;
  color: var(--ink); line-height: 1.55; margin-bottom: 0.6rem !important;
  max-width: none !important; position: relative; z-index: 1;
}
.callout-quote cite { font-size: 0.79rem; color: var(--text-light); font-style: normal; position: relative; z-index: 1; }

/* ── Urgent Box ── */
@keyframes borderPulse {
  0%, 100% { border-left-color: var(--danger); }
  50%       { border-left-color: rgba(125,32,32,0.38); }
}
.urgent-box {
  background: var(--danger-bg); border: 1px solid var(--danger-border);
  border-left: 3px solid var(--danger); border-radius: var(--radius);
  padding: 1.35rem 1.75rem; margin: 1.5rem 0;
  animation: borderPulse 3s ease-in-out infinite;
}
.urgent-box__title {
  font-weight: 700; color: var(--danger);
  font-size: 0.77rem; letter-spacing: 0.07em; text-transform: uppercase; margin-bottom: 0.55rem;
}
.urgent-box ul { padding-left: 1.25rem; font-size: 0.92rem; color: var(--text); line-height: 1.88; }

/* ── Section Divider ── */
.section-divider {
  border: none; height: 1px; margin: 3.5rem 0;
  background: linear-gradient(90deg, transparent, var(--stone) 20%, var(--stone) 80%, transparent);
}

/* ══════════════════ RESPONSIVE ══════════════════ */

@media (max-width: 1024px) {
  .hero__inner { grid-template-columns: 1fr; max-width: 680px; }
  .hero__visual { display: none; }
}

@media (max-width: 960px) {
  .article-page { flex-direction: column; }
  .article-sidebar {
    width: 100%; height: auto; position: relative; top: 0;
    border-right: none; border-bottom: 1px solid var(--stone);
    padding: 1.5rem 1.75rem;
  }
  .toc__list { flex-direction: row; flex-wrap: wrap; gap: 0.25rem; }
  .toc__list a {
    padding: 0.3rem 0.65rem; border-left: none;
    border-bottom: 2px solid transparent; white-space: nowrap; font-size: 0.79rem;
  }
  .toc__list a.toc-active { border-bottom-color: var(--teal); border-left-color: transparent; }
  .article-main { padding: 2.5rem 2rem 5rem; max-width: 100%; }
  .fire-meter { grid-template-columns: 1fr; }
  .fire-grid   { grid-template-columns: 1fr; }
  .mayo-grid   { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 1.5rem; }
  .nav__links li { padding: 0 1.5rem; }
  .nav__links a { font-size: 1.35rem; padding: 0.85rem 0; }
  .nav__toggle::before { display: none; }
  .nav__toggle { padding: 0.55rem 2.4rem 0.55rem 0.85rem; }
  .hero { min-height: auto; padding: 5rem 0 4rem; }
  .hero__inner { padding: 0 1.5rem; }
  .section { padding: 5rem 0; }
  .section.section--alt .container[style*="grid"] { grid-template-columns: 1fr !important; gap: 2.5rem !important; }
  .cards { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(2.4rem, 8vw, 3.5rem); }
}
