/* Ollin · site */

*, ::before, ::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 72px; }
body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, pre { margin: 0; }
img, picture, video, canvas, svg { display: block; max-width: 100%; }
picture img { height: auto; }
@media (prefers-reduced-motion: reduce) {
  *, ::before, ::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

:root {
  color-scheme: light dark;
  --bg: #ffffff;
  --surface: #f5f5f7;
  --surface-2: #ececef;
  --border: rgba(0, 0, 0, 0.09);
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --muted: #a1a1a6;
  --accent: #8e44e6;
  --accent-ink: #ffffff;
  --tab: #1d1d1f;
  --tab-ink: #ffffff;
  --bar: rgba(255, 255, 255, 0.72);
  --code-bg: #f5f5f7;
  --tk-comment: #8a8a8e;
  --tk-string: #c41a16;
  --tk-number: #1c00cf;
  --tk-keyword: #ad3da4;
  --tk-type: #3f6e74;
  --tk-attribute: #836c28;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, "Cascadia Code", "Fira Code", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --bar-height: 52px;
  --max: 1440px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0d0d;
    --surface: #1c1a1a;
    --surface-2: #262323;
    --border: rgba(255, 255, 255, 0.08);
    --text: #f0eeee;
    --text-2: #8d8c8c;
    --muted: #5a5858;
    --accent: #bf5af2;
    --accent-ink: #0e0d0d;
    --tab: #f0eeee;
    --tab-ink: #0e0d0d;
    --bar: rgba(14, 13, 13, 0.72);
    --code-bg: #1c1a1a;
    --tk-comment: #7f7c7c;
    --tk-string: #fc6a5d;
    --tk-number: #d0bf69;
    --tk-keyword: #fc5fa3;
    --tk-type: #9ef1dd;
    --tk-attribute: #d9c97c;
  }
}

html, body { background: var(--bg); color: var(--text); }
body {
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 0.15em; }
code, pre, kbd { font-family: var(--mono); font-size: 0.88em; }
code { background: var(--surface); padding: 0.1em 0.35em; border-radius: 6px; }
pre { background: var(--code-bg); border: 1px solid var(--border); border-radius: 14px; padding: 1.1rem 1.25rem; overflow-x: auto; line-height: 1.6; font-size: 13.5px; }
pre code { background: none; padding: 0; font-size: inherit; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5rem 0; }
sup { font-size: 0.75em; line-height: 0; }

/* The bar */
.bar {
  position: sticky; top: 0; z-index: 10;
  background: var(--bar);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
  height: var(--bar-height);
}
.bar-inner { max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); height: 100%; display: flex; align-items: center; gap: 1.5rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--text); font-weight: 600; font-size: 17px; letter-spacing: -0.01em; }
.wordmark:hover { text-decoration: none; }
.mark { width: 30px; height: 30px; flex: none; }
.sections { margin-left: auto; display: flex; align-items: stretch; height: 100%; gap: 0.25rem; }
.sections a { position: relative; display: inline-flex; align-items: center; padding: 0 0.85rem; color: var(--text-2); font-size: 14px; font-weight: 500; letter-spacing: -0.005em; transition: color 150ms var(--ease); }
.sections a:hover { color: var(--text); text-decoration: none; }
.sections a.active { color: var(--tab-ink); }
.sections a.active::before {
  content: ""; position: absolute; left: 0; right: 0; top: -12px; bottom: 7px; z-index: -1;
  background: var(--tab); border-radius: 0 0 8px 8px;
}

/* The layout */
.layout { flex: 1; width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); display: grid; gap: 3rem; grid-template-columns: minmax(0, 1fr); }
.layout.with-sidebar { grid-template-columns: 240px minmax(0, 1fr); }
.layout.with-rail { grid-template-columns: 240px minmax(0, 1fr) 200px; }
main { min-width: 0; padding: 2.5rem 0 5rem; max-width: 760px; }
.layout.single main, .layout.home main { max-width: none; }
.layout.home main { padding-top: 0; }

