/* ── Urgent Care at Home — content.css ──
   Article/guide layout: reading column, breadcrumb, prose typography,
   key-takeaways + clinical flag callouts, author/reviewer card, related-links.
   Extends theme.css (tokens, nav, footer, buttons, eyebrow). Palette-aware. */

/* ---- ARTICLE SHELL ---- */
.article {
  padding: 48px 0 24px;
}
.article-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (max-width: 720px) { .article { padding: 28px 0 16px; } }

/* ---- BREADCRUMB ---- */
.breadcrumb {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumb a { color: var(--muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--brand-deep); }
.breadcrumb .sep { opacity: .5; }
.breadcrumb [aria-current="page"] { color: var(--ink); }

/* ---- ARTICLE HEADER ---- */
.article-head { margin-bottom: 30px; }
.article-head .eyebrow { margin-bottom: 16px; }
.article-head h1 {
  font-size: clamp(30px, 4.4vw, 46px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -.03em;
  text-wrap: balance;
  color: var(--ink);
}
.article-lede {
  font-size: 19px;
  line-height: 1.6;
  color: var(--muted);
  margin-top: 18px;
}

/* ---- BYLINE / META ---- */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  font-size: 13.5px;
  color: var(--muted);
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.article-meta .by { color: var(--ink); font-weight: 600; }
.article-meta svg { width: 15px; height: 15px; vertical-align: -3px; margin-right: 5px; }

/* ---- PROSE ---- */
.guide-prose { font-size: 17px; line-height: 1.75; color: #334155; }
:root[data-palette="gold"] .guide-prose { color: #3a3a36; }
.guide-prose > * + * { margin-top: 18px; }
.guide-prose h2 {
  font-size: clamp(23px, 3vw, 29px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -.02em;
  color: var(--brand-deep);
  margin-top: 44px;
}
.guide-prose h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--ink);
  margin-top: 30px;
}
.guide-prose p { margin: 0; }
.guide-prose strong { font-weight: 700; color: var(--ink); }
.guide-prose a {
  color: var(--brand-deep);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--brand-tint-strong);
  text-underline-offset: 2px;
  transition: text-decoration-color .15s;
}
.guide-prose a:hover { text-decoration-color: var(--brand); }
.guide-prose ul, .guide-prose ol { padding-left: 22px; margin: 18px 0; }
.guide-prose ul { list-style: disc; }
.guide-prose ol { list-style: decimal; }
.guide-prose li { margin-bottom: 9px; padding-left: 4px; }
.guide-prose li::marker { color: var(--brand); }
.guide-prose blockquote {
  margin: 24px 0;
  padding: 4px 0 4px 22px;
  border-left: 3px solid var(--brand);
  color: var(--muted);
  font-style: italic;
}
.guide-prose hr { border: none; border-top: 1px solid var(--rule); margin: 36px 0; }

/* tables */
.guide-prose table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 24px 0; }
.guide-prose th { background: var(--surface); text-align: left; padding: 11px 14px; font-weight: 600; border: 1px solid var(--rule); color: var(--ink); }
.guide-prose td { padding: 11px 14px; border: 1px solid var(--rule); vertical-align: top; }

/* ---- KEY TAKEAWAYS ---- */
.key-takeaways {
  background: var(--brand-tint);
  border: 1px solid var(--brand-tint-strong);
  border-radius: 16px;
  padding: 26px 30px;
  margin: 30px 0 8px;
}
.key-takeaways h2 {
  font-size: 14px !important;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--brand-deep);
  margin: 0 0 14px !important;
}
.key-takeaways ul { list-style: none; padding: 0; margin: 0; }
.key-takeaways li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 11px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
}
.key-takeaways li:last-child { margin-bottom: 0; }
.key-takeaways li::before {
  content: '';
  position: absolute;
  left: 0; top: 6px;
  width: 16px; height: 16px;
  background: var(--brand-deep);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center / contain;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='black' d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* ---- CLINICAL FLAG CALLOUTS (palette-independent safety colours) ---- */
.flag {
  border-radius: 14px;
  padding: 20px 24px 20px 56px;
  margin: 26px 0;
  position: relative;
  font-size: 16px;
  line-height: 1.6;
}
.flag h3 { font-size: 16px !important; margin: 0 0 6px !important; font-weight: 700; }
.flag p { margin: 0; }
.flag::before {
  content: '';
  position: absolute;
  left: 20px; top: 21px;
  width: 22px; height: 22px;
  background-size: contain;
  background-repeat: no-repeat;
}
.flag-emergency {
  background: #fdeceb; border: 1px solid #f3b8b3; color: #7d2019;
}
.flag-emergency h3 { color: #c0392b; }
.flag-emergency::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c0392b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.3 3.9 1.8 18a2 2 0 0 0 1.7 3h17a2 2 0 0 0 1.7-3L13.7 3.9a2 2 0 0 0-3.4 0z'/%3E%3Cpath d='M12 9v4M12 17h.01'/%3E%3C/svg%3E");
}
.flag-safe {
  background: #e9f7ef; border: 1px solid #a8dcc0; color: #185e3b;
}
.flag-safe h3 { color: #1a7f4b; }
.flag-safe::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a7f4b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 11.1V12a10 10 0 1 1-5.9-9.1'/%3E%3Cpath d='M22 4 12 14.01l-3-3'/%3E%3C/svg%3E");
}
.flag-info {
  background: var(--surface); border: 1px solid var(--rule); color: var(--ink);
}
.flag-info h3 { color: var(--brand-deep); }
.flag-info::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a1f44' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E");
}

