@import "https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;1,400&display=swap";

/* ════════════════════════════════════════════════════════════════
   BASE & RESET
   Box model, CSS custom properties (:root), html/body defaults
   Used in: All pages
   ════════════════════════════════════════════════════════════════ */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
:root {
  --font-display: "Inter", -apple-system, system-ui, sans-serif;
  --font-body: "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --paper: #ffffff;
  --background: #f5f7fc;
  --background-body: #f8fafc;
  --ivory: #fffff0;
  --pearl: #fcfcf7;
  --marble: #f2f8fc;
  --off-white: #faf9f6;
  --lavender: #f4f1f8;
  --alice-blue: #f0f8ff;
  --parachment: #fbf5df;
  --egg-white: #fdfdfd;
  --primary: #000000;
  --blue: #0071e3;
  --dark-blue: #060647;
  --border: #d6d4ce;
  --border-light: #e8e8ed;
  --muted: #6e6e64;
  --surface: var(--paper);
  --master: var(--paper);
  --surface-subtle: color-mix(in srgb, var(--background) 30%, var(--paper));

  --text-primary: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-tertiary: #86868b;
  --text-quaternary: #a1a1a6;
  --text-dark: #1d1d1f;
  --text-primary-strong: #000000;
  --text-secondary-strong: #4a4a50;

  --text-on-dark: #ffffff;
  --text-on-dark-soft: rgba(255, 255, 255, 0.85);
  --text-on-dark-muted: rgba(255, 255, 255, 0.65);

  --accent-navy: #1e3a5f;
  --accent-forest: #2c4c3b;
  --accent-terracotta: #9b4b3c;
  --accent-crimson: #8b3a3a;

  --fs-xs: clamp(0.75rem, 1.1vw, 0.875rem);
  --fs-sm: clamp(0.875rem, 1.3vw, 1rem);
  --fs-base: clamp(1rem, 1.5vw, 1.125rem);
  --fs-md: clamp(1.15rem, 1.9vw, 1.3rem);
  --fs-lg: clamp(1.3rem, 2.2vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 2.8vw, 1.875rem);
  --fs-2xl: clamp(1.875rem, 3.6vw, 2.25rem);
  --fs-display: clamp(2.75rem, 5.5vw, 3.5rem);
  --fs-watermark: clamp(6rem, 12vw, 9rem);
  --fs-watermark-lg: clamp(8rem, 16vw, 12rem);

  --ls-tightest: -0.04em;
  --ls-tighter: -0.02em;
  --ls-tight: -0.01em;
  --ls-normal: 0em;
  --ls-wide: 0.02em;
  --ls-wider: 0.05em;
  --ls-widest: 0.1em;
  --ls-huge: 0.2em;
  --ls-huger: 0.3em;
  --ls-massive: 0.46em;

  --bs-thin: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --bs-medium: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
  --bs-heavy: 0 8px 24px rgba(0, 0, 0, 0.1), 0 2px 6px rgba(0, 0, 0, 0.05);
  --bs-veryheavy:
    0 16px 40px rgba(0, 0, 0, 0.12), 0 4px 12px rgba(0, 0, 0, 0.06);

  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 2.5rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --space-10: 5rem;
  --space-12: 6rem;

  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-pill: 9999px;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  font-family: var(--font-body);
  background: var(--background-body);
  color: var(--primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ════════════════════════════════════════════════════════════════
   ANIMATIONS
   @keyframes — shake, slideDown, slideDownBanner, shakeDismiss
   Used in: All pages
   ════════════════════════════════════════════════════════════════ */

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  20% {
    transform: translateX(-8px);
  }
  40% {
    transform: translateX(8px);
  }
  60% {
    transform: translateX(-4px);
  }
  80% {
    transform: translateX(4px);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDownBanner {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes shakeDismiss {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}

/* ════════════════════════════════════════════════════════════════
   TYPOGRAPHY
   Base inline element overrides (strong)
   Used in: All pages
   ════════════════════════════════════════════════════════════════ */

strong {
  color: var(--dark-blue) !important;
  font-weight: 500;
}

/* ════════════════════════════════════════════════════════════════
   HEADER
   Site header, logo image, h1 title and subtitle paragraph
   Used in: All pages
   ════════════════════════════════════════════════════════════════ */

header {
  color: var(--paper);
  padding: 1rem 3rem;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  align-items: left;
  gap: 0.5rem;
  background-color: var(--primary);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}
header::before {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: var(--fs-watermark);
  font-weight: 600;
  color: rgba(108, 116, 132, 0.25);
  pointer-events: none;
  line-height: 1;
  white-space: nowrap;
}
.header-logo-img {
  height: 84px;
  width: auto;
  object-fit: contain;
  opacity: 0.9;
}
header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--fs-2xl);
  letter-spacing: var(--ls-tighter);
  margin-bottom: 0.25rem;
  position: relative;
  color: var(--parachment);
}
header h1 span {
  color: var(--parachment);
}
header p {
  color: var(--muted);
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  position: relative;
  font-weight: 400;
}

/* ════════════════════════════════════════════════════════════════
   LAYOUT
   .container page wrapper and .section-label section headings
   Used in: All pages
   ════════════════════════════════════════════════════════════════ */

.container {
  width: 95%;
  max-width: 1000px;
  min-width: 240px;
  margin: 0 auto;
  padding: var(--space-2) 2rem var(--space-8);
  flex: 1;
  box-sizing: border-box;
}
.section-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  margin-top: var(--space-10);
}
.section-label .num {
  background: var(--primary);
  color: var(--background);
  font-size: var(--fs-xs);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  letter-spacing: var(--ls-widest);
  white-space: nowrap;
}
.section-label h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-lg);
  letter-spacing: var(--ls-tight);
}
.section-label h3 em {
  font-style: italic;
  color: var(--primary);
  font-size: var(--fs-base);
}

/* ════════════════════════════════════════════════════════════════
   LO CARD
   Learning-outcome card displayed at the top of each page
   Used in: All pages
   ════════════════════════════════════════════════════════════════ */

.lo-card {
  background: var(--paper);
  color: var(--primary);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-5) var(--space-4);
  margin-bottom: var(--space-4);
  position: relative;
  overflow: hidden;
  box-shadow: var(--bs-thin);
}
.lo-card::before {
  position: absolute;
  right: -1rem;
  top: -1rem;
  font-family: var(--font-display);
  font-size: var(--fs-watermark);
  font-weight: 600;
  color: rgba(108, 116, 132, 0.06);
  pointer-events: none;
  line-height: 1;
  content: "LOs";
}
.lo-label {
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--accent-navy);
  margin-bottom: 0.5rem;
}
.lo-card h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-xl);
  margin-bottom: 1.25rem;
  line-height: 1.3;
  color: var(--primary);
}
.lo-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  counter-reset: item;
}
.lo-list li {
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--primary);
  position: relative;
  padding-left: 1.5rem;
  counter-increment: item;
}
.lo-list li::before {
  content: counter(item) ".";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: var(--fs-sm);
}

/* ════════════════════════════════════════════════════════════════
   REMINDER BOX
   Highlighted reminder / key-takeaway box with pills
   Used in: All pages
   ════════════════════════════════════════════════════════════════ */

