:root {
  color-scheme: dark;
  --bg: #020307;
  --ink: #f4f0e7;
  --muted: #a9a79e;
  --panel: #000;
  --panel-2: #050607;
  --line: #282e38;
  --line-soft: #151a22;
  --blue: #1f75ff;
  --cyan: #87e8ff;
  --steel: #9fb0c4;
  --violet: #c8b7ff;
  --green: #4ade80;
  --amber: #fbbf24;
  --red: #f87171;
  --content-width: min(1200px, calc(100% - 28px));
  --accent-gradient: linear-gradient(120deg, var(--cyan), var(--blue) 46%, var(--violet));
}

* {
  box-sizing: border-box;
}

@font-face {
  font-family: "Pixel Space";
  src: url("/fonts/PixelSpaceFreePersonalUseR-zrppw.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Audio Nugget";
  src: url("/fonts/audio-nugget.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Toxigenesis";
  src: url("/fonts/toxigenesis.rg-bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Golden Girdle";
  src: url("/fonts/golden-girdle.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html {
  min-height: 100%;
  background:
    radial-gradient(circle at 16% 18%, rgba(33, 79, 145, 0.16), transparent 26rem),
    radial-gradient(circle at 82% 14%, rgba(88, 117, 168, 0.1), transparent 30rem),
    radial-gradient(circle at 52% 84%, rgba(25, 51, 88, 0.12), transparent 28rem),
    linear-gradient(132deg, #010204 0%, #07111e 32%, #020307 66%, #0b1520 100%);
  background-attachment: fixed;
}

html::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.018) 21%, rgba(255, 255, 255, 0.028) 26%, transparent 34%),
    linear-gradient(295deg, transparent 0%, rgba(92, 133, 190, 0.038) 42%, transparent 58%),
    radial-gradient(circle at 32% 42%, rgba(255, 255, 255, 0.02), transparent 32%);
  opacity: 0.8;
  animation: backgroundDrift 26s ease-in-out infinite alternate;
}

@keyframes backgroundDrift {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.72;
  }
  100% {
    transform: translate3d(-1.2%, 1.1%, 0) scale(1.04);
    opacity: 0.88;
  }
}

body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  line-height: 1.5;
  background: transparent;
  background-attachment: fixed;
}

button,
input,
select,
textarea {
  font: inherit;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255, 255, 255, 0.75) 50%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.75) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

button,
a {
  border: 1px solid var(--line);
  background: #050506;
  color: var(--ink);
  border-radius: 6px;
  min-height: 38px;
  padding: 8px 11px;
  text-decoration: none;
  cursor: pointer;
}

button:hover,
a:hover {
  border-color: #577091;
}

main {
  width: var(--content-width);
  margin: 0 auto;
  padding: 24px 0 68px;
}

h1,
h2,
h3,
h4 {
  letter-spacing: 0;
  margin: 0;
  font-weight: 500;
}

h2,
h3 {
  font-family: "Apple Garamond", "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-style: italic;
  color: #f4efe4;
}

h3,
h4 {
  margin-bottom: 12px;
}

.brand-title {
  position: relative;
  display: inline-block;
  font-family: "Apple Garamond", "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-size: clamp(46px, 8vw, 102px);
  line-height: 0.9;
  font-style: italic;
  margin-top: 0;
  color: #f4efe4;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.44));
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.22);
  cursor: default;
}

h2 {
  font-size: 34px;
  line-height: 1.02;
}

h3 {
  font-size: 27px;
  line-height: 1.06;
}

.hero {
  min-height: 15vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 430px);
  gap: 22px;
  align-items: start;
  justify-items: center;
  text-align: center;
  padding-bottom: 12px;
  padding-top: 8px;
  border-bottom: 0;
  width: 100%;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 10px;
  color: transparent;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  text-transform: uppercase;
  font-size: 11px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.hero-actions,
