/* ─────────────────────────────────────────────────────────────
   Sepsis Clarity — Design System
   Deep teal trust · coral urgency · warm paper light
───────────────────────────────────────────────────────────── */

:root {
  --ink: #0b1c24;
  --ink-soft: #16303b;
  --teal: #0d7377;
  --teal-deep: #095456;
  --teal-light: #14919b;
  --teal-mist: #e6f4f5;
  --coral: #e85d4c;
  --coral-deep: #c94436;
  --coral-soft: #fdece9;
  --gold: #c4a35a;
  --paper: #f7f4ef;
  --paper-2: #ffffff;
  --muted: #5a6f78;
  --line: rgba(11, 28, 36, 0.1);
  --shadow: 0 16px 48px rgba(11, 28, 36, 0.1);
  --shadow-sm: 0 4px 16px rgba(11, 28, 36, 0.06);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
  --max: 1120px;
  --header-h: 68px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 48px);
}

body {
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 70% 40% at 0% 0%, rgba(13, 115, 119, 0.09), transparent 50%),
    radial-gradient(ellipse 50% 35% at 100% 10%, rgba(232, 93, 76, 0.06), transparent 45%),
    var(--paper);
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color 0.2s;
}

a:hover {
  color: var(--teal-deep);
}

img {
  max-width: 100%;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Emergency strip */
.em-strip {
  background: linear-gradient(90deg, var(--coral-deep), var(--coral));
  color: #fff;
  text-align: center;
  padding: 0.55rem 1rem;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  position: sticky;
  top: 0;
  z-index: 200;
}

.em-strip a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
  margin-left: 0.35rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 34px;
  z-index: 150;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(247, 244, 239, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: linear-gradient(145deg, var(--teal-light), var(--teal-deep));
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: -0.02em;
  box-shadow: 0 6px 16px rgba(13, 115, 119, 0.3);
}

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

.logo-text strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
}

.logo-text span {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.nav-desktop {
  display: none;
  gap: 0.15rem;
  flex-wrap: wrap;
  justify-content: center;
}

.nav-desktop a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 550;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  transition: all 0.2s;
}

.nav-desktop a:hover {
  color: var(--teal-deep);
  background: var(--teal-mist);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switch {
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  box-shadow: var(--shadow-sm);
}

.lang-btn {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 0.38rem 0.65rem;
  border-radius: 999px;
  color: var(--muted);
  transition: all 0.2s var(--ease);
}

.lang-btn.active {
  background: var(--ink);
  color: #fff;
}

.menu-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 2px;
  background: var(--ink);
  margin: 2px 0;
  border-radius: 2px;
}

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: calc(34px + var(--header-h)) 0 0 0;
  background: rgba(247, 244, 239, 0.98);
  z-index: 140;
  padding: 1.5rem;
  overflow-y: auto;
  flex-direction: column;
  gap: 0.35rem;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 600;
  font-size: 1.05rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
}

.nav-mobile a:hover {
  background: var(--teal-mist);
  border-color: rgba(13, 115, 119, 0.15);
}

/* Hero */
.hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 4.5rem) 1.25rem 2.5rem;
}

.hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.2fr 0.9fr;
  }
  .nav-desktop {
    display: flex;
  }
  .menu-btn {
    display: none;
  }
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}

.hero-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 0 4px var(--coral-soft);
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(2.1rem, 5.2vw, 3.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 1.25rem;
  max-width: 16ch;
}

.hero-lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38rem;
  margin-bottom: 1.75rem;
  font-weight: 400;
  line-height: 1.7;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 650;
  font-size: 0.9rem;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--coral), var(--coral-deep));
  color: #fff;
  box-shadow: 0 10px 28px rgba(232, 93, 76, 0.3);
}

.btn-primary:hover {
  color: #fff;
}

.btn-secondary {
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  color: var(--ink);
  border-color: rgba(13, 115, 119, 0.3);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 1rem 0.75rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.stat-card .num {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 650;
  color: var(--teal-deep);
  line-height: 1.1;
}

.stat-card .label {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.35;
  font-weight: 500;
}

.hero-panel {
  background: linear-gradient(160deg, var(--ink) 0%, var(--ink-soft) 100%);
  color: #e8f0f2;
  border-radius: 24px;
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 145, 155, 0.35), transparent 70%);
  top: -40px;
  right: -40px;
}