.reminder-box {
  background: var(--primary);
  color: var(--paper);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-5) var(--space-4);
  margin-bottom: var(--space-6);
  position: relative;
  overflow: hidden;
  box-shadow: var(--bs-thin);
}
.reminder-box::before {
  position: absolute;
  right: -1rem;
  top: -1rem;
  font-family: var(--font-display);
  font-size: var(--fs-watermark);
  font-weight: 600;
  color: rgba(108, 116, 132, 0.3);
  pointer-events: none;
  line-height: 1;
}
.reminder-label {
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-on-dark-soft) !important;
  margin-bottom: 0.5rem;
}
.reminder-box h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-xl);
  margin-bottom: 1.25rem;
  line-height: 1.25;
  color: var(--text-on-dark);
}
.reminder-box h2 em {
  font-style: italic;
  font-size: var(--fs-lg);
  color: var(--text-on-dark-soft);
}
.reminder-box h2 strong {
  color: var(--text-on-dark-soft);
}
.reminder-pills {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.reminder-pill {
  background: var(--primary);
  border-left: 0.1px solid var(--muted);
  padding: 1rem 1.4rem;
  font-size: var(--fs-sm);
  line-height: 1.7;
  flex: 1;
  min-width: 180px;
  color: var(--text-on-dark-soft);
}
.reminder-pill strong {
  display: block;
  color: var(--text-on-dark-muted) !important;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

/* ════════════════════════════════════════════════════════════════
   DEFINITION CONTRAST
   Two-column contrast layout (word + definition + traits)
   Used in: BeDefensible
   ════════════════════════════════════════════════════════════════ */

.def-contrast {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
}
.dc-col {
  padding: 1.4rem 1.6rem;
}
.dc-col .dcc-label {
  font-size: var(--fs-sm);
  font-weight: 400;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--border);
  display: block;
}
.dc-col:first-child .dcc-label {
  color: var(--accent-navy);
}
.dc-col:last-child .dcc-label {
  color: var(--accent-forest);
}
.dc-col .dcc-word {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-xl);
  margin-bottom: 0.5rem;
  line-height: 1;
}
.dc-col:first-child .dcc-word {
  color: var(--primary);
}
.dc-col:last-child .dcc-word {
  color: var(--primary);
}
.dc-col .dcc-def {
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.65;
  margin-bottom: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px dashed var(--border);
}
.dc-traits {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.dc-traits li {
  font-size: var(--fs-sm);
  padding: 0.45rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  line-height: 1.4;
  color: var(--primary);
}
.dc-traits li:last-child {
  border-bottom: none;
}
.dc-col:first-child .dc-traits li::before {
  font-family: bootstrap-icons;
  content: "";
  color: var(--primary);
  font-size: var(--fs-xs);
  flex-shrink: 0;
}
.dc-col:last-child .dc-traits li::before {
  font-family: bootstrap-icons;
  content: "";
  color: var(--primary);
  font-size: var(--fs-xs);
  flex-shrink: 0;
}
.def-foot {
  background: var(--background);
  box-shadow: none;
  padding: 0.9rem 1.8rem;
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.6;
}
.def-foot strong {
  color: var(--primary);
  font-style: normal;
}

/* ════════════════════════════════════════════════════════════════
   CARD BLOCK
   General-purpose card with header, body, and optional note
   Used in: AnticipateTreatReassessDecide, BeyondTheSystem, Bridging, CheckYourself, Uncertainty
   ════════════════════════════════════════════════════════════════ */

.card-block {
  box-shadow: var(--bs-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}
.card-block-head {
  background: var(--master);
  padding: 1.2rem 1.8rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.card-block-head .cbh-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.3rem;
  display: block;
}
.card-block-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-md);
  margin: 0;
}
.card-block-head .tag-pill {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--paper);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.card-block-body {
  background: var(--paper);
  padding: 1.5rem 1.8rem;
}
.card-block-note {
  background: var(--background);
  padding: 0.9rem 1.8rem;
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.6;
}
.card-block-note strong {
  color: var(--primary);
}

/* ════════════════════════════════════════════════════════════════
   DARK CARD
   Dark-background callout card with quote and label
   Used in: Bridging, CheckYourself
   ════════════════════════════════════════════════════════════════ */

.dark-card {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--bs-heavy);
  color: var(--primary);
}
.dark-card::before {
  position: absolute;
  right: 1.5rem;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: var(--fs-watermark-lg);
  font-weight: 600;
  color: rgba(133, 191, 207, 0.08);
  pointer-events: none;
  line-height: 1;
}
.dark-card .dc-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-huge);
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 400;
  margin-bottom: 0.8rem;
}
.dark-card blockquote {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: var(--fs-xl);
  line-height: 1.55;
  color: var(--primary);
  max-width: 640px;
  margin: 0 0 1.5rem;
}
.dark-card blockquote em {
  color: var(--primary);
}
.dark-card h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-md);
  margin-bottom: 1.2rem;
  line-height: 1.3;
  color: var(--primary);
}
.dark-card p {
  font-size: var(--fs-sm);
  color: var(--text-primary);
  line-height: 1.7;
}

/* ════════════════════════════════════════════════════════════════
   CALLOUT LEFT
   Left-bordered callout block — neutral, warning, strong, cool, beyond, awareness variants
   Used in: All pages
   ════════════════════════════════════════════════════════════════ */

.callout-left {
  --accent: var(--border);
  background: var(--background-body);
  border-left: 3px solid var(--accent);
  padding: 1.25rem 1.5rem;
  margin: var(--space-4) 0;
  box-shadow: none;
}
.callout-left .cl-label {
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.callout-left h3,
.callout-left p,
.callout-left .cl-label,
.callout-left .cl-label *,
.callout-left h3 *,
.callout-left p * {
  font-size: var(--fs-sm);
}
.callout-left h3 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 0.8rem;
}
.callout-left p {
  font-weight: 400;
  color: var(--primary);
  line-height: 1.7;
  margin-bottom: 0.5rem;
  font-size: var(--fs-sm);
}
.callout-left p strong {
  font-weight: 600;
}
.callout-left--neutral {
  --accent: var(--accent-navy);
}
.callout-left--warning {
  --accent: var(--accent-terracotta);
}
.callout-left--strong {
  --accent: var(--accent-crimson);
}
.callout-left--cool {
  --accent: var(--accent-forest);
}
.callout-left--beyond {
  background: var(--background-body);
  border-left-color: var(--accent-navy);
  margin-bottom: 2rem;
  padding: 1.5rem;
}
.callout-left--beyond .cl-label {
  font-size: var(--fs-sm) !important;
  letter-spacing: var(--ls-huge);
  text-transform: uppercase;
  color: var(--accent-navy);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.callout-left--beyond h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-md);
  color: var(--primary);
  margin-bottom: 0.8rem;
}
.callout-left--beyond .description-text {
  font-size: var(--fs-base);
  color: var(--primary);
  line-height: 1.7;
  margin-bottom: 1.2rem;
}
.callout-left--beyond .callout-left__errors-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.callout-left--beyond .callout-left__error-item {
  background: var(--paper);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--bs-medium);
}
.callout-left--beyond .callout-left__error-item strong {
  display: block;
  color: var(--primary);
  margin-bottom: 0.5rem;
  font-size: var(--fs-base);
  font-weight: 500;
}
.callout-left--beyond .callout-left__error-item p {
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.6;
  margin: 0;
}

/* ════════════════════════════════════════════════════════════════
   BEYOND BASICS TRIGGER
   Expandable "beyond basics" reveal panel with teaser and button
   Used in: Most pages  (22/24)
   ════════════════════════════════════════════════════════════════ */

.beyond-basics-trigger {
  border-left: 3px solid var(--accent-navy);
  background: var(--background-body);
  padding: 1rem 1.5rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: var(--bs-heavy);
}
.bbt-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
  min-width: 0;
}
.bbt-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-huge);
  text-transform: uppercase;
  color: var(--accent-navy);
  font-weight: 600;
}
.bbt-teaser {
  font-size: var(--fs-sm);
  color: var(--text-secondary, var(--primary));
  line-height: 1.45;
  margin: 0;
  font-style: italic;
}
.bbt-btn {
  flex-shrink: 0;
  background: var(--text-primary);
  color: #fff;
  border: none;
  padding: 0.45rem 1rem;
  border-radius: var(--radius-xl);
  font-size: var(--fs-sm);
  cursor: pointer;
  font-family: var(--font-body);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: opacity 0.2s ease;
  white-space: nowrap;
}
.bbt-btn:hover {
  opacity: 0.82;
}
.callout-left--awareness {
  background: var(--background-body);
  border-left-color: var(--accent-forest);
  margin-bottom: 2rem;
  padding: 1.5rem;
}
.callout-left--awareness .cl-label {
  font-size: var(--fs-sm);
  letter-spacing: var(--ls-huge);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.callout-left--awareness .section-label {
  margin-bottom: 0.75rem;
}
.callout-left--awareness .section-label .num {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--primary);
  background: rgba(0, 0, 0, 0.05);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-xl);
  margin-bottom: 0.5rem;
}
.callout-left--awareness .section-label h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-lg);
  color: var(--primary);
  margin: 0.5rem 0 0 0;
}
.callout-left--awareness .dc-label {
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: var(--ls-huge);
  font-weight: 600;
  color: var(--accent-forest);
  margin-bottom: 0.5rem;
}
.callout-left--awareness h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-md);
  color: var(--primary);
  margin-bottom: 0.8rem;
}
.callout-left--awareness .description-text {
  font-size: var(--fs-base);
  color: var(--primary);
  line-height: 1.7;
  margin-bottom: 1.4rem;
}
.callout-left--awareness .callout-left__bridge-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.callout-left--awareness .callout-left__bridge-step {
  background: var(--paper);
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--bs-medium);
}
.callout-left--awareness .callout-left__bridge-step .bs-num {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 0.5rem;
}
.callout-left--awareness .callout-left__bridge-step h4 {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--primary);
  margin: 0 0 0.5rem 0;
}
.callout-left--awareness .callout-left__bridge-step p {
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.6;
  margin: 0;
}
.callout-left--awareness .footer-note {
  font-size: var(--fs-sm);
  font-weight: 300;
  color: var(--primary);
  line-height: 1.7;
  text-align: center;
  padding-top: 1.25rem;
  margin-top: 1.25rem;
}
.callout-left--awareness .footer-note strong {
  color: var(--primary);
}