.tile-status,
.effects,
.chips,
.tag-block,
.signal-chain,
.review-key {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero {
  position: relative;
  grid-template-columns: 1fr;
}

.hero-actions {
  margin-top: 18px;
}

.tile,
.pipeline article,
.review-item {
  border: 1px solid #1e232b;
  border-radius: 6px;
  background: #000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 18px 40px rgba(0, 0, 0, 0.24);
}

.review-key span {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
}

.review-key {
  margin-top: 12px;
}

.symbol-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cyan);
  text-decoration: none;
  font-weight: 800;
  font-size: 10px;
  background: #030304;
  padding: 0;
}

.symbol-button.inert {
  pointer-events: none;
}

.glyph-face {
  line-height: 1;
}

.paw-glyph {
  width: 13px;
  height: 13px;
  fill: currentColor;
  display: block;
}

.review-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  align-self: center;
  background: var(--amber);
  box-shadow: 0 0 0 5px #050505;
}

.review-dot.ok {
  background: var(--green);
}

.source-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  background: var(--line);
  margin: 18px 0;
}

.source-strip strong,
.source-strip span {
  background: rgba(5, 5, 5, 0.94);
  padding: 12px;
}

.source-strip strong {
  font-family: "Pixel Space", Georgia, serif;
  font-size: 30px;
}

.source-strip span {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin: 0 0 18px;
}

.pipeline article {
  padding: 14px;
}

.pipeline p {
  color: var(--muted);
  font-size: 12px;
}

.toolbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(0, 2.5fr) repeat(3, minmax(0, 1fr)) auto;
  align-items: stretch;
  gap: 10px;
  padding: 12px 0;
  margin: 0 auto 8px;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.toolbar > * {
  min-width: 0;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(87, 104, 126, 0.62);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.01)),
    linear-gradient(135deg, rgba(8, 12, 18, 0.94), rgba(3, 5, 9, 0.96));
  color: #f4efe4;
  min-height: 44px;
  padding: 9px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  transition: border-color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.toolbar input[data-search] {
  min-width: 0;
  letter-spacing: 0;
}

.toolbar,
.tiles {
  width: 100%;
}

.bibliography-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding-inline: 16px;
  min-height: 44px;
  border-radius: 18px;
  border: 1px solid rgba(87, 104, 126, 0.62);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    linear-gradient(135deg, rgba(8, 12, 18, 0.94), rgba(3, 5, 9, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
  color: #e7e0d3;
}

input:focus,
select:focus,
textarea:focus {
  outline: 1px solid rgba(135, 232, 255, 0.48);
  outline-offset: 1px;
  border-color: rgba(135, 232, 255, 0.5);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(135, 232, 255, 0.12);
}

.bibliography-button:hover,
.bibliography-button:focus-visible {
  border-color: rgba(135, 232, 255, 0.46);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 0 1px rgba(135, 232, 255, 0.12);
}

.toolbar select,
.toolbar input,
.bibliography-button {
  font-size: 12px;
}

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 14px;
  margin-top: 4px;
}

.tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 575px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  cursor: pointer;
  border-color: color-mix(in srgb, var(--type-color, #1e232b) 26%, #1e232b);
  transition: border-color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.tile::before {
  content: "";
  position: absolute;
  inset: auto 16px -30px 16px;
  height: 110px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 45%, rgba(var(--type-rgb, 94, 161, 255), 0.3), rgba(var(--type-rgb, 21, 33, 49), 0.12) 55%, transparent 78%),
    radial-gradient(circle at 20% 50%, rgba(var(--type-rgb, 199, 221, 255), 0.18), transparent 45%);
  opacity: 0;
  filter: blur(10px);
  transform: scale(0.92);
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: -1;
}

.tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 24%, rgba(130, 176, 245, 0.03) 58%, transparent 74%),
    radial-gradient(circle at 82% 16%, rgba(181, 209, 255, 0.08), transparent 18%);
  opacity: 0.55;
  pointer-events: none;
}