.sidebar, .rail { position: sticky; top: var(--bar-height); align-self: start; max-height: calc(100dvh - var(--bar-height)); overflow-y: auto; padding: 2.5rem 0 3rem; font-size: 13.5px; scrollbar-width: thin; }
.sidebar ul, .rail ul { list-style: none; margin: 0; padding: 0; }
.sidebar li a, .rail li a { display: block; padding: 0.3rem 0.6rem; margin: 0 -0.6rem; border-radius: 8px; color: var(--text-2); line-height: 1.35; }
.sidebar li a:hover, .rail li a:hover { color: var(--text); background: var(--surface); text-decoration: none; }
.sidebar li a[aria-current="page"] { color: var(--text); font-weight: 600; background: var(--surface); }
.sidebar-title, .rail-title { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin: 0 0 0.6rem; }
.sidebar details { margin-top: 1rem; }
.sidebar summary { cursor: pointer; font-weight: 600; color: var(--text); padding: 0.3rem 0; list-style: none; display: flex; align-items: center; gap: 0.4rem; }
.sidebar summary::-webkit-details-marker { display: none; }
.sidebar summary::before { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(-45deg); transition: transform 200ms var(--ease); margin-right: 0.1rem; }
.sidebar details[open] > summary::before { transform: rotate(45deg); }
.sidebar details ul { margin-top: 0.2rem; }
.rail li.level-3 a { padding-left: 1.4rem; font-size: 12.5px; }

/* The trail */
.trail { font-size: 13px; color: var(--text-2); margin-bottom: 1.75rem; }
.trail a { color: var(--text-2); }
.trail a:hover { color: var(--text); }
.trail sup { font-size: inherit; line-height: inherit; }
.trail code { background: none; padding: 0; font-size: 0.95em; }

/* Prose */
.prose h1 { font-size: 40px; line-height: 1.1; font-weight: 700; letter-spacing: -0.025em; margin: 0 0 1.25rem; }
.prose h2 { font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -0.02em; margin: 3rem 0 1rem; }
.prose h3 { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; margin: 2.25rem 0 0.75rem; }
.prose h4 { font-size: 17px; font-weight: 600; margin: 1.75rem 0 0.5rem; }
.prose h5, .prose h6 { font-size: 15px; font-weight: 600; margin: 1.5rem 0 0.5rem; color: var(--text-2); }
.prose h1 code, .prose h2 code, .prose h3 code, .prose h4 code { font-size: 0.85em; background: none; padding: 0; }
.prose p, .prose ul, .prose ol, .prose blockquote, .prose .table, .prose pre, .prose picture, .prose > img { margin: 0 0 1.1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin: 0.3rem 0; }
.prose li > ul, .prose li > ol { margin: 0.3rem 0 0; }
.prose blockquote { border-left: 3px solid var(--border); padding: 0.25rem 0 0.25rem 1.1rem; color: var(--text-2); }
.prose blockquote p:last-child { margin-bottom: 0; }
.prose picture, .prose > img { margin-top: 1.5rem; margin-bottom: 1.5rem; }
.prose picture img, .prose > img { border-radius: 14px; }
.prose .badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: -0.25rem; }
.prose .badges img { display: inline-block; height: 20px; border-radius: 4px; }
.prose .lede { font-size: 21px; line-height: 1.4; color: var(--text-2); letter-spacing: -0.01em; margin-bottom: 1.75rem; }
.prose strong { font-weight: 600; }
.prose .table { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.7rem 1rem; border-top: 1px solid var(--border); }
.prose th { border-top: 0; font-weight: 600; background: var(--surface); }
.prose td:first-child { white-space: nowrap; }
.prose a[name], .prose a[id] { display: block; position: relative; top: -72px; visibility: hidden; }

/* The front page's band: one sketch at a time beside the whole program
   that draws it, paged by the dots under it. The track is a scroller
   that snaps, so a swipe is the browser's own and no script is needed
   to move between them. */