/* ---- AUTHOR / REVIEWER CARD ---- */
.author-card {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 22px 24px;
  margin: 40px 0 8px;
}
.author-card img {
  width: 64px; height: 64px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--brand-tint);
}
.author-card .ac-body { font-size: 14.5px; line-height: 1.5; }
.author-card .ac-role { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; }
.author-card .ac-name { font-size: 16.5px; font-weight: 700; color: var(--ink); margin: 3px 0; }
.author-card .ac-cred { color: var(--muted); }

/* ---- DOCTOR PROFILE CARDS (our-doctors.html) ---- */
.doc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 36px; margin-top: 48px; }
.doc-card {
  background: var(--surface); border: 1px solid var(--rule); border-radius: 20px;
  overflow: hidden; transition: transform .2s ease, box-shadow .2s ease;
}
.doc-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -16px var(--shadow); }
.doc-photo {
  width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: top;
  background: var(--brand-tint);
}
.doc-photo--placeholder {
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--brand-deep) 0%, color-mix(in srgb, var(--brand) 40%, var(--brand-deep)) 100%);
  color: rgba(255,255,255,.7);
}
.doc-photo--placeholder svg { width: 72px; height: 72px; }
.doc-body { padding: 28px 28px 32px; }
.doc-role { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); font-weight: 600; margin-bottom: 4px; }
.doc-name { font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.15; letter-spacing: -.01em; }
.doc-quals { font-size: 13.5px; color: var(--muted); margin: 6px 0 16px; line-height: 1.45; }
.doc-bio { font-size: 15px; line-height: 1.65; color: var(--ink); }
.doc-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.doc-tag {
  font-size: 12px; font-weight: 600; color: var(--brand-deep); background: var(--brand-tint);
  padding: 5px 12px; border-radius: 999px; white-space: nowrap;
}
.doc-langs { font-size: 13px; color: var(--muted); margin-top: 14px; }
.doc-langs strong { color: var(--ink); font-weight: 600; }
@media (max-width:720px) { .doc-grid { grid-template-columns: 1fr; gap: 28px; } }