/* ════════════════════════════════════════════════════════════════
   STEP BOX
   Small numbered step boxes in a 3-column grid
   Used in: AnticipateTreatReassessDecide
   ════════════════════════════════════════════════════════════════ */

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.5rem 0 2.5rem;
}
.step-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.step-box {
  background: var(--paper);
  border-radius: var(--radius-md);
  padding: 1.2rem;
  box-shadow: var(--bs-medium);
  text-align: center;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.step-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--bs-heavy);
}
.step-box .sb-num {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--muted);
  line-height: 1;
  margin-bottom: 0.5rem;
  display: block;
}
.step-box .sb-title {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--accent-navy);
  margin-bottom: 0.4rem;
}
.step-box .sb-desc {
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════════
   MAPPING SPLIT
   Horizontal mapping layout with labelled columns and arrow divider
   Used in: AnticipateTreatReassessDecide, BeyondTheSystem, CheckYourself
   ════════════════════════════════════════════════════════════════ */

.mapping-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  background: var(--paper);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 1.5rem;
  box-shadow: var(--bs-medium);
}
.ms-col {
  padding: 1.2rem 1.4rem;
}
.ms-col:not(:last-child):not(.ms-divider) {
  border-right: 1px solid var(--border-light);
}
.ms-col .msc-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 0.6rem;
}
.ms-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.8rem;
  flex-direction: column;
  gap: 0.3rem;
}
.ms-divider .msd-arrow {
  font-size: var(--fs-lg);
  color: var(--primary);
}
.ms-divider .msd-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--primary);
  text-align: center;
  line-height: 1.3;
}
.ms-items {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.ms-item {
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.45;
  padding: 0.3rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

/* ════════════════════════════════════════════════════════════════
   FAILURE & COMPARISON CARD
   Silent/reactive failure-mode cards and green/red comparison card pairs
   Used in: AnticipateTreatReassessDecide, BeDefensible, CheckYourself
   ════════════════════════════════════════════════════════════════ */

.failure-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 3rem;
}
.failure-card,
.comp-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--bs-medium);
}
.failure-card-head,
.comp-card-head {
  padding: 1rem 1.4rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.failure-card.silent .failure-card-head,
.failure-card.reactive .failure-card-head {
  background: var(--background);
}
.failure-card-head .fch-content h4,
.comp-card-head .cch-content h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-base);
}
.failure-card-head .fch-content h4 {
  margin-bottom: 0.15rem;
}
.comp-card-head .cch-content h4 {
  margin-bottom: 0.8rem;
}
.failure-card.silent .fch-content h4,
.failure-card.reactive .fch-content h4 {
  color: var(--primary);
}
.failure-card-head .fch-content p {
  font-size: var(--fs-xs);
  color: var(--primary);
  line-height: 1.4;
}
.fc-tag {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-md);
  margin-left: auto;
  flex-shrink: 0;
}
.failure-card.silent .fc-tag {
  background: var(--primary);
  color: var(--background);
}
.failure-card.reactive .fc-tag {
  background: var(--primary);
  color: var(--background);
}
.failure-card-body,
.comp-card-body {
  background: var(--paper);
  padding: 1.1rem 1.4rem;
}
.fc-examples {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.fc-examples li {
  font-size: var(--fs-sm);
  padding: 0.45rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  line-height: 1.4;
  color: var(--primary);
  font-style: italic;
}
.fc-examples li:last-child {
  border-bottom: none;
}
.fc-examples li::before {
  content: "→";
  color: var(--primary);
  font-size: var(--fs-xs);
  flex-shrink: 0;
  font-style: normal;
}
.failure-card-foot,
.comp-card-foot {
  padding: 0.7rem 1.2rem;
  font-size: var(--fs-xs);
  color: var(--primary);
  line-height: 1.5;
}
.failure-card-foot {
  background: var(--background);
}
.failure-card.silent .failure-card-foot {
  border-top-color: var(--text-primary);
  background: var(--background);
}
.failure-card.reactive .failure-card-foot {
  border-top-color: var(--background);
  background: var(--background);
}
.failure-card-foot strong {
  color: var(--primary);
  font-weight: 500;
}
.comp-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 3rem;
}
.comp-card--green .comp-card-head,
.comp-card--red .comp-card-head {
  background: var(--background);
}
.comp-card-head .cch-content p {
  font-size: var(--fs-xs);
  color: var(--primary);
  line-height: 1.4;
}
.comp-card .cc-tag {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-md);
  margin-right: auto;
  flex-shrink: 0;
  background: var(--primary);
  color: var(--background);
}
.comp-card-foot strong {
  color: var(--primary);
}
.cc-items {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cc-items li {
  font-size: var(--fs-sm);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  line-height: 1.4;
  color: var(--primary);
}
.cc-items li:last-child {
  border-bottom: none;
}
.cc-items li::before {
  content: "→";
  color: var(--primary);
  font-size: var(--fs-xs);
  flex-shrink: 0;
}
.cc-items--check li::before {
  font-family: bootstrap-icons;
  content: "";
  color: var(--primary);
}
.cc-items--cross li::before {
  font-family: bootstrap-icons;
  content: "";
  color: var(--primary);
}

/* ════════════════════════════════════════════════════════════════
   SUMMARY PANEL
   End-of-section summary panel with two-column breakdown
   Used in: AnticipateTreatReassessDecide, Summary
   ════════════════════════════════════════════════════════════════ */

.summary-panel {
  background: linear-gradient(
    135deg,
    color-mix(in srgb, var(--theme-5-start) 50%, white),
    color-mix(in srgb, var(--theme-5-end) 50%, white)
  );
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin-top: 3rem;
}
.summary-panel h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-lg);
  margin-bottom: 0.5rem;
  color: var(--primary);
}
.summary-panel > p {
  font-size: var(--fs-sm);
  color: var(--primary);
  margin-bottom: 1.5rem;
}
.summary-col {
  background: var(--paper);
  box-shadow: var(--bs-medium);
  border-radius: var(--radius-md);
  padding: 1.2rem;
}
.summary-col h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-base);
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-light);
  text-transform: uppercase;
  letter-spacing: var(--ls-widest);
}
.summary-col ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.summary-col li {
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.5;
  padding-left: 0.8rem;
  position: relative;
}
.summary-col li::before {
  content: "—";
  position: absolute;
  left: 0;
  opacity: 0.4;
}

/* ════════════════════════════════════════════════════════════════
   CORE CONTRAST
   Description vs. summary two-side block with arrow divider
   Used in: CheckYourself, Summary
   ════════════════════════════════════════════════════════════════ */

.core-contrast {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  box-shadow: var(--bs-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}
.cc-side {
  padding: 2rem 2rem;
}
.cc-side .ccs-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  display: block;
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}
.cc-side.description .ccs-label {
  color: var(--text-on-dark);
}
.cc-side.summary .ccs-label {
  color: var(--text-on-dark);
}
.cc-side.description {
  background: var(--primary);
}
.cc-side.summary {
  background: var(--primary);
}
.cc-side h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-md);
  margin-bottom: 0.5rem;
}
.cc-side.description h3 {
  color: var(--text-on-dark);
}
.cc-side.summary h3 {
  color: var(--text-on-dark);
}
.cc-side p {
  font-size: var(--fs-sm);
  color: var(--text-on-dark);
  line-height: 1.7;
}
.cc-side.summary p {
  color: var(--text-on-dark);
}
.cc-divider {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0.8rem;
  gap: 0.4rem;
  background: var(--primary);
}
.cc-divider .cd-arrow {
  font-size: var(--fs-xl);
  color: var(--text-on-dark);
}
.cc-divider .cd-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--text-on-dark);
  text-align: center;
  line-height: 1.4;
}

/* ════════════════════════════════════════════════════════════════
   COMPARE TABLE
   Multi-column comparison table with labelled header
   Used in: BeyondTheSystem, Bridging, DiscriminatingQuestions, ExaminationHypothesisTesting, KeyModifiers, WhenRulesFail
   ════════════════════════════════════════════════════════════════ */