.home-band > h2 { margin-bottom: 0.4rem; }
.band-lede { margin: 0 0 2rem; color: var(--text-2); }
.band-track { display: grid; grid-auto-flow: column; grid-auto-columns: 100%; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; }
.band-track::-webkit-scrollbar { display: none; }
.band-track:focus-visible { outline: 2px solid var(--text); outline-offset: 8px; border-radius: 14px; }
.band-slide { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 1.75rem; align-items: center; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.band-slide figure { margin: 0; }
.band-slide video { width: 100%; height: auto; border-radius: 14px; background: var(--surface); }
.band-code { min-width: 0; }
.band-code > h3 { margin: 0 0 0.85rem; font-size: 19px; font-weight: 600; letter-spacing: -0.015em; }
.band-code pre { margin: 0; font-size: 12.5px; line-height: 1.55; }
.band-code > p { margin: 1rem 0 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.band-code > p code { background: var(--surface-2); }
.band-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-top: 1.75rem; }
.band-pager { display: flex; align-items: center; gap: 0.3rem; }
.band-arrow { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--border); border-radius: 999px; background: none; color: var(--text-2); cursor: pointer; transition: color 150ms var(--ease), background 150ms var(--ease); }
.band-arrow:hover { color: var(--text); background: var(--surface); }
.band-arrow .icon { width: 16px; height: 16px; }
.band-arrow[data-band-step="-1"] .icon { transform: scaleX(-1); }
.band-dots { display: flex; align-items: center; margin: 0 0.35rem; }
/* The mark is small and the button is not: a dot you can hit with a
   thumb is 22px of target around 8px of ink. */
.band-dot { position: relative; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 999px; background: none; cursor: pointer; }
.band-dot::before { content: ''; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 999px; background: var(--border); transition: background 150ms var(--ease), transform 150ms var(--ease); }
.band-dot:hover::before { background: var(--text-2); }
.band-dot[aria-current="true"]::before { background: var(--text); transform: scale(1.25); }
.page-hero { margin: 0 0 2rem; }
.page-hero video { width: 100%; height: auto; border-radius: 14px; background: var(--surface); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 1rem; margin: 0 0 2rem; }
.gallery figure { margin: 0; }
.gallery img, .gallery video { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 12px; background: var(--surface); }
.gallery figcaption { margin-top: 0.4rem; font-size: 13px; line-height: 1.3; color: var(--text-2); }
.example-clip { margin: 0 0 1.75rem; }
.example-clip video { width: 100%; height: auto; border-radius: 14px; background: var(--surface); }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.45rem 1.25rem; font-size: 15px; margin: 0 0 1.75rem; padding: 1rem 1.25rem; background: var(--surface); border-radius: 14px; }
.facts dt { color: var(--text-2); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts code { background: var(--surface-2); }

.tk-comment { color: var(--tk-comment); font-style: italic; }
.tk-string { color: var(--tk-string); }
.tk-number { color: var(--tk-number); }
.tk-keyword { color: var(--tk-keyword); }
.tk-type { color: var(--tk-type); }
.tk-attribute { color: var(--tk-attribute); }

/* The front page */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; gap: 3rem; padding: clamp(3rem, 8vw, 6rem) 0 clamp(2rem, 5vw, 4rem); }
.eyebrow { font-size: 15px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); margin-bottom: 1rem; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); line-height: 1.05; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 1.75rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.button { display: inline-flex; align-items: center; padding: 0.7rem 1.25rem; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 500; font-size: 15px; transition: transform 300ms var(--ease), opacity 150ms; }
.button:hover { text-decoration: none; transform: translateY(-1px); opacity: 0.9; }
.button.quiet { background: transparent; color: var(--text); border: 1.5px solid var(--text); }
.hero-canvas { width: 100%; max-width: 460px; justify-self: center; }
.hero-canvas canvas { width: 100%; height: auto; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-bottom: 3rem; }
.card { display: block; padding: 1.5rem; background: var(--surface); border-radius: 18px; color: var(--text); transition: transform 400ms var(--ease), background 150ms; }
.card:hover { text-decoration: none; transform: translateY(-2px); background: var(--surface-2); }
.card h2 { font-size: 21px; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 0.4rem; }
.card p { color: var(--text-2); font-size: 15px; margin: 0; }