/* ---- INFOGRAPHIC FIGURE (branded SVG, reusable on social) ---- */
.guide-figure { margin: 34px 0; }
.guide-figure img {
  width: 100%;
  max-width: 520px;
  height: auto;
  display: block;
  margin: 0 auto;
  border: 1px solid var(--rule);
  border-radius: 18px;
  box-shadow: 0 14px 34px -20px var(--shadow);
}
.guide-figure figcaption {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--muted);
  text-align: center;
  max-width: 520px;
  margin: 12px auto 0;
}
.guide-figure figcaption a { color: var(--muted); text-decoration: underline; }

/* ---- RELATED LINKS ---- */
.related {
  border-top: 1px solid var(--rule);
  margin-top: 48px;
  padding-top: 36px;
}
.related h2 { font-size: 21px; font-weight: 700; color: var(--ink); margin-bottom: 20px; letter-spacing: -.02em; }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.related-card {
  display: block;
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 22px 24px;
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
  background: var(--bg);
}
.related-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px -18px var(--shadow); border-color: var(--brand-tint-strong); }
.related-card .rc-tag { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); font-weight: 600; }
.related-card .rc-title { font-size: 17px; font-weight: 700; color: var(--ink); margin: 8px 0 6px; line-height: 1.3; }
.related-card .rc-desc { font-size: 14px; color: var(--muted); line-height: 1.5; }
@media (max-width: 620px) { .related-grid { grid-template-columns: 1fr; } }

/* ---- LANDING-PAGE PROSE SECTION (shared by niche LPs that need body copy) ---- */
.lp-section { padding: 64px 0; }
.lp-section.alt { background: var(--surface); }
.lp-narrow { max-width: 820px; }
.lp-prose { font-size: 17.5px; line-height: 1.7; color: var(--muted); }
.lp-prose > * + * { margin-top: 16px; }
.lp-prose strong { color: var(--ink); }

/* landing hero */
.lp-hero { padding: 54px 0 22px; }
.lp-hero h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 700; letter-spacing: -.03em; line-height: 1.08; text-wrap: balance; color: var(--ink); margin: 16px 0; }
.lp-hero .sec-sub { max-width: 680px; }
.lp-cta-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 26px; }

/* feature/benefit cards reused on landing pages */
.lp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.lp-card { border: 1px solid var(--rule); border-radius: 18px; padding: 28px; background: var(--bg); }
.lp-card .lp-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-tint); color: var(--brand-deep); display: grid; place-items: center; margin-bottom: 16px; }
.lp-card .lp-ic svg { width: 22px; height: 22px; }
.lp-card h3 { font-size: 18px; font-weight: 700; color: var(--ink); margin-bottom: 8px; }
.lp-card p { font-size: 14.5px; line-height: 1.6; color: var(--muted); }
@media (max-width: 820px) { .lp-cards { grid-template-columns: 1fr; } }

/* ---- RESOURCES HUB ---- */
.res-hub { padding: 56px 0 80px; }
.res-cluster { margin-top: 48px; }
.res-cluster > h2 { font-size: 24px; font-weight: 700; color: var(--brand-deep); letter-spacing: -.02em; margin-bottom: 6px; }
.res-cluster > p { font-size: 15.5px; color: var(--muted); margin-bottom: 22px; }
.res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.res-card {
  display: block;
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 26px 28px;
  background: var(--bg);
  transition: transform .15s ease, box-shadow .2s ease, border-color .2s ease;
}
.res-card:hover { transform: translateY(-4px); box-shadow: 0 18px 38px -20px var(--shadow); border-color: var(--brand-tint-strong); }
.res-card.pillar { background: var(--brand-tint); border-color: var(--brand-tint-strong); }
.res-card .rc-kicker { font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--brand); }
.res-card h3 { font-size: 19px; font-weight: 700; color: var(--ink); margin: 9px 0 8px; line-height: 1.25; }
.res-card p { font-size: 14.5px; color: var(--muted); line-height: 1.55; }
@media (max-width: 620px) { .res-grid { grid-template-columns: 1fr; } }
