/*
Theme Name: EntertainmentHub V4.9.30.3
Theme URI: https://entertainmenthub.live/
Author: VertexMedia
Description: A portable storytelling theme with automatic Trending Stories, Story Parts navigation, compact per-part reactions, compact native comments, searchable story directory, MGID video, and Advanced Ads integration.
Version: 4.9.30.3
Requires at least: 6.0
Tested up to: 7.0
Requires PHP: 7.4
Text Domain: entertainmenthub-reader-integrated
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --ehr-accent: #1768ff;
  --ehr-accent-dark: #0f4dd1;
  --ehr-ink: #101a33;
  --ehr-muted: #68728a;
  --ehr-line: #e7eaf0;
  --ehr-soft: #f5f7fb;
  --ehr-paper: #ffffff;
  --ehr-site-width: 1260px;
  --ehr-content-width: 780px;
  --ehr-radius: 16px;
  --ehr-shadow: 0 12px 36px rgba(18, 32, 65, 0.09);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ehr-ink);
  background: #fff;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--ehr-accent); text-decoration: none; }
a:hover { color: var(--ehr-accent-dark); }
button, input, textarea, select { font: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}
.screen-reader-text:focus {
  width: auto; height: auto; clip: auto;
  margin: 8px; padding: 12px 16px;
  background: #fff; color: var(--ehr-ink);
  z-index: 999999;
}

.ehr-container {
  width: min(calc(100% - 40px), var(--ehr-site-width));
  margin: 0 auto;
}

.ehr-top-ad {
  min-height: 0;
  border-bottom: 1px solid var(--ehr-line);
  background: #fafbfe;
  text-align: center;
}
.ehr-top-ad .widget { margin: 0; padding: 12px 0; }
.ehr-ad-label {
  display: block;
  margin-bottom: 7px;
  color: #9aa2b4;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--ehr-line);
  backdrop-filter: blur(12px);
}
.ehr-header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.site-branding { display: flex; align-items: center; min-width: 0; }
.custom-logo-link { display: inline-flex; align-items: center; }
.custom-logo { max-height: 46px; width: auto; }
.site-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(25px, 3vw, 32px);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.03em;
}
.site-title a { color: var(--ehr-ink); }
.site-description { display: none; }

.ehr-nav-wrap { display: flex; align-items: center; gap: 20px; }
.primary-menu {
  display: flex;
  align-items: center;
  gap: 30px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-menu a {
  color: #30384d;
  font-size: 14px;
  font-weight: 600;
}
.primary-menu a:hover,
.primary-menu .current-menu-item > a { color: var(--ehr-accent); }
.ehr-menu-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  padding: 0;
  border: 1px solid var(--ehr-line);
  border-radius: 12px;
  background: #fff;
  color: var(--ehr-ink);
  cursor: pointer;
}
.ehr-menu-toggle span,
.ehr-menu-toggle::before,
.ehr-menu-toggle::after {
  content: "";
  display: block;
  width: 20px; height: 2px;
  background: currentColor;
  transition: .2s ease;
}
.ehr-menu-toggle span { margin: 5px 0; }

.site-main { min-height: 60vh; }

/* Home / archives */
.ehr-hero {
  padding: 68px 0 36px;
  background: linear-gradient(180deg, #f7f9fd 0%, #fff 100%);
}
.ehr-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 30px;
}
.ehr-feature-card,
.ehr-story-card {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--ehr-line);
  border-radius: var(--ehr-radius);
  box-shadow: 0 8px 26px rgba(18,32,65,.05);
}
.ehr-feature-card { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 430px; }
.ehr-feature-media, .ehr-card-media { background: var(--ehr-soft); }
.ehr-feature-media img, .ehr-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ehr-feature-body { padding: clamp(28px,4vw,52px); display:flex; flex-direction:column; justify-content:center; }
.ehr-kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 16px;
  color: var(--ehr-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ehr-feature-title {
  margin: 0 0 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px,4vw,55px);
  line-height: 1.08;
  letter-spacing: -.035em;
}
.ehr-feature-title a { color: var(--ehr-ink); }
.ehr-feature-excerpt, .ehr-card-excerpt { color: var(--ehr-muted); line-height: 1.7; }
.ehr-read-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin-top: 12px;
  font-weight: 800;
}
.ehr-side-stack { display: grid; gap: 20px; }
.ehr-mini-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid var(--ehr-line);
  border-radius: 14px;
  background: #fff;
}
.ehr-mini-card img { width: 112px; height: 94px; object-fit: cover; border-radius: 10px; }
.ehr-mini-card h3 { margin: 0; font-size: 17px; line-height: 1.35; }
.ehr-mini-card h3 a { color: var(--ehr-ink); }

