/* ================================================================
   NPIT HEALTH HUB — BLOG SINGLE ARTICLE STYLES
   Matches health-hub/*/index.html exactly.
   Cream-first palette: off-white base, coral energy, black accents.
   ================================================================ */

/* Blog page overrides: cream background, dark text */
.page-light {
  background: var(--paper);
  color: var(--ink);
}

/* ---------- header (cream variant on blog pages) ---------- */
body.single-post .site-header,
body.single .site-header {
  background: rgba(244,242,237,.85);
  border-bottom-color: rgba(22,24,29,.14);
}
body.single-post .site-header .main-nav a,
body.single .site-header .main-nav a {
  color: var(--ink);
}
body.single-post .site-header .main-nav a::after,
body.single .site-header .main-nav a::after {
  background: var(--coral);
}
body.single-post .site-header .nav-toggle span,
body.single .site-header .nav-toggle span {
  background: var(--ink);
}
body.single-post .site-header .dropdown,
body.single .site-header .dropdown {
  background: #ffffff;
  color: var(--ink);
  border: 1px solid rgba(22,24,29,.08);
  box-shadow: 0 12px 36px rgba(0,0,0,.15);
}

/* ---------- CSS extras for blog ---------- */
:root {
  --card: #FFFFFF;
  --line-light: rgba(244,242,237,.16);
  --accent: var(--coral);
  --accent-deep: var(--coral-deep);
}

/* Single Post layout: cream page background matching Image 5 */
body.single-post, body.single {
  background: var(--paper);
  color: var(--ink);
}

/* ---------- breadcrumb ---------- */
.crumbs {
  padding: calc(96px + var(--s3)) 0 0;
}
.crumbs ol {
  display: flex;
  gap: 8px;
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(22,24,29,.55);
  list-style: none;
  flex-wrap: wrap;
}
.crumbs a:hover { color: var(--coral-deep); }
.crumbs li+li::before {
  content: "/";
  margin-right: 8px;
  color: rgba(22,24,29,.3);
}

/* ---------- post cover banner ---------- */
.post-cover {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  height: clamp(200px,26vw,300px);
  margin-top: var(--s4);
  border-radius: 16px;
}
.post-cover-wm {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(70px,14vw,180px);
  letter-spacing: .02em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(244,242,237,.08);
  user-select: none;
  white-space: nowrap;
}
.post-cover-icon {
  position: relative;
  z-index: 2;
  width: clamp(64px,9vw,96px);
  height: clamp(64px,9vw,96px);
  border-radius: 50%;
  background: rgba(244,242,237,.06);
  border: 1.5px solid var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
}
.post-cover-icon svg {
  width: 46%;
  height: 46%;
  fill: none;
  stroke: var(--coral);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.post-cover-inner {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.post-cover-tag {
  position: relative;
  z-index: 2;
  font-family: var(--head);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--coral);
}

/* ---------- article hero ---------- */
#article-hero {
  position: relative;
  overflow: hidden;
  padding: var(--s6) 0 var(--s8);
}
.art-meta-row {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
  align-items: center;
  margin: var(--s4) 0 0;
  font-size: 13px;
  letter-spacing: .04em;
  color: rgba(22,24,29,.55);
}
.art-meta-row .tag {
  background: var(--ink);
  color: var(--paper);
  padding: 5px 14px;
  border-radius: 999px;
  font-family: var(--head);
  font-size: 11.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.art-meta-row .dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(22,24,29,.3);
}
#article-hero h1 {
  font-size: clamp(34px,4.4vw,62px);
  font-weight: 700;
  max-width: 920px;
  position: relative;
  z-index: 2;
}
#article-hero h1 em { font-style: normal; color: var(--coral-deep); }
#article-hero .lede {
  margin-top: var(--s4);
  max-width: 720px;
  position: relative;
  z-index: 2;
  color: rgba(22,24,29,.72);
}

