/* ============================================================
   MY CITY MY HEALTH — Articles section
   Loaded only by /articles and /articles/<slug>. Uses the tokens in
   styles.css (--font-display, --border, --radius-*, ...) and the
   conference-hero / newsletter-article / cta-banner components.
   Colors checked for WCAG AA (4.5:1 text) on their backgrounds.
   ============================================================ */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------- Listing page ---------- */
.articles-list-heading { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 1.5rem; }
.page-hero--dark .page-hero__eyebrow { color: #a6c9ff; }   /* AA on the #0a0a0a hero */
.articles-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 22rem), 1fr)); }
.articles-card, .articles-more { border-color: var(--border); }
.articles-card:hover, .articles-card:focus-within { box-shadow: var(--shadow-md); }
/* card thumbnail = the 1200x630 link-preview image, shown uncropped. Decorative (alt=""): the card title next to it says the same thing. */
.articles-card > img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-bottom: 1px solid var(--border); }
.articles-card__category {
  font-family: var(--font-label); font-size: .78rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #124d9b; margin: 0;
}
.articles-card .newsletter-article__body h3,
.articles-more .newsletter-article__body h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); line-height: 1.25; }
.articles-card h3 a { color: var(--warm-black); }
.articles-card h3 a:hover { color: #124d9b; text-decoration: underline; text-underline-offset: .18em; }
.articles-card .newsletter-article__body p { color: #454c58; font-size: 1rem; }
.articles-more { background: #edf4ff; border-style: dashed; border-color: #8fb0e6; }
.articles-more p { color: #3b4350; font-size: 1rem; }
.articles-card a:focus-visible, .articles-more a:focus-visible,
.article-body a:focus-visible, .article-toc a:focus-visible, .article-share a:focus-visible,
.cta-banner a:focus-visible, .conference-breadcrumb a:focus-visible { outline: 3px solid #126efd; outline-offset: 3px; }
.cta-banner a:focus-visible, .conference-hero a:focus-visible { outline-color: #a6c9ff; }
.article-cta__buttons { justify-content: center; }

/* ---------- Article hero ---------- */
.article-hero { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.article-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); max-width: 26ch; line-height: 1.12; margin: 1rem 0 1.25rem; }
.article-hero__eyebrow {
  font-family: var(--font-label); font-size: .8rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase; color: #a6c9ff !important; margin: 1.5rem 0 0 !important;
}
.article-hero p.article-hero__dek { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 62ch; color: #e1e8f7; line-height: 1.6; }
.article-hero p.article-meta { font-size: .92rem; color: #c9d6ee; margin-top: 1.25rem; max-width: none; }

/* ---------- Article layout ---------- */
.article-section { padding-top: clamp(2.5rem, 6vw, 4.5rem); }
.article-layout { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 46rem); gap: clamp(2rem, 5vw, 4.5rem); justify-content: center; align-items: start; }
.article-toc { position: sticky; top: 6rem; border-top: 3px solid #234e92; padding-top: 1rem; }
.article-toc .article-toc__title { font-family: var(--font-label); font-size: .8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #3b4350; margin-bottom: .5rem; }
.article-toc ol { list-style: none; }
.article-toc li { margin: 0; }
.article-toc a { display: block; padding: .4rem 0; font-size: .95rem; color: #124d9b; text-decoration: underline; text-underline-offset: .2em; }
.article-toc a:hover { color: #0a3a78; }

/* ---------- Article body ---------- */
.article-body { font-size: 1.125rem; line-height: 1.75; min-width: 0; overflow-wrap: break-word; }
.article-body p, .article-body li { color: #262b35; font-size: 1.125rem; line-height: 1.75; }
.article-body p { margin: 0 0 1.15rem; }
.article-body h2 { font-size: clamp(1.55rem, 2.8vw, 2.05rem); margin: 2.75rem 0 .9rem; scroll-margin-top: 6rem; }
.article-body h2:first-child { margin-top: 0; }
.article-body strong { color: #0a0a0a; }
.article-body a { color: #124d9b; text-decoration: underline; text-underline-offset: .18em; text-decoration-thickness: 1px; }
.article-body a:hover { color: #0a3a78; text-decoration-thickness: 2px; }
.article-body a.btn { text-decoration: none; }
.article-body ul, .article-body ol { margin: 0 0 1.35rem; padding-left: 1.5rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: .55rem; padding-left: .25rem; }
.article-body li::marker { color: #124d9b; font-weight: 700; }

.article-callout { background: #edf4ff; border-left: 4px solid #124d9b; border-radius: 0 var(--radius-md) var(--radius-md) 0; padding: 1.1rem 1.4rem; margin: 1.75rem 0; }
.article-callout p { margin: 0; color: #1b2230; font-size: 1.05rem; }

.article-share { background: #f5f5f5; border-radius: var(--radius-lg); padding: clamp(1.25rem, 3vw, 2rem); margin: 3rem 0 0; }
.article-share h2 { margin-top: 0; font-size: clamp(1.4rem, 2.4vw, 1.8rem); }
.article-share__links { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.25rem 0 0 !important; }
.article-share .btn { font-size: .8rem; padding: .7rem 1.1rem; color: var(--warm-black); white-space: normal; }
.article-share .btn:hover { color: var(--cream); }

.article-resources { border-top: 3px solid #234e92; margin-top: 3rem; padding-top: .5rem; }
.article-resources ul { list-style: none; padding-left: 0; }
.article-resources li { padding: .65rem 0; border-bottom: 1px solid var(--border); margin: 0; }
.article-resources > p > strong { display: block; margin-top: 1.5rem; font-family: var(--font-display); font-size: 1.15rem; }

.article-note { border-top: 1px solid var(--border); margin-top: 3rem; padding-top: 1.25rem; }
.article-note p { font-size: .95rem; color: #3b4350; }
.article-note a { color: #124d9b; text-decoration: underline; }
.article-back { margin-top: 2rem; }
.article-body .article-back a { text-decoration: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .article-layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .article-toc { position: static; max-width: 46rem; }
  .article-toc ol { columns: 1; }
}
@media (max-width: 640px) {
  .article-body, .article-body p, .article-body li { font-size: 1.05rem; }
  .article-share__links .btn { width: 100%; justify-content: center; }
  .article-hero h1 { font-size: clamp(1.75rem, 8vw, 2.2rem); }
}
@media (prefers-reduced-motion: reduce) { .articles-card { transition: none; } }

/* keep phone numbers on one line */
.article-body a[href^="tel:"], .article-callout a[href^="tel:"], .article-note a[href^="tel:"] { white-space: nowrap; }

