:root {
  --ink: #1f241f;
  --muted: #6f746d;
  --line: #dedbd1;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --green: #0f6b55;
  --blue: #5f5aa1;
  --orange: #a76028;
  --red: #9d4d55;
  --trial: #7bb7e5;
  --soft-green: #e8f3ee;
  --soft-blue: #ebeaf6;
  --soft-orange: #f6ebdf;
  --shadow: 0 18px 42px rgba(38, 37, 31, 0.08);
  --chart-paper: #f3f2ec;
  --chart-grid: #d7d3c6;
  --chart-axis: #6d7169;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 250, 0.94);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}

.header-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) auto;
  align-items: center;
  gap: 1.25rem;
  max-width: 1280px;
  min-height: 70px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.header-inner-nav-only {
  grid-template-columns: 1fr;
  min-height: 58px;
}

.header-inner-nav-only .nav {
  justify-content: center;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  text-decoration: none;
  color: #42473f;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.92rem;
  padding: 0.5rem 0.72rem;
}

.nav a:hover,
.nav a.active {
  color: var(--ink);
  border-color: #c8c3b5;
  background: #ffffff;
}

.brand {
  display: grid;
  gap: 0.1rem;
  color: var(--ink) !important;
  text-decoration: none;
}

.brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.34rem;
  font-weight: 500;
  letter-spacing: 0;
}

.brand span {
  color: var(--muted);
  font-size: 0.88rem;
}

.home,
.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 2.15rem 1.25rem 4rem;
}

.page-heading,
.link-band,
.table-section {
  padding: 1.5rem 0;
}

.page-heading h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: 0;
}

.page-copy {
  max-width: 980px;
}

.page-copy p {
  color: #3f463e;
  font-size: 1.02rem;
  line-height: 1.68;
  max-width: 920px;
}

.page-copy p:last-child {
  margin-bottom: 0;
}

.methods-source-audit {
  margin: 1.8rem 0 2rem;
}

.methods-source-audit h2 {
  margin: 2rem 0 0.55rem;
}

.methods-table-scroll {
  overflow-x: auto;
  margin: 0.9rem 0 1.25rem;
}

.methods-term-table {
  max-width: 940px;
}

.methods-source-table {
  min-width: 980px;
  font-size: 0.92rem;
}

.methods-source-table td,
.methods-source-table th,
.methods-term-table td,
.methods-term-table th {
  vertical-align: top;
}

.methods-source-table .source-description {
  max-width: 360px;
  color: #3f463e;
}

.page-copy .methods-source-note {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.side-effect-page-copy {
  max-width: 1040px;
}

.severity-examples {
  float: right;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: 1fr;
  margin: 0.2rem 0 1rem 1.35rem;
  width: clamp(310px, 34vw, 440px);
}

.side-effect-page-copy::after {
  clear: both;
  content: "";
  display: block;
}

.severity-example {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-top: 3px solid var(--green);
  border-radius: 8px;
  margin: 0;
  padding: 0.85rem;
}

.severity-example-severe {
  border-top-color: var(--red);
}

.severity-example figcaption {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.severity-example blockquote {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-style: italic;
  line-height: 1.5;
  margin: 0;
}

.severity-example .reddit-link {
  margin-bottom: 0;
}

.intro-copy {
  max-width: 820px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 900px;
  font-size: clamp(2.4rem, 5vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: 0;
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.15rem;
  letter-spacing: 0;
}

p {
  color: var(--muted);
}

.meta,
.note,
.eyebrow {
  color: var(--muted);
  font-size: 0.92rem;
}

.eyebrow,
.card-kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 850;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.5rem;
}

.hero p:not(.eyebrow) {
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 740px;
}

.home-essay {
  font-family: Georgia, "Times New Roman", serif;
  margin: 0 auto;
  max-width: 1160px;
}

.essay-header {
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.55rem;
  max-width: 1040px;
  padding-bottom: 1.35rem;
}

.home-essay h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 7vw, 7.8rem);
  font-weight: 500;
  line-height: 0.9;
  max-width: 1040px;
}

.essay-deck {
  color: #343832;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  font-style: italic;
  font-weight: 400;
  line-height: 1.4;
  margin-bottom: 0.65rem;
  max-width: 760px;
}

.essay-author {
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 0;
  text-transform: uppercase;
}

.home-essay > p {
  color: #32372f;
  font-size: 1.12rem;
  line-height: 1.74;
  max-width: 760px;
}