.hero-panel h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 550;
  margin-bottom: 0.75rem;
  position: relative;
  z-index: 1;
}

.hero-panel p {
  font-size: 0.92rem;
  opacity: 0.85;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  line-height: 1.6;
}

.pulse-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  position: relative;
  z-index: 1;
}

.pulse-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
  font-size: 0.88rem;
}

.pulse-list .badge {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--coral);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.75rem;
}

/* Sections */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.section-alt {
  background: linear-gradient(180deg, transparent, rgba(13, 115, 119, 0.04) 20%, rgba(13, 115, 119, 0.04) 80%, transparent);
}

.section-head {
  margin-bottom: 1.75rem;
  max-width: 42rem;
}

.section-head .eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  font-weight: 550;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.section-head p {
  color: var(--muted);
  font-size: 1.02rem;
}

/* Cards */
.card-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr));
}

.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.55rem;
  line-height: 1.25;
}

.card p,
.card li {
  color: var(--muted);
  font-size: 0.93rem;
  line-height: 1.65;
}

/* TIME letters */
.time-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  margin-bottom: 1.5rem;
}

.time-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.time-card .letter {
  font-family: var(--font-display);
  font-size: 2.75rem;
  font-weight: 700;
  line-height: 1;
  color: var(--coral);
  opacity: 0.9;
  margin-bottom: 0.35rem;
}

.time-card h3 {
  font-size: 1.05rem;
  margin-bottom: 0.4rem;
}

.time-card p {
  font-size: 0.88rem;
  color: var(--muted);
}

.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 1rem;
}

.bullet-list li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--muted);
  font-size: 0.95rem;
}

.bullet-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

/* Steps */
.steps {
  display: grid;
  gap: 0.85rem;
}

.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  box-shadow: var(--shadow-sm);
}

.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal-mist);
  color: var(--teal-deep);
  font-weight: 800;
  display: grid;
  place-items: center;
  font-size: 0.9rem;
}

.step h3 {
  font-size: 1.02rem;
  margin-bottom: 0.25rem;
}

.step p {
  color: var(--muted);
  font-size: 0.92rem;
}

.quote-box {
  margin-top: 1.5rem;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius);
  background: var(--coral-soft);
  border-left: 4px solid var(--coral);
}

.quote-box .label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral-deep);
  margin-bottom: 0.4rem;
}

.quote-box blockquote {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 550;
  line-height: 1.35;
  color: var(--ink);
}

.note {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--muted);
  font-style: italic;
}

/* Evidence */
.evidence-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .evidence-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.evidence-col {
  border-radius: var(--radius);
  padding: 1.35rem;
  border: 1px solid var(--line);
  background: #fff;
}

.evidence-col.good {
  border-top: 4px solid var(--teal);
}

.evidence-col.bad {
  border-top: 4px solid var(--coral);
}

.evidence-col h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.evidence-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.evidence-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.evidence-item strong {
  display: block;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
  color: var(--ink);
}

.evidence-item span {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.55;
}

/* Timeline — scannable steps, not a wall of text */
.timeline-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

@media (max-width: 800px) {
  .timeline-tabs {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 420px) {
  .timeline-tabs {
    grid-template-columns: 1fr;
  }
}

.tl-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0.7rem 0.75rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  transition: all 0.2s var(--ease);
  text-align: left;
  min-height: 4.25rem;
}

.tl-tab-num {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--teal);
  opacity: 0.75;
}

.tl-tab-label {
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink);
}

.tl-tab:hover {
  border-color: rgba(13, 115, 119, 0.35);
  box-shadow: var(--shadow-sm);
}

.tl-tab.done {
  background: var(--teal-mist);
  border-color: rgba(13, 115, 119, 0.18);
}

.tl-tab.active {
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 0 10px 28px rgba(11, 28, 36, 0.18);
}

.tl-tab.active .tl-tab-num,
.tl-tab.active .tl-tab-label {
  color: #fff;
  opacity: 1;
}

.tl-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  animation: fadeUp 0.35s var(--ease);
}

.tl-panel-top {
  background: linear-gradient(135deg, #fff 0%, var(--teal-mist) 100%);
  border: 1px solid rgba(13, 115, 119, 0.14);
  border-radius: 20px;
  padding: 1.25rem 1.35rem 1.35rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-sm);
}