/* ---------- article layout ---------- */
#article-body {
  padding: 0 0 var(--s10);
  position: relative;
}
.art-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--s8);
  align-items: start;
}
.art-prose { max-width: 720px; }
.art-prose h2 {
  font-size: clamp(24px,2.4vw,34px);
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  margin: var(--s8) 0 var(--s3);
  line-height: 1.15;
}
.art-prose h2:first-child { margin-top: 0; }
.art-prose h3 {
  font-size: 19px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  margin: var(--s5) 0 var(--s2);
  color: var(--coral-deep);
}
.art-prose p {
  margin-bottom: var(--s3);
  color: rgba(22,24,29,.82);
}
.art-prose ul,
.art-prose ol {
  margin: 0 0 var(--s4);
  padding-left: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}
.art-prose ul li,
.art-prose ol li {
  position: relative;
  padding-left: 28px;
  color: rgba(22,24,29,.82);
}
.art-prose ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}
.art-prose ol {
  counter-reset: artstep;
}
.art-prose ol li::before {
  counter-increment: artstep;
  content: counter(artstep);
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--coral);
  color: var(--ink);
  font-family: var(--head);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.art-prose strong { font-weight: 600; color: var(--ink); }
.art-prose a { color: var(--coral-deep); text-decoration: underline; }
.art-prose a:hover { color: var(--coral); }

/* callout box */
.callout {
  background: #fff;
  border: 1px solid rgba(22,24,29,.14);
  border-left: 4px solid var(--coral);
  border-radius: 10px;
  padding: var(--s4);
  margin: var(--s5) 0;
}
.callout h4 {
  font-family: var(--head);
  font-size: 13px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 10px;
}
.callout p { margin-bottom: 0; font-size: 15.5px; }

blockquote {
  border-left: 4px solid var(--ink);
  padding: var(--s2) 0 var(--s2) var(--s4);
  margin: var(--s5) 0;
  font-family: var(--head);
  font-size: clamp(20px,2vw,26px);
  font-weight: 500;
  text-transform: none;
  line-height: 1.3;
  color: var(--ink);
}

/* mid-article CTA */
.mid-cta {
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
  padding: var(--s5);
  margin: var(--s6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s4);
  flex-wrap: wrap;
}
.mid-cta h3 {
  font-size: 20px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--paper);
  margin-bottom: 6px;
}
.mid-cta p { color: rgba(244,242,237,.65); font-size: 14.5px; margin: 0; }

/* sources */
.sources {
  max-width: 720px;
  font-size: 13px;
  color: rgba(22,24,29,.5);
  margin-top: var(--s5);
  line-height: 1.7;
}
.sources a { color: var(--coral-deep); text-decoration: underline; }

/* ---------- sidebar ---------- */
.art-sidebar {
  position: sticky;
  top: calc(96px + var(--s4));
  display: grid;
  gap: var(--s4);
}
.side-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: 16px;
  padding: var(--s5);
}
.side-card h4 {
  font-family: var(--head);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--coral);
  margin-bottom: var(--s2);
}
.side-card h3 {
  font-size: 21px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--paper);
  margin-bottom: var(--s2);
}
.side-card p {
  font-size: 14.5px;
  color: rgba(244,242,237,.65);
  margin-bottom: var(--s3);
}
.side-card .btn { width: 100%; }
.side-service {
  background: #fff;
  border: 1px solid rgba(22,24,29,.14);
  border-radius: 16px;
  padding: var(--s4);
}
.side-service h4 {
  font-family: var(--head);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--coral-deep);
  margin-bottom: 10px;
}
.side-service a.go {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--head);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 2px solid var(--coral);
  padding-bottom: 3px;
  margin-top: 10px;
}
.side-toc {
  background: #fff;
  border: 1px solid rgba(22,24,29,.14);
  border-radius: 16px;
  padding: var(--s4);
}
.side-toc h4 {
  font-family: var(--head);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(22,24,29,.5);
  margin-bottom: var(--s2);
}
.side-toc ul { display: grid; gap: 8px; }
.side-toc a { font-size: 14px; color: rgba(22,24,29,.75); }
.side-toc a:hover { color: var(--coral-deep); }