.home-essay .essay-lede {
  color: #3d433b;
  font-size: 1.22rem;
  line-height: 1.68;
  max-width: 900px;
}

.home-essay .eyebrow {
  color: var(--green);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.story-snapshot {
  background: #fffefa;
  border: 0;
  border-top: 3px solid var(--green);
  border-radius: 0;
  box-shadow: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin: 0.25rem 0 1.15rem;
  overflow: visible;
  padding-top: 0.55rem;
  width: clamp(300px, 34vw, 390px);
}

.story-snapshot.family-tirz {
  border-top-color: var(--blue);
}

.story-snapshot.family-sema {
  border-top-color: var(--orange);
}

.story-snapshot-right {
  float: right;
  margin-left: 1.45rem;
}

.story-snapshot-left {
  clear: both;
  float: left;
  margin: 6.5rem 1.85rem 3.5rem 0;
}

.story-snapshot.family-reta {
  clear: both;
  margin-top: 6.25rem;
}

.story-snapshot h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: 0;
  margin: 0;
  padding: 0 0 0.25rem;
}

.story-snapshot .aliases,
.snapshot-note {
  padding: 0;
}

.story-snapshot .aliases {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
  margin-bottom: 0.65rem;
}

.snapshot-kicker {
  color: var(--muted);
  display: flex;
  font-size: 0.68rem;
  font-weight: 850;
  gap: 0.8rem;
  justify-content: space-between;
  letter-spacing: 0.08em;
  padding: 0 0 0.4rem;
  text-transform: uppercase;
}

.snapshot-kicker span {
  color: #8a8e86;
  font-weight: 750;
  text-align: right;
}

.snapshot-note {
  border-top: 1px dotted var(--line);
  color: #3c413a;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.48;
  margin: 0.65rem 0 0.75rem;
  padding-top: 0.65rem;
}

.story-snapshot .mini-chart {
  border-radius: 0;
  height: 205px;
  margin: 0.85rem 0 0.75rem;
  width: 100%;
}

.story-snapshot .metrics {
  border-top: 1px solid var(--line);
}

.compact-metrics .metric {
  padding: 0.65rem 0.55rem;
}

.compact-metrics .metric span {
  font-size: 0.64rem;
}

.compact-metrics .metric strong {
  font-size: 1rem;
}

.story-snapshot .actions {
  gap: 0.45rem;
  padding: 0.65rem 0 0;
}

.story-snapshot .button {
  border-radius: 0;
  font-size: 0.78rem;
  min-height: 34px;
}

.home-footnotes {
  border-top: 1px solid var(--line);
  clear: both;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  margin-top: 2rem;
  padding-top: 1.15rem;
}

.home-footnotes p {
  max-width: 820px;
}

.home-story-quote {
  color: #343832;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1em;
  font-style: italic;
  line-height: 1.45;
}

.home-story-quote-vulnerable {
  color: #303253;
}

