/* ==========================================================================
   SwasthiyaSure Health Essentials — Isolated Editorial Stylesheet (v1.0)
   Namespace: .he-*
   Works alongside read-only ../advisory.css brand tokens without altering
   any existing insurance advisory styles or components.
   ========================================================================== */

.he-page {
  --he-navy: var(--navy-primary, #0C1E35);
  --he-navy-deep: var(--navy-dark, #081424);
  --he-navy-mid: #162E4D;
  --he-navy-soft: #EEF3F8;
  --he-ivory: #FAF8F5;
  --he-ivory-warm: #F3EFE8;
  --he-canvas: var(--bg-canvas, #FAFAFA);
  --he-white: var(--bg-card, #FFFFFF);
  --he-orange: var(--accent-orange, #E67E22);
  --he-orange-hover: var(--accent-orange-hover, #CF711F);
  --he-amber-text: var(--kicker-orange, #B45309);
  --he-orange-tint: rgba(230, 126, 34, 0.09);
  --he-orange-border: rgba(230, 126, 34, 0.28);
  --he-text: #1E293B;
  --he-text-secondary: #475569;
  --he-text-muted: #64748B;
  --he-border: #E2E8F0;
  --he-border-strong: #CBD5E1;
  --he-teal-clinical: #0F5C6E;
  --he-teal-soft: #F0F9FA;
  --he-safety-bg: #FFFBEB;
  --he-safety-border: #F59E0B;
  --he-safety-text: #78350F;
  --he-radius-sm: 8px;
  --he-radius-md: 12px;
  --he-radius-lg: 16px;
  --he-shadow-sm: 0 1px 3px rgba(12, 30, 53, 0.05);
  --he-shadow-md: 0 6px 24px -4px rgba(12, 30, 53, 0.07);
  --he-shadow-hover: 0 14px 32px -6px rgba(12, 30, 53, 0.11);

  font-family: var(--font-family, 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  background-color: var(--he-ivory);
  color: var(--he-text);
  line-height: 1.68;
  overflow-x: hidden;
}

/* Accessibility Skip Link */
.he-skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 2000;
  background: var(--he-navy);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: var(--he-radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
}

.he-skip-link:focus {
  left: 16px;
  outline: 3px solid var(--he-orange);
  outline-offset: 2px;
}

/* Containers */
.he-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.he-container-narrow {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Top Editorial & Independence Bar */
.he-topbar {
  background-color: var(--he-navy);
  color: #E2E8F0;
  font-size: 0.8rem;
  line-height: 1.45;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.he-topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.he-topbar-note {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #CBD5E1;
  min-width: 0;
}

.he-topbar-pill {
  display: inline-block;
  background: rgba(230, 126, 34, 0.22);
  color: #FDBA74;
  border: 1px solid rgba(251, 146, 60, 0.35);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.he-topbar-return {
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 1px;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.he-topbar-return:hover,
.he-topbar-return:focus-visible {
  color: #FDBA74;
  border-bottom-color: #FDBA74;
}

/* Header & Navigation */
.he-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--he-border);
}

.he-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  gap: 16px;
}

.he-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.he-brand-logo {
  width: auto;
  height: 48px;
  max-width: 70px;
  object-fit: contain;
  flex-shrink: 0;
}

.he-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.he-brand-wordmark {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--he-navy);
  letter-spacing: -0.015em;
}

.he-brand-wordmark span {
  color: var(--he-orange);
}

.he-brand-sub {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--he-amber-text);
  margin-top: 3px;
}

.he-nav {
  display: flex;
  align-items: center;
  gap: clamp(10px, 1.4vw, 22px);
}

.he-nav a {
  text-decoration: none;
  color: var(--he-text-secondary);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.he-nav a:hover,
.he-nav a:focus-visible,
.he-nav a[aria-current="page"] {
  color: var(--he-navy);
  border-bottom-color: var(--he-orange);
}

.he-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.he-btn-outline-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--he-radius-sm);
  border: 1px solid var(--he-border-strong);
  background: var(--he-white);
  color: var(--he-navy);
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.he-btn-outline-sm:hover,
.he-btn-outline-sm:focus-visible {
  background: var(--he-navy-soft);
  border-color: var(--he-navy);
}

.he-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--he-radius-sm);
  border: 1px solid var(--he-border-strong);
  background: var(--he-white);
  color: var(--he-navy);
  cursor: pointer;
}

.he-menu-toggle:focus-visible,
.he-nav a:focus-visible,
.he-btn-primary:focus-visible,
.he-btn-secondary:focus-visible,
.he-btn-outline-sm:focus-visible,
.he-category-card:focus-visible {
  outline: 2px solid var(--he-orange);
  outline-offset: 2px;
}

/* Mobile Navigation Drawer */
.he-mobile-drawer {
  display: none;
  background: var(--he-white);
  border-bottom: 1px solid var(--he-border);
  box-shadow: var(--he-shadow-md);
  padding: 16px 24px 24px;
}

.he-mobile-drawer.is-open {
  display: block;
}

.he-mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 16px;
}

.he-mobile-nav-list a {
  display: block;
  padding: 11px 12px;
  border-radius: var(--he-radius-sm);
  text-decoration: none;
  color: var(--he-navy);
  font-weight: 600;
  font-size: 0.94rem;
}

.he-mobile-nav-list a:hover,
.he-mobile-nav-list a[aria-current="page"] {
  background: var(--he-ivory);
  color: var(--he-amber-text);
}

.he-mobile-drawer-footer {
  padding-top: 14px;
  border-top: 1px solid var(--he-border);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Affiliate Disclosure Top Strip */
.he-disclosure-strip {
  background: var(--he-white);
  border-bottom: 1px solid var(--he-border);
  padding: 10px 0;
  font-size: 0.82rem;
  color: var(--he-text-secondary);
}

.he-disclosure-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
}

.he-disclosure-strip strong {
  color: var(--he-navy);
  font-weight: 600;
}

.he-disclosure-link {
  color: var(--he-amber-text);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

/* Breadcrumbs */
.he-breadcrumb-bar {
  padding: 16px 0 0;
}

.he-breadcrumb-list {
  list-style: none;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.83rem;
  color: var(--he-text-muted);
}

.he-breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.he-breadcrumb-list li + li::before {
  content: "/";
  color: #94A3B8;
}

.he-breadcrumb-list a {
  color: var(--he-text-secondary);
  text-decoration: none;
}

.he-breadcrumb-list a:hover {
  color: var(--he-navy);
  text-decoration: underline;
}

.he-breadcrumb-list [aria-current="page"] {
  color: var(--he-navy);
  font-weight: 600;
}

/* Hero Sections */
.he-hero {
  padding: clamp(40px, 6vw, 76px) 0 clamp(48px, 6vw, 80px);
  background: linear-gradient(180deg, var(--he-ivory) 0%, var(--he-white) 100%);
  border-bottom: 1px solid var(--he-border);
}

.he-hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.he-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--he-amber-text);
  background: var(--he-orange-tint);
  border: 1px solid var(--he-orange-border);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.he-hero-title {
  font-size: clamp(2rem, 3.6vw, 2.85rem);
  line-height: 1.18;
  font-weight: 800;
  color: var(--he-navy);
  letter-spacing: -0.025em;
  margin-bottom: 18px;
}

.he-hero-lead {
  font-size: clamp(1.02rem, 1.3vw, 1.14rem);
  line-height: 1.72;
  color: var(--he-text-secondary);
  margin-bottom: 26px;
  max-width: 640px;
}

.he-hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.he-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--he-navy);
  color: #FFFFFF;
  padding: 13px 24px;
  border-radius: var(--he-radius-sm);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s ease, transform 0.18s ease;
}

.he-btn-primary:hover {
  background: var(--he-navy-mid);
  transform: translateY(-1px);
}

.he-btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--he-white);
  color: var(--he-navy);
  border: 1px solid var(--he-border-strong);
  padding: 12px 22px;
  border-radius: var(--he-radius-sm);
  font-size: 0.94rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.he-btn-secondary:hover {
  background: var(--he-ivory);
  border-color: var(--he-navy);
}

.he-trust-pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--he-border);
}