/* ---------- FAQ ---------- */
#article-faq {
  padding: var(--s10) 0;
  background: #EBE8E0;
  position: relative;
}
.faq { max-width: 840px; position: relative; z-index: 2; }
.faq details {
  background: #fff;
  border: 1px solid rgba(22,24,29,.14);
  border-radius: 12px;
  margin-bottom: var(--s2);
  overflow: hidden;
  transition: border-color .3s;
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s3) var(--s4);
  cursor: pointer;
  font-family: var(--head);
  font-size: 16px;
  font-weight: 500;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ind {
  color: var(--coral-deep);
  font-size: 22px;
  line-height: 1;
  transition: transform .3s;
}
.faq details[open] summary .ind { transform: rotate(45deg); }
.faq details p { padding: 0 var(--s4) var(--s3); font-size: 15px; color: rgba(22,24,29,.72); }
.faq details[open] { border-color: var(--coral); }

/* ---------- related articles ---------- */
#related-reading {
  padding: var(--s10) 0;
  background: var(--paper);
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: var(--s4);
  margin-top: var(--s5);
}
.rel-card {
  display: block;
  background: var(--ink);
  color: var(--paper);
  border-radius: 14px;
  padding: var(--s4);
  border: 1px solid rgba(244,242,237,.14);
  transition: transform .4s cubic-bezier(.22,1,.36,1), box-shadow .4s;
}
.rel-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 50px rgba(22,24,29,.25);
}
.rel-card .cat {
  font-family: var(--head);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--coral);
  display: block;
  margin-bottom: 10px;
}
.rel-card h3 {
  font-size: 19px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--paper);
  margin-bottom: 8px;
  line-height: 1.25;
}
.rel-card p { font-size: 13.5px; color: rgba(244,242,237,.6); margin-bottom: var(--s2); }
.rel-card .go {
  font-family: var(--head);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--coral);
}

/* ---------- final CTA ---------- */
#article-cta {
  padding: var(--s10) 0 var(--s12);
  position: relative;
  overflow: hidden;
  background: var(--coral);
  border-top: 6px solid var(--coral-deep);
}
#article-cta .wrap {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: var(--s8);
  align-items: center;
  position: relative;
  z-index: 2;
}
#article-cta h2 { font-size: clamp(32px,4vw,54px); font-weight: 700; }
#article-cta .btn-dark { margin-top: var(--s4); }

/* dark button for article CTA */
.btn-dark { background: var(--ink); color: var(--paper); }
.btn-dark:hover { background: #000; }

/* ---------- mobile / responsive ---------- */
@media (max-width: 1080px) {
  .art-grid { grid-template-columns: 1fr; }
  .art-sidebar { position: static; }
  .related-grid { grid-template-columns: 1fr; }
  #article-cta .wrap { grid-template-columns: 1fr; gap: var(--s6); }
  .art-prose { max-width: 100%; }
}
@media (max-width: 560px) {
  .mid-cta { flex-direction: column; align-items: flex-start; }
}

/* ---------- site footer override ---------- */
.site-footer,
.site-footer a,
.site-footer address,
.site-footer p {
  color: var(--paper) !important;
}
.site-footer h4 {
  color: rgba(244, 242, 237, 0.5) !important;
}
.site-footer .foot-brand p {
  color: rgba(244, 242, 237, 0.6) !important;
}
.site-footer a:hover,
.site-footer li a:hover,
.site-footer address a:hover {
  color: var(--coral) !important;
}
.site-footer .foot-base {
  color: rgba(244, 242, 237, 0.45) !important;
}
.site-footer .foot-legal a {
  color: rgba(244, 242, 237, 0.45) !important;
}
.site-footer .foot-legal a:hover {
  color: var(--coral) !important;
}