.compare-table-block {
  box-shadow: var(--bs-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}
.ctb-head {
  background: var(--master);
  padding: 1.2rem 1.8rem;
}
.ctb-head .ch-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.3rem;
}
.ctb-head h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-base);
  margin: 0;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
}
.compare-table thead tr {
  background: var(--primary);
}
.compare-table thead th {
  font-family: var(--font-body);
  padding: 0.8rem 1.2rem;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  font-weight: 600;
  text-align: left;
  color: var(--background);
}
.compare-table tbody tr:hover {
  background: var(--background);
}
.compare-table td {
  padding: 0.9rem 1.2rem;
  font-size: var(--fs-sm);
  line-height: 1.5;
  vertical-align: top;
  border-bottom: 1px solid var(--border-light);
}
.compare-table tbody tr:last-child td {
  border-bottom: none;
}
.compare-table td:first-child {
  font-weight: 500;
  color: var(--primary);
  white-space: normal;
}
.compare-table td:nth-child(2) {
  color: var(--primary);
  font-style: italic;
}
.compare-table td:nth-child(3) {
  color: var(--primary);
  font-weight: 500;
}
.compare-table td:nth-child(4) {
  color: var(--primary);
}
.compare-table th:first-child,
.compare-table td:first-child {
  width: 18%;
  white-space: normal;
}
.compare-table th:last-child,
.compare-table td:last-child {
  width: 35%;
}
.compare-table th:nth-child(2),
.compare-table td:nth-child(2) {
  width: 22%;
}
.compare-table th:nth-child(3),
.compare-table td:nth-child(3) {
  width: 25%;
}
.compare-table-note {
  background: var(--background);
  padding: 0.85rem 1.4rem;
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.6;
}
.compare-table-note strong {
  color: var(--primary);
}

/* ════════════════════════════════════════════════════════════════
   ERRORS BLOCK
   Error-item grid listing common diagnostic or reasoning mistakes
   Used in: Most pages  (21/24)
   ════════════════════════════════════════════════════════════════ */

.errors-block {
  padding: 1rem 1.5rem;
  margin-top: var(--space-6);
  margin-bottom: var(--space-4);
  background: var(--background-body);
  border-left: 3px solid var(--accent-terracotta);
  position: relative;
  overflow: hidden;
}
.errors-block::before {
  content: "⚠";
  position: absolute;
  right: 1.5rem;
  top: 1rem;
  font-size: 5rem;
  color: rgba(220, 38, 38, 0.04);
  pointer-events: none;
  font-family: monospace;
}
.errors-block .eb-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-huge);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--accent-crimson);
  font-weight: 600;
  padding-left: 0;
}
.errors-block h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-lg);
  margin-bottom: 1.5rem;
  color: var(--primary);
  padding-left: 0;
  line-height: 1.3;
}
.errors-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.error-item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  font-size: var(--fs-sm);
  line-height: 1.5;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--bs-medium);
  background: var(--paper);
  box-shadow: var(--bs-medium);
  color: var(--dark-blue);
  font-weight: 500;
  letter-spacing: var(--ls-normal);
  transition: all 0.2s ease;
}
.error-item .ei-note {
  display: block;
  width: 100%;
  font-size: var(--fs-sm);
  font-style: italic;
  color: var(--primary);
  font-weight: 400;
  letter-spacing: var(--ls-normal);
  text-transform: none;
  margin-top: 0.1rem;
  padding-left: 1rem;
  border-left: 2px solid var(--dark-blue);
  line-height: 1.4;
}

/* ════════════════════════════════════════════════════════════════
   FINAL MESSAGE
   Closing blockquote / takeaway with label and pills
   Used in: All pages
   ════════════════════════════════════════════════════════════════ */

.final-message {
  margin-top: var(--space-6);
  text-align: center;
  padding: var(--space-4) var(--space-4);
  background: var(--master);
  border-radius: var(--radius-lg);
  color: var(--primary);
  position: relative;
  overflow: hidden;
  box-shadow: var(--bs-medium);
}
.final-message .fm-label {
  font-size: var(--fs-base);
  font-weight: 600;
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--accent-navy);
  margin-bottom: var(--space-1);
}
.final-message blockquote {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-base);
  line-height: 1.5;
  color: var(--accent-navy);
  max-width: 640px;
  margin: 0 auto var(--space-2);
  letter-spacing: var(--ls-tight);
}
.final-message p {
  color: var(--text-primary);
  font-size: var(--fs-xs);
  line-height: 1.8;
  margin-top: var(--space-4);
  margin-bottom: var(--space-2);
  max-width: 80%;
  margin-left: auto;
  margin-right: auto;
}
.fm-pills {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.fm-pill {
  background: rgba(0, 0, 0, 0);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.45rem 1.1rem;
  font-size: var(--fs-xs);
  color: var(--paper);
  background: var(--primary);
  letter-spacing: var(--ls-wider);
}

/* ════════════════════════════════════════════════════════════════
   XREF & FOOTNOTES
   Cross-reference link cards and footnote marker tooltips
   Used in: Most pages  (21/24)
   ════════════════════════════════════════════════════════════════ */

.xref-block {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-bottom: 3rem;
}
.xref-item {
  box-shadow: var(--bs-medium);
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  background: var(--paper);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.xref-item:hover {
  background: var(--background-body);
  box-shadow: var(--bs-medium);
}
.xref-item h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-base);
  color: var(--primary);
  margin-bottom: 0.3rem;
  line-height: 1.3;
}
.xref-item p {
  font-size: var(--fs-xs);
  color: var(--primary);
  line-height: 1.5;
}
.xref-item .footnote-marker {
  margin-top: auto;
}
.xref-item:hover .footnote-marker {
  background: var(--background-body);
  transition: background 0.2s;
}
.footnote-marker {
  margin-top: 0.75rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: var(--fs-xs);
  color: var(--primary);
}
.footnote-marker p {
  margin: 0;
  font-size: var(--fs-xs);
}

/* ════════════════════════════════════════════════════════════════
   REFLECTIVE ESSAY
   Free-text essay input with reveal-feedback button
   Used in: All pages
   ════════════════════════════════════════════════════════════════ */

.reflective-essay-block {
  background: var(--background);
  border-radius: var(--radius-xl);
  padding: 1.8rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--bs-medium);
}
.essay-prompt {
  margin-bottom: 1rem;
}
.prompt-text {
  font-size: var(--fs-base);
  line-height: 1.6;
  margin-bottom: 1.2rem;
  color: var(--primary);
}
.disease-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.disease-tag {
  background: var(--paper);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid var(--border);
  color: var(--primary);
}
.disease-tag:hover {
  background: var(--primary);
  color: var(--paper);
  border-color: var(--primary);
}
.disease-tag.selected {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.selected-disease-display {
  font-size: var(--fs-sm);
  margin-bottom: 1rem;
  padding: 0.3rem 0;
  color: var(--primary);
}
#selectedDiseaseName {
  font-weight: 600;
  color: var(--primary);
}
textarea {
  width: 100%;
  padding: 1rem;
  font-family: inherit;
  font-size: var(--fs-sm);
  line-height: 1.6;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  resize: vertical;
  margin-bottom: 1.2rem;
  background: var(--paper);
}
.essay-submit-btn {
  font-family: var(--font-body);
  background: var(--blue);
  color: var(--paper);
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  min-height: 44px;
}
.essay-submit-btn:hover {
  transform: translateY(-1px);
}
.essay-submit-btn:active {
  transform: translateY(0);
  background: var(--blue);
  color: var(--paper);
}
.essay-reset-btn {
  font-family: var(--font-body);
  background: var(--blue) !important;
  color: var(--paper) !important;
  border: none;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: var(--fs-sm);
  font-weight: 500;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.15s;
  min-height: 44px;
}
.essay-reset-btn:hover {
  transform: translateY(-1px);
}
.essay-feedback {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px dashed var(--border);
}
.feedback-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.feedback-icon {
  font-size: 1.6rem;
}
.feedback-header h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-base);
  margin: 0;
}
.feedback-content {
  background: var(--paper);
  padding: 1.4rem;
  border-radius: var(--radius-md);
  font-size: var(--fs-sm);
  line-height: 1.7;
  color: var(--primary);
  margin-bottom: 1.2rem;
}
.feedback-content p {
  margin-bottom: 0.8rem;
}
.feedback-content strong {
  color: var(--primary);
}
.essay-reset-btn {
  background: var(--border);
  color: var(--primary);
}
#revealFeedbackBtn.disabled,
#revealFeedbackBtn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background-color: var(--border);
}
#revealFeedbackBtn:not(:disabled):hover {
  transform: translateY(-1px);
  transition: all 0.2s ease;
}

/* ════════════════════════════════════════════════════════════════
   FOOTER & HOME BUTTON
   Page footer text and back-to-home navigation button
   Used in: All pages
   ════════════════════════════════════════════════════════════════ */

footer {
  background: var(--master);
  text-align: center;
  padding: 1.5rem 3rem 1rem;
  width: 100%;
  margin-top: auto;
  position: relative;
  border-top: 1px solid rgba(232, 200, 154, 0.5);
}
footer p {
  color: var(--text-primary);
  font-size: var(--fs-xs);
  text-align: center;
  letter-spacing: var(--ls-widest);
  position: relative;
  z-index: 1;
}
.home-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 999;
  background: var(--blue);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  padding: 0.75rem 1.2rem;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: var(--bs-thin);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    color 0.2s;
}
.home-btn::before {
  content: "←";
  color: var(--background);
  font-size: var(--fs-sm);
}
.home-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--bs-medium);
}
.home-btn:active {
  transform: translateY(0);
}