.he-trust-pillar {
  font-size: 0.83rem;
  line-height: 1.45;
  color: var(--he-text-secondary);
}

.he-trust-pillar strong {
  display: block;
  color: var(--he-navy);
  font-weight: 700;
  margin-bottom: 2px;
}

.he-hero-visual-card {
  background: var(--he-white);
  border: 1px solid var(--he-border);
  border-radius: var(--he-radius-lg);
  padding: 22px;
  box-shadow: var(--he-shadow-md);
}

.he-hero-visual-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--he-radius-sm);
}

.he-figure-caption {
  margin-top: 12px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--he-text-muted);
}

/* Sections */
.he-section {
  padding: clamp(52px, 6.5vw, 84px) 0;
}

.he-section-white {
  background-color: var(--he-white);
  border-top: 1px solid var(--he-border);
  border-bottom: 1px solid var(--he-border);
}

.he-section-ivory {
  background-color: var(--he-ivory);
}

.he-section-navy {
  background-color: var(--he-navy);
  color: #F8FAFC;
}

.he-section-header {
  max-width: 740px;
  margin-bottom: 40px;
}

.he-section-header-split {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.he-section-title {
  font-size: clamp(1.55rem, 2.5vw, 2.05rem);
  line-height: 1.24;
  font-weight: 800;
  color: var(--he-navy);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.he-section-navy .he-section-title {
  color: #FFFFFF;
}

.he-section-sub {
  font-size: 1rem;
  line-height: 1.68;
  color: var(--he-text-secondary);
}

.he-section-navy .he-section-sub {
  color: #CBD5E1;
}

/* Four Category Cards */
.he-category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.he-category-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--he-white);
  border: 1px solid var(--he-border);
  border-radius: var(--he-radius-lg);
  padding: 28px;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--he-shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.he-category-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--he-shadow-hover);
  border-color: var(--he-navy);
}

