/* Illness SEO pages - extends site design tokens from /styles.css */

.ill-page { background: var(--paper); }
.ill-main { padding: 28px 0 80px; }

.ill-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}
@media (max-width: 960px) {
  .ill-layout { grid-template-columns: 1fr; }
  .ill-side { order: -1; }
}

.ill-crumbs {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 13.5px; font-weight: 600; color: var(--ink-3); margin-bottom: 22px;
}
.ill-crumbs a { color: var(--green-deep); }
.ill-crumbs a:hover { text-decoration: underline; }

.ill-hero { margin-bottom: 28px; }
.ill-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.ill-badge {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 700; letter-spacing: 0.03em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px; background: var(--paper-2); color: var(--ink-2);
}
.ill-badge.chronic { background: var(--green-soft); color: var(--green-deep); }
.ill-badge.acute { background: var(--amber-soft); color: var(--amber); }
/* Amber is the design system's one secondary accent (DESIGN.md); the previous
   #E8F1FF/#2A5A9E blue was not a brand colour. */
.ill-badge.weight { background: var(--amber-soft); color: var(--amber); }
/* Axis badges: which chronic burdens a condition drives. Inflammation is the anchor
   and takes brand green; the burdens it presents as take the amber accent. */
.ill-badge.axis { background: var(--amber-soft); color: var(--amber); }
.ill-badge.axis-inflammation { background: var(--green-soft); color: var(--green-deep); }
.ill-badge.cat { background: var(--card); border: 1px solid var(--line); }

.ill-hero h1 {
  font-size: clamp(32px, 5vw, 48px);
  letter-spacing: -0.035em;
  max-width: 18ch;
}
.ill-tagline {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--ink-2); margin-top: 14px; max-width: 54ch; font-weight: 450;
}
.ill-aka { font-size: 14px; color: var(--ink-3); margin-top: 12px; }

.ill-article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 40px 44px;
  box-shadow: var(--shadow-soft);
}
@media (max-width: 640px) {
  .ill-article { padding: 24px 18px 32px; border-radius: var(--radius-sm); }
}

.ill-section { margin-top: 34px; scroll-margin-top: 96px; }
.ill-section:first-of-type { margin-top: 0; }
.ill-lead p { font-size: 18px; color: var(--ink-2); line-height: 1.65; }
.ill-section h2 {
  font-size: clamp(22px, 3vw, 28px);
  margin-bottom: 14px;
  letter-spacing: -0.03em;
}
.ill-section h3 {
  font-size: 17px; font-weight: 800; margin: 0 0 10px; color: var(--green-deep);
}
.ill-section p {
  color: var(--ink-2); margin-top: 12px; line-height: 1.65; max-width: 68ch;
}
.ill-section ul {
  margin: 12px 0 0; padding-left: 1.15em; color: var(--ink-2);
  display: grid; gap: 10px; max-width: 68ch;
}
.ill-section li { line-height: 1.55; padding-left: 4px; }
.ill-section li::marker { color: var(--green); }

.ill-region {
  background: var(--green-soft);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  margin-top: 8px;
}
.ill-region p { color: var(--ink); }

.ill-related {
  list-style: none; padding: 0; margin: 12px 0 0;
  display: grid; gap: 10px;
}
.ill-related li a {
  display: grid; gap: 2px;
  padding: 14px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: border-color .15s ease, transform .15s ease;
}
.ill-related li a:hover { border-color: var(--green); transform: translateY(-1px); }
.ill-related li a span { font-size: 14px; color: var(--ink-3); font-weight: 450; }
.ill-related strong, .ill-related li a { font-weight: 700; color: var(--ink); }

.ill-faq details { border-bottom: 1px solid var(--line); }
.ill-faq summary {
  list-style: none; cursor: pointer; padding: 16px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  font-weight: 700; font-size: 16.5px;
}
.ill-faq summary::-webkit-details-marker { display: none; }
.ill-faq .chev { width: 20px; height: 20px; color: var(--ink-3); flex: none; transition: transform .2s ease; }
.ill-faq details[open] .chev { transform: rotate(180deg); color: var(--green-deep); }
.ill-faq .ans { color: var(--ink-2); padding: 0 0 16px; max-width: 68ch; line-height: 1.6; }

