/* ==========================================================================
   MediByte · Search & Learn ECG Masterclass (/ecg-learn) v38
   Apple Design Award · NEJM Editorial Restraint · Warm Atelier Ivory
   Optical Liquid Glassmorphism · Real 3D Heart Studio · Zero Card-itis
   Strictly Zero Em-Dashes & Tabular SF Pro Sans
   ========================================================================== */

:root {
  --el-bg: #FAF7F2;
  --el-bg-2: #F4EFE6;
  --el-card: #FFFDF9;
  --el-sand: #F5F0E6;
  --el-sand-2: #ECE5D8;
  --el-ink: #16171C;
  --el-ink-2: #4A4640;
  --el-ink-3: #7A746A;
  --el-cobalt: #0E4FE8;
  --el-cobalt-hi: #1A5EF7;
  --el-cobalt-soft: rgba(14, 79, 232, 0.085);
  --el-sage: #159A6E;
  --el-sage-soft: rgba(21, 154, 110, 0.10);
  --el-crimson: #D93628;
  --el-crimson-soft: rgba(217, 54, 40, 0.09);
  --el-ochre: #B97209;
  --el-ochre-soft: rgba(212, 136, 23, 0.11);
  --el-hair: rgba(124, 106, 80, 0.14);
  --el-hair-strong: rgba(124, 106, 80, 0.24);
  --el-shadow-sheet: 0 24px 56px -30px rgba(58, 44, 28, 0.14), 0 2px 10px -4px rgba(58, 44, 28, 0.05);
  --el-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Geist", "Helvetica Neue", sans-serif;
  --el-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Geist", "Helvetica Neue", sans-serif;
  --el-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  background: var(--el-bg);
}

body.ecg-learn-page {
  margin: 0;
  min-height: 100vh;
  background: var(--el-bg);
  color: var(--el-ink);
  font-family: var(--el-font);
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 10px;
  background: var(--el-cobalt);
  color: #FFFFFF;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 600;
  z-index: 999;
}

.skip-link:focus {
  left: 16px;
}

/* ==========================================================================
   1. FROSTED WARM ATELIER HEADER
   ========================================================================== */
.el-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: rgba(250, 247, 242, 0.84);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid var(--el-hair);
}

.el-header__inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(14px, 3vw, 32px);
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.el-brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--el-ink);
}

.brand-mark__icon {
  border-radius: 8px;
  box-shadow: 0 4px 10px -3px rgba(14, 79, 232, 0.22);
}

.brand-mark__word {
  font-family: var(--el-display);
  font-size: 17.5px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--el-ink);
}

.brand-mark__word span {
  color: var(--el-cobalt);
}

.el-brand-sep {
  color: rgba(124, 106, 80, 0.34);
  font-size: 15px;
  font-weight: 300;
}

.el-brand-crumb {
  border: none;
  background: transparent;
  padding: 4px 9px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--el-ink-2);
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.el-brand-crumb:hover {
  background: var(--el-sand);
  color: var(--el-cobalt);
}

.el-mini-search-trigger {
  display: none;
  align-items: center;
  gap: 9px;
  flex: 1;
  max-width: 440px;
  height: 36px;
  padding: 0 11px 0 13px;
  border-radius: 999px;
  border: 1px solid var(--el-hair-strong);
  background: rgba(255, 253, 249, 0.88);
  box-shadow: 0 4px 14px -8px rgba(58, 44, 28, 0.16), inset 0 1px 0 #FFFFFF;
  color: var(--el-ink-2);
  font-family: inherit;
  font-size: 12.8px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

body.is-learning.is-scrolled .el-mini-search-trigger {
  display: flex;
}

.el-mini-search-trigger:hover {
  border-color: rgba(14, 79, 232, 0.42);
}

.el-mini-search-trigger svg {
  color: var(--el-cobalt);
  flex-shrink: 0;
}

.el-mini-search-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  text-align: left;
}

.el-mini-search-trigger kbd {
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--el-sand);
  border: 1px solid var(--el-hair);
  font-family: inherit;
  font-size: 10.8px;
  font-weight: 700;
  color: var(--el-ink-3);
}

.el-header__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.el-nav-link {
  padding: 6px 12px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 13.2px;
  font-weight: 600;
  color: var(--el-ink-2);
  transition: background 0.16s ease, color 0.16s ease;
}

.el-nav-link:hover {
  background: var(--el-sand);
  color: var(--el-ink);
}

.el-nav-cta {
  padding: 7px 15px;
  border-radius: 999px;
  text-decoration: none;
  font-size: 12.8px;
  font-weight: 700;
  color: #FFFFFF;
  background: var(--el-cobalt);
  box-shadow: 0 6px 16px -6px rgba(14, 79, 232, 0.46);
  transition: transform 0.18s var(--el-ease), background 0.18s ease;
}

.el-nav-cta:hover {
  background: var(--el-cobalt-hi);
  transform: translateY(-1px);
}

.el-read-progress {
  position: absolute;
  left: 0;
  bottom: -1px;
  height: 2px;
  width: 0%;
  background: var(--el-cobalt);
  transition: width 0.08s linear;
}

/* ==========================================================================
   2. ACT 0: SERENE APPLE LIQUID GLASSMORPHISM SEARCH SANCTUARY
   ========================================================================== */
.el-hero {
  position: relative;
  padding: clamp(38px, 5vw, 62px) clamp(16px, 3vw, 32px) clamp(44px, 5vw, 68px);
  background: linear-gradient(180deg, #FAF7F2 0%, #F7F2EA 100%);
  border-bottom: 1px solid var(--el-hair);
  overflow: visible;
}

body.is-learning .el-hero {
  padding: 16px clamp(16px, 3vw, 32px) 18px;
  background: #FAF7F2;
}

.el-hero__sketch-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-image: url("/assets/img/atelier/hero-parchment-atelier.jpg");
  background-repeat: no-repeat;
  background-position: center 8px;
  background-size: min(1720px, 108%) auto;
  mix-blend-mode: multiply;
  opacity: 0.66;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.92) 14%, rgba(0, 0, 0, 0.72) 56%, transparent 94%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.92) 14%, rgba(0, 0, 0, 0.72) 56%, transparent 94%);
}

.el-hero__sketch-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 40% 62% at 50% 24%, rgba(250, 247, 242, 0.97) 0%, rgba(250, 247, 242, 0.84) 58%, transparent 100%);
  pointer-events: none;
}

body.is-learning .el-hero__sketch-art {
  display: none;
}

.el-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 1120px;
  margin: 0 auto;
}

.el-hero__intro {
  max-width: 740px;
  margin: 0 auto 30px;
  text-align: center;
}

body.is-learning .el-hero__intro,
body.is-learning .el-quick-wrap,
body.is-learning .el-atelier-bento,
body.is-learning .el-directory {
  display: none !important;
}

/* Whisper-Clean Editorial Kicker (Zero Boxy SaaS Pill!) */
.el-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.10em;
  color: var(--el-ink-3);
}

.el-visor-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 26px;
  height: 17px;
  border-radius: 999px;
  background: radial-gradient(circle at 50% 25%, #1D2E52 0%, #070B16 80%);
}

.el-visor-eye {
  width: 5.5px;
  height: 3.5px;
  border-top: 1.8px solid #5CE1E6;
  border-left: 1.3px solid #5CE1E6;
  border-right: 1.3px solid #5CE1E6;
  border-radius: 999px 999px 0 0;
}