/* The front page below the cards: the README's opening and a few of its
   sections, each laid out for the width of a page. The blocks are the
   README's own markup; only the classes on the sections are the site's. */
.home-section { padding: 3.5rem 0; border-top: 1px solid var(--border); }
.home-section > h2:first-child, .home-pair h2 { font-size: 34px; letter-spacing: -0.025em; margin: 0 0 1.5rem; }
.home-opening { border-top: 0; padding-top: 0.5rem; }
.home-opening > p, .home-opening > blockquote { max-width: 820px; }
.home-opening > p:first-child { font-size: 22px; line-height: 1.4; letter-spacing: -0.012em; margin-bottom: 1.5rem; }
.home-opening > ul { list-style: none; padding: 0; margin: 2rem 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.home-opening > ul > li { margin: 0; padding: 1.1rem 1.25rem; background: var(--surface); border-radius: 14px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.home-opening > ul > li strong { color: var(--text); }
.home-opening > ul > li code { background: var(--surface-2); }
.home-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 3rem; padding: 3.5rem 0; border-top: 1px solid var(--border); }
.home-pair > .home-section { border-top: 0; padding: 0; min-width: 0; }
.home-pair p:last-child, .home-pair pre:last-child { margin-bottom: 0; }
/* The section is the grid, since the README's spaced bullets render as
   one list each; the lists dissolve into it and every item is a card. */
.home-whats-in-it { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.home-whats-in-it > h2, .home-whats-in-it > p { grid-column: 1 / -1; max-width: 820px; margin: 0; }
.home-section.home-whats-in-it > h2:first-child { margin-bottom: 0.25rem; }
.home-whats-in-it > p:last-child { margin-top: 0.5rem; }
.home-whats-in-it > ul { display: contents; }
.home-whats-in-it > ul > li { list-style: none; margin: 0; padding: 1.5rem 1.6rem; background: var(--surface); border-radius: 18px; font-size: 15px; line-height: 1.5; color: var(--text-2); }
.home-whats-in-it > ul > li > strong:first-child { display: block; color: var(--text); font-size: 19px; line-height: 1.3; letter-spacing: -0.015em; margin-bottom: 0.5rem; }
.home-whats-in-it > ul > li code { background: var(--surface-2); }
.home-more > ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.home-more > ul > li { margin: 0; }
.home-more a { display: inline-flex; align-items: center; padding: 0.55rem 1rem; border: 1px solid var(--border); border-radius: 999px; color: var(--text); font-size: 15px; font-weight: 500; transition: background 150ms var(--ease); }
.home-more a:hover { text-decoration: none; background: var(--surface); }

/* The foot */
.foot { border-top: 1px solid var(--border); margin-top: auto; }
.foot-inner { max-width: var(--max); margin: 0 auto; padding: 2rem var(--pad); font-size: 13px; color: var(--text-2); }
.foot a { color: var(--text-2); text-decoration: underline; text-underline-offset: 0.15em; }

/* Narrower */
@media (max-width: 1100px) {
  .layout.with-rail { grid-template-columns: 240px minmax(0, 1fr); }
  .rail { display: none; }
}
@media (max-width: 860px) {
  .layout.with-sidebar, .layout.with-rail { grid-template-columns: minmax(0, 1fr); gap: 0; }
  /* The section's map goes under the page on a phone, where a reader
     wants the page first and the map after. */
  .sidebar { order: 2; position: static; max-height: none; padding: 1.5rem 0 2.5rem; border-top: 1px solid var(--border); }
  .sidebar details { margin-top: 0.5rem; }
  main { padding-top: 1.75rem; padding-bottom: 2.5rem; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-canvas { max-width: 320px; order: -1; }
  /* Stacked, the cards' own spacing already separates them from what
     follows, so the margin under the row reads as a hole, not a break. */
  .cards { grid-template-columns: minmax(0, 1fr); margin-bottom: 1.5rem; }
  /* Stacked, the sketch goes over its program rather than beside it,
     and the clip is capped so the two together still read as one
     screenful. One at a time is what makes that fit at all. */
  .band-slide { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .band-slide figure { width: 100%; max-width: 340px; margin: 0 auto; }
  .band-code pre { font-size: 11.5px; }
  .band-controls { justify-content: center; margin-top: 1.25rem; }
  .home-section { padding: 2.5rem 0; }
  .home-section > h2:first-child, .home-pair h2 { font-size: 28px; }
  .home-opening > p:first-child { font-size: 19px; }
  .home-opening > ul, .home-pair, .home-whats-in-it { grid-template-columns: minmax(0, 1fr); }
  .home-pair { gap: 2.5rem; padding: 2.5rem 0; }
  .prose h1 { font-size: 32px; }
  .prose h2 { font-size: 24px; }
  .sections a { padding: 0 0.55rem; font-size: 13px; }
}
@media (max-width: 480px) {
  .wordmark .name { display: none; }
  .bar-inner { gap: 0.75rem; }
  .sections { gap: 0; }
  .sections a { padding: 0 0.5rem; font-size: 12.5px; }
}

/* Search: a button in the bar, a panel over the page */
.search-toggle { display: inline-flex; align-items: center; gap: 0.45rem; height: 30px; padding: 0 0.6rem 0 0.55rem; margin-left: 0.25rem; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; cursor: pointer; transition: color 150ms var(--ease), background 150ms var(--ease); }
.search-toggle:hover { color: var(--text); background: var(--surface-2); }
.search-toggle .icon { width: 15px; height: 15px; }
.search-toggle .key { font-size: 11.5px; color: var(--muted); letter-spacing: 0.02em; }
.search-toggle .key:empty { display: none; }
dialog.search { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: var(--text); }
dialog.search::backdrop { background: rgba(0, 0, 0, 0.35); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.search-panel { display: flex; flex-direction: column; width: min(640px, calc(100% - 2rem)); max-height: min(70dvh, 640px); margin: clamp(2rem, 10vh, 7rem) auto 0; background: var(--bg); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 24px 80px rgba(0, 0, 0, 0.28); overflow: hidden; }
.search-box { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--border); }
.search-box .icon { width: 18px; height: 18px; color: var(--text-2); flex: none; }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 19px; letter-spacing: -0.01em; }
.search-box input::-webkit-search-cancel-button, .search-box input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }
.search-box input::placeholder { color: var(--muted); }
.search kbd { font-family: var(--font); font-size: 11px; line-height: 1; color: var(--text-2); border: 1px solid var(--border); border-radius: 6px; padding: 0.25em 0.45em; background: var(--surface); }
.search-status { padding: 0.6rem 1.1rem 0; font-size: 12.5px; color: var(--muted); }
.search-status:empty { display: none; }
.search-results { list-style: none; margin: 0; padding: 0.5rem; overflow-y: auto; flex: 1; scrollbar-width: thin; }
.search-results:empty { display: none; }
.search-results li a { display: grid; grid-template-columns: 82px minmax(0, 1fr); gap: 0.1rem 0.9rem; padding: 0.6rem 0.75rem; border-radius: 12px; color: var(--text); font-size: 15px; line-height: 1.35; }
.search-results li a:hover { text-decoration: none; }
.search-results li.active a { background: var(--surface); }
.search-results .kind { grid-row: 1 / span 2; padding-top: 0.3em; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.search-results .where { font-weight: 600; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.search-results .where .sep { color: var(--muted); font-weight: 400; }
.search-results .excerpt { font-size: 13.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search mark { background: none; color: inherit; font-weight: 700; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 0.12em; }
.search-hints { display: flex; align-items: center; gap: 0.4rem; padding: 0.6rem 1.1rem; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.search-hints kbd { margin-right: 0.15rem; }
@media (max-width: 860px) {
  .search-toggle .key { display: none; }
  .search-panel { margin-top: 1rem; max-height: calc(100dvh - 2rem); }
  .search-results li a { grid-template-columns: minmax(0, 1fr); }
  .search-results .kind { grid-row: auto; padding-top: 0; }
  .search-hints { display: none; }
}