.home-story-source {
  color: var(--muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.home-story-source a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.route-panel,
.section-panel,
.drug,
.plot-area,
.network-area,
.detail-panel,
.effects-layout > div,
.table-section,
.effect-story,
.effect-network-card,
.effect-feed-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.route-panel {
  padding: 1rem;
}

.site-note {
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.site-note h2 {
  font-size: 1rem;
  margin-bottom: 0.65rem;
}

.site-note p {
  margin-bottom: 0;
}

.note-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.note-links a {
  color: var(--green);
  font-size: 0.92rem;
  font-weight: 850;
  text-decoration: none;
}

.note-links a:hover {
  text-decoration: underline;
}

.route-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.route-grid-wide {
  margin-top: 1rem;
}

.route,
.button {
  color: inherit;
  text-decoration: none;
}

.route {
  display: block;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 118px;
  padding: 0.9rem;
  background: #fffefa;
}

.route:hover {
  border-color: #c8c3b5;
  box-shadow: var(--shadow);
}

.route strong {
  display: block;
  margin-bottom: 0.45rem;
}

.route span {
  color: var(--muted);
  display: block;
  font-size: 0.9rem;
  line-height: 1.45;
}

.route a,
.effect-route a {
  color: var(--green);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 800;
  margin-top: 0.8rem;
  text-decoration: none;
}

.comparison {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.drug {
  overflow: hidden;
}

.drug-head {
  min-height: 132px;
  padding: 1.1rem;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(15, 107, 85, 0.12), rgba(255, 255, 255, 0));
}

.family-tirz .drug-head {
  background: linear-gradient(180deg, rgba(95, 90, 161, 0.14), rgba(255, 255, 255, 0));
}

.family-sema .drug-head {
  background: linear-gradient(180deg, rgba(167, 96, 40, 0.14), rgba(255, 255, 255, 0));
}

.drug-head h2 {
  font-size: 1.6rem;
  margin-bottom: 0.45rem;
}

.aliases {
  color: var(--muted);
  line-height: 1.45;
  margin: 0;
}

.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--line);
}

.metric {
  padding: 1rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.metric:nth-child(2n) {
  border-right: 0;
}

.metric:nth-last-child(-n+2) {
  border-bottom: 0;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 0.45rem;
  text-transform: uppercase;
}

.metric strong {
  font-size: 1.35rem;
}

.mini-chart {
  display: block;
  color-scheme: light;
  height: 205px;
  margin: 0.9rem 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--chart-paper);
  width: 100%;
}

.mini-chart-empty {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 0.9rem;
  justify-content: center;
  padding: 1rem;
}

.mini-panel {
  fill: var(--chart-paper) !important;
}

.mini-grid {
  stroke: var(--chart-grid);
  stroke-width: 0.85;
}

.mini-axis {
  stroke: var(--chart-axis);
  stroke-width: 1.1;
}

.mini-axis-tick {
  stroke: var(--chart-axis);
  stroke-width: 1;
}

.mini-zero {
  stroke: #424840;
  stroke-dasharray: 4 4;
  stroke-width: 1;
}

.mini-fit {
  fill: none;
  stroke: var(--green);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.6;
}

.mini-point {
  fill: var(--green);
  opacity: 0.68;
  stroke: #fffefa;
  stroke-width: 0.75;
}

.family-tirz .mini-fit,
.family-tirz .mini-point {
  stroke: var(--blue);
}

.family-tirz .mini-point {
  fill: var(--blue);
  stroke: #ffffff;
}

.family-sema .mini-fit,
.family-sema .mini-point {
  stroke: var(--orange);
}

.family-sema .mini-point {
  fill: var(--orange);
  stroke: #ffffff;
}

.mini-tick,
.mini-axis-label {
  fill: var(--muted);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0;
}

.mini-axis-label {
  fill: #3d433b;
  font-size: 10.5px;
  font-weight: 800;
}

.actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 1rem 1rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fffefa;
  font-size: 0.9rem;
  font-weight: 800;
  min-height: 40px;
  padding: 0.55rem 0.8rem;
}

.button.primary {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.section-panel {
  display: grid;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 1.25rem;
}

.section-panel h2 {
  font-size: 1.45rem;
  margin-bottom: 0.45rem;
}

.route-single {
  max-width: 420px;
}

.choice-grid {
  margin-bottom: 1rem;
}

.choice-card {
  min-height: 148px;
}

.choice-card strong {
  font-size: 1.25rem;
}

.choice-card.family-reta {
  border-top-color: var(--green);
}

.choice-card.family-tirz {
  border-top-color: var(--blue);
}

.choice-card.family-sema {
  border-top-color: var(--orange);
}

.method-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.method-grid .section-panel {
  margin-bottom: 0;
}

.data-status {
  margin-bottom: 0;
}

.status-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  padding: 1rem 0 1.6rem;
}

.status-card {
  border-top: 3px solid var(--green);
  background: var(--panel);
  box-shadow: var(--shadow);
  display: grid;
  gap: 0.3rem;
  padding: 1rem;
}

.status-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status-card strong {
  color: var(--ink);
  font-size: 2.25rem;
  line-height: 1;
}

.status-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
  margin: 0;
}

.data-status-copy {
  margin-bottom: 1rem;
}

.data-status-section {
  overflow-x: auto;
}

.data-status-section h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.55rem;
  font-weight: 500;
  margin-bottom: 0.35rem;
}

.table-note {
  color: var(--muted);
  font-size: 0.94rem;
  margin-top: 0;
}

