.tl-eb {
  --eb-bg: #ffffff;
  --eb-deep: #f5f9fd;
  --eb-ink: #0b1d30;
  --eb-muted: #475d73;
  --eb-accent: #1f7a4d;
  --eb-gold: #1d63d3;
  --eb-scroll: rgba(71,93,115,0.42);
  color: var(--eb-ink);
  font-family: "Satoshi", "Inter", system-ui, sans-serif;
  margin: 0 0 clamp(28px, 5vw, 44px);
}

.tl-eb[data-tone="mixed"] {
  --eb-accent: #1d63d3;
}

.tl-eb[data-tone="warning"] {
  --eb-accent: #bf3e29;
}

/* The supported research brief is editorial, not a traffic-light dashboard. */
body[data-research-slug="community-testing-grey-market-peptide-quality"] .tl-eb[data-tone="supported"] {
  --eb-accent: var(--eb-gold);
}

body[data-research-slug="community-testing-grey-market-peptide-quality"] .tl-eb[data-tone="supported"] .tl-eb-trace {
  display: none;
}

.tl-eb-trigger {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
  padding: 16px 18px 16px 20px;
  color: var(--eb-ink);
  background: #ffffff;
  border: 1px solid rgba(29,99,211,0.28);
  border-left: 3px solid var(--eb-gold);
  border-radius: 3px;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 12px 32px rgba(245,249,253,0.2);
  transition: border-color 160ms ease, background 160ms ease,
    transform 160ms ease;
}

.tl-eb-trigger:hover {
  background: #ffffff;
  border-color: rgba(29,99,211,0.55);
  transform: translateY(-1px);
}

.tl-eb-trigger:focus-visible,
.tl-eb-close:focus-visible,
.tl-eb-deep-link:focus-visible {
  outline: 2px solid var(--eb-gold);
  outline-offset: 3px;
}

