/* DIMH Unified CSS — doctorinmyhome.com local preview */
/* Built by scripts/build-unified-css.py — do not edit by hand */
/* Brand: #006298 blue, Georgia headings, Inter body */


/* === 1. Shell: tokens, header, footer, cards === */

:root{--dimh-blue:#006298;--dimh-blue-dark:#004F7B;--dimh-blue-light:#E8F4FB;--dimh-red:#DC2626;--dimh-text:#1A1A1A;--dimh-muted:#666666;--dimh-border:#D9D9D9;--dimh-bg:#F9FAFB;--dimh-white:#ffffff;--font-display:Georgia, 'Times New Roman', serif;--font-body:Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;--max-width:1140px;--header-h:72px}*,*::before,*::after{box-sizing:border-box}body{margin:0;font-family:var(--font-body);color:var(--dimh-text);background:var(--dimh-white);line-height:1.6}img{max-width:100%;height:auto;display:block}a{color:var(--dimh-blue)}.container{width:min(100% - 2rem, var(--max-width));margin-inline:auto}.container--narrow{width:min(100% - 2rem, 820px);margin-inline:auto}.site-header{position:sticky;top:0;z-index:100;background:var(--dimh-white);border-bottom:1px solid var(--dimh-border);height:var(--header-h)}.header-inner{display:flex;align-items:center;justify-content:space-between;gap:1rem;height:var(--header-h)}.site-logo{text-decoration:none;color:var(--dimh-text);display:flex;align-items:center;gap:.75rem}.site-logo .custom-logo{max-height:48px;width:auto}.logo-text{font-family:var(--font-display);font-size:1.25rem;line-height:1.2;display:flex;flex-direction:column}.logo-text span{font-family:var(--font-body);font-size:.65rem;letter-spacing:.08em;text-transform:uppercase;color:var(--dimh-muted);font-weight:600}.primary-nav{display:flex;list-style:none;margin:0;padding:0;gap:1.25rem;align-items:center}.primary-nav a{text-decoration:none;color:var(--dimh-text);font-size:.9rem;font-weight:500}.primary-nav a:hover,.primary-nav .current-menu-item>a{color:var(--dimh-blue)}.header-actions{display:flex;align-items:center;gap:.75rem}.btn{display:inline-flex;align-items:center;gap:.35rem;padding:.55rem 1rem;border-radius:4px;font-size:.85rem;font-weight:600;text-decoration:none;border:none;cursor:pointer}.btn-primary{background:var(--dimh-blue);color:#fff}.btn-primary:hover{background:var(--dimh-blue-dark);color:#fff}.btn-emergency{background:var(--dimh-red);color:#fff}.btn-emergency:hover{background:#B91C1C;color:#fff}.menu-toggle{display:none;flex-direction:column;gap:5px;background:none;border:none;padding:.5rem;cursor:pointer}.menu-toggle span{display:block;width:22px;height:2px;background:var(--dimh-text)}.breadcrumb-bar{background:var(--dimh-bg);border-bottom:1px solid var(--dimh-border);padding:.65rem 0;font-size:.82rem}.breadcrumb-bar .breadcrumbs{color:var(--dimh-muted)}.breadcrumb-bar .breadcrumbs a{color:var(--dimh-blue);text-decoration:none}.breadcrumb-bar .breadcrumbs a:hover{text-decoration:underline}.breadcrumb-bar .breadcrumbs span{color:var(--dimh-muted)}.site-main{padding:2rem 0 3rem}.page-header,.article-header{margin-bottom:2rem;padding-bottom:1.5rem;border-bottom:1px solid var(--dimh-border)}.page-header h1,.article-header h1{font-family:var(--font-display);font-size:clamp(1.75rem, 4vw, 2.25rem);font-weight:400;line-height:1.2;margin:0 0 .75rem}.eyebrow{display:block;font-size:.7rem;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--dimh-blue);margin-bottom:.5rem}.article-meta{display:flex;flex-wrap:wrap;gap:1rem;font-size:.85rem;color:var(--dimh-muted)}.article-body{font-size:1.05rem;line-height:1.75}.article-body>*:first-child{margin-top:0}.home .page-header,.has-custom-hero .page-header{display:none}.page-banner{background:var(--dimh-blue);color:#fff;padding:2.5rem 0;margin-bottom:2rem}.page-banner h1{font-family:var(--font-display);font-size:clamp(1.75rem, 4vw, 2.25rem);font-weight:400;margin:0 0 .5rem}.page-banner p{margin:0;opacity:.85;max-width:640px}.cards-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.25rem}.post-card{border:1px solid var(--dimh-border);border-radius:6px;overflow:hidden;background:#fff;transition:box-shadow 0.15s,border-color 0.15s}.post-card:hover{border-color:var(--dimh-blue);box-shadow:0 4px 12px rgb(0 98 152 / .08)}.post-card a{text-decoration:none;color:inherit}.post-card__img img{width:100%;aspect-ratio:16/10;object-fit:cover}.post-card__body{padding:1.1rem 1.25rem 1.25rem}.post-card__cat{font-size:.68rem;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--dimh-blue);margin-bottom:.35rem}.post-card__title{font-size:1rem;font-weight:600;line-height:1.4;margin:0 0 .5rem}.post-card__meta{font-size:.8rem;color:var(--dimh-muted)}.pagination{margin-top:2.5rem;display:flex;justify-content:center;gap:.5rem}.pagination a,.pagination span{padding:.45rem .85rem;border:1px solid var(--dimh-border);border-radius:4px;text-decoration:none;font-size:.85rem}.pagination .current{background:var(--dimh-blue);color:#fff;border-color:var(--dimh-blue)}.site-footer{background:#0F172A;color:rgb(255 255 255 / .78);padding:3rem 0 1.5rem;margin-top:2rem}.footer-top{display:grid;grid-template-columns:1.4fr repeat(3,1fr);gap:2rem;margin-bottom:2rem}.footer-brand .logo-text{color:#fff}.footer-brand .logo-text span{color:rgb(255 255 255 / .5)}.footer-brand p{font-size:.9rem;line-height:1.65;max-width:320px}.footer-col h4{color:#fff;font-size:.85rem;margin:0 0 1rem;font-weight:600}.footer-col ul{list-style:none;margin:0;padding:0}.footer-col li{margin-bottom:.45rem}.footer-col a{color:rgb(255 255 255 / .72);text-decoration:none;font-size:.88rem}.footer-col a:hover{color:#fff}.footer-bottom{border-top:1px solid rgb(255 255 255 / .12);padding-top:1.25rem;display:flex;flex-wrap:wrap;justify-content:space-between;gap:.75rem;font-size:.8rem}.footer-bottom a{color:rgb(255 255 255 / .72);text-decoration:none}.footer-bottom a:hover{color:#fff}.footer-disclaimer{background:rgb(255 255 255 / .06);border-radius:6px;padding:.85rem 1rem;font-size:.78rem;line-height:1.55;margin-bottom:1.5rem}.error-404{text-align:center;padding:4rem 1rem}.error-404 h1{font-family:var(--font-display);font-size:2rem;margin-bottom:.75rem}@media (max-width:900px){.footer-top{grid-template-columns:1fr 1fr}}@media (max-width:768px){.menu-toggle{display:flex}.header-nav{display:none;position:absolute;top:var(--header-h);left:0;right:0;background:#fff;border-bottom:1px solid var(--dimh-border);padding:1rem}.header-nav.is-open{display:block}.primary-nav{flex-direction:column;align-items:flex-start;gap:.75rem}.footer-top{grid-template-columns:1fr}}

/* === 2. Overhaul UX: finder, emergency bar, header layout === */

/**
 * DIMH local overhaul UX — header fix + symptom finder + emergency bar.
 * Merged from live mirror (dimh-core) + header-fix.css.
 */

/* ── Header layout (from header-fix.css) ── */
.site-header .custom-logo,
.site-header .custom-logo-link img,
.site-header .site-logo img,
.site-header a.site-logo .custom-logo {
  display: block;
  max-height: 48px !important;
  max-width: 200px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
}

.site-header .custom-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
  max-width: 200px;
  text-decoration: none;
}

.site-branding {
  flex-shrink: 0;
  max-width: min(240px, 42vw);
  line-height: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  height: var(--header-h, 72px);
  position: relative;
}

.header-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: center;
}

.primary-nav {
  flex-wrap: nowrap;
  gap: 0.75rem;
}

.primary-nav a {
  white-space: nowrap;
}

.site-branding,
.header-actions {
  flex-shrink: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
}

/* Category hubs: hide duplicate WP title when .dcat hero is present */
.category-header:has(.dcat) .category-title {
  display: none;
}

.header-symptom-finder {
  flex: 0 1 200px;
  min-width: 160px;
  max-width: 220px;
}

@media (min-width: 769px) {
  .header-nav {
    display: flex !important;
    position: static !important;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .menu-toggle {
    display: none !important;
  }

  .header-mobile-panel {
    display: none !important;
  }
}

@media (max-width: 1100px) and (min-width: 769px) {
  .header-symptom-finder.hide-mobile {
    display: none !important;
  }

  .primary-nav {
    gap: 0.5rem;
  }

  .primary-nav a {
    font-size: 0.82rem;
  }
}

@media (max-width: 768px) {
  .hide-mobile {
    display: none !important;
  }

  .hide-desktop {
    display: block;
  }

  .menu-toggle {
    display: flex;
  }

  .header-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--dimh-border, #D9D9D9);
    padding: 1rem;
    z-index: 110;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
  }

  .header-nav.is-open {
    display: block;
  }

  .primary-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .header-mobile-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 109;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
    border-top: 1px solid var(--dimh-border, #D9D9D9);
    background: #fff;
    padding: 0.85rem 0 1rem;
  }

  .site-header.is-menu-open .header-mobile-panel[hidden] {
    display: block;
  }
}