td.num,
th.num {
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.tab {
  border: 1px solid var(--line);
  background: #fffefa;
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
  padding: 0.5rem 0.75rem;
  text-decoration: none;
}

.tab.active {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.page-actions {
  margin-top: 1rem;
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 1rem 0 2rem;
}

.summary-card {
  display: grid;
  gap: 0.4rem;
  min-height: 300px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
  box-shadow: var(--shadow);
}

.summary-card strong {
  font-size: 3.2rem;
  line-height: 1;
}

.summary-card dl,
.detail-list {
  display: grid;
  gap: 0.65rem;
  margin: 0;
}

.summary-card dl div,
.detail-list div {
  display: grid;
  grid-template-columns: minmax(120px, 0.55fr) 1fr;
  gap: 0.75rem;
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
}

.family-reta {
  border-top: 4px solid var(--green);
}

.family-tirz {
  border-top: 4px solid var(--blue);
}

.family-sema {
  border-top: 4px solid var(--orange);
}

.page-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.75rem;
}

.page-links li {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.plot-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 1rem;
  align-items: start;
}

.plot-afterword {
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 1.2rem;
}

.network-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 1rem;
  align-items: start;
}

.plot-area,
.network-area,
.detail-panel,
.effects-layout > div,
.table-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.plot-area {
  min-height: 580px;
  padding: 0.75rem;
}

.network-area {
  min-height: 760px;
  overflow: auto;
  padding: 0.75rem;
}

.scatterplot {
  display: block;
  color-scheme: light;
  width: 100%;
  min-height: 520px;
}

.compound-network {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 740px;
}

.compound-matrix {
  color-scheme: light;
}

.matrix-note,
.matrix-label,
.matrix-count,
.matrix-legend-label {
  font-family: Verdana, Geneva, sans-serif;
  letter-spacing: 0;
}

.matrix-note {
  fill: var(--muted);
  font-size: 11.4px;
  font-weight: 450;
}

.matrix-label {
  cursor: pointer;
  fill: var(--ink);
  font-size: 9.8px;
  font-weight: 400;
}

.matrix-label:hover,
.matrix-label:focus {
  fill: var(--green);
  outline: none;
  text-decoration: underline;
}

.matrix-count {
  fill: #fffefa;
  font-size: 9px;
  font-weight: 650;
  pointer-events: none;
  text-anchor: middle;
}

.matrix-empty,
.matrix-diagonal,
.matrix-cell {
  stroke: #fffefa;
  stroke-width: 1.25;
}

.matrix-empty {
  fill: #efede4;
}

.matrix-diagonal {
  fill: #dfdbce;
}

.matrix-cell {
  cursor: pointer;
}

.matrix-cell:hover,
.matrix-cell:focus,
.matrix-cell.selected {
  outline: none;
  stroke: var(--ink);
  stroke-width: 2.2;
}

.matrix-legend-label {
  fill: var(--muted);
  font-size: 10.5px;
  font-weight: 450;
}

.matrix-ramp {
  fill: url("#matrix-ramp-gradient");
  stroke: var(--line);
  stroke-width: 1;
}

.status {
  color: var(--muted);
  padding: 1rem;
}

.detail-panel {
  max-height: calc(100vh - 96px);
  overflow: auto;
  padding: 1rem;
  position: sticky;
  top: 78px;
}

.detail-panel pre {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  background: #f4f6f8;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 0.85rem;
}

.testimonial {
  background: #fffdf7;
  border: 1px solid var(--line);
  border-left: 4px solid var(--green);
  border-radius: 8px;
  color: var(--ink);
  margin: 0.85rem 0;
  padding: 0.85rem 1rem;
}

.testimonial figcaption {
  color: var(--muted);
  font-family: inherit;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.08em;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}