.ill-cta {
  margin-top: 40px;
  background: linear-gradient(160deg, #356B3E 0%, #2c5a33 55%, #243f28 100%);
  color: #fff;
  border-radius: var(--radius);
  overflow: hidden;
}
.ill-cta-inner { padding: 36px 32px; }
@media (max-width: 640px) { .ill-cta-inner { padding: 28px 20px; } }
.ill-cta-kicker {
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green-2); margin: 0 0 12px;
}
.ill-cta h2 {
  font-size: clamp(24px, 3.4vw, 32px); color: #fff; max-width: 22ch; letter-spacing: -0.03em;
}
.ill-cta p { color: rgba(255,255,255,.88); margin-top: 14px; max-width: 54ch; line-height: 1.6; }
.ill-cta-highlight {
  font-weight: 700; color: #fff !important;
  background: rgba(255,255,255,.1);
  border-left: 3px solid var(--green-2);
  padding: 12px 14px; border-radius: 0 12px 12px 0; margin-top: 18px !important;
}
.ill-cta .wl-form { margin-top: 22px; max-width: 520px; }
.ill-cta .wl-form input {
  background: #fff; border-color: transparent;
}
.ill-cta .wl-msg { color: #E7F0D9; }
.ill-cta .wl-msg.err { color: #F6E7D4; }
.ill-cta-fine { font-size: 13.5px !important; color: rgba(255,255,255,.65) !important; margin-top: 14px !important; }
.ill-cta-hub { margin: 48px 0 24px; }
.ill-cta-hub .btn { margin-top: 8px; }

.ill-disclaimer {
  margin-top: 36px;
  font-size: 13.5px;
  color: var(--ink-3);
  line-height: 1.55;
  padding: 16px 18px;
  background: var(--paper);
  border-radius: 14px;
  border: 1px dashed var(--line);
}
.ill-disclaimer strong { color: var(--ink-2); }
.ill-sources { margin-top: 10px; font-size: 12.5px; }

/* --- E-E-A-T byline ---------------------------------------------------
   Provenance shown up front, directly under the H1: who wrote it, what it
   was checked against, when it was last touched. On YMYL health content
   this is a primary trust signal, not decoration. */
.eeat {
  margin: 18px 0 0;
  padding: 14px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--green-2);
  border-radius: 12px;
}
.eeat-rows { display: grid; gap: 7px; }
.eeat-row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 4px 14px;
  align-items: baseline;
  font-size: 13.5px;
  line-height: 1.5;
}
@media (max-width: 560px) {
  .eeat-row { grid-template-columns: 1fr; gap: 1px; }
}
.eeat-k {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eeat-v { color: var(--ink-2); }
.eeat-v strong { color: var(--ink); }
.eeat-v a { color: var(--green-deep); font-weight: 600; }
.eeat-licence {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  border: 1px solid #d2e3bf;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--green-deep);
  white-space: nowrap;
}

/* --- Citations -------------------------------------------------------- */
.eeat-sources-lead {
  margin: 0 0 14px;
  font-size: 14.5px;
  color: var(--ink-2);
  max-width: 66ch;
}
.eeat-source-list {
  margin: 0;
  padding: 0 0 0 22px;
  display: grid;
  gap: 10px;
  font-size: 14.5px;
}
.eeat-source-list li { line-height: 1.45; }
.eeat-source-list a {
  color: var(--green-deep);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid #cfe0bc;
}
.eeat-source-list a:hover { border-bottom-color: var(--green-deep); }
.eeat-source-pub {
  display: block;
  color: var(--ink-3);
  font-size: 12.5px;
  margin-top: 1px;
}

.ill-side { position: sticky; top: 92px; display: grid; gap: 14px; }
@media (max-width: 960px) {
  .ill-side { position: static; }
}
.ill-side-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 18px 16px;
  box-shadow: var(--shadow-soft);
}
.ill-side-card h2 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--ink-3); margin: 0 0 12px; font-weight: 700;
}
.ill-side-card ol {
  margin: 0; padding-left: 1.1em; display: grid; gap: 8px;
  font-size: 14.5px; font-weight: 600; color: var(--ink-2);
}
.ill-side-card a { color: var(--green-deep); }
.ill-side-card a:hover { text-decoration: underline; }
.ill-side-card.soft p { font-size: 14.5px; margin: 0 0 8px; color: var(--ink-2); }
.ill-side-card .muted { color: var(--ink-3); font-size: 13.5px !important; }

