/* Article-only styles: shared navigation and other pages keep their existing styles. */
.full-article {
  --bg: #071017; --bg-2: #0d1420; --panel: #101826; --panel-2: #0f1f33;
  --ink: #e9eef6; --muted: #a4b3c7; --accent: #ff5a48; --ring: #263447;
  --link: #6ab6ff; --code: #1a2332; --good: #22c55e; --warn: #f59e0b;
  --shadow: 0 14px 40px rgb(0 0 0 / 18%);
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 64px) clamp(18px, 4vw, 32px) 72px;
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: break-word;
}
.full-article, .full-article *, .full-article *::before, .full-article *::after { box-sizing: border-box; }
.full-article > header { margin-bottom: 28px; }
.full-article h1 { margin: 16px 0; font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 700; line-height: 1.14; letter-spacing: -.025em; }
.full-article h2 { margin: 34px 0 14px; font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 650; line-height: 1.3; letter-spacing: -.015em; }
.full-article h3 { margin: 24px 0 10px; font-size: 1.12rem; font-weight: 650; line-height: 1.4; }
.full-article p { margin: 0 0 14px; }
.full-article p.lead { color: var(--muted); font-size: 1.13rem; max-width: 76ch; }
.full-article strong { font-weight: 700; }
.full-article ul, .full-article ol { margin: 0 0 16px; padding-left: 1.5rem; }
.full-article ul { list-style: disc; }
.full-article ol { list-style: decimal; }
.full-article li { margin: .4rem 0; }
.full-article a { color: var(--link); text-decoration: underline; text-underline-offset: .2em; }
.full-article a:hover { text-decoration-thickness: 2px; }
.full-article :focus-visible { outline: 2px solid var(--link); outline-offset: 4px; border-radius: 4px; }
.full-article .chip { display: inline-flex; align-items: center; gap: .5rem; padding: .3rem .7rem; border: 1px solid var(--ring); border-radius: 999px; color: var(--muted); font-size: .9rem; }
.full-article .panel, .full-article .fig { background: linear-gradient(180deg, var(--panel-2), var(--panel)); border: 1px solid var(--ring); border-radius: 14px; padding: clamp(16px, 2.5vw, 24px); }
.full-article > section { margin-top: 28px; }
.full-article .panel.tight { padding: 14px; }
.full-article .panel > :first-child, .full-article .fig > :first-child { margin-top: 0; }
.full-article .panel > :last-child, .full-article .fig > :last-child { margin-bottom: 0; }
.full-article .grid { display: grid; gap: 20px; }
.full-article .grid > * { min-width: 0; }
.full-article .grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.full-article .grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.full-article .tldr { border-left: 4px solid var(--accent); }
.full-article .callout { border-left: 4px solid var(--link); }
.full-article .relationship { border-left: 4px solid var(--good); }
.full-article .muted { color: var(--muted); }
.full-article figure { margin: 0; }
.full-article figcaption { margin-top: 12px; font-size: .95rem; color: var(--muted); line-height: 1.6; }
.full-article .grid:has(> figure) { grid-template-columns: 1fr; }
.full-article .fig svg { display: block; width: 100%; max-width: 720px; height: auto; margin-inline: auto; }
.full-article .badge { display: inline-block; font-size: .85rem; padding: .15rem .5rem; border: 1px solid var(--ring); border-radius: 8px; }
.full-article .math { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; background: var(--code); border: 1px solid var(--ring); padding: 0 .25em; border-radius: 5px; white-space: normal; }
.full-article div.math { padding: 12px 14px; margin: 14px 0; overflow-x: auto; white-space: nowrap; max-width: 100%; }
.full-article .formula { display: inline-block; max-width: 100%; background: var(--code); border: 1px solid var(--ring); border-radius: 10px; padding: .2rem .45rem; }
.full-article blockquote { margin: 18px 0; padding: 12px 16px; border-left: 4px solid var(--ring); background: var(--panel); }
.full-article hr { margin: 34px 0; border: 0; border-top: 1px solid var(--ring); }
.full-article .tip { margin-top: 14px; padding: 14px 16px; border: 1px solid var(--ring); border-radius: 12px; background: var(--panel); }
.full-article .article-table-scroll { max-width: 100%; overflow-x: auto; margin: 16px 0; }
.full-article table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .95rem; }
.full-article th, .full-article td { padding: 12px; border-bottom: 1px solid var(--ring); text-align: left; vertical-align: top; }
.full-article th { color: var(--muted); font-weight: 650; }
.full-article tr:nth-child(even) td { background: rgb(255 255 255 / 3%); }
.full-article .tooltip { position: relative; cursor: help; display: inline-block; border-bottom: 1px dotted var(--muted); }
.full-article .tooltip .tooltiptext { visibility: hidden; opacity: 0; position: absolute; z-index: 10; background: var(--panel); color: var(--ink); border: 1px solid var(--ring); border-radius: 8px; padding: 10px; bottom: 125%; left: 0; width: min(280px, 72vw); font-size: .9rem; font-weight: 400; line-height: 1.45; box-shadow: var(--shadow); white-space: normal; }
.full-article .tooltip:hover .tooltiptext, .full-article .tooltip:focus .tooltiptext, .full-article .tooltip:focus-within .tooltiptext { visibility: visible; opacity: 1; }
.full-article svg * { vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-linejoin: round; }
.full-article .svg-bg { fill: transparent; }
.full-article .svg-muted { stroke: var(--muted) !important; }
.full-article .svg-link { stroke: var(--link) !important; }
.full-article .svg-accent { stroke: var(--accent) !important; }
.full-article .svg-good { stroke: var(--good) !important; }
.full-article .svg-warn { stroke: var(--warn) !important; }
.full-article .svg-text { fill: var(--ink) !important; }
.full-article .svg-muted-fill { fill: var(--muted) !important; }
.full-article mjx-container[jax="CHTML"][display="true"] { overflow-x: auto; overflow-y: hidden; max-width: 100%; padding: .25rem 0; }
.full-article > .muted:last-child { margin-top: 32px; }
@media (max-width: 880px) {
  .full-article .grid.cols-2, .full-article .grid.cols-3 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .full-article *, .full-article *::before, .full-article *::after { animation: none !important; transition: none !important; }
}