.he-category-card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  max-height: 220px;
  overflow: hidden;
  border-radius: var(--he-radius-md);
  margin-bottom: 20px;
  background: var(--he-ivory);
}

.he-category-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.he-category-card:hover .he-category-card-img {
  transform: scale(1.03);
}

.he-category-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.he-category-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--he-radius-md);
  background: var(--he-navy-soft);
  color: var(--he-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.he-category-tag {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--he-teal-clinical);
  background: var(--he-teal-soft);
  padding: 4px 10px;
  border-radius: 999px;
}

.he-category-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--he-navy);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.he-category-desc {
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--he-text-secondary);
  margin-bottom: 18px;
}

.he-category-topics {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.he-category-topics li {
  font-size: 0.78rem;
  color: var(--he-text-secondary);
  background: var(--he-ivory);
  border: 1px solid var(--he-border);
  padding: 4px 10px;
  border-radius: 6px;
}

.he-category-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--he-amber-text);
  margin-top: auto;
}

/* Guide & Article Cards */
.he-guides-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.he-guide-card {
  display: flex;
  flex-direction: column;
  background: var(--he-white);
  border: 1px solid var(--he-border);
  border-radius: var(--he-radius-lg);
  padding: 26px;
  box-shadow: var(--he-shadow-sm);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

a.he-guide-card {
  text-decoration: none;
  color: inherit;
}

a.he-guide-card:hover {
  border-color: var(--he-navy);
  box-shadow: var(--he-shadow-hover);
}

.he-guide-meta-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.he-badge-category {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--he-navy);
  background: var(--he-navy-soft);
  padding: 4px 9px;
  border-radius: 5px;
}

.he-badge-status {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--he-amber-text);
  background: var(--he-orange-tint);
  border: 1px solid var(--he-orange-border);
  padding: 3px 9px;
  border-radius: 999px;
}