/* ════════════════════════════════════════════════════════════════
   BRIDGING-TO-CONTEXT BLOCK
   Bridging section with terms, bridge explanations, and reference list
   Used in: All pages
   ════════════════════════════════════════════════════════════════ */

.btc-section {
  width: 100%;
  max-width: 1000px;
  min-width: 240px;
  margin: 0 auto;
  padding: 0 2rem var(--space-6);
  box-sizing: border-box;
}
.btc-block {
  border-left: 3px solid var(--accent-navy);
  background: var(--background-body);
  padding: 1.4rem 1.75rem 1.5rem;
  position: relative;
}
.btc-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: var(--ls-huge);
  text-transform: uppercase;
  color: var(--accent-navy);
  margin-bottom: 0.4rem;
}
.btc-term {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-md);
  color: var(--primary);
  line-height: 1.3;
  margin-bottom: 0.8rem;
}
.btc-bridge {
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 1.2rem;
  padding-bottom: 1.2rem;
  border-bottom: 1px dashed var(--border);
}
.btc-refs-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: var(--ls-wider);
  color: var(--ink);
  line-height: 1.5;
  margin-bottom: 0.55rem;
}
.btc-ref-list {
  list-style: decimal;
  padding-left: 1.3rem;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.btc-ref-list li {
  font-size: var(--fs-xs);
  color: var(--dark-blue);
  line-height: 1.65;
}
.btc-ref-list li em {
  font-style: italic;
}
.btc-ref-list li strong {
  font-weight: 600;
}

/* ════════════════════════════════════════════════════════════════
   TOPIC OVERLAY
   Slide-in topic detail panel (title, subtitle, description, explore button)
   Used in: index
   ════════════════════════════════════════════════════════════════ */

.topic-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: rgba(0, 0, 0, 0.45);
  align-items: flex-end;
  justify-content: center;
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
}
.topic-overlay.visible .topic-overlay-panel {
  transform: translateY(0);
  opacity: 1;
}
.topic-overlay-panel {
  background: var(--paper);
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  padding: 2rem 1.75rem 2.5rem;
  position: relative;
  transform: translateY(40px);
  opacity: 0;
  transition:
    transform 0.3s cubic-bezier(0.32, 0.72, 0, 1),
    opacity 0.25s ease;
  box-shadow: 0 -4px 32px rgba(0, 0, 0, 0.15);
}
.topic-overlay-panel::before {
  content: "";
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  margin: 0 auto 1.5rem;
}
.topic-overlay-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--background);
  border: none;
  color: var(--primary);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-sm);
  cursor: pointer;
  line-height: 1;
  transition: background 0.2s;
}
.topic-overlay-close:hover {
  background: var(--border-light);
}
.to-meta {
  margin-bottom: 1rem;
}
.to-subtitle {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.35rem;
}
.to-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-xl);
  color: var(--primary);
  line-height: 1.25;
  margin: 0;
}
.to-desc {
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.75;
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border-light);
}
.to-explore-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--primary);
  color: var(--paper);
  text-decoration: none;
  font-family: var(--font-body);
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: var(--ls-wider);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-pill);
  transition:
    opacity 0.2s,
    transform 0.15s;
  min-height: 44px;
}
.to-explore-btn:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.to-explore-btn:active {
  transform: translateY(0);
}

@media (hover: hover) and (pointer: fine) and (any-pointer: fine) {
  .topic-overlay {
    display: none !important;
  }
}

/* ════════════════════════════════════════════════════════════════
   BALANCE TABLE
   For / Against evidence table with icon badges and labelled columns
   Used in: DDx, DxClinicalReasoning, TxClinicalReasoning
   ════════════════════════════════════════════════════════════════ */

.balance-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 3rem;
}
.balance-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.balance-list li {
  font-size: var(--fs-sm);
  padding: 0.55rem 0;
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  line-height: 1.5;
  color: var(--primary);
}
.balance-side {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--bs-medium);
}
.balance-side-body {
  background: var(--paper);
  padding: 1.2rem 1.4rem;
}
.balance-side-head {
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.balance-side-head h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-base);
}
.balance-side.against .balance-list li::before {
  content: "−";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}
.balance-side.for .balance-list li::before {
  content: "+";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}
.balance-table {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.balance-table-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.8rem;
}
.balance-table-wrap {
  background: var(--paper);
  padding: 1.4rem 1.8rem;
}
.bs-icon {
  font-size: var(--fs-xl);
  flex-shrink: 0;
}
.bs-tag {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  color: var(--ink);
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-md);
  margin-left: auto;
}
.bt-col {
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--bs-medium);
}
.bt-col-body {
  background: var(--paper);
}
.bt-col-head {
  padding: 0.6rem 1rem;
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.bt-col.against-col .bt-col-head {
  background: var(--background);
  color: var(--primary);
  border-bottom: 1px solid var(--border);
}
.bt-col.against-col .bt-item::before {
  content: "−";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}
.bt-col.for-col .bt-col-head {
  background: var(--background);
  color: var(--primary);
  border-bottom: 1px solid var(--border-light);
}
.bt-col.for-col .bt-item::before {
  content: "+";
  color: var(--primary);
  font-weight: 700;
  flex-shrink: 0;
}
.bt-item {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-size: var(--fs-sm);
  padding: 0.6rem 1rem;
  line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════════
   DEFINITION & OBLIGATION BLOCK
   Obligation items with do-label, verdict card, and ex-num pill
   Used in: DDx, DxClinicalReasoning, TxClinicalReasoning
   ════════════════════════════════════════════════════════════════ */

.def-body {
  background: var(--paper);
  padding: 1.4rem 1.8rem;
}
.def-note {
  background: var(--background);
  padding: 0.9rem 1.8rem;
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.6;
}
.def-note strong {
  color: var(--primary);
  font-style: normal;
}
.def-obligation {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.def-obligation .do-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.2rem;
}
.do-item {
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
  font-size: var(--fs-sm);
  padding: 0.6rem 0;
  line-height: 1.6;
}
.do-item::before {
  content: "→";
  color: var(--muted);
  flex-shrink: 0;
  font-size: var(--fs-sm);
}
.example-head .ex-num-pill {
  background: var(--primary);
  color: var(--paper);
  font-size: var(--fs-xs);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-md);
  letter-spacing: var(--ls-widest);
  flex-shrink: 0;
}
.example-verdict {
  background: var(--background);
  padding: 1rem 1.8rem;
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.7;
}
.example-verdict .verd-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  margin-bottom: 0.4rem;
}
.example-verdict strong {
  color: var(--primary);
}

/* ════════════════════════════════════════════════════════════════
   FOUR-QUESTIONS BLOCK
   Four-quadrant question grid with numbered cards
   Used in: DDx
   ════════════════════════════════════════════════════════════════ */

.four-q-block {
  background: var(--primary);
  border-radius: var(--radius-md);
  padding: var(--space-5) var(--space-5);
  margin-bottom: var(--space-6);
  color: var(--background);
  position: relative;
  overflow: hidden;
}
.four-q-block .fq-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: hsla(0, 0%, 100%, 0.45);
  margin-bottom: 0.5rem;
  font-weight: 400;
}
.four-q-block .fq-subtitle {
  font-size: var(--fs-sm);
  color: hsla(0, 0%, 100%, 0.55);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.four-q-block h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-md);
  margin-bottom: 0.5rem;
  color: var(--paper);
}
.four-q-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.75rem;
}
.four-q-note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid hsla(0, 0%, 100%, 0.1);
  font-size: var(--fs-xs);
  color: hsla(0, 0%, 100%, 0.55);
  line-height: 1.7;
}
.four-q-note strong {
  color: var(--paper) !important;
  font-weight: 600;
}
.fq-card {
  background: hsla(0, 0%, 100%, 0.06);
  border-radius: var(--radius-sm);
  padding: 1.25rem;
}
.fq-card .fq-num {
  font-family: var(--font-display);
  font-size: var(--fs-2xl);
  font-weight: 300;
  color: var(--text-on-dark);
  line-height: 1;
  margin-bottom: 0.5rem;
}
.fq-card h4 {
  font-size: var(--fs-base);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: hsla(0, 0%, 100%, 0.75);
  margin-bottom: 0.4rem;
  font-weight: 500;
}
.fq-card p {
  font-size: var(--fs-xs);
  color: hsla(0, 0%, 100%, 0.55);
  line-height: 1.6;
}

/* ════════════════════════════════════════════════════════════════
   PRIORITY & PRESENTATION BLOCK
   Ranked priority rows and two-column before/after presentation compare
   Used in: DDx, DxClinicalReasoning, TxClinicalReasoning
   ════════════════════════════════════════════════════════════════ */