.el-hero__title {
  margin: 0 0 14px;
  font-family: var(--el-display);
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.044em;
  color: var(--el-ink);
}

/* Pure Solid Electric Royal Cobalt (Zero Cheap Rainbow Gradients!) */
.el-hero__title .payoff {
  color: var(--el-cobalt);
}

.el-hero__lead {
  margin: 0 auto;
  max-width: 610px;
  font-size: clamp(15.5px, 1.35vw, 17.5px);
  line-height: 1.56;
  color: var(--el-ink-2);
  font-weight: 400;
}

/* ==========================================================================
   OPTICAL APPLE LIQUID GLASSMORPHISM SEARCH BAR
   ========================================================================== */
.el-search-shell {
  position: relative;
  max-width: 740px;
  margin: 0 auto;
  z-index: 40;
}

body.is-learning .el-search-shell {
  max-width: 880px;
}

.el-glass-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 68px;
  padding: 8px 9px 8px 18px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 254, 251, 0.78) 0%, rgba(252, 248, 241, 0.66) 100%);
  -webkit-backdrop-filter: blur(36px) saturate(210%);
  backdrop-filter: blur(36px) saturate(210%);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow:
    0 26px 64px -22px rgba(45, 34, 20, 0.19),
    0 6px 20px -10px rgba(14, 79, 232, 0.12),
    0 0 0 1px rgba(124, 106, 80, 0.14),
    inset 0 1.5px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(124, 106, 80, 0.06);
  transition: box-shadow 0.28s var(--el-ease), border-color 0.24s ease, transform 0.24s var(--el-ease);
}

/* Delicate Specular Optical Glass Rim Reflection */
.el-glass-bar::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 28px;
  right: 28px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.95) 30%, rgba(255, 255, 255, 0.95) 70%, transparent);
  pointer-events: none;
}

body.is-learning .el-glass-bar {
  height: 52px;
  padding: 5px 6px 5px 15px;
}

.el-glass-bar:focus-within {
  background: rgba(255, 253, 249, 0.90);
  border-color: rgba(14, 79, 232, 0.44);
  box-shadow:
    0 30px 72px -20px rgba(14, 79, 232, 0.22),
    0 0 0 4px rgba(14, 79, 232, 0.10),
    inset 0 1.5px 0 #FFFFFF;
  transform: translateY(-1px);
}

.el-glass-bar__icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--el-cobalt);
  flex-shrink: 0;
}

.el-glass-bar__input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font-family: inherit;
  font-size: 16px;
  font-weight: 450;
  color: var(--el-ink);
  letter-spacing: -0.012em;
}

body.is-learning .el-glass-bar__input {
  font-size: 14.5px;
}

.el-glass-bar__input::placeholder {
  color: var(--el-ink-3);
}

/* Subtle Live Animated Heartbeat Wave Inside Glass Bar */
.el-glass-pulse {
  display: inline-flex;
  align-items: center;
  color: rgba(14, 79, 232, 0.42);
  flex-shrink: 0;
  pointer-events: none;
}

.el-pulse-path {
  stroke-dasharray: 84;
  stroke-dashoffset: 84;
  animation: ecgTraceGlow 3.2s ease-in-out infinite;
}

@keyframes ecgTraceGlow {
  0% { stroke-dashoffset: 84; opacity: 0.25; }
  45% { stroke-dashoffset: 0; opacity: 0.95; }
  80% { stroke-dashoffset: 0; opacity: 0.35; }
  100% { stroke-dashoffset: -84; opacity: 0.15; }
}

.el-glass-bar__count {
  font-size: 12px;
  font-weight: 600;
  color: var(--el-ink-3);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding: 0 4px;
  flex-shrink: 0;
}

.el-glass-bar__clear {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: none;
  background: var(--el-sand-2);
  color: var(--el-ink-2);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.el-glass-bar__clear:hover {
  background: var(--el-crimson-soft);
  color: var(--el-crimson);
}

.el-glass-bar__kbd {
  padding: 3px 8px;
  border-radius: 7px;
  background: rgba(245, 240, 230, 0.85);
  border: 1px solid var(--el-hair);
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  color: var(--el-ink-3);
  flex-shrink: 0;
}

/* Sculpted Circular Electric Royal Cobalt Action Button */
.el-glass-bar__go {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(180deg, var(--el-cobalt-hi) 0%, var(--el-cobalt) 100%);
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 22px -8px rgba(14, 79, 232, 0.56), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s var(--el-ease), box-shadow 0.2s ease;
}

body.is-learning .el-glass-bar__go {
  width: 38px;
  height: 38px;
}

.el-glass-bar__go:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 26px -6px rgba(14, 79, 232, 0.66);
}

/* Floating Optical Glass Dropdown with Live Mini-ECG Sparklines */
.el-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  right: 0;
  border-radius: 24px;
  background: rgba(255, 253, 249, 0.96);
  -webkit-backdrop-filter: blur(32px) saturate(200%);
  backdrop-filter: blur(32px) saturate(200%);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 36px 84px -20px rgba(40, 30, 18, 0.26), 0 0 0 1px rgba(124, 106, 80, 0.15);
  overflow: hidden;
  z-index: 80;
}

.el-dropdown__cats {
  display: flex;
  gap: 5px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--el-hair);
  overflow-x: auto;
  scrollbar-width: none;
}

.el-dropdown__cats::-webkit-scrollbar {
  display: none;
}

.el-dcat-pill {
  padding: 5px 11px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--el-ink-2);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.14s ease;
}

.el-dcat-pill:hover {
  background: var(--el-sand);
  color: var(--el-ink);
}

.el-dcat-pill.is-active {
  background: var(--el-ink);
  color: #FFFFFF;
}

.el-dropdown__list {
  max-height: 390px;
  overflow-y: auto;
  padding: 6px;
}

.el-res-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 9px 12px;
  border-radius: 15px;
  border: 1px solid transparent;
  background: transparent;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.14s ease, border-color 0.14s ease;
}

.el-res-item:hover,
.el-res-item.is-focused {
  background: #F5F0E6;
  border-color: rgba(14, 79, 232, 0.18);
}

/* Live Miniature Calibrated ECG Waveform Sparkline Inside Every Search Row! */
.el-res-spark {
  width: 66px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(214, 72, 64, 0.22);
  background: #FFF9F7;
  overflow: hidden;
  flex-shrink: 0;
}

.el-res-spark canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.el-res-copy {
  flex: 1;
  min-width: 0;
}

.el-res-copy strong {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14.2px;
  font-weight: 650;
  color: var(--el-ink);
  letter-spacing: -0.015em;
}

.el-res-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--el-cobalt);
}

.el-res-dot.is-danger { background: var(--el-crimson); }
.el-res-dot.is-warn { background: var(--el-ochre); }
.el-res-dot.is-teal { background: var(--el-sage); }

.el-res-copy small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--el-ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.el-res-tag {
  font-size: 11px;
  font-weight: 650;
  color: var(--el-ink-3);
  white-space: nowrap;
  flex-shrink: 0;
}

.el-res-tag.is-urgent {
  color: #B42318;
}

