/* =========================================================
   Emrani v2.4.0 — site.css
   Styles that were previously injected by WPCode snippets
   (emrani-polish, dre-wow-css, de-newsletter-css, homepage,
   contact page, Writings "start here", footer family band),
   consolidated and loaded after style.css.
========================================================= */

/* ---------- 1. Header: balanced 3-zone navigation ---------- */
.desktop-nav {
  margin: 0 auto;
  padding: 0 20px;
}

.desktop-nav .social-nav {
  display: none;
}

.main-nav {
  gap: 26px;
}

.emrani-native-nav .emrani-nav-parent-row {
  gap: 2px;
}

.desktop-nav .emrani-submenu-toggle {
  width: 20px;
  height: 28px;
  margin-right: -4px;
  color: rgba(14, 27, 44, 0.65);
}

.desktop-nav .emrani-submenu-toggle svg {
  width: 14px;
  height: 14px;
}

.main-nav > li > a,
.main-nav > li > .emrani-nav-parent-row > a {
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--color-navy-900, #0E1B2C);
}

.main-nav > li.current-menu-item > a::after,
.main-nav > li.current-menu-parent > .emrani-nav-parent-row > a::after,
.main-nav > li.current-menu-ancestor > .emrani-nav-parent-row > a::after {
  bottom: 6px;
  border-radius: 2px;
  background: var(--color-gold, #C9A24B);
}

.header-actions {
  margin-left: 0;
  gap: 12px;
  flex-shrink: 0;
}

.header-btn {
  min-height: 42px !important;
  height: 42px !important;
  padding: 0 20px !important;
  font-size: 0.875rem !important;
  letter-spacing: 0.02em !important;
}

.header-cart {
  border-radius: 999px;
}

.header-cart:hover,
.header-cart:focus-visible {
  background: rgba(14, 27, 44, 0.06);
}

@media (min-width: 1101px) and (max-width: 1340px) {
  .desktop-nav { padding: 0 14px; }
  .main-nav { gap: 18px; }
  .main-nav > li > a,
  .main-nav > li > .emrani-nav-parent-row > a { font-size: 0.88rem; }
  .header-btn { padding: 0 16px !important; font-size: 0.84rem !important; }
}

@media (max-width: 1100px) {
  .header-actions {
    margin-left: auto;
    gap: 8px;
  }
}

@media (max-width: 640px) {
  .header-inner {
    height: 64px;
    padding: 0 14px;
    gap: 8px;
  }
  .site-logo img {
    height: 32px;
    max-width: 126px;
  }
  .header-actions {
    gap: 6px;
  }
  .header-btn {
    min-height: 34px !important;
    height: 34px !important;
    padding: 0 11px !important;
    font-size: 0.75rem !important;
    letter-spacing: 0.01em !important;
    border-width: 1.5px !important;
    border-radius: 7px !important;
  }
  .header-cart {
    width: 36px;
    height: 36px;
  }
  .header-cart svg {
    width: 20px;
    height: 20px;
  }
  .menu-toggle {
    width: 36px;
    height: 36px;
  }
}

/* ---------- 2. Editorial page layout (ep-*) ---------- */
body.ep-plain { overflow-x: clip; }
body.ep-plain main#content { padding-top: 0 !important; margin-top: 0 !important; }

.ep-hero {
  background: var(--color-dark-bg, #0E1B2C);
  color: var(--color-cream, #FAF6EE);
  width: 100vw;
  margin: 0 calc(50% - 50vw) 0;
  position: relative;
}
.ep-hero:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-gold, #C9A24B), rgba(201, 162, 75, 0));
}
.ep-hero__in {
  max-width: 1180px;
  margin: 0 auto;
  padding: 44px 24px 52px;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.ep-hero--doc .ep-hero__in { grid-template-columns: minmax(0, 1fr) 300px; }

.ep-crumbs ol {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font: 500 .82rem/1.4 var(--font-body, Inter, system-ui, sans-serif);
  color: rgba(250, 246, 238, .72);
}
.ep-crumbs li + li:before { content: "/"; margin-right: 6px; opacity: .5; }
.ep-hero .ep-crumbs a {
  color: rgba(250, 246, 238, .85) !important;
  text-decoration: none;
  display: inline !important;
  border: 0 !important;
}
.ep-hero .ep-crumbs a:hover,
.ep-hero .ep-crumbs a:focus-visible { color: #fff !important; text-decoration: underline; }

.ep-eyebrow {
  margin: 0 0 10px;
  font: 700 .78rem/1.3 var(--font-body, Inter, system-ui, sans-serif);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-blue-light, #9FC3FF);
}
.ep-hero h1 {
  margin: 0 0 16px;
  font-family: var(--font-heading, Lora, Georgia, serif);
  font-weight: 700;
  font-size: clamp(2.1rem, 4.6vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -.02em;
  color: var(--color-cream, #FAF6EE);
}
.ep-lede {
  margin: 0;
  max-width: 680px;
  font: 400 1.14rem/1.6 var(--font-body, Inter, system-ui, sans-serif);
  color: #E5DFD2;
}
.ep-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.ep-hero a.ep-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: var(--button-height, 48px) !important;
  height: var(--button-height, 48px) !important;
  line-height: 1 !important;
  padding: 0 var(--button-padding-x, 24px) !important;
  box-sizing: border-box;
  border-radius: var(--button-radius, 8px);
  font: 700 var(--button-font-size, .95rem)/1 var(--font-body, Inter, system-ui, sans-serif);
  letter-spacing: var(--button-letter-spacing, .04em);
  text-decoration: none !important;
  transition: transform var(--transition-fast, .2s ease), background-color var(--transition-fast, .2s ease), border-color var(--transition-fast, .2s ease);
}
.ep-btn--gold {
  background: var(--button-bg, #C9A24B);
  color: var(--button-text, #0E1B2C) !important;
  border: 2px solid var(--button-border, #8A6A1F);
}
.ep-btn--gold:hover,
.ep-btn--gold:focus-visible {
  background: var(--button-hover-bg, #B78F3C);
  transform: translateY(-2px);
}
.ep-btn--ghost {
  color: var(--color-cream, #FAF6EE) !important;
  border: 2px solid rgba(250, 246, 238, .55);
}
.ep-btn--ghost:hover,
.ep-btn--ghost:focus-visible {
  background: rgba(250, 246, 238, .1);
  border-color: var(--color-cream, #FAF6EE);
  transform: translateY(-2px);
}

.ep-doc {
  background: rgba(250, 246, 238, .06);
  border: 1px solid rgba(250, 246, 238, .14);
  border-radius: 16px;
  padding: 26px 22px;
  text-align: center;
}
.ep-doc img {
  width: 132px;
  height: 132px;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 14%;
  border: 3px solid var(--color-gold, #C9A24B);
  display: block;
  margin: 0 auto 14px;
  background: #fff;
}
.ep-doc p { margin: 0; font: 400 .9rem/1.5 var(--font-body, Inter, system-ui, sans-serif); color: #E5DFD2; }
.ep-doc strong { display: block; font: 700 1.08rem/1.3 var(--font-heading, Lora, Georgia, serif); color: var(--color-cream, #FAF6EE); margin-bottom: 4px; }
.ep-doc span { display: block; }
.ep-doc__badge { margin-top: 10px; color: var(--color-gold, #C9A24B); font-weight: 600; }

.ep-body {
  max-width: 820px;
  margin: 0 auto;
  padding: 52px 0 76px;
  font: 400 1.0625rem/1.75 var(--font-body, Inter, system-ui, sans-serif);
  color: #2a2a2a;
}
.ep-body > *:first-child { margin-top: 0; }
.ep-body p { margin: 0 0 1.1em; }
.ep-body h2 {
  font-family: var(--font-heading, Lora, Georgia, serif);
  font-weight: 700;
  font-size: clamp(1.45rem, 2.6vw, 1.85rem);
  line-height: 1.25;
  color: var(--color-navy-900, #0E1B2C);
  margin: 2.1em 0 .6em;
  letter-spacing: -.01em;
}
.ep-body h3 { font-family: var(--font-heading, Lora, Georgia, serif); font-size: 1.2rem; color: var(--color-navy-900, #0E1B2C); margin: 1.6em 0 .5em; }
.ep-body a:not(.emrani-btn):not(.ep-btn):not(.emrani-button) {
  color: var(--color-gold-text-accessible, #8A6A1F);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.ep-body a:not(.emrani-btn):not(.ep-btn):not(.emrani-button):hover { color: var(--color-navy-900, #0E1B2C); }
.ep-body ul,
.ep-body ol { padding-left: 1.3em; margin: 0 0 1.3em; }
.ep-body li { margin: .35em 0; }
.ep-body ul li::marker { color: var(--color-gold, #C9A24B); }
.ep-body details {
  background: #fff;
  border: 1px solid var(--color-border-warm, #E3DCCD);
  border-radius: 12px;
  padding: 0 20px;
  margin: 0 0 12px;
  transition: box-shadow .15s;
}
.ep-body details[open] { box-shadow: 0 6px 20px rgba(14, 27, 44, .07); }
.ep-body summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 28px 16px 0;
  font-weight: 600;
  color: var(--color-navy-900, #0E1B2C);
  position: relative;
}
.ep-body summary::-webkit-details-marker { display: none; }
.ep-body summary:after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  font: 400 1.5rem/1 var(--font-body, Inter, sans-serif);
  color: var(--color-gold, #C9A24B);
}
.ep-body details[open] summary:after { content: "\2013"; }
.ep-body details p { margin: 0 0 16px; }
.ep-body .emrani-callout {
  background: #fbecec;
  border: 1px solid rgba(184, 50, 50, .25);
  border-left: 4px solid var(--color-error, #b83232);
  border-radius: var(--radius-md, 8px);
  padding: 16px 20px;
  color: var(--color-navy-900, #0E1B2C);
}
.ep-body small,
.ep-body .emrani-small { color: var(--color-text-muted, #4b5563); }
.ep-body iframe { display: block; margin: 8px 0 18px; border-radius: 12px; }

@media (max-width: 900px) {
  .ep-hero--doc .ep-hero__in { grid-template-columns: 1fr; }
  .ep-doc { display: flex; gap: 16px; align-items: center; text-align: left; padding: 16px; }
  .ep-doc img { width: 76px; height: 76px; margin: 0; flex: none; }
  .ep-doc__badge { display: none !important; }
}
@media (max-width: 640px) {
  .ep-hero__in { padding: 30px 20px 36px; }
  .ep-lede { font-size: 1.02rem; }
  .ep-body { padding: 36px 20px 56px; font-size: 1rem; }
  .ep-actions .ep-btn { flex: 1 1 auto; }
}

/* ---------- 4. Footer layout ---------- */
.site-footer .footer-inner {
  grid-template-columns: minmax(300px, 400px) 1fr !important;
  gap: 56px 72px !important;
  align-items: start;
}
.site-footer #menu-footer-navigation {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: column;
  gap: 12px 40px;
  margin: 0;
  padding: 0;
}
.site-footer #menu-footer-navigation > li { margin: 0 !important; }

@media (max-width: 900px) {
  .site-footer .footer-inner { grid-template-columns: 1fr !important; gap: 36px !important; }
  .site-footer #menu-footer-navigation { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: none; grid-auto-flow: row; }
}

/* "More from Dr. Emrani" band: last row of the site footer, full bleed. */
.emr-family {
  background: #0a1522;
  border-top: 1px solid rgba(201, 162, 75, .28);
}
.site-footer .emr-family {
  margin: 56px calc(-1 * var(--side-padding, 24px)) -80px;
}
.emr-family__in {
  max-width: var(--footer-max-width, 1400px);
  margin: 0 auto;
  padding: 26px var(--side-padding, 24px) 28px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  font: 500 .9rem/1.35 var(--font-body, Inter, system-ui, sans-serif);
}
.emr-family__t {
  margin: 0;
  color: var(--color-gold, #C9A24B);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .72rem;
}
.emr-family__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 16px 20px;
}
.emr-family__list li { margin: 0; min-width: 0; }
.emr-family a {
  color: var(--color-cream, #FAF6EE) !important;
  text-decoration: none !important;
  display: block;
  padding: 4px 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  transition: color var(--transition-fast, 0.2s ease);
}
.emr-family a span {
  display: block;
  margin-top: 3px;
  color: rgba(250, 246, 238, .64);
  font-size: .76rem;
  font-weight: 400;
  line-height: 1.35;
}
.emr-family a:hover,
.emr-family a:focus-visible { color: #E3C77F !important; }
.emr-family a:hover span,
.emr-family a:focus-visible span { color: rgba(250, 246, 238, .85); }

@media (max-width: 1120px) {
  .emr-family__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .site-footer .emr-family { margin: 48px calc(-1 * var(--side-padding-mobile, 20px)) -56px; }
  .emr-family__in { padding: 24px var(--side-padding-mobile, 20px) 26px; }
}

@media (max-width: 640px) {
  .emr-family__list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
}

/* ---------- 5. Newsletter boxes (de-newsletter) ---------- */
.de-newsletter {
  max-width: 640px;
  margin: 2.5rem auto;
  padding: 1.75rem 2rem;
  background: var(--color-cream, #FAF6EE);
  color: var(--color-navy-900, #0E1B2C);
  border: 1px solid var(--color-border-warm, #E3DCCD);
  border-top: 3px solid var(--color-gold, #C9A24B);
  border-radius: 12px;
  text-align: center;
}
.de-newsletter__eyebrow {
  margin: 0 0 8px !important;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-gold-text-accessible, #8A6A1F) !important;
}
.de-newsletter h2,
.de-newsletter h3 {
  color: var(--color-navy-900, #0E1B2C);
  margin: 0 0 .5rem;
  font-family: var(--font-heading, Lora, Georgia, serif);
  font-size: 1.45rem;
  letter-spacing: -0.01em;
  line-height: 1.25;
}
.de-newsletter p { margin: .5rem 0 1rem; color: var(--color-text-dark, #222); line-height: 1.55; }
.de-newsletter iframe {
  display: block;
  margin: 0 auto;
  width: 100%;
  max-width: 480px;
  height: 148px;
  border: 0;
  border-radius: var(--radius-md, 8px);
  background: var(--color-cream, #FAF6EE);
}
.de-newsletter .de-newsletter__alt { margin: .5rem 0 0; font-size: .88rem; }
.de-newsletter .de-newsletter__alt a {
  color: var(--color-gold-text-accessible, #8A6A1F);
  font-weight: 600;
  text-decoration: none;
}
.de-newsletter .de-newsletter__alt a:hover,
.de-newsletter .de-newsletter__alt a:focus-visible {
  color: var(--color-navy-900, #0E1B2C);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.de-newsletter--band { max-width: none; margin: 0; border-radius: 0; border-left: 0; border-right: 0; padding: 2.5rem 1rem; }
.de-newsletter--band > * { max-width: 640px; margin-left: auto; margin-right: auto; }
.de-newsletter--compact { margin: 0; padding: 1.5rem; max-width: 440px; }
.de-newsletter--compact p { font-size: .92rem; }

/* Dark-navy integration inside the site footer (no jarring white sticker) */
.site-footer .footer-newsletter .de-newsletter {
  background: rgba(250, 246, 238, 0.04);
  border: 1px solid rgba(201, 162, 75, 0.24);
  border-top: 2px solid var(--color-gold, #C9A24B);
  border-radius: 14px;
  padding: 24px 26px;
  max-width: 440px;
  text-align: left;
  color: var(--color-cream, #FAF6EE);
}
.site-footer .footer-newsletter .de-newsletter__eyebrow {
  color: var(--color-gold, #C9A24B) !important;
}
.site-footer .footer-newsletter .de-newsletter h2 {
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  max-width: none;
  margin: 0 0 8px;
  color: var(--color-cream, #FAF6EE);
}
.site-footer .footer-newsletter .de-newsletter__desc {
  margin: 0 0 16px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(250, 246, 238, 0.78);
}
.site-footer .footer-newsletter .de-newsletter iframe {
  margin: 0;
  max-width: 100%;
  height: 148px;
  border: 1px solid rgba(201, 162, 75, 0.32);
  border-radius: 10px;
  background: var(--color-cream, #FAF6EE);
}
.site-footer .footer-newsletter .de-newsletter__alt {
  margin: 12px 0 0;
  font-size: 0.85rem;
}
.site-footer .footer-newsletter .de-newsletter__alt a {
  color: #E3C77F;
  text-decoration: none;
}
.site-footer .footer-newsletter .de-newsletter__alt a:hover,
.site-footer .footer-newsletter .de-newsletter__alt a:focus-visible {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 600px) {
  .site-footer .footer-newsletter .de-newsletter { padding: 20px; }
}

/* About page sign-up */
.emrani-about-newsletter { margin: 2.5rem 0; }
.emrani-substack-cta {
  max-width: 640px;
  margin: 0 auto;
  padding: 1.75rem 2rem;
  border: 1px solid var(--color-border-warm, #E3DCCD);
  border-top: 3px solid var(--color-gold, #C9A24B);
  border-radius: 12px;
  text-align: center;
  background: var(--color-cream, #FAF6EE);
  color: var(--color-navy-900, #0E1B2C);
}
.emrani-substack-cta h2 { margin: 0 0 .5rem; font-size: 1.4rem; color: var(--color-navy-900, #0E1B2C); }
.emrani-substack-cta p { margin: .5rem 0; color: var(--color-text-dark, #222); }
.emrani-substack-cta iframe {
  display: block;
  margin: .75rem auto;
  width: 100%;
  max-width: 480px;
  height: 148px;
  border: 0;
  border-radius: var(--radius-md, 8px);
  background: var(--color-cream, #FAF6EE);
}
.emrani-substack-cta__alt { font-size: .92rem; }
.emrani-substack-cta__alt a { color: var(--color-gold-text-accessible, #8A6A1F); font-weight: 600; text-decoration: none; }
.emrani-substack-cta__alt a:hover,
.emrani-substack-cta__alt a:focus-visible { color: var(--color-navy-900, #0E1B2C); text-decoration: underline; text-underline-offset: 3px; }

/* About page: becoming a patient */
.emrani-about-patient { margin: 2.5rem 0; }
.emrani-about-patient__box {
  max-width: 900px;
  margin: 0 auto;
  padding: 1.75rem 2rem;
  background: #fff;
  color: var(--color-navy-900, #0E1B2C);
  border: 1px solid var(--color-border-warm, #E3DCCD);
  border-radius: 12px;
}
.emrani-about-patient__box h2 { color: var(--color-navy-900, #0E1B2C); margin-top: 0; }
.emrani-about-patient__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 1.25rem 0 0; }
.emrani-about-patient__actions a:not(.emrani-button) {
  color: var(--color-gold-text-accessible, #8A6A1F);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.emrani-about-patient__actions a:not(.emrani-button):hover,
.emrani-about-patient__actions a:not(.emrani-button):focus-visible { color: var(--color-navy-900, #0E1B2C); }

/* ---------- 6. Homepage ---------- */
.emr-home .emr-wrap { max-width: var(--site-max-width, 1400px); margin: 0 auto; padding: 0 var(--side-padding, 24px); }
.emr-home .emr-sec { padding: 56px 0; }
.emr-home .emr-sec:nth-of-type(even) { background: var(--color-band-warm, #F3EDE0); }
.emr-home .emr-sec h2 {
  font-family: var(--font-heading, serif);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 24px;
  color: var(--color-navy-900, #0E1B2C);
  position: relative;
  padding-bottom: 16px;
}
.emr-home .emr-sec h2:after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 3px;
  border-radius: 2px;
  background: var(--color-gold, #C9A24B);
}
.emr-home .emr-meet h2 { padding-bottom: 0; }
.emr-home .emr-meet h2:after { display: none; }

.emr-home .emr-grid { display: grid; gap: 20px; }
.emr-home .emr-grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.emr-home .emr-grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
@media (min-width: 900px) { .emr-home .emr-grid-3 { grid-template-columns: repeat(3, 1fr); } }

.emr-home .emr-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-border-warm, #E3DCCD);
  border-radius: 12px;
  padding: 22px;
  margin: 0;
  color: var(--color-text-dark, #222);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.emr-home .emr-card h3,
.emr-home .emr-why h3 { font-family: var(--font-heading, serif); font-size: 1.15rem; margin: 0 0 8px; color: var(--color-navy-900, #0E1B2C); }
.emr-home .emr-card p { margin: 0 0 10px; line-height: 1.55; }
.emr-home .emr-card > p:last-child { margin-bottom: 0; }
.emr-home .emr-glance .emr-card > p:last-child,
.emr-home .emr-ways .emr-card > p:last-child,
.emr-home .emr-2027 .emr-go { margin-top: auto; padding-top: 8px; }
.emr-home .emr-card a,
.emr-home .emr-more a,
.emr-home .emr-meet a { color: var(--color-gold-text-accessible, #8A6A1F); font-weight: 600; }
.emr-home .emr-card a:hover,
.emr-home .emr-more a:hover,
.emr-home .emr-meet a:hover { color: var(--color-navy-900, #0E1B2C); }
.emr-home a.emr-card-link { text-decoration: none; display: flex; }
.emr-home a.emr-card:hover,
.emr-home a.emr-card:focus-visible { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(14, 27, 44, .10); border-color: var(--color-gold, #C9A24B); }
.emr-home a.emr-card:focus-visible { outline: 3px solid #8A6A1F; outline-offset: 3px; }
.emr-home .emr-more { margin: 20px 0 0; }
.emr-home .emr-more--center { text-align: center; margin-top: 28px; }
.emr-home .emr-card ul,
.emr-home .emr-card table { margin: 0; padding: 0; list-style: none; font-size: .95rem; }
.emr-home .emr-services .emr-card h3 { margin-top: 0; }

.emr-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #f8f1e1;
  color: #946d22;
  margin: 0 0 14px;
}
.emr-ico svg { width: 24px !important; height: 24px !important; stroke-width: 2; }
.emr-why .emr-ico { background: #fff; box-shadow: 0 1px 0 rgba(14, 27, 44, .06), 0 6px 18px rgba(14, 27, 44, .06); }

/* Hero: let buttons size to their labels so "Call (818) 996-4100" never breaks mid-number. */
@media (min-width: 768px) {
  .emr-home .emrani-button-row { display: flex; flex-wrap: wrap; }
  .emr-home .emrani-button-row .emrani-button { width: auto; flex: 0 1 auto; white-space: nowrap; }
}
.emr-home .emrani-button-row .emr-btn-primary { background-color: #E3C77F; }
.emr-home .emrani-button-row .emr-btn-primary:hover,
.emr-home .emrani-button-row .emr-btn-primary:focus-visible { background-color: #C9A24B; }
.emr-home .emr-hero-langs { margin: 18px 0 0; font-size: .95rem; font-weight: 600; letter-spacing: .02em; color: inherit; opacity: .92; }

/* Trust band */
.emr-trustband { background: #0e1b2c; border-top: 2px solid #c9a24b; color: #fff; padding: 30px 0; }
.emr-trustband ul {
  list-style: none;
  margin: 0 auto;
  padding: 0 24px;
  max-width: 1180px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  text-align: center;
}
.emr-trustband li { padding: 4px 18px; margin: 0; }
.emr-trustband li + li { border-left: 1px solid rgba(255, 255, 255, .14); }
.emr-trustband strong {
  display: block;
  font-family: Lora, Georgia, serif;
  font-weight: 700;
  font-size: 30px;
  line-height: 1.1;
  color: #e3c77f;
  letter-spacing: -.01em;
}
.emr-trustband .emr-tb-star { font-size: .72em; margin-left: 3px; vertical-align: .12em; }
.emr-trustband em { display: block; font-style: normal; font-size: 13.5px; line-height: 1.4; color: #cfd7e2; margin-top: 7px; }
.emr-trustband a { color: #cfd7e2; text-decoration: underline; text-underline-offset: 2px; }
.emr-trustband a:hover,
.emr-trustband a:focus-visible { color: #fff; }
@media (max-width: 900px) {
  .emr-trustband ul { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .emr-trustband li + li { border-left: 0; }
  .emr-trustband li:last-child { grid-column: 1 / -1; }
  .emr-trustband strong { font-size: 25px; }
}

/* At a glance */
.emr-glance .emrani-hours { display: block; margin: 0; font-size: .92rem; }
.emr-glance .emrani-hours dt { font-weight: 600; color: #0E1B2C; margin: 0; }
.emr-glance .emrani-hours dd { margin: 0 0 .5em; color: #4b5563; white-space: nowrap; }

/* Reviews */
.emr-rating { margin: -6px 0 22px; font-size: 15px; color: #3b4656; }
.emr-rating-stars { color: #c9a24b; letter-spacing: 2px; }
.emr-reviews .emr-review:before {
  content: "\2605\2605\2605\2605\2605";
  display: block;
  font-size: 15px;
  margin-bottom: 10px;
  color: #c9a24b;
  letter-spacing: 2px;
}
.emr-reviews .emr-review blockquote { margin: 0; padding: 0; border: 0; }
.emr-reviews .emr-review blockquote p { font-family: var(--font-heading, Lora, Georgia, serif); font-size: 17px; line-height: 1.5; color: var(--color-navy-900, #0E1B2C); margin: 0 0 12px; }
.emr-reviews .emr-review figcaption { margin-top: auto; font-style: normal; color: var(--color-text-muted, #4b5563); font-size: .9rem; }

/* 2027 */
.emr-home .emr-2027 .emr-go { margin: 12px 0 0; color: var(--color-gold-text-accessible, #8A6A1F); font-weight: 700; }
.emr-home .emr-eyebrow { margin: 0 0 8px; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #8A6A1F; }
.emr-home .emr-2027 .emr-eyebrow { margin: 0 0 6px; }

/* Meet Dr. Emrani */
.emr-home .emr-meet-inner { max-width: 1100px; display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 56px; align-items: center; }
.emr-home .emr-meet-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(14, 27, 44, .18);
  background: #e9e4da;
}
.emr-home .emr-meet p { font-size: 1.05rem; line-height: 1.6; }
.emr-home .emr-creds {
  list-style: none;
  padding: 0;
  margin: 20px 0 22px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  font-size: .95rem;
  font-weight: 600;
  color: #0E1B2C;
}
.emr-home .emr-creds li { padding-left: 22px; position: relative; }
.emr-home .emr-creds li:before {
  content: "";
  position: absolute;
  left: 0;
  top: .5em;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #C9A24B;
}
@media (max-width: 860px) {
  .emr-home .emr-meet-inner { grid-template-columns: 1fr; gap: 28px; }
  .emr-home .emr-meet-photo { max-width: 340px; }
  .emr-home .emr-creds { grid-template-columns: 1fr; }
}

/* Featured books */
.emrani-home-products-section { padding-top: 72px; }
#featured-books-heading {
  margin: 0 auto 34px;
  padding: 0 0 16px;
  text-align: center;
  font-family: Lora, Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.2;
  color: #0e1b2c;
  max-width: 900px;
  position: relative;
}
#featured-books-heading:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 56px;
  height: 3px;
  margin-left: -28px;
  border-radius: 2px;
  background: #c9a24b;
}
.emrani-prc-image img { filter: drop-shadow(0 12px 22px rgba(14, 27, 44, .18)); transition: transform .2s; }
.emrani-prc-image:hover img { transform: translateY(-3px); }

@media (max-width: 640px) {
  .emr-home .emr-sec { padding: 40px 0; }
}
@media (prefers-reduced-motion: reduce) {
  .emr-home .emr-card,
  .emrani-prc-image img { transition: none; }
  .emr-home a.emr-card:hover,
  .emr-home a.emr-card:focus-visible,
  .emrani-prc-image:hover img { transform: none; }
}

/* ---------- 7. Contact page ---------- */
.emr-contact .emr-c-wrap { max-width: var(--site-max-width, 1400px); margin: 0 auto; padding: 40px var(--side-padding, 24px) 64px; }
.emr-contact h1 { font-family: var(--font-heading, serif); color: var(--color-navy-900, #0E1B2C); margin: 0 0 12px; }
.emr-contact .emr-c-lead { font-size: 1.08rem; max-width: 760px; }
.emr-contact .emr-c-911 { color: var(--color-error, #b83232); margin: 8px 0 18px; }
.emr-contact .emr-c-jump { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 28px; }
.emr-contact .emr-c-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--color-border-warm-strong, #D5CBB6);
  border-radius: 999px;
  background: #fff;
  color: var(--color-navy-900, #0E1B2C);
  font-weight: 600;
  font-size: .92rem;
  text-decoration: none;
}
.emr-contact .emr-c-jump a:hover,
.emr-contact .emr-c-jump a:focus-visible { border-color: var(--color-gold-text-accessible, #8A6A1F); color: var(--color-gold-text-accessible, #8A6A1F); }
.emr-contact .emr-c-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: start; }
.emr-contact .emr-c-col { background: #fff; border: 1px solid var(--color-border-warm, #E3DCCD); border-radius: 14px; padding: 28px; }
.emr-contact .emr-c-col h2 { font-family: var(--font-heading, serif); margin: 0 0 16px; color: var(--color-navy-900, #0E1B2C); }
.emr-contact .emr-c-col h3 { font-family: var(--font-heading, serif); font-size: 1.15rem; margin: 26px 0 6px; color: var(--color-navy-900, #0E1B2C); scroll-margin-top: 120px; }
.emr-contact .emr-c-col h3:focus { outline: none; }
.emr-contact .emr-c-col p { line-height: 1.55; margin: 0 0 10px; }
.emr-contact .emr-c-col a:not(.emrani-button) { color: var(--color-gold-text-accessible, #8A6A1F); font-weight: 600; }
.emr-contact .emr-c-col a:not(.emrani-button):hover,
.emr-contact .emr-c-col a:not(.emrani-button):focus-visible { color: var(--color-navy-900, #0E1B2C); }
.emr-contact .emr-c-call .emrani-button { font-size: 1.08rem; }
.emr-contact iframe { width: 100%; min-height: 240px; border: 0; border-radius: 12px; margin: 8px 0; }
.emr-contact #contact-form,
.emr-contact #emr-c-office { scroll-margin-top: 120px; }

/* Visible labels on the inquiry form (placeholders are not labels). */
.emrani-contact-form--labelled label.screen-reader-text {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 0 6px !important;
  clip: auto !important;
  clip-path: none !important;
  overflow: visible !important;
  white-space: normal !important;
  display: block;
  font-weight: 600;
  color: var(--color-navy-900, #0E1B2C);
}

/* Appointment form — aligned with .emrani-contact-form */
.emr-appt-form label { display: block; font-weight: 600; color: var(--color-navy-900, #0E1B2C); margin-bottom: 6px; }
.emr-appt-form input[type=text],
.emr-appt-form input[type=tel],
.emr-appt-form input[type=email],
.emr-appt-form select {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid #6B7280;
  border-radius: var(--radius-md, 8px);
  font: inherit;
  color: var(--color-text-dark, #222);
  background: #fff;
  transition: border-color var(--transition, 0.25s ease), box-shadow var(--transition, 0.25s ease);
}
.emr-appt-form input[type=text]:focus,
.emr-appt-form input[type=tel]:focus,
.emr-appt-form input[type=email]:focus,
.emr-appt-form select:focus {
  border-color: var(--color-gold, #C9A24B);
  box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.18);
}
.emr-appt-form fieldset { border: 0; padding: 0; margin: 0 0 14px; }
.emr-appt-form legend { font-weight: 600; color: var(--color-navy-900, #0E1B2C); margin-bottom: 8px; padding: 0; }
.emr-appt-form fieldset label,
.emr-appt-check label { display: inline-flex; gap: 8px; align-items: flex-start; font-weight: 400; color: var(--color-text-dark, #222); margin-right: 18px; }
.emr-appt-form input[type=radio],
.emr-appt-form input[type=checkbox] { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--color-gold-text-accessible, #8A6A1F); }
.emr-appt-form .emr-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.emr-appt-required-note,
.emr-appt-note { font-size: .92rem; color: var(--color-text-muted, #4b5563); }
.emr-appt-form .cf-turnstile { margin: 6px 0 12px; }
.emr-appt-msg { padding: 12px 14px; border-radius: var(--radius-md, 8px); margin: 0 0 14px; color: var(--color-navy-900, #0E1B2C); }
.emr-appt-msg p { margin: 0 0 4px; }
.emr-appt-ok { background: #e9f6ee; border: 1px solid var(--color-success, #2f8f52); }
.emr-appt-err { background: #fbecec; border: 1px solid var(--color-error, #b83232); }

@media (max-width: 900px) {
  .emr-contact .emr-c-grid { grid-template-columns: 1fr; }
  .emr-contact .emr-c-col { padding: 22px; }
}

/* ---------- 8. Writings: start here ---------- */
.emrani-start-here { margin: 2.5rem 0 0; }
.emrani-start-here .writings-shell {
  padding: 32px 36px;
  background: #fff;
  border: 1px solid var(--color-border-warm, #E3DCCD);
  border-top: 3px solid var(--color-gold, #C9A24B);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(14, 27, 44, 0.05);
}
.emrani-start-here h2 {
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-warm, #E3DCCD);
  font-family: var(--font-heading, Lora, Georgia, serif);
  font-size: clamp(1.35rem, 2.2vw, 1.7rem);
  line-height: 1.25;
  color: var(--color-navy-900, #0E1B2C);
}
.esh-grid {
  display: grid;
  gap: 24px 28px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
}
.esh-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.esh-card h3 {
  font-size: 1.05rem;
  line-height: 1.3;
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(201, 162, 75, 0.4);
  font-family: var(--font-heading, Lora, Georgia, serif);
  color: var(--color-navy-900, #0E1B2C);
}
.esh-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.esh-card li {
  margin: 0;
  padding: 8px 0;
  border-bottom: 1px solid rgba(227, 220, 205, 0.65);
  line-height: 1.45;
}
.esh-card li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.esh-card a {
  display: block;
  color: var(--color-navy-900, #0E1B2C);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  transition: color var(--transition-fast, 0.2s ease), transform var(--transition-fast, 0.2s ease);
}
.esh-card a:hover,
.esh-card a:focus-visible {
  color: var(--color-gold-text-accessible, #8A6A1F);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 900px) {
  .esh-card h3 {
    min-height: 2.6em;
    display: flex;
    align-items: flex-end;
  }
}

@media (max-width: 640px) {
  .emrani-start-here .writings-shell { padding: 24px 20px; }
  .esh-grid { gap: 20px; }
}

/* ---------- 9. Store: the record-review service is bought one at a time ---------- */
body.emrani-service-product div.product form.cart .quantity,
body.emrani-service-product div.product form.cart .emrani-qty-button {
  display: none !important;
}

/* ---------- 10. Ported WPCode snippets ---------- */
/* #571 Newsletter page already has the sign-up in its body. */
.emrani-hide-footer-signup .footer-newsletter { display: none !important; }

/* #487 Doctor Recommended affiliate disclosure. */
.dr-disclosure-top {
  margin: 0 0 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border-warm, #E3DCCD);
  border-left: 4px solid var(--color-gold, #C9A24B);
  background: #fff;
  border-radius: var(--radius-md, 8px);
  font-size: .95rem;
  line-height: 1.55;
  color: var(--color-text-dark, #222);
}

/* #561 "Prefer Amazon?" line on book pages. */
.emr-book-alt { margin: 14px 0; font-size: .95rem; }

/* #323 Author / consultation box on Beyond the White Coat. */
.emrani-author-cta {
  margin: 1.5rem 0;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--color-border-warm, #E3DCCD);
  border-radius: 12px;
  background: #fff;
}
.emrani-author-cta p { margin: 0 0 .75rem; }
.emrani-author-cta p:last-child { margin-bottom: 0; }
.emrani-author-cta a:not(.emrani-button) { color: var(--color-gold-text-accessible, #8A6A1F); font-weight: 600; }
.emrani-author-cta a:not(.emrani-button):hover,
.emrani-author-cta a:not(.emrani-button):focus-visible { color: var(--color-navy-900, #0E1B2C); }

/* #479 News & Events lists. */
.emrani-latest-posts,
.emrani-events { padding-left: 1.2em; }
.emrani-latest-posts li,
.emrani-events li { margin: 0 0 .9em; }
.emrani-post-date { color: var(--color-text-muted, #4b5563); font-size: .9em; }