.testimonial blockquote {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.02rem;
  font-style: italic;
  line-height: 1.55;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.stacking-quotes {
  float: right;
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
  margin: 0.2rem 0 1rem 1.35rem;
  width: clamp(300px, 34vw, 440px);
}

.stacking-quotes .testimonial {
  margin: 0;
}

.stacking-copy::after {
  clear: both;
  content: "";
  display: block;
}

.detail-panel > .testimonial {
  max-height: 17rem;
  overflow: auto;
}

.detail-list.compact {
  gap: 0.35rem;
  font-size: 0.88rem;
}

.detail-list.compact div {
  grid-template-columns: minmax(96px, 0.42fr) 1fr;
}

.reddit-link {
  display: inline-flex;
  margin: 0.4rem 0 1rem;
  color: var(--blue);
  font-weight: 700;
}

.extracted-fields,
.source-text {
  border-top: 1px solid var(--line);
  margin-top: 0.85rem;
  padding-top: 0.75rem;
}

.extracted-fields summary,
.source-text summary {
  color: var(--blue);
  cursor: pointer;
  font-weight: 850;
}

.extracted-fields .detail-list {
  margin-top: 0.75rem;
}

.plot-bg {
  fill: var(--chart-paper) !important;
}

.grid {
  stroke: var(--chart-grid);
  stroke-width: 1;
}

.grid-x {
  opacity: 0.28;
}

.grid-y {
  opacity: 0.78;
}

.axis-tick,
.plot-frame {
  stroke: var(--chart-axis);
  stroke-width: 1.15;
}

.zero-line {
  stroke: #434940;
  stroke-dasharray: 4 5;
  stroke-width: 1.15;
}

.tick,
.axis-label,
.axis-title,
.legend text {
  fill: #62675f;
  font-family: Verdana, Geneva, sans-serif;
  font-size: 12px;
}

.axis-label,
.axis-title {
  fill: #333931;
  font-weight: 800;
}

.axis-title {
  font-size: 13px;
}

.point {
  stroke: #fffefa;
  stroke-width: 1.1;
  cursor: pointer;
  opacity: 0.72;
}

.point:hover,
.point:focus {
  opacity: 1;
  stroke: var(--ink);
  outline: none;
}

.point-reta {
  fill: var(--green);
}

.point-tirz {
  fill: var(--blue);
}

.point-sema {
  fill: var(--orange);
}

.fit-line {
  fill: none;
  stroke: #1f241f;
  stroke-width: 3.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.rct-band {
  fill: rgba(123, 183, 229, 0.15);
  stroke: none;
}

.rct-line {
  fill: none;
  stroke: var(--trial);
  stroke-width: 2.5;
}

.legend {
  font-weight: 700;
}

.network-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.segmented {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  padding: 0.55rem 0.75rem;
}

.segmented:hover,
.segmented.active {
  border-color: var(--ink);
  color: var(--ink);
}

.network-core {
  fill: #fffefa;
  opacity: 0.78;
}

.network-arc {
  fill: none;
  stroke-linecap: butt;
  stroke-width: 28;
  cursor: pointer;
  filter: drop-shadow(0 5px 10px rgba(31, 36, 40, 0.08));
}

.network-arc:hover,
.network-arc:focus {
  opacity: 0.78;
  outline: none;
}

.network-tick {
  stroke: var(--ink);
  opacity: 0.7;
  stroke-width: 1.2;
}

.network-tick-label {
  fill: var(--ink);
  font-size: 10px;
  font-weight: 650;
}

.network-radial-label {
  fill: var(--ink);
  font-size: 15px;
  font-weight: 850;
  opacity: 0;
  paint-order: stroke;
  pointer-events: none;
  stroke: rgba(255, 255, 255, 0.98);
  stroke-linejoin: round;
  stroke-width: 7px;
  transition: opacity 0.12s ease;
}

.network-node-group:hover .network-radial-label,
.network-node-group:focus-within .network-radial-label {
  opacity: 1;
}

.network-edge {
  fill: none;
  stroke-linecap: round;
  opacity: 0.42;
  cursor: pointer;
}

.network-edge:hover,
.network-edge:focus {
  opacity: 0.74;
  outline: none;
}

.network-node {
  cursor: pointer;
}

.network-node circle {
  stroke: #fff;
  stroke-width: 1.5;
  fill: #8b949e;
}

.network-node:hover circle,
.network-node:focus circle {
  stroke: var(--ink);
  stroke-width: 2;
  outline: none;
}

.network-legend text {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.compound-family-reta circle,
.compound-family-reta {
  fill: #8fcdb6;
}

.compound-family-tirz circle,
.compound-family-tirz {
  fill: #8bbde8;
}

.compound-family-sema circle,
.compound-family-sema {
  fill: #efb189;
}

.compound-family-amylin circle,
.compound-family-amylin {
  fill: #c8abe4;
}

.compound-family-glp1_other circle,
.compound-family-glp1_other {
  fill: #9fd6d5;
}

.compound-family-stimulant circle,
.compound-family-stimulant {
  fill: #f2a5c5;
}

.compound-family-diabetes_drug circle,
.compound-family-diabetes_drug {
  fill: #cadb91;
}

.compound-family-hormone circle,
.compound-family-hormone {
  fill: #e8c18f;
}

.compound-family-peptide circle,
.compound-family-peptide {
  fill: #aaa9ec;
}

.compound-family-supplement circle,
.compound-family-supplement {
  fill: #9bd0ad;
}

.compound-family-other_drug circle,
.compound-family-other_drug {
  fill: #d3b9a3;
}

.compound-family-lifestyle {
  fill: #ddd39d;
}

.compound-family-unclear {
  fill: #b8c0ca;
}

.network-detail h3 {
  margin-top: 1rem;
}

.report-mini {
  border-top: 1px solid var(--line);
  padding: 0.85rem 0;
}

.report-mini h3 {
  color: var(--ink);
  font-size: 0.96rem;
  margin-bottom: 0.35rem;
}

.report-mini p {
  margin-bottom: 0.65rem;
}

.report-mini details {
  margin-top: 0.65rem;
}

.report-mini summary {
  color: var(--blue);
  cursor: pointer;
  font-weight: 800;
}

.report-mini .testimonial,
.effect-report-card .testimonial {
  max-height: 11rem;
  overflow: auto;
}

.effect-report-card .testimonial {
  margin: 0.65rem 0;
  padding: 0.7rem 0.75rem;
}

.effect-report-card .testimonial blockquote {
  font-size: 0.92rem;
  line-height: 1.48;
}

.effect-report-card p {
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}

.excerpt {
  background: #f4f6f8;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.84rem;
  padding: 0.65rem;
}

.audit-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 1rem;
}

.effect-toolbar {
  align-items: center;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.1fr);
  margin-bottom: 1rem;
}

.effect-search {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  width: 100%;
}

.effect-bars-large {
  gap: 0.35rem;
  max-height: 560px;
  overflow: auto;
  padding-right: 0.2rem;
}

.effect-bar-row {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 0.28rem 0.45rem;
  text-align: left;
}

.effect-bar-row:hover,
.effect-bar-row:focus,
.effect-bar-row.active {
  background: #f2f7f8;
  border-color: #cbdde4;
  outline: none;
}

.effect-bar-row .bar-fill {
  background: #7fb6cf;
}

.severity-controls {
  justify-content: flex-end;
  margin: 0;
}

.effect-story,
.effect-network-card,
.effect-feed-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.effect-story {
  padding: 1rem;
}

.effect-hero-panel {
  display: grid;
  gap: 1rem;
}

.effect-cloud-large {
  align-items: center;
  min-height: 260px;
}

.effect-token,
.effect-chip,
.table-link {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  padding: 0;
}

.effect-token {
  align-items: baseline;
  border: 1px solid transparent;
  border-radius: 999px;
  display: inline-flex;
  gap: 0.35rem;
  line-height: 1;
  padding: 0.35rem 0.55rem;
}

.effect-token span {
  color: var(--blue);
}

.effect-token strong {
  color: var(--muted);
  font-size: 0.72em;
}

.effect-token:hover,
.effect-token:focus,
.effect-token.active {
  background: #eef5f7;
  border-color: #cbdde4;
  outline: none;
}

.side-effect-grid {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(260px, 1fr) minmax(0, 2fr);
  margin-bottom: 1rem;
}

.effect-network-card {
  min-height: 730px;
  padding: 1rem;
}

.effect-network {
  display: block;
  min-height: 650px;
  width: 100%;
}

.effect-matrix {
  color-scheme: light;
}

.effect-matrix-note,
.effect-matrix-label,
.effect-matrix-count,
.effect-matrix-legend-label {
  font-family: Verdana, Geneva, sans-serif;
  letter-spacing: 0;
}

.effect-matrix-note {
  fill: var(--muted);
  font-size: 11.3px;
  font-weight: 450;
}

.effect-matrix-label {
  cursor: pointer;
  fill: var(--ink);
  font-size: 9.6px;
  font-weight: 400;
}

.effect-matrix-label:hover,
.effect-matrix-label:focus,
.effect-matrix-label.active {
  fill: var(--green);
  outline: none;
  text-decoration: underline;
}

.effect-matrix-count {
  fill: #fffefa;
  font-size: 9px;
  font-weight: 650;
  pointer-events: none;
  text-anchor: middle;
}

.effect-matrix-empty,
.effect-matrix-diagonal,
.effect-matrix-cell {
  stroke: #fffefa;
  stroke-width: 1.2;
}

.effect-matrix-empty {
  fill: #eff1ed;
}

.effect-matrix-diagonal {
  cursor: pointer;
  fill: #dfe7df;
}

.effect-matrix-cell {
  cursor: pointer;
}

.effect-matrix-cell:hover,
.effect-matrix-cell:focus,
.effect-matrix-cell.selected,
.effect-matrix-diagonal:hover,
.effect-matrix-diagonal:focus,
.effect-matrix-diagonal.selected {
  outline: none;
  stroke: var(--ink);
  stroke-width: 2.1;
}

.effect-matrix-legend-label {
  fill: var(--muted);
  font-size: 10.5px;
  font-weight: 450;
}

.effect-matrix-ramp {
  fill: url("#effect-matrix-ramp-gradient");
  stroke: var(--line);
  stroke-width: 1;
}

.effect-detail {
  grid-column: 1 / -1;
  max-height: none;
  position: static;
}

.effect-summary-card {
  display: grid;
  gap: 0.7rem;
}

.effect-summary-head {
  align-items: end;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  padding-bottom: 0.45rem;
}

.effect-summary-head h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.55rem, 2.5vw, 2.25rem);
  font-weight: 500;
  line-height: 1;
  margin: 0;
}