.he-badge-published {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--he-teal-clinical);
  background: var(--he-teal-soft);
  padding: 3px 9px;
  border-radius: 999px;
}

.he-guide-title {
  font-size: 1.16rem;
  line-height: 1.38;
  font-weight: 700;
  color: var(--he-navy);
  margin-bottom: 12px;
}

.he-guide-summary {
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--he-text-secondary);
  margin-bottom: 20px;
  flex-grow: 1;
}

.he-guide-footer {
  padding-top: 14px;
  border-top: 1px solid var(--he-border);
  font-size: 0.8rem;
  color: var(--he-text-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.he-guide-author {
  font-weight: 600;
  color: var(--he-text-secondary);
}

/* Latest Articles Feed List */
.he-latest-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.he-latest-item {
  background: var(--he-white);
  border: 1px solid var(--he-border);
  border-radius: var(--he-radius-md);
  padding: 22px 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.he-latest-item-title {
  font-size: 1.08rem;
  font-weight: 700;
  color: var(--he-navy);
  margin: 6px 0;
}

.he-latest-item-desc {
  font-size: 0.9rem;
  color: var(--he-text-secondary);
  line-height: 1.6;
}

.he-latest-item-aside {
  text-align: right;
  font-size: 0.82rem;
  color: var(--he-text-muted);
  min-width: 170px;
}

/* Methodology Two-Stage Framework */
.he-methodology-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 32px;
  align-items: start;
}

.he-stage-card {
  background: var(--he-white);
  border: 1px solid var(--he-border);
  border-radius: var(--he-radius-lg);
  padding: 28px;
  box-shadow: var(--he-shadow-sm);
}

.he-stage-card + .he-stage-card {
  margin-top: 20px;
}

.he-stage-label {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  padding: 4px 10px;
  border-radius: 5px;
  margin-bottom: 12px;
}

.he-stage-label-gate {
  background: #FEF2F2;
  color: #991B1B;
  border: 1px solid #FECACA;
}

.he-stage-label-rubric {
  background: var(--he-navy-soft);
  color: var(--he-navy);
  border: 1px solid #CBD5E1;
}

.he-stage-title {
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--he-navy);
  margin-bottom: 10px;
}

.he-gate-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.he-gate-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--he-text-secondary);
}

.he-gate-check {
  color: var(--he-teal-clinical);
  font-weight: 800;
  flex-shrink: 0;
  margin-top: 1px;
}

.he-rubric-rows {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 18px;
}

.he-rubric-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 5px;
}

.he-rubric-criterion {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--he-navy);
}

.he-rubric-points {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--he-amber-text);
  white-space: nowrap;
}

.he-rubric-bar {
  width: 100%;
  height: 7px;
  background: #EDF2F7;
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 5px;
}

.he-rubric-fill {
  height: 100%;
  background: var(--he-navy);
  border-radius: 999px;
}

.he-rubric-desc {
  font-size: 0.82rem;
  color: var(--he-text-muted);
  line-height: 1.5;
}

/* Category Hub Specific Components */
.he-hub-overview-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: start;
}

.he-checklist-card {
  background: var(--he-white);
  border: 1px solid var(--he-border);
  border-left: 4px solid var(--he-navy);
  border-radius: var(--he-radius-md);
  padding: 26px;
}

.he-checklist-card h3 {
  font-size: 1.14rem;
  color: var(--he-navy);
  margin-bottom: 12px;
}

.he-notice-phase1 {
  background: var(--he-ivory-warm);
  border: 1px solid var(--he-border-strong);
  border-radius: var(--he-radius-md);
  padding: 22px 26px;
  font-size: 0.92rem;
  color: var(--he-text-secondary);
  line-height: 1.65;
}

.he-notice-phase1 strong {
  color: var(--he-navy);
}

/* Disclosures & Compliance Cards */
.he-disclosures-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.he-disclosure-box {
  background: var(--he-white);
  border: 1px solid var(--he-border);
  border-radius: var(--he-radius-md);
  padding: 26px;
}