.tl-step {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.4rem;
}

.tl-panel-top h3 {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.8vw, 1.85rem);
  font-weight: 600;
  margin-bottom: 0.55rem;
  line-height: 1.2;
  color: var(--ink);
}

.tl-summary {
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--ink);
  font-weight: 600;
  max-width: 42rem;
  margin-bottom: 0.45rem;
}

.tl-cols {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .tl-cols {
    grid-template-columns: 1fr 1fr;
  }
}

.tl-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.15rem 1.15rem 1.2rem;
  box-shadow: var(--shadow-sm);
  border-top: 3px solid var(--teal);
  min-height: 100%;
}

.tl-card--goals {
  border-top-color: var(--teal);
}

.tl-card--expect {
  border-top-color: #6b8cae;
}

.tl-card--do {
  border-top-color: #2f9e7a;
}

.tl-card--avoid {
  border-top-color: var(--coral);
  background: linear-gradient(180deg, #fff 78%, var(--coral-soft));
}

.tl-card-head {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(11, 28, 36, 0.06);
}

.tl-card-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
  background: var(--teal-mist);
  color: var(--teal-deep);
  flex-shrink: 0;
}

.tl-card--expect .tl-card-icon {
  background: #e8eef5;
  color: #3d5a73;
}

.tl-card--do .tl-card-icon {
  background: #e5f6f0;
  color: #1f7a5c;
}

.tl-card--avoid .tl-card-icon {
  background: var(--coral-soft);
  color: var(--coral-deep);
}

.tl-card-head h4 {
  font-size: 1rem;
  font-weight: 750;
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  margin: 0;
  flex: 1;
  line-height: 1.25;
}

/* Full detail list — scannable, not a wall */
.tl-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  counter-reset: tlitem;
  margin: 0;
  padding: 0;
}

.tl-list li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink);
  background: rgba(11, 28, 36, 0.025);
  border: 1px solid rgba(11, 28, 36, 0.05);
  border-radius: 12px;
  padding: 0.65rem 0.75rem;
  font-weight: 450;
}

.tl-list li::before {
  counter-increment: tlitem;
  content: counter(tlitem);
  flex-shrink: 0;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--teal-mist);
  color: var(--teal-deep);
  font-size: 0.7rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-top: 0.1rem;
}

.tl-card--expect .tl-list li::before {
  background: #e8eef5;
  color: #3d5a73;
}

.tl-card--do .tl-list li::before {
  background: #e5f6f0;
  color: #1f7a5c;
}

.tl-card--avoid .tl-list li {
  background: rgba(232, 93, 76, 0.05);
  border-color: rgba(232, 93, 76, 0.1);
  color: #5c281f;
}

.tl-card--avoid .tl-list li::before {
  content: "!";
  background: var(--coral-soft);
  color: var(--coral-deep);
  counter-increment: none;
}

.tl-card--do .tl-list li {
  background: rgba(47, 158, 122, 0.05);
  border-color: rgba(47, 158, 122, 0.1);
}

/* PSS columns */
.split-3 {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  margin-bottom: 1.25rem;
}

.pill-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.pill-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 2px solid var(--teal-mist);
}

.pill-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.pill-card li {
  font-size: 0.88rem;
  color: var(--muted);
  padding-left: 0.9rem;
  position: relative;
  line-height: 1.45;
}

.pill-card li::before {
  content: "·";
  position: absolute;
  left: 0;
  color: var(--teal);
  font-weight: 900;
}

.callout {
  background: linear-gradient(135deg, var(--teal-mist), #fff);
  border: 1px solid rgba(13, 115, 119, 0.15);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem;
  margin-top: 1rem;
}

.callout h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
  color: var(--teal-deep);
}

.callout p,
.callout li {
  color: var(--muted);
  font-size: 0.93rem;
}

