@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Instrument Sans";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("/fonts/instrument-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  color-scheme: light;
  --bg: #f5f5f5;
  --card: #fff;
  --text: #171717;
  --muted: #4a4a4a;
  --placeholder: #8a8a8a;
  --fill: #ebebeb;
  --border: #e5e5e5;
  --purple: #9657d2;
  --purple-2: #a366d9;
  /* text-safe purple: --purple is 4.2:1 on the page grey, so small text uses a deeper step of the same hue in light mode */
  --purple-ink: #7d3fbd;
  --on-purple: #fff;
  --radius: 0.5rem;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --display: "Instrument Sans", var(--sans);
  --max: 44rem;
  --ring: rgba(0,0,0,0.15);
  --thead: #f7f3fb;
  --on-text: #fafafa;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #121212;
  --card: #1c1c1e;
  --text: #f2f2f2;
  --muted: #a3a3a3;
  --placeholder: #7a7a7a;
  --fill: #2a2a2d;
  --border: #2e2e32;
  --purple: #b384e6;
  --purple-2: #c19cee;
  --purple-ink: #b384e6;
  --on-purple: #121212;
  --ring: rgba(255,255,255,0.18);
  --thead: #25212b;
  --on-text: #121212;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { height: 100%; }
body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }

.wrap {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 0 1rem 3rem;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 0 0.25rem;
}
.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.wordmark span { color: var(--purple); }
.top-actions { display: flex; gap: 0.5rem; align-items: center; }
.share, .back, .pdf, .theme {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  line-height: 1.2;
  font-family: inherit;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font-size: 0.8125rem;
  color: var(--text);
}
.share:hover, .back:hover, .pdf:hover, .theme:hover { background: var(--fill); border-color: var(--purple); color: var(--purple-ink); }
.share:focus-visible, .back:focus-visible, .pdf:focus-visible, .theme:focus-visible, .chip:focus-visible, .ex:focus-visible { outline: 2px solid var(--purple); outline-offset: 2px; }
.theme { display: inline-flex; align-items: center; padding: 0.3rem 0.5rem; }
.theme svg { display: block; }
.share[hidden], .back[hidden], .pdf[hidden] { display: none; }
.ico { flex: none; display: block; }
.print-head, .print-foot { display: none; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  background: var(--text);
  color: var(--on-text);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  z-index: 20;
}
.toast.show { opacity: 1; }

.hero { padding: 1.25rem 0 0.75rem; }
.hero h1 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.04em;
  font-size: clamp(1.6rem, 7.2vw, 3rem);
  line-height: 1.05;
  white-space: nowrap;
  margin: 0 0 0.7rem;
}
.lede {
  margin: 0 0 1.25rem;
  color: var(--muted);
  font-size: 1rem;
  max-width: 28rem;
}
body.is-searching .hero { padding: 0.15rem 0 0.5rem; }
body.is-searching .hero h1,
body.is-searching .lede { display: none; }

.search-anchor { position: sticky; top: 0; z-index: 8; background: var(--bg); padding: 0.4rem 0 0.65rem; }
.search-shell {
  display: flex;
  align-items: center;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--ring);
  transition: box-shadow 0.15s ease;
}
.search-shell:focus-within { box-shadow: 0 0 0 2px var(--purple); }
#q {
  width: 100%;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 1.125rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  min-width: 0;
  appearance: none;
  -webkit-appearance: none;
}
.clear {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  margin-right: 0.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--fill);
  color: var(--muted);
  padding: 0;
}
.clear:hover { color: var(--text); }
.clear[hidden] { display: none; }
#q::placeholder { color: var(--placeholder); }
#q::-webkit-search-cancel-button { -webkit-appearance: none; }

.examples {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin: 0.85rem 0 0;
}
.examples span { color: var(--muted); font-size: 0.8rem; margin-right: 0.15rem; align-self: center; }
.ex, .chip {
  display: inline-flex;
  align-items: center;
  border: 0;
  background: var(--fill);
  border-radius: 999px;
  padding: 0.22rem 0.6rem;
  font-size: 0.78rem;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  line-height: 1.2;
}
.ex:hover, .chip:hover { box-shadow: 0 0 0 1px var(--ring); }
.chip[aria-pressed="true"] {
  background: var(--purple);
  color: var(--on-purple);
  font-weight: 600;
}
.chips { display: flex; flex-wrap: wrap; gap: 0.3rem; margin: 0.15rem 0 0.8rem; }
.chip-note { width: 100%; font-size: 0.75rem; color: var(--muted); margin: 0; }

.hint, .empty, .status {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1rem 0.15rem;
}
.empty { padding: 1.5rem 0.15rem; }
.kbd {
  display: inline-block;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 0.3rem;
  padding: 0 0.3rem;
  font-size: 0.72rem;
  font-family: var(--sans);
}

.list { display: flex; flex-direction: column; gap: 0.45rem; }
.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.75rem;
  background: var(--card);
  border-radius: var(--radius);
  padding: 0.8rem 0.9rem;
  box-shadow: 0 0 0 1px var(--border);
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  align-items: start;
}
.row:hover, .row.highlighted {
  box-shadow: 0 0 0 2px var(--purple);
}
.row-title { font-weight: 600; letter-spacing: -0.015em; grid-column: 1; }
.badge {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--fill);
  border-radius: 999px;
  padding: 0.15rem 0.45rem;
  margin-top: 0.12rem;
}
.row-sub, .row-stats {
  grid-column: 1 / -1;
  font-size: 0.875rem;
  color: var(--muted);
}
.row-stats { color: var(--text); font-variant-numeric: tabular-nums; }
.row-stats strong { font-weight: 650; }
.muted { color: var(--muted); font-weight: 500; }
.more { text-align: center; color: var(--muted); font-size: 0.8rem; padding: 0.4rem; }

