:root {
  color-scheme: light;
  --navy: #183248;
  --navy-light: #24455f;
  --rail-text: #dce9f3;
  --ground: #f1f5f8;
  --paper: #fff;
  --ink: #243748;
  --muted: #526779;
  --link: #175c91;
  --line: #cedae3;
  --tint: #eaf2f8;
  --focus: #176ca9;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ground);
  accent-color: var(--link);
  scrollbar-color: #819aaf var(--ground);
  scrollbar-width: thin;
}
* { box-sizing: border-box; }
body { margin: 0; }
::selection { color: #102c43; background: #c4dff3; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: #103e63; text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
input, select { caret-color: var(--link); }
.skip { position: absolute; z-index: 10; top: -6rem; left: 1rem; padding: .6rem 1rem; background: var(--paper); }
.skip:focus { top: .6rem; }
.layout { display: grid; grid-template-columns: 224px minmax(0, 1fr); max-width: 1440px; margin: 0 auto; min-height: 100vh; }
.sidebar { background: var(--navy); color: var(--rail-text); padding: 32px 22px; }
.sidebar-inner { position: sticky; top: 32px; }
.brand { display: block; color: #fff; font-size: 26px; font-weight: 700; text-decoration: none; letter-spacing: -.025em; line-height: 1.2; margin-bottom: 32px; }
.brand span { font-weight: 400; color: #c5deef; }
.sidebar a:hover { color: #fff; }
.sidebar :focus-visible { outline-color: #afd9fc; }
.site-search { margin-bottom: 28px; }
.site-search label { display: block; margin-bottom: 6px; color: var(--rail-text); font-size: 14px; }
.search-line { display: flex; background: #fff; border-radius: 3px; }
.search-line input { width: 100%; min-width: 0; padding: 10px 8px; border: 0; border-radius: 3px 0 0 3px; font: inherit; font-size: 13px; }
.search-line button { border: 0; border-radius: 0 3px 3px 0; padding: 8px; color: var(--navy); background: #fff; min-width: 40px; cursor: pointer; }
.search-line button:hover { background: var(--tint); }
.search-line svg { fill: none; stroke: currentColor; stroke-width: 1.8; display: block; }
.sidebar nav { display: grid; gap: 3px; }
.sidebar nav a { display: block; margin: 0 -10px; padding: 8px 10px; color: var(--rail-text); text-decoration: none; border-radius: 3px; font-size: 15px; }
.sidebar nav a:hover, .sidebar nav a[aria-current] { background: var(--navy-light); color: #fff; }
.sidebar nav a[aria-current] { font-weight: 650; }
.rail-note { border-top: 1px solid #486276; margin-top: 30px; padding-top: 18px; font-size: 13px; color: #bdcfdc; }
main { min-width: 0; background: var(--paper); padding: 40px clamp(24px, 5vw, 72px) 28px; }
.reading > :not(.page-heading):not(footer) { max-width: 72ch; }
.page-heading { border-bottom: 1px solid var(--line); margin-bottom: 24px; padding-bottom: 16px; }
h1 { font-size: clamp(28px, 3vw, 36px); line-height: 1.2; margin: 0; font-weight: 650; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: 23px; line-height: 1.35; margin: 38px 0 12px; font-weight: 650; letter-spacing: -.012em; text-wrap: balance; scroll-margin-top: 16px; }
h3 { font-size: 17px; line-height: 1.4; margin: 22px 0 10px; }
p { margin: 12px 0; }
.lead { font-size: 19px; line-height: 1.55; margin-top: 0; }
li { margin: 6px 0; }
ul, ol { padding-left: 24px; }
dt { margin-top: 20px; font-weight: 650; }
dd { margin: 4px 0 16px; }
.guide-list dt { font-size: 19px; }
.guide-list dd { color: var(--muted); }
.contents { background: var(--ground); border: 1px solid var(--line); padding: 14px 20px; margin: 24px 0 30px; }
.contents ul { margin: 6px 0 0; }
.contents li { margin: 3px 0; }
.notice { padding: 12px 16px; border: 1px solid var(--line); background: var(--tint); }
.primary-link { font-weight: 650; }
code, pre { font-family: ui-monospace, Consolas, monospace; font-size: .875em; }
code { background: var(--ground); padding: 1px 4px; border-radius: 2px; overflow-wrap: anywhere; }
pre { background: var(--ground); padding: 14px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.filters { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 14px 16px; border: 1px solid var(--line); background: var(--ground); padding: 20px; margin-top: 24px; }
.filters label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 5px; }
.filters input, .filters select, .reset { min-height: 44px; border: 1px solid #93a9bb; background: #fff; border-radius: 3px; padding: 8px 10px; color: var(--ink); font: inherit; font-size: 15px; width: 100%; }
input::placeholder { color: #5f7180; opacity: 1; }
.query-field { grid-column: 1 / -1; }
.filters > div { min-width: 0; }
.reset { align-self: end; width: auto; cursor: pointer; color: var(--link); }
.reset:hover { background: var(--tint); border-color: var(--link); }
.result-count { color: var(--muted); font-size: 14px; margin: 16px 0; }
.empty { background: var(--ground); border: 1px solid var(--line); padding: 20px; }
.alphabet { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 1px solid var(--line); padding-bottom: 14px; margin: 14px 0; }
.alphabet a { min-width: 32px; min-height: 36px; display: inline-flex; justify-content: center; align-items: center; }
.results { list-style: none; margin: 0; padding: 0; }
.result-row { border-bottom: 1px solid var(--line); margin: 0; padding: 16px 0; }
.result-title { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.result-row a { font-weight: 650; font-size: 17px; }
.row-meta { color: var(--muted); font-size: 14px; margin: 4px 0 0; font-variant-numeric: tabular-nums; }
.status { font-size: 13px; font-weight: 650; padding: 3px 8px; border-radius: 3px; display: inline-block; white-space: nowrap; background: var(--tint); color: #2e5570; }
.status.not_implemented { background: #f7ebe5; color: #824526; }
.status.unknown { background: #edf0f3; color: #4c5d6a; }
.status.supported { background: #e5f1e9; color: #2b6542; }
.item-id { font-variant-numeric: tabular-nums; color: var(--muted); margin-left: 8px; }
.item-entry { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 40px; scroll-margin-top: 16px; }
.item-entry:target { background: #f8fbfe; outline: 1px solid var(--line); outline-offset: 12px; }
.item-entry > h2 { margin-top: 20px; }
details { margin: 12px 0; }
summary { color: var(--link); cursor: pointer; font-weight: 650; padding: 8px 0; min-height: 44px; }
summary:hover { text-decoration: underline; text-underline-offset: .18em; }
.detail-content { padding-left: 12px; }
.source + .source { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 4px; }
.provenance { display: block; color: var(--muted); overflow-wrap: anywhere; font-size: 12px; margin: 8px 0 12px; }
.verification { font-size: 14px; color: var(--muted); }
.evidence-list, .references { font-size: 14px; }
.quest-entry { border-top: 1px solid var(--line); padding-top: 4px; margin-top: 28px; scroll-margin-top: 16px; }
footer { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 16px; font-size: 13px; color: var(--muted); }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  .layout { display: block; }
  .sidebar { padding: 20px; }
  .sidebar-inner { position: static; }
  .brand { font-size: 23px; margin-bottom: 18px; }
  .site-search { margin-bottom: 16px; max-width: 420px; }
  .site-search input { font-size: 16px; }
  .sidebar nav { display: flex; flex-wrap: wrap; gap: 2px 8px; }
  .sidebar nav a { font-size: 14px; padding: 8px; margin: 0; }
  .rail-note { display: none; }
  main { padding: 28px 22px; }
  .filters { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .query-field { grid-column: auto; }
  .filters input, .filters select { font-size: 16px; }
  .reset { justify-self: start; }
  .result-title { display: block; }
  .result-title .status { margin-top: 6px; }
  .result-title a { display: block; }
  footer { display: block; }
}
@media print {
  .sidebar, .filters, .skip, footer { display: none; }
  .layout { display: block; }
  main { padding: 0; }
  a { color: inherit; }
}