.pr-content h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-base);
  margin-bottom: 0.3rem;
}
.pr-content p {
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.6;
}
.pr-content p strong {
  color: var(--primary);
}
.pr-rank {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 500;
  flex-shrink: 0;
  margin-top: 2px;
}
.pres-col {
  padding: 1.4rem 1.6rem;
}
.pres-col .pc-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: block;
}
.pres-col p {
  font-size: var(--fs-sm);
  line-height: 1.8;
  color: var(--primary);
  font-style: italic;
}
.pres-col .pc-label {
  color: var(--primary);
}
.presentation-block {
  box-shadow: var(--bs-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}
.presentation-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper);
}
.presentation-head {
  background: var(--background);
  padding: 1.2rem 1.8rem;
}
.presentation-head .ph-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.3rem;
}
.presentation-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-md);
}
.presentation-note {
  background: var(--background);
  padding: 0.9rem 1.8rem;
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.6;
}
.presentation-note strong {
  color: var(--primary);
}
.priority-block {
  box-shadow: var(--bs-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}
.priority-head {
  background: var(--background);
  padding: 1.2rem 1.8rem;
}
.priority-head .ph-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.3rem;
}
.priority-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-md);
}
.priority-note {
  background: var(--background);
  padding: 0.9rem 1.8rem;
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.6;
}
.priority-note strong {
  color: var(--primary);
}
.priority-row {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  padding: 1.1rem 1.8rem;
  transition: background 0.15s;
}
.priority-row:hover {
  background: var(--background);
}
.priority-row:last-child {
  border-bottom: none;
}
.priority-row .pr-content h4 {
  color: var(--primary);
}
.priority-row .pr-rank {
  background: var(--background);
  color: var(--primary);
}
.priority-rows {
  background: var(--paper);
}

/* ════════════════════════════════════════════════════════════════
   BEFORE / AFTER BLOCK
   Side-by-side before/after comparison columns with labels
   Used in: NarrativeCompetency, Questioning
   ════════════════════════════════════════════════════════════════ */

.ba-col {
  border-radius: var(--radius-sm);
  padding: 0.8rem 1rem;
  font-size: var(--fs-sm);
  line-height: 1.6;
}
.ba-col .ba-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  font-weight: 500;
  display: block;
  margin-bottom: 0.3rem;
}
.ba-col.after {
  background: var(--background);
  color: var(--primary);
  box-shadow: var(--bs-medium);
}
.ba-col.after .ba-label {
  color: var(--muted);
}
.ba-col.before {
  background: var(--background);
  box-shadow: var(--bs-medium);
  color: var(--primary);
  font-style: italic;
}
.ba-col.before .ba-label {
  color: var(--primary);
}
.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
  margin-top: 0.8rem;
}

/* ════════════════════════════════════════════════════════════════
   DISTINCTION BLOCK
   Two-side distinction comparison with divider arrow
   Used in: NarrativeCompetency, Questioning
   ════════════════════════════════════════════════════════════════ */

.dist-divider {
  text-align: center;
  color: var(--primary);
  font-size: var(--fs-xl);
}
.dist-side .ds-type {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  display: block;
  font-weight: 600;
}
.dist-side h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-md);
  margin-bottom: 0.4rem;
}
.dist-side p {
  font-size: var(--fs-sm);
  color: var(--text-primary);
  line-height: 1.6;
}
.dist-side:first-child .ds-type {
  color: var(--muted);
}
.dist-side:first-child h3 {
  color: var(--primary);
}
.dist-side:last-child .ds-type {
  color: var(--muted);
}
.dist-side:last-child h3 {
  color: var(--primary);
}
.distinction-block {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 2rem 2.5rem;
  margin-bottom: 3rem;
  color: var(--primary);
  position: relative;
  overflow: hidden;
  box-shadow: var(--bs-medium);
}
.distinction-block .db-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-huge);
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 0.8rem;
}
.distinction-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
}

/* ════════════════════════════════════════════════════════════════
   IMPACT CARD
   Good / poor impact cards with icon and item lists
   Used in: NarrativeCompetency, Questioning
   ════════════════════════════════════════════════════════════════ */

.impact-card,
.mc-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--bs-medium);
}
.impact-card-head {
  padding: 0.9rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.impact-card-head .ic-icon {
  font-size: var(--fs-base);
  flex-shrink: 0;
}
.impact-card-head h4,
.mc-card-head h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-base);
}
.impact-card.good .impact-card-head,
.impact-card.poor .impact-card-head {
  background: var(--background);
}
.impact-card.good .impact-card-head h4,
.impact-card.poor .impact-card-head h4 {
  color: var(--primary);
}
.impact-card.good .impact-item::before {
  font-family: bootstrap-icons;
  content: "";
  color: var(--primary);
  font-size: var(--fs-xs);
  flex-shrink: 0;
}
.impact-card.poor .impact-item::before {
  font-family: bootstrap-icons;
  content: "";
  color: var(--primary);
  font-size: var(--fs-xs);
  flex-shrink: 0;
}
.impact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 3rem;
}
.impact-item {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  padding: 0.5rem 1.3rem;
  border-bottom: 1px solid var(--border-light);
  font-size: var(--fs-sm);
  line-height: 1.5;
}
.impact-item:last-child {
  border-bottom: none;
}
.impact-items {
  background: var(--paper);
  padding: 0.5rem 0;
}

/* ════════════════════════════════════════════════════════════════
   SEEKER–RESPONDER BLOCK
   Numbered role cards (seeker / responder) with name tag and content
   Used in: NarrativeCompetency, Questioning
   ════════════════════════════════════════════════════════════════ */

.sr-content {
  padding: 1.1rem 1.4rem;
}
.sr-content .sc-example {
  font-size: var(--fs-xs);
  color: var(--primary);
  font-style: italic;
  border-left: 2px solid var(--border-light);
  padding-left: 0.6rem;
  margin-top: 0.4rem;
}
.sr-content p {
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.65;
  margin-bottom: 0.3rem;
}
.sr-content p strong {
  color: var(--primary);
}
.sr-name {
  padding: 1.1rem 1rem;
}
.sr-name .sn-tag {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--primary);
}
.sr-name h4 {
  font-weight: 500;
  font-size: var(--fs-base);
  color: var(--primary);
  margin-bottom: 0.2rem;
}
.sr-num {
  padding: 1.1rem 0.8rem 1.1rem 1.2rem;
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 300;
  color: var(--muted);
  line-height: 1;
  padding-top: 1.3rem;
}

/* ════════════════════════════════════════════════════════════════
   STEPS FLOW
   Vertical connected step sequence with circles, tags, and body text
   Used in: BeDefensible, ExaminationHypothesisTesting, NarrativeCompetency, Questioning, Uncertainty
   ════════════════════════════════════════════════════════════════ */

.step-body {
  padding: 1.2rem 1.5rem;
}
.step-body p {
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.75;
  margin-bottom: 0.8rem;
}
.step-body p strong {
  color: var(--primary);
}
.step-body p:last-child {
  margin-bottom: 0;
}
.step-circle {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 500;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  box-shadow: var(--bs-medium);
  color: var(--background);
}
.step-content {
  background: var(--paper);
  box-shadow: var(--bs-medium);
  border-radius: var(--radius-md);
  margin: 0.6rem 0 0.6rem 1rem;
  overflow: hidden;
}
.step-content:hover {
  box-shadow: var(--bs-heavy);
}
.step-head {
  padding: 1.1rem 1.5rem;
  background: var(--master);
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}
.step-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-md);
}
.step-item {
  display: grid;
  grid-template-columns: 4.3rem 1fr;
  gap: 0;
  position: relative;
  z-index: 1;
}
.step-item .step-circle {
  background: var(--primary);
}
.step-item .step-tag {
  color: var(--muted);
}
.step-num-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 1.6rem;
}
.step-tag {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.steps-flow {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 3rem;
  position: relative;
}
.steps-flow::before {
  content: "";
  position: absolute;
  left: 2.15rem;
  top: 3.5rem;
  bottom: 3.5rem;
  width: 2px;
  background: var(--border);
  z-index: 0;
}

/* ════════════════════════════════════════════════════════════════
   STRUCTURE BLOCK
   Labelled row-based structure layout with head and note
   Used in: NarrativeCompetency, Questioning
   ════════════════════════════════════════════════════════════════ */

.structure-block {
  box-shadow: var(--bs-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}
.structure-head {
  background: var(--background);
  padding: 1.2rem 1.8rem;
}
.structure-head .sh-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.3rem;
}
.structure-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-md);
}
.structure-note {
  background: var(--background);
  padding: 0.9rem 1.8rem;
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.6;
}
.structure-note strong {
  color: var(--primary);
}
.structure-rows {
  background: var(--paper);
}
.structure-row {
  display: grid;
  grid-template-columns: 3rem 1fr 2fr;
  align-items: start;
  transition: background 0.15s;
}
.structure-row:hover {
  background: var(--background);
}
.structure-row:last-child {
  border-bottom: none;
}
.structure-row h4 {
  color: var(--primary);
}