.tile:hover {
  border-color: color-mix(in srgb, var(--type-color, #4f6e98) 65%, white 10%);
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 26px 54px rgba(0, 0, 0, 0.38),
    0 8px 22px rgba(var(--type-rgb, 68, 104, 153), 0.28);
}

.tile:hover::before,
.tile:focus-visible::before {
  opacity: 1;
  transform: scale(1);
}

.tile header,
.article-head,
.agent-panel header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.tile header > div,
.article-head > div {
  min-width: 0;
}

.muted,
.empty {
  color: var(--muted);
}

.category-label {
  color: var(--type-color, var(--steel));
}

.name-display {
  font-family: "Apple Garamond", "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-style: italic;
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  line-height: 0.95;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  color: #f4efe4;
}

.name-lower {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: none;
}

.verify {
  width: 14px;
  height: 14px;
  min-height: 14px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  margin-top: 4px;
  background: var(--amber);
  box-shadow: 0 0 0 5px #050505;
}

.verify.ok {
  background: var(--green);
}

.tile-status span,
.status-pill,
.evidence-badge {
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 4px 8px;
  color: var(--muted);
  font-size: 11px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.evidence-badge.high {
  border-color: rgba(74, 222, 128, 0.45);
  color: var(--green);
}

.evidence-badge.human {
  border-color: rgba(135, 232, 255, 0.42);
  color: var(--cyan);
}

.evidence-badge.early {
  border-color: rgba(251, 191, 36, 0.44);
  color: var(--amber);
}

.evidence-badge.conflict {
  border-color: rgba(248, 113, 113, 0.5);
  color: var(--red);
}

.mechanism {
  color: #e7e0d3;
  margin: 0;
  font-size: 12px;
}

.quick {
  display: grid;
  gap: 8px;
  margin: 0;
}

.quick div {
  border-top: 1px solid var(--line-soft);
  padding-top: 8px;
}

dt {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  margin-bottom: 3px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

dd {
  margin: 0;
  font-size: 11px;
  overflow-wrap: anywhere;
}

dd span {
  color: var(--muted);
}

.tag {
  min-height: 0;
  border-radius: 99px;
  padding: 5px 8px;
  color: var(--muted);
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tag-cluster {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tag-effect {
  border-color: rgba(135, 232, 255, 0.34);
}

.tag-gene {
  border-color: rgba(196, 181, 253, 0.34);
}

.tag-protein {
  border-color: rgba(74, 222, 128, 0.26);
}

.tag-cytokine {
  border-color: rgba(248, 113, 113, 0.3);
}

.tag-channel {
  border-color: rgba(251, 191, 36, 0.34);
}

.symbols {
  display: inline-flex;
  gap: 3px;
}

.tag-cluster .symbol-button,
.symbols .symbol-button {
  min-width: 18px;
  min-height: 18px;
  font-size: 9px;
}

.section-note {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
}

.organ-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
}

.organ-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--organ-color, var(--steel));
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.08);
}

table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--line);
  font-size: 12px;
  background: #050506;
}

th,
td {
  padding: 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--cyan);
  text-transform: uppercase;
  font-size: 10px;
  background: #0b0e13;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

tbody tr:nth-child(odd) td {
  background: rgba(255, 255, 255, 0.01);
}

.detail-backdrop {
  position: fixed;
  inset: 0;
  z-index: 10;
  padding: 14px;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(9px);
}

.detail {
  width: min(1180px, 100%);
  max-height: calc(100vh - 28px);
  margin: 0 auto;
  border: 1px solid #323845;
  border-radius: 6px;
  background: #050506;
  color: var(--ink);
  overflow: auto;
}

.detail .name-display {
  font-family: "Apple Garamond", "Cormorant Garamond", "EB Garamond", Georgia, serif;
  font-style: italic;
  color: #f4efe4;
  font-size: clamp(2rem, 3.8vw, 3rem);
}

.article-shell {
  padding: 20px;
}

.article-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #050506;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 16px;
}

.article-head p {
  color: var(--muted);
  margin: 8px 0 0;
  overflow-wrap: anywhere;
}

.bibliography-backdrop {
  position: fixed;
  inset: 0;
  z-index: 14;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(8px);
}

.bibliography-drawer {
  position: absolute;
  top: 16px;
  right: 16px;
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid #323845;
  border-radius: 10px;
  background: #050506;
  padding: 18px;
}

.icon {
  width: 40px;
  padding: 0;
}

.article-section {
  border-top: 1px solid var(--line);
  padding: 22px 0;
}

.article-section h3 {
  margin-bottom: 18px;
}

.article-section h4 {
  margin: 16px 0 8px;
  color: #d7e5f8;
}