.tl-eb-trigger-copy {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.tl-eb-trigger-label,
.tl-eb-trigger-time,
.tl-eb-kicker,
.tl-eb-meta,
.tl-eb-label,
.tl-eb-ledger > h3,
.tl-eb-finding-label,
.tl-eb-limitation > span,
.tl-eb-position > span {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.tl-eb-trigger-label {
  color: var(--eb-gold);
  font-size: 11px;
  font-weight: 700;
}

.tl-eb-trigger-preview {
  min-width: 0;
  overflow: hidden;
  color: rgba(11,29,48,0.8);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tl-eb-trigger-time {
  color: var(--eb-muted);
  font-size: 9px;
  white-space: nowrap;
}

.tl-eb-trigger-arrow {
  color: var(--eb-accent);
  font-family: "Space Grotesk", "Satoshi", sans-serif;
  font-size: 21px;
  line-height: 1;
}

.tl-eb-backdrop[hidden] {
  display: none !important;
}

.tl-eb-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 3vh 24px;
  background: rgba(245,249,253,0.82);
  backdrop-filter: blur(12px) saturate(80%);
  -webkit-backdrop-filter: blur(12px) saturate(80%);
  animation: tl-eb-backdrop-in 160ms ease both;
}

html.tl-eb-open,
body.tl-eb-open {
  overflow: hidden !important;
}

.tl-eb-sheet {
  position: relative;
  width: min(1180px, 100%);
  max-height: 94vh;
  max-height: 94dvh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  color: var(--eb-ink);
  background: var(--eb-bg);
  border: 1px solid rgba(71,93,115,0.28);
  border-top-color: var(--eb-accent);
  border-radius: 4px;
  box-shadow: 0 36px 110px rgba(245,249,253,0.64);
  animation: tl-eb-sheet-in 180ms cubic-bezier(0.2, 0.7, 0.25, 1) both;
}

.tl-eb-trace {
  position: absolute;
  inset: 0 0 auto;
  height: 28px;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.7;
}

.tl-eb-trace svg {
  width: 100%;
  height: 100%;
}

.tl-eb-trace path {
  fill: none;
  stroke: var(--eb-accent);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.tl-eb-bar {
  min-height: 66px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px;
  padding: 25px 28px 14px;
  border-bottom: 1px solid rgba(71,93,115,0.18);
  background: rgba(245,249,253,0.44);
}

.tl-eb-kicker {
  color: var(--eb-accent);
  font-size: 10px;
  font-weight: 700;
}

.tl-eb-meta {
  overflow: hidden;
  color: var(--eb-muted);
  font-size: 9px;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tl-eb-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  color: var(--eb-muted);
  background: none;
  border: 0;
  cursor: pointer;
  font: 600 11px/1 "JetBrains Mono", ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.tl-eb-close span:last-child {
  color: var(--eb-ink);
  font: 300 25px/0.8 "Space Grotesk", sans-serif;
}

.tl-eb-close:hover {
  color: var(--eb-ink);
}

.tl-eb-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
  overflow-y: auto;
  overflow-x: hidden;
  clip-path: inset(0);
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

.tl-eb-grid:hover,
.tl-eb-grid:focus-within {
  scrollbar-color: var(--eb-scroll) transparent;
}

.tl-eb-grid::-webkit-scrollbar {
  width: 6px;
}

.tl-eb-grid::-webkit-scrollbar-track {
  background: transparent;
}

.tl-eb-grid::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: transparent;
}

.tl-eb-grid:hover::-webkit-scrollbar-thumb,
.tl-eb-grid:focus-within::-webkit-scrollbar-thumb {
  background: var(--eb-scroll);
}

.tl-eb-verdict {
  min-height: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  overflow: visible;
  padding: clamp(34px, 5vw, 62px) clamp(28px, 4.5vw, 54px);
  background: var(--eb-deep);
  border-right: 1px solid rgba(71,93,115,0.2);
}

.tl-eb-label,
.tl-eb-ledger > h3 {
  margin: 0 0 22px;
  color: var(--eb-accent);
  font-size: 10px;
  font-weight: 700;
}

.tl-eb-verdict h2 {
  margin: 0;
  max-width: 13ch;
  color: var(--eb-ink);
  font-family: "Space Grotesk", "Satoshi", sans-serif;
  font-size: clamp(32px, 4vw, 49px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.tl-eb-verdict h2:focus {
  outline: none;
}

.tl-eb-summary {
  margin: 24px 0 0;
  color: rgba(11,29,48,0.7);
  font-size: 15px;
  line-height: 1.62;
}

.tl-eb-deep-link {
  margin-top: 24px;
  padding-top: 20px;
  color: var(--eb-gold);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.tl-eb-deep-link:hover {
  color: #1d63d3;
}

.tl-eb-ledger {
  min-height: 0;
  min-width: 0;
  overflow: visible;
  padding: clamp(34px, 4.5vw, 58px);
}

.tl-eb-findings {
  border-top: 1px solid rgba(71,93,115,0.22);
}

.tl-eb-finding {
  position: relative;
  padding: 22px 0 21px;
  border-bottom: 1px solid rgba(71,93,115,0.18);
}

.tl-eb-finding-label::before {
  content: "";
  flex: 0 0 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--eb-accent);
}

.tl-eb-finding[data-finding-tone="limited"] .tl-eb-finding-label::before {
  background: var(--eb-gold);
}

.tl-eb-finding[data-finding-tone="adverse"] .tl-eb-finding-label::before {
  background: #bf3e29;
}

body[data-research-slug="community-testing-grey-market-peptide-quality"] .tl-eb[data-tone="supported"] .tl-eb-finding-label::before,
body[data-research-slug="community-testing-grey-market-peptide-quality"] .tl-eb[data-tone="supported"] .tl-eb-finding[data-finding-tone="limited"] .tl-eb-finding-label::before,
body[data-research-slug="community-testing-grey-market-peptide-quality"] .tl-eb[data-tone="supported"] .tl-eb-finding[data-finding-tone="adverse"] .tl-eb-finding-label::before {
  background: rgba(11,29,48,0.42);
}

.tl-eb-finding-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 18px;
}

.tl-eb-finding-label {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--eb-ink);
  font-size: 10px;
  font-weight: 700;
}

.tl-eb-finding-head strong {
  color: var(--eb-accent);
  font: 600 clamp(24px, 3.2vw, 35px)/1 "Space Grotesk", "Satoshi", sans-serif;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

body[data-research-slug="community-testing-grey-market-peptide-quality"] .tl-eb[data-tone="supported"] .tl-eb-finding-head strong {
  color: var(--eb-ink);
}

.tl-eb-denominator {
  margin: 7px 0 0 16px !important;
  color: var(--eb-muted) !important;
  font: 10px/1.45 "JetBrains Mono", ui-monospace, monospace;
}

.tl-eb-finding > p:last-child {
  margin: 10px 0 0 16px;
  max-width: 62ch;
  color: rgba(11,29,48,0.72);
  font-size: 13px;
  line-height: 1.55;
}

.tl-eb-limitation {
  margin-top: 24px;
  padding: 17px 18px;
  background: rgba(29,99,211,0.055);
  border-left: 2px solid var(--eb-gold);
}

body[data-research-slug="community-testing-grey-market-peptide-quality"] .tl-eb[data-tone="supported"] .tl-eb-limitation {
  background: rgba(11,29,48,0.025);
  border-left-color: rgba(11,29,48,0.32);
}

body[data-research-slug="community-testing-grey-market-peptide-quality"] .tl-eb[data-tone="supported"] .tl-eb-sheet {
  border-top-color: rgba(71,93,115,0.42);
  box-shadow: 0 28px 80px rgba(245,249,253,0.56);
}

body[data-research-slug="community-testing-grey-market-peptide-quality"] .tl-eb[data-tone="supported"] .tl-eb-verdict h2 {
  max-width: 16ch;
  font-size: clamp(30px, 3.5vw, 43px);
  line-height: 1.08;
}

.tl-eb-limitation > span,
.tl-eb-position > span {
  color: var(--eb-gold);
  font-size: 9px;
  font-weight: 700;
}

.tl-eb-limitation p {
  margin: 8px 0 0;
  color: var(--eb-muted);
  font-size: 12px;
  line-height: 1.55;
}

.tl-eb-position {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding: 20px 28px 22px;
  background: #f5f9fd;
  border-top: 1px solid rgba(71,93,115,0.2);
}

.tl-eb-position p {
  margin: 0;
  color: rgba(11,29,48,0.86);
  font-size: 13px;
  line-height: 1.5;
}

/* Retatrutide's four-point brief carries dense denominators. Give this sheet
   a reading-first treatment without changing the shared component elsewhere. */
body[data-research-slug="retatrutide-coa-analysis"] .tl-eb-trigger-preview {
  color: rgba(11,29,48,0.92);
  font-size: 14.5px;
  line-height: 1.45;
}

body[data-research-slug="retatrutide-coa-analysis"] .tl-eb-trigger-time,
body[data-research-slug="retatrutide-coa-analysis"] .tl-eb-meta {
  color: #475d73;
  font-size: 10.5px;
}

body[data-research-slug="retatrutide-coa-analysis"] .tl-eb-kicker,
body[data-research-slug="retatrutide-coa-analysis"] .tl-eb-label,
body[data-research-slug="retatrutide-coa-analysis"] .tl-eb-ledger > h3,
body[data-research-slug="retatrutide-coa-analysis"] .tl-eb-finding-label {
  font-size: 11.5px;
  letter-spacing: 0.09em;
}

body[data-research-slug="retatrutide-coa-analysis"] .tl-eb-verdict h2 {
  max-width: 15ch;
  font-size: clamp(31px, 3.4vw, 43px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

body[data-research-slug="retatrutide-coa-analysis"] .tl-eb-summary {
  max-width: 42ch;
  color: rgba(11,29,48,0.88);
  font-size: 17px;
  line-height: 1.7;
}

body[data-research-slug="retatrutide-coa-analysis"] .tl-eb-deep-link {
  font-size: 14.5px;
}

body[data-research-slug="retatrutide-coa-analysis"] .tl-eb-denominator {
  color: #0b1d30 !important;
  font: 500 13px/1.55 "Satoshi", "Inter", system-ui, sans-serif;
}

body[data-research-slug="retatrutide-coa-analysis"] .tl-eb-finding-head strong {
  color: #1d63d3;
}

body[data-research-slug="retatrutide-coa-analysis"] .tl-eb-finding > p:last-child {
  max-width: 56ch;
  color: rgba(11,29,48,0.94);
  font-size: 15.5px;
  line-height: 1.65;
}

body[data-research-slug="retatrutide-coa-analysis"] .tl-eb-limitation p {
  color: #475d73;
  font-size: 14.5px;
  line-height: 1.65;
}

body[data-research-slug="retatrutide-coa-analysis"] .tl-eb-position p {
  color: rgba(11,29,48,0.94);
  font-size: 14.5px;
  line-height: 1.6;
}

.tl-eb-noscript {
  max-height: none;
  margin-top: 18px;
}

@keyframes tl-eb-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes tl-eb-sheet-in {
  from { opacity: 0; transform: translateY(12px) scale(0.995); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 719px) {
  .tl-eb {
    margin-bottom: 28px;
  }

  .tl-eb-trigger {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    padding: 15px 15px 15px 17px;
  }

  .tl-eb-trigger-time {
    display: none;
  }

  .tl-eb-trigger-arrow {
    grid-column: 2;
    grid-row: 1;
  }

  .tl-eb-backdrop {
    display: block;
    padding: 0;
  }

  .tl-eb-sheet {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    display: block;
    overflow-y: auto;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--eb-scroll) transparent;
    border: 0;
    border-radius: 0;
  }

  .tl-eb-bar {
    position: sticky;
    top: 0;
    z-index: 2;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    padding: calc(18px + env(safe-area-inset-top)) 18px 14px;
    background: rgba(245,249,253,0.96);
    backdrop-filter: blur(12px);
  }

  .tl-eb-meta {
    display: none;
  }

  .tl-eb-grid {
    display: block;
    overflow: visible;
    clip-path: none;
  }

  .tl-eb-verdict {
    min-height: auto;
    padding: 38px 22px 36px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid rgba(71,93,115,0.2);
  }

  .tl-eb-verdict h2 {
    max-width: 15ch;
    font-size: clamp(34px, 11vw, 46px);
  }

  .tl-eb-deep-link {
    margin-top: 28px;
    padding-top: 0;
  }

  .tl-eb-ledger {
    overflow: visible;
    padding: 36px 22px;
  }

  .tl-eb-finding-head {
    grid-template-columns: 1fr;
    gap: 9px;
  }

  .tl-eb-finding-head strong {
    font-size: 32px;
  }

  .tl-eb-position {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 24px 22px calc(28px + env(safe-area-inset-bottom));
  }

  body[data-research-slug="retatrutide-coa-analysis"] .tl-eb-verdict {
    padding: 32px 20px 34px;
  }

  body[data-research-slug="retatrutide-coa-analysis"] .tl-eb-verdict h2 {
    max-width: 18ch;
    font-size: clamp(30px, 9vw, 38px);
    line-height: 1.1;
  }

  body[data-research-slug="retatrutide-coa-analysis"] .tl-eb-summary {
    font-size: 17px;
    line-height: 1.72;
  }

  body[data-research-slug="retatrutide-coa-analysis"] .tl-eb-ledger {
    padding: 32px 20px;
  }

  body[data-research-slug="retatrutide-coa-analysis"] .tl-eb-finding-head strong {
    font-size: 30px;
  }

  body[data-research-slug="retatrutide-coa-analysis"] .tl-eb-denominator {
    font-size: 13.5px;
  }

  body[data-research-slug="retatrutide-coa-analysis"] .tl-eb-finding > p:last-child {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tl-eb-trigger,
  .tl-eb-backdrop,
  .tl-eb-sheet {
    animation: none;
    transition: none;
  }
}

@media print {
  .tl-eb-trigger,
  .tl-eb-backdrop {
    display: none !important;
  }

  .tl-eb noscript {
    display: block;
  }
}
