/* Match this site's ivory, charcoal and burgundy; do not introduce a theme. */
:root {
  --pnav-bg: var(--bg, #fefefa);
  --pnav-text: var(--text, #343434);
  --pnav-muted: var(--muted, #686868);
  --pnav-line: var(--line, #ddd);
  --pnav-link: var(--link, #900020);
  --pnav-halo: var(--code, #eee7e8);
}
:root[data-theme="dark"] {
  --pnav-bg: var(--bg, #191a1b);
  --pnav-text: var(--text, #e8e6e1);
  --pnav-muted: var(--muted, #aaa8a2);
  --pnav-line: var(--line, #444);
  --pnav-link: var(--link, #f0a6b6);
  --pnav-halo: var(--code, #38262d);
}
.pnav, .pnav * { box-sizing: border-box; }
.pnav-section { scroll-margin-top: 28px; min-width: 0; }
.pnav-section:focus:not(:focus-visible) { outline: none; }
.pnav a:focus-visible, .pnav-section:focus-visible { outline: 2px solid var(--pnav-link); outline-offset: 5px; }
.pnav { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 16px; padding: 0; font-size: 13px; line-height: 1.5; }
.pnav a { color: var(--pnav-muted); text-decoration: none; padding: 5px 0; overflow-wrap: anywhere; min-width: 0; }
.pnav a:hover, .pnav a[aria-current="location"] { color: var(--pnav-text); }
.pnav a[aria-current="location"] { text-decoration: underline; text-underline-offset: 5px; }
.pnav-track, .pnav-dot { display: none; }
/* At 1100px the existing 900px article needs only 4px extra margin per side. */
@media (min-width: 1100px) {
  .project-page { width: min(900px, calc(100% - 208px)); }
}
@media (min-width: 1100px) and (min-height: 481px) and (hover: hover) and (pointer: fine) {
  .pnav:not(.pnav-long):not(.pnav-short):not(.pnav-wide-labels) { position: fixed; z-index: 20; left: 18px; top: 50%; transform: translateY(-50%); flex-direction: column; flex-wrap: nowrap; gap: 0; width: 32px; margin: 0; }
  .pnav:not(.pnav-long):not(.pnav-short):not(.pnav-wide-labels) .pnav-track { display: block; position: absolute; pointer-events: none; left: 15px; width: 2px; top: 19px; bottom: 19px; border-radius: 2px; background: var(--pnav-line); }
  .pnav-fill { display: block; width: 100%; height: 0; background: var(--pnav-link); border-radius: inherit; }
  .pnav:not(.pnav-long):not(.pnav-short):not(.pnav-wide-labels) a { position: relative; display: flex; flex: 0 0 38px; height: 38px; align-items: center; justify-content: center; padding: 0; border-radius: 4px; text-decoration: none; }
  .pnav:not(.pnav-long):not(.pnav-short):not(.pnav-wide-labels) a::after { content: ""; position: absolute; left: 100%; top: 0; width: 4px; height: 100%; }
  .pnav:not(.pnav-long):not(.pnav-short):not(.pnav-wide-labels) .pnav-dot { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--pnav-bg); box-shadow: inset 0 0 0 1.5px var(--pnav-muted); transition: transform .18s; }
  .pnav .is-read .pnav-dot { background: var(--pnav-link) !important; box-shadow: none !important; }
  .pnav [aria-current="location"] .pnav-dot { background: var(--pnav-link) !important; box-shadow: 0 0 0 4px var(--pnav-halo) !important; transform: scale(1.3); }
  .pnav a:hover .pnav-dot { transform: scale(1.3); }
  .pnav:not(.pnav-long):not(.pnav-short):not(.pnav-wide-labels) .pnav-label { position: absolute; left: 34px; width: max-content; max-width: 160px; padding: 4px 7px; border: 1px solid var(--pnav-line); border-radius: 4px; background: var(--pnav-bg); font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; opacity: 0; transform: translateX(-4px); pointer-events: none; transition: opacity .18s, transform .18s; }
  .pnav:not(.pnav-long):not(.pnav-short):not(.pnav-wide-labels):is(:hover, :focus-within) .pnav-label { opacity: 1; transform: none; pointer-events: auto; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pnav .pnav-dot, .pnav .pnav-label { transition: none !important; }
}
@media print {
  .pnav { display: none !important; }
  .project-page { width: 100%; max-width: none; }
}