.he-disclosure-box h3 {
  font-size: 1.06rem;
  font-weight: 700;
  color: var(--he-navy);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.he-disclosure-box p {
  font-size: 0.89rem;
  line-height: 1.68;
  color: var(--he-text-secondary);
}

.he-disclosure-box p + p {
  margin-top: 10px;
}

.he-amazon-quote {
  background: var(--he-ivory);
  border-left: 3px solid var(--he-orange);
  padding: 10px 14px;
  font-weight: 600;
  color: var(--he-navy);
  margin: 10px 0 12px;
  border-radius: 0 6px 6px 0;
}

/* Contact & Return Strip */
.he-contact-banner {
  background: var(--he-white);
  border: 1px solid var(--he-border);
  border-radius: var(--he-radius-lg);
  padding: 32px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
  box-shadow: var(--he-shadow-sm);
}

.he-contact-details-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--he-text-secondary);
}

.he-contact-details-list a {
  color: var(--he-navy);
  font-weight: 600;
  text-decoration: none;
}

.he-contact-details-list a:hover {
  text-decoration: underline;
}

/* Footer */
.he-footer {
  background: var(--he-navy-deep);
  color: #CBD5E1;
  padding: 56px 0 32px;
  font-size: 0.88rem;
}

.he-footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.1fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.he-footer-brand {
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.he-footer-brand span {
  color: var(--he-orange);
}

.he-footer-sub {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #FDBA74;
  font-weight: 700;
  margin-bottom: 14px;
}

.he-footer h3,
.he-footer h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.he-footer ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.he-footer a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color 0.18s ease;
}

.he-footer a:hover {
  color: #FFFFFF;
  text-decoration: underline;
}

.he-footer-legal {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  line-height: 1.65;
  color: #94A3B8;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.he-footer-legal strong {
  color: #E2E8F0;
}

.he-footer-bottom {
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: #94A3B8;
}

/* ==========================================================================
   Reusable Educational Article Template Styles (Prepared for Step 3 Guides)
   ========================================================================== */
.he-article-header {
  padding: 36px 0 40px;
  background: var(--he-white);
  border-bottom: 1px solid var(--he-border);
}

.he-article-title {
  font-size: clamp(1.85rem, 3.2vw, 2.55rem);
  line-height: 1.22;
  font-weight: 800;
  color: var(--he-navy);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.he-article-intro {
  font-size: 1.1rem;
  line-height: 1.72;
  color: var(--he-text-secondary);
  max-width: 760px;
  margin-bottom: 22px;
}

.he-article-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.84rem;
  color: var(--he-text-muted);
  padding-top: 16px;
  border-top: 1px solid var(--he-border);
}

.he-article-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  padding: 44px 0 72px;
}

.he-toc-card {
  position: sticky;
  top: 104px;
  background: var(--he-white);
  border: 1px solid var(--he-border);
  border-radius: var(--he-radius-md);
  padding: 20px;
}

.he-toc-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--he-navy);
  margin-bottom: 12px;
}

.he-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.he-toc-list a {
  display: block;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--he-text-secondary);
  text-decoration: none;
  padding-left: 10px;
  border-left: 2px solid transparent;
}

.he-toc-list a:hover,
.he-toc-list a.is-active {
  color: var(--he-navy);
  font-weight: 600;
  border-left-color: var(--he-orange);
}

.he-prose {
  background: var(--he-white);
  border: 1px solid var(--he-border);
  border-radius: var(--he-radius-lg);
  padding: clamp(24px, 4vw, 48px);
}

.he-prose h2 {
  font-size: 1.48rem;
  font-weight: 700;
  color: var(--he-navy);
  margin: 36px 0 14px;
  scroll-margin-top: 108px;
}

.he-prose h2:first-child {
  margin-top: 0;
}

.he-prose h3 {
  font-size: 1.16rem;
  font-weight: 700;
  color: var(--he-navy);
  margin: 26px 0 10px;
}

.he-prose h4 {
  font-size: 1.03rem;
  font-weight: 700;
  color: var(--he-navy);
  margin: 20px 0 8px;
}