.article-section.intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  gap: 18px;
}

.article-section p,
.article-section li {
  color: #dfd9cc;
  font-size: 13px;
}

.label-mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 400;
  color: #dfd9cc;
}

.article-section aside {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.signal-grid {
  display: grid;
  gap: 14px;
}

.pathway-summary,
.pathway-card {
  border: 1px solid #273444;
  background: linear-gradient(135deg, rgba(12, 19, 27, 0.95), rgba(0, 0, 0, 0.95));
  border-radius: 6px;
  padding: 12px;
}

.pathway-card-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.pathway-description {
  margin: 10px 0 12px;
}

.pathway-table {
  margin-top: 12px;
}

.signal-chain {
  align-items: center;
  padding: 10px;
  border: 1px solid #273444;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.28);
}

.signal-node {
  border: 1px solid #3b5066;
  background: #050607;
  border-radius: 18px;
  padding: 7px 10px;
  color: #e8eef8;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: min(100%, 360px);
}

.signal-step-index {
  min-width: 22px;
  min-height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  color: var(--cyan);
  border: 1px solid rgba(135, 232, 255, 0.4);
  background: rgba(135, 232, 255, 0.08);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.signal-arrow {
  color: var(--cyan);
  font-weight: 800;
}

.tag-block {
  align-items: center;
  margin: 8px 0;
}

.tag-block h4 {
  min-width: 150px;
  color: var(--muted);
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-style: normal;
  font-size: 11px;
  text-transform: uppercase;
  margin: 0;
}

.related-panel {
  display: none;
}

.related-backdrop,
.key-backdrop {
  position: fixed;
  inset: 0;
  z-index: 16;
  background: rgba(0, 0, 0, 0.54);
  backdrop-filter: blur(8px);
}

.related-modal,
.key-modal {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(900px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  border: 1px solid #323845;
  border-radius: 10px;
  background: #050506;
  padding: 18px;
}

.modal-head,
.bibliography-drawer > header,
.key-modal > header,
.related-modal > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.modal-close {
  justify-self: end;
  align-self: start;
}

.related-summary {
  margin-bottom: 16px;
}

.key-grid {
  display: grid;
  gap: 10px;
}

.key-row {
  width: 100%;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 10px;
  align-items: center;
  text-align: left;
}

.key-row p {
  margin: 0;
}

.key-row.active {
  border-color: rgba(135, 232, 255, 0.45);
}

.key-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.inline-link {
  border: 0;
  padding: 0;
  min-height: 0;
  color: var(--cyan);
  background: transparent;
}

.table-link,
.study-link,
.vendor-link {
  border: 0;
  padding: 0;
  min-height: 0;
  background: transparent;
  color: var(--cyan);
}

.citation {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-inline: 2px;
}

.citation a {
  min-height: 0;
  padding: 1px 4px;
  border-color: rgba(135, 232, 255, 0.35);
  color: var(--cyan);
  font-size: 10px;
}

.citation-popover {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  min-width: 300px;
  max-width: 420px;
  padding: 10px;
  border: 1px solid #3c4e5f;
  border-radius: 4px;
  background: #030507;
  color: var(--ink);
  font-size: 11px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: opacity 0.14s ease, transform 0.14s ease;
  z-index: 30;
}

.citation:hover .citation-popover,
.citation:focus-within .citation-popover {
  opacity: 1;
  transform: translateY(0);
}

.citation-popover span {
  display: block;
  color: var(--muted);
  margin-top: 4px;
}

.citations-section a {
  border: 0;
  padding: 0;
  color: var(--cyan);
  background: transparent;
}

@media (max-width: 820px) {
  main {
    width: min(100% - 20px, 1200px);
  }

  .hero,
  .article-section.intro {
    grid-template-columns: 1fr;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .tiles {
    grid-template-columns: 1fr;
  }

  .tile {
    min-height: 0;
  }

  .detail-backdrop {
    padding: 8px;
  }

  .detail {
    max-height: calc(100vh - 16px);
  }
}

@media (max-width: 1120px) and (min-width: 821px) {
  .toolbar {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
  }

  .bibliography-button {
    width: 100%;
  }
}