/* ════════════════════════════════════════════════════════════════
   TRANSFORMATION BLOCK
   Before → after transformation with arrow column and role labels
   Used in: NarrativeCompetency, Questioning
   ════════════════════════════════════════════════════════════════ */

.trans-arrow-col {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 0.5rem;
}
.trans-arrow-col .ta-arrow {
  font-size: var(--fs-xl);
  color: var(--primary);
  display: block;
  margin-bottom: 0.3rem;
}
.trans-arrow-col .ta-inner {
  text-align: center;
}
.trans-arrow-col .ta-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--primary);
  display: block;
  line-height: 1.4;
}
.trans-col {
  padding: 1.8rem;
}
.trans-col .tc-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--border);
  display: block;
}
.trans-col .tc-role {
  font-size: var(--fs-sm);
  color: var(--primary);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.trans-col.clinical .tc-label {
  color: var(--primary);
}
.trans-col.clinical p {
  color: var(--primary);
  font-style: normal;
  background: var(--surface-subtle);
  border-color: var(--border-light);
  font-style: italic;
}
.trans-col.raw .tc-label {
  color: var(--primary);
}
.trans-col.raw p {
  color: var(--primary);
  font-style: normal;
  background: var(--surface-subtle);
  border-color: var(--border-light);
  font-style: italic;
}
.trans-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  background: var(--paper);
}
.trans-head {
  background: var(--background);
  color: var(--paper);
  padding: 1.2rem 1.8rem;
  border-bottom: 1px solid rgba(232, 200, 154, 0.2);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.trans-head .tag-pill {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--muted);
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}
.trans-note {
  background: var(--background);
  padding: 1rem 1.8rem;
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.6;
  text-align: center;
}
.trans-note strong {
  color: var(--primary);
}
.transformation-block {
  box-shadow: var(--bs-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}

/* ════════════════════════════════════════════════════════════════
   MISCONCEPTION CARD
   Right / wrong misconception card pairs with icon
   Used in: Uncertainty, VisitRevisit
   ════════════════════════════════════════════════════════════════ */

.mc-card-body {
  background: var(--paper);
  padding: 1.1rem 1.4rem;
}
.mc-card-head {
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.mc-card.right .mc-card-head,
.mc-card.wrong .mc-card-head {
  background: var(--background);
}
.mc-card.right .mc-card-head h4,
.mc-card.wrong .mc-card-head h4 {
  color: var(--primary);
}
.mc-icon {
  font-size: var(--fs-base);
  flex-shrink: 0;
}
.misconception-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
  margin-bottom: 3rem;
}

/* ════════════════════════════════════════════════════════════════
   EXAMPLE BLOCK
   Clinical example with scenario, verdict, numbered card, and three-col layout
   Used in: DDx, ExaminationHypothesisTesting, KeyModifiers, Summary
   ════════════════════════════════════════════════════════════════ */

.example-block {
  box-shadow: var(--bs-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.5rem;
}
.example-head {
  background: var(--background);
  padding: 1.2rem 1.8rem;
  display: flex;
  align-items: baseline;
  gap: 1rem;
}
.example-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-md);
}
.example-scenario {
  background: var(--paper);
  padding: 1.2rem 1.8rem;
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.7;
}
.example-scenario strong {
  color: var(--primary);
}
.ec-num {
  font-family: var(--font-display);
  font-size: var(--fs-base);
  font-weight: 300;
  color: var(--primary);
  flex-shrink: 0;
}
.example-card {
  box-shadow: var(--bs-medium);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.example-three-col {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  background: var(--paper);
}
.examples-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 3rem;
}

/* ════════════════════════════════════════════════════════════════
   CHECKLIST BLOCK
   Labelled checklist with subtitle header
   Used in: ExaminationHypothesisTesting, Investigations
   ════════════════════════════════════════════════════════════════ */

.checklist-block .cb-subtitle {
  font-size: var(--fs-xs);
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  letter-spacing: var(--ls-wider);
}

/* ════════════════════════════════════════════════════════════════
   DEFINITION BLOCK
   Standalone definition card
   Used in: BeDefensible, DDx, DxClinicalReasoning, TxClinicalReasoning
   ════════════════════════════════════════════════════════════════ */

.definition-block {
  box-shadow: var(--bs-medium);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 3rem;
}

/* ════════════════════════════════════════════════════════════════
   PREFACE OVERLAY
   Full-screen preface modal with trigger, close button, label, and quote
   Used in: index
   ════════════════════════════════════════════════════════════════ */