.detail { padding-top: 0.15rem; }
.detail-head { margin: 0.15rem 0 0.85rem; }
.detail-head h1 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  line-height: 1.1;
  margin: 0 0 0.3rem;
}
.detail-meta { color: var(--muted); font-size: 0.9rem; margin: 0; }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin: 0 0 1rem;
}
.stat {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--border);
  padding: 0.7rem 0.75rem;
  border-top: 2px solid var(--purple);
}
.stat .k { display: block; color: var(--muted); font-size: 0.72rem; margin-bottom: 0.15rem; }
.stat:first-child .v { color: var(--purple-ink); }
.stat .v { font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; font-size: 0.98rem; }

.tx {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
  font-variant-numeric: tabular-nums;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--border);
  overflow: hidden;
}
.tx th, .tx td { text-align: left; padding: 0.55rem 0.7rem; vertical-align: top; }
.tx th {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--thead);
  border-bottom: 1px solid var(--border);
}
.tx td { border-top: 1px solid var(--border); }
.tx tr:first-child td { border-top: 0; }
.tx .num { text-align: right; white-space: nowrap; }
.tx td.num { color: var(--purple-ink); font-weight: 600; }
.tx td.num .sub { color: var(--muted); font-weight: 400; }
.tx .sub { display: block; color: var(--muted); font-size: 0.75rem; }
.group { margin: 0 0 0.5rem; }
.group > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--border);
  padding: 0.6rem 0.8rem;
  font-weight: 600;
  font-size: 0.9rem;
}
.group > summary::-webkit-details-marker { display: none; }
.group > summary .muted { font-weight: 500; font-variant-numeric: tabular-nums; text-align: right; }
.group[open] > summary { border-radius: var(--radius) var(--radius) 0 0; }
.group .tx { border-radius: 0 0 var(--radius) var(--radius); }
.honest { color: var(--muted); font-size: 0.75rem; margin: 0.35rem 0 0; }

.foot {
  margin-top: 2rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.5;
}
.foot a { color: var(--purple-ink); text-underline-offset: 2px; }
.foot a:hover { text-decoration-thickness: 2px; }

.seo { margin-top: 1.75rem; color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.seo h2 { font-family: var(--display); font-size: 1rem; font-weight: 600; color: var(--text); margin: 1.25rem 0 0.4rem; letter-spacing: -0.01em; }
.seo p { margin: 0 0 0.6rem; }
.seo a { color: var(--purple-ink); text-underline-offset: 2px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 0.25rem; font-size: 0.8rem; margin: 0 0 0.9rem; color: var(--muted); }
.crumbs a { color: var(--purple-ink); text-underline-offset: 2px; }
.crumbs li { list-style: none; display: inline; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.25rem; margin: 0; padding: 0; }
.crumbs li + li::before { content: "/"; margin-right: 0.25rem; opacity: 0.6; }
.links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); gap: 0.3rem 1rem; }
.links li { display: flex; justify-content: space-between; gap: 0.5rem; }
.links .muted { white-space: nowrap; font-variant-numeric: tabular-nums; }

@media (min-width: 700px) {
  .wrap { padding: 0 1.25rem 4rem; }
  .hero { padding: 2.2rem 0 1rem; }
  #q { font-size: 1.25rem; padding: 1rem 1.1rem; }
  .row { padding: 0.9rem 1rem; }
  body.is-searching .hero { padding: 0.4rem 0 0.5rem; }
}

@media (max-height: 430px) and (orientation: landscape) {
  .hero { padding: 0.2rem 0 0.4rem; }
  .hero h1 { font-size: 1.5rem; margin-bottom: 0.3rem; }
  .lede { display: none; }
  .search-anchor { padding-top: 0.2rem; }
  #q { padding: 0.65rem 0.9rem; font-size: 1rem; }
}

@media print {
  @page { size: A4; margin: 14mm 12mm 18mm; }
  :root, :root[data-theme] {
    color-scheme: light;
    --bg: #fff; --card: #fff; --text: #171717; --muted: #4a4a4a; --fill: #f0f0f0; --border: #d4d4d4;
    --purple: #7d3fbd; --purple-ink: #7d3fbd; --on-purple: #fff; --thead: #f1eaf8; --ring: rgba(0,0,0,.2);
  }
  html, body { background: #fff !important; color: #171717; height: auto; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: none !important; }
  .top, .search-anchor, .examples, .chips, .toast, .back, .share, .pdf, .theme, .hero, #foot, .seo, .crumbs, .links { display: none !important; }
  .wrap { max-width: none; padding: 0; margin: 0; }
  .print-head { display: flex; align-items: baseline; justify-content: space-between; border-bottom: 2px solid #7d3fbd; padding-bottom: 6pt; margin-bottom: 10pt; }
  .print-head .wordmark { font-size: 16pt; }
  .print-head .ph-sub { font-size: 9pt; color: #4a4a4a; }
  .print-foot { display: block; margin-top: 14pt; padding-top: 6pt; border-top: 1px solid #d4d4d4; font-size: 8pt; color: #4a4a4a; line-height: 1.4; word-break: break-all; }
  .stat { break-inside: avoid; }
  .tx tr { break-inside: avoid; }
  .tx thead { display: table-header-group; }
  .group > summary { break-after: avoid; }
  .detail-head h1 { font-size: 18pt; }
  body { font-size: 10pt; }
}