.el-dropdown__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 16px;
  border-top: 1px solid var(--el-hair);
  background: rgba(245, 240, 230, 0.72);
  font-size: 11.2px;
  color: var(--el-ink-3);
}

/* Whisper-Clean Single-Line Editorial Suggestions (Zero Chunky Pill Clutter!) */
.el-quick-wrap {
  margin: 18px auto 38px;
  max-width: 820px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.el-quick-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--el-ink-3);
}

.el-quick-links {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 14px;
}

.el-qlink {
  position: relative;
  border: none;
  background: transparent;
  padding: 3px 0;
  font-family: inherit;
  font-size: 13px;
  font-weight: 550;
  color: var(--el-ink-2);
  cursor: pointer;
  border-bottom: 1px solid rgba(124, 106, 80, 0.24);
  transition: color 0.16s ease, border-color 0.16s ease;
}

.el-qlink:hover {
  color: var(--el-cobalt);
  border-bottom-color: var(--el-cobalt);
}

/* ==========================================================================
   3. MEDIBYTE iOS ATELIER DISCOVERY BENTO (Hero Sanctuary Showcase)
   ========================================================================== */
.el-atelier-bento {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 22px;
  align-items: stretch;
}

.el-bento-card {
  background: var(--el-card);
  border: 1px solid var(--el-hair);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--el-shadow-sheet);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.el-bento-desk__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.el-bento-title {
  margin: 0;
  font-family: var(--el-display);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.032em;
  line-height: 1.1;
  color: var(--el-ink);
}

.el-bento-sub {
  display: block;
  margin-top: 3px;
  font-size: 13.2px;
  color: var(--el-ink-3);
}

.el-meta-tag {
  font-size: 10.2px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--el-cobalt);
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--el-cobalt-soft);
  white-space: nowrap;
}

.el-desk-stage {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #FAF7F2;
  border: 1px solid var(--el-hair);
  padding-bottom: 58px;
}

.el-desk-art {
  width: 100%;
  height: 210px;
  object-fit: cover;
  object-position: center 22%;
  display: block;
}

.el-glass-sheet {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 10px;
  padding: 9px 15px 12px;
  border-radius: 17px;
  background: rgba(255, 253, 249, 0.88);
  -webkit-backdrop-filter: blur(18px) saturate(165%);
  backdrop-filter: blur(18px) saturate(165%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow: 0 14px 32px -14px rgba(58, 44, 28, 0.18), 0 0 0 1px rgba(124, 106, 80, 0.12);
}

.el-glass-grabber {
  display: block;
  width: 32px;
  height: 3.5px;
  border-radius: 999px;
  background: rgba(124, 106, 80, 0.26);
  margin: 0 auto 8px;
}

.el-glass-row {
  display: flex;
  align-items: baseline;
  gap: 9px;
  margin-bottom: 8px;
}

.el-glass-time {
  font-size: 11px;
  font-weight: 700;
  color: var(--el-cobalt);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.el-glass-title {
  font-size: 13.8px;
  font-weight: 650;
  color: var(--el-ink);
  letter-spacing: -0.014em;
  line-height: 1.3;
}

.el-glass-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--el-hair);
}

.el-glass-action {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: none;
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: 12.8px;
  font-weight: 650;
  color: var(--el-cobalt);
  cursor: pointer;
}

.el-glass-action:hover span {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.el-chev {
  font-size: 18px;
  font-weight: 400;
  color: #8A8377;
  line-height: 1;
  flex-shrink: 0;
}

.el-mastery-card {
  margin-top: auto;
  padding: 13px 15px;
  border-radius: 16px;
  background: #F6F1E8;
  border: 1px solid var(--el-hair);
}

.el-mastery-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.el-mastery-left {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--el-ink);
}

.el-bars-ico {
  display: inline-flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 13px;
}

.el-bars-ico i {
  display: block;
  width: 3px;
  border-radius: 2px;
  background: #5D6472;
}

.el-bars-ico i:nth-child(1) { height: 5px; }
.el-bars-ico i:nth-child(2) { height: 9px; }
.el-bars-ico i:nth-child(3) { height: 13px; }

.el-mastery-pct {
  font-size: 13px;
  font-weight: 700;
  color: var(--el-ink);
  font-variant-numeric: tabular-nums;
}

.el-mastery-track {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(124, 106, 80, 0.16);
  overflow: hidden;
}

.el-mastery-track.is-sm {
  height: 5px;
}

.el-mastery-fill {
  height: 100%;
  min-width: 4%;
  border-radius: 999px;
  background: var(--el-cobalt);
  transition: width 0.35s var(--el-ease);
}

/* Right Learning World Specialty Column */
.el-bento-world__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.el-bento-world__head h3 {
  margin: 0;
  font-family: var(--el-display);
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.028em;
  color: var(--el-ink);
}

.el-bento-world__head span {
  font-size: 12.2px;
  color: var(--el-ink-3);
}

.el-cobalt-tile {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(10, 70, 214, 0.38);
  background: linear-gradient(180deg, #1558F4 0%, #0B46D4 100%);
  box-shadow: 0 14px 30px -14px rgba(14, 79, 232, 0.50), inset 0 1px 0 rgba(255, 255, 255, 0.24);
  color: #FFFFFF;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.2s var(--el-ease), box-shadow 0.2s ease;
}

.el-cobalt-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -12px rgba(14, 79, 232, 0.60);
}

.el-cobalt-badge {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.30);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.el-cobalt-copy {
  flex: 1;
  min-width: 0;
}

.el-cobalt-copy strong {
  display: block;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.016em;
}

.el-cobalt-copy small {
  display: block;
  margin-top: 2px;
  font-size: 11.8px;
  color: rgba(255, 255, 255, 0.84);
}

.el-cobalt-tile .el-chev {
  color: rgba(255, 255, 255, 0.88);
}

.el-world-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.el-spec-tile {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border-radius: 17px;
  background: #FAF7F2;
  border: 1px solid var(--el-hair);
  color: var(--el-ink);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.18s var(--el-ease), border-color 0.18s ease, background 0.18s ease;
}

.el-spec-tile:hover {
  transform: translateY(-1px);
  background: #FFFDF9;
  border-color: rgba(14, 79, 232, 0.32);
}

.el-spec-copy {
  flex: 1;
  min-width: 0;
}

.el-spec-micro {
  display: block;
  font-size: 9.6px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--el-cobalt);
  margin-bottom: 2px;
}