.he-prose code {
  font-size: 0.86em;
  background: var(--he-ivory);
  border: 1px solid var(--he-border);
  border-radius: 4px;
  padding: 1px 5px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.he-prose p {
  margin-bottom: 16px;
  color: var(--he-text);
}

.he-prose ul,
.he-prose ol {
  margin: 0 0 18px 22px;
}

.he-prose li {
  margin-bottom: 8px;
}

.he-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--he-border);
  border-radius: var(--he-radius-sm);
}

.he-comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 540px;
}

.he-comparison-table th {
  background: var(--he-navy);
  color: #FFFFFF;
  text-align: left;
  padding: 12px 16px;
  font-weight: 600;
}

.he-comparison-table td {
  padding: 12px 16px;
  border-top: 1px solid var(--he-border);
  vertical-align: top;
}

.he-comparison-table tr:nth-child(even) td {
  background: var(--he-ivory);
}

.he-callout-safety {
  background: var(--he-safety-bg);
  border-left: 4px solid var(--he-safety-border);
  padding: 18px 20px;
  border-radius: 0 var(--he-radius-sm) var(--he-radius-sm) 0;
  margin: 24px 0;
  color: var(--he-safety-text);
  font-size: 0.92rem;
}

.he-callout-clinical {
  background: var(--he-teal-soft);
  border-left: 4px solid var(--he-teal-clinical);
  padding: 18px 20px;
  border-radius: 0 var(--he-radius-sm) var(--he-radius-sm) 0;
  margin: 24px 0;
  color: var(--he-text);
  font-size: 0.92rem;
}

.he-figure {
  margin: 28px 0;
  background: var(--he-ivory);
  border: 1px solid var(--he-border);
  border-radius: var(--he-radius-md);
  padding: 20px;
}

.he-figure img {
  width: 100%;
  height: auto;
  display: block;
}

.he-references {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--he-border);
  font-size: 0.86rem;
  color: var(--he-text-secondary);
}

/* ==========================================================================
   Unpublished Future Product Infrastructure (Hidden in Phase 1)
   ========================================================================== */
.he-unpublished,
.he-product-slot[hidden] {
  display: none !important;
}

.he-product-card-future {
  background: var(--he-white);
  border: 1px solid var(--he-border);
  border-radius: var(--he-radius-md);
  padding: 24px;
}

/* ==========================================================================
   Health Essentials Product Evaluation Card & Elements
   ========================================================================== */
.he-product-card {
  background: var(--he-white);
  border: 1px solid var(--he-border);
  border-radius: var(--he-radius-lg);
  padding: 28px;
  margin: 32px 0;
  box-shadow: var(--he-shadow-md);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.he-product-card:hover {
  border-color: var(--he-border-strong);
  box-shadow: var(--he-shadow-hover);
}

.he-product-header {
  border-bottom: 1px solid var(--he-border);
  padding-bottom: 18px;
  margin-bottom: 22px;
}

.he-product-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}

.he-product-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--he-navy-soft);
  color: var(--he-navy);
}

.he-product-badge-orange {
  background: var(--he-orange-tint);
  color: var(--he-amber-text);
  border: 1px solid var(--he-orange-border);
}

.he-product-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--he-navy);
  line-height: 1.3;
  margin: 0 0 8px 0;
}

.he-product-model-meta {
  font-size: 0.85rem;
  color: var(--he-text-secondary);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.he-product-model-meta span strong {
  color: var(--he-text);
}

.he-product-specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.he-product-spec-item {
  background: var(--he-ivory);
  border: 1px solid var(--he-border);
  border-radius: var(--he-radius-sm);
  padding: 12px 16px;
}

.he-product-spec-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--he-text-muted);
  margin-bottom: 4px;
}

.he-product-spec-value {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--he-navy);
}

.he-product-pricing-box {
  background: var(--he-navy-soft);
  border-left: 4px solid var(--he-navy);
  border-radius: var(--he-radius-sm);
  padding: 16px 20px;
  margin-bottom: 22px;
}

