/* Manual de patologia mamária — folha de estilo compartilhada
   Conceito: manual de bancada. Coluna de leitura de ~68ch, índice lateral fixo no desktop.
   Paleta derivada dos corantes de rotina: hematoxilina (acento), eosina (série secundária),
   DAB (quadro "Dados para laudo anatomopatológico"). */
:root {
  --bg: #f5f5f8;
  --surface: #ffffff;
  --ink: #1d1c2c;
  --muted: #5c5a70;
  --rule: #dcdbe5;
  --hema: #3f3c91;
  --hema-soft: #ebeaf6;
  --eosin: #b83f73;
  --eosin-soft: #f8e9f0;
  --dab: #7f4f22;
  --dab-soft: #f5ece2;
  --dab-rule: #d9bf9f;
  --ok: #2f7a4f;
  --warn: #a8620b;
  --grid: #e6e5ee;
  --hema-mid: #8e8bd0;
  --eosin-mid: #e09ab9;
  --plate: #ffffff;
  --f-display: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-body: "IBM Plex Sans", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --measure: 68ch;
  --r: 6px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14131d; --surface: #1d1c29; --ink: #e8e7f1; --muted: #a3a1b9; --rule: #33314a;
    --hema: #a19ef2; --hema-soft: #252347; --eosin: #ee88b4; --eosin-soft: #3a2131;
    --dab: #e0a86d; --dab-soft: #2a2017; --dab-rule: #5e4428; --ok: #6cc893; --warn: #f0b056;
    --grid: #2a2940; --plate: #f4f4f6; --hema-mid: #5f5cb4; --eosin-mid: #a2557a; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14131d; --surface: #1d1c29; --ink: #e8e7f1; --muted: #a3a1b9; --rule: #33314a;
  --hema: #a19ef2; --hema-soft: #252347; --eosin: #ee88b4; --eosin-soft: #3a2131;
  --dab: #e0a86d; --dab-soft: #2a2017; --dab-rule: #5e4428; --ok: #6cc893; --warn: #f0b056;
  --grid: #2a2940; --plate: #f4f4f6; --hema-mid: #5f5cb4; --eosin-mid: #a2557a; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-body); font-size: 16.5px; line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; }
a { color: var(--hema); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--hema); outline-offset: 2px; border-radius: 3px; }

/* ---------- barra superior ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--surface); }
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: var(--surface); border-bottom: 1px solid var(--rule);
}
.topbar .in {
  max-width: 1180px; margin: 0 auto; display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
  padding-block: 10px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.brand { display: flex; align-items: baseline; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand b { font-family: var(--f-display); font-weight: 600; font-size: 19px; letter-spacing: .1px; }
.brand span { font-size: 12.5px; color: var(--muted); }
.topnav { display: flex; gap: 4px; flex-wrap: wrap; }
.topnav a { text-decoration: none; color: var(--muted); font-size: 14px; padding: 6px 10px; border-radius: var(--r); }
.topnav a:hover, .topnav a[aria-current="page"] { color: var(--hema); background: var(--hema-soft); }

/* ---------- estrutura ---------- */
.wrap {
  max-width: 1180px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 28px 64px;
}
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .layout { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.toc {
  position: sticky; top: calc(env(safe-area-inset-top, 0px) + 70px);
  font-size: 13.5px; border-left: 2px solid var(--rule); padding-left: 14px;
}
.toc h2 { font-family: var(--f-body); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; font-weight: 600; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.toc a { color: var(--ink); text-decoration: none; display: block; line-height: 1.35; }
.toc a:hover { color: var(--hema); }
.toc .num { font-family: var(--f-mono); font-size: 12px; color: var(--muted); margin-right: 6px; }
@media (max-width: 900px) {
  .toc { position: static; border-left: 0; padding: 14px 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); }
}
main.content { min-width: 0; }
.content > * { max-width: var(--measure); }
.content > .wide, .content > figure, .content > .grafico, .content > .tabwrap, .content > .laudo, .content > .grid2, .content > .figs { max-width: 860px; }

/* ---------- cabeçalho de capítulo ---------- */
.chap-head { border-bottom: 1px solid var(--rule); padding-bottom: 22px; margin-bottom: 28px; max-width: 860px; }
.eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--hema); font-weight: 600; margin: 0 0 6px; }
h1, h2, h3 { font-family: var(--f-display); text-wrap: balance; line-height: 1.15; }
h1 { font-size: clamp(30px, 4.2vw, 44px); font-weight: 600; margin: 0 0 12px; letter-spacing: -.2px; }
.lead { font-size: 18.5px; color: var(--muted); margin: 0; max-width: 64ch; }
h2 { font-size: 27px; font-weight: 600; margin: 52px 0 12px; padding-top: 8px; scroll-margin-top: 80px; }
h2 .sec { font-family: var(--f-mono); font-size: 15px; color: var(--hema); font-weight: 500; margin-right: 10px; vertical-align: 3px; }
h3 { font-size: 20px; font-weight: 600; margin: 28px 0 8px; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 22px; margin: 0 0 14px; }
li { margin-bottom: 4px; }
sup.ref a { font-family: var(--f-mono); font-size: 11px; text-decoration: none; }
strong { font-weight: 600; }

