@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap");
:root { --font-mono: "DM Sans", Arial, sans-serif; --mono: "DM Sans", Arial, sans-serif; }
/* Character art needs fixed-width glyphs to retain its shape. */
html body :is(pre,.ascii,.ascii-art,.garden,.garden *) { font-family: monospace !important; }
.toc { border-left: 1px solid #dfe3e7; padding-left: 16px; }
body .toc a { position: relative; transition: color .2s ease; }
body .toc a[aria-current="location"] { color: var(--tracker-color, #F2511B); font-weight: 500; }
.toc a[aria-current="location"]::before { content: ""; position: absolute; left: -18px; top: 0; bottom: 0; width: 3px; background: var(--tracker-color, #F2511B); border-radius: 3px; }
/* A sliding paper note marks the reader's place. */
body .toc--notes { position: sticky; isolation: isolate; border-left: 0; padding: 0 12px; gap: 16px; }
body .toc--notes strong { font-size: 10px; letter-spacing: .08em; padding-bottom: 8px; }
body .toc--notes a { z-index: 1; padding: 4px 0; font-size: 13px; }
body .toc--notes a[aria-current="location"] { color: var(--active-note-ink); font-weight: 500; }
body .toc--notes a::before { display: none; }
.toc-note { position: absolute; left: 0; right: 0; top: 0; z-index: 0; pointer-events: none; box-shadow: 0 3px 5px #35414f12; transition: transform .4s cubic-bezier(.22,1,.36,1), height .3s ease, background-color .3s ease; }
.toc-note { clip-path: polygon(0 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%); }
.toc-note::after { content: ''; position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; background: #00000020; clip-path: polygon(0 0,100% 0,0 100%); box-shadow: -1px -1px 2px #00000012; }

@media (prefers-reduced-motion: reduce) { .toc-note { transition: none; } }