/* The Pulse Letter — shared styles for the articles section.
   Inherits the full design system (tokens, header, page-head, prose, footer)
   from legal.css, then adds article-specific pieces. */
@import url("/legal.css");

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin-bottom: var(--s-3);
}
.breadcrumb ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px;
}
.breadcrumb li { display: inline-flex; align-items: center; gap: 8px; }
.breadcrumb li + li::before {
  content: "";
  width: 5px; height: 5px;
  border-right: 1.5px solid var(--ink-faint);
  border-top: 1.5px solid var(--ink-faint);
  transform: rotate(45deg);
  opacity: .8;
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; border-bottom: 1px solid var(--line); }
.breadcrumb a:hover { color: var(--brand); border-bottom-color: var(--brand); }
.breadcrumb [aria-current="page"] { color: var(--ink-faint); }

/* ---------- Byline ---------- */
.byline {
  margin-top: var(--s-4);
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  font-size: 0.84rem; color: var(--ink-faint);
}
.byline .sep { width: 4px; height: 4px; border-radius: 999px; background: var(--line); }
.byline .read-time { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; color: var(--ink-soft); }
.byline .read-time svg { width: 14px; height: 14px; }

/* ---------- Medical disclaimer callout ---------- */
.disclaimer {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: var(--s-6);
}
.disclaimer .dicon {
  flex: none; width: 26px; height: 26px; border-radius: 8px;
  background: var(--accent); color: #fff;
  display: grid; place-items: center; margin-top: 1px;
}
.disclaimer .dicon svg { width: 16px; height: 16px; }
.disclaimer h2 {
  font-family: var(--sans); font-size: 0.7rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.09em;
  color: #8a4318; margin: 0 0 4px; line-height: 1.4;
}
.disclaimer p { font-size: 0.9rem; line-height: 1.6; color: #5c4030; margin: 0; }

/* ---------- Article body ---------- */
.article-body .container { max-width: 720px; }
.article-body h2 { margin-top: 0; }
.article-body h3 { color: var(--ink); }
.article-body p.standfirst {
  font-size: 1.12rem; line-height: 1.6; color: var(--ink);
  padding-bottom: var(--s-4); margin-bottom: var(--s-5);
  border-bottom: 1px solid var(--line);
}
.article-body ul.plain { list-style: none; margin: var(--s-3) 0 0; padding: 0; }
.article-body ul.plain li {
  position: relative; padding: 7px 0 7px 20px; border-bottom: none;
  color: var(--ink-soft); font-size: 1rem; line-height: 1.55;
}
.article-body ul.plain li::before {
  content: ""; position: absolute; left: 2px; top: 16px;
  width: 6px; height: 6px; border-radius: 999px; background: var(--accent);
}
.article-body ul.plain li strong { color: var(--ink); }
.article-body .cite {
  font-size: 0.88rem; color: var(--ink-faint); line-height: 1.6;
  margin-top: var(--s-3); padding-left: var(--s-3);
  border-left: 2px solid var(--line);
}
.article-body .cite em { color: var(--ink-soft); }

/* ---------- Numbered question list ---------- */
.qlist { list-style: none; margin: 0; padding: 0; counter-reset: q; }
.qlist > li {
  counter-increment: q;
  position: relative;
  padding: 0 0 0 54px;
  border-bottom: none;
}
.qlist > li + li { margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.qlist > li::before {
  content: counter(q);
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--brand-soft); color: var(--brand);
  font-family: var(--display); font-weight: 600; font-size: 1.05rem;
  display: grid; place-items: center;
}
.qlist > li + li::before { top: var(--s-5); }
.qlist h2 {
  font-family: var(--sans); font-weight: 700; font-size: 1.06rem;
  letter-spacing: -0.005em; line-height: 1.4;
  margin: 0 0 var(--s-2); padding-top: 5px;
}
.qlist p { color: var(--ink-soft); font-size: 1rem; }
.qlist p + p { margin-top: var(--s-2); }

/* ---------- Article cards / grid ---------- */
.card-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }

.article-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: var(--s-4) var(--s-4) var(--s-4);
  text-decoration: none; color: var(--ink);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.article-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow-md);
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
}
.article-card .cicon {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--brand-soft); color: var(--brand);
  display: grid; place-items: center; margin-bottom: var(--s-3);
}
.article-card .cicon svg { width: 19px; height: 19px; }
.article-card h3 {
  font-family: var(--display); font-weight: 600; font-size: 1.16rem;
  line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 8px;
}
.article-card p.desc { font-size: 0.92rem; color: var(--ink-soft); line-height: 1.55; margin: 0 0 var(--s-4); }
.article-card .meta {
  margin-top: auto; padding-top: var(--s-3);
  border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 0.82rem; color: var(--ink-faint);
}
.article-card .go { font-weight: 600; color: var(--brand); }
.article-card:hover .go { color: var(--brand-dark); }

/* ---------- End-of-article footer / back link ---------- */
.article-end {
  margin-top: var(--s-6); padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}
.article-end .back {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 0.96rem; color: var(--brand);
  text-decoration: none;
}
.article-end .back svg { width: 16px; height: 16px; }
.article-end .back:hover { color: var(--brand-dark); }
.article-end .back:hover svg { transform: translateX(-2px); }
.article-end .back svg { transition: transform .15s ease; }
.article-end p.tail { margin-top: var(--s-3); font-size: 0.88rem; color: var(--ink-faint); }

/* ---------- Section band for the hub ---------- */
.hub { padding: var(--s-6) 0 var(--s-7); }
.hub .container { max-width: 1120px; }
.hub .disclaimer { max-width: 760px; }

/* ---------- Affiliate line in the footer ---------- */
.affiliate-line {
  margin-top: var(--s-3);
  font-size: 0.84rem; color: #aab6af;
}

/* ---------- Hero band illustration ---------- */
.page-head.has-art .head-grid { display: grid; gap: var(--s-5); align-items: center; }
@media (min-width: 860px) {
  .page-head.has-art .head-grid { grid-template-columns: 1.25fr 0.95fr; gap: var(--s-7); }
}
.head-art { order: -1; }
@media (min-width: 860px) { .head-art { order: 0; } }
.head-art .art-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-md);
  padding: var(--s-4); overflow: hidden;
}
.head-art .art-card.tinted { background: linear-gradient(160deg, var(--brand-tint), var(--surface)); }
.head-art svg { width: 100%; height: auto; display: block; }

/* ---------- Icon-subhead accent on section headings ---------- */
.article-body section > h2 { position: relative; padding-left: 18px; }
.article-body section > h2::before {
  content: ""; position: absolute; left: 0; top: .2em; bottom: .2em;
  width: 5px; border-radius: 3px; background: var(--accent);
}

/* ---------- Pull-quote ---------- */
.pullquote {
  margin: var(--s-5) 0; padding: var(--s-4) var(--s-5);
  border-left: 4px solid var(--brand);
  background: var(--brand-tint);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-family: var(--display); font-weight: 500;
  font-size: clamp(1.15rem, 2.6vw, 1.45rem); line-height: 1.36; color: var(--ink);
}
.pullquote::before {
  content: "\201C"; color: var(--brand);
  font-size: 1.3em; line-height: 0; vertical-align: -0.28em; margin-right: 3px;
}