/* ---------- quadros ---------- */
.quadro {
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r);
  padding: 16px 20px; margin: 20px 0;
}
.quadro > h4, .laudo > h4 { margin: 0 0 10px; font-family: var(--f-body); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; color: var(--hema); }
.quadro ul { margin-bottom: 0; }
.quadro .destaque, mark.d { background: var(--hema-soft); color: var(--ink); padding: 0 4px; border-radius: 3px; font-weight: 600; }
.quadro.alerta { border-color: var(--eosin); background: var(--eosin-soft); }
.quadro.alerta > h4 { color: var(--eosin); }

/* quadro de laudo: identidade própria (cor DAB, cabeçalho em faixa, ícone de prancheta) */
.laudo {
  border: 1.5px solid var(--dab-rule); background: var(--dab-soft); border-radius: var(--r);
  margin: 26px 0; overflow: hidden;
}
.laudo .faixa {
  display: flex; align-items: center; gap: 10px; background: var(--dab); color: var(--surface);
  padding: 9px 16px; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600;
}
.laudo .faixa svg { width: 18px; height: 18px; flex: none; }
.laudo .corpo { padding: 14px 20px 16px; }
.laudo .corpo p.ctx { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.laudo table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.laudo td { padding: 7px 8px; border-top: 1px solid var(--dab-rule); vertical-align: top; }
.laudo td:first-child { font-weight: 600; width: 34%; }
.tag { font-family: var(--f-mono); font-size: 11px; padding: 1px 6px; border-radius: 3px; border: 1px solid var(--dab); color: var(--dab); white-space: nowrap; }
.tag.opc { border-style: dashed; opacity: .85; }

/* ---------- números de destaque ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 20px 0; max-width: 860px; }
.stat { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 16px; }
.stat .v { font-family: var(--f-display); font-size: 34px; font-weight: 600; color: var(--hema); line-height: 1; font-variant-numeric: tabular-nums; }
.stat .v small { font-size: 18px; }
.stat .l { font-size: 13.5px; color: var(--muted); margin-top: 6px; line-height: 1.4; }
.stat.eo .v { color: var(--eosin); }

/* ---------- gráficos ---------- */
.grafico { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px 18px 12px; margin: 22px 0; }
.grafico .gt { font-weight: 600; font-size: 15px; margin: 0 0 2px; }
.grafico .gs { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.grafico { overflow-x: auto; }
.grafico svg { width: 100%; min-width: 560px; height: auto; display: block; overflow: visible; }
.grafico .fonte { font-size: 12px; color: var(--muted); margin: 8px 0 0; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin: 4px 0 6px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
svg .ax { stroke: var(--rule); stroke-width: 1; }
svg .gr { stroke: var(--grid); stroke-width: 1; }
svg text { fill: var(--muted); font-family: var(--f-body); font-size: 12px; }
svg text.lab { fill: var(--ink); font-size: 12.5px; }
svg text.val { fill: var(--ink); font-family: var(--f-mono); font-size: 12px; }
svg .s1 { stroke: var(--hema); fill: var(--hema); }
svg .s2 { stroke: var(--eosin); fill: var(--eosin); }
svg .f1 { fill: var(--hema); }
svg .f2 { fill: var(--eosin); }
svg .f3 { fill: var(--dab); }
svg .fsoft { fill: var(--hema-soft); }
svg .fmid { fill: var(--hema-mid); }
svg .femid { fill: var(--eosin-mid); }
svg .fgray { fill: var(--rule); }
svg text.inv { fill: var(--surface); font-family: var(--f-mono); font-size: 12px; }
svg .fesoft { fill: var(--eosin-soft); }
svg .fdsoft { fill: var(--dab-soft); }
svg .ln { fill: none; stroke-width: 2.5; }
svg .ref { stroke: var(--muted); stroke-dasharray: 4 4; stroke-width: 1.2; }

/* ---------- tabelas ---------- */
.tabwrap { overflow-x: auto; margin: 18px 0; border: 1px solid var(--rule); border-radius: var(--r); background: var(--surface); }
table.tab { border-collapse: collapse; width: 100%; font-size: 14.5px; min-width: 560px; }
table.tab th { text-align: left; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--hema-soft); padding: 9px 12px; }
table.tab td { padding: 9px 12px; border-top: 1px solid var(--rule); vertical-align: top; }
table.tab td:first-child { font-weight: 600; }
table.tab .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ---------- figuras ---------- */
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin: 20px 0; }
figure { margin: 0; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; }
figure .plate { background: var(--plate); padding: 14px; display: flex; justify-content: center; align-items: center; }
figure .plate img { max-height: 520px; width: auto; }
figcaption { padding: 12px 16px 14px; font-size: 14px; line-height: 1.5; border-top: 1px solid var(--rule); }
figcaption b.fn { color: var(--hema); font-family: var(--f-mono); font-weight: 500; margin-right: 4px; }
figcaption ol { list-style: none; padding: 0; margin: 6px 0 0; display: grid; gap: 3px; }
figcaption ol b { font-family: var(--f-mono); color: var(--hema); margin-right: 6px; }

/* ---------- linha do tempo pré-analítica ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 22px 0; max-width: 860px; border: 1px solid var(--rule); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.timeline .st { padding: 14px 14px 16px; border-right: 1px solid var(--rule); position: relative; }
.timeline .st:last-child { border-right: 0; }
.timeline .st .k { font-family: var(--f-mono); font-size: 11.5px; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.timeline .st .t { font-weight: 600; margin: 4px 0 6px; line-height: 1.3; }
.timeline .st .lim { display: inline-block; font-family: var(--f-mono); font-size: 13px; background: var(--hema-soft); color: var(--hema); padding: 2px 8px; border-radius: 3px; margin-bottom: 6px; }
.timeline .st p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.45; }
@media (max-width: 760px) { .timeline { grid-template-columns: minmax(0, 1fr); } .timeline .st { border-right: 0; border-bottom: 1px solid var(--rule); } .timeline .st:last-child { border-bottom: 0; } }

.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin: 18px 0; }
.grid2 > .quadro { margin: 0; }

/* ---------- referências e navegação ---------- */
.refs { font-size: 14px; color: var(--ink); padding-left: 26px; }
.refs li { margin-bottom: 8px; scroll-margin-top: 80px; }
.refs li:target { background: var(--hema-soft); border-radius: 3px; }
.refs .doi { font-family: var(--f-mono); font-size: 12.5px; word-break: break-all; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--rule); max-width: 860px; }
.pager a, .pager span { flex: 1 1 220px; text-decoration: none; border: 1px solid var(--rule); border-radius: var(--r); padding: 12px 16px; background: var(--surface); color: var(--ink); }
.pager a:hover { border-color: var(--hema); }
.pager small { display: block; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.pager .next { text-align: right; }
.pager span { opacity: .55; }
.foot { font-size: 13px; color: var(--muted); border-top: 1px solid var(--rule); margin-top: 48px; padding-top: 16px; }

/* ---------- página inicial ---------- */
.hero { padding-block: 26px 30px; border-bottom: 1px solid var(--rule); margin-bottom: 30px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 40px; align-items: end; }
@media (max-width: 860px) { .hero { grid-template-columns: minmax(0, 1fr); gap: 20px; } }
.hero h1 { font-size: clamp(38px, 6vw, 62px); margin: 0 0 6px; line-height: 1.02; }
.hero .sub { font-family: var(--f-display); font-style: italic; font-size: clamp(20px, 2.4vw, 26px); color: var(--hema); margin: 0 0 18px; }
.hero .autor { font-size: 15px; color: var(--muted); margin: 0; }
.hero .autor b { color: var(--ink); }
.hero .chave { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px 18px; font-size: 14px; }
.hero .chave h2 { font-family: var(--f-body); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; padding: 0; font-weight: 600; }
.hero .chave ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.hero .chave li { display: flex; gap: 10px; align-items: flex-start; margin: 0; line-height: 1.4; }
.sw { flex: none; width: 26px; height: 18px; border-radius: 3px; border: 1px solid var(--rule); margin-top: 1px; }
.sw.q { background: var(--surface); }
.sw.a { background: var(--eosin-soft); border-color: var(--eosin); }
.sw.l { background: var(--dab); border-color: var(--dab); }
.sw.g { background: linear-gradient(90deg, var(--hema) 0 45%, var(--hema-soft) 45%); }
.intro { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; margin-bottom: 36px; }
.intro h2 { font-size: 22px; margin: 0 0 8px; padding: 0; }
.intro p { font-size: 15.5px; }
.parte { margin: 34px 0 10px; display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 8px; }
.parte .pn { font-family: var(--f-mono); font-size: 13px; color: var(--hema); }
.parte h2 { margin: 0; padding: 0; font-size: 23px; }
.caps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 12px; margin-top: 14px; }
.cap { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 16px; }
.cap .n { font-family: var(--f-display); font-size: 30px; font-weight: 600; color: var(--hema); line-height: 1; min-width: 34px; font-variant-numeric: tabular-nums; }
.cap .b { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 6px; }
.cap h3 { margin: 0; font-size: 17px; line-height: 1.25; }
.cap p { margin: 0; font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.cap .go { align-self: flex-start; margin-top: 4px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--surface); background: var(--hema); padding: 6px 12px; border-radius: var(--r); }
.cap .go:hover { filter: brightness(1.1); }
.cap .prep { align-self: flex-start; margin-top: 4px; font-size: 12.5px; color: var(--muted); border: 1px dashed var(--rule); padding: 4px 10px; border-radius: var(--r); }
.cap.pronto { border-color: var(--hema); }