.site-header.is-menu-open {
  height: auto;
  min-height: var(--header-h, 72px);
}

/* Hide legacy search box on symptom/article pages */
.header-search {
  display: none !important;
}

/* ── Overhaul UX (from live dimh-core) ── */
.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
}

.btn-outline-light {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.screen-reader-text {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
  word-wrap: normal !important;
}

.dimh-emergency-bar {
  background: #7F1D1D;
  color: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.84rem;
  position: sticky;
  top: var(--header-h, 72px);
  z-index: 99;
}

body.dimh-emergency-dismissed .dimh-emergency-bar {
  display: none;
}

.dimh-emergency-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  flex-wrap: wrap;
}

.dimh-emergency-bar__text {
  margin: 0;
  line-height: 1.45;
}

.dimh-emergency-bar__text a {
  color: #fff;
  font-weight: 600;
}

.dimh-emergency-bar__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.dimh-emergency-bar__close {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}

.dimh-emergency-bar__close:hover {
  color: #fff;
}

.dimh-symptom-finder {
  position: relative;
}

.dimh-symptom-finder__field {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: var(--dimh-bg, #fff);
  border: 1px solid var(--dimh-border, #D9D9D9);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}

.dimh-symptom-finder__icon {
  flex-shrink: 0;
  color: var(--dimh-muted, #666);
  width: 14px;
  height: 14px;
}

.dimh-symptom-finder__input {
  border: none;
  background: transparent;
  width: 100%;
  font: inherit;
  font-size: 0.82rem;
  color: var(--dimh-text, #1A1A1A);
  outline: none;
}

.dimh-symptom-finder__results {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 120;
  list-style: none;
  margin: 0;
  padding: 0.35rem 0;
  background: #fff;
  border: 1px solid var(--dimh-border, #D9D9D9);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  max-height: 280px;
  overflow: auto;
}

.dimh-symptom-finder__results[hidden] {
  display: none;
}

.dimh-symptom-finder__option,
.dimh-symptom-finder__all a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  text-decoration: none;
  color: var(--dimh-text, #1A1A1A);
  font-size: 0.84rem;
}

.dimh-symptom-finder__option:hover,
.dimh-symptom-finder__all a:hover {
  background: var(--dimh-blue-light, #E8F4FB);
  color: var(--dimh-blue, #006298);
}

.dimh-symptom-finder__option.is-urgent em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dimh-red, #DC2626);
}

.dimh-symptom-finder__option.is-hidden {
  display: none;
}

.dimh-symptom-finder__empty {
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  color: var(--dimh-muted, #666);
}

.dimh-symptom-finder__all {
  border-top: 1px solid var(--dimh-border, #D9D9D9);
  margin-top: 0.25rem;
  padding-top: 0.25rem;
}

.dimh-symptom-finder__all a {
  font-weight: 600;
  color: var(--dimh-blue, #006298);
}

.header-mobile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.header-mobile-links a {
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--dimh-blue, #006298);
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--dimh-border, #D9D9D9);
  border-radius: 999px;
}

.header-mobile-links a.is-emergency {
  background: var(--dimh-red, #DC2626);
  border-color: var(--dimh-red, #DC2626);
  color: #fff;
}

.dimh-symptom-emergency-cta {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  border-radius: 8px;
}

.dimh-symptom-emergency-cta p {
  margin: 0 0 1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: #7F1D1D;
}

.dimh-symptom-emergency-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Homepage SVG safety net if homepage.css fails to load */
.dhp svg {
  max-width: 24px;
  max-height: 24px;
  flex-shrink: 0;
}

.dhp .dhp-btn svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.dhp .dhp-symptom svg,
.dhp .dhp-aid svg,
.dhp .dhp-flink svg {
  width: 13px;
  height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.dhp .dhp-cat-icon svg,
.dhp .dhp-family-icon svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
}

.dhp .dhp-elderly-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
}

.dhp .dhp-remedy-lnk svg,
.dhp .dhp-guide-lnk svg {
  width: 11px;
  height: 11px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2.5;
}

/* === 2b. Guide cards, archives, monetization slots === */

/**
 * Unified guide cards, archive grids, related sections, monetization slots.
 */

/* Homepage category / remedy grids — WP autop leaves <br> that breaks CSS grid */
.dhp-cat-grid br,
.dhp-remedy-grid br,
.dhp-guide-grid br,
.dhp-symptom-cloud br,
.dhp-elderly-grid br,
.dhp-aid-grid br {
  display: none;
}

.dhp-cat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.dhp .dhp-cat {
  height: 100%;
  min-height: 0;
}

.dhp-remedy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.dhp .dhp-remedy {
  height: 100%;
  min-height: 0;
}

.dhp-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.dhp .dhp-guide {
  height: 100%;
  min-height: 0;
}

@media (max-width: 960px) {
  .dhp-cat-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .dhp-remedy-grid,
  .dhp-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .dhp-cat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dhp-remedy-grid,
  .dhp-guide-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Shared guide card grid (symptoms, articles, categories) --- */
.dimh-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.dimh-guide-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 100%;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--dimh-border, #D9D9D9);
  border-radius: 6px;
  text-decoration: none;
  color: var(--dimh-text, #1A1A1A);
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.dimh-guide-card:hover {
  border-color: var(--dimh-blue, #006298);
  box-shadow: 0 4px 12px rgba(0, 98, 152, 0.08);
  text-decoration: none;
  transform: translateY(-1px);
}

.dimh-guide-card__tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dimh-blue, #006298);
}

.dimh-guide-card__title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--dimh-text, #1A1A1A);
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dimh-guide-card__desc {
  font-size: 13px;
  line-height: 1.55;
  color: var(--dimh-muted, #666);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dimh-guide-card__desc:empty {
  display: none;
}

.dimh-guide-card__link {
  font-size: 12px;
  font-weight: 600;
  color: var(--dimh-blue, #006298);
  margin-top: 2px;
}

/* Related section wrapper */
.dimh-related {
  margin: 2.5rem 0 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--dimh-border, #D9D9D9);
}

.dimh-related__kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dimh-blue, #006298);
  margin: 0 0 6px;
}

.dimh-related__title {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  font-weight: 400;
  line-height: 1.25;
  margin: 0 0 1.25rem;
  color: var(--dimh-text, #1A1A1A);
}

/* First-aid hub cards — equal height */
.dfa .dfa-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.dfa .dfa-grid > p {
  display: none;
}

.dfa .dfa-card {
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.dfa .dfa-card-t {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.dfa .dfa-card-p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Category hub cards — equal height */
.dcat .dc-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.dcat .dc-article {
  height: 100%;
  min-height: 0;
}

.dcat .dc-art-title {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dcat .dc-art-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Legacy category archive — text-first, even grid */
.dimh-archive-section {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--dimh-border, #D9D9D9);
}

.dimh-archive-section > h2 {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  font-weight: 400;
  margin: 0 0 1.25rem;
}

.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
  margin-bottom: 2.5rem;
}

.posts-grid .archive-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  margin: 0;
  border: 1px solid var(--dimh-border, #D9D9D9);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.posts-grid .archive-card:hover {
  border-color: var(--dimh-blue, #006298);
  box-shadow: 0 4px 12px rgba(0, 98, 152, 0.08);
}

.posts-grid .archive-card-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
}

/* Text-first: hide uneven thumbnails on archive cards */
.posts-grid .archive-thumbnail,
.posts-grid .post-thumbnail {
  display: none;
}

.posts-grid .archive-content,
.posts-grid .entry-header {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px;
}

.posts-grid .archive-meta,
.posts-grid .entry-meta {
  margin-bottom: 8px;
}

.posts-grid .archive-category,
.posts-grid .post-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dimh-blue, #006298);
}

.posts-grid .archive-title,
.posts-grid .entry-title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px;
  flex: 1;
}

.posts-grid .archive-title a,
.posts-grid .entry-title a {
  color: var(--dimh-text, #1A1A1A);
  text-decoration: none;
}

.posts-grid .archive-title a:hover,
.posts-grid .entry-title a:hover {
  color: var(--dimh-blue, #006298);
}

.posts-grid .archive-excerpt,
.posts-grid .entry-summary {
  font-size: 13px;
  line-height: 1.55;
  color: var(--dimh-muted, #666);
  margin: 0 0 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.posts-grid .archive-footer {
  margin-top: auto;
  padding-top: 8px;
  font-size: 12px;
  color: var(--dimh-muted, #666);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
}

/* Theme related-post blocks → match guide cards */
.related-posts {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--dimh-border, #D9D9D9);
}

.related-posts > h2 {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.35rem, 3vw, 1.6rem);
  font-weight: 400;
  margin: 0 0 1.25rem;
}

.related-posts-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.related-post-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 18px 20px;
  border: 1px solid var(--dimh-border, #D9D9D9);
  border-radius: 6px;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.related-post-card:hover {
  border-color: var(--dimh-blue, #006298);
  box-shadow: 0 4px 12px rgba(0, 98, 152, 0.08);
}

.related-post-category {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dimh-blue, #006298);
  margin-bottom: 8px;
}

.related-post-title {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 8px;
  flex: 1;
}

.related-post-title a {
  color: var(--dimh-text, #1A1A1A);
  text-decoration: none;
}

.related-post-title a:hover {
  color: var(--dimh-blue, #006298);
}

.related-post-excerpt {
  font-size: 13px;
  color: var(--dimh-muted, #666);
  line-height: 1.55;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.related-post-link {
  font-size: 12px;
  font-weight: 600;
  color: var(--dimh-blue, #006298);
  margin-top: auto;
}

/* Single-article layout */
.article-layout {
  padding: 2rem 0 3rem;
}

.article-layout .article-header,
.article-layout .article-wrapper,
.article-layout .article-main,
.article-layout .article-content {
  max-width: 48rem;
  margin-inline: auto;
}

.article-layout .article-title {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.65rem, 4vw, 2.15rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0.5rem 0 0.75rem;
}

.article-layout .article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  font-size: 0.82rem;
  color: var(--dimh-muted, #666);
}

.article-layout .article-meta a {
  color: var(--dimh-blue, #006298);
  text-decoration: none;
}

.article-layout .article-meta a:hover {
  text-decoration: underline;
}

.article-layout .article-excerpt {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--dimh-text, #1A1A1A);
}

.dimh-legacy-meta {
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  background: #E8F4FB;
  border-left: 4px solid var(--dimh-blue, #006298);
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--dimh-text, #1A1A1A);
}

.dimh-legacy-meta time {
  font-weight: 600;
}

.dimh-legacy-dates {
  font-weight: 500;
}

/* Article body polish */
.da-wrap {
  max-width: none;
  font-size: 1rem;
  line-height: 1.75;
}

.da-wrap h2 {
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(1.25rem, 3vw, 1.5rem);
  font-weight: 400;
  margin: 2rem 0 0.75rem;
  padding-top: 0.5rem;
}

.da-wrap h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
}

.da-wrap ul,
.da-wrap ol {
  padding-left: 1.25rem;
  margin: 0.75rem 0 1.25rem;
}

.da-wrap li + li {
  margin-top: 0.35rem;
}

/* Structured topic map — breadcrumbs + internal clusters */
.dimh-topic-map {
  margin: 0 0 1.75rem;
  padding: 1.25rem 1.35rem;
  background: var(--dimh-bg, #F9FAFB);
  border: 1px solid var(--dimh-border, #D9D9D9);
  border-radius: 6px;
}

.dimh-topic-map__path {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
  font-size: 0.82rem;
  color: var(--dimh-muted, #666);
}

.dimh-topic-map__path li + li::before {
  content: "/";
  margin-right: 0.5rem;
  color: var(--dimh-border, #D9D9D9);
}

.dimh-topic-map__path a {
  color: var(--dimh-blue, #006298);
  text-decoration: none;
}

.dimh-topic-map__path a:hover {
  text-decoration: underline;
}

.dimh-topic-map__clusters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.dimh-topic-map__cluster ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
}

.dimh-topic-map__cluster li {
  font-size: 0.88rem;
  line-height: 1.45;
  margin-bottom: 0.25rem;
}

.dimh-topic-map__label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dimh-blue, #006298);
}

@media (max-width: 700px) {
  .dimh-topic-map__clusters {
    grid-template-columns: 1fr;
  }
}

/* Inline contextual links inside article body */
.dimh-inline-link {
  color: var(--dimh-blue, #006298);
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: rgba(0, 98, 152, 0.35);
  text-underline-offset: 2px;
}

.dimh-inline-link:hover {
  color: var(--dimh-blue-dark, #004F7B);
  text-decoration-color: currentColor;
}

.dimh-inline-link--external::after {
  content: " ↗";
  font-size: 0.75em;
  font-weight: 600;
  opacity: 0.65;
}

.dimh-sources {
  margin: 2rem 0 1.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--dimh-bg, #F9FAFB);
  border: 1px solid var(--dimh-border, #D9D9D9);
  border-left: 4px solid var(--dimh-blue, #006298);
  border-radius: 0 6px 6px 0;
}

.dimh-sources__title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.1rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
  color: var(--dimh-text, #1A1A1A);
}

.dimh-sources__intro {
  font-size: 0.9rem;
  color: var(--dimh-muted, #666);
  margin: 0 0 0.75rem;
  line-height: 1.5;
}

.dimh-sources ul {
  margin: 0;
  padding-left: 1.25rem;
}

.dimh-sources li {
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 0.35rem;
}

.dimh-sources li:last-child {
  margin-bottom: 0;
}

/* Breadcrumb — minimal path only (no link clusters) */
.dimh-breadcrumb {
  margin: 0 0 1.25rem;
  padding: 0.65rem 0.85rem;
  background: var(--dimh-bg, #F9FAFB);
  border: 1px solid var(--dimh-border, #D9D9D9);
  border-radius: 6px;
  font-size: 0.88rem;
}

.dimh-breadcrumb__path {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--dimh-muted, #666);
}

.dimh-breadcrumb__path li + li::before {
  content: "›";
  margin-right: 0.5rem;
  color: var(--dimh-border, #D9D9D9);
}

.dimh-breadcrumb__path a {
  color: var(--dimh-blue, #006298);
  text-decoration: none;
}

.dimh-breadcrumb__path a:hover {
  text-decoration: underline;
}

/* In-text citation superscripts */
.dimh-cite {
  font-size: 0.72em;
  line-height: 0;
  margin-left: 0.1em;
  vertical-align: super;
}

.dimh-cite__link {
  color: var(--dimh-blue, #006298);
  text-decoration: none;
  font-weight: 600;
}

.dimh-cite__link:hover {
  text-decoration: underline;
}

/* Contextual evidence paragraphs (deep authority injection) */
.dimh-evidence {
  margin: 1rem 0 1.25rem;
  padding: 0.85rem 1rem;
  background: #f0f7fb;
  border-left: 3px solid var(--dimh-blue, #006298);
  border-radius: 0 4px 4px 0;
  font-size: 0.94rem;
  line-height: 1.6;
  color: var(--dimh-text, #1A1A1A);
}

/* Numbered references at article bottom */
.dimh-references {
  margin: 2.25rem 0 1.5rem;
  padding: 1.35rem 1.5rem;
  background: var(--dimh-bg, #F9FAFB);
  border: 1px solid var(--dimh-border, #D9D9D9);
  border-top: 3px solid var(--dimh-blue, #006298);
  border-radius: 6px;
}

.dimh-references__title {
  font-family: var(--font-display, Georgia, serif);
  font-size: 1.25rem;
  font-weight: 400;
  margin: 0 0 0.5rem;
  color: var(--dimh-text, #1A1A1A);
}

.dimh-references__intro {
  font-size: 0.9rem;
  color: var(--dimh-muted, #666);
  margin: 0 0 1rem;
  line-height: 1.55;
}

.dimh-references__list {
  margin: 0;
  padding-left: 1.5rem;
}

.dimh-references__list li {
  font-size: 0.92rem;
  line-height: 1.55;
  margin-bottom: 0.65rem;
}

.dimh-references__list li:last-child {
  margin-bottom: 0;
}

.dimh-ref-url {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--dimh-muted, #666);
  word-break: break-all;
}

/* Inline iHerb mention inside article body (legacy guides) */
.dimh-iherb-inline {
  margin: 1.5rem 0;
  padding: 1rem 1.15rem;
  background: #f9fafb;
  border: 1px solid var(--dimh-border, #D9D9D9);
  border-left: 4px solid var(--dimh-blue, #006298);
  border-radius: 0 6px 6px 0;
  font-size: 0.94rem;
  line-height: 1.6;
}

.dimh-iherb-inline p {
  margin: 0;
}

.dimh-iherb-inline__note {
  font-size: 0.85rem;
  color: var(--dimh-muted, #666);
}

.dimh-iherb-affiliate {
  font-weight: 600;
}

/* iHerb affiliate CTA — subtle, on-brand */
.dimh-iherb-cta {
  margin: 2rem 0 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--dimh-border, #D9D9D9);
  border-left: 4px solid var(--dimh-blue, #006298);
  border-radius: 6px;
  background: #F9FAFB;
}

.dimh-iherb-cta__eyebrow {
  margin: 0 0 0.35rem;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dimh-blue, #006298);
}

.dimh-iherb-cta__text {
  margin: 0 0 0.85rem;
  font-size: 14px;
  line-height: 1.6;
  color: var(--dimh-text, #1A1A1A);
}

.dimh-iherb-cta__link {
  display: inline-block;
  padding: 0.55rem 1rem;
  border-radius: 4px;
  background: var(--dimh-blue, #006298);
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
}

.dimh-iherb-cta__link:hover {
  background: #004d73;
  text-decoration: none !important;
}

.dimh-iherb-cta__note {
  margin: 0.75rem 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--dimh-muted, #666);
}

@media (max-width: 900px) {
  .dimh-guide-grid,
  .dcat .dc-article-grid,
  .posts-grid,
  .related-posts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .dimh-guide-grid,
  .dcat .dc-article-grid,
  .posts-grid,
  .related-posts-grid {
    grid-template-columns: 1fr;
  }
}

/* === 3. Homepage (.dhp) === */

.dhp{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#1A1A1A}.dhp .dhp-hero{background:#006298;border-radius:8px;padding:56px 48px;margin-bottom:56px;display:grid;grid-template-columns:1fr 220px;gap:40px;align-items:center;position:relative;overflow:hidden}.dhp .dhp-hero::before{content:'';position:absolute;right:-50px;top:-50px;width:260px;height:260px;border-radius:50%;background:rgb(255 255 255 / .05);pointer-events:none}.dhp .dhp-hero::after{content:'';position:absolute;right:60px;bottom:-70px;width:160px;height:160px;border-radius:50%;background:rgb(255 255 255 / .04);pointer-events:none}.dhp .dhp-hero-badge{display:inline-block;background:rgb(255 255 255 / .15);color:rgb(255 255 255 / .9);font-size:11px;font-weight:600;letter-spacing:2px;text-transform:uppercase;padding:5px 14px;border-radius:16px;margin-bottom:18px}.dhp .dhp-hero-h{font-family:Georgia,'Times New Roman',serif;font-size:36px;font-weight:400;color:#fff;line-height:1.18;margin-bottom:16px}.dhp .dhp-hero-sub{font-size:16px;color:rgb(255 255 255 / .82);line-height:1.7;margin-bottom:28px;max-width:460px}.dhp .dhp-hero-btns{display:flex;flex-wrap:wrap;gap:10px}.dhp .dhp-btn{display:inline-flex;align-items:center;gap:7px;padding:11px 22px;border-radius:4px;font-size:14px;font-weight:600;cursor:pointer;text-decoration:none;transition:all 0.15s;border:none;font-family:inherit;line-height:1}.dhp .dhp-btn-white{background:#fff;color:#006298}.dhp .dhp-btn-white:hover{background:#E8F4FB;text-decoration:none;color:#004F7B}.dhp .dhp-btn-ghost{background:#fff0;color:#fff;border:1.5px solid rgb(255 255 255 / .4)}.dhp .dhp-btn-ghost:hover{background:rgb(255 255 255 / .1);text-decoration:none;color:#fff}.dhp .dhp-btn-red{background:#DC2626;color:#fff}.dhp .dhp-btn-red:hover{background:#B91C1C;text-decoration:none;color:#fff}.dhp .dhp-btn-blue{background:#006298;color:#fff}.dhp .dhp-btn-blue:hover{background:#004F7B;text-decoration:none;color:#fff}.dhp .dhp-btn-outline{background:#fff0;color:#006298;border:1.5px solid #006298}.dhp .dhp-btn-outline:hover{background:#E8F4FB;text-decoration:none}.dhp .dhp-btn svg{width:14px;height:14px;stroke:currentColor;fill:none;stroke-width:2;flex-shrink:0}.dhp .dhp-hero-stats{background:rgb(255 255 255 / .12);border:1px solid rgb(255 255 255 / .2);border-radius:8px;padding:24px;z-index:1}.dhp .dhp-stat-label{font-size:10px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:rgb(255 255 255 / .6);margin-bottom:16px}.dhp .dhp-stat{margin-bottom:16px}.dhp .dhp-stat:last-child{margin-bottom:0}.dhp .dhp-stat-n{font-family:Georgia,serif;font-size:28px;color:#fff;line-height:1}.dhp .dhp-stat-t{font-size:12px;color:rgb(255 255 255 / .65);margin-top:2px}.dhp .dhp-stat-div{height:1px;background:rgb(255 255 255 / .15);margin:12px 0}.dhp .dhp-section{margin-bottom:56px}.dhp .dhp-section-head{margin-bottom:28px}.dhp .dhp-section-head-row{display:flex;align-items:flex-end;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-bottom:28px}.dhp .dhp-kicker{font-size:11px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:#006298;margin-bottom:6px}.dhp .dhp-h2{font-family:Georgia,'Times New Roman',serif;font-size:26px;font-weight:400;color:#1A1A1A;line-height:1.2;margin-bottom:6px}.dhp .dhp-sub{font-size:15px;color:#666;line-height:1.65;max-width:560px}.dhp .dhp-cat-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.dhp .dhp-cat{background:#F9FAFB;border:1px solid #D9D9D9;border-radius:6px;padding:18px 12px;text-align:center;text-decoration:none;color:#1A1A1A;transition:all 0.15s;display:flex;flex-direction:column;align-items:center;gap:8px}.dhp .dhp-cat:hover{background:#E8F4FB;border-color:#B8D9EF;color:#006298;text-decoration:none;transform:translateY(-2px)}.dhp .dhp-cat-icon{width:44px;height:44px;border-radius:6px;background:#E8F4FB;border:1px solid #B8D9EF;display:flex;align-items:center;justify-content:center;color:#006298}.dhp .dhp-cat-icon svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.6}.dhp .dhp-cat-label{font-size:12px;font-weight:500;line-height:1.35}.dhp .dhp-emergency{background:#7F1D1D;border-radius:8px;padding:40px;display:grid;grid-template-columns:1fr 1fr;gap:32px;align-items:center;margin-bottom:56px}.dhp .dhp-emer-eyebrow{font-size:11px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:rgb(255 255 255 / .6);margin-bottom:10px}.dhp .dhp-emer-h{font-family:Georgia,serif;font-size:26px;font-weight:400;color:#fff;line-height:1.2;margin-bottom:12px}.dhp .dhp-emer-p{font-size:15px;color:rgb(255 255 255 / .8);line-height:1.65;margin-bottom:20px}.dhp .dhp-aid-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.dhp .dhp-aid{background:rgb(255 255 255 / .1);border:1px solid rgb(255 255 255 / .15);border-radius:4px;padding:9px 14px;font-size:13px;font-weight:500;color:#fff;text-decoration:none;display:flex;align-items:center;gap:8px;transition:background 0.15s}.dhp .dhp-aid:hover{background:rgb(255 255 255 / .18);text-decoration:none;color:#fff}.dhp .dhp-aid svg{width:13px;height:13px;stroke:rgb(255 255 255 / .7);fill:none;stroke-width:2;flex-shrink:0}.dhp .dhp-symptom-cloud{display:flex;flex-wrap:wrap;gap:8px}.dhp .dhp-symptom{padding:8px 18px;background:#F9FAFB;border:1px solid #D9D9D9;border-radius:20px;font-size:14px;color:#1A1A1A;text-decoration:none;transition:all 0.15s;display:flex;align-items:center;gap:6px}.dhp .dhp-symptom:hover{background:#E8F4FB;border-color:#006298;color:#006298;text-decoration:none}.dhp .dhp-symptom svg{width:13px;height:13px;stroke:currentColor;fill:none;stroke-width:2}.dhp .dhp-remedy-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.dhp .dhp-remedy{background:#FFFBF0;border:1px solid #E8C97A;border-radius:6px;padding:20px;text-decoration:none;color:#1A1A1A;transition:all 0.15s;display:flex;flex-direction:column;gap:6px}.dhp .dhp-remedy:hover{border-color:#D97706;transform:translateY(-2px);text-decoration:none}.dhp .dhp-remedy-cat{font-size:11px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:#92400E}.dhp .dhp-remedy-t{font-size:15px;font-weight:600;color:#1A1A1A;line-height:1.4}.dhp .dhp-remedy-p{font-size:13px;color:#666;line-height:1.6;flex:1}.dhp .dhp-remedy-lnk{font-size:12px;font-weight:600;color:#92400E;display:flex;align-items:center;gap:4px}.dhp .dhp-remedy-lnk svg{width:11px;height:11px;stroke:currentColor;fill:none;stroke-width:2.5}.dhp .dhp-warn-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-bottom:20px}.dhp .dhp-warn-card{background:#fff;border:1px solid #FCA5A5;border-radius:6px;padding:18px;display:flex;gap:12px;align-items:flex-start}.dhp .dhp-warn-dot{width:9px;height:9px;border-radius:50%;background:#DC2626;flex-shrink:0;margin-top:5px}.dhp .dhp-warn-t{font-size:14px;font-weight:600;color:#1A1A1A;margin-bottom:4px}.dhp .dhp-warn-p{font-size:13px;color:#666;line-height:1.55}.dhp .dhp-warn-cta{background:#FEF2F2;border:1px solid #FCA5A5;border-radius:6px;padding:20px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px}.dhp .dhp-warn-cta-t{font-size:15px;font-weight:500;color:#7F1D1D;line-height:1.5}.dhp .dhp-family-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px}.dhp .dhp-family-card{background:#F9FAFB;border:1px solid #D9D9D9;border-radius:6px;padding:24px}.dhp .dhp-family-head{display:flex;align-items:center;gap:12px;margin-bottom:18px}.dhp .dhp-family-icon{width:40px;height:40px;border-radius:6px;background:#E8F4FB;border:1px solid #B8D9EF;display:flex;align-items:center;justify-content:center;color:#006298}.dhp .dhp-family-icon svg{width:20px;height:20px;stroke:currentColor;fill:none;stroke-width:1.6}.dhp .dhp-family-h{font-family:Georgia,serif;font-size:18px;font-weight:400;color:#1A1A1A}.dhp .dhp-flink{display:flex;align-items:center;gap:7px;font-size:14px;color:#1A1A1A;text-decoration:none;padding:6px 8px;border-radius:4px;transition:background 0.15s}.dhp .dhp-flink:hover{background:#E8F4FB;color:#006298;text-decoration:none}.dhp .dhp-flink svg{width:13px;height:13px;stroke:#006298;fill:none;stroke-width:2;flex-shrink:0}.dhp .dhp-elderly-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:10px}.dhp .dhp-elderly{background:#F9FAFB;border:1px solid #D9D9D9;border-radius:6px;padding:18px 12px;text-align:center;text-decoration:none;color:#1A1A1A;transition:all 0.15s}.dhp .dhp-elderly:hover{background:#E8F4FB;border-color:#B8D9EF;text-decoration:none}.dhp .dhp-elderly-icon{width:40px;height:40px;border-radius:50%;background:#E8F4FB;border:1px solid #B8D9EF;display:flex;align-items:center;justify-content:center;color:#006298;margin:0 auto 10px}.dhp .dhp-elderly-icon svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.7}.dhp .dhp-elderly-t{font-size:13px;font-weight:600;line-height:1.35;color:#1A1A1A}.dhp .dhp-elderly-p{font-size:12px;color:#666;margin-top:3px;line-height:1.4}.dhp .dhp-guide-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.dhp .dhp-guide{background:#fff;border:1px solid #D9D9D9;border-radius:6px;overflow:hidden;text-decoration:none;color:#1A1A1A;transition:all 0.15s;display:flex;flex-direction:column}.dhp .dhp-guide:hover{border-color:#006298;transform:translateY(-2px);text-decoration:none}.dhp .dhp-guide-thumb{height:130px;background:#E8F4FB;display:flex;align-items:center;justify-content:center;border-bottom:1px solid #D9D9D9;font-size:13px;color:#666;font-weight:500}.dhp .dhp-guide-body{padding:18px;flex:1;display:flex;flex-direction:column;gap:5px}.dhp .dhp-guide-cat{font-size:11px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:#006298}.dhp .dhp-guide-t{font-size:15px;font-weight:600;color:#1A1A1A;line-height:1.4;flex:1}.dhp .dhp-guide-meta{font-size:12px;color:#666}.dhp .dhp-guide-lnk{font-size:12px;font-weight:600;color:#006298;display:flex;align-items:center;gap:4px;margin-top:4px}.dhp .dhp-guide-lnk svg{width:11px;height:11px;stroke:currentColor;fill:none;stroke-width:2.5}.dhp .dhp-about{background:#004F7B;border-radius:8px;padding:40px;display:grid;grid-template-columns:1fr auto;gap:40px;align-items:center;margin-bottom:56px}.dhp .dhp-about-eyebrow{font-size:11px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:rgb(255 255 255 / .55);margin-bottom:10px}.dhp .dhp-about-h{font-family:Georgia,serif;font-size:26px;font-weight:400;color:#fff;margin-bottom:14px;line-height:1.2}.dhp .dhp-about-p{font-size:15px;color:rgb(255 255 255 / .8);line-height:1.7;margin-bottom:20px}.dhp .dhp-about-stats{display:flex;flex-direction:column;gap:14px;min-width:180px}.dhp .dhp-about-stat{background:rgb(255 255 255 / .08);border:1px solid rgb(255 255 255 / .12);border-radius:6px;padding:14px;text-align:center}.dhp .dhp-about-stat-n{font-family:Georgia,serif;font-size:26px;color:#fff;line-height:1}.dhp .dhp-about-stat-t{font-size:12px;color:rgb(255 255 255 / .6);margin-top:3px}.dhp .dhp-disc{background:#F9FAFB;border:1px solid #D9D9D9;border-radius:6px;padding:16px 20px;font-size:12px;color:#666;line-height:1.65;text-align:center}.dhp .dhp-disc a{color:#006298;text-decoration:none}.dhp .dhp-disc a:hover{text-decoration:underline}@media (max-width:960px){.dhp .dhp-hero{grid-template-columns:1fr}.dhp .dhp-hero-stats{display:none}.dhp .dhp-cat-grid{grid-template-columns:repeat(3,1fr)}.dhp .dhp-remedy-grid{grid-template-columns:1fr 1fr}.dhp .dhp-warn-grid{grid-template-columns:1fr 1fr}.dhp .dhp-elderly-grid{grid-template-columns:repeat(3,1fr)}.dhp .dhp-guide-grid{grid-template-columns:1fr 1fr}.dhp .dhp-emergency{grid-template-columns:1fr}.dhp .dhp-about{grid-template-columns:1fr}.dhp .dhp-about-stats{flex-direction:row}}@media (max-width:600px){.dhp .dhp-hero{padding:32px 22px}.dhp .dhp-hero-h{font-size:26px}.dhp .dhp-cat-grid{grid-template-columns:repeat(2,1fr)}.dhp .dhp-remedy-grid{grid-template-columns:1fr}.dhp .dhp-warn-grid{grid-template-columns:1fr}.dhp .dhp-warn-cta{flex-direction:column}.dhp .dhp-elderly-grid{grid-template-columns:repeat(2,1fr)}.dhp .dhp-guide-grid{grid-template-columns:1fr}.dhp .dhp-family-grid{grid-template-columns:1fr}.dhp .dhp-about-stats{flex-direction:column}.dhp .dhp-emergency{padding:28px 22px}}

/* === 4. Category hubs (.dcat) === */

.dcat{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#1A1A1A}.dcat .dc-hero{background:#006298;border-radius:8px;padding:40px 36px;margin-bottom:36px;position:relative;overflow:hidden}.dcat .dc-hero::after{content:'';position:absolute;right:-30px;top:-30px;width:160px;height:160px;border-radius:50%;background:rgb(255 255 255 / .06);pointer-events:none}.dcat .dc-hero-eye{font-size:11px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:rgb(255 255 255 / .6);margin-bottom:8px}.dcat .dc-hero-title{font-family:Georgia,'Times New Roman',serif;font-size:28px;font-weight:400;color:#fff;line-height:1.2;margin-bottom:12px}.dcat .dc-hero-sub{font-size:15px;color:rgb(255 255 255 / .82);line-height:1.65;max-width:600px;margin:0}.dcat .dc-intro{font-size:16px;line-height:1.8;color:#1A1A1A;margin-bottom:32px;max-width:780px}.dcat .dc-kicker{font-size:11px;font-weight:600;letter-spacing:2px;text-transform:uppercase;color:#006298;margin-bottom:8px}.dcat .dc-section-title{font-family:Georgia,'Times New Roman',serif;font-size:22px;font-weight:400;color:#1A1A1A;margin-bottom:16px;padding-bottom:8px;border-bottom:1px solid #D9D9D9;line-height:1.25}.dcat .dc-block{margin-bottom:36px}.dcat .dc-symptom-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:10px;margin-bottom:8px}.dcat .dc-symptom{background:#E8F4FB;border:1px solid #B8D9EF;border-radius:6px;padding:12px 14px;display:flex;align-items:center;gap:10px;font-size:14px;color:#1A1A1A;font-weight:500}.dcat .dc-symptom svg{width:16px;height:16px;stroke:#006298;fill:none;stroke-width:2;flex-shrink:0}.dcat .dc-article-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-bottom:8px}.dcat .dc-article{background:#fff;border:1px solid #D9D9D9;border-radius:6px;padding:20px;text-decoration:none;color:#1A1A1A;transition:all 0.15s;display:flex;flex-direction:column;gap:6px}.dcat .dc-article:hover{border-color:#006298;box-shadow:0 4px 12px rgb(0 98 152 / .08);text-decoration:none}.dcat .dc-art-tag{font-size:11px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:#006298}.dcat .dc-art-title{font-size:15px;font-weight:600;color:#1A1A1A;line-height:1.4;flex:1}.dcat .dc-art-desc{font-size:13px;color:#666;line-height:1.6}.dcat .dc-art-link{font-size:12px;font-weight:600;color:#006298;display:flex;align-items:center;gap:4px;margin-top:4px}.dcat .dc-art-link svg{width:11px;height:11px;stroke:currentColor;fill:none;stroke-width:2.5}.dcat .dc-warn-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:10px;margin-bottom:16px}.dcat .dc-warn-item{background:#FEF2F2;border:1px solid #FCA5A5;border-radius:6px;padding:14px 16px;display:flex;align-items:flex-start;gap:10px}.dcat .dc-warn-dot{width:8px;height:8px;border-radius:50%;background:#DC2626;flex-shrink:0;margin-top:5px}.dcat .dc-warn-text{font-size:14px;color:#1A1A1A;line-height:1.55}.dcat .dc-warn-cta{background:#FEF2F2;border:1px solid #FCA5A5;border-radius:6px;padding:16px 20px;font-size:14px;color:#7F1D1D;line-height:1.6;display:flex;align-items:center;gap:10px}.dcat .dc-warn-cta svg{width:18px;height:18px;stroke:#7F1D1D;fill:none;stroke-width:2;flex-shrink:0}.dcat .dc-disclaimer{background:#F9FAFB;border:1px solid #D9D9D9;border-radius:6px;padding:14px 18px;margin-top:32px;font-size:12px;color:#666;line-height:1.65}.dcat .dc-disclaimer a{color:#006298;text-decoration:none}.dcat .dc-disclaimer a:hover{text-decoration:underline}@media (max-width:768px){.dcat .dc-article-grid{grid-template-columns:1fr 1fr}.dcat .dc-hero{padding:28px 22px}.dcat .dc-hero-title{font-size:22px}}@media (max-width:500px){.dcat .dc-article-grid{grid-template-columns:1fr}.dcat .dc-symptom-grid{grid-template-columns:1fr 1fr}}

/* === 5. Category page chrome === */
.category-header .category-title {
  display: none;
}
.category-header:has(.dcat) .category-title {
  display: none;
}
.category-description {
  margin-bottom: 0;
}

/* === 6. Global normalizations === */

/**
 * Global normalizations — safety net when mirror HTML varies.
 * Primary fix is serve-time header/footer replacement in overhaul_inject.py.
 */

/* Never allow full-size logo images outside the header */
.site-footer img,
.footer-logo img,
.footer-about img {
  max-height: 48px !important;
  max-width: 200px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  background: transparent !important;
}

.footer-logo,
.footer-about {
  background: transparent !important;
  padding: 0;
  margin-bottom: 0.75rem;
}

/* Hide legacy theme chrome if any survives header replacement */
.header-search,
.mobile-menu-toggle,
.site-header .search-form {
  display: none !important;
}

/* Duplicate titles when custom hero/content blocks exist */
.has-custom-hero .page-header,
.home .page-header,
.category-header:has(.dcat) .category-title {
  display: none;
}

/* Symptom pages — replaced by .dimh-symptom-hero at serve time */
.is-symptom-page .page-header {
  display: none;
}

.dimh-symptom-hero {
  background: #006298;
  border-radius: 8px;
  padding: 2rem 2.25rem;
  margin-bottom: 2rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.dimh-symptom-hero::after {
  content: "";
  position: absolute;
  right: -30px;
  top: -30px;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.dimh-symptom-hero__crumbs {
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
  color: rgba(255, 255, 255, 0.75);
}

.dimh-symptom-hero__crumbs a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
}

.dimh-symptom-hero__crumbs a:hover {
  text-decoration: underline;
  color: #fff;
}

.dimh-symptom-hero__eyebrow {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 0.5rem;
}

.dimh-symptom-hero__title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  color: #fff;
}

.dimh-symptom-hero__badge {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.dimh-symptom-hero__badge--urgent {
  background: #DC2626;
}

.dimh-symptoms-index__sub {
  margin: 0.75rem 0 0;
  max-width: 36rem;
  font-size: 0.95rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.85);
}

.dimh-symptoms-index {
  margin-bottom: 2rem;
}

.dimh-symptoms-index__urgent {
  margin: 0 0 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: 6px;
  border: 1px solid #FECACA;
  background: #FEF2F2;
  color: #991B1B;
  font-size: 0.9rem;
  line-height: 1.6;
}

.dimh-guide-card__tag--urgent {
  color: #DC2626;
}

/* Legacy footer layout → still readable if replacement missed */
.site-footer .footer-columns {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.site-footer .footer-columns h4 {
  color: #fff;
  font-size: 0.85rem;
  margin: 0 0 0.75rem;
}

.site-footer .footer-columns p {
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 36rem;
}

/* SVG icons never blow up */
svg {
  max-width: 100%;
}

.dhp svg,
.dcat svg,
.da-wrap svg,
.dimh-symptom-finder__icon {
  max-width: 24px;
  max-height: 24px;
}

/* Mobile panel spacing */
.header-mobile-panel .container {
  padding-top: 0.75rem;
  padding-bottom: 1rem;
}

.dimh-emergency-bar + .site-main,
.dimh-emergency-bar + main {
  margin-top: 0;
}

/* === 6a. Page title overrides === */

/* --- Hide duplicate theme page titles --- */
.page-id-3482 .page-header { display: none; }
.page-id-74 .page-header { display: none; }
.page-id-3490 .page-header { display: none; }
.page-id-3486 .page-header { display: none; }
.page-id-3509 .page-header { display: none; }
.page-id-3519 .page-header { display: none; }

/* === 6b. Articles, symptoms, first-aid, static pages === */

/* --- Articles & symptoms (.da-wrap) --- */

.da-wrap{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:#1A1A1A;line-height:1.7}
.da-wrap h2{font-family:Georgia,'Times New Roman',serif;font-size:22px;font-weight:normal;color:#1A1A1A;margin:36px 0 14px;padding-bottom:8px;border-bottom:1px solid #D9D9D9}
.da-wrap h3{font-family:Georgia,'Times New Roman',serif;font-size:18px;font-weight:normal;color:#1A1A1A;margin:28px 0 10px}
.da-wrap p{font-size:16px;line-height:1.8;color:#1A1A1A;margin-bottom:16px}
.da-wrap ul,.da-wrap ol{padding-left:22px;margin-bottom:16px}
.da-wrap li{font-size:16px;line-height:1.75;margin-bottom:6px;color:#1A1A1A}
.da-wrap strong{font-weight:600}
.da-wrap a{color:#006298}
.da-wrap .da-alert{background:#FEF2F2;border-left:4px solid #DC2626;border-radius:0 6px 6px 0;padding:16px 20px;margin:24px 0;font-size:15px;color:#7F1D1D;line-height:1.65}
.da-wrap .da-info{background:#E8F4FB;border-left:4px solid #006298;border-radius:0 6px 6px 0;padding:16px 20px;margin:24px 0;font-size:15px;color:#1A1A1A;line-height:1.65}
.da-wrap .da-steps{background:#F9FAFB;border:1px solid #D9D9D9;border-radius:6px;padding:20px 24px;margin:24px 0}
.da-wrap .da-steps-title{font-size:12px;font-weight:600;letter-spacing:1.5px;text-transform:uppercase;color:#006298;margin-bottom:14px}
.da-wrap .da-step{display:flex;gap:14px;align-items:flex-start;margin-bottom:14px}
.da-wrap .da-step:last-child{margin-bottom:0}
.da-wrap .da-step-num{width:26px;height:26px;border-radius:50%;background:#006298;color:#fff;font-size:12px;font-weight:600;display:flex;align-items:center;justify-content:center;flex-shrink:0;margin-top:1px}
.da-wrap .da-step-t{font-size:15px;font-weight:600;margin-bottom:3px}
.da-wrap .da-step-p{font-size:14px;color:#444;line-height:1.6;margin:0}
.da-wrap .da-table{width:100%;border-collapse:collapse;margin:20px 0;font-size:14px}
.da-wrap .da-table th{background:#006298;color:#fff;padding:10px 14px;text-align:left;font-weight:600}
.da-wrap .da-table td{padding:10px 14px;border-bottom:1px solid #D9D9D9;vertical-align:top}
.da-wrap .da-table tr:nth-child(even) td{background:#F9FAFB}
.da-wrap .da-disclaimer{background:#F9FAFB;border:1px solid #D9D9D9;border-radius:6px;padding:14px 18px;margin-top:36px;font-size:12px;color:#666;line-height:1.65}
.da-wrap .da-disclaimer a{color:#006298}

/* --- First Aid page (.dfa) --- */

.dfa { font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #1A1A1A; }

.dfa .dfa-hero {
    background: #7F1D1D;
    border-radius: 8px;
    padding: 48px 40px;
    margin-bottom: 32px;
    position: relative;
    overflow: hidden;
}
.dfa .dfa-hero::after {
    content: '';
    position: absolute;
    right: -30px; top: -30px;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}
.dfa .dfa-eyebrow {
    font-size: 11px; font-weight: 600;
    letter-spacing: 2px; text-transform: uppercase;
    color: rgba(255,255,255,0.6); margin-bottom: 10px;
}
.dfa .dfa-hero-h {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 30px; font-weight: normal;
    color: #fff; line-height: 1.2; margin-bottom: 12px;
}
.dfa .dfa-hero-p {
    font-size: 15px; color: rgba(255,255,255,0.82);
    line-height: 1.65; max-width: 560px; margin: 0;
}

.dfa .dfa-emer {
    background: #FEF2F2; border: 1px solid #FCA5A5;
    border-radius: 6px; padding: 14px 20px;
    margin-bottom: 32px;
    display: flex; align-items: center; gap: 12px;
    font-size: 14px; color: #7F1D1D; font-weight: 500; line-height: 1.5;
}
.dfa .dfa-emer svg { flex-shrink: 0; }

.dfa .dfa-intro {
    font-size: 16px; line-height: 1.8;
    color: #1A1A1A; margin-bottom: 36px;
}

.dfa .dfa-kicker {
    font-size: 11px; font-weight: 600; letter-spacing: 2px;
    text-transform: uppercase; color: #006298; margin-bottom: 8px;
}
.dfa .dfa-h2 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 22px; font-weight: normal; color: #1A1A1A;
    margin-bottom: 16px; padding-bottom: 8px;
    border-bottom: 1px solid #D9D9D9;
}
.dfa .dfa-block { margin-bottom: 40px; }

.dfa .dfa-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.dfa .dfa-card {
    background: #fff; border: 1px solid #D9D9D9;
    border-radius: 6px; padding: 22px;
    text-decoration: none; color: #1A1A1A;
    transition: all 0.15s;
    display: flex; flex-direction: column; gap: 8px;
}
.dfa .dfa-card:hover {
    border-color: #006298;
    box-shadow: 0 4px 12px rgba(0,98,152,0.08);
    text-decoration: none;
}
.dfa .dfa-card-num {
    font-family: Georgia, serif;
    font-size: 28px; color: #006298;
    line-height: 1; font-weight: normal;
}
.dfa .dfa-card-tag {
    font-size: 11px; font-weight: 600;
    letter-spacing: 1.5px; text-transform: uppercase;
    color: #7F1D1D;
}
.dfa .dfa-card-t {
    font-size: 15px; font-weight: 600;
    color: #1A1A1A; line-height: 1.4;
}
.dfa .dfa-card-p {
    font-size: 13px; color: #666; line-height: 1.6; flex: 1;
}
.dfa .dfa-card-lnk {
    font-size: 12px; font-weight: 600; color: #006298;
    display: flex; align-items: center; gap: 4px; margin-top: 4px;
}

.dfa .dfa-steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 12px;
}
.dfa .dfa-step {
    background: #F9FAFB; border: 1px solid #D9D9D9;
    border-radius: 6px; padding: 16px;
    display: flex; gap: 14px; align-items: flex-start;
}
.dfa .dfa-step-num {
    width: 28px; height: 28px; border-radius: 50%;
    background: #006298; color: #fff;
    font-size: 13px; font-weight: 600;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.dfa .dfa-step-t { font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.dfa .dfa-step-p { font-size: 13px; color: #666; line-height: 1.55; }

.dfa .dfa-warn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 10px; margin-bottom: 16px;
}
.dfa .dfa-warn-item {
    background: #FEF2F2; border: 1px solid #FCA5A5;
    border-radius: 6px; padding: 14px 16px;
    display: flex; align-items: flex-start; gap: 10px;
}
.dfa .dfa-warn-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: #DC2626; flex-shrink: 0; margin-top: 5px;
}
.dfa .dfa-warn-text { font-size: 14px; color: #1A1A1A; line-height: 1.55; }
.dfa .dfa-warn-cta {
    background: #FEF2F2; border: 1px solid #FCA5A5;
    border-radius: 6px; padding: 16px 20px;
    font-size: 14px; color: #7F1D1D; line-height: 1.6;
    display: flex; align-items: center; gap: 10px;
}

.dfa .dfa-kit {
    background: #E8F4FB; border: 1px solid #B8D9EF;
    border-radius: 6px; padding: 20px 24px;
}
.dfa .dfa-kit-title {
    font-family: Georgia, serif; font-size: 18px;
    font-weight: normal; color: #1A1A1A; margin-bottom: 12px;
}
.dfa .dfa-kit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 8px;
}
.dfa .dfa-kit-item {
    font-size: 13px; color: #1A1A1A;
    display: flex; align-items: center; gap: 8px;
}
.dfa .dfa-kit-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: #006298; flex-shrink: 0;
}

.dfa .dfa-disclaimer {
    background: #F9FAFB; border: 1px solid #D9D9D9;
    border-radius: 6px; padding: 14px 18px;
    margin-top: 32px; font-size: 12px;
    color: #666; line-height: 1.65;
}
.dfa .dfa-disclaimer a { color: #006298; text-decoration: none; }

@media (max-width: 768px) {
    .dfa .dfa-grid { grid-template-columns: 1fr 1fr; }
    .dfa .dfa-hero { padding: 28px 22px; }
    .dfa .dfa-hero-h { font-size: 22px; }
}
@media (max-width: 500px) {
    .dfa .dfa-grid { grid-template-columns: 1fr; }
}

/* --- About page (.dp-wrap) --- */

.dp-wrap { font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #1A1A1A; }

.dp-wrap .dp-hero {
  background: #006298;
  border-radius: 8px;
  padding: 48px 40px;
  margin-bottom: 48px;
  display: grid;
  grid-template-columns: 1fr 100px;
  gap: 32px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.dp-wrap .dp-hero::after {
  content: '';
  position: absolute;
  right: -30px; top: -30px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  pointer-events: none;
}
.dp-wrap .dp-eyebrow {
  font-size: 11px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.65); margin-bottom: 10px;
}
.dp-wrap .dp-hero-h {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30px; font-weight: normal;
  color: #fff; line-height: 1.2; margin-bottom: 12px;
}
.dp-wrap .dp-hero-p {
  font-size: 15px; color: rgba(255,255,255,0.82);
  line-height: 1.65; max-width: 460px; margin: 0;
}
.dp-wrap .dp-hero-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; z-index: 1;
}
.dp-wrap .dp-hero-icon svg { width: 34px; height: 34px; stroke: #fff; fill: none; stroke-width: 1.5; }

.dp-wrap .dp-kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: #006298; margin-bottom: 6px;
}
.dp-wrap .dp-h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px; font-weight: normal; color: #1A1A1A;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid #D9D9D9; line-height: 1.25;
}
.dp-wrap .dp-block { margin-bottom: 40px; }

.dp-wrap .dp-p { font-size: 16px; line-height: 1.75; color: #1A1A1A; margin-bottom: 16px; }
.dp-wrap .dp-ul { padding-left: 22px; margin-bottom: 16px; }
.dp-wrap .dp-ul li { font-size: 16px; line-height: 1.7; margin-bottom: 6px; color: #1A1A1A; }
.dp-wrap .dp-a { color: #006298; text-decoration: none; }
.dp-wrap .dp-a:hover { text-decoration: underline; }

.dp-wrap .dp-quote {
  border-left: 4px solid #006298;
  padding: 16px 20px;
  margin: 24px 0;
  background: #E8F4FB;
  border-radius: 0 6px 6px 0;
}
.dp-wrap .dp-quote p {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 17px; font-style: italic;
  color: #1A1A1A; line-height: 1.55; margin: 0;
}

.dp-wrap .dp-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px; margin: 24px 0 32px;
}
.dp-wrap .dp-card {
  background: #E8F4FB; border: 1px solid #B8D9EF;
  border-radius: 6px; padding: 18px 14px;
}
.dp-wrap .dp-card svg {
  width: 20px; height: 20px; stroke: #006298;
  fill: none; stroke-width: 1.7; display: block; margin-bottom: 10px;
}
.dp-wrap .dp-card-t { font-size: 14px; font-weight: 600; color: #1A1A1A; margin-bottom: 4px; }
.dp-wrap .dp-card-p { font-size: 13px; color: #666; line-height: 1.5; }

.dp-wrap .dp-notice {
  background: #E8F4FB; border: 1px solid #B8D9EF;
  border-radius: 6px; padding: 18px 22px; margin-top: 20px;
}
.dp-wrap .dp-notice p { font-size: 14px; color: #1A1A1A; line-height: 1.7; margin: 0; }

@media (max-width: 560px) {
  .dp-wrap .dp-hero { grid-template-columns: 1fr; padding: 28px 22px; }
  .dp-wrap .dp-hero-icon { display: none; }
  .dp-wrap .dp-hero-h { font-size: 22px; }
}

/* --- Contact page (.dc-wrap) --- */

.dc-wrap { font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #1A1A1A; }

.dc-wrap .dc-hero {
  background: #006298; border-radius: 8px;
  padding: 48px 40px; margin-bottom: 40px;
  display: grid; grid-template-columns: 1fr 100px;
  gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.dc-wrap .dc-hero::after {
  content: ''; position: absolute;
  right: -30px; top: -30px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,0.06); pointer-events: none;
}
.dc-wrap .dc-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 10px;
}
.dc-wrap .dc-hero-h {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30px; font-weight: normal;
  color: #fff; line-height: 1.2; margin-bottom: 12px;
}
.dc-wrap .dc-hero-p { font-size: 15px; color: rgba(255,255,255,0.82); line-height: 1.65; margin: 0; }
.dc-wrap .dc-hero-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; z-index: 1;
}
.dc-wrap .dc-hero-icon svg { width: 34px; height: 34px; stroke: #fff; fill: none; stroke-width: 1.5; }

.dc-wrap .dc-info-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px; margin-bottom: 40px;
}
.dc-wrap .dc-info-card {
  background: #E8F4FB; border: 1px solid #B8D9EF;
  border-radius: 6px; padding: 20px 16px; text-align: center;
}
.dc-wrap .dc-info-card svg {
  width: 26px; height: 26px; stroke: #006298; fill: none;
  stroke-width: 1.5; display: block; margin: 0 auto 10px;
}
.dc-wrap .dc-info-t { font-size: 14px; font-weight: 600; color: #1A1A1A; margin-bottom: 5px; }
.dc-wrap .dc-info-p { font-size: 13px; color: #666; line-height: 1.55; }
.dc-wrap .dc-info-a { font-size: 13px; color: #006298; word-break: break-all; text-decoration: none; }
.dc-wrap .dc-info-a:hover { text-decoration: underline; }

.dc-wrap .dc-kicker {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: #006298; margin-bottom: 6px;
}
.dc-wrap .dc-h2 {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 24px; font-weight: normal; color: #1A1A1A;
  margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 1px solid #D9D9D9;
}

.dc-wrap .dc-form-wrap {
  background: #F9FAFB; border: 1px solid #D9D9D9;
  border-radius: 8px; padding: 32px; margin-top: 16px;
}
.dc-wrap .dc-intro { font-size: 14px; color: #666; line-height: 1.65; margin-bottom: 24px; }

.dc-wrap .dc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.dc-wrap .dc-group { margin-bottom: 16px; }
.dc-wrap .dc-label {
  display: block; font-size: 12px; font-weight: 600;
  letter-spacing: 0.5px; text-transform: uppercase;
  color: #666; margin-bottom: 6px;
}
.dc-wrap .dc-input,
.dc-wrap .dc-textarea,
.dc-wrap .dc-select {
  width: 100%; padding: 10px 13px;
  border: 1px solid #D9D9D9; border-radius: 4px;
  font-size: 15px; font-family: Inter, sans-serif;
  color: #1A1A1A; background: #fff;
  transition: border-color 0.15s;
  -webkit-appearance: none; appearance: none;
}
.dc-wrap .dc-input:focus,
.dc-wrap .dc-textarea:focus,
.dc-wrap .dc-select:focus {
  outline: none; border-color: #006298;
  box-shadow: 0 0 0 2px rgba(0,98,152,0.15);
}
.dc-wrap .dc-textarea { min-height: 130px; resize: vertical; }

.dc-wrap .dc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.dc-wrap .dc-chip {
  padding: 7px 16px; border: 1px solid #D9D9D9; border-radius: 16px;
  font-size: 13px; cursor: pointer; transition: all 0.15s;
  color: #666; background: #fff; font-family: Inter, sans-serif;
  user-select: none;
}
.dc-wrap .dc-chip:hover { border-color: #006298; color: #006298; }
.dc-wrap .dc-chip.active { background: #006298; color: #fff; border-color: #006298; }

.dc-wrap .dc-btn {
  background: #006298; color: #fff;
  padding: 11px 28px; border: none; border-radius: 4px;
  font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: Inter, sans-serif; transition: background 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
}
.dc-wrap .dc-btn:hover { background: #004F7B; }
.dc-wrap .dc-btn svg { width: 15px; height: 15px; stroke: #fff; fill: none; stroke-width: 2; }
.dc-wrap .dc-note { font-size: 12px; color: #666; margin-top: 12px; line-height: 1.6; }
.dc-wrap .dc-note a { color: #006298; }

@media (max-width: 560px) {
  .dc-wrap .dc-hero { grid-template-columns: 1fr; padding: 28px 22px; }
  .dc-wrap .dc-hero-icon { display: none; }
  .dc-wrap .dc-hero-h { font-size: 22px; }
  .dc-wrap .dc-row { grid-template-columns: 1fr; }
  .dc-wrap .dc-form-wrap { padding: 20px; }
}

/* --- Disclaimer page (.dd-wrap) --- */

.dd-wrap { font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #1A1A1A; }

.dd-wrap .dd-hero {
  background: #006298; border-radius: 8px;
  padding: 48px 40px; margin-bottom: 32px;
  display: grid; grid-template-columns: 1fr 100px;
  gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.dd-wrap .dd-hero::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,0.06); pointer-events: none;
}
.dd-wrap .dd-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 10px;
}
.dd-wrap .dd-hero-h {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30px; font-weight: normal;
  color: #fff; line-height: 1.2; margin-bottom: 12px;
}
.dd-wrap .dd-hero-p { font-size: 15px; color: rgba(255,255,255,0.82); line-height: 1.65; margin: 0; }
.dd-wrap .dd-hero-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; z-index: 1;
}
.dd-wrap .dd-hero-icon svg { width: 34px; height: 34px; stroke: #fff; fill: none; stroke-width: 1.5; }

.dd-wrap .dd-stamp { font-size: 12px; color: #666; margin-bottom: 24px; }

.dd-wrap .dd-alert-main {
  background: #FFF4E6;
  border: 1px solid #F59E0B; border-left: 4px solid #F59E0B;
  border-radius: 0 6px 6px 0;
  padding: 24px; margin-bottom: 20px;
  display: flex; gap: 16px; align-items: flex-start;
}
.dd-wrap .dd-alert-main svg { width: 26px; height: 26px; stroke: #92400E; fill: none; stroke-width: 1.7; flex-shrink: 0; margin-top: 2px; }
.dd-wrap .dd-alert-main-t { font-size: 15px; font-weight: 600; color: #92400E; margin-bottom: 6px; }
.dd-wrap .dd-alert-main-p { font-size: 14px; color: #78350F; line-height: 1.7; margin: 0; }

.dd-wrap .dd-alert-emer {
  background: #FEF2F2; border: 1px solid #FCA5A5;
  border-radius: 6px; padding: 14px 20px; margin-bottom: 36px;
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: #7F1D1D; font-weight: 500; line-height: 1.5;
}
.dd-wrap .dd-alert-emer svg { width: 20px; height: 20px; stroke: #7F1D1D; fill: none; stroke-width: 1.8; flex-shrink: 0; }

.dd-wrap .dd-section { margin-bottom: 28px; }
.dd-wrap .dd-sec-h {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px; font-weight: normal; color: #1A1A1A;
  margin-bottom: 10px; padding-left: 14px;
  border-left: 3px solid #006298; line-height: 1.3;
}
.dd-wrap .dd-p { font-size: 15px; line-height: 1.75; color: #1A1A1A; margin-bottom: 10px; }
.dd-wrap .dd-a { color: #006298; text-decoration: none; }
.dd-wrap .dd-a:hover { text-decoration: underline; }
.dd-wrap .dd-divider { height: 1px; background: #D9D9D9; margin: 24px 0; }

.dd-wrap .dd-closing {
  background: #E8F4FB; border: 1px solid #B8D9EF;
  border-radius: 6px; padding: 20px 24px; margin-top: 32px;
}
.dd-wrap .dd-closing p { font-size: 14px; color: #1A1A1A; line-height: 1.7; margin: 0; }

@media (max-width: 560px) {
  .dd-wrap .dd-hero { grid-template-columns: 1fr; padding: 28px 22px; }
  .dd-wrap .dd-hero-icon { display: none; }
  .dd-wrap .dd-hero-h { font-size: 22px; }
  .dd-wrap .dd-alert-main { flex-direction: column; gap: 10px; }
}

/* --- Privacy Policy (.dpp-wrap) --- */

.dpp-wrap { font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; color: #1A1A1A; }

.dpp-wrap .dpp-hero {
  background: #006298; border-radius: 8px;
  padding: 48px 40px; margin-bottom: 32px;
  display: grid; grid-template-columns: 1fr 100px;
  gap: 32px; align-items: center;
  position: relative; overflow: hidden;
}
.dpp-wrap .dpp-hero::after {
  content: ''; position: absolute; right: -30px; top: -30px;
  width: 180px; height: 180px; border-radius: 50%;
  background: rgba(255,255,255,0.06); pointer-events: none;
}
.dpp-wrap .dpp-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(255,255,255,0.65); margin-bottom: 10px;
}
.dpp-wrap .dpp-hero-h {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 30px; font-weight: normal;
  color: #fff; line-height: 1.2; margin-bottom: 12px;
}
.dpp-wrap .dpp-hero-p { font-size: 15px; color: rgba(255,255,255,0.82); line-height: 1.65; margin: 0; }
.dpp-wrap .dpp-hero-icon {
  width: 80px; height: 80px; border-radius: 50%;
  background: rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; z-index: 1;
}
.dpp-wrap .dpp-hero-icon svg { width: 34px; height: 34px; stroke: #fff; fill: none; stroke-width: 1.5; }

.dpp-wrap .dpp-stamp { font-size: 12px; color: #666; margin-bottom: 24px; }

.dpp-wrap .dpp-toc {
  background: #E8F4FB; border: 1px solid #B8D9EF;
  border-radius: 6px; padding: 20px 24px; margin-bottom: 36px;
}
.dpp-wrap .dpp-toc-title {
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: #006298; margin-bottom: 12px;
}
.dpp-wrap .dpp-toc ol { padding-left: 20px; columns: 2; column-gap: 24px; }
.dpp-wrap .dpp-toc li { font-size: 13px; line-height: 2.1; }
.dpp-wrap .dpp-toc a { color: #006298; text-decoration: none; }
.dpp-wrap .dpp-toc a:hover { text-decoration: underline; }

.dpp-wrap .dpp-section { margin-bottom: 32px; scroll-margin-top: 80px; }
.dpp-wrap .dpp-sec-head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.dpp-wrap .dpp-sec-icon {
  width: 34px; height: 34px; border-radius: 6px;
  background: #E8F4FB; border: 1px solid #B8D9EF;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.dpp-wrap .dpp-sec-icon svg { width: 17px; height: 17px; stroke: #006298; fill: none; stroke-width: 1.7; }
.dpp-wrap .dpp-sec-h {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 20px; font-weight: normal; color: #1A1A1A; line-height: 1.25;
}
.dpp-wrap .dpp-p { font-size: 15px; line-height: 1.75; color: #1A1A1A; margin-bottom: 12px; }
.dpp-wrap .dpp-ul { padding-left: 22px; margin-bottom: 12px; }
.dpp-wrap .dpp-ul li { font-size: 15px; line-height: 1.7; margin-bottom: 5px; color: #1A1A1A; }
.dpp-wrap .dpp-a { color: #006298; text-decoration: none; }
.dpp-wrap .dpp-a:hover { text-decoration: underline; }
.dpp-wrap .dpp-strong { font-weight: 600; }
.dpp-wrap .dpp-divider { height: 1px; background: #D9D9D9; margin: 28px 0; }

@media (max-width: 560px) {
  .dpp-wrap .dpp-hero { grid-template-columns: 1fr; padding: 28px 22px; }
  .dpp-wrap .dpp-hero-icon { display: none; }
  .dpp-wrap .dpp-hero-h { font-size: 22px; }
  .dpp-wrap .dpp-toc ol { columns: 1; }
}

/* === 7. Cross-browser fixes === */

/* ============================================================
   Cross-browser consistency (Chrome / Safari / Edge / Firefox)
   Re-paste full file into Additional CSS after updating.
   ============================================================ */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.dhp, .dcat, .da-wrap, .dfa, .dwarn, .dp-wrap, .dpp-wrap {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.dhp-cat-grid, .dhp-aid-grid, .dhp-symptom-grid, .dhp-remedy-grid,
.dhp-guide-grid, .dhp-flink-grid, .dhp-elderly-grid,
.dcat .dc-article-grid, .dcat .dc-symptom-grid, .dcat .dc-warn-grid {
  min-height: 0;
}

.dhp-cat, .dhp-aid, .dhp-symptom, .dhp-remedy, .dhp-guide, .dhp-elderly,
.dcat .dc-article, .dcat .dc-symptom {
  text-decoration: none;
  color: inherit;
}

.dhp-cat:hover, .dhp-aid:hover, .dhp-remedy:hover, .dhp-guide:hover,
.dcat .dc-article:hover {
  text-decoration: none;
}