.el-spec-copy strong {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.el-spec-copy small {
  display: block;
  margin-top: 2px;
  font-size: 11.6px;
  color: var(--el-ink-3);
}

.el-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.el-ico.is-cobalt  { background: rgba(14, 79, 232, 0.10); color: #0E4FE8; }
.el-ico.is-emerald { background: rgba(21, 154, 110, 0.11); color: #159A6E; }
.el-ico.is-indigo  { background: rgba(84, 70, 220, 0.10); color: #5446DC; }
.el-ico.is-gold    { background: rgba(212, 136, 23, 0.12); color: #B97209; }
.el-ico.is-pearl   { background: rgba(124, 58, 237, 0.10); color: #7C3AED; }
.el-ico.is-crimson { background: rgba(217, 54, 40, 0.10); color: #D93628; }

.el-bento-world__subhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 2px;
}

.el-bento-world__subhead h4 {
  margin: 0;
  font-family: var(--el-display);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--el-ink);
}

.el-browse-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: none;
  background: transparent;
  padding: 4px 8px;
  border-radius: 999px;
  font-family: inherit;
  font-size: 12.2px;
  font-weight: 650;
  color: var(--el-cobalt);
  cursor: pointer;
}

.el-browse-link:hover {
  background: var(--el-cobalt-soft);
}

.el-clin-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.el-clin-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 11px;
  border-radius: 15px;
  background: #FAF7F2;
  border: 1px solid var(--el-hair);
  color: var(--el-ink);
  font-family: inherit;
  font-size: 12.8px;
  font-weight: 650;
  cursor: pointer;
  transition: transform 0.16s var(--el-ease), border-color 0.16s ease, background 0.16s ease;
}

.el-clin-pill .el-ico {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.el-clin-pill .el-chev {
  margin-left: auto;
}

.el-clin-pill:hover {
  transform: translateY(-1px);
  background: #FFFDF9;
  border-color: rgba(14, 79, 232, 0.30);
}

.el-pearls-bar {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 15px;
  background: #FAF7F2;
  border: 1px solid var(--el-hair);
  color: var(--el-ink);
  text-decoration: none;
  transition: transform 0.16s var(--el-ease), border-color 0.16s ease;
}

.el-pearls-bar:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 79, 232, 0.30);
}

.el-pearls-bar .el-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

.el-pearls-bar strong {
  font-size: 13.5px;
  font-weight: 650;
  white-space: nowrap;
}

.el-pearls-sub {
  font-size: 11.8px;
  color: var(--el-ink-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.el-pearls-bar .el-chev {
  margin-left: auto;
}

/* Expandable Directory */
.el-directory {
  margin-top: 22px;
  padding: 22px;
  border-radius: 26px;
  background: var(--el-card);
  border: 1px solid var(--el-hair);
  box-shadow: var(--el-shadow-sheet);
}

.el-directory__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.el-directory__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.el-directory__close {
  padding: 6px 13px;
  border-radius: 999px;
  border: 1px solid var(--el-hair);
  background: var(--el-sand);
  color: var(--el-ink-2);
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

.el-directory__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 11px;
}

.el-dir-card {
  padding: 14px 15px;
  border-radius: 16px;
  border: 1px solid var(--el-hair);
  background: #FAF7F2;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.16s var(--el-ease), border-color 0.16s ease, background 0.16s ease;
}

.el-dir-card:hover {
  transform: translateY(-1px);
  background: #FFFDF9;
  border-color: rgba(14, 79, 232, 0.34);
}

.el-dir-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
}

.el-dir-card__top strong {
  font-size: 14px;
  font-weight: 650;
  color: var(--el-ink);
}

.el-dir-card p {
  margin: 0;
  font-size: 12.2px;
  line-height: 1.45;
  color: var(--el-ink-3);
}

/* ==========================================================================
   4. ACTIVE 7-CHAPTER ARCHITECTURAL EDITORIAL LAYOUT
   Borderless Apple Documentation Rail + Spacious Single-Layer Gallery Sheets
   ========================================================================== */
.el-dossier {
  padding: 28px clamp(14px, 3vw, 32px) 72px;
}

.el-dossier__layout {
  max-width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}

/* Borderless Serene Apple Documentation Rail (Zero Blog Sidebar Box!) */
.el-toc {
  position: sticky;
  top: 80px;
}

.el-toc__rail {
  padding: 4px 0;
}

.el-toc__head {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--el-hair);
  margin-bottom: 14px;
}

.el-toc__head strong {
  display: block;
  margin-top: 3px;
  font-family: var(--el-display);
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.28;
  color: var(--el-ink);
}

.el-toc-mastery {
  margin-bottom: 18px;
}

.el-toc-mastery__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--el-ink-3);
}

.el-toc-mastery__top strong {
  color: var(--el-ink);
  font-variant-numeric: tabular-nums;
}

.el-toc__nav {
  display: flex;
  flex-direction: column;
  border-left: 1.5px solid var(--el-hair);
}

.el-toc__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0 8px 14px;
  margin-left: -1.5px;
  border-left: 2px solid transparent;
  text-decoration: none;
  font-size: 13px;
  font-weight: 550;
  color: var(--el-ink-3);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.el-toc__link span {
  font-size: 10.8px;
  font-weight: 650;
  opacity: 0.7;
  font-variant-numeric: tabular-nums;
}

.el-toc__link:hover {
  color: var(--el-ink);
}

.el-toc__link.is-active {
  color: var(--el-cobalt);
  font-weight: 650;
  border-left-color: var(--el-cobalt);
}

.el-toc__link.is-active span {
  opacity: 1;
}

.el-toc__foot {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--el-hair);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.el-toc__action {
  border: none;
  background: transparent;
  padding: 5px 0;
  text-align: left;
  text-decoration: none;
  font-family: inherit;
  font-size: 12.8px;
  font-weight: 600;
  color: var(--el-ink-2);
  cursor: pointer;
  transition: color 0.15s ease;
}

.el-toc__action.is-primary {
  color: var(--el-cobalt);
}

.el-toc__action:hover {
  color: var(--el-ink);
}

/* Main Stream & Calm Architectural Gallery Sheets */
.el-stream {
  display: flex;
  flex-direction: column;
  gap: 28px;
  min-width: 0;
}

.el-chapter {
  scroll-margin-top: 82px;
  background: var(--el-card);
  border: 1px solid var(--el-hair);
  border-radius: 26px;
  padding: clamp(24px, 3vw, 36px);
  box-shadow: var(--el-shadow-sheet);
}

.el-chapter__eyebrow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.el-ch-meta-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.el-ch-num {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: var(--el-cobalt);
}

.el-micro-tag {
  display: block;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.085em;
  color: var(--el-ink-3);
  margin-bottom: 10px;
}

.el-micro-tag.is-crimson {
  color: var(--el-crimson);
}

.el-acuity-pill {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 10.8px;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: var(--el-cobalt-soft);
  color: var(--el-cobalt);
}

.el-acuity-pill.is-danger { background: var(--el-crimson-soft); color: #B42318; }
.el-acuity-pill.is-warn { background: var(--el-ochre-soft); color: #9A5B04; }
.el-acuity-pill.is-teal { background: var(--el-sage-soft); color: #0F7B58; }

.el-master-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--el-hair-strong);
  background: transparent;
  color: var(--el-ink-2);
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.18s var(--el-ease);
}

.el-master-toggle:hover {
  border-color: var(--el-cobalt);
  color: var(--el-cobalt);
}

.el-master-toggle.is-mastered {
  background: var(--el-sage);
  border-color: var(--el-sage);
  color: #FFFFFF;
}

.el-master-toggle.is-prominent {
  padding: 8px 16px;
  font-size: 13px;
}

.el-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.el-topic-title {
  margin: 0 0 8px;
  font-family: var(--el-display);
  font-size: clamp(28px, 3.2vw, 38px);
  font-weight: 700;
  letter-spacing: -0.038em;
  line-height: 1.08;
  color: var(--el-ink);
}

.el-topic-clue {
  margin: 0;
  max-width: 700px;
  font-size: 15.8px;
  line-height: 1.54;
  color: var(--el-ink-2);
}

.el-cath-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(14, 79, 232, 0.24);
  background: var(--el-cobalt-soft);
  text-decoration: none;
  font-size: 13px;
  font-weight: 650;
  color: var(--el-cobalt);
  white-space: nowrap;
  flex-shrink: 0;
  transition: background 0.16s ease, color 0.16s ease;
}