/* Hub */
.ill-hub-hero { max-width: 62ch; margin-bottom: 40px; padding-top: 12px; }
.ill-hub-hero h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.035em; }
.ill-hub-lead { font-size: 19px; color: var(--ink-2); margin-top: 16px; line-height: 1.55; }
.ill-hub-count { margin-top: 18px; font-size: 15px; color: var(--ink-3); }
.ill-hub-count strong { color: var(--green-deep); font-size: 18px; }

.ill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
@media (max-width: 960px) { .ill-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ill-grid { grid-template-columns: 1fr; } }

.ill-card {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  box-shadow: var(--shadow-soft);
  transition: transform .15s ease, box-shadow .2s ease, border-color .15s ease;
  min-height: 100%;
}
.ill-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #cfc2a4;
}
.ill-card-top { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; min-height: 26px; }
.ill-card h2 { font-size: 19px; letter-spacing: -0.025em; }
.ill-card p { color: var(--ink-2); font-size: 14.5px; margin-top: 10px; flex: 1; line-height: 1.45; }
.ill-card-link {
  margin-top: 16px; font-weight: 700; font-size: 14px; color: var(--green-deep);
}

.ill-search-label {
  display: block; font-size: 13px; font-weight: 700; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: 0.04em; margin-top: 22px; margin-bottom: 8px;
}
.ill-search {
  width: 100%; max-width: 520px; padding: 14px 18px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--card); font: inherit; font-size: 16px;
  color: var(--ink); min-height: 50px;
}
.ill-search:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-soft); }

.ill-section-title {
  font-size: clamp(22px, 3vw, 28px); margin: 40px 0 20px; letter-spacing: -0.03em;
}
.ill-featured { margin-bottom: 40px; }

.ill-az-nav {
  display: flex; flex-wrap: wrap; gap: 6px 4px; align-items: center;
  padding: 16px 0; margin: 8px 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  position: sticky; top: 72px; z-index: 20; background: rgba(244, 235, 217, 0.94);
  backdrop-filter: blur(10px);
}
.ill-az-label { font-weight: 800; font-size: 13px; color: var(--ink-3); margin-right: 8px; }
.ill-az-nav a {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 32px; height: 32px; border-radius: 8px; font-weight: 700; font-size: 13px;
  color: var(--green-deep);
}
.ill-az-nav a:hover { background: var(--green-soft); }

.ill-az { margin-bottom: 28px; scroll-margin-top: 130px; }
.ill-az.is-hidden { display: none; }
.ill-az-letter {
  font-size: 28px; color: var(--green-deep); margin-bottom: 10px;
  border-bottom: 2px solid var(--green-soft); padding-bottom: 6px; max-width: 3ch;
}
.ill-az-list {
  list-style: none; padding: 0; margin: 0;
  columns: 2; column-gap: 28px;
}
@media (max-width: 700px) { .ill-az-list { columns: 1; } }
.ill-az-list li {
  break-inside: avoid; padding: 5px 0; font-size: 15px;
}
.ill-az-list a { font-weight: 600; color: var(--ink); }
.ill-az-list a:hover { color: var(--green-deep); text-decoration: underline; }
.ill-az-tag {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em;
  color: var(--amber); background: var(--amber-soft); padding: 2px 7px; border-radius: 999px; margin-left: 6px;
}
/* Anchor axis reads in brand green so inflammation leads the row visually. */
.ill-az-tag.az-inflammation { color: var(--green-deep); background: var(--green-soft); }
.ill-az-list li.is-hidden { display: none; }

.ill-hub-cats { margin-top: 56px; }
.ill-hub-cats-title { font-size: clamp(26px, 3.5vw, 34px); margin-bottom: 28px; }
.ill-cat { margin-bottom: 32px; }
.ill-cat h2 { font-size: 18px; color: var(--green-deep); margin-bottom: 12px; }
.ill-cat-count {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 28px; height: 22px; padding: 0 8px; margin-left: 8px;
  border-radius: 999px; background: var(--paper-2); color: var(--ink-3);
  font-size: 12px; font-weight: 700; vertical-align: middle;
}
.ill-cat-list {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
@media (max-width: 700px) { .ill-cat-list { grid-template-columns: 1fr; } }
.ill-cat-list a {
  display: grid; gap: 3px;
  padding: 14px 16px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.ill-cat-list a:hover { border-color: var(--green); }
.ill-cat-list strong { font-size: 15.5px; }
.ill-cat-list span { font-size: 13.5px; color: var(--ink-3); font-weight: 450; }