.he-product-pricing-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}

.he-product-price-item {
  font-size: 0.88rem;
  color: var(--he-text-secondary);
}

.he-product-price-item strong {
  font-size: 1.15rem;
  color: var(--he-navy);
}

.he-product-price-disclaimer {
  font-size: 0.78rem;
  color: var(--he-text-muted);
  margin-top: 8px;
  line-height: 1.45;
}

.he-product-qualifications {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.he-product-notice {
  border-radius: var(--he-radius-sm);
  padding: 14px 18px;
  font-size: 0.86rem;
  line-height: 1.55;
}

.he-product-notice-warranty {
  background: #F8FAFC;
  border-left: 4px solid #64748B;
  color: #334155;
}

.he-product-notice-validation {
  background: var(--he-teal-soft);
  border-left: 4px solid var(--he-teal-clinical);
  color: #134E4A;
}

.he-product-notice-medical {
  background: var(--he-safety-bg);
  border-left: 4px solid var(--he-safety-border);
  color: var(--he-safety-text);
}

.he-product-cta-bar {
  border-top: 1px solid var(--he-border);
  padding-top: 22px;
  margin-top: 20px;
  text-align: center;
}

.he-product-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 30px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--he-radius-sm);
  box-shadow: 0 2px 8px rgba(230, 126, 34, 0.25);
  transition: background-color 0.18s ease, transform 0.15s ease;
}

.he-product-cta:hover {
  transform: translateY(-1px);
}

.he-product-affiliate-note {
  font-size: 0.8rem;
  color: var(--he-text-secondary);
  line-height: 1.5;
  margin-top: 14px;
  margin-bottom: 0;
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.he-product-sources {
  background: var(--he-ivory);
  border: 1px solid var(--he-border);
  border-radius: var(--he-radius-sm);
  padding: 14px 16px;
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--he-text-secondary);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.he-product-sources ul {
  margin: 6px 0 0 18px;
}

.he-product-sources li {
  margin-bottom: 4px;
}

/* ==========================================================================
   Accessible Static Anatomical Diagram & Interactive Checklist
   ========================================================================== */
.he-route-diagram {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.he-route-origin {
  background: var(--he-navy);
  color: #FFFFFF;
  text-align: center;
  padding: 14px 18px;
  border-radius: var(--he-radius-sm);
  font-weight: 700;
  font-size: 0.96rem;
  letter-spacing: -0.01em;
}

.he-route-connector {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 24px;
  position: relative;
}

.he-route-connector::before {
  content: "";
  width: 2px;
  height: 100%;
  background: var(--he-orange);
}

.he-route-branches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.he-route-group {
  background: var(--he-white);
  border: 1px solid var(--he-border);
  border-radius: var(--he-radius-sm);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.he-route-group-core {
  border-top: 3px solid var(--he-teal-clinical);
}

.he-route-group-surface {
  border-top: 3px solid var(--he-orange);
}

.he-route-group-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--he-navy);
  padding-bottom: 8px;
  border-bottom: 1px solid var(--he-border);
  margin: 0;
}

.he-route-list {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.he-route-item {
  background: var(--he-ivory);
  border: 1px solid var(--he-border);
  border-radius: 6px;
  padding: 10px 12px;
  margin: 0 !important;
  font-size: 0.88rem;
  line-height: 1.48;
  color: var(--he-text);
}

.he-route-item strong {
  display: block;
  color: var(--he-navy);
  font-weight: 700;
  margin-bottom: 2px;
}

.he-route-item span {
  color: var(--he-text-secondary);
  font-size: 0.84rem;
}

.he-checklist {
  list-style: none !important;
  margin: 16px 0 22px 0 !important;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.he-checklist li {
  margin: 0 !important;
  background: var(--he-ivory);
  border: 1px solid var(--he-border);
  border-radius: var(--he-radius-sm);
  padding: 12px 16px;
}

.he-checklist label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--he-text);
}

.he-checklist input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--he-navy);
  cursor: pointer;
}