.el-cath-link:hover {
  background: var(--el-cobalt);
  color: #FFFFFF;
}

/* Signature Dr. MediByte Frosted-Glass 3-Second Recognition Sheet */
.el-rule3s-sheet {
  padding: 11px 20px 18px;
  border-radius: 20px;
  background: linear-gradient(135deg, #FAF7F2 0%, #F1F5FF 100%);
  border: 1px solid rgba(14, 79, 232, 0.16);
  margin-bottom: 24px;
}

.el-rule3s-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--el-cobalt);
  margin-bottom: 8px;
}

.el-rule3s-sheet p {
  margin: 0;
  font-size: 15.6px;
  font-weight: 600;
  line-height: 1.52;
  color: var(--el-ink);
  letter-spacing: -0.012em;
}

/* Open Architectural Hairline-Divided Telemetry Table (Zero Box-in-Box Clutter!) */
.el-vitals-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-top: 1px solid var(--el-hair);
  border-bottom: 1px solid var(--el-hair);
}

.el-vital-cell {
  padding: 14px 14px;
  border-right: 1px solid var(--el-hair);
}

.el-vital-cell:first-child {
  padding-left: 2px;
}

.el-vital-cell:last-child {
  border-right: none;
}

.el-vital-cell span {
  display: block;
  font-size: 9.8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--el-ink-3);
  margin-bottom: 5px;
}

.el-vital-cell strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--el-ink);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
}

/* Chapter Headers */
.el-chapter__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.el-ch-title {
  margin: 4px 0 0;
  font-family: var(--el-display);
  font-size: clamp(21px, 2.2vw, 25px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--el-ink);
}

/* ==========================================================================
   5. CHAPTER 02: APPLE PRO-APP ECG INSTRUMENT CONSOLE
   ========================================================================== */
.el-pro-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 6px 8px;
  border-radius: 16px;
  background: var(--el-sand);
  border: 1px solid var(--el-hair);
  margin-bottom: 14px;
}

.el-seg {
  display: inline-flex;
  padding: 2px;
  border-radius: 11px;
  background: rgba(124, 106, 80, 0.10);
  gap: 2px;
}

.el-seg button {
  padding: 5px 11px;
  border-radius: 9px;
  border: none;
  background: transparent;
  color: var(--el-ink-2);
  font-family: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.el-seg button.is-active {
  background: var(--el-card);
  color: var(--el-ink);
  box-shadow: 0 2px 6px -1px rgba(58, 44, 28, 0.14);
}

.el-dock-divider {
  width: 1px;
  height: 22px;
  background: var(--el-hair-strong);
}

.el-tool-btns {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.el-tool-btn {
  padding: 5px 10px;
  border-radius: 9px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--el-ink-2);
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.14s ease;
}

.el-tool-btn:hover {
  background: rgba(255, 253, 249, 0.72);
  color: var(--el-ink);
}

/* Restrained Charcoal Ink Active State (Zero Electric-Blue Pill Spam!) */
.el-tool-btn.is-active {
  background: var(--el-card);
  border-color: var(--el-hair-strong);
  color: var(--el-cobalt);
  font-weight: 650;
  box-shadow: 0 2px 5px -2px rgba(58, 44, 28, 0.12);
}

.el-scope-frame {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(214, 72, 64, 0.22);
  background: #FFF9F7;
  margin-bottom: 26px;
}

.el-scope-frame.is-compact {
  margin-bottom: 0;
}

.el-scope-frame.is-dark {
  background: #080C17;
  border-color: rgba(92, 225, 230, 0.24);
}

.el-scope-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 9px 16px;
  background: rgba(250, 247, 242, 0.94);
  border-bottom: 1px solid var(--el-hair);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--el-ink-2);
  font-variant-numeric: tabular-nums;
}

.el-scope-frame.is-dark .el-scope-meta {
  background: rgba(10, 16, 30, 0.95);
  border-bottom-color: rgba(255, 255, 255, 0.09);
  color: #CBD5E1;
}

.el-caliper-badge {
  color: var(--el-cobalt);
  font-weight: 650;
}

.el-scope-frame.is-dark .el-caliper-badge {
  color: #5CE1E6;
}

.el-scope-canvas-wrap {
  width: 100%;
  height: 256px;
}

.el-scope-canvas-wrap.is-sm {
  height: 230px;
}

.el-scope-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.el-scope-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 9px 16px;
  background: rgba(250, 247, 242, 0.95);
  border-top: 1px solid var(--el-hair);
  font-size: 11.8px;
  color: var(--el-ink-2);
  font-variant-numeric: tabular-nums;
}

.el-scope-frame.is-dark .el-scope-foot {
  background: rgba(10, 16, 30, 0.95);
  border-top-color: rgba(255, 255, 255, 0.09);
  color: #94A3B8;
}

.el-scope-foot strong {
  color: var(--el-ink);
}

.el-scope-frame.is-dark .el-scope-foot strong {
  color: #F8FAFC;
}

/* Open 2-Column Editorial Split Divided by Single Vertical Hairline (Zero Nested Cards!) */
.el-editorial-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  padding-top: 4px;
}

.el-editorial-col:first-child {
  padding-right: 32px;
  border-right: 1px solid var(--el-hair);
}

.el-criteria-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
}

.el-criteria-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 11px 0;
  border-bottom: 1px solid var(--el-hair);
  font-size: 13.8px;
  line-height: 1.52;
  color: var(--el-ink);
}

.el-criteria-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.el-crit-check {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--el-cobalt-soft);
  color: var(--el-cobalt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.el-focus-prose p {
  margin: 0 0 12px;
  font-size: 14.2px;
  line-height: 1.66;
  color: var(--el-ink-2);
}

.el-focus-prose p:last-child {
  margin-bottom: 0;
}

/* ==========================================================================
   6. CHAPTER 03: MUSEUM-GRADE 3D HEART STUDIO + OPEN CLINICAL SPEC
   ========================================================================== */
.el-heart-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.el-pci-btn {
  padding: 7px 15px;
  border-radius: 999px;
  border: 1px solid rgba(21, 154, 110, 0.34);
  background: var(--el-sage);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 12.2px;
  font-weight: 650;
  cursor: pointer;
  box-shadow: 0 8px 20px -8px rgba(21, 154, 110, 0.50);
  transition: transform 0.16s var(--el-ease), background 0.16s ease;
}

.el-pci-btn:hover {
  transform: translateY(-1px);
  background: #11845E;
}

.el-pci-btn.is-reperfused {
  background: var(--el-ink);
  border-color: var(--el-ink);
  box-shadow: none;
}

.el-heart-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 28px;
  align-items: start;
}

/* Spotless Pearl-Alabaster 3D Heart Studio (Midnight Sapphire Obsidian in Electric Mode) */
.el-heart3d-stage {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--el-hair);
  background: radial-gradient(circle at 50% 42%, #FFFFFF 0%, #FAF7F2 60%, #F1EAE0 100%);
  display: flex;
  flex-direction: column;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.el-heart3d-stage.is-electric {
  background: radial-gradient(circle at 50% 42%, #111F42 0%, #070C1B 68%, #040711 100%);
  border-color: rgba(96, 165, 250, 0.22);
}

.el-heart3d-stage__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--el-hair);
  background: rgba(255, 253, 249, 0.68);
}

