/*
Theme Name: Science Corner
Description: WordPress port of the Seya Shopify "Science Corner" sc-* sections (layout sc-news + sc-header, sc-hero, sc-top-articles, sc-article-grid, sc-newsletter, sc-category, sc-article, sc-footer). Measured from healthinsider.news (seya-website research/healthinsider/HEALTHINSIDER-SPEC.md). CSS is carried over 1:1 from the Liquid sections; the WordPress-only additions are at the end of this file.
Version: 1.0.0
Requires PHP: 7.4
Text Domain: science-corner
*/

/* ===== layout/sc-news.liquid ===== */
/* FONT: system sans stack (Inter is declared but intentionally not loaded). */
/* Tokens + geometry for the Science Corner hub. Recolour the whole hub by changing the accent / cta / yellow lines. */
:root {
  --sc-font: Inter, sans-serif;
  --sc-ink: #010101;
  --sc-accent: #2A90A7;       /* category labels, links, active nav, newsletter band, TOC rule */
  --sc-cta: #E81A41;          /* newsletter Subscribe, article CTA */
  --sc-cta-hover: #BA1535;
  --sc-yellow: #FEC339;       /* hero category label only */
  --sc-muted: #6A6A6A;
  --sc-line: #D9D9D9;         /* H1 rule, inputs, share rule */
  --sc-rule: #EFEFEF;         /* section heading underline */
  --sc-nav: #EFEFEF;
  --sc-band: #FAFAFA;         /* top-articles band */
  --sc-soft: #F5F5F5;         /* TOC + publisher box */
  --sc-callout: #FCF6FF;
  --sc-ease: all 0.5s ease;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sc-font);
  font-size: 16px;
  color: var(--sc-ink);
  background: #fff;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