.preface-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.preface-overlay.visible {
  display: flex;
  opacity: 1;
}
.preface-overlay.hidden {
  display: none;
}
.preface-modal {
  background: var(--border-light, #eaf4f8);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 88vh;
  overflow-y: auto;
  padding: 0;
  position: relative;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.28);
  box-sizing: border-box;
}
.preface-modal .callout-left--awareness {
  padding: 2.8rem;
}
.preface-modal .callout-left__bridge-steps {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.preface-modal .callout-left__bridge-step {
  padding: 1rem;
  background: hsla(0, 0%, 100%, 0.4);
  border-radius: var(--radius-md);
  transition: background 0.2s ease;
}
.preface-modal .callout-left__bridge-step:hover {
  background: hsla(0, 0%, 100%, 0.6);
}
.preface-modal .callout-left__bridge-step h4 {
  margin-bottom: 0.5rem;
  color: var(--primary, #1a1a1a);
}
.preface-modal .callout-left__bridge-step p {
  margin-bottom: 0;
  line-height: 1.6;
}
.preface-modal .dc-label {
  display: inline-block;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.preface-modal .description-text {
  line-height: 1.7;
  margin-bottom: 1.5rem;
  color: var(--text-primary, #3a3530);
}
.preface-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  background: rgba(0, 0, 0, 0.05);
  border: none;
  font-size: 1.2rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--muted, #888);
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 10;
}
.preface-close:hover {
  background: rgba(0, 0, 0, 0.12);
  color: #1a1a1a;
  transform: scale(1.05);
}
.preface-modal::-webkit-scrollbar {
  width: 6px;
}
.preface-modal::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
  border-radius: 10px;
}
.preface-modal::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 10px;
}
.preface-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(0, 0, 0, 0.3);
}
.preface-label {
  font-size: var(--fs-xs, 0.72rem);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 1rem;
}
.preface-quote {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-lg, 1.35rem);
  line-height: 1.55;
  color: var(--primary, #1a1a1a);
  border: none;
  margin: 0 0 1.8rem 0;
  padding: 0 0 1.4rem 0;
  border-bottom: 1px dashed var(--border-light, #ddd);
}

/* ════════════════════════════════════════════════════════════════
   RESPONSIVE – MEDIA QUERIES
   Breakpoint overrides for tablet (≤700px, 701–950px landscape) and mobile (≤480px)
   Used in: All pages
   ════════════════════════════════════════════════════════════════ */

@media (max-width: 700px) {
  .container {
    padding: 0 1rem;
    width: 100%;
  }
  header h1 {
    font-size: var(--fs-xl);
    line-height: 1.2;
  }
  header h1 span {
    display: block;
  }
  header::before {
    font-size: var(--fs-watermark);
  }
  .home-btn {
    bottom: 0.5rem;
    right: 0.5rem;
    padding: 0.4rem 0.8rem;
    font-size: var(--fs-xs);
  }
  .section-label h3 {
    font-size: var(--fs-lg);
    font-weight: 600;
  }
  .section-label .num {
    font-size: var(--fs-xs);
    padding: 0.3rem 0.6rem;
  }
  footer p {
    font-size: var(--fs-xs);
  }
  .core-banner,
  .def-contrast,
  .failure-block,
  .maturity-compare,
  .barrier-compare,
  .authority-compare,
  .trans-compare,
  .mis-compare,
  .ndx-compare,
  .compare-grid,
  .speech-compare,
  .core-contrast {
    display: grid;
    grid-template-columns: 1fr;
  }
  .cb-arrow,
  .nf-arrow,
  .conf-arrow,
  .tbf-arrow,
  .reg-arrow {
    transform: rotate(90deg);
  }
  .socrates-grid,
  .domains-grid,
  .traits-grid,
  .pillars-grid,
  .four-q-grid {
    grid-template-columns: 1fr 1fr;
  }
  .example-three-col,
  .etc-col,
  .narrowing-flow,
  .dialogue-head,
  .dl-line,
  .arg-step,
  .hierarchy-row,
  .hp-item,
  .phrase-item,
  .xref-block,
  .reminder-pills,
  .checklist-row,
  .sequence-block,
  .errors-grid,
  .tq-grid,
  .bridge-steps,
  .comp-pair,
  .three-skills,
  .ladder-item,
  .confidence-spectrum,
  .balance-intro,
  .balance-table,
  .presentation-compare,
  .pb-three,
  .flow-block,
  .relevance-block,
  .exam-grid,
  .mismatch-grid,
  .checklist-steps,
  .tier-diagnostic .purposes-grid,
  .tier-management .purposes-grid,
  .tab-compare,
  .checklist-grid,
  .sequence-flow,
  .distinction-row,
  .before-after,
  .structure-row,
  .impact-grid,
  .pipeline-stages,
  .trans-three-col,
  .registers-flow,
  .priority-flow,
  .midnight-calls,
  .dx-spectrum,
  .tier-flow,
  .wb-systems,
  .prob-tiers,
  .misconception-block,
  .fw-step,
  .circle-stages,
  .osce-grid,
  .why-rules-grid,
  .tb-flow,
  .cr-content,
  .sr-content,
  .ssr-content,
  .step-content,
  .level-content,
  .principle-row,
  .wc-card,
  .tt-card,
  .tl-item,
  .habits-grid,
  .contrast-grid,
  .levels-grid,
  .twoq-filter,
  .wheeze-cards,
  .tt-grid,
  .core-principle,
  .yield-grid,
  .scr-grid,
  .ss-row,
  .level-item,
  .tlc-body {
    grid-template-columns: 1fr;
  }
  .paeds-clues-grid {
    grid-template-columns: 1fr 1fr;
  }
  .traits-grid .trait-card:last-child {
    grid-column: 1/-1;
  }
  .soc-item:nth-child(2n),
  .dc-col:first-child,
  .etc-col,
  .mat-col:first-child,
  .barrier-col:first-child,
  .auth-col:first-child,
  .trans-col:first-child,
  .mis-col:first-child,
  .ndx-col:first-child,
  .cmp-col:first-child,
  .speech-col:first-child,
  .pres-col:first-child,
  .tq-card,
  .flow-step,
  .tlcb-col:first-child,
  .tab-col:first-child,
  .seq-step,
  .tier-col:first-child,
  .wc-card,
  .tt-card,
  .etcol,
  .prob-tier {
    border-right: none;
  }
  .soc-item:nth-child(n + 7),
  .etc-col:last-child,
  .mat-col:last-child,
  .tq-card:last-child,
  .wc-card:last-child,
  .tt-card:last-child,
  .etcol:last-child,
  .prob-tier:last-child,
  .seq-step:last-child {
    border-bottom: none;
  }
  .dc-col:first-child,
  .mat-col:first-child,
  .barrier-col:first-child,
  .auth-col:first-child,
  .tlcb-col:first-child,
  .tab-col:first-child {
    border-bottom: none;
  }
  header {
    padding: 1rem 1.5rem;
    gap: 0.6rem;
    flex-wrap: wrap;
  }
  .header-logo-img {
    height: 52px;
  }
  .header-text {
    flex: 1;
    min-width: 0;
  }
  .preface-trigger {
    padding: 0.3rem 0.7rem;
    font-size: var(--fs-xs);
  }
  .step-grid,
  .step-grid--3 {
    grid-template-columns: 1fr 1fr;
  }
  .mapping-split {
    grid-template-columns: 1fr;
  }
  .mapping-split .ms-divider {
    display: none;
  }
  .lo-card h2,
  .reminder-box h2,
  .summary-panel h3 {
    font-size: var(--fs-lg);
  }
  .step-box .sb-num {
    font-size: var(--fs-2xl);
  }
  .wb-compare {
    grid-template-columns: 1fr;
  }
  .ta-arrow {
    transform: rotate(90deg);
  }
  .internal-reasoning,
  .external-reasoning {
    flex: 1 1 100%;
  }
  .principle-num-col {
    padding: 0.5rem 0;
  }
  .compare-table-block {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .compare-table {
    min-width: 520px;
  }
  .compare-table td:first-child {
    white-space: normal;
  }
  .cr-mapping-table {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

@media (min-width: 701px) and (max-width: 950px) and (orientation: landscape) {
  header h1 {
    font-size: var(--fs-2xl);
    line-height: 1.2;
  }
  header::before {
    font-size: var(--fs-watermark);
  }
  .section-label h3 {
    font-size: var(--fs-lg);
  }
  .lo-card h2,
  .reminder-box h2,
  .summary-panel h3 {
    font-size: var(--fs-lg);
  }
  .dark-card blockquote {
    font-size: var(--fs-lg);
  }
  .step-box .sb-num {
    font-size: var(--fs-2xl);
  }
  .fq-card .fq-num {
    font-size: var(--fs-xl);
  }
  .card-block-head h3,
  .dark-card h3,
  .callout-left h3 {
    font-size: var(--fs-md);
  }
  footer p {
    font-size: var(--fs-xs);
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0.8rem;
  }
  header {
    gap: 0.4rem;
  }
  header h1 {
    font-size: var(--fs-lg);
  }
  header::before {
    font-size: var(--fs-watermark);
  }
  .header-logo-img {
    height: 40px;
  }
  .preface-trigger {
    padding: 0.25rem 0.55rem;
    font-size: var(--fs-xs);
    letter-spacing: 0.04em;
  }
  .final-message blockquote,
  .dark-card blockquote,
  .safety-centrepiece blockquote,
  .core-principle blockquote,
  .principle-block blockquote,
  .smoke-block blockquote,
  .circle-block blockquote,
  .prob-spectrum-head blockquote,
  .teaching-line blockquote {
    font-size: var(--fs-base);
  }
  .golden-rule h3,
  .reflection-rule h3,
  .selfcheck-rule h3,
  .fnl-text h3,
  .osce-head h3,
  .loop-block-head h3,
  .wb-head h3,
  .tier-col h3,
  .cc-side h3,
  .example-card-head h4,
  .errors-block h3,
  .mistakes-block h3,
  .card-block-head h3,
  .dark-card h3,
  .callout-left h3,
  .section-label h3 {
    font-size: var(--fs-base);
  }
  .lo-card h2,
  .reminder-box h2,
  .summary-panel h3 {
    font-size: var(--fs-base);
  }
  .step-box .sb-num {
    font-size: var(--fs-xl);
  }
  .fq-card .fq-num {
    font-size: var(--fs-lg);
  }
  .domains-grid,
  .traits-grid,
  .pillars-grid,
  .four-q-grid,
  .socrates-grid {
    grid-template-columns: 1fr;
  }
  .paeds-clues-grid {
    grid-template-columns: 1fr 1fr;
  }
  .fm-pills {
    flex-direction: column;
    gap: 0.4rem;
  }
  .fm-pill {
    width: 100%;
    text-align: center;
  }
  .takehome .th-pills {
    flex-direction: column;
  }
  .step-grid,
  .step-grid--3 {
    grid-template-columns: 1fr;
  }
  .cycle-block h3,
  .thinking-tool-block h3,
  .framework-block h3,
  .four-q-block h3 {
    font-size: var(--fs-base);
  }
  .dist-side h3,
  .structure-head h3,
  .step-head h3,
  .presentation-head h3,
  .priority-head h3,
  .sc-text-col h3,
  .trans-head h3 {
    font-size: var(--fs-base);
  }
  footer p {
    font-size: var(--fs-xs);
  }
}

@media (max-width: 700px) {
  .reminder-box h2 em {
    font-size: var(--fs-base);
  }
}

@media (max-width: 480px) {
  .reminder-box h2 em {
    font-size: var(--fs-sm);
  }
}

/* ─────────────────────────────────────────
         DISTINCTION BLOCK (neutral)
      ───────────────────────────────────────── */
.distinct-block {
  box-shadow: var(--bs-medium);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 3rem;
}

.d-head {
  background: var(--master);
  padding: 1.2rem 1.8rem;
}

.d-head .dh-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.d-head h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-md);
  margin: 0;
}

.d-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
}

.d-col {
  padding: 1.5rem 1.8rem;
}

.d-col .dc-label {
  font-size: var(--fs-xs);
  letter-spacing: var(--ls-widest);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dashed var(--border);
  display: block;
}

.d-col:first-child .dc-label,
.d-col:last-child .dc-label {
  color: var(--primary);
}

.d-col h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: var(--fs-base);
  margin-bottom: 0.5rem;
}

.d-col:first-child h4,
.d-col:last-child h4 {
  color: var(--primary);
}

.d-col p {
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.7;
}

.d-col p strong {
  color: var(--primary);
}

.d-note {
  background: var(--background);
  padding: 1rem 1.8rem;
  font-size: var(--fs-sm);
  color: var(--primary);
  line-height: 1.6;
  width: 100%;
  box-sizing: border-box;
}

.d-note strong {
  color: var(--primary);
}

@media (max-width: 700px) {
  .d-grid {
    grid-template-columns: 1fr;
  }

  .d-col:first-child {
    border-bottom: 1px solid var(--border-light, #e9ecef);
  }
}