.el-heart3d-stage.is-electric .el-heart3d-stage__top {
  background: rgba(8, 15, 32, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.09);
}

.el-stage-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.6px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--el-ink-2);
}

.el-heart3d-stage.is-electric .el-stage-live-badge {
  color: #CBD5E1;
}

.el-theatre-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--el-crimson);
  flex-shrink: 0;
}

.el-heart3d-stage.is-electric .el-theatre-dot {
  background: #4CE0EB;
  box-shadow: 0 0 8px #4CE0EB;
}

.el-theatre-pill {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--el-crimson-soft);
  color: #B42318;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  flex-shrink: 0;
}

.el-theatre-pill.is-reperfused {
  background: var(--el-sage-soft);
  color: #0F7B58;
}

.el-heart3d-stage.is-electric .el-theatre-pill {
  background: rgba(76, 224, 235, 0.14);
  color: #7CEEF5;
}

.el-heart3d-canvas-wrap {
  position: relative;
  width: 100%;
  height: 418px;
}

.el-heart3d-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.el-heart3d-hint {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(255, 253, 249, 0.80);
  border: 1px solid var(--el-hair);
  font-size: 10.8px;
  font-weight: 600;
  color: var(--el-ink-3);
  pointer-events: none;
  white-space: nowrap;
}

.el-heart3d-stage.is-electric .el-heart3d-hint {
  background: rgba(8, 15, 32, 0.72);
  border-color: rgba(255, 255, 255, 0.14);
  color: #94A3B8;
}

.el-heart3d-stage__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-top: 1px solid var(--el-hair);
  background: rgba(255, 253, 249, 0.72);
  font-size: 11.8px;
  color: var(--el-ink-2);
}

.el-heart3d-stage.is-electric .el-heart3d-stage__foot {
  background: rgba(8, 15, 32, 0.74);
  border-top-color: rgba(255, 255, 255, 0.09);
  color: #94A3B8;
}

.el-heart3d-stage__foot strong {
  color: var(--el-ink);
}

.el-heart3d-stage.is-electric .el-heart3d-stage__foot strong {
  color: #F8FAFC;
}

/* Right Column: Companion Visualizer + Clean Hairline Spec List */
.el-heart-copy {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.el-aux-stage {
  border-radius: 18px;
  overflow: hidden;
  background: #FFFDF9;
  border: 1px solid var(--el-hair);
}

.el-aux-stage__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--el-hair);
  background: #FAF7F2;
}

.el-aux-stage__head .el-micro-tag {
  margin: 0;
  color: var(--el-ink-2);
}

.el-aux-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--el-cobalt);
}

.el-aux-canvas-wrap {
  width: 100%;
  height: 196px;
  background: #FFFDF9;
}

.el-aux-canvas-wrap canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Open Architectural Hairline Spec List (Zero Stacked Beige Boxes!) */
.el-spec-list {
  margin: 0;
  padding: 0;
}

.el-spec-row {
  padding: 12px 0;
  border-bottom: 1px solid var(--el-hair);
}

.el-spec-row:first-child {
  padding-top: 0;
}

.el-spec-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.el-spec-row dt {
  font-size: 10.2px;
  font-weight: 700;
  letter-spacing: 0.085em;
  color: var(--el-ink-3);
  margin-bottom: 5px;
}

.el-spec-row dd {
  margin: 0;
  font-size: 13.8px;
  line-height: 1.58;
  color: var(--el-ink-2);
}

.el-spec-row dd.is-strong {
  font-size: 16px;
  font-weight: 700;
  color: var(--el-ink);
  letter-spacing: -0.016em;
}

.el-channels-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--el-hair);
}

.el-chan-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px solid var(--el-hair);
  font-size: 13px;
}

.el-chan-row span {
  font-weight: 650;
  color: var(--el-cobalt);
}

.el-chan-row span.is-danger { color: var(--el-crimson); }
.el-chan-row span.is-warn { color: var(--el-ochre); }
.el-chan-row span.is-teal { color: var(--el-sage); }

/* ==========================================================================
   7. CHAPTER 04: 12 & 15-LEAD SPATIAL FOOTPRINT
   ========================================================================== */
.el-lead-inspect-pill {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--el-sand);
  border: 1px solid var(--el-hair);
  font-size: 12px;
  font-weight: 650;
  color: var(--el-ink);
  font-variant-numeric: tabular-nums;
}

.el-territory-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 0;
  margin-bottom: 16px;
  border-top: 1px solid var(--el-hair);
  border-bottom: 1px solid var(--el-hair);
}

.el-terr-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.el-terr-lbl {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--el-ink-3);
}

.el-terr-lbl.is-direct {
  color: var(--el-crimson);
}

.el-terr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.el-tchip {
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--el-sand);
  border: 1px solid var(--el-hair);
  font-size: 11.8px;
  font-weight: 650;
  color: var(--el-ink);
}

.el-mini12-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.el-ext-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 10px;
  font-size: 10.8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--el-ink-3);
}

.el-mini-ext-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.el-mlead {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--el-hair);
  background: #FFF9F7;
  height: 92px;
  cursor: pointer;
  transition: transform 0.15s var(--el-ease), border-color 0.15s ease, box-shadow 0.15s ease;
}

.el-mlead:hover {
  transform: translateY(-1px);
  border-color: rgba(14, 79, 232, 0.45);
}

.el-mlead.is-selected {
  border-color: var(--el-cobalt);
  box-shadow: 0 0 0 2.5px rgba(14, 79, 232, 0.14);
}

.el-mlead canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.el-mlead__tag {
  position: absolute;
  top: 6px;
  left: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid var(--el-hair);
  font-size: 10.2px;
  font-weight: 700;
  color: var(--el-ink);
  z-index: 2;
}

.el-mlead__st {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 6px;
  border-radius: 6px;
  font-size: 9.8px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  z-index: 2;
}

.el-mlead__st.is-ste { background: rgba(217, 54, 40, 0.90); color: #FFFFFF; }
.el-mlead__st.is-std { background: rgba(14, 79, 232, 0.90); color: #FFFFFF; }

/* ==========================================================================
   8. CHAPTER 05: DIFFERENTIAL DIAGNOSIS & MIMIC STUDIO
   ========================================================================== */
.el-mimic-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.el-ghost-link {
  border: none;
  background: transparent;
  padding: 6px 4px;
  font-family: inherit;
  font-size: 12.6px;
  font-weight: 650;
  color: var(--el-cobalt);
  cursor: pointer;
}

.el-ghost-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.el-mimic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 24px;
  align-items: start;
}

.el-leg-solid { color: #B42318; font-weight: 650; }
.el-leg-dash { color: var(--el-cobalt); font-weight: 650; }

.el-mimic-split-wrap {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--el-hair);
  height: 230px;
}

.el-split-pane {
  position: relative;
  background: #FFF9F7;
  height: 100%;
}

.el-split-pane canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* Refined Frosted-Glass Corner Micro-Labels (No Loud Solid Boxes!) */
.el-split-lbl {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(255, 253, 249, 0.92);
  border: 1px solid var(--el-hair-strong);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--el-ink);
  z-index: 2;
}