/* .wrapper: 1286 wide, 1000 at <=1400, full width + 20px gutters at <=1085 */
.sc-wrap { max-width: 1286px; margin: 0 auto; }
@media screen and (max-width: 1400px) { .sc-wrap { max-width: 1000px; } }
@media screen and (max-width: 1085px) { .sc-wrap { max-width: none; margin: 0; padding: 0 20px; } }
/* section heading used by every band: 30/700 uppercase, 26 <=900, 22 <=550 */
.sc-h2 { font-size: 30px; font-weight: 700; line-height: 35px; text-transform: uppercase; color: var(--sc-ink); }
@media screen and (max-width: 900px) { .sc-h2 { font-size: 26px; line-height: 30px; } }
@media screen and (max-width: 550px) { .sc-h2 { font-size: 22px; line-height: 26px; } }
/* the "Read more" arrow: 7x12 chevron, 15px gap, grows to 20px on card hover */
.sc-arrow { width: 7px; height: 12px; margin-left: 15px; flex: none; transition: var(--sc-ease); }
/* post card (template-parts/post-card.php): 419 x 295 image, everything under it indented 10px */
.sc-post { display: block; text-decoration: none; color: var(--sc-ink); }
.sc-post__img { display: block; width: 100%; height: 295px; object-fit: cover; background: #dcdcdc; }
.sc-post__cat { display: block; padding: 10px 10px 0; background: #fff; font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--sc-accent); }
.sc-post__meta { display: flex; flex-wrap: wrap; align-items: center; margin-top: 5px; padding-left: 10px; font-size: 12px; font-weight: 400; line-height: 20px; color: var(--sc-muted); }
.sc-post__dot { width: 4px; height: 4px; margin: 0 10px; border-radius: 100%; background: var(--sc-muted); }
.sc-post__title { display: block; margin-top: 15px; padding-left: 10px; font-size: 20px; font-weight: 700; line-height: 27px; color: var(--sc-ink); }
.sc-post__more { display: flex; align-items: center; margin-top: 25px; padding-left: 10px; font-size: 16px; font-weight: 500; color: var(--sc-ink); }
.sc-post:hover .sc-arrow { margin-left: 20px; }
.sc-posts { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 15px; row-gap: 40px; }
@media screen and (max-width: 1085px) { .sc-post__img { height: 250px; } }
@media screen and (max-width: 992px) { .sc-posts { grid-template-columns: repeat(2, 1fr); } .sc-post__img { height: 300px; } }
@media screen and (max-width: 550px) { .sc-posts { grid-template-columns: 1fr; } .sc-post__img { height: 250px; } }
/* bordered "View more" / default button: 47px tall, hover fills accent */
.sc-btn { display: inline-block; height: 47px; min-width: 143px; padding: 0 35px; background: #fff; border: 1px solid var(--sc-ink); font-size: 16px; font-weight: 700; line-height: 46px; color: var(--sc-ink); text-decoration: none; text-align: center; transition: var(--sc-ease); }
.sc-btn:hover { background: var(--sc-accent); border-color: var(--sc-accent); color: #fff; }
/* breadcrumb: 12px, 20px under the disclosure line, current item muted */
.sc-crumbs { margin: 20px 0; font-size: 12px; line-height: 14px; color: var(--sc-muted); display: flex; align-items: center; flex-wrap: wrap; }
.sc-crumbs a { color: #000; text-decoration: none; }
.sc-crumbs a:hover { text-decoration: underline; }
.sc-crumbs svg { width: 5px; height: 8px; margin: 0 9px; flex: none; }
.sc-visually-hidden {
  position: absolute !important; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}

/* ===== sections/sc-header.liquid ===== */
.sc-nav { background: var(--sc-nav); position: sticky; top: 0; z-index: 99; padding: 20px 0; }
.sc-nav__inner { display: flex; align-items: stretch; justify-content: space-between; height: 40px; }
.sc-nav__logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.sc-nav__mark {
  width: 40px; height: 40px; flex: none; background: var(--sc-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; line-height: 1;
}
.sc-nav__word { font-size: 13px; line-height: 15px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--sc-ink); }
.sc-nav__word span { display: block; }
.sc-nav__word strong { font-weight: 800; }
.sc-nav__word em { font-style: normal; font-weight: 400; }
.sc-nav__right { display: flex; align-items: center; }
.sc-nav__links { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; line-height: 14px; }
.sc-nav__links li { display: inline-block; margin-right: 30px; font-size: 14px; line-height: 14px; }
.sc-nav__links li:last-child { margin-right: 0; }
.sc-nav__links a {
  font-size: 14px; font-weight: 500; color: var(--sc-ink); text-decoration: none;
  text-transform: uppercase; transition: var(--sc-ease);
}
.sc-nav__links a:hover, .sc-nav__links a[aria-current="page"] { color: var(--sc-accent); }
.sc-nav__burger {
  display: none; background: none; border: 0; padding: 0; margin: 0; cursor: pointer;
  width: 30px; height: 40px; position: relative;
}
.sc-nav__burger span, .sc-nav__burger span::before, .sc-nav__burger span::after {
  display: block; width: 30px; height: 3px; background: var(--sc-ink); position: absolute; left: 0;
}
.sc-nav__burger span { top: 18px; }
.sc-nav__burger span::before { content: ""; top: -9px; }
.sc-nav__burger span::after { content: ""; top: 9px; }
.sc-nav__burger:focus-visible { outline: 2px solid var(--sc-accent); outline-offset: 4px; }

.sc-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: 70%; max-width: 400px; z-index: 100;
  background: var(--sc-nav); border-left: 4px solid var(--sc-accent); padding: 20px 20px 40px 24px;
  overflow-y: auto; transform: translateX(100%); visibility: hidden;
  transition: transform 0.4s ease, visibility 0.4s;
}
.sc-drawer.is-open { transform: none; visibility: visible; }
.sc-drawer__close {
  display: block; margin: 0 0 20px auto; background: none; border: 0; cursor: pointer;
  font-size: 30px; line-height: 1; color: var(--sc-ink); padding: 0 4px;
}
.sc-drawer .sc-nav__mark { width: 60px; height: 60px; font-size: 32px; }
.sc-drawer .sc-nav__word { font-size: 20px; line-height: 22px; }
.sc-drawer__label { margin: 30px 0 20px; font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--sc-accent); }
.sc-drawer__links { list-style: none; margin: 0; padding: 0; }
.sc-drawer__links a {
  display: block; margin-bottom: 40px; font-size: 14px; font-weight: 500; line-height: 14px;
  text-transform: uppercase; text-decoration: none; color: var(--sc-ink);
}
.sc-drawer__links a[aria-current="page"], .sc-drawer__links a:hover { color: var(--sc-accent); }
.sc-scrim { position: fixed; inset: 0; z-index: 99; background: rgba(1, 1, 1, 0.35); opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s; }
.sc-scrim.is-open { opacity: 1; visibility: visible; }

.sc-publine { padding: 10px 0; }
.sc-publine p { font-size: 12px; line-height: 20px; color: var(--sc-muted); }
.sc-publine a { color: var(--sc-muted); text-decoration: underline; }

@media (max-width: 1085px) {
  .sc-nav { padding: 0; }
  .sc-nav__links { display: none; }
  .sc-nav__burger { display: block; }
}

/* ===== sections/sc-hero.liquid ===== */
.sc-hero { margin-top: 20px; position: relative; }
.sc-hero__grid { display: grid; grid-template-columns: repeat(3, 1fr); height: 600px; position: relative; }
.sc-hero__panel {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  height: 100%; padding: 40px; text-decoration: none; color: #fff; background: #3a3a3a;
  border-right: 1px solid rgba(255, 255, 255, 0.5); overflow: hidden;
}
.sc-hero__panel:last-child { border-right: 0; }
.sc-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-hero__panel::before {
  content: ""; position: absolute; inset: 0; background: var(--sc-ink); opacity: 0; transition: var(--sc-ease); z-index: 1;
}
.sc-hero__grid:not(:hover) .sc-hero__panel:first-child::before, .sc-hero__panel:hover::before { opacity: 0.4; }
.sc-hero__panel::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 50%; z-index: 1;
  background: linear-gradient(180deg, rgba(1, 1, 1, 0) 0%, #000 100%);
}
.sc-hero__panel > *:not(.sc-hero__img):not(.sc-hero__new) { position: relative; z-index: 2; }
.sc-hero__new {
  position: absolute; top: 0; left: 0; z-index: 3; background: var(--sc-accent); color: #fff;
  padding: 40px; font-size: 30px; font-weight: 600; line-height: normal;
}
.sc-hero__cat { font-size: 14px; font-weight: 700; text-transform: uppercase; margin: 0 0 10px; }
.sc-hero__cat--orange { color: var(--sc-yellow); }
.sc-hero__cat--teal { color: #DCE2F1; }
.sc-hero__title { font-size: 24px; font-weight: 700; line-height: 30px; color: #fff; padding-right: 20px; margin: 0 0 16px; }
.sc-hero__more { display: flex; align-items: center; font-size: 16px; font-weight: 500; color: #fff; }
.sc-hero__panel:hover .sc-arrow { margin-left: 20px; }
.sc-hero__dots { display: none; }

@media (max-width: 1085px) {
  .sc-hero__panel { padding: 40px; }
  .sc-hero__new { padding: 30px; font-size: 26px; }
}
@media (max-width: 992px) {
  .sc-hero__grid {
    display: flex; height: 400px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  }
  .sc-hero__grid::-webkit-scrollbar { display: none; }
  .sc-hero__panel { flex: 0 0 100%; scroll-snap-align: start; padding: 40px 20px; border-right: 0; }
  .sc-hero__panel::before { opacity: 0 !important; }
  .sc-hero__new { font-size: 20px; }
  .sc-hero__dots { display: flex; justify-content: center; gap: 8px; position: absolute; left: 0; right: 0; bottom: 14px; z-index: 4; }
  .sc-hero__dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.5); cursor: pointer; }
  .sc-hero__dot.is-active { background: #fff; }
  .sc-hero__panel { padding-bottom: 50px; }
}
@media (max-width: 550px) {
  .sc-hero__grid { height: 490px; }
}

/* ===== sections/sc-top-articles.liquid ===== */
.sc-top { background: var(--sc-band); margin-top: 40px; padding: 40px 0; position: relative; overflow: hidden; }
.sc-top .sc-h2 { text-align: center; margin-bottom: 20px; }
.sc-top__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.sc-top__card { text-decoration: none; color: var(--sc-ink); display: block; }
.sc-top__thumb { display: block; width: 100%; height: 238px; object-fit: cover; background: #dcdcdc; }
.sc-top__cat { display: block; margin-top: 16px; font-size: 14px; font-weight: 700; text-transform: uppercase; color: var(--sc-accent); }
.sc-top__title { display: block; margin-top: 10px; padding-right: 15px; font-size: 18px; font-weight: 700; line-height: 27px; color: var(--sc-ink); }
.sc-top__more { display: flex; align-items: center; margin-top: 15px; font-size: 14px; font-weight: 500; color: var(--sc-ink); }
.sc-top__card:hover .sc-arrow { margin-left: 20px; }
@media (max-width: 768px) { .sc-top__grid { grid-template-columns: repeat(2, 1fr); } }

/* ===== sections/sc-article-grid.liquid ===== */
.sc-grid { margin-top: 40px; }
.sc-grid__heading { padding-bottom: 5px; border-bottom: 1px solid var(--sc-rule); }
.sc-grid .sc-posts { margin-top: 20px; }
.sc-grid__viewmore { display: flex; justify-content: center; margin-top: 40px; }

/* ===== sections/sc-newsletter.liquid ===== */
.sc-news { margin: 40px 0; }
.sc-news__band { background: var(--sc-accent); padding: 40px 60px; display: flex; justify-content: space-between; align-items: center; }
.sc-news__left { flex: 1 1 50%; }
.sc-news__head { display: flex; align-items: center; }
.sc-news__icon { width: 28px; height: 28px; flex: none; color: #fff; margin-right: 0; }
.sc-news__heading { margin-left: 20px; font-size: 30px; font-weight: 700; line-height: 35px; text-transform: uppercase; color: #fff; word-break: break-all; }
.sc-news__text { margin-top: 15px; font-size: 16px; font-weight: 400; line-height: 22px; color: #fff; }
.sc-news__formwrap { flex: 1 1 50%; }
.sc-news__form { display: flex; }
.sc-news__form input[type="email"] {
  flex: 1 1 100%; min-width: 0; height: 60px; padding: 0 20px; border: 1px solid var(--sc-line); border-radius: 0;
  background: #fff; color: var(--sc-muted); font-family: inherit; font-size: 16px; font-weight: 500; outline: none;
}
.sc-news__form button {
  height: 60px; margin-left: 10px; padding: 0 30px; border: 0; border-radius: 0; cursor: pointer; white-space: nowrap;
  background: var(--sc-cta); color: #fff; font-family: inherit; font-size: 16px; font-weight: 700; transition: var(--sc-ease);
}
.sc-news__form button:hover { background: var(--sc-cta-hover); }
.sc-news__ok { font-size: 16px; font-weight: 700; margin-top: 10px; color: #fff; }
.sc-news__err { font-size: 14px; margin-top: 10px; color: #fff; }
@media (max-width: 1085px) { .sc-news__band { padding: 40px; } }
@media (max-width: 768px) {
  .sc-news__band { flex-direction: column; align-items: stretch; gap: 20px; }
  .sc-news__formwrap { width: 100%; }
}
@media (max-width: 550px) {
  .sc-news__band { padding: 20px; }
  .sc-news__form { flex-direction: column; }
  .sc-news__form button { margin: 10px 0 0; }
}

/* ===== sections/sc-category.liquid ===== */
.sc-crumbs-wrap .sc-crumbs { margin-bottom: 0; }
.sc-cat { padding-top: 20px; }
.sc-cat__heading { padding-bottom: 5px; border-bottom: 1px solid var(--sc-rule); }
.sc-cat .sc-posts { margin-top: 25px; }
.sc-cat__pages { display: flex; align-items: center; justify-content: center; margin-top: 40px; font-size: 16px; font-weight: 400; }
.sc-cat__pages a, .sc-cat__pages span { margin-right: 16px; text-decoration: none; color: var(--sc-ink); }
.sc-cat__pages a { transition: color 0.5s ease; }
.sc-cat__pages a:hover { color: var(--sc-accent); }
.sc-cat__pages span[aria-current="page"] { color: var(--sc-accent); }
.sc-cat__pages .sc-cat__next { margin-right: 0; }

/* ===== sections/sc-article.liquid ===== */
.sc-art__col { max-width: 854px; margin: 0 auto; }
.sc-art { padding-top: 0; }
.sc-art__title { font-size: 30px; font-weight: 700; line-height: 40px; color: var(--sc-ink); padding-bottom: 25px; border-bottom: 1px solid var(--sc-line); }
.sc-art__meta { margin-top: 15px; display: flex; flex-wrap: wrap; align-items: center; font-size: 11px; line-height: 22px; color: var(--sc-muted); }
.sc-art__meta strong { font-weight: 700; }
.sc-art__meta .sc-art__by { color: var(--sc-accent); }
.sc-art__sep { margin: 0 8px; font-weight: 600; }
.sc-art__marker { width: 4px; height: 4px; margin: 0 5px; border-radius: 100%; background: var(--sc-muted); }
.sc-art__content { margin-top: 10px; }
.sc-art__hero { margin: 40px 0 0; }
.sc-art__hero img { display: block; width: 100%; height: auto; aspect-ratio: 1286 / 600; object-fit: cover; object-position: 50% 25%; } /* height:auto beats the WP width/height attributes so the ratio applies */
.sc-art__caption { margin: 8px 0 0; font-size: 12px; font-style: italic; font-weight: 400; line-height: 18px; text-align: center; color: var(--sc-accent); }
.sc-art__hero--plain { margin-bottom: 40px; }
.sc-art__hero--cap { margin-bottom: 25px; }

.sc-art__body { margin-top: 0; }
.sc-art__body > div > p, .sc-art__body .sc-art__rt p,
.sc-art__body.sc-art__rt p { font-size: 18px; font-weight: 400; line-height: 30px; color: var(--sc-ink); margin: 0 0 30px; } /* WP: one .sc-art__body.sc-art__rt wrapper instead of a div per text block */
.sc-art__rt a { color: var(--sc-accent); text-decoration: none; }
.sc-art__rt a:hover { text-decoration: underline; }
.sc-art__rt ul, .sc-art__rt ol { margin: 0 0 30px 30px; padding: 0; }
.sc-art__rt li { font-size: 18px; font-weight: 400; line-height: 30px; margin-bottom: 20px; word-break: break-word; color: var(--sc-ink); }
.sc-art__rt ul { list-style: none; }
.sc-art__rt ul li::before { content: ""; display: inline-block; vertical-align: middle; width: 5px; height: 5px; margin-right: 10px; border-radius: 100%; background: var(--sc-accent); }
.sc-art__rt ol { list-style-position: inside; }
.sc-art__h2 { font-size: 30px; font-weight: 700; line-height: 35px; color: var(--sc-ink); margin: 50px 0 30px; scroll-margin-top: 100px; }
.sc-art__h3 { font-size: 27px; font-weight: 700; line-height: 31px; color: var(--sc-ink); margin: 0 0 30px; scroll-margin-top: 100px; }
.sc-art__figure { margin: 40px 0 0; }
.sc-art__figure img { width: 100%; }
.sc-art__figure + .sc-art__rt, .sc-art__figure + .sc-art__h2 { margin-top: 30px; }
.sc-art__quote { margin: 0 0 30px; padding: 0 0 0 20px; border-left: 4px solid var(--sc-accent); }
.sc-art__quote p, .sc-art__body .sc-art__quote p { font-size: 18px; line-height: 30px; font-style: italic; margin: 0; } /* WP: the quote now sits inside the .sc-art__rt wrapper */

.sc-art__toc { display: inline-block; max-width: 100%; min-width: 0; margin: 32px 0; padding: 14px 18px 18px; background: var(--sc-soft); border: 1px solid var(--sc-accent); }
.sc-art__toc-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 15px; }
.sc-art__toc-title { font-size: 16px; font-weight: 700; color: var(--sc-ink); }
.sc-art__toc-toggle { background: none; border: 0; padding: 0; font: inherit; font-size: 12.8px; color: var(--sc-accent); cursor: pointer; }
.sc-art__toc-toggle::before { content: "["; } .sc-art__toc-toggle::after { content: "]"; }
.sc-art__toc-list a { display: block; margin-top: 5px; font-size: 16px; font-weight: 400; color: var(--sc-accent); text-decoration: none; }
.sc-art__toc-list a:hover { text-decoration: underline; }
.sc-art__toc-list .is-sub { margin: 2px 0 0 40px; }
.sc-art__toc.is-closed .sc-art__toc-list { display: none; }
.sc-art__toc.is-closed .sc-art__toc-head { margin-bottom: 0; }

.sc-faq { border: 1px solid #E2E2E2; border-radius: 10px; padding: 16px 18px; margin-bottom: 20px; }
.sc-faq:not(:has(+ .sc-faq)) { margin-bottom: 40px; }
:not(.sc-faq) + .sc-faq { margin-top: 16px; }
.sc-faq summary { position: relative; padding-left: 34px; font-size: 18px; font-weight: 700; line-height: 30px; color: var(--sc-ink); cursor: pointer; list-style: none; }
.sc-faq summary::-webkit-details-marker { display: none; }
.sc-faq summary::before {
  content: ""; position: absolute; left: 6px; top: 10px; width: 8px; height: 8px;
  border-right: 2px solid var(--sc-accent); border-bottom: 2px solid var(--sc-accent); transform: rotate(-45deg); transition: transform 0.3s ease;
}
.sc-faq[open] summary::before { transform: rotate(45deg); top: 8px; }
.sc-faq__a { margin-top: 10px; padding-left: 34px; }
.sc-faq__a p { font-size: 18px; line-height: 30px; margin: 0 0 12px; color: var(--sc-ink); }
.sc-faq__a p:last-child { margin-bottom: 0; }

.sc-art__callout { background: var(--sc-callout); padding: 40px 20px 20px; margin-bottom: 30px; }
.sc-art__callout h3 { font-size: 22px; font-weight: 700; line-height: 28px; margin-bottom: 15px; }

.sc-art__ctawrap { text-align: center; margin: 36px 0; }
.sc-art__cta { display: inline-block; background: var(--sc-cta); color: #fff; text-decoration: none; font-size: 18px; font-weight: 700; text-transform: uppercase; padding: 15px 30px; transition: var(--sc-ease); }
.sc-art__cta:hover { background: var(--sc-cta-hover); }
.sc-art__ctanote { font-size: 12px; color: var(--sc-muted); margin: 10px 0 0; }
.sc-art__sources { border-top: 1px solid var(--sc-line); padding-top: 16px; margin-top: 8px; }
.sc-art__sources summary { font-size: 14px; font-weight: 700; cursor: pointer; }
.sc-art__sources ol { padding-left: 20px; }
.sc-art__body .sc-art__sources ol { margin: 16px 0; list-style-position: outside; } /* WP: undo the .sc-art__rt list rules; Shopify renders Sources outside .sc-art__rt */
.sc-art__sources li { font-size: 13px; line-height: 1.6; color: #444; margin-bottom: 6px; word-break: break-word; }

.sc-art__pub { margin-top: 40px; background: var(--sc-soft); display: grid; grid-template-columns: 65% 35%; align-items: center; }
.sc-art__pub-l { border-left: 10px solid var(--sc-accent); padding: 50px 30px; }
.sc-art__pub-label { font-size: 18px; font-weight: 700; text-transform: uppercase; color: var(--sc-accent); }
.sc-art__pub-name { margin-top: 2px; font-size: 30px; font-weight: 700; line-height: 35px; color: var(--sc-ink); }
.sc-art__pub-bio { margin-top: 16px; font-size: 13px; line-height: 24px; color: var(--sc-muted); }
.sc-art__pub-r { position: relative; align-self: stretch; min-height: 294px; background: var(--sc-accent); display: flex; align-items: center; justify-content: center; }
.sc-art__pub-r img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.sc-art__pub-mark { font-size: 120px; font-weight: 800; line-height: 1; color: #fff; }

@media (max-width: 900px) { .sc-art__title { font-size: 26px; line-height: 30px; } }
@media (max-width: 768px) { .sc-art__hero { margin-left: -20px; margin-right: -20px; } }
@media (max-width: 550px) {
  .sc-art__title { font-size: 22px; line-height: 30px; padding-bottom: 20px; }
  .sc-art__pub { grid-template-columns: 1fr; }
  .sc-art__pub-r { min-height: 200px; }
}

/* ===== sections/sc-footer.liquid ===== */
.sc-footer { background: var(--sc-ink); padding: 50px 0 15px; margin-top: 40px; color: #fff; }
.sc-footer__cols { display: grid; grid-template-columns: 25% 50% 25%; row-gap: 30px; }
.sc-footer__logo { display: flex; align-items: flex-start; gap: 10px; text-decoration: none; color: #fff; }
.sc-footer__mark { width: 40px; height: 40px; flex: none; background: var(--sc-accent); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 800; line-height: 1; }
.sc-footer__word { font-size: 13px; line-height: 15px; letter-spacing: 0.02em; text-transform: uppercase; padding-top: 5px; }
.sc-footer__word span { display: block; }
.sc-footer__word strong { font-weight: 800; }
.sc-footer__word em { font-style: normal; font-weight: 400; }
.sc-footer__col h3 { margin-bottom: 15px; font-size: 14px; font-weight: 600; line-height: 16px; text-transform: uppercase; color: var(--sc-accent); }
.sc-footer__col ul { list-style: none; margin: 0; padding: 0; }
.sc-footer__col li { margin-bottom: 15px; line-height: 19px; }
.sc-footer__col a { font-size: 12px; font-weight: 400; text-transform: uppercase; color: #fff; text-decoration: none; transition: var(--sc-ease); }
.sc-footer__col a:hover { color: var(--sc-accent); }
.sc-footer__col--wide ul { columns: 2; column-gap: 0; }
.sc-footer__col--wide li { break-inside: avoid; }
.sc-footer__bottom { margin-top: 30px; padding-top: 15px; border-top: 1px solid #2b2b2b; }
.sc-footer__bottom p { margin: 0 0 8px; font-size: 12px; font-weight: 400; line-height: 16px; color: var(--sc-muted); }
.sc-footer__bottom a { color: var(--sc-muted); text-decoration: underline; }
.sc-footer__bottom a:hover { color: #fff; }
@media (max-width: 1024px) { .sc-footer__cols { grid-template-columns: 25% 50% 25%; } }
@media (max-width: 550px) {
  .sc-footer__cols { grid-template-columns: 1fr; }
  .sc-footer__col--wide ul { columns: 1; }
}

/* ===== WordPress-only additions ===== */
/* Logged-in admin bar sits above the sticky nav. */
.admin-bar .sc-nav { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .sc-nav { top: 46px; } }
@media screen and (max-width: 600px) { .admin-bar .sc-nav { top: 0; } }
/* Empty category/archive state. */
.sc-empty { margin-top: 25px; font-size: 16px; line-height: 24px; color: var(--sc-muted); }
/* Newsletter: consent line under the form, and the off-screen spam honeypot. */
.sc-news__note { margin-top: 10px; font-size: 12px; line-height: 18px; color: #fff; opacity: 0.85; }
.sc-news__note a { color: #fff; }
.sc-news__hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Plain pages (Contact, Privacy, Terms) reuse the article column + prose. */
.sc-page .sc-art__body { margin-top: 30px; }
.sc-page .sc-art__rt h2 { font-size: 30px; font-weight: 700; line-height: 35px; margin: 50px 0 30px; }
.sc-page .sc-art__rt h3 { font-size: 27px; font-weight: 700; line-height: 31px; margin: 0 0 30px; }
/* Editor-added images and the "Callout" group style without a title. */
.sc-art__rt figure { margin: 40px 0 30px; }
.sc-art__rt figure img { width: 100%; height: auto; }

/* Image logo (when set in Customize > Site Identity) */
.sc-logo-img { display: block; width: auto; max-width: 100%; }
.sc-logo-img--nav { height: 40px; }
.sc-logo-img--drawer { height: 48px; }
.sc-logo-img--footer { height: 40px; }
@media (max-width: 550px) { .sc-logo-img--nav { height: 34px; } }
.sc-art__pub-r img.sc-art__pub-icon { position: static; inset: auto; width: 110px; height: auto; object-fit: contain; filter: brightness(0) invert(1); }

/* ================================================================== About page
   page-about.php. Rules ported 1:1 from healthinsider.news/about (2026-10-09):
   .section-aboutus1..4 -> .sc-ab1..4, .default-header -> .sc-ab-h2, .default-button -> .sc-ab-button.
   Text paragraphs: the reference uses <br><br> inside one <p>; separate <p>s get the same 24px gap. */
.sc-ab-crumbs { margin: 20px 0 0; }
.sc-ab1 p, .sc-ab2 p, .sc-ab3 p, .sc-ab4 p { margin: 0; }
.sc-ab1 p + p, .sc-ab2 p + p, .sc-ab3 p + p, .sc-ab4 p + p { margin-top: 24px; }
.sc-ab1 a, .sc-ab2 a, .sc-ab3__text a, .sc-ab4__text a { color: var(--sc-accent); }
.sc-ab-h2 { margin: 0; font-size: 30px; font-weight: 700; line-height: normal; color: #010101; text-transform: none; }
.sc-ab-button { display: inline-block; margin-top: 40px; height: 47px; min-width: 143px; padding: 0 35px; background: #fff; border: 1px solid #010101; font-size: 16px; font-weight: 500; line-height: 46px; color: #010101; text-decoration: none; transition: 0.5s; }
.sc-ab-button:hover { background: var(--sc-accent); border-color: var(--sc-accent); color: #fff; }

/* 1: hero */
.sc-ab1 { padding-top: 20px; padding-bottom: 60px; }
.sc-ab1__img { position: relative; min-width: 100%; max-width: 100%; height: 600px; overflow: hidden; }
.sc-ab1__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
.sc-ab1__head { position: relative; width: 87%; margin-top: -230px; padding-top: 40px; background: #fff; }
.sc-ab1__border { border-left: 10px solid #75C0D5; padding: 0 48px 0 30px; }
.sc-ab1 h1 { width: calc(100% - 280px); margin: 0 0 20px; font-size: 50px; font-weight: 700; line-height: normal; color: #010101; }
.sc-ab1__text p { font-size: 16px; font-weight: 400; line-height: 24px; color: #6A6A6A; }

/* 2: photo left, text right */
.sc-ab2 { padding-bottom: 60px; }
.sc-ab2__wrap { display: grid; grid-template-columns: 1fr 1fr; }
.sc-ab2__left { position: relative; }
.sc-ab2__left img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
.sc-ab2__right { align-self: center; padding: 82px 0; }
.sc-ab2__container { position: relative; min-height: 292px; display: flex; flex-direction: column; justify-content: center; }
.sc-ab2__border { position: absolute; top: 0; left: -5px; width: 10px; height: 100%; background: #75C0D5; border-left: 10px solid #75C0D5; }
.sc-ab2 .sc-ab-h2 { padding-left: 60px; }
.sc-ab2__text { padding-left: 60px; margin-top: 20px; }
.sc-ab2__text p { font-size: 16px; font-weight: 400; line-height: 24px; color: #010101; }

/* 3 + 5: text left, photo right */
.sc-ab3 { padding-bottom: 60px; }
.sc-ab3__wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sc-ab3__left { align-self: center; margin: 50px 0; padding-left: 30px; padding-right: 40px; border-left: 10px solid #75C0D5; }
.sc-ab3 .sc-ab-h2 { margin-bottom: 20px; }
.sc-ab3__text p { font-size: 16px; font-weight: 400; line-height: 24px; color: #010101; }
.sc-ab3__right { position: relative; }
.sc-ab3__right img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
.sc-ab-social-heading { margin-top: 40px; font-size: 18px; font-weight: 700; text-transform: uppercase; color: var(--sc-accent); }
.sc-ab-social { margin-top: 20px; font-size: 16px; line-height: 24px; }
.sc-ab-social a { color: #010101; text-decoration: none; transition: 0.5s; }
.sc-ab-social a:hover { color: var(--sc-accent); }

/* 4: wide photo, white card right */
.sc-ab4 { padding-bottom: 60px; }
.sc-ab4__wrap { position: relative; min-height: 740px; display: flex; align-items: center; padding: 60px 0; }
.sc-ab4__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block; }
.sc-ab4__right { position: relative; width: 50%; margin-left: auto; padding: 75px 0 75px 50px; background: #fff; }
.sc-ab4 .sc-ab-h2 { margin-bottom: 20px; }
.sc-ab4__bc { padding-right: 100px; }
.sc-ab4__border { position: relative; }
.sc-ab4__real { position: absolute; right: -100px; width: 10px; height: calc(100% + 55px); background: #75C0D5; }
.sc-ab4__text p { font-size: 16px; font-weight: 400; line-height: 24px; color: #010101; }
.sc-ab4__link { display: block; margin-top: 22px; font-size: 14px; font-weight: 500; line-height: 24px; color: var(--sc-accent); transition: 0.5s; }
.sc-ab4__link:hover { opacity: 0.7; }

@media screen and (max-width: 1400px) {
  .sc-ab1 h1 { font-size: 40px; width: 100%; }
  .sc-ab1__img { height: 500px; }
  .sc-ab2__border { left: 0; }
  .sc-ab2__wrap { grid-template-columns: 1fr; }
  .sc-ab2__left img { position: static; height: 500px; }
  .sc-ab2__right { padding: 0; margin-top: 40px; }
  .sc-ab3__wrap { grid-template-columns: 1fr; }
  .sc-ab3__left { order: 1; margin: 40px 0 0; border-left: 0; border-right: 10px solid #75C0D5; padding-left: 0; padding-right: 30px; }
  .sc-ab3__right img { position: static; height: 500px; }
  .sc-ab4__wrap { padding: 0; max-width: none; }
}
@media screen and (max-width: 1085px) {
  .sc-ab1 .sc-wrap, .sc-ab2__wrap, .sc-ab3__wrap { padding: 0; }
  .sc-ab1 { padding-top: 0; }
  .sc-ab1__text p, .sc-ab1__border { margin-left: 20px; }
  .sc-ab2__border { display: none; }
  .sc-ab2 .sc-ab-h2, .sc-ab2__text { padding: 0; }
  .sc-ab2__right { padding: 0 20px; }
  .sc-ab3__left { border-right: 0; padding: 0 20px; }
  .sc-ab4__wrap { min-height: 0; display: block; }
  .sc-ab4__photo { position: static; min-height: 625px; max-height: 625px; min-width: 100%; max-width: 100%; }
  .sc-ab4__right { width: 100%; margin-left: 0; margin-top: 40px; padding: 0 20px; }
  .sc-ab4__bc { padding-right: 0; }
  .sc-ab4__real { display: none; }
  .sc-ab-crumbs { margin-bottom: 20px; }
}
@media screen and (max-width: 900px) {
  .sc-ab-h2 { font-size: 26px; }
  .sc-ab1 { padding-bottom: 40px; }
  .sc-ab1__img { height: auto; }
  .sc-ab1__img img { position: static; height: 300px; }
  .sc-ab1__head { position: static; width: 100%; margin-top: 0; padding-top: 20px; }
  .sc-ab1__border { padding: 0 20px 22px 15px; margin-left: 0; }
  .sc-ab1 h1 { font-size: 30px; }
  .sc-ab1__text p { margin-left: 0; width: 100%; }
  .sc-ab2 { padding-bottom: 40px; }
  .sc-ab2__left img { height: 400px; }
  .sc-ab2__right { margin-top: 20px; }
  .sc-ab3 { padding-bottom: 40px; }
  .sc-ab3__wrap { gap: 0; }
  .sc-ab3__right img { height: 400px; }
  .sc-ab3__left { margin-top: 20px; }
  .sc-ab4 { padding-bottom: 40px; }
  .sc-ab4__photo { min-height: 400px; max-height: 400px; }
  .sc-ab4__right { margin-top: 20px; }
  .sc-ab-crumbs { margin-top: 10px; }
}
@media screen and (max-width: 600px) {
  .sc-ab1__img img { height: 250px; }
  .sc-ab2__left img { height: 370px; }
  .sc-ab3__right img { height: 370px; }
  .sc-ab4__photo { min-height: 370px; max-height: 370px; }
}
@media screen and (max-width: 400px) {
  .sc-ab1__img img { height: 183px; }
  .sc-ab1__border { border-left-width: 5px; }
  .sc-ab-button { width: 100%; text-align: center; }
}

/* Plain pages (Contact, Privacy, Terms): body uses the full header width, so its left and
   right edges line up with the logo and the menu from top to bottom (articles keep 854px). */
.sc-page .sc-art__col { max-width: none; margin: 0; }

/* Tables on plain pages (Cookie Policy): full width, scroll sideways on small screens */
.sc-page .sc-art__rt h3 { font-size: 22px; line-height: 28px; margin: 40px 0 16px; }
.sc-page .wp-block-table { margin: 0 0 30px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sc-page .wp-block-table table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 15px; line-height: 22px; color: var(--sc-ink); }
.sc-page .wp-block-table th, .sc-page .wp-block-table td { padding: 12px 14px; border: 1px solid var(--sc-line); text-align: left; vertical-align: top; }
.sc-page .wp-block-table th { background: var(--sc-soft); font-weight: 700; }
.sc-page .wp-block-table td:first-child { font-weight: 600; white-space: nowrap; }
.sc-page .wp-block-table th:nth-child(3), .sc-page .wp-block-table td:nth-child(3) { width: 45%; }
.sc-page .wp-block-table table { table-layout: auto; }
.sc-page .wp-block-table thead { border-bottom: 0; }
.sc-page .wp-block-table th, .sc-page .wp-block-table td { word-break: normal; overflow-wrap: normal; }
.sc-page .wp-block-table th:nth-child(-n+2), .sc-page .wp-block-table td:nth-child(-n+2),
.sc-page .wp-block-table th:nth-child(n+4), .sc-page .wp-block-table td:nth-child(n+4) { white-space: nowrap; }
.sc-page .wp-block-table th:nth-child(3), .sc-page .wp-block-table td:nth-child(3) { min-width: 280px; }

/* Homepage H1 = the logo (keeps the layout identical) */
.sc-nav__h1 { margin: 0; display: flex; align-items: center; align-self: stretch; font-size: inherit; font-weight: inherit; line-height: inherit; }

/* Credits on articles + profile pages (inc/schema.php) */
.sc-art__by a { color: inherit; text-decoration: underline; }
.sc-art__reviewed { margin: 6px 0 24px; font-size: 14px; line-height: 20px; color: var(--sc-muted); }
.sc-art__reviewed a { color: var(--sc-accent); font-weight: 600; }
/* ---------- Profile page (doctor profiles: template-parts/profile.php) ----------
   Measured clone of healthinsider.news/author/alexandra-pierce (2026-10-09); rules ported 1:1
   from .section-singleteam. */
.sc-tm-crumbs { margin-bottom: 0; }
.sc-tm { padding-top: 20px; padding-bottom: 60px; }
.sc-tm__hdr { margin: 0; font-size: 30px; font-weight: 700; line-height: normal; color: #010101; text-transform: uppercase; }
.sc-tm__heading { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #EFEFEF; padding-bottom: 5px; }
.sc-tm__back { font-size: 14px; font-weight: 500; color: #010101; display: flex; align-items: center; cursor: pointer; text-decoration: none; }
.sc-tm__back svg { margin-right: 10px; transition: 0.5s; flex: none; }
.sc-tm__back:hover svg { margin-right: 15px; }
.sc-tm__member { margin-top: 43px; }
.sc-tm__member h1 { margin: 0; font-size: 50px; font-weight: 700; line-height: normal; color: #010101; }
.sc-tm__flex { margin-top: 60px; display: flex; align-items: center; position: relative; z-index: 0; }
.sc-tm__grey { position: absolute; z-index: -1; width: calc(100% - 20px); height: 100%; top: -20px; left: 20px; background: #EFEFEF; }
.sc-tm__left { flex-shrink: 0; }
.sc-tm__img { display: inline-block; vertical-align: baseline; width: 422px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: center top; } /* 4:5 portrait (reference is 1:1) */
.sc-tm__img--empty { background: #D9D9D9; }
.sc-tm__right { margin-left: 110px; margin-top: -20px; }
.sc-tm__right h3 { margin: 0 0 20px; font-size: 22px; font-weight: 700; line-height: normal; color: #010101; }
.sc-tm__right ul { margin: 0; padding: 0; list-style-position: inside; }
.sc-tm__right li, .sc-tm__text li { font-size: 16px; font-weight: 400; color: #010101; margin-bottom: 20px; line-height: 24px; list-style: none; }
.sc-tm__right li::before, .sc-tm__text ul li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 100%; background: #FF503B; position: relative; top: 50%; transform: translateY(-50%); margin-top: 3px; margin-right: 14px; }
.sc-tm__right li:last-of-type { margin-bottom: 0; }
.sc-tm__links { margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 20px; font-size: 14px; }
.sc-tm__links a { color: var(--sc-accent); text-decoration: none; }
.sc-tm__links a:hover { text-decoration: underline; }
.sc-tm__content { margin-top: 60px; }
.sc-tm__content .sc-tm__hdr { border-bottom: 1px solid #EFEFEF; padding-bottom: 5px; margin-bottom: 40px; }
.sc-tm__text > :last-child { margin-bottom: 0; }
.sc-tm__text p { margin: 0 0 30px; font-size: 18px; font-weight: 400; line-height: 30px; color: #010101; }
.sc-tm__text ul, .sc-tm__text ol { margin: 0 0 30px; padding: 0; }
.sc-tm__text li { font-size: 18px; line-height: 30px; }
.sc-tm__text ol li { list-style: decimal inside; }
.sc-tm__text a { color: var(--sc-accent); text-decoration: none; }
.sc-tm__text a:hover { text-decoration: underline; }
@media screen and (max-width: 1400px) { .sc-tm__member h1 { font-size: 48px; } }
@media screen and (max-width: 1085px) {
  .sc-tm { padding-bottom: 40px; }
  .sc-tm__right { margin-left: 50px; }
  .sc-tm__content .sc-tm__hdr { margin-bottom: 20px; }
}
@media screen and (max-width: 900px) { .sc-tm__hdr { font-size: 26px; } }
@media screen and (max-width: 850px) {
  .sc-tm__wrap { padding: 0; }
  .sc-tm__img { display: block; }
  .sc-tm__pad { padding: 0 20px; }
  .sc-tm__grey { display: none; }
  .sc-tm__flex { margin-top: 29px; flex-direction: column; align-items: flex-start; }
  .sc-tm__right { margin: 0; background: #EFEFEF; width: 100%; padding: 20px; }
  .sc-tm__member { margin-top: 17px; }
  .sc-tm__member h1 { font-size: 34px; padding: 0 20px; }
  .sc-tm__left { padding: 0 20px; }
  .sc-tm__content { margin-top: 40px; padding: 0 20px; }
}
@media screen and (max-width: 550px) {
  .sc-tm__hdr { font-size: 22px; }
  .sc-tm__left { width: 100%; }
  .sc-tm__img { width: 100%; }
  .sc-tm__member { margin-top: 25px; }
  .sc-tm__member h1 { font-size: 22px; }
  .sc-tm__flex { margin-top: 30px; }
}