/* ---------- calculadora RCB ---------- */
.calc { background: var(--surface); border: 1px solid var(--rule); border-left: 4px solid var(--hema); border-radius: var(--r); padding: 18px 20px; margin: 22px 0; }
.calc h4 { margin: 0 0 4px; font-size: 15px; }
.calc .gs { font-size: 13px; color: var(--muted); margin: 0 0 14px; }
.calc .campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px 16px; }
.calc label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); }
.calc input { font: 15px var(--f-mono); color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: 6px; padding: 7px 9px; width: 100%; box-sizing: border-box; }
.calc input:focus { outline: 2px solid var(--hema); outline-offset: 1px; }
.calc .res { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: baseline; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); }
.calc .res .v { font: 600 28px var(--f-mono); color: var(--hema); }
.calc .res .cls { font: 600 18px var(--f-body); padding: 3px 12px; border-radius: 999px; background: var(--hema-soft); color: var(--hema); }
.calc .res .cls.c2 { background: var(--eosin-soft); color: var(--eosin); }
.calc .res .cls.c3 { background: var(--eosin); color: var(--surface); }
.calc .res small { color: var(--muted); font-size: 12.5px; flex-basis: 100%; }

/* ---------- referências cruzadas e apêndices ---------- */
a.xref { color: var(--hema); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; text-decoration-color: var(--hema-mid); }
a.xref:hover { text-decoration-color: var(--hema); }
.cap.ap .n { color: var(--dab); }
.glossario { max-width: 860px; }
.glossario .letra { font-family: var(--f-display); font-size: 26px; color: var(--hema); margin: 26px 0 4px; border-bottom: 1px solid var(--rule); padding-bottom: 4px; }
.glossario dl { margin: 0; }
.glossario dt { font-weight: 600; margin-top: 12px; }
.glossario dd { margin: 2px 0 0; color: var(--ink); }
.glossario dd .ver { font-size: 13px; color: var(--muted); white-space: nowrap; }
.filtro { display: flex; gap: 10px; align-items: center; margin: 8px 0 18px; max-width: 860px; flex-wrap: wrap; }
.filtro input { font: 15px var(--f-body); color: var(--ink); background: var(--surface); border: 1px solid var(--rule); border-radius: 6px; padding: 8px 10px; flex: 1 1 260px; min-width: 0; }
.filtro input:focus { outline: 2px solid var(--hema); outline-offset: 1px; }
.filtro small { color: var(--muted); }
.modelo { max-width: 860px; margin: 20px 0 28px; border: 1px solid var(--dab-rule); border-radius: var(--r); background: var(--dab-soft); overflow: hidden; }
.modelo .topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 16px; background: var(--dab); color: var(--surface); }
.modelo .topo b { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.modelo button { font: 600 13px var(--f-body); background: transparent; color: var(--surface); border: 1px solid var(--surface); border-radius: 6px; padding: 5px 10px; cursor: pointer; }
.modelo button:hover { background: var(--surface); color: var(--dab); }
.modelo pre { margin: 0; padding: 14px 18px 16px; font: 13.5px/1.6 var(--f-mono); color: var(--ink); white-space: pre-wrap; word-break: break-word; }
.modelo .nota { padding: 0 18px 14px; font-size: 13px; color: var(--muted); }
.refcap { max-width: 860px; }
.refcap h3 { font-size: 17px; margin: 26px 0 6px; }
.refcap h3 a { color: var(--ink); text-decoration: none; }
.refcap h3 a:hover { color: var(--hema); }
.refcap h3 .num { font-family: var(--f-mono); color: var(--hema); font-size: 14px; margin-right: 8px; }

/* ---------- faixa institucional (HC-FMUSP) ---------- */
:root { --hcb: #1277bd; --hct: #169da6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --hcb: #5aa9e6; --hct: #3fc4cc; } }
:root[data-theme="dark"] { --hcb: #5aa9e6; --hct: #3fc4cc; }
.instbar { background: var(--surface); border-bottom: 1px solid var(--rule); }
.instbar .in {
  max-width: 1180px; margin: 0 auto; padding-block: 12px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.inst { display: inline-flex; align-items: center; gap: 16px; text-decoration: none; color: inherit; flex-wrap: nowrap; max-width: 100%; }
.inst img { height: 56px; width: auto; flex: 0 0 auto; border-radius: 4px; }
.inst .sep { width: 1px; align-self: stretch; background: var(--rule); }
.inst .div { display: grid; gap: 1px; font-family: Nunito, var(--f-body); line-height: 1.1; min-width: 0; }
.inst .d1 { color: var(--hcb); font-weight: 600; font-size: 17px; }
.inst .d2 { color: var(--hct); font-weight: 800; font-size: 24px; letter-spacing: -0.01em; }
.inst .by { margin-top: 5px; font-family: var(--f-body); font-size: 13px; color: var(--muted); }
.inst .by b { color: var(--ink); font-weight: 600; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .inst img { background: #fff; padding: 3px 6px; } }
:root[data-theme="dark"] .inst img { background: #fff; padding: 3px 6px; }
@media (max-width: 560px) {
  .inst { gap: 12px; }
  .inst img { height: 40px; }
  .inst .sep { display: none; }
  .inst .d1 { font-size: 15px; }
  .inst .d2 { font-size: 20px; }
}