.ehr-section { padding: 44px 0 74px; }
.ehr-section-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 24px;
}
.ehr-section-title {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px,4vw,42px);
}
.ehr-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}
.ehr-card-media { aspect-ratio: 16 / 10; }
.ehr-card-body { padding: 22px; }
.ehr-card-title { margin: 0 0 12px; font-size: 23px; line-height: 1.25; }
.ehr-card-title a { color: var(--ehr-ink); }
.ehr-meta { color: var(--ehr-muted); font-size: 13px; }
.ehr-pagination { margin-top: 40px; }
.nav-links { display:flex; flex-wrap:wrap; gap:8px; }
.page-numbers {
  min-width: 42px; height: 42px;
  display:inline-flex; align-items:center; justify-content:center;
  padding: 0 13px;
  border: 1px solid var(--ehr-line);
  border-radius: 10px;
  color: var(--ehr-ink);
  background:#fff;
}
.page-numbers.current, .page-numbers:hover { background: var(--ehr-accent); color:#fff; border-color:var(--ehr-accent); }

/* Single story reader */
.ehr-reader-shell { padding: 28px 0 84px; }
.ehr-reader-grid {
  display: grid;
  grid-template-columns: minmax(0, var(--ehr-content-width)) 320px;
  justify-content: center;
  align-items: start;
  gap: clamp(40px,6vw,86px);
}
.ehr-reader-main { min-width: 0; }
.ehr-story-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 3px solid #edf1f8;
  color: var(--ehr-muted);
  font-size: 12px;
}
.ehr-story-breadcrumb::after {
  content: "";
  position: absolute;
}
.ehr-breadcrumb-title {
  min-width: 0;
  max-width: 72%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ehr-accent);
  font-weight: 800;
  letter-spacing: .035em;
  text-transform: uppercase;
}
.ehr-breadcrumb-sep { color:#bbc2d0; }
.ehr-chapter-count { white-space: nowrap; }
.ehr-entry-header { margin-bottom: 30px; }
.ehr-chapter-eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--ehr-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ehr-entry-title {
  margin: 0;
  color: var(--ehr-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px,5.6vw,68px);
  line-height: 1.06;
  letter-spacing: -.045em;
}
.ehr-entry-meta { margin-top: 16px; color: var(--ehr-muted); font-size: 13px; }
.ehr-featured-image {
  width: min(100%, 640px);
  margin: 34px auto 42px;
  overflow: hidden;
  border-radius: var(--ehr-radius);
  background: var(--ehr-soft);
  box-shadow: var(--ehr-shadow);
}
.ehr-featured-image img { display:block; width:100%; height:auto; }

.ehr-entry-content {
  color: #273149;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px,1.45vw,20px);
  line-height: 1.86;
}
.ehr-entry-content > * { max-width: 100%; }
.ehr-entry-content p { margin: 0 0 1.35em; }
.ehr-entry-content h2,
.ehr-entry-content h3,
.ehr-entry-content h4 {
  color: var(--ehr-ink);
  font-family: Inter, ui-sans-serif, sans-serif;
  line-height: 1.25;
}
.ehr-entry-content blockquote {
  margin: 2em 0;
  padding: 22px 26px;
  border-left: 4px solid var(--ehr-accent);
  background: var(--ehr-soft);
  border-radius: 0 12px 12px 0;
}
.ehr-entry-content figure { margin: 2em 0; }
.ehr-entry-content .wp-caption-text { color: var(--ehr-muted); font-size: 14px; text-align:center; }

.ehr-ad-slot {
  width: 100%;
  margin: 36px 0;
  text-align: center;
  overflow: hidden;
}
.ehr-ad-slot .widget { margin: 0; }
.ehr-ad-slot:empty { display:none; }

.ehr-chapter-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 46px;
  padding-top: 30px;
  border-top: 1px solid var(--ehr-line);
}
.ehr-chapter-button {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92px;
  padding: 18px 20px;
  border: 1px solid var(--ehr-line);
  border-radius: 14px;
  color: var(--ehr-ink);
  background: #fff;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.ehr-chapter-button:hover {
  transform: translateY(-2px);
  color: var(--ehr-ink);
  border-color: #cdd8ee;
  box-shadow: 0 10px 26px rgba(18,32,65,.08);
}
.ehr-chapter-button--next { align-items: flex-end; text-align:right; background: var(--ehr-accent); border-color: var(--ehr-accent); color:#fff; }
.ehr-chapter-button--next:hover { color:#fff; background: var(--ehr-accent-dark); }
.ehr-chapter-button--disabled { visibility:hidden; }
.ehr-nav-label { margin-bottom: 5px; font-size: 11px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; opacity:.72; }
.ehr-nav-title { font-weight: 800; }

.ehr-reader-sidebar { position: sticky; top: 104px; }
.ehr-toc {
  overflow: hidden;
  border: 1px solid #dfe4ef;
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--ehr-shadow);
}
.ehr-toc-story {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid var(--ehr-line);
  font-size: 13px;
  font-weight: 800;
}
.ehr-toc-story svg { flex: 0 0 auto; color: var(--ehr-accent); }
.ehr-toc-story span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ehr-toc-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  color: #8c96aa;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.ehr-toc-list {
  max-height: min(61vh, 620px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.ehr-toc-item {
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 10px;
  align-items: center;
  min-height: 50px;
  padding: 8px 14px;
  border-top: 1px solid var(--ehr-line);
  color: #273149;
  font-size: 12px;
}
.ehr-toc-item:hover { color: var(--ehr-accent); background:#f8faff; }
.ehr-toc-number {
  width: 28px; height: 28px;
  display:flex; align-items:center; justify-content:center;
  border-radius: 999px;
  background: #eff4ff;
  color: var(--ehr-accent);
  font-size: 11px;
  font-weight: 800;
}
.ehr-toc-label { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.ehr-toc-item.is-current { color: var(--ehr-accent); background:#eef4ff; font-weight:800; }
.ehr-toc-item.is-current .ehr-toc-number { color:#fff; background:var(--ehr-accent); }
.ehr-sidebar-ad { margin-top: 22px; }

.ehr-mobile-chapters {
  display:none;
  width:100%;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin: 0 0 22px;
  padding: 13px 16px;
  border:1px solid var(--ehr-line);
  border-radius:12px;
  background:#fff;
  color:var(--ehr-ink);
  font-weight:800;
  cursor:pointer;
}

.ehr-related { margin-top: 72px; }
.ehr-related-title { margin:0 0 22px; font-family:Georgia,"Times New Roman",serif; font-size:32px; }
.ehr-related-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.ehr-related-card { border:1px solid var(--ehr-line); border-radius:13px; overflow:hidden; background:#fff; }
.ehr-related-card img { display:block; width:100%; aspect-ratio:16/10; object-fit:cover; }
.ehr-related-card-body { padding:16px; }
.ehr-related-card h3 { margin:0; font-size:17px; line-height:1.35; }
.ehr-related-card h3 a { color:var(--ehr-ink); }

/* Standard pages */
.ehr-page-shell { width:min(calc(100% - 40px), 920px); margin:0 auto; padding:64px 0 90px; }
.ehr-page-title { margin:0 0 28px; font-family:Georgia,"Times New Roman",serif; font-size:clamp(42px,6vw,68px); line-height:1.08; }
.ehr-page-content { font-family:Georgia,"Times New Roman",serif; font-size:19px; line-height:1.8; }
.ehr-empty { padding:80px 0; text-align:center; }

.site-footer { border-top:1px solid var(--ehr-line); background:#fafbfe; }
.ehr-footer-inner {
  min-height: 112px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  color:var(--ehr-muted);
  font-size:13px;
}
.footer-menu { display:flex; flex-wrap:wrap; gap:20px; margin:0; padding:0; list-style:none; }
.footer-menu a { color:var(--ehr-muted); }
.footer-menu a:hover { color:var(--ehr-accent); }

@media (max-width: 1080px) {
  .ehr-reader-grid { grid-template-columns: minmax(0, 760px) 290px; gap:36px; }
  .ehr-story-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .ehr-feature-card { grid-template-columns:1fr; }
  .ehr-feature-media { min-height:340px; }
}

@media (max-width: 860px) {
  .ehr-container { width:min(calc(100% - 28px), var(--ehr-site-width)); }
  .site-header { position:relative; }
  .ehr-header-inner { min-height:68px; }
  .ehr-menu-toggle { display:flex; flex-direction:column; }
  .ehr-nav-wrap { position:relative; }
  .primary-menu {
    position:absolute;
    top:54px; right:0;
    width:min(310px, calc(100vw - 28px));
    display:none;
    flex-direction:column;
    align-items:stretch;
    gap:0;
    padding:10px;
    border:1px solid var(--ehr-line);
    border-radius:14px;
    background:#fff;
    box-shadow:var(--ehr-shadow);
  }
  .primary-menu.is-open { display:flex; }
  .primary-menu a { display:block; padding:12px; border-radius:9px; }
  .primary-menu a:hover { background:var(--ehr-soft); }

  .ehr-hero-grid { grid-template-columns:1fr; }
  .ehr-reader-grid { display:block; }
  .ehr-reader-sidebar {
    position:fixed;
    top:0; right:0; bottom:0;
    width:min(390px, 92vw);
    padding:18px;
    background:#f7f9fd;
    z-index:3000;
    transform:translateX(105%);
    transition:transform .24s ease;
    overflow:auto;
  }
  .ehr-reader-sidebar.is-open { transform:translateX(0); }
  .ehr-toc-list { max-height:none; }
  .ehr-mobile-chapters { display:flex; }
  body.ehr-drawer-open::before {
    content:"";
    position:fixed;
    inset:0;
    z-index:2990;
    background:rgba(8,15,31,.52);
  }
  .ehr-sidebar-ad { display:none; }
  .ehr-entry-title { font-size:clamp(38px,9vw,56px); }
}

@media (max-width: 640px) {
  .ehr-container { width:min(calc(100% - 22px), var(--ehr-site-width)); }
  .ehr-reader-shell { padding-top:18px; }
  .ehr-story-breadcrumb { font-size:10px; }
  .ehr-breadcrumb-title { max-width:62%; }
  .ehr-featured-image { margin:26px auto 32px; border-radius:12px; }
  .ehr-entry-content { font-size:18px; line-height:1.78; }
  .ehr-chapter-nav { grid-template-columns:1fr; }
  .ehr-chapter-button--disabled { display:none; }
  .ehr-related-grid, .ehr-story-grid { grid-template-columns:1fr; }
  .ehr-feature-card { min-height:0; }
  .ehr-feature-media { min-height:250px; }
  .ehr-feature-body { padding:28px 24px 34px; }
  .ehr-mini-card { grid-template-columns:90px 1fr; }
  .ehr-mini-card img { width:90px; height:80px; }
  .ehr-footer-inner { flex-direction:column; align-items:flex-start; justify-content:center; padding:28px 0; }
}

/* Plugin-integrated edition */
.ehr-header-search {
  width: 210px;
}
.ehr-header-search .search-form {
  display: flex;
  align-items: center;
  margin: 0;
}
.ehr-header-search label {
  flex: 1;
}
.ehr-header-search .search-field {
  width: 100%;
  height: 40px;
  padding: 0 13px;
  border: 1px solid var(--ehr-line);
  border-radius: 10px 0 0 10px;
  background: #fff;
  color: var(--ehr-ink);
}
.ehr-header-search .search-submit {
  height: 40px;
  padding: 0 13px;
  border: 1px solid var(--ehr-accent);
  border-radius: 0 10px 10px 0;
  background: var(--ehr-accent);
  color: #fff;
  cursor: pointer;
}

.ehr-site-breadcrumbs {
  width: min(calc(100% - 0px), 1186px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 auto 24px;
  color: var(--ehr-muted);
  font-size: 12px;
  line-height: 1.5;
}
.ehr-site-breadcrumbs a { color: var(--ehr-muted); }
.ehr-site-breadcrumbs a:hover { color: var(--ehr-accent); }
.ehr-site-breadcrumbs > span[aria-current="page"] {
  max-width: min(650px, 70vw);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ehr-top-ad .ehr-ad-slot,
.ehr-top-ad-slot {
  margin: 0;
  padding: 12px 0;
}
.ehr-ad-slot iframe,
.ehr-ad-slot img,
.ehr-ad-slot ins {
  max-width: 100%;
}
.ehr-ad-slot > :last-child { margin-bottom: 0; }

.site-footer {
  padding-top: 54px;
}
.ehr-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) minmax(180px, .8fr) minmax(210px, .9fr);
  gap: 48px;
  padding-bottom: 42px;
}
.ehr-footer-brand {
  max-width: 430px;
}
.ehr-footer-title {
  display: block;
  margin-bottom: 14px;
  color: var(--ehr-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  letter-spacing: -.025em;
}
.ehr-footer-brand p {
  margin: 0;
  color: var(--ehr-muted);
  font-size: 14px;
  line-height: 1.75;
}
.ehr-footer-column h2 {
  margin: 3px 0 16px;
  color: var(--ehr-ink);
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.ehr-footer-column .footer-menu,
.ehr-footer-column .menu {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ehr-footer-column .footer-menu a,
.ehr-footer-column .menu a {
  color: var(--ehr-muted);
  font-size: 14px;
}
.ehr-footer-column .footer-menu a:hover,
.ehr-footer-column .menu a:hover {
  color: var(--ehr-accent);
}
.ehr-footer-bottom {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--ehr-line);
  color: var(--ehr-muted);
  font-size: 12px;
}
.ehr-footer-api-note { white-space: nowrap; }

/* Keep injected ads from breaking the reading column. */
.ehr-entry-content .advads-ad,
.ehr-entry-content .advads-placement,
.ehr-entry-content [class*="advads"],
.ehr-entry-content [id*="advads"] {
  max-width: 100%;
}
.ehr-entry-content .advads-ad iframe,
.ehr-entry-content .advads-placement iframe {
  max-width: 100%;
}

@media (max-width: 1120px) {
  .ehr-header-search { display: none; }
}

@media (max-width: 860px) {
  .ehr-site-breadcrumbs {
    width: 100%;
    margin-bottom: 18px;
  }
  .ehr-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ehr-footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .site-footer { padding-top: 38px; }
  .ehr-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-bottom: 32px;
  }
  .ehr-footer-brand { grid-column: auto; }
  .ehr-footer-bottom {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 22px 0 28px;
  }
}


/* ==========================================================
   V2.1 branding and company-profile refinements
   ========================================================== */

/* Keep the fallback WordPress page menu clean, horizontal, and prominent. */
.primary-menu,
.primary-menu ul {
  display: flex;
  align-items: center;
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-menu li,
.primary-menu ul li {
  margin: 0;
  padding: 0;
  list-style: none;
}
.primary-menu > li > a,
.primary-menu ul > li > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  color: var(--ehr-ink);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}
.primary-menu > li > a:hover,
.primary-menu ul > li > a:hover,
.primary-menu .current-menu-item > a {
  color: var(--ehr-accent);
}

/* Compact footer requested for the Facebook-first edition. */
.site-footer {
  padding: 0;
  background: #f8faff;
  border-top: 1px solid var(--ehr-line);
}
.ehr-simple-footer {
  min-height: 132px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 34px 0;
  text-align: center;
}
.ehr-footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #a3abba;
}
.ehr-footer-legal-nav a {
  color: #4f5a71;
  font-size: 14px;
  font-weight: 700;
}
.ehr-footer-legal-nav a:hover {
  color: var(--ehr-accent);
}
.ehr-footer-copyright {
  margin: 0;
  color: #778197;
  font-size: 13px;
}

/* Professionally designed VERTEX MEDIA profile on Sample Page. */
.ehr-page-shell--company {
  width: min(calc(100% - 40px), 1120px);
  padding-top: 54px;
}
.ehr-company-profile-page > .ehr-page-title {
  margin-bottom: 30px;
  text-transform: none;
}
.ehr-company-profile {
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ehr-ink);
}
.ehr-company-profile p {
  margin-top: 0;
}
.ehr-company-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(38px, 6vw, 72px);
  border-radius: 24px;
  background: linear-gradient(135deg, #101a33 0%, #182b58 58%, #1768ff 140%);
  color: #fff;
  box-shadow: 0 24px 60px rgba(16, 26, 51, .16);
}
.ehr-company-hero::after {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  right: -120px;
  top: -145px;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  box-shadow: 0 0 0 44px rgba(255,255,255,.035), 0 0 0 90px rgba(255,255,255,.025);
}
.ehr-company-eyebrow,
.ehr-company-section-label {
  margin-bottom: 14px !important;
  color: #7aa7ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.ehr-company-hero h2 {
  position: relative;
  z-index: 1;
  max-width: 760px;
  margin: 0 0 22px;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -.045em;
}
.ehr-company-lead {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin-bottom: 0 !important;
  color: rgba(255,255,255,.86);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
}
.ehr-company-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 26px 0 54px;
}
.ehr-company-stat {
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 26px;
  border: 1px solid var(--ehr-line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(18, 32, 65, .055);
}
.ehr-company-stat strong {
  display: block;
  margin-bottom: 9px;
  color: var(--ehr-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(31px, 4vw, 43px);
  line-height: 1;
}
.ehr-company-stat span {
  color: var(--ehr-muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .045em;
  text-transform: uppercase;
}
.ehr-company-section {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 0 58px;
}
.ehr-company-section h2,
.ehr-company-copyright h2 {
  margin: 0 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.ehr-company-section > p:not(.ehr-company-section-label) {
  color: #4c586f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
  line-height: 1.82;
}
.ehr-company-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  margin-bottom: 58px;
}
.ehr-company-panel {
  padding: 34px;
  border: 1px solid var(--ehr-line);
  border-radius: 20px;
  background: #f8faff;
}
.ehr-company-panel h3 {
  margin: 0 0 15px;
  color: var(--ehr-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  line-height: 1.2;
}
.ehr-company-panel p:last-child {
  margin-bottom: 0;
  color: #566177;
  font-size: 16px;
  line-height: 1.75;
}
.ehr-company-copyright {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 52px;
  align-items: center;
  margin-top: 10px;
  padding: clamp(34px, 5vw, 54px);
  border: 1px solid #dce5f8;
  border-radius: 22px;
  background: linear-gradient(135deg, #f6f9ff, #eef4ff);
}
.ehr-company-copyright h2 {
  margin-bottom: 0;
}
.ehr-company-copyright > p {
  margin-bottom: 0;
  color: #4e5b72;
  font-size: 16px;
  line-height: 1.8;
}

@media (max-width: 860px) {
  .primary-menu,
  .primary-menu ul {
    align-items: stretch;
    gap: 0;
  }
  .primary-menu > li > a,
  .primary-menu ul > li > a {
    min-height: 46px;
    padding: 0 12px;
    font-size: 15px;
  }
  .ehr-company-stats,
  .ehr-company-columns,
  .ehr-company-copyright {
    grid-template-columns: 1fr;
  }
  .ehr-company-copyright { gap: 18px; }
}

@media (max-width: 640px) {
  .ehr-page-shell--company { width: min(calc(100% - 22px), 1120px); }
  .ehr-company-hero { padding: 32px 24px; border-radius: 18px; }
  .ehr-company-stats { grid-template-columns: 1fr; }
  .ehr-company-stat { min-height: 120px; }
  .ehr-company-panel { padding: 26px 22px; }
  .ehr-footer-legal-nav span { display: none; }
  .ehr-footer-legal-nav { gap: 12px 18px; }
}


/* ==========================================================
   V2.4 responsive cards, editable pages, and legacy video ads
   ========================================================== */
.ehr-story-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.ehr-card-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--ehr-soft);
}
.ehr-card-media img,
.ehr-card-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ehr-card-placeholder {
  background: linear-gradient(135deg, #edf2fb, #f8faff);
}
.ehr-card-body {
  min-width: 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px 21px 23px;
}
.ehr-card-title {
  overflow-wrap: anywhere;
}
.ehr-card-excerpt {
  display: -webkit-box;
  overflow: hidden;
  margin: 0 0 12px;
  color: var(--ehr-muted);
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.ehr-card-body .ehr-read-link {
  margin-top: auto;
  padding-top: 8px;
}
.ehr-theme-post-ad,
.ehr-theme-home-ad {
  width: 100%;
  max-width: 100%;
  margin: 30px auto;
  text-align: center;
}
.ehr-theme-post-ad > *,
.ehr-theme-home-ad > * {
  max-width: 100%;
}
.ehr-theme-post-ad iframe,
.ehr-theme-post-ad video,
.ehr-theme-post-ad object,
.ehr-theme-post-ad embed,
.ehr-theme-home-ad iframe,
.ehr-theme-home-ad video,
.ehr-theme-home-ad object,
.ehr-theme-home-ad embed {
  max-width: 100%;
}
.ehr-theme-post-ad video,
.ehr-theme-home-ad video {
  height: auto;
}

@media (max-width: 640px) {
  .ehr-section { padding-top: 30px; }
  .ehr-section-title { font-size: 31px; }
  .ehr-story-grid { gap: 18px; }
  .ehr-story-card { width: 100%; max-width: 100%; }
  .ehr-card-media { aspect-ratio: 16 / 9; }
  .ehr-card-body { padding: 18px 17px 21px; }
  .ehr-card-title { font-size: 21px; }
  .ehr-card-excerpt { font-size: 15px; -webkit-line-clamp: 3; }
  .ehr-theme-post-ad,
  .ehr-theme-home-ad { margin: 22px auto; }
}

/* ==========================================================
   V2.5 compact mobile reader and reliable collapsed menu
   ========================================================== */
.ehr-menu-label,
.ehr-menu-icon { display: none; }

@media (max-width: 860px) {
  body { overflow-x: hidden; }

  .site-header {
    position: relative;
    z-index: 2800;
    background: rgba(255,255,255,.98);
    border-bottom: 1px solid var(--ehr-line);
  }
  .ehr-header-inner {
    min-height: 72px;
    gap: 12px;
  }
  .site-branding {
    flex: 1 1 auto;
    max-width: calc(100% - 86px);
  }
  .site-title {
    max-width: 100%;
    font-size: clamp(25px, 7vw, 31px);
    line-height: 1;
    letter-spacing: -.045em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .custom-logo {
    max-width: min(255px, 64vw);
    max-height: 42px;
  }

  .ehr-nav-wrap { position: static; gap: 0; }
  .ehr-menu-toggle {
    display: inline-flex;
    width: auto;
    height: 44px;
    gap: 9px;
    padding: 0 4px 0 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-size: 17px;
    font-weight: 800;
  }
  .ehr-menu-toggle::before,
  .ehr-menu-toggle::after,
  .ehr-menu-toggle > span:not(.ehr-menu-label):not(.ehr-menu-icon):not(.screen-reader-text) {
    display: none;
  }
  .ehr-menu-label { display: inline; }
  .ehr-menu-icon {
    display: inline-flex;
    width: 22px;
    flex-direction: column;
    gap: 4px;
  }
  .ehr-menu-icon i {
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }
  .ehr-menu-toggle.is-open .ehr-menu-icon i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .ehr-menu-toggle.is-open .ehr-menu-icon i:nth-child(2) { opacity: 0; }
  .ehr-menu-toggle.is-open .ehr-menu-icon i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* The later V2.1 menu rules used to override the collapsed state. */
  .site-navigation .primary-menu,
  .site-navigation .primary-menu ul {
    display: none !important;
  }
  .site-navigation .primary-menu.is-open {
    display: flex !important;
  }
  .primary-menu {
    position: absolute;
    top: calc(100% + 1px);
    left: 14px;
    right: 14px;
    width: auto;
    max-height: min(70vh, 440px);
    overflow-y: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0 !important;
    padding: 10px;
    border: 1px solid var(--ehr-line);
    border-radius: 0 0 16px 16px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(18,32,65,.16);
  }
  .primary-menu > li,
  .primary-menu ul > li { width: 100%; }
  .primary-menu > li > a,
  .primary-menu ul > li > a {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border-radius: 10px;
    font-size: 15px;
  }
  .primary-menu > li > a:hover,
  .primary-menu .current-menu-item > a { background: var(--ehr-soft); }

  .ehr-header-search { display: none !important; }
  .ehr-site-breadcrumbs { display: none; }

  .ehr-reader-shell { padding: 22px 0 64px; }
  .ehr-story-breadcrumb {
    position: relative;
    gap: 8px;
    margin: 0 0 30px;
    padding: 0 0 14px;
    border-bottom: 4px solid #edf1f8;
    font-size: 12px;
    line-height: 1.25;
  }
  .ehr-story-breadcrumb::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: var(--ehr-chapter-progress, 12%);
    height: 4px;
    border-radius: 99px;
    background: var(--ehr-accent);
  }
  .ehr-breadcrumb-title {
    flex: 1 1 auto;
    max-width: none;
    font-size: 12px;
    letter-spacing: .04em;
  }
  .ehr-breadcrumb-sep { display: inline; }
  .ehr-chapter-count {
    flex: 0 0 auto;
    font-size: 12px;
    font-weight: 700;
  }

  .ehr-entry-header { margin-bottom: 22px; }
  .ehr-chapter-eyebrow { display: none; }
  .ehr-entry-title {
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: clamp(32px, 8.2vw, 43px);
    line-height: 1.08;
    letter-spacing: -.037em;
  }
  .ehr-entry-meta { display: none; }

  .ehr-featured-image {
    width: 100%;
    margin: 26px auto 34px;
    border-radius: 15px;
    box-shadow: none;
  }

  /* Compact floating chapter control, instead of a full-width block above the title. */
  .ehr-mobile-chapters {
    display: inline-flex;
    position: fixed;
    right: 16px;
    bottom: calc(22px + env(safe-area-inset-bottom));
    z-index: 2500;
    width: auto;
    min-width: 92px;
    justify-content: center;
    gap: 10px;
    margin: 0;
    padding: 13px 17px;
    border: 0;
    border-radius: 999px;
    background: var(--ehr-accent);
    color: #fff;
    box-shadow: 0 12px 30px rgba(23,104,255,.34);
    font-size: 14px;
    line-height: 1;
  }
  .ehr-mobile-chapters span:first-child {
    width: 18px;
    overflow: hidden;
    color: transparent;
    white-space: nowrap;
  }
  .ehr-mobile-chapters span:first-child::before {
    content: "☰";
    color: #fff;
    font-size: 18px;
  }
  .ehr-mobile-chapters span:last-child { white-space: nowrap; }

  .ehr-reader-sidebar {
    width: min(360px, 90vw);
    padding: 16px;
  }
}

@media (max-width: 430px) {
  .ehr-container { width: min(calc(100% - 36px), var(--ehr-site-width)); }
  .ehr-header-inner { min-height: 68px; }
  .site-title { font-size: clamp(23px, 6.65vw, 28px); }
  .ehr-menu-label { font-size: 16px; }
  .ehr-entry-title { font-size: clamp(31px, 8.1vw, 38px); }
  .ehr-entry-content { font-size: 18px; line-height: 1.72; }
  .ehr-story-breadcrumb { margin-bottom: 26px; }
}

/* ==========================================================
   V2.7 BlogSite Pro / outstream-video DOM compatibility
   ========================================================== */
#page.site { min-height: 100vh; }
#content.site-content.container { width: 100%; max-width: none; margin: 0; padding: 0; }
.ehr-reader-main.entry-content { overflow: visible; }
.ehr-theme-post-ad.custom-ad.single-top-ad,
.ehr-theme-post-ad.custom-ad.single-bottom-ad {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: visible;
  line-height: 1;
}
.ehr-theme-post-ad.custom-ad.single-top-ad { margin: 0 auto 24px; }
.ehr-theme-post-ad.custom-ad.single-bottom-ad { margin: 24px auto 0; }
.ehr-theme-post-ad.custom-ad.single-top-ad > div,
.ehr-theme-post-ad.custom-ad.single-top-ad iframe,
.ehr-theme-post-ad.custom-ad.single-top-ad video,
.ehr-theme-post-ad.custom-ad.single-top-ad object,
.ehr-theme-post-ad.custom-ad.single-top-ad embed {
  max-width: 100% !important;
}


/* ==========================================================
   V2.9 clean MGID One_Video integration
   ========================================================== */
/*
 * Keep the mount point neutral. MGID owns player dimensions, controls,
 * autoplay UI, and the inline-to-floating transition.
 */
#mgid-one-video-anchor {
  width: 100%;
  max-width: var(--ehr-site-width);
  margin: 0 auto 24px;
  position: relative;
  overflow: visible !important;
  transform: none !important;
  filter: none !important;
  perspective: none !important;
  contain: none !important;
}
#mgid-one-video-anchor:empty {
  display: none;
  margin: 0;
}
#mgid-one-video-anchor:not(:empty) { display: block; }

/* Never style or manufacture provider controls. */
#mgid-one-video-anchor iframe,
#mgid-one-video-anchor video,
#mgid-one-video-anchor object,
#mgid-one-video-anchor embed {
  border: 0;
  max-width: 100%;
}

/* Optional legacy fallback remains isolated from the MGID mount point. */
#ehr-legacy-top-video-fallback {
  width: 100%;
  max-width: var(--ehr-site-width);
  margin: 0 auto 24px;
  overflow: visible;
}

/* A transformed/clipped ancestor can prevent a provider fixed player from
 * floating at the viewport corner, so the reader chain stays neutral. */
#page,
#content,
#primary,
#main,
.ehr-reader-shell,
.ehr-reader-shell > .site-main,
.ehr-reader-shell .ehr-container,
.ehr-reader-grid,
.ehr-reader-main {
  overflow: visible !important;
  transform: none !important;
  filter: none !important;
  perspective: none !important;
}

@media (max-width: 860px) {
  #mgid-one-video-anchor { width: 100%; margin-bottom: 18px; }
}


/* ==========================================================
   V3.2 compact video: inline player + compact top sticky
   ========================================================== */
.ehr-fallback-video-stage {
  display: block;
  width: min(calc(100% - 32px), var(--ehr-video-inline-width, 640px));
  max-width: var(--ehr-video-inline-width, 640px);
  margin: 0 auto 24px;
  position: relative;
  z-index: 30;
}
.ehr-fallback-video-stage.is-closed { display: none !important; }

.ehr-fallback-video-player {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background: transparent;
  overflow: visible;
  box-shadow: none;
  transition: width .22s ease, right .22s ease, bottom .22s ease, box-shadow .22s ease;
}
.ehr-fallback-video-code {
  position: relative;
  width: 100%;
  min-height: 0;
  overflow: visible;
  background: transparent;
}

/* Do not show a wide black placeholder while the provider is still loading. */
.ehr-fallback-video-stage.is-waiting,
.ehr-fallback-video-stage.is-waiting .ehr-fallback-video-player,
.ehr-fallback-video-stage.is-waiting .ehr-fallback-video-code {
  min-height: 0;
  background: transparent;
}

.ehr-fallback-video-stage.is-ready .ehr-fallback-video-player,
.ehr-fallback-video-stage.is-ready .ehr-fallback-video-code {
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.ehr-fallback-video-code > * { max-width: 100%; }
.ehr-fallback-video-code iframe,
.ehr-fallback-video-code video,
.ehr-fallback-video-code object,
.ehr-fallback-video-code embed,
.ehr-fallback-video-code canvas {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  border: 0;
}

/* While waiting, preserve provider-supplied intrinsic dimensions so the
   controller can detect the player without creating a black 100%-wide box. */
.ehr-fallback-video-stage.is-waiting .ehr-fallback-video-code iframe,
.ehr-fallback-video-stage.is-waiting .ehr-fallback-video-code video,
.ehr-fallback-video-stage.is-waiting .ehr-fallback-video-code object,
.ehr-fallback-video-stage.is-waiting .ehr-fallback-video-code embed,
.ehr-fallback-video-stage.is-waiting .ehr-fallback-video-code canvas {
  height: auto;
  min-height: 0;
}

.ehr-fallback-video-stage.is-ready .ehr-fallback-video-code iframe,
.ehr-fallback-video-stage.is-ready .ehr-fallback-video-code video,
.ehr-fallback-video-stage.is-ready .ehr-fallback-video-code object,
.ehr-fallback-video-stage.is-ready .ehr-fallback-video-code embed,
.ehr-fallback-video-stage.is-ready .ehr-fallback-video-code canvas {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}


.ehr-fallback-video-player.is-sticky {
  position: fixed !important;
  left: 50% !important;
  right: auto !important;
  top: var(--ehr-sticky-top-offset, 0px) !important;
  bottom: auto !important;
  transform: translateX(-50%) !important;
  /* Keep exactly the same width the player had inside the article. */
  width: var(--ehr-sticky-inline-width, min(calc(100vw - 32px), var(--ehr-video-inline-width, 640px))) !important;
  max-width: 100vw !important;
  aspect-ratio: 16 / 9;
  margin: 0 !important;
  z-index: 2147483000 !important;
  box-shadow: 0 14px 42px rgba(0,0,0,.34);
  background: #000;
  overflow: hidden;
}
body.admin-bar .ehr-fallback-video-player.is-sticky {
  top: var(--ehr-sticky-top-offset, 32px) !important;
}
.ehr-fallback-video-player.is-sticky .ehr-fallback-video-code {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}
.ehr-fallback-video-player.is-sticky .ehr-fallback-video-code iframe,
.ehr-fallback-video-player.is-sticky .ehr-fallback-video-code video,
.ehr-fallback-video-player.is-sticky .ehr-fallback-video-code object,
.ehr-fallback-video-player.is-sticky .ehr-fallback-video-code embed,
.ehr-fallback-video-player.is-sticky .ehr-fallback-video-code canvas {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

/* HEAD-managed mode uses the same compact inline width. MGID remains in charge
   of its own player, autoplay, sticky transition, and floating close control. */
#mgid-one-video-anchor:not(:empty) {
  display: block;
  width: min(calc(100% - 32px), var(--ehr-video-inline-width, 640px));
  max-width: var(--ehr-video-inline-width, 640px);
  margin: 0 auto 24px;
}
#mgid-one-video-anchor iframe,
#mgid-one-video-anchor video,
#mgid-one-video-anchor object,
#mgid-one-video-anchor embed,
#mgid-one-video-anchor canvas {
  display: block;
  max-width: 100% !important;
}

body.ehr-fallback-video-sticky-active .ehr-mobile-chapters {
  left: auto;
  right: 14px;
}

@media (max-width: 860px) {
  .ehr-fallback-video-stage,
  #mgid-one-video-anchor:not(:empty) {
    width: calc(100% - 20px);
    max-width: none;
    margin-bottom: 18px;
  }
  .ehr-fallback-video-player.is-sticky {
    left: 50% !important;
    right: auto !important;
    top: var(--ehr-sticky-top-offset, 0px) !important;
    bottom: auto !important;
    transform: translateX(-50%) !important;
    /* Mobile also preserves the original inline article width. */
    width: var(--ehr-sticky-inline-width, calc(100vw - 20px)) !important;
    max-width: 100vw !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.32);
  }
  body.admin-bar .ehr-fallback-video-player.is-sticky {
    top: var(--ehr-sticky-top-offset, 46px) !important;
  }
}


/* ==========================================================
   V3.3 article-first video + cover image inside chapter table
   ========================================================== */
/* The video belongs to the article column, directly below the title/meta. */
.ehr-under-title-video {
  width: 100%;
  max-width: 100%;
  margin: 0 0 30px;
}
.ehr-under-title-video:empty { display: none; }
.ehr-under-title-video .ehr-fallback-video-stage,
.ehr-under-title-video #mgid-one-video-anchor,
.ehr-under-title-video #mgid-one-video-anchor:not(:empty),
.ehr-under-title-video .ehr-theme-post-ad.custom-ad.single-top-ad {
  width: 100%;
  max-width: 100%;
  margin: 0;
}
.ehr-under-title-video .ehr-fallback-video-stage.is-ready,
.ehr-under-title-video #mgid-one-video-anchor:not(:empty) {
  margin-bottom: 0;
}

/* Remove the former large featured image from the reading column. */
.ehr-reader-main > .ehr-featured-image { display: none !important; }

/* The article image now becomes a compact visual cover inside the TOC card. */
.ehr-toc-cover {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  border-bottom: 1px solid var(--ehr-line);
  background: var(--ehr-soft);
  aspect-ratio: 16 / 10;
}
.ehr-toc-cover-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 34%;
}

/* Keep enough chapter space after adding the cover image. */
.ehr-toc-list {
  max-height: min(42vh, 430px);
}

/* Both video modes fill the article width while inline. */
.ehr-fallback-video-stage,
#mgid-one-video-anchor:not(:empty) {
  width: 100%;
  max-width: 100%;
}

@media (max-width: 860px) {
  .ehr-under-title-video { margin-bottom: 24px; }
  .ehr-toc-cover { aspect-ratio: 16 / 10; }
  .ehr-toc-list { max-height: none; }
  .ehr-fallback-video-stage,
  #mgid-one-video-anchor:not(:empty) {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .ehr-entry-header { margin-bottom: 18px; }
  .ehr-under-title-video {
    width: 100%;
    margin: 0 0 22px;
  }
  .ehr-under-title-video .ehr-fallback-video-stage,
  .ehr-under-title-video #mgid-one-video-anchor:not(:empty) {
    width: 100%;
    margin: 0;
  }
  .ehr-toc-cover { aspect-ratio: 16 / 9; }
}


/* ==========================================================
   V3.4 mobile header + persistent top-sticky video refinements
   ========================================================== */
@media (max-width: 860px) {
  .ehr-header-inner {
    min-height: 64px;
    gap: 8px;
  }
  .site-branding {
    flex: 1 1 auto;
    max-width: calc(100% - 82px);
    overflow: hidden;
  }
  .site-title {
    max-width: 100%;
    font-size: clamp(19px, 5.45vw, 25px);
    line-height: 1;
    letter-spacing: -.04em;
  }
  .site-title a {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .ehr-menu-toggle {
    flex: 0 0 auto;
    height: 40px;
    gap: 6px;
    padding: 0 0 0 6px;
    font-size: 15px;
    line-height: 1;
  }
  .ehr-menu-icon,
  .ehr-menu-icon i {
    width: 20px;
  }
}

@media (max-width: 430px) {
  .ehr-container {
    width: min(calc(100% - 24px), var(--ehr-site-width));
  }
  .site-branding {
    max-width: calc(100% - 76px);
  }
  .site-title {
    font-size: clamp(18px, 5.25vw, 21px);
    letter-spacing: -.035em;
  }
  .ehr-menu-toggle {
    gap: 5px;
    padding-left: 4px;
    font-size: 14px;
  }
  .ehr-menu-icon,
  .ehr-menu-icon i {
    width: 19px;
  }
}

/* ==========================================================
   V3.5 provider-synchronized video rendering
   ========================================================== */
/* Do not resize every nested provider canvas/video/object. The provider owns
   its internal poster, canvas and compositing layers. Only the outer embed or
   direct raw video is sized by the theme. */
.ehr-fallback-video-code iframe,
.ehr-fallback-video-code video,
.ehr-fallback-video-code object,
.ehr-fallback-video-code embed,
.ehr-fallback-video-code canvas {
  max-width: none;
}
.ehr-fallback-video-code > iframe,
.ehr-fallback-video-code > video,
.ehr-fallback-video-code > object,
.ehr-fallback-video-code > embed,
.ehr-fallback-video-code > canvas {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
  border: 0;
}
.ehr-fallback-video-stage.is-ready .ehr-fallback-video-code > iframe,
.ehr-fallback-video-stage.is-ready .ehr-fallback-video-code > video,
.ehr-fallback-video-stage.is-ready .ehr-fallback-video-code > object,
.ehr-fallback-video-stage.is-ready .ehr-fallback-video-code > embed,
.ehr-fallback-video-stage.is-ready .ehr-fallback-video-code > canvas,
.ehr-fallback-video-player.is-sticky .ehr-fallback-video-code > iframe,
.ehr-fallback-video-player.is-sticky .ehr-fallback-video-code > video,
.ehr-fallback-video-player.is-sticky .ehr-fallback-video-code > object,
.ehr-fallback-video-player.is-sticky .ehr-fallback-video-code > embed,
.ehr-fallback-video-player.is-sticky .ehr-fallback-video-code > canvas {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}
/* Restore provider-controlled nested layers after broader rules from older
   versions. This prevents a poster/canvas from being stretched over a playing
   video and remaining visually frozen until a click. */
.ehr-fallback-video-code > div iframe,
.ehr-fallback-video-code > div video,
.ehr-fallback-video-code > div object,
.ehr-fallback-video-code > div embed,
.ehr-fallback-video-code > div canvas {
  width: revert !important;
  max-width: revert !important;
  height: revert !important;
  min-height: revert !important;
  aspect-ratio: auto !important;
  object-fit: initial !important;
}


/* ==========================================================
   V3.6 portable / cross-domain layout safety
   ========================================================== */
/* Keep homepage rows compact even when a featured title is long. */
@media (min-width: 1081px) {
  .ehr-feature-card {
    height: 560px;
    min-height: 0;
    max-height: 560px;
  }
  .ehr-feature-body {
    min-height: 0;
    overflow: hidden;
  }
  .ehr-feature-title {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    font-size: clamp(34px, 3.45vw, 52px);
  }
  .ehr-feature-excerpt {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 5;
  }
}
.ehr-feature-card--no-media { grid-template-columns: 1fr; }
.ehr-feature-card--no-media .ehr-feature-body { max-width: 760px; }
.ehr-side-stack {
  align-self: start;
  align-content: start;
  grid-auto-rows: auto;
}
.ehr-mini-card {
  min-height: 126px;
  align-self: start;
}
.ehr-mini-card--no-image {
  grid-template-columns: 1fr;
  min-height: 126px;
}
.ehr-mini-card--no-image > div { padding: 4px 2px; }

/* A migrated or deleted featured image must never leave a large blank TOC area. */
.ehr-toc-cover {
  max-height: 180px;
  aspect-ratio: 16 / 9;
}
.ehr-toc-cover:empty { display: none !important; }
.ehr-toc-cover-image {
  max-height: 180px;
  background: var(--ehr-soft);
}

/* Ad slots are reserved for ads only; do not allow old Search/Recent widgets to distort the reader. */
.ehr-reader-sidebar > .ehr-sidebar-ad .widget_search,
.ehr-reader-sidebar > .ehr-sidebar-ad .widget_recent_entries,
.ehr-reader-sidebar > .ehr-sidebar-ad .widget_recent_comments,
.ehr-reader-sidebar > .ehr-sidebar-ad .widget_archive,
.ehr-reader-sidebar > .ehr-sidebar-ad .widget_categories,
.ehr-reader-sidebar > .ehr-sidebar-ad .widget_meta,
.ehr-reader-sidebar > .ehr-sidebar-ad .wp-block-search,
.ehr-reader-sidebar > .ehr-sidebar-ad .wp-block-latest-posts,
.ehr-reader-sidebar > .ehr-sidebar-ad .wp-block-latest-comments,
.ehr-reader-sidebar > .ehr-sidebar-ad .wp-block-archives,
.ehr-reader-sidebar > .ehr-sidebar-ad .wp-block-categories {
  display: none !important;
}

@media (max-width: 1080px) {
  .ehr-feature-card { height: auto; max-height: none; }
  .ehr-side-stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ehr-mini-card { grid-template-columns: 92px minmax(0,1fr); min-height: 116px; }
  .ehr-mini-card img { width: 92px; height: 82px; }
  .ehr-mini-card--no-image { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .ehr-side-stack { grid-template-columns: 1fr; }
  .ehr-mini-card { min-height: 104px; }
  .ehr-toc-cover,
  .ehr-toc-cover-image { max-height: 210px; }
}


/* ==========================================================
   V3.7 mobile header/menu hard reset
   Fixes inherited span dimensions/backgrounds that caused the
   Menu label and hamburger lines to overlap on mobile browsers.
   ========================================================== */
@media (max-width: 860px) {
  .ehr-header-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 62px;
  }

  .site-branding {
    min-width: 0;
    max-width: none;
    overflow: hidden;
  }

  .site-title {
    width: 100%;
    max-width: 100%;
    font-size: clamp(20px, 5.25vw, 24px);
    line-height: 1;
    letter-spacing: -.035em;
  }

  .site-title a {
    display: block;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .custom-logo {
    max-width: min(230px, calc(100vw - 118px));
    max-height: 38px;
  }

  .ehr-nav-wrap {
    min-width: 0;
    justify-self: end;
    display: flex;
    align-items: center;
  }

  .ehr-menu-toggle {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    flex: 0 0 auto;
    min-width: 62px;
    max-width: 72px;
    height: 40px;
    gap: 6px;
    margin: 0;
    padding: 0 1px 0 4px;
    overflow: visible;
    white-space: nowrap;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--ehr-ink);
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
  }

  /* Hard reset the generic button-span styling from the base theme. */
  .ehr-menu-toggle .ehr-menu-label,
  .ehr-menu-toggle .ehr-menu-icon {
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .ehr-menu-toggle .ehr-menu-label {
    display: inline-block !important;
    flex: 0 0 auto;
    line-height: 1 !important;
  }

  .ehr-menu-toggle .ehr-menu-icon {
    display: inline-flex !important;
    flex: 0 0 18px;
    width: 18px !important;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 4px;
  }

  .ehr-menu-toggle .ehr-menu-icon i {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: currentColor;
  }

  .ehr-menu-toggle::before,
  .ehr-menu-toggle::after {
    display: none !important;
    content: none !important;
  }
}

@media (max-width: 430px) {
  .ehr-container {
    width: min(calc(100% - 24px), var(--ehr-site-width));
  }

  .ehr-header-inner {
    gap: 8px;
    min-height: 60px;
  }

  .site-title {
    font-size: clamp(19px, 5.1vw, 22px);
  }

  .custom-logo {
    max-width: min(210px, calc(100vw - 108px));
    max-height: 35px;
  }

  .ehr-menu-toggle {
    min-width: 58px;
    max-width: 66px;
    gap: 5px;
    padding-left: 2px;
    font-size: 13px;
  }

  .ehr-menu-toggle .ehr-menu-icon {
    flex-basis: 17px;
    width: 17px !important;
  }

  .ehr-menu-toggle .ehr-menu-icon i {
    width: 17px;
  }
}

@media (max-width: 350px) {
  .site-title {
    font-size: 18px;
  }
  .ehr-menu-label {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }
  .ehr-menu-toggle {
    min-width: 42px;
    max-width: 42px;
    justify-content: center !important;
    padding: 0;
  }
}


/* ==========================================================
   V3.8 clearer mobile story navigation + compact MGID notices
   ========================================================== */
@media (max-width: 860px) {
  .ehr-mobile-chapters {
    min-width: 168px;
    max-width: calc(100vw - 32px);
    padding: 12px 15px;
    gap: 8px;
    justify-content: flex-start;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .01em;
  }
  .ehr-mobile-chapters span:first-child {
    width: auto;
    overflow: visible;
    color: inherit;
  }
  .ehr-mobile-chapters span:first-child::before { content: none; }
  .ehr-mobile-chapters-icon {
    width: 18px;
    min-width: 18px;
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
  }
  .ehr-mobile-chapters-icon i {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
  }
  .ehr-mobile-chapters-label {
    white-space: nowrap;
    line-height: 1;
  }
  .ehr-mobile-chapters-count {
    white-space: nowrap;
    margin-left: auto;
    font-variant-numeric: tabular-nums;
  }
  .ehr-mobile-chapters-caret {
    font-size: 11px;
    line-height: 1;
    opacity: .9;
  }

  /* Applied by assets/js/mgid-mobile-notice-compact.js only to oversized
     fixed MGID notices near the top of the viewport. Individual transform
     properties preserve provider animation transforms whenever possible. */
  .ehr-compact-mgid-notice {
    left: 50% !important;
    right: auto !important;
    top: calc(74px + env(safe-area-inset-top)) !important;
    bottom: auto !important;
    margin: 0 !important;
    translate: -50% 0 !important;
    scale: var(--ehr-mgid-notice-scale, 1) !important;
    transform-origin: top center !important;
    max-width: none !important;
    max-height: none !important;
  }
}

@media (max-width: 360px) {
  .ehr-mobile-chapters { min-width: 142px; padding-inline: 13px; }
  .ehr-mobile-chapters-label-prefix { display: none; }
}

/* ========================================================================
   V3.9 PERFORMANCE MODE
   Keep the reader responsive while several third-party MGID/Advanced Ads
   units are updating the page. These rules avoid expensive repaint effects
   and skip off-screen card rendering without changing the content layout.
   ======================================================================== */
html { scroll-behavior: auto; }

.ehr-story-card,
.ehr-mini-card,
.ehr-related-card {
  content-visibility: auto;
  contain-intrinsic-size: 360px;
}

@media (max-width: 860px) {
  .site-header {
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .ehr-feature-card,
  .ehr-story-card,
  .ehr-mini-card,
  .ehr-reader-sidebar,
  .primary-menu,
  .ehr-mobile-chapters,
  .ehr-fallback-video-player.is-sticky {
    box-shadow: none !important;
  }

  .ehr-menu-icon i,
  .ehr-mobile-chapters,
  .ehr-reader-sidebar,
  .ehr-fallback-video-player {
    transition-duration: .12s !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ========================================================================
   V4.0 BBC-STYLE HEADER + FIXED STORY PARTS LABEL
   The public header no longer renders a migrated WordPress Primary Menu, so
   default links such as Sample Page cannot reappear on another domain.
   ======================================================================== */
.ehr-header-inner { position: relative; }
.ehr-nav-wrap {
  position: relative;
  margin-left: auto;
  gap: 0;
}
.ehr-bbc-toolbar {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
.ehr-header-icon-button,
.ehr-menu-toggle.ehr-header-icon-button,
.ehr-search-toggle.ehr-header-icon-button {
  position: relative;
  display: inline-flex !important;
  width: 44px !important;
  min-width: 44px !important;
  max-width: 44px !important;
  height: 44px !important;
  align-items: center;
  justify-content: center !important;
  gap: 0 !important;
  margin: 0;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--ehr-ink);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.ehr-header-icon-button:hover,
.ehr-header-icon-button:focus-visible,
.ehr-header-icon-button.is-open {
  color: var(--ehr-accent);
  background: var(--ehr-soft) !important;
  outline: none;
}
.ehr-menu-toggle.ehr-header-icon-button::before,
.ehr-menu-toggle.ehr-header-icon-button::after,
.ehr-menu-toggle.ehr-header-icon-button > span:not(.ehr-bbc-hamburger):not(.screen-reader-text) {
  display: none !important;
}
.ehr-bbc-hamburger {
  display: inline-flex !important;
  width: 24px !important;
  height: 18px !important;
  flex-direction: column;
  justify-content: space-between;
  margin: 0 !important;
  background: transparent !important;
}
.ehr-bbc-hamburger i {
  display: block;
  width: 24px;
  height: 2px;
  border-radius: 0;
  background: currentColor;
  transform-origin: center;
  transition: transform .12s ease, opacity .12s ease;
}
.ehr-menu-toggle.is-open .ehr-bbc-hamburger i:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.ehr-menu-toggle.is-open .ehr-bbc-hamburger i:nth-child(2) { opacity: 0; }
.ehr-menu-toggle.is-open .ehr-bbc-hamburger i:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.ehr-header-panel {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 5000;
  width: min(380px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid var(--ehr-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(16, 26, 51, .16);
}
.ehr-header-panel[hidden] { display: none !important; }
.ehr-header-menu-list {
  display: grid;
  margin: 0;
  padding: 8px;
  list-style: none;
}
.ehr-header-menu-list li { margin: 0; padding: 0; }
.ehr-header-menu-list a {
  display: flex;
  min-height: 50px;
  align-items: center;
  padding: 0 16px;
  border-bottom: 1px solid var(--ehr-line);
  color: var(--ehr-ink);
  font-size: 15px;
  font-weight: 750;
}
.ehr-header-menu-list li:last-child a { border-bottom: 0; }
.ehr-header-menu-list a:hover,
.ehr-header-menu-list .is-current > a {
  color: var(--ehr-accent);
  background: var(--ehr-soft);
}
.ehr-header-search-panel { padding: 14px; }
.ehr-header-search-panel .search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
.ehr-header-search-panel label { min-width: 0; }
.ehr-header-search-panel .search-field {
  width: 100%;
  height: 44px;
  padding: 0 13px;
  border: 1px solid #d8ddea;
  border-radius: 6px;
}
.ehr-header-search-panel .search-submit {
  min-width: 84px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  background: var(--ehr-accent);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

/* Always use the reader-facing wording requested for the floating control. */
.ehr-mobile-chapters {
  min-width: 190px !important;
  max-width: calc(100vw - 28px) !important;
  text-transform: uppercase;
  letter-spacing: .025em !important;
}
.ehr-mobile-chapters-label,
.ehr-mobile-chapters-count { font-weight: 850 !important; }
.ehr-toc-head > span:first-child {
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 850;
}

@media (max-width: 860px) {
  .site-header {
    position: relative;
    z-index: 3000;
  }
  .ehr-header-inner {
    min-height: 68px;
    gap: 10px;
  }
  .site-branding {
    flex: 1 1 auto;
    max-width: calc(100% - 96px);
    min-width: 0;
  }
  .site-title {
    max-width: 100%;
    font-size: clamp(22px, 6.2vw, 28px) !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .custom-logo {
    max-width: min(230px, calc(100vw - 122px));
    max-height: 38px;
  }
  .ehr-nav-wrap { position: static; }
  .ehr-bbc-toolbar { gap: 0; }
  .ehr-header-icon-button,
  .ehr-menu-toggle.ehr-header-icon-button,
  .ehr-search-toggle.ehr-header-icon-button {
    width: 42px !important;
    min-width: 42px !important;
    max-width: 42px !important;
    height: 42px !important;
  }
  .ehr-header-panel {
    top: calc(100% + 1px);
    left: 12px;
    right: 12px;
    width: auto;
    max-height: min(72vh, 520px);
    overflow-y: auto;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 14px 34px rgba(16, 26, 51, .14);
  }
  .ehr-header-menu-list { padding: 6px 10px 10px; }
  .ehr-header-menu-list a {
    min-height: 52px;
    padding: 0 14px;
    font-size: 16px;
  }
  .ehr-header-search-panel { padding: 12px; }
  .ehr-mobile-chapters {
    min-width: 194px !important;
    padding-inline: 14px !important;
    gap: 7px !important;
    font-size: 12.5px !important;
  }
}

@media (max-width: 380px) {
  .ehr-container { width: min(calc(100% - 24px), var(--ehr-site-width)); }
  .site-title { font-size: 20px !important; }
  .custom-logo { max-width: calc(100vw - 112px); }
  .ehr-header-icon-button,
  .ehr-menu-toggle.ehr-header-icon-button,
  .ehr-search-toggle.ehr-header-icon-button {
    width: 39px !important;
    min-width: 39px !important;
    max-width: 39px !important;
  }
  .ehr-mobile-chapters {
    min-width: 184px !important;
    font-size: 12px !important;
  }
}


/* ========================================================================
   V4.1 FULL STORY DIRECTORY + TRANSPARENT EDITORIAL SCORE
   ======================================================================== */
.ehr-story-score {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 3px 0 14px;
  color: #7a5a00;
  font-size: 13px;
  line-height: 1;
}
.ehr-score-stars {
  position: relative;
  display: inline-block;
  width: 82px;
  height: 18px;
  overflow: hidden;
  font-family: Arial, sans-serif;
  font-size: 17px;
  letter-spacing: 1px;
  line-height: 18px;
  white-space: nowrap;
}
.ehr-score-stars-base { color: #d9dde6; }
.ehr-score-stars-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--ehr-score-fill, 96%);
  overflow: hidden;
  color: #f4b400;
  white-space: nowrap;
}
.ehr-story-score strong {
  color: var(--ehr-ink);
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.ehr-score-label {
  color: var(--ehr-muted);
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .02em;
}
.ehr-story-score--compact {
  gap: 5px;
  margin: 7px 0 4px;
}
.ehr-story-score--compact .ehr-score-stars {
  width: 68px;
  height: 15px;
  font-size: 14px;
  line-height: 15px;
}
.ehr-story-score--compact strong { font-size: 12px; }
.ehr-story-score--compact .ehr-score-label { display: none; }
.ehr-entry-header .ehr-story-score { margin-top: 14px; }

.ehr-find-stories-section {
  padding: 18px 0 74px;
  background: #fff;
}
.ehr-find-stories-card {
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(34px, 6vw, 72px) 24px;
  border: 1px solid var(--ehr-line);
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  text-align: center;
}
.ehr-find-stories-card .ehr-kicker { margin-bottom: 10px; }
.ehr-find-stories-card h2 {
  margin: 0;
  color: var(--ehr-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
}
.ehr-find-stories-card p:not(.ehr-kicker) {
  max-width: 610px;
  margin: 16px auto 26px;
  color: var(--ehr-muted);
  font-size: 16px;
  line-height: 1.65;
}
.ehr-directory-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 23px;
  border-radius: 999px;
  background: var(--ehr-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 850;
  box-shadow: 0 10px 24px rgba(23, 104, 255, .18);
}
.ehr-directory-button:hover,
.ehr-directory-button:focus-visible {
  background: var(--ehr-accent-dark);
  color: #fff;
}

.ehr-story-directory { background: #fff; }
.ehr-directory-container {
  width: min(calc(100% - 40px), 980px);
  margin: 0 auto;
}
.ehr-directory-hero {
  padding: 64px 0 42px;
  border-bottom: 1px solid var(--ehr-line);
  background: linear-gradient(180deg, #f7f9fd 0%, #fff 100%);
  text-align: center;
}
.ehr-directory-hero .ehr-kicker { margin-inline: auto; }
.ehr-directory-hero h1 {
  margin: 0;
  color: var(--ehr-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(38px, 5vw, 58px);
  line-height: 1.08;
}
.ehr-directory-hero > .ehr-directory-container > p:not(.ehr-kicker) {
  max-width: 650px;
  margin: 16px auto 28px;
  color: var(--ehr-muted);
  font-size: 16px;
  line-height: 1.65;
}
.ehr-directory-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  max-width: 760px;
  margin: 0 auto;
}
.ehr-directory-search-field {
  display: flex;
  height: 52px;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid #cfd5e2;
  border-radius: 10px;
  background: #fff;
  color: var(--ehr-muted);
}
.ehr-directory-search-field:focus-within {
  border-color: var(--ehr-accent);
  box-shadow: 0 0 0 3px rgba(23,104,255,.12);
}
.ehr-directory-search-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ehr-ink);
  font-size: 16px;
}
.ehr-directory-search > button,
.ehr-directory-filters button {
  min-width: 110px;
  height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 10px;
  background: var(--ehr-accent);
  color: #fff;
  font-weight: 850;
  cursor: pointer;
}
.ehr-directory-results { padding: 34px 0 80px; }
.ehr-directory-tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--ehr-line);
}
.ehr-directory-tabs span {
  position: relative;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  padding: 0 4px;
  color: var(--ehr-muted);
  font-weight: 800;
}
.ehr-directory-tabs .is-active { color: var(--ehr-accent); }
.ehr-directory-tabs .is-active::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 3px;
  background: var(--ehr-accent);
}
.ehr-directory-toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0 18px;
}
.ehr-directory-count {
  margin: 0;
  color: var(--ehr-ink);
  font-size: 16px;
  font-weight: 850;
}
.ehr-directory-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 12px;
}
.ehr-directory-filters label {
  display: grid;
  gap: 5px;
  color: var(--ehr-muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ehr-directory-filters select {
  min-width: 150px;
  height: 42px;
  padding: 0 34px 0 11px;
  border: 1px solid #d4d9e4;
  border-radius: 8px;
  background: #fff;
  color: var(--ehr-ink);
  font-size: 14px;
  text-transform: none;
}
.ehr-directory-list { border-top: 1px solid var(--ehr-line); }
.ehr-directory-item {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid var(--ehr-line);
  content-visibility: auto;
  contain-intrinsic-size: 240px;
}
.ehr-directory-cover {
  display: block;
  height: 196px;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ehr-soft);
}
.ehr-directory-cover img,
.ehr-directory-cover-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ehr-directory-cover-placeholder {
  background: linear-gradient(135deg, #e9edf5, #f8fafc);
}
.ehr-directory-item-body { min-width: 0; }
.ehr-directory-item h2 {
  margin: 0 0 8px;
  color: var(--ehr-ink);
  font-size: clamp(23px, 3vw, 31px);
  line-height: 1.18;
  letter-spacing: -.02em;
}
.ehr-directory-item h2 a { color: inherit; }
.ehr-directory-excerpt {
  max-width: 690px;
  margin: 12px 0 14px;
  color: #38435a;
  font-size: 16px;
  line-height: 1.65;
}
.ehr-directory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 13px;
}
.ehr-directory-tags a {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #dce1eb;
  border-radius: 7px;
  background: #fff;
  color: #4d5870;
  font-size: 12px;
  font-weight: 700;
}
.ehr-directory-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  color: var(--ehr-muted);
  font-size: 13px;
}
.ehr-directory-empty {
  padding: 70px 20px;
  text-align: center;
}
.ehr-directory-empty h2 { margin: 0 0 12px; }
.ehr-directory-empty p { margin: 0 0 24px; color: var(--ehr-muted); }

@media (max-width: 760px) {
  .ehr-find-stories-section { padding: 8px 0 44px; }
  .ehr-find-stories-card { min-height: 220px; border-radius: 15px; }
  .ehr-directory-container { width: min(calc(100% - 28px), 980px); }
  .ehr-directory-hero { padding: 42px 0 30px; }
  .ehr-directory-search { grid-template-columns: 1fr; }
  .ehr-directory-search > button { width: 100%; }
  .ehr-directory-toolbar { align-items: stretch; flex-direction: column; }
  .ehr-directory-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .ehr-directory-filters label,
  .ehr-directory-filters select { width: 100%; min-width: 0; }
  .ehr-directory-item { grid-template-columns: 112px minmax(0, 1fr); gap: 15px; padding: 20px 0; }
  .ehr-directory-cover { height: 150px; border-radius: 9px; }
  .ehr-directory-item h2 { font-size: 21px; }
  .ehr-directory-excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 8px 0 10px;
    font-size: 14px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .ehr-directory-tags a:nth-child(n+3) { display: none; }
  .ehr-directory-meta { font-size: 12px; }
  .ehr-story-score { margin-bottom: 10px; }
}

@media (max-width: 420px) {
  .ehr-directory-filters { grid-template-columns: 1fr; }
  .ehr-directory-item { grid-template-columns: 92px minmax(0, 1fr); gap: 12px; }
  .ehr-directory-cover { height: 128px; }
  .ehr-directory-item h2 { font-size: 18px; }
  .ehr-directory-item .ehr-story-score .ehr-score-label { display: none; }
  .ehr-directory-excerpt { -webkit-line-clamp: 2; }
}

/* ========================================================================
   V4.2 AUTO-ADVANCING TRENDING STORIES CAROUSEL
   ======================================================================== */
.ehr-trending-section {
  padding: 54px 0 48px;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid var(--ehr-line);
}
.ehr-carousel-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}
.ehr-carousel-header .ehr-kicker { margin-bottom: 7px; }
.ehr-carousel-title {
  margin: 0;
  color: var(--ehr-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(29px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -.035em;
}
.ehr-carousel-controls {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.ehr-carousel-button {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #dfe3ea;
  border-radius: 999px;
  background: #fff;
  color: var(--ehr-ink);
  box-shadow: 0 5px 16px rgba(16,26,51,.06);
  cursor: pointer;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.ehr-carousel-button:hover,
.ehr-carousel-button:focus-visible {
  border-color: var(--ehr-accent);
  background: var(--ehr-accent);
  color: #fff;
  outline: none;
  transform: translateY(-1px);
}
.ehr-story-carousel { position: relative; }
.ehr-carousel-viewport {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.ehr-carousel-viewport::-webkit-scrollbar { display: none; }
.ehr-carousel-viewport:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--ehr-accent) 28%, transparent);
  outline-offset: 6px;
  border-radius: 14px;
}
.ehr-carousel-track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  width: max-content;
  min-width: 100%;
  padding: 1px 1px 8px;
}
.ehr-carousel-card {
  flex: 0 0 clamp(168px, 16vw, 205px);
  width: clamp(168px, 16vw, 205px);
  min-width: 0;
  scroll-snap-align: start;
}
.ehr-carousel-media {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  border-radius: 13px;
  background: #eef1f5;
  box-shadow: 0 8px 24px rgba(16,26,51,.09);
}
.ehr-carousel-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent 0%, rgba(10,15,28,.18) 100%);
}
.ehr-carousel-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}
.ehr-carousel-card:hover .ehr-carousel-media img { transform: scale(1.025); }
.ehr-carousel-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  background: linear-gradient(145deg, #eff4ff 0%, #d9e4ff 52%, #f5f7fb 100%);
  color: var(--ehr-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  font-weight: 700;
}
.ehr-carousel-score {
  position: absolute;
  z-index: 2;
  top: 9px;
  left: 9px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 29px;
  padding: 4px 9px;
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  background: rgba(255,255,255,.93);
  color: #586174;
  box-shadow: 0 3px 10px rgba(16,26,51,.12);
  font-size: 12px;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  backdrop-filter: blur(5px);
}
.ehr-carousel-score span { color: #f4b400; font-size: 15px; }
.ehr-carousel-card-body { padding: 13px 1px 0; }
.ehr-carousel-card-body h2 {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  color: var(--ehr-ink);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.32;
  letter-spacing: -.012em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.ehr-carousel-card-body h2 a { color: inherit; }
.ehr-carousel-card-body h2 a:hover { color: var(--ehr-accent); }
.ehr-carousel-card-body p {
  overflow: hidden;
  margin: 7px 0 0;
  color: var(--ehr-muted);
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ehr-carousel-progress {
  position: relative;
  width: min(310px, 46vw);
  height: 3px;
  margin: 18px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf4;
}
.ehr-carousel-progress span {
  display: block;
  width: 10%;
  height: 100%;
  border-radius: inherit;
  background: var(--ehr-accent);
  transition: width .45s ease;
}

@media (max-width: 900px) {
  .ehr-trending-section { padding: 38px 0 36px; }
  .ehr-carousel-card {
    flex-basis: clamp(160px, 29vw, 190px);
    width: clamp(160px, 29vw, 190px);
  }
}

@media (max-width: 600px) {
  .ehr-trending-section { padding: 29px 0 30px; }
  .ehr-carousel-header { align-items: center; margin-bottom: 18px; }
  .ehr-carousel-header .ehr-kicker { display: none; }
  .ehr-carousel-title { font-size: 28px; }
  .ehr-carousel-controls { gap: 6px; }
  .ehr-carousel-button { width: 39px; height: 39px; }
  .ehr-carousel-track { gap: 14px; }
  .ehr-carousel-card {
    flex-basis: min(43vw, 174px);
    width: min(43vw, 174px);
  }
  .ehr-carousel-media { border-radius: 11px; }
  .ehr-carousel-card-body { padding-top: 11px; }
  .ehr-carousel-card-body h2 { font-size: 14px; }
  .ehr-carousel-progress { margin-top: 15px; }
}

@media (prefers-reduced-motion: reduce) {
  .ehr-carousel-button,
  .ehr-carousel-media img,
  .ehr-carousel-progress span { transition: none !important; }
}


/* V4.3 — Story-part navigation, reactions and Facebook comments */
.ehr-chapter-nav{display:flex;flex-direction:column;align-items:center;gap:14px;margin:42px 0 34px;padding-top:28px;border-top:1px solid #e4e8ef}
.ehr-next-part-cta{display:grid;grid-template-columns:auto auto 22px;align-items:center;justify-content:center;gap:14px;min-width:min(100%,360px);padding:17px 28px;border-radius:10px;background:var(--ehr-accent);color:#fff!important;text-decoration:none!important;font-family:Arial,sans-serif;font-size:17px;font-weight:800;letter-spacing:.025em;box-shadow:0 12px 26px rgba(23,104,255,.22);transition:transform .18s ease,box-shadow .18s ease}
.ehr-next-part-cta:hover{transform:translateY(-2px);box-shadow:0 16px 30px rgba(23,104,255,.28)}
.ehr-next-part-cta strong{font-size:13px;padding:5px 9px;border-radius:999px;background:rgba(255,255,255,.18)}
.ehr-next-part-cta svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.3;stroke-linecap:round;stroke-linejoin:round}
.ehr-next-part-cta--complete{grid-template-columns:auto 22px;background:#0c172f}
.ehr-previous-part-link{color:#667085;text-decoration:none;font-family:Arial,sans-serif;font-size:14px;font-weight:700}
.ehr-story-reactions{margin:10px 0 38px;padding:30px 0 34px;border-top:1px solid #e4e8ef;border-bottom:1px solid #e4e8ef;text-align:center}
.ehr-story-reactions h2{margin:0;font-family:Arial,sans-serif;font-size:21px;line-height:1.35;color:#101828}
.ehr-reactions-subtitle{margin:8px 0 24px!important;color:#667085;font-family:Arial,sans-serif;font-size:14px}
.ehr-reaction-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px 12px}
.ehr-reaction-button{appearance:none;border:0;background:transparent;padding:0;display:flex;flex-direction:column;align-items:center;gap:7px;cursor:pointer;color:#101828;font-family:Arial,sans-serif}
.ehr-reaction-button:disabled{opacity:.62;cursor:wait}
.ehr-reaction-pill{display:inline-flex;align-items:center;gap:5px;min-width:56px;justify-content:center;padding:7px 10px;border-radius:999px;background:#f1f4f9;border:1px solid transparent;transition:background .16s ease,border-color .16s ease,transform .16s ease}
.ehr-reaction-emoji{font-size:19px;line-height:1}
.ehr-reaction-count{font-size:13px;font-weight:800}
.ehr-reaction-label{font-size:13px;line-height:1.25}
.ehr-reaction-button:hover .ehr-reaction-pill{transform:translateY(-2px);background:#e8eefc}
.ehr-reaction-button.is-selected .ehr-reaction-pill{background:#e9f0ff;border-color:var(--ehr-accent);box-shadow:0 0 0 3px rgba(23,104,255,.09)}
.ehr-reaction-button.is-selected .ehr-reaction-label{color:var(--ehr-accent);font-weight:800}
.ehr-reaction-status{min-height:18px;margin:18px 0 0!important;color:#667085;font-family:Arial,sans-serif;font-size:13px}
.ehr-facebook-comments{margin:0 0 42px;padding:28px;border:1px solid #e2e7ef;border-radius:14px;background:#fff;box-shadow:0 12px 32px rgba(15,23,42,.05)}
.ehr-comments-heading{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:20px}
.ehr-comments-heading h2{margin:3px 0 0;font-family:Arial,sans-serif;font-size:25px;color:#101828}
.ehr-comments-kicker{font-family:Arial,sans-serif;font-size:11px;font-weight:900;letter-spacing:.12em;color:var(--ehr-accent)}
.ehr-comments-heading p{max-width:320px;margin:0!important;color:#667085;font-family:Arial,sans-serif;font-size:13px;line-height:1.45;text-align:right}
.ehr-facebook-comments-loader{display:flex;align-items:center;justify-content:center;gap:10px;min-height:100px;color:#667085;font-family:Arial,sans-serif;font-size:14px}
.ehr-facebook-comments-loader span{width:18px;height:18px;border:2px solid #d5dbe6;border-top-color:var(--ehr-accent);border-radius:50%;animation:ehr-spin .8s linear infinite}
.ehr-facebook-comments.is-loaded .ehr-facebook-comments-loader{display:none}
.ehr-facebook-comments-admin{margin:20px 0;padding:14px 16px;border-left:4px solid #d97706;background:#fff8e6;font-family:Arial,sans-serif;font-size:14px}
@keyframes ehr-spin{to{transform:rotate(360deg)}}
@media (max-width:760px){
 .ehr-chapter-nav{margin:30px 0 28px;padding-top:24px}
 .ehr-next-part-cta{width:100%;min-width:0;padding:16px 18px;font-size:16px;border-radius:9px}
 .ehr-story-reactions{padding:26px 0 28px}
 .ehr-story-reactions h2{font-size:19px}
 .ehr-reaction-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:17px 6px}
 .ehr-reaction-label{font-size:12px}
 .ehr-reaction-pill{min-width:52px;padding:7px 8px}
 .ehr-facebook-comments{padding:20px 14px;border-radius:10px}
 .ehr-comments-heading{display:block}
 .ehr-comments-heading h2{font-size:22px}
 .ehr-comments-heading p{max-width:none;margin-top:8px!important;text-align:left}
}
@media (max-width:380px){.ehr-reaction-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* V4.4 — immediate engagement before trailing MGID/Advanced Ads */
.ehr-part-engagement{
  width:100%;
  clear:both;
  margin:26px 0 34px;
  color:var(--ehr-ink);
  font-family:Arial,Helvetica,sans-serif;
  font-size:16px;
  line-height:1.5;
}
.ehr-entry-content > .ehr-part-engagement{margin-top:30px}
.ehr-part-engagement .ehr-chapter-nav{margin-top:0}
.ehr-story-reactions{margin:10px 0 24px;padding:24px 0 25px}
.ehr-story-reactions h2{font-size:20px}
.ehr-reactions-subtitle{margin:7px 0 20px!important}
.ehr-reaction-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:17px 12px;max-width:720px;margin:0 auto}
.ehr-reaction-button{min-width:0}
.ehr-reaction-pill{min-width:58px;padding:7px 10px}
.ehr-reaction-label{font-size:13px;font-weight:600}
.ehr-reaction-status{margin-top:12px!important}
.ehr-facebook-comments{margin:0 0 24px;padding:24px 22px;overflow:hidden}
.ehr-facebook-comments-frame{display:block;width:100%;min-height:560px;border:0;background:#fff;opacity:0;transition:opacity .18s ease}
.ehr-facebook-comments.is-loaded .ehr-facebook-comments-frame{opacity:1}
.ehr-facebook-comments.is-loaded .ehr-facebook-comments-loader{display:none}

@media (max-width:700px){
  .ehr-part-engagement{margin:22px 0 28px}
  .ehr-story-reactions{padding:22px 0 23px;margin-bottom:20px}
  .ehr-story-reactions h2{font-size:18px;padding:0 10px}
  .ehr-reactions-subtitle{font-size:12px;margin-bottom:17px!important;padding:0 10px}
  .ehr-reaction-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:15px 4px}
  .ehr-reaction-pill{min-width:48px;padding:6px 7px}
  .ehr-reaction-emoji{font-size:18px}
  .ehr-reaction-label{font-size:11px;line-height:1.2}
  .ehr-facebook-comments{padding:18px 10px;margin-bottom:20px}
  .ehr-facebook-comments-frame{min-height:640px}
}


/* V4.6 — Compact two-field comments (name + 150-character comment) */
.ehr-comments-compact{margin:0 0 24px;border:1px solid #e1e6ef;border-radius:12px;background:#fff;overflow:hidden;box-shadow:0 8px 24px rgba(15,23,42,.045)}
.ehr-comments-toggle{appearance:none;width:100%;border:0;background:#fff;padding:16px 18px;display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:12px;text-align:left;cursor:pointer;color:#101828;font-family:Arial,Helvetica,sans-serif}
.ehr-comments-toggle:hover{background:#f8faff}
.ehr-comments-toggle-icon{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:#eef4ff;color:var(--ehr-accent);font-size:18px;font-weight:900}
.ehr-comments-toggle-copy{min-width:0}
.ehr-comments-toggle-copy strong{display:block;font-size:16px;line-height:1.2}
.ehr-comments-toggle-copy span{display:block;margin-top:3px;color:#667085;font-size:12px;line-height:1.35}
.ehr-comments-count{display:inline-flex;min-width:30px;height:30px;align-items:center;justify-content:center;padding:0 8px;border-radius:999px;background:#f0f3f8;color:#344054;font-size:12px;font-weight:800}
.ehr-comments-caret{font-size:17px;color:#667085;transition:transform .18s ease}
.ehr-comments-toggle[aria-expanded="true"] .ehr-comments-caret{transform:rotate(180deg)}
.ehr-comments-panel{border-top:1px solid #edf0f5;padding:18px}
.ehr-comments-panel[hidden]{display:none!important}
.ehr-comments-list{display:grid;gap:14px;max-height:360px;overflow:auto;padding-right:4px;margin-bottom:18px}
.ehr-comment-item{display:grid;grid-template-columns:42px minmax(0,1fr);gap:11px;padding-bottom:14px;border-bottom:1px solid #edf0f5}
.ehr-comment-item:last-child{border-bottom:0;padding-bottom:0}
.ehr-comment-avatar img{width:42px;height:42px;border-radius:50%;display:block}
.ehr-comment-author{display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-family:Arial,sans-serif;font-size:14px;font-weight:800;color:#101828}
.ehr-comment-date{color:#98a2b3;font-size:11px;font-weight:500}
.ehr-comment-text{margin-top:5px;color:#344054;font-family:Arial,sans-serif;font-size:14px;line-height:1.55;overflow-wrap:anywhere}
.ehr-comments-empty{margin:0 0 14px;color:#667085;font-family:Arial,sans-serif;font-size:14px}
.ehr-native-comment-form{display:grid;gap:10px;padding-top:16px;border-top:1px solid #edf0f5}
.ehr-comment-fields{display:grid;grid-template-columns:1fr;gap:10px}
.ehr-native-comment-form input[type="text"],.ehr-native-comment-form textarea{width:100%;border:1px solid #d8dee9;border-radius:8px;background:#fff;padding:11px 12px;color:#101828;font-family:Arial,sans-serif;font-size:14px;outline:none}
.ehr-native-comment-form textarea{min-height:84px;max-height:150px;resize:vertical}
.ehr-native-comment-form input:focus,.ehr-native-comment-form textarea:focus{border-color:var(--ehr-accent);box-shadow:0 0 0 3px rgba(23,104,255,.10)}
.ehr-comment-character-row{display:flex;align-items:center;justify-content:flex-end;min-height:16px;margin-top:-5px}
.ehr-comment-counter{color:#667085;font-family:Arial,sans-serif;font-size:11px;font-weight:700;line-height:1}
.ehr-comment-counter.is-near-limit{color:#b54708}
.ehr-comment-submit{justify-self:start;border:0;border-radius:8px;background:var(--ehr-accent);color:#fff;padding:11px 18px;font-family:Arial,sans-serif;font-size:13px;font-weight:800;cursor:pointer}
.ehr-comment-hp{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}
.ehr-comment-pending{margin:0 0 14px;padding:10px 12px;border-radius:8px;background:#fff8e6;color:#7a4a00;font-family:Arial,sans-serif;font-size:13px}
.ehr-facebook-legacy{margin:0 0 24px;border:1px solid #e1e6ef;border-radius:12px;background:#fff;overflow:hidden}
.ehr-facebook-legacy .ehr-facebook-comments-frame{display:none;width:100%;height:420px;min-height:0;border:0;background:#fff}
.ehr-facebook-legacy.is-open .ehr-facebook-comments-frame{display:block}
.ehr-facebook-legacy .ehr-facebook-comments-loader{display:none;min-height:0;padding:16px}
.ehr-facebook-legacy.is-loading .ehr-facebook-comments-loader{display:flex}
.ehr-facebook-unavailable{display:none;padding:14px 18px;border-top:1px solid #edf0f5;color:#667085;font-family:Arial,sans-serif;font-size:13px}
.ehr-facebook-legacy.is-unavailable .ehr-facebook-unavailable{display:block}
.ehr-facebook-legacy.is-unavailable .ehr-facebook-comments-frame,.ehr-facebook-legacy.is-unavailable .ehr-facebook-comments-loader{display:none!important}
@media(max-width:700px){.ehr-comments-toggle{padding:14px 13px;grid-template-columns:auto 1fr auto;gap:9px}.ehr-comments-toggle-icon{width:32px;height:32px;font-size:16px}.ehr-comments-toggle-copy strong{font-size:15px}.ehr-comments-panel{padding:14px 12px}.ehr-comments-list{max-height:300px}.ehr-facebook-legacy .ehr-facebook-comments-frame{height:360px}}

/* ========================================================================
   V4.7 HOMEPAGE EXPANSION — DRAFT TO DRAMA, AUDIOBOOKS, LATEST CONVEYOR
   ======================================================================== */
.ehr-adaptation-section {
  padding: 40px 0 30px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fd 100%);
}
.ehr-adaptation-shell {
  display: grid;
  grid-template-columns: minmax(0, 360px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: center;
  padding: clamp(26px, 4vw, 40px);
  border: 1px solid var(--ehr-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(16,26,51,.06);
}
.ehr-adaptation-copy h2 {
  margin: 0 0 14px;
  color: var(--ehr-ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(32px, 3.6vw, 50px);
  line-height: 1.02;
  letter-spacing: -.045em;
}
.ehr-adaptation-copy p:not(.ehr-kicker) {
  margin: 0;
  color: var(--ehr-muted);
  font-size: 17px;
  line-height: 1.72;
}
.ehr-adaptation-journey {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1vw, 14px);
}
.ehr-phone-story {
  flex: 1 1 0;
  min-width: 0;
}
.ehr-phone-frame {
  position: relative;
  padding: 14px;
  border-radius: 38px;
  background: linear-gradient(160deg, #1e2435 0%, #0c111a 100%);
  box-shadow: 0 20px 48px rgba(10,16,28,.22);
}
.ehr-phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  z-index: 3;
  width: 32%;
  height: 22px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #07090f;
}
.ehr-phone-screen {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 9 / 18.5;
  border-radius: 28px;
  background: #ebeff6;
}
.ehr-phone-screen img,
.ehr-phone-screen .ehr-carousel-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ehr-phone-overlay {
  position: absolute;
  inset: auto 12px 12px;
  display: grid;
  gap: 4px;
  padding: 12px 12px 11px;
  border-radius: 16px;
  background: rgba(11,15,24,.74);
  color: #fff;
  backdrop-filter: blur(8px);
}
.ehr-phone-overlay strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.ehr-phone-overlay small { color: rgba(255,255,255,.86); font-size: 12px; }
.ehr-phone-meta {
  padding-top: 13px;
  text-align: center;
}
.ehr-phone-step {
  display: inline-flex;
  padding: 6px 11px;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--ehr-accent);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.ehr-phone-meta h3 {
  margin: 10px 0 0;
  font-size: 15px;
  line-height: 1.35;
}
.ehr-phone-meta h3 a { color: var(--ehr-ink); }
.ehr-phone-connector {
  flex: 0 0 84px;
  color: #ef5d29;
}
.ehr-phone-connector svg { display: block; width: 100%; height: auto; }

.ehr-audiobooks-section {
  padding: 26px 0 26px;
  background: #fff;
}
.ehr-audiobooks-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
  padding: clamp(32px, 5vw, 62px) clamp(26px, 4vw, 56px);
  border-radius: 28px;
  background: radial-gradient(circle at 50% 28%, rgba(103, 197, 186, .54) 0%, rgba(227, 243, 241, .72) 28%, #f6fbfb 64%, #f8fbfd 100%);
}
.ehr-audio-overline {
  margin: 0 0 4px;
  color: rgba(255,255,255,.96);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 5vw, 70px);
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  text-align: center;
}
.ehr-audiobooks-hero h2 {
  position: relative;
  z-index: 2;
  margin: 0;
  color: rgba(255,255,255,.97);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(64px, 10vw, 128px);
  font-weight: 900;
  line-height: .94;
  letter-spacing: -.06em;
  text-align: center;
}
.ehr-audiobooks-hero p {
  position: relative;
  z-index: 2;
  width: min(720px, 100%);
  margin: 18px auto 0;
  color: #283149;
  font-size: clamp(17px, 2vw, 19px);
  line-height: 1.65;
  text-align: center;
}
.ehr-audio-wave {
  position: absolute;
  inset: 0 0 auto;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 160px;
  transform: translateY(-50%);
  opacity: .55;
  pointer-events: none;
}
.ehr-audio-wave span {
  width: 3px;
  height: calc(18px + (var(--i) % 8) * 8px);
  border-radius: 999px;
  background: rgba(68, 89, 102, .18);
  animation: ehrAudioPulse calc(1.2s + (var(--i) % 5) * .15s) ease-in-out infinite;
  animation-delay: calc(var(--i) * -0.09s);
}
@keyframes ehrAudioPulse {
  0%, 100% { transform: scaleY(.45); opacity: .3; }
  50% { transform: scaleY(1.25); opacity: .82; }
}
.ehr-carousel-header--subsection { margin-bottom: 18px; }
.ehr-carousel-title--small {
  font-size: clamp(28px, 3vw, 42px);
}
.ehr-story-carousel--audio .ehr-carousel-track { gap: 18px; }
.ehr-audio-card {
  flex: 0 0 clamp(150px, 14vw, 186px);
  width: clamp(150px, 14vw, 186px);
}
.ehr-story-carousel--audio .ehr-carousel-media {
  aspect-ratio: 3 / 4.25;
  border-radius: 16px;
}
.ehr-story-carousel--audio .ehr-carousel-card-body h2 {
  font-size: 16px;
  -webkit-line-clamp: 3;
}

.ehr-section--latest-strip {
  padding-top: 22px;
}
.ehr-story-carousel--cards .ehr-carousel-track {
  gap: 24px;
  padding-bottom: 10px;
}
.ehr-latest-carousel-card {
  flex: 0 0 clamp(290px, 28vw, 410px);
  width: clamp(290px, 28vw, 410px);
  min-width: 0;
  scroll-snap-align: start;
}
.ehr-latest-carousel-card .ehr-card-media img,
.ehr-latest-carousel-card .ehr-card-media .ehr-card-placeholder {
  width: 100%;
  height: 100%;
}
.ehr-latest-carousel-card .ehr-card-title {
  font-size: 21px;
}
.ehr-latest-carousel .ehr-carousel-progress {
  width: min(380px, 55vw);
}

@media (max-width: 1080px) {
  .ehr-adaptation-shell { grid-template-columns: 1fr; }
  .ehr-adaptation-copy { text-align: center; }
}
@media (max-width: 820px) {
  .ehr-adaptation-journey {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
  }
  .ehr-phone-connector { display: none; }
}
@media (max-width: 680px) {
  .ehr-adaptation-section { padding: 24px 0 20px; }
  .ehr-adaptation-shell { padding: 22px; border-radius: 20px; }
  .ehr-adaptation-copy h2 { font-size: 30px; }
  .ehr-adaptation-journey { grid-template-columns: 1fr; }
  .ehr-phone-story { max-width: 300px; margin: 0 auto; }
  .ehr-audiobooks-hero { border-radius: 22px; padding: 30px 20px 34px; }
  .ehr-audio-wave { gap: 6px; height: 118px; }
  .ehr-audio-wave span { width: 2px; }
  .ehr-story-carousel--audio .ehr-carousel-track { gap: 14px; }
  .ehr-audio-card { flex-basis: min(42vw, 170px); width: min(42vw, 170px); }
  .ehr-latest-carousel-card { flex-basis: min(86vw, 340px); width: min(86vw, 340px); }
}

/* ========================================================================
   V4.7 — Story journey block, audiobook hero, and latest-story conveyor
   ======================================================================== */
.ehr-audiobook-section{padding:14px 0 16px}
.ehr-audiobook-hero{
  position:relative;
  overflow:hidden;
  margin-bottom:38px;
  background:linear-gradient(90deg,#edf6f5 0%,#d7ece9 49%,#eef5f6 100%);
}
.ehr-audiobook-hero-inner{
  position:relative;
  min-height:340px;
  padding:64px 0 54px;
  text-align:center;
}
.ehr-audiobook-hello{
  position:relative;
  z-index:2;
  margin:0 0 8px;
  color:#fff;
  font-family:Georgia,"Times New Roman",serif;
  font-size:74px;
  font-style:italic;
  line-height:1;
  text-shadow:0 4px 24px rgba(15,23,42,.12);
}
.ehr-audiobook-display{
  position:relative;
  z-index:1;
  margin:0;
  color:rgba(255,255,255,.92);
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:clamp(64px,9vw,142px);
  font-weight:900;
  line-height:.95;
  letter-spacing:-.06em;
}
.ehr-audiobook-headphones{
  position:absolute;
  top:46%;
  left:50%;
  z-index:3;
  transform:translate(-50%,-54%);
  font-size:82px;
  line-height:1;
  filter:drop-shadow(0 14px 20px rgba(15,23,42,.14));
}
.ehr-audiobook-copy{
  position:relative;
  z-index:2;
  max-width:660px;
  margin:20px auto 0;
  color:#16303a;
  font-size:18px;
  line-height:1.6;
}
.ehr-audiobook-wave{
  position:absolute;
  inset:50% 0 auto;
  display:flex;
  gap:8px;
  justify-content:center;
  transform:translateY(-50%);
  opacity:.48;
  pointer-events:none;
}
.ehr-audiobook-wave span{
  width:3px;
  height:22px;
  border-radius:999px;
  background:rgba(58,88,93,.32);
  animation:ehr-audio-wave 1.9s ease-in-out infinite;
  animation-delay:var(--ehr-wave-delay,0s);
}
@keyframes ehr-audio-wave{
  0%,100%{transform:scaleY(.4);opacity:.35}
  50%{transform:scaleY(2.5);opacity:.95}
}
.ehr-section-header--compact{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  margin-bottom:18px;
}
.ehr-section-title--sans{
  font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  font-size:clamp(28px,3vw,42px);
}
.ehr-story-carousel--audiobooks .ehr-carousel-track{gap:22px}
.ehr-story-carousel--audiobooks .ehr-carousel-card{
  flex:0 0 clamp(150px,14vw,178px);
  width:clamp(150px,14vw,178px);
}
.ehr-audiobook-card .ehr-carousel-media{aspect-ratio:3/4;border-radius:15px}
.ehr-audiobook-body{padding-top:12px}
.ehr-audiobook-body h3{
  display:-webkit-box;
  overflow:hidden;
  margin:0;
  color:var(--ehr-ink);
  font-size:16px;
  font-weight:760;
  line-height:1.3;
  -webkit-line-clamp:2;
  -webkit-box-orient:vertical;
}
.ehr-audiobook-body h3 a{color:inherit}
.ehr-audiobook-body h3 a:hover{color:var(--ehr-accent)}
.ehr-audiobook-body p{
  margin:6px 0 0;
  color:var(--ehr-muted);
  font-size:13px;
  white-space:normal;
}

.ehr-section--latest-belt{padding:32px 0 26px}
.ehr-story-carousel--latest .ehr-carousel-track{
  gap:24px;
  padding-bottom:10px;
}
.ehr-story-carousel--latest .ehr-story-card--belt{
  flex:0 0 clamp(300px,30vw,374px);
  width:clamp(300px,30vw,374px);
  scroll-snap-align:start;
}
.ehr-story-card--belt{
  display:flex;
  flex-direction:column;
  height:100%;
}
.ehr-story-card--belt .ehr-card-media{aspect-ratio:16/10}
.ehr-story-card--belt .ehr-card-body{display:flex;flex-direction:column;gap:0;flex:1}
.ehr-story-card--belt .ehr-card-title{font-size:23px;line-height:1.24}
.ehr-story-card--belt .ehr-card-excerpt{
  display:-webkit-box;
  overflow:hidden;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:3;
}
.ehr-story-card--belt .ehr-read-link{margin-top:auto}

@media (max-width:960px){
  .ehr-audiobook-hello{font-size:58px}
  .ehr-audiobook-copy{font-size:16px}
}
@media (max-width:760px){
  .ehr-audiobook-hero-inner{min-height:280px;padding:46px 0 42px}
  .ehr-audiobook-headphones{font-size:60px;top:44%}
  .ehr-audiobook-hello{font-size:44px}
  .ehr-audiobook-display{font-size:clamp(52px,17vw,94px)}
  .ehr-audiobook-copy{font-size:15px;max-width:500px;padding:0 14px}
  .ehr-audiobook-wave{gap:5px}
  .ehr-audiobook-wave span{width:2px}
  .ehr-story-carousel--audiobooks .ehr-carousel-card{
    flex-basis:min(42vw,172px);
    width:min(42vw,172px);
  }
  .ehr-story-carousel--latest .ehr-story-card--belt{
    flex-basis:min(84vw,340px);
    width:min(84vw,340px);
  }
  .ehr-section--latest-belt{padding-top:22px}
}
@media (max-width:480px){
  .ehr-story-phone-shell{max-width:100%;padding:12px 10px 14px;border-radius:28px}
  .ehr-story-phone-notch{width:76px;height:18px}
  .ehr-story-phone-copy{padding:14px 14px 16px}
  .ehr-audiobook-section{padding-top:0}
  .ehr-audiobook-hero{margin-bottom:28px}
  .ehr-audiobook-hero-inner{min-height:246px;padding:38px 0 34px}
  .ehr-section-header--compact{align-items:flex-end}
  .ehr-section-title--sans{font-size:22px}
}

/* ========================================================================
   V4.8.3 — unify Featured Audiobooks + Latest Stories with Trending carousel
   ======================================================================== */
.ehr-story-carousel--audiobooks .ehr-carousel-track,
.ehr-story-carousel--latest .ehr-carousel-track{
  gap:20px;
}
.ehr-story-carousel--audiobooks .ehr-carousel-card,
.ehr-story-carousel--latest .ehr-carousel-card,
.ehr-latest-carousel-card{
  flex:0 0 clamp(168px, 16vw, 205px);
  width:clamp(168px, 16vw, 205px);
}
.ehr-story-carousel--audiobooks .ehr-carousel-media,
.ehr-story-carousel--latest .ehr-carousel-media{
  aspect-ratio:3 / 4;
  border-radius:13px;
}
.ehr-audiobook-body,
.ehr-story-carousel--latest .ehr-carousel-card-body{
  padding:13px 1px 0;
}
.ehr-audiobook-body h3{
  display:-webkit-box;
  overflow:hidden;
  margin:0;
  color:var(--ehr-ink);
  font-size:15px;
  font-weight:760;
  line-height:1.32;
  letter-spacing:-.012em;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
}
.ehr-audiobook-body p,
.ehr-story-carousel--latest .ehr-carousel-card-body p{
  overflow:hidden;
  margin:7px 0 0;
  color:var(--ehr-muted);
  font-size:12px;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.ehr-section--latest-belt{padding:22px 0 26px}

@media (max-width: 900px) {
  .ehr-story-carousel--audiobooks .ehr-carousel-card,
  .ehr-story-carousel--latest .ehr-carousel-card,
  .ehr-latest-carousel-card{
    flex-basis:clamp(160px, 29vw, 190px);
    width:clamp(160px, 29vw, 190px);
  }
}

@media (max-width: 600px) {
  .ehr-story-carousel--audiobooks .ehr-carousel-track,
  .ehr-story-carousel--latest .ehr-carousel-track{gap:14px}
  .ehr-story-carousel--audiobooks .ehr-carousel-card,
  .ehr-story-carousel--latest .ehr-carousel-card,
  .ehr-latest-carousel-card{
    flex-basis:min(43vw, 174px);
    width:min(43vw, 174px);
  }
  .ehr-audiobook-body,
  .ehr-story-carousel--latest .ehr-carousel-card-body{padding-top:11px}
  .ehr-audiobook-body h3{font-size:14px}
}

/* ========================================================================
   V4.8.4 — sync Trending, Featured Audiobooks, Latest Stories
   - same conveyor layout on desktop/mobile
   - autoplay every 10 seconds (set in template)
   - 15 posts per section
   - full titles shown without truncation
   ======================================================================== */
:root{
  --ehr-home-belt-card: clamp(172px, 16.2vw, 205px);
  --ehr-home-belt-card-mobile: min(43vw, 176px);
  --ehr-home-belt-gap: 20px;
}

.ehr-trending-section .ehr-carousel-track,
.ehr-story-carousel--audiobooks .ehr-carousel-track,
.ehr-story-carousel--latest .ehr-carousel-track{
  gap: var(--ehr-home-belt-gap);
}

.ehr-trending-section .ehr-carousel-card,
.ehr-story-carousel--audiobooks .ehr-carousel-card,
.ehr-story-carousel--latest .ehr-carousel-card,
.ehr-latest-carousel-card,
.ehr-audiobook-card{
  flex: 0 0 var(--ehr-home-belt-card);
  width: var(--ehr-home-belt-card);
  min-width: 0;
}

.ehr-trending-section .ehr-carousel-media,
.ehr-story-carousel--audiobooks .ehr-carousel-media,
.ehr-story-carousel--latest .ehr-carousel-media{
  aspect-ratio: 3 / 4;
  border-radius: 13px;
}

.ehr-trending-section .ehr-carousel-card-body,
.ehr-story-carousel--audiobooks .ehr-carousel-card-body,
.ehr-story-carousel--latest .ehr-carousel-card-body{
  padding: 13px 1px 0;
}

.ehr-trending-section .ehr-carousel-card-body h2,
.ehr-story-carousel--latest .ehr-carousel-card-body h2,
.ehr-story-carousel--audiobooks .ehr-audiobook-body h3{
  display: block;
  overflow: visible;
  margin: 0;
  color: var(--ehr-ink);
  font-size: 15px;
  font-weight: 760;
  line-height: 1.32;
  letter-spacing: -.012em;
  -webkit-line-clamp: unset;
  -webkit-box-orient: initial;
  white-space: normal;
  word-break: break-word;
  text-wrap: pretty;
}

.ehr-trending-section .ehr-carousel-card-body p,
.ehr-story-carousel--audiobooks .ehr-audiobook-body p,
.ehr-story-carousel--latest .ehr-carousel-card-body p{
  overflow: visible;
  margin: 7px 0 0;
  color: var(--ehr-muted);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: clip;
  white-space: normal;
  word-break: break-word;
}

.ehr-trending-section .ehr-carousel-progress,
.ehr-story-carousel--audiobooks .ehr-carousel-progress,
.ehr-story-carousel--latest .ehr-carousel-progress{
  width: min(310px, 46vw);
}

@media (max-width: 900px){
  :root{
    --ehr-home-belt-card: clamp(162px, 29vw, 190px);
    --ehr-home-belt-gap: 16px;
  }
}

@media (max-width: 600px){
  :root{
    --ehr-home-belt-card: var(--ehr-home-belt-card-mobile);
    --ehr-home-belt-gap: 14px;
  }

  .ehr-trending-section .ehr-carousel-card-body h2,
  .ehr-story-carousel--latest .ehr-carousel-card-body h2,
  .ehr-story-carousel--audiobooks .ehr-audiobook-body h3{
    font-size: 14px;
    line-height: 1.35;
  }

  .ehr-trending-section .ehr-carousel-card-body p,
  .ehr-story-carousel--audiobooks .ehr-audiobook-body p,
  .ehr-story-carousel--latest .ehr-carousel-card-body p{
    font-size: 11px;
  }
}


/* V4.9.0 — theme-managed manual Advanced Ads placements */
.ehr-inline-ad{clear:both;margin:38px 0;}
@media (max-width:760px){.ehr-inline-ad{margin:30px 0;}}

/* ========================================================================
   V4.9.9 — stable provider dimensions + continuous muted autoplay support
   ======================================================================== */
/* Do not let a provider measure a display:none mount point. A 1px empty mount
   creates no visible gap but gives MGID/Adsconex a real layout context before
   it injects the player. */
#mgid-one-video-anchor:empty {
  display: block !important;
  width: min(calc(100% - 32px), var(--ehr-video-inline-width, 640px));
  min-height: 1px;
  height: 1px;
  margin: 0 auto;
  overflow: visible !important;
}

#mgid-one-video-anchor.is-video-mounted,
#mgid-one-video-anchor:not(:empty) {
  display: block !important;
  min-height: clamp(180px, 40vw, 440px);
  aspect-ratio: 16 / 9;
  background: #080a0f;
  overflow: hidden !important;
}

#mgid-one-video-anchor iframe,
#mgid-one-video-anchor video,
#ehr-fallback-video-stage iframe,
#ehr-fallback-video-stage video {
  visibility: visible !important;
  opacity: 1 !important;
}

#mgid-one-video-anchor.is-video-mounted iframe,
#mgid-one-video-anchor.is-video-mounted video,
#mgid-one-video-anchor:not(:empty) iframe,
#mgid-one-video-anchor:not(:empty) video {
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}

/* The old zero-height waiting state could make a provider calculate a 0x0
   player and leave only its poster. Reserve the final video ratio from the
   beginning so the provider can initialize against stable dimensions. */
.ehr-fallback-video-stage.is-waiting,
.ehr-fallback-video-stage.is-waiting .ehr-fallback-video-player,
.ehr-fallback-video-stage.is-waiting .ehr-fallback-video-code {
  min-height: clamp(180px, 40vw, 440px);
  aspect-ratio: 16 / 9;
  background: #080a0f;
  overflow: hidden;
}

.ehr-fallback-video-stage.is-waiting .ehr-fallback-video-code iframe,
.ehr-fallback-video-stage.is-waiting .ehr-fallback-video-code video,
.ehr-fallback-video-stage.is-waiting .ehr-fallback-video-code object,
.ehr-fallback-video-stage.is-waiting .ehr-fallback-video-code embed,
.ehr-fallback-video-stage.is-waiting .ehr-fallback-video-code canvas {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100% !important;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}

.ehr-under-title-video video.ehr-video-is-playing {
  visibility: visible !important;
  opacity: 1 !important;
}

@media (max-width: 860px) {
  #mgid-one-video-anchor:empty {
    width: calc(100% - 20px);
  }
  #mgid-one-video-anchor.is-video-mounted,
  #mgid-one-video-anchor:not(:empty),
  .ehr-fallback-video-stage.is-waiting,
  .ehr-fallback-video-stage.is-waiting .ehr-fallback-video-player,
  .ehr-fallback-video-stage.is-waiting .ehr-fallback-video-code {
    min-height: min(56.25vw, 340px);
  }
}


/* ========================================================================
   V4.9.13 — full-size sticky video, flush to the visible top edge
   The controller records the player's real inline width before fixing it.
   No desktop/mobile compact-width clamp is applied after scrolling.
   ======================================================================== */
.ehr-fallback-video-player.is-sticky {
  width: var(--ehr-sticky-inline-width, min(100vw, var(--ehr-video-inline-width, 640px))) !important;
  top: var(--ehr-sticky-top-offset, 0px) !important;
}
@media (max-width: 860px) {
  .ehr-fallback-video-player.is-sticky {
    width: var(--ehr-sticky-inline-width, 100vw) !important;
    top: var(--ehr-sticky-top-offset, 0px) !important;
  }
}


/* ========================================================================
   V4.9.14 — keep sticky video horizontally aligned with the article column
   instead of recentering it in the viewport on desktop browsers.
   ======================================================================== */
.ehr-fallback-video-player.is-sticky {
  left: var(--ehr-sticky-left-offset, 50%) !important;
  right: auto !important;
  transform: translateX(0) !important;
}
@media (max-width: 860px) {
  .ehr-fallback-video-player.is-sticky {
    left: var(--ehr-sticky-left-offset, 0px) !important;
    transform: translateX(0) !important;
  }
}


/* ========================================================================
   V4.9.15 — keep mobile Story Parts button on the right for thumb reach
   even while the sticky story video is active.
   ======================================================================== */
body.ehr-fallback-video-sticky-active .ehr-mobile-chapters {
  left: auto !important;
  right: 14px !important;
}


/* ========================================================================
   V4.9.16 — vertical right-hand Story Parts tab for older readers
   Large fixed tab on the right edge, centered content, easy tap target,
   and the chapter drawer still slides in from the right.
   ======================================================================== */
@media (max-width: 860px) {
  .ehr-mobile-chapters {
    position: fixed !important;
    top: 58vh !important;
    right: 0 !important;
    left: auto !important;
    bottom: auto !important;
    transform: translateY(-50%) !important;
    display: inline-flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    width: 76px !important;
    min-width: 76px !important;
    max-width: 76px !important;
    padding: 12px 8px 14px !important;
    margin: 0 !important;
    border: 0 !important;
    border-radius: 18px 0 0 18px !important;
    background: linear-gradient(180deg, #1f6fff 0%, #1556dd 100%) !important;
    color: #fff !important;
    box-shadow: 0 14px 34px rgba(9, 31, 92, .30) !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: .02em !important;
    z-index: 3005 !important;
  }
  .ehr-mobile-chapters-arrow {
    display: block !important;
    font-size: 18px !important;
    line-height: 1 !important;
    margin: 0 0 2px !important;
  }
  .ehr-mobile-chapters-label,
  .ehr-mobile-chapters-label-secondary {
    display: block !important;
    width: 100% !important;
    margin: 0 !important;
    white-space: nowrap !important;
    line-height: 1.02 !important;
    font-size: 13px !important;
    font-weight: 850 !important;
  }
  .ehr-mobile-chapters-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 48px !important;
    margin: 4px 0 0 !important;
    padding: 4px 8px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.18) !important;
    border: 1px solid rgba(255,255,255,.20) !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    font-variant-numeric: tabular-nums !important;
  }
  .ehr-mobile-chapters-icon,
  .ehr-mobile-chapters-caret,
  .ehr-mobile-chapters-label-prefix {
    display: none !important;
  }
  .ehr-mobile-chapters.is-open,
  .ehr-mobile-chapters[aria-expanded="true"] {
    background: linear-gradient(180deg, #165ff0 0%, #1046be 100%) !important;
    box-shadow: 0 18px 42px rgba(9, 31, 92, .38) !important;
  }
  .ehr-mobile-chapters.is-open .ehr-mobile-chapters-arrow,
  .ehr-mobile-chapters[aria-expanded="true"] .ehr-mobile-chapters-arrow {
    transform: scale(1.04);
  }
  body.ehr-fallback-video-sticky-active .ehr-mobile-chapters {
    left: auto !important;
    right: 0 !important;
  }
  .ehr-reader-sidebar {
    width: min(390px, 88vw) !important;
    border-radius: 18px 0 0 18px;
    box-shadow: -20px 0 44px rgba(9,15,31,.18);
  }
}
@media (max-width: 430px) {
  .ehr-mobile-chapters {
    width: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    padding: 11px 7px 13px !important;
  }
  .ehr-mobile-chapters-label,
  .ehr-mobile-chapters-label-secondary,
  .ehr-mobile-chapters-count {
    font-size: 12.5px !important;
  }
}


/* ========================================================================
   V4.9.17 — transparent bottom-corner Story Parts tab
   Moves the vertical mobile trigger lower into the bottom-right corner,
   removes the solid blue background, and switches the icon to a book emoji.
   ======================================================================== */
@media (max-width: 860px) {
  .ehr-mobile-chapters {
    top: auto !important;
    bottom: calc(20px + env(safe-area-inset-bottom)) !important;
    right: 6px !important;
    left: auto !important;
    transform: none !important;
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    width: 82px !important;
    min-width: 82px !important;
    max-width: 82px !important;
    padding: 6px 6px 8px !important;
    gap: 4px !important;
    color: #1c3d8f !important;
    text-shadow: 0 1px 2px rgba(255,255,255,.92), 0 0 10px rgba(255,255,255,.55) !important;
  }
  .ehr-mobile-chapters-arrow {
    font-size: 22px !important;
    margin: 0 0 1px !important;
    filter: drop-shadow(0 1px 2px rgba(255,255,255,.75));
  }
  .ehr-mobile-chapters-label,
  .ehr-mobile-chapters-label-secondary {
    color: #1c3d8f !important;
    font-size: 12.5px !important;
    line-height: 1.02 !important;
    text-shadow: 0 1px 2px rgba(255,255,255,.94), 0 0 8px rgba(255,255,255,.55) !important;
  }
  .ehr-mobile-chapters-count {
    min-width: 54px !important;
    margin: 4px 0 0 !important;
    padding: 4px 9px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.66) !important;
    border: 1px solid rgba(28,61,143,.16) !important;
    color: #1c3d8f !important;
    box-shadow: 0 6px 18px rgba(16,32,78,.12) !important;
    text-shadow: none !important;
  }
  .ehr-mobile-chapters.is-open,
  .ehr-mobile-chapters[aria-expanded="true"] {
    background: transparent !important;
    box-shadow: none !important;
  }
  body.ehr-fallback-video-sticky-active .ehr-mobile-chapters {
    right: 6px !important;
    bottom: calc(20px + env(safe-area-inset-bottom)) !important;
    left: auto !important;
  }
}
@media (max-width: 430px) {
  .ehr-mobile-chapters {
    width: 78px !important;
    min-width: 78px !important;
    max-width: 78px !important;
    bottom: calc(16px + env(safe-area-inset-bottom)) !important;
  }
  .ehr-mobile-chapters-arrow { font-size: 21px !important; }
  .ehr-mobile-chapters-label,
  .ehr-mobile-chapters-label-secondary,
  .ehr-mobile-chapters-count { font-size: 12px !important; }
}


/* ========================================================================
   V4.9.18 — compact sticky video in the bottom-right corner with a separate
   Story Parts pill placed above it so the two controls never overlap.
   ======================================================================== */
.ehr-fallback-video-player.is-sticky {
  top: auto !important;
  left: auto !important;
  right: 12px !important;
  bottom: calc(12px + env(safe-area-inset-bottom)) !important;
  transform: none !important;
  width: var(--ehr-sticky-floating-width, 447px) !important;
  max-width: calc(100vw - 24px) !important;
  aspect-ratio: 16 / 9;
  border-radius: 14px !important;
  box-shadow: 0 18px 44px rgba(6, 18, 45, .38) !important;
  overflow: hidden !important;
}
.ehr-fallback-video-player.is-sticky .ehr-fallback-video-code {
  border-radius: 14px !important;
}
@media (max-width: 860px) {
  .ehr-fallback-video-player.is-sticky {
    right: 10px !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    width: var(--ehr-sticky-floating-width, 317px) !important;
    max-width: calc(100vw - 20px) !important;
    border-radius: 12px !important;
    box-shadow: 0 14px 34px rgba(6, 18, 45, .34) !important;
  }
  .ehr-fallback-video-player.is-sticky .ehr-fallback-video-code {
    border-radius: 12px !important;
  }
  .ehr-mobile-chapters {
    position: fixed !important;
    left: auto !important;
    right: 10px !important;
    top: auto !important;
    bottom: calc(var(--ehr-storyparts-above-video-bottom, 12px) + env(safe-area-inset-bottom)) !important;
    transform: none !important;
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: auto !important;
    min-width: 176px !important;
    max-width: calc(100vw - 20px) !important;
    margin: 0 !important;
    padding: 11px 15px !important;
    border: 1px solid rgba(19, 44, 108, .14) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.94) !important;
    box-shadow: 0 10px 28px rgba(15, 32, 78, .15) !important;
    color: #183a8c !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: .02em !important;
    z-index: 2147483001 !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .ehr-mobile-chapters-label {
    display: inline-block !important;
    margin: 0 !important;
    white-space: nowrap !important;
    font-size: 13px !important;
    line-height: 1 !important;
    font-weight: 850 !important;
    color: #183a8c !important;
    text-shadow: none !important;
  }
  .ehr-mobile-chapters-count {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 46px !important;
    margin: 0 !important;
    padding: 4px 9px !important;
    border-radius: 999px !important;
    background: #edf3ff !important;
    border: 1px solid rgba(24,58,140,.10) !important;
    color: #1d4fb8 !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    text-shadow: none !important;
    box-shadow: none !important;
  }
  .ehr-mobile-chapters-arrow,
  .ehr-mobile-chapters-label-secondary,
  .ehr-mobile-chapters-icon,
  .ehr-mobile-chapters-caret,
  .ehr-mobile-chapters-label-prefix {
    display: none !important;
  }
  body.ehr-fallback-video-sticky-active .ehr-mobile-chapters {
    right: 10px !important;
    left: auto !important;
    bottom: calc(var(--ehr-storyparts-above-video-bottom, 12px) + env(safe-area-inset-bottom)) !important;
  }
}
@media (max-width: 430px) {
  .ehr-mobile-chapters {
    min-width: 166px !important;
    padding: 10px 14px !important;
  }
  .ehr-mobile-chapters-label,
  .ehr-mobile-chapters-count {
    font-size: 12.5px !important;
  }
}


/* ========================================================================
   V4.9.19 — force provider-managed floating players into the theme's own
   bottom-right sticky box so the mini video never escapes to the top-right.
   ======================================================================== */
.ehr-fallback-video-player.is-sticky .ehr-provider-floating-node {
  position: absolute !important;
  inset: 0 !important;
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  transform: none !important;
}
.ehr-fallback-video-player.is-sticky .ehr-provider-floating-node iframe,
.ehr-fallback-video-player.is-sticky .ehr-provider-floating-node video,
.ehr-fallback-video-player.is-sticky .ehr-provider-floating-node object,
.ehr-fallback-video-player.is-sticky .ehr-provider-floating-node embed,
.ehr-fallback-video-player.is-sticky .ehr-provider-floating-node canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-height: 0 !important;
}


/* ========================================================================
   V4.9.20 — slightly larger bottom-right mini video
   Increases the compact sticky player size a bit while keeping Story Parts
   safely above it with no overlap.
   ======================================================================== */


/* ========================================================================
   V4.9.21 — slightly larger mini video and tighter Story Parts spacing
   Enlarges the bottom-right sticky player one more step and brings the
   Story Parts pill closer to the video for a tighter grouped layout.
   ======================================================================== */


/* ========================================================================
   V4.9.22 — mini video increased by roughly twenty percent
   Enlarges the bottom-right sticky mini player by about 20% while keeping
   Story Parts above it and preserving the no-overlap layout.
   ======================================================================== */


/* ========================================================================
   V4.9.24 — mini video increased by an additional five percent
   Enlarges the current bottom-right sticky mini player by about 5% while
   keeping Story Parts above it with no overlap.
   ======================================================================== */


/* ========================================================================
   V4.9.25 — force external provider floating video nodes to the bottom-right
   Some providers move the sticky player outside the theme wrapper on desktop.
   These overrides lock that external floating player back to the bottom-right.
   ======================================================================== */
.ehr-provider-floating-external {
  position: fixed !important;
  top: auto !important;
  left: auto !important;
  right: 12px !important;
  bottom: calc(12px + env(safe-area-inset-bottom)) !important;
  width: var(--ehr-sticky-floating-width, 447px) !important;
  height: var(--ehr-sticky-floating-height, 252px) !important;
  max-width: calc(100vw - 24px) !important;
  max-height: calc(100vh - 24px) !important;
  margin: 0 !important;
  transform: none !important;
  z-index: 2147483000 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  box-shadow: 0 18px 44px rgba(6,18,45,.38) !important;
}
.ehr-provider-floating-external iframe,
.ehr-provider-floating-external video,
.ehr-provider-floating-external object,
.ehr-provider-floating-external embed,
.ehr-provider-floating-external canvas {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  min-width: 0 !important;
  min-height: 0 !important;
}
@media (max-width: 860px) {
  .ehr-provider-floating-external {
    right: 10px !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    width: var(--ehr-sticky-floating-width, 317px) !important;
    height: var(--ehr-sticky-floating-height, 178px) !important;
    max-width: calc(100vw - 20px) !important;
    border-radius: 12px !important;
    box-shadow: 0 14px 34px rgba(6,18,45,.34) !important;
  }
}


/* ========================================================================
   V4.9.30.3 — Adsconex provider-owned player
   Network requirement: the theme must not resize, round, crop, reposition,
   restyle, or hide controls belonging to the Adsconex/MetaConex video player.
   Only the provider mount point is supplied; the network owns the player UI.
   ======================================================================== */
.ehr-adsconex-video {
  position: static;
  width: auto;
  max-width: none;
  overflow: visible;
}
.ehr-adsconex-video #adsconex-video-container {
  width: auto;
  max-width: none;
  margin: 0;
  overflow: visible;
}

/* ========================================================================
   V4.9.28 — Adsconex performance fix
   The player controller now uses targeted, throttled scans instead of watching
   every style/class mutation across the complete document.
   ======================================================================== */