/* Sources */
.sources-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.sources-list li a {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  text-decoration: none;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1rem;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.sources-list li a:hover {
  border-color: rgba(13, 115, 119, 0.35);
  box-shadow: var(--shadow-sm);
}

.sources-list .idx {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--teal-mist);
  color: var(--teal-deep);
  font-size: 0.75rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

.sources-list .txt {
  font-size: 0.9rem;
  line-height: 1.4;
  font-weight: 550;
}

/* Disclaimer */
.disclaimer {
  max-width: var(--max);
  margin: 0 auto 2rem;
  padding: 0 1.25rem;
}

.disclaimer-inner {
  background: #fff8e8;
  border: 1px solid rgba(196, 163, 90, 0.35);
  border-radius: var(--radius-sm);
  padding: 1rem 1.15rem;
  font-size: 0.86rem;
  color: #6a5420;
  line-height: 1.55;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 1.25rem 3rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

.site-footer .brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

/* Search highlight */
.section.highlight-flash {
  animation: flash 1.2s ease;
}

@keyframes flash {
  0%,
  100% {
    background-color: transparent;
  }
  30% {
    background-color: rgba(20, 145, 155, 0.08);
  }
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

::selection {
  background: rgba(13, 115, 119, 0.2);
}

/* ── Glossary tooltips ─────────────────────────────────────── */

.term-tip {
  position: relative;
  display: inline;
  padding: 0;
  margin: 0;
  border: none;
  background: none;
  font: inherit;
  font-weight: inherit;
  color: inherit;
  cursor: help;
  text-align: left;
  border-bottom: 1.5px dashed rgba(13, 115, 119, 0.55);
  border-radius: 0;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  line-height: inherit;
  vertical-align: baseline;
}

.term-tip:hover,
.term-tip:focus-visible,
.term-tip.is-open {
  color: var(--teal-deep);
  background: rgba(13, 115, 119, 0.1);
  border-bottom-color: var(--teal);
  outline: none;
}

.term-tip:focus-visible {
  box-shadow: 0 0 0 2px rgba(13, 115, 119, 0.25);
  border-radius: 3px;
}

.term-tip-bubble {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 10px);
  transform: translateX(-50%) translateY(4px);
  width: min(300px, 78vw);
  padding: 0.75rem 0.9rem 0.85rem;
  border-radius: 12px;
  background: #ffffff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.84rem;
  font-weight: 450;
  line-height: 1.55;
  letter-spacing: 0;
  text-align: left;
  text-transform: none;
  border: 1px solid rgba(13, 115, 119, 0.22);
  border-bottom: 1px solid rgba(13, 115, 119, 0.22);
  box-shadow:
    0 14px 36px rgba(11, 28, 36, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.8) inset;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease), visibility 0.18s;
  z-index: 80;
  white-space: normal;
}

.term-tip-title {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 0.35rem;
}

.term-tip-def {
  display: block;
  color: #243840;
  font-size: 0.84rem;
  font-weight: 500;
  line-height: 1.55;
}

.term-tip-bubble::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 7px solid transparent;
  border-top-color: #ffffff;
  filter: drop-shadow(0 1px 0 rgba(13, 115, 119, 0.18));
}

.term-tip:hover .term-tip-bubble,
.term-tip:focus-visible .term-tip-bubble,
.term-tip.is-open .term-tip-bubble {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* Edge positioning */
.term-tip-bubble.tip-left {
  left: auto;
  right: 0;
  transform: translateX(0) translateY(4px);
}

.term-tip:hover .term-tip-bubble.tip-left,
.term-tip:focus-visible .term-tip-bubble.tip-left,
.term-tip.is-open .term-tip-bubble.tip-left {
  transform: translateX(0) translateY(0);
}

.term-tip-bubble.tip-left::after {
  left: auto;
  right: 16px;
  transform: none;
}

.term-tip-bubble.tip-right {
  left: 0;
  transform: translateX(0) translateY(4px);
}

.term-tip:hover .term-tip-bubble.tip-right,
.term-tip:focus-visible .term-tip-bubble.tip-right,
.term-tip.is-open .term-tip-bubble.tip-right {
  transform: translateX(0) translateY(0);
}

.term-tip-bubble.tip-right::after {
  left: 16px;
  transform: none;
}

.term-tip-bubble.tip-below {
  bottom: auto;
  top: calc(100% + 10px);
}

.term-tip-bubble.tip-below::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: #ffffff;
}

@media (max-width: 640px) {
  .term-tip-bubble {
    width: min(280px, 86vw);
    font-size: 0.82rem;
  }
}