.he-checklist input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--he-orange);
  outline-offset: 2px;
}

/* ==========================================================================
   Responsive Breakpoints (Tablet & Mobile <= 520px)
   ========================================================================== */
@media (max-width: 1024px) {
  .he-nav,
  .he-header-actions .he-btn-outline-sm {
    display: none;
  }

  .he-menu-toggle {
    display: inline-flex;
  }

  .he-hero-grid,
  .he-methodology-layout,
  .he-hub-overview-grid,
  .he-contact-banner {
    grid-template-columns: 1fr;
  }

  .he-guides-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .he-article-layout {
    grid-template-columns: 1fr;
  }

  .he-toc-card {
    position: static;
  }

  .he-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .he-topbar-inner,
  .he-disclosure-strip-inner {
    flex-wrap: wrap;
  }

  .he-category-grid,
  .he-guides-grid,
  .he-disclosures-grid,
  .he-route-branches {
    grid-template-columns: 1fr;
  }

  .he-trust-pillars {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .he-latest-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .he-latest-item-aside {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .he-container,
  .he-container-narrow {
    padding: 0 16px;
  }

  /* 1. Compact mobile top navy banner */
  .he-topbar {
    padding: 5px 0;
    font-size: 0.72rem;
    line-height: 1.35;
  }

  .he-topbar-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 3px;
  }

  .he-topbar-note {
    display: block;
    line-height: 1.35;
  }

  .he-topbar-pill {
    font-size: 0.62rem;
    padding: 1px 6px;
    margin-right: 5px;
    vertical-align: 1px;
  }

  .he-topbar-return {
    font-size: 0.72rem;
    padding-bottom: 0;
  }

  /* Compact mobile header */
  .he-header-inner {
    min-height: 62px;
  }

  .he-brand-logo {
    height: 36px;
  }

  .he-brand-wordmark {
    font-size: 1.12rem;
  }

  .he-brand-sub {
    font-size: 0.66rem;
    margin-top: 2px;
  }

  .he-menu-toggle {
    width: 38px;
    height: 38px;
  }

  /* 2. Compact mobile transparency disclosure */
  .he-disclosure-strip {
    padding: 6px 0;
    font-size: 0.74rem;
    line-height: 1.38;
  }

  .he-disclosure-strip-inner {
    display: block;
  }

  .he-disclosure-strip-inner > span {
    display: inline;
  }

  .he-disclosure-link {
    display: inline;
    margin-left: 4px;
    font-size: 0.74rem;
  }

  /* 3. Tighter mobile breadcrumb & hero spacing + headline size */
  .he-breadcrumb-bar {
    padding: 10px 0 0;
  }

  .he-breadcrumb-list {
    font-size: 0.76rem;
    gap: 6px;
  }

  .he-hero {
    padding: 16px 0 28px;
  }

  .he-hero-grid {
    gap: 20px;
  }

  .he-kicker {
    font-size: 0.68rem;
    padding: 3px 10px;
    margin-bottom: 10px;
  }

  .he-hero-title {
    font-size: 1.6rem;
    line-height: 1.2;
    margin-bottom: 10px;
  }

  .he-hero-lead {
    font-size: 0.93rem;
    line-height: 1.56;
    margin-bottom: 16px;
  }

  .he-hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 18px;
  }

  .he-btn-primary,
  .he-btn-secondary {
    width: 100%;
    padding: 11px 18px;
    font-size: 0.89rem;
  }

  .he-trust-pillars {
    padding-top: 14px;
    gap: 10px;
  }

  .he-category-card,
  .he-guide-card,
  .he-stage-card,
  .he-disclosure-box,
  .he-contact-banner {
    padding: 20px;
  }

  .he-footer-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .he-product-card {
    padding: 20px 16px;
    margin: 24px 0;
  }

  .he-product-title {
    font-size: 1.22rem;
  }

  .he-product-specs-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .he-product-pricing-grid {
    flex-direction: column;
    gap: 8px;
  }

  .he-product-cta {
    width: 100%;
    padding: 13px 20px;
  }
}