.effect-summary-kicker {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.effect-summary-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.effect-summary-metrics span,
.co-mention-strip span {
  align-items: baseline;
  background: #f7f6f1;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4a4f47;
  display: inline-flex;
  font-size: 0.86rem;
  gap: 0.35rem;
  line-height: 1.2;
  padding: 0.32rem 0.6rem;
}

.effect-summary-metrics b,
.co-mention-strip b {
  color: var(--ink);
  font-size: 0.98rem;
}

.co-mention-strip {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.co-mention-strip > strong {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  margin-right: 0.1rem;
  text-transform: uppercase;
}

.effect-summary-card .note {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
  margin: 0;
}

.effect-ring {
  fill: none;
  pointer-events: none;
  stroke: #e7edf0;
}

.effect-ring-outer {
  opacity: 0.62;
  stroke-width: 1.5;
}

.effect-ring-inner {
  opacity: 0.9;
  stroke-dasharray: 2 8;
  stroke-linecap: round;
  stroke-width: 1;
}

.effect-core {
  fill: #fbfcfb;
  opacity: 0.88;
}

.effect-chord-edge {
  fill: none;
  mix-blend-mode: multiply;
  opacity: 0.16;
  stroke-linecap: round;
  cursor: pointer;
}

.effect-chord-edge:hover,
.effect-chord-edge:focus,
.effect-chord-edge.hovered,
.effect-chord-edge.related,
.effect-chord-edge.active {
  opacity: 0.52;
  outline: none;
}

.effect-chord-edge.active {
  opacity: 0.82;
}

.effect-chord-hit {
  cursor: pointer;
  fill: none;
  opacity: 1;
  pointer-events: bounding-box;
  stroke: rgba(0, 0, 0, 0.001);
}

.effect-chord-hit:focus {
  outline: none;
}

.effect-chord-arc {
  fill: none;
  stroke-linecap: butt;
  opacity: 0.82;
  cursor: pointer;
  filter: drop-shadow(0 5px 10px rgba(31, 36, 40, 0.06));
}

.effect-chord-arc-major {
  stroke-width: 22;
}

.effect-chord-arc-middle {
  stroke-width: 16;
}

.effect-chord-arc-tail {
  opacity: 0.64;
  stroke-width: 10;
}

.effect-chord-arc:hover,
.effect-chord-arc:focus,
.effect-chord-arc.active {
  opacity: 1;
  outline: none;
}

.effect-chord-label {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 780;
  opacity: 0;
  paint-order: stroke;
  pointer-events: none;
  stroke: rgba(255, 255, 255, 0.98);
  stroke-linejoin: round;
  stroke-width: 5px;
  transition: opacity 0.12s ease;
}

.effect-chord-node:hover .effect-chord-label,
.effect-chord-node:focus-within .effect-chord-label,
.effect-chord-node.active .effect-chord-label {
  opacity: 1;
}

.effect-edge {
  stroke: rgba(95, 145, 174, 0.34);
  stroke-linecap: round;
}

.effect-node {
  cursor: pointer;
}

.effect-node circle {
  fill: #dceef3;
  stroke: #ffffff;
  stroke-width: 2;
}

.effect-node-center circle {
  fill: #f6d9c5;
}

.effect-node text {
  fill: var(--ink);
  font-size: 12px;
  font-weight: 750;
  paint-order: stroke;
  stroke: rgba(255, 255, 255, 0.9);
  stroke-linejoin: round;
  stroke-width: 4px;
}

.effect-node .effect-node-count {
  fill: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.effect-node:hover circle,
.effect-node:focus circle {
  stroke: var(--ink);
  outline: none;
}

.effect-feed-section {
  margin-bottom: 1rem;
  padding: 1rem;
}

.feed-heading {
  align-items: baseline;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.effect-feed {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.effect-feed > .status {
  grid-column: 1 / -1;
}

.effect-report-card {
  background: #fffefa;
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  padding: 0.9rem;
}

.report-topline {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.report-topline h3 {
  font-size: 0.88rem;
  line-height: 1.35;
  margin-bottom: 0.35rem;
}

.severity-badge {
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.2rem 0.5rem;
  text-transform: uppercase;
}

.severity-mild {
  background: #dff1df;
}

.severity-moderate {
  background: #f6e6b7;
}

.severity-severe {
  background: #f7c8c4;
}

.severity-unscreened {
  background: #e9edf2;
  color: var(--muted);
}

.effect-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 0.65rem 0;
}

.effect-chip {
  background: #f4f6f8;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.22rem 0.5rem;
}

.effect-chip:hover,
.effect-chip:focus,
.effect-chip.active {
  border-color: var(--ink);
  color: var(--ink);
  outline: none;
}

.effect-report-card details {
  margin-top: 0.65rem;
}

.effect-report-card summary {
  color: var(--blue);
  cursor: pointer;
  font-weight: 800;
}

.effect-report-card pre {
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  background: #f4f6f8;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.75rem;
  font-size: 0.85rem;
}

.feed-sentinel {
  color: var(--muted);
  min-height: 28px;
  padding: 0.75rem;
  text-align: center;
}

.table-link {
  color: var(--blue);
  font-weight: 800;
  text-align: left;
}

.selected-row {
  background: #f2f7f8;
}

.effects-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 1rem;
}

.effects-layout > div,
.table-section {
  padding: 1rem;
}

.effect-bars {
  display: grid;
  gap: 0.65rem;
}

.bar-row {
  display: grid;
  grid-template-columns: minmax(130px, 0.45fr) 1fr 42px;
  gap: 0.75rem;
  align-items: center;
}

.bar-track {
  height: 12px;
  border-radius: 999px;
  background: #edf0f3;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: var(--green);
}

.effect-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  align-items: center;
}

.effect-cloud span {
  color: var(--blue);
  font-weight: 700;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
}

th,
td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 0.7rem 0.5rem;
}

th {
  color: var(--muted);
  font-size: 0.88rem;
}

@media (max-width: 1100px) {
  .effect-feed {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .status-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 940px) {
  .header-inner,
  .hero,
  .comparison,
  .route-grid,
  .method-grid,
  .summary-grid,
  .plot-layout,
  .network-layout,
  .side-effect-grid,
  .effect-toolbar,
  .audit-grid,
  .effects-layout {
    grid-template-columns: 1fr;
  }

  .stacking-quotes {
    float: none;
    margin: 1rem 0;
    width: 100%;
  }

  .header-inner {
    align-items: flex-start;
    padding: 0.9rem 1rem;
  }

  .nav {
    justify-content: flex-start;
  }

  .severity-controls {
    justify-content: flex-start;
  }

  .severity-examples,
  .effect-feed {
    grid-template-columns: 1fr;
  }

  .severity-examples {
    float: none;
    margin: 1rem 0;
    width: auto;
  }

  .detail-panel {
    position: static;
    max-height: none;
  }

  .home-essay > p,
  .home-essay .essay-lede {
    max-width: none;
  }

}

@media (max-width: 760px) {
  .story-snapshot,
  .story-snapshot-left,
  .story-snapshot-right {
    float: none;
    margin: 1.1rem 0 1.25rem;
    max-width: none;
    width: 100%;
  }

  .story-snapshot.family-tirz {
    margin: 6.25rem 0 4.25rem;
  }

  .story-snapshot.family-reta {
    margin: 5.75rem 0 1.25rem;
  }
}

@media (max-width: 620px) {
  .brand {
    width: 100%;
  }

  .home,
  .page {
    padding: 1rem 1rem 3rem;
  }

  h1 {
    font-size: 2.15rem;
  }

  .actions,
  .metrics {
    grid-template-columns: 1fr;
  }

  .metric {
    border-right: 0;
  }

  .metric:nth-last-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .summary-card dl div,
  .detail-list div,
  .bar-row {
    grid-template-columns: 1fr;
  }

  .status-card-grid {
    grid-template-columns: 1fr;
  }
}