.el-split-lbl i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.el-split-lbl.is-active-pat i { background: #C62B1E; }
.el-split-lbl.is-mimic-pat i { background: var(--el-cobalt); }

.el-mimic-notes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Editorial Left-Accent High-Stakes Trap Ribbon */
.el-trap-ribbon {
  padding: 13px 16px;
  border-radius: 14px;
  background: #FFF6F5;
  border: 1px solid rgba(217, 54, 40, 0.18);
  border-left: 3px solid var(--el-crimson);
}

.el-trap-ribbon .el-micro-tag {
  margin-bottom: 5px;
}

.el-trap-ribbon p {
  margin: 0;
  font-size: 13.8px;
  line-height: 1.54;
  color: var(--el-ink);
  font-weight: 500;
}

/* Structured 3-Row Differentiator Table */
.el-diff-matrix {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--el-hair);
  background: var(--el-card);
}

.el-diff-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) minmax(0, 1fr);
  border-bottom: 1px solid var(--el-hair);
}

.el-diff-row:last-child {
  border-bottom: none;
}

.el-diff-row.is-head {
  background: #FAF7F2;
  font-size: 10.2px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.el-diff-cell {
  padding: 10px 12px;
  font-size: 12.4px;
  line-height: 1.46;
  color: var(--el-ink-2);
  border-right: 1px solid var(--el-hair);
}

.el-diff-cell:last-child {
  border-right: none;
}

.el-diff-cell.is-feat {
  font-weight: 650;
  color: var(--el-ink);
  background: rgba(245, 240, 230, 0.40);
}

.el-diff-row.is-head .el-diff-cell.is-a { color: #B42318; }
.el-diff-row.is-head .el-diff-cell.is-b { color: var(--el-cobalt); }

/* ==========================================================================
   9. CHAPTER 06: CONNECTED VISUAL TREATMENT ALGORITHM & SYMMETRIC PHARMA
   ========================================================================== */
.el-rx-summary {
  margin: 0 0 20px;
  font-size: 15.6px;
  line-height: 1.58;
  color: var(--el-ink-2);
}

/* Distinct Non-Redundant Hemodynamic Stability Strip */
.el-triage-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--el-hair);
  margin-bottom: 24px;
}

.el-triage-col {
  padding: 14px 18px;
}

.el-triage-col.is-unstable {
  background: #FFF6F5;
  border-right: 1px solid var(--el-hair);
}

.el-triage-col.is-stable {
  background: #F6F9FF;
}

.el-triage-lbl {
  display: block;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.085em;
  margin-bottom: 5px;
}

.el-triage-col.is-unstable .el-triage-lbl { color: var(--el-crimson); }
.el-triage-col.is-stable .el-triage-lbl { color: var(--el-cobalt); }

.el-triage-col p {
  margin: 0;
  font-size: 13px;
  line-height: 1.48;
  color: var(--el-ink);
}

/* Connected 4-Step Visual Algorithm (Clean Continuous Rail, Zero Curved Top-Border Hooks!) */
.el-pathway-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
  position: relative;
}

.el-flow-step {
  position: relative;
  padding: 16px;
  border-radius: 18px;
  background: #FAF7F2;
  border: 1px solid var(--el-hair);
  display: flex;
  flex-direction: column;
}

.el-flow-step::after {
  content: "›";
  position: absolute;
  right: -12px;
  top: 20px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--el-card);
  border: 1px solid var(--el-hair-strong);
  color: var(--el-cobalt);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
}

.el-flow-step:last-child::after {
  display: none;
}

.el-flow-step__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.el-flow-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--el-cobalt);
  color: #FFFFFF;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.el-flow-step.is-danger .el-flow-num { background: var(--el-crimson); }
.el-flow-step.is-teal .el-flow-num { background: var(--el-sage); }
.el-flow-step.is-warn .el-flow-num { background: var(--el-ochre); }

.el-flow-step__tag {
  font-size: 9.8px;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--el-ink-3);
  text-transform: uppercase;
  line-height: 1.25;
}

.el-flow-step strong {
  display: block;
  font-size: 14.2px;
  font-weight: 700;
  color: var(--el-ink);
  letter-spacing: -0.015em;
  margin-bottom: 6px;
}

.el-flow-step p {
  margin: 0;
  font-size: 12.6px;
  line-height: 1.5;
  color: var(--el-ink-2);
}

/* Auto-Symmetric Medication Grid (Zero Orphan Blank Holes!) */
.el-rx-subhead {
  margin-bottom: 12px;
}

.el-meds-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}

.el-meds-grid[data-count="1"] {
  grid-template-columns: 1fr;
}

.el-meds-grid[data-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.el-med-card {
  padding: 16px;
  border-radius: 18px;
  background: #FAF7F2;
  border: 1px solid var(--el-hair);
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.el-med-card__top {
  display: flex;
  align-items: center;
  gap: 9px;
}

.el-med-ico {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--el-card);
  border: 1px solid var(--el-hair);
  color: var(--el-cobalt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.el-med-card__top strong {
  font-size: 14.4px;
  font-weight: 700;
  color: var(--el-ink);
  letter-spacing: -0.015em;
  flex: 1;
}

.el-med-tag {
  font-size: 10px;
  font-weight: 700;
  color: var(--el-ink-3);
  white-space: nowrap;
}

.el-med-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.el-med-class {
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--el-cobalt-soft);
  color: var(--el-cobalt);
  font-size: 11px;
  font-weight: 650;
}

.el-med-dose {
  padding: 3px 9px;
  border-radius: 7px;
  background: var(--el-sage-soft);
  color: #0F7B58;
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.el-med-card p {
  margin: 0;
  font-size: 12.8px;
  line-height: 1.52;
  color: var(--el-ink-2);
}

/* Crisp Crimson Left-Rail Contraindication Zone */
.el-dng-zone {
  padding: 16px 20px;
  border-radius: 16px;
  background: #FFF6F5;
  border: 1px solid rgba(217, 54, 40, 0.20);
  border-left: 3.5px solid var(--el-crimson);
  margin-bottom: 18px;
}

.el-dng-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 11px;
}

.el-dng-header .el-micro-tag {
  margin: 0;
}

.el-dng-shield {
  color: var(--el-crimson);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.el-dng-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.el-dng-item strong {
  display: block;
  font-size: 13.4px;
  font-weight: 700;
  color: #B42318;
  margin-bottom: 3px;
}

.el-dng-item p {
  margin: 0;
  font-size: 12.6px;
  line-height: 1.48;
  color: var(--el-ink-2);
}

.el-refs-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.el-ref-chip {
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--el-sand);
  border: 1px solid var(--el-hair);
  text-decoration: none;
  font-size: 11.4px;
  font-weight: 600;
  color: var(--el-ink-2);
}

.el-ref-chip:hover {
  border-color: var(--el-cobalt);
  color: var(--el-cobalt);
}

/* ==========================================================================
   10. CHAPTER 07: SELF-CHECK & NEXT PATHWAYS
   ========================================================================== */
.el-quiz-card {
  padding: 20px 22px;
  border-radius: 18px;
  background: #FAF7F2;
  border: 1px solid var(--el-hair);
  margin-bottom: 24px;
}

.el-quiz-q {
  margin: 0 0 14px;
  font-size: 15.8px;
  font-weight: 650;
  line-height: 1.48;
  color: var(--el-ink);
}

.el-quiz-opts {
  display: grid;
  gap: 8px;
}

.el-qopt {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 13px;
  border: 1px solid var(--el-hair);
  background: var(--el-card);
  text-align: left;
  font-family: inherit;
  font-size: 13.6px;
  line-height: 1.46;
  color: var(--el-ink);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.el-qopt b {
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--el-sand);
  color: var(--el-ink-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11.5px;
  flex-shrink: 0;
}

.el-qopt:hover:not(:disabled) {
  border-color: var(--el-cobalt);
}

.el-qopt.is-correct { background: #ECFDF5; border-color: var(--el-sage); }
.el-qopt.is-correct b { background: var(--el-sage); color: #FFFFFF; }
.el-qopt.is-wrong { background: #FEF2F2; border-color: var(--el-crimson); }
.el-qopt.is-wrong b { background: var(--el-crimson); color: #FFFFFF; }

.el-quiz-feedback {
  margin-top: 13px;
  padding: 12px 15px;
  border-radius: 13px;
  background: var(--el-card);
  border: 1px solid rgba(14, 79, 232, 0.20);
  font-size: 13.4px;
  line-height: 1.54;
  color: var(--el-ink-2);
}

.el-quiz-feedback strong {
  color: var(--el-cobalt);
}

.el-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.el-rel-card {
  padding: 15px;
  border-radius: 16px;
  background: #FAF7F2;
  border: 1px solid var(--el-hair);
  text-align: left;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.16s var(--el-ease), border-color 0.16s ease, background 0.16s ease;
}

.el-rel-card:hover {
  transform: translateY(-2px);
  background: var(--el-card);
  border-color: rgba(14, 79, 232, 0.34);
}

.el-rel-card small {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--el-cobalt);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.el-rel-card strong {
  display: block;
  font-size: 14.2px;
  font-weight: 700;
  color: var(--el-ink);
  margin-bottom: 4px;
}

.el-rel-card span {
  display: block;
  font-size: 12px;
  line-height: 1.44;
  color: var(--el-ink-3);
}

/* ==========================================================================
   11. FOOTER & FLOATING WARM-IVORY iOS MOBILE BOTTOM CAPSULE
   ========================================================================== */
.el-footer {
  background: #F3EDE2;
  border-top: 1px solid var(--el-hair);
  padding: 26px clamp(16px, 3vw, 32px);
}

.el-footer__inner {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.el-footer__brand small {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  color: var(--el-ink-3);
}

.el-footer__links {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.el-footer__links a {
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--el-ink-2);
}

.el-footer__links a:hover {
  color: var(--el-cobalt);
}

.el-mobile-dock {
  display: none;
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: max(10px, env(safe-area-inset-bottom));
  z-index: 160;
  padding: 6px;
  border-radius: 26px;
  background: rgba(255, 253, 249, 0.92);
  -webkit-backdrop-filter: blur(22px) saturate(185%);
  backdrop-filter: blur(22px) saturate(185%);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 44px -14px rgba(40, 30, 18, 0.26), 0 0 0 1px rgba(124, 106, 80, 0.16);
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
}

.el-mdock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 7px 2px;
  border-radius: 20px;
  text-decoration: none;
  color: var(--el-ink-3);
  font-size: 10px;
  font-weight: 700;
}

.el-mdock-item.is-active {
  background: rgba(14, 79, 232, 0.11);
  color: var(--el-cobalt);
}

/* ==========================================================================
   12. RESPONSIVE BREAKPOINTS (Zero Horizontal Overflow on 390px iPhone!)
   ========================================================================== */
@media (max-width: 1120px) {
  .el-dossier__layout {
    grid-template-columns: 1fr;
  }
  .el-toc {
    display: none;
  }
  body.is-learning .el-mobile-dock {
    display: grid;
  }
  body.is-learning .el-footer {
    padding-bottom: 102px;
  }
  .el-heart-grid,
  .el-mimic-grid {
    grid-template-columns: 1fr;
  }
  .el-pathway-flow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .el-flow-step::after {
    display: none;
  }
}

@media (max-width: 980px) {
  .el-atelier-bento {
    grid-template-columns: 1fr;
  }
  .el-hero__sketch-art {
    opacity: 0.30;
    background-size: 1320px auto;
  }
  .el-vitals-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .el-vital-cell:nth-child(3n) {
    border-right: none;
  }
  .el-vital-cell:nth-child(n+4) {
    border-top: 1px solid var(--el-hair);
  }
  .el-meds-grid[data-count="3"],
  .el-directory__grid,
  .el-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .el-hero__sketch-art {
    display: none;
  }
  .el-editorial-split {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .el-editorial-col:first-child {
    padding-right: 0;
    border-right: none;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--el-hair);
  }
  .el-dock-divider {
    display: none;
  }
}

@media (max-width: 680px) {
  .el-nav-link,
  .el-brand-sep,
  .el-brand-crumb,
  .el-glass-pulse,
  .el-mini-search-trigger kbd,
  .el-glass-bar__kbd,
  .el-glass-bar__count {
    display: none;
  }
  body.is-learning.is-scrolled .el-header__actions {
    display: none;
  }
  .el-mini-search-trigger {
    min-width: 0;
    max-width: none;
    flex: 1 1 0;
  }
  .el-glass-bar {
    height: 58px;
    padding: 6px 6px 6px 14px;
  }
  .el-glass-bar__go {
    width: 44px;
    height: 44px;
  }
  .el-quick-wrap {
    margin: 14px 0 24px;
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .el-quick-wrap::-webkit-scrollbar {
    display: none;
  }
  .el-quick-label {
    flex-shrink: 0;
  }
  .el-quick-links {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .el-qlink {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .el-world-two,
  .el-clin-row,
  .el-triage-strip,
  .el-pathway-flow,
  .el-meds-grid,
  .el-meds-grid[data-count="3"],
  .el-dng-grid,
  .el-directory__grid,
  .el-related-grid,
  .el-mimic-split-wrap {
    grid-template-columns: 1fr;
  }
  .el-triage-col.is-unstable {
    border-right: none;
    border-bottom: 1px solid var(--el-hair);
  }
  .el-mimic-split-wrap {
    height: 300px;
  }
  .el-pearls-sub {
    display: none;
  }
  .el-bento-card,
  .el-chapter {
    padding: 18px 16px;
    border-radius: 22px;
  }
  .el-desk-stage {
    padding-bottom: 92px;
  }
  .el-desk-art {
    height: 190px;
  }
  .el-vitals-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .el-vital-cell {
    border-right: 1px solid var(--el-hair);
    border-top: 1px solid var(--el-hair);
  }
  .el-vital-cell:nth-child(2n) {
    border-right: none;
  }
  .el-vital-cell:nth-child(-n+2) {
    border-top: none;
  }
  .el-mini12-grid,
  .el-mini-ext-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .el-heart3d-canvas-wrap {
    height: 310px;
  }
  .el-diff-row {
    grid-template-columns: 76px minmax(0, 1fr) minmax(0, 1fr);
  }
  .el-diff-cell {
    padding: 8px;
    font-size: 11.6px;
  }
  .el-res-spark {
    width: 52px;
    height: 24px;
  }
  .el-chapter {
    scroll-margin-top: 72px;
  }
}
