/* Ochio API docs. The website's graphite look (v16-v18): graphite ground, charcoal panels, hairlines, Manrope and
   JetBrains Mono, Ochio blue only for primary buttons and active states. The reference pages use the two-column layout
   of API references: the words on the left, the requests and answers on a darker band on the right. */

@font-face { font-family: "Manrope"; src: url("fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }

:root {
  --ink: #17191D;          /* page: graphite */
  --ink-2: #1C1F23;
  --panel: #212429;        /* cards: charcoal */
  --band: #111316;         /* the code column */
  --card: #15171B;         /* code cards on the page */
  --line: rgba(236, 234, 226, .11);
  --line-2: rgba(236, 234, 226, .06);
  --grid: rgba(236, 234, 226, .028);
  --text: #ECEAE2;
  --text-2: #C4C5C8;
  --muted: #989BA2;
  --dim: #6C7078;
  --blue: #244CCF;         /* Ochio blue */
  --blue-deep: #18359A;
  --blue-text: #93ABFF;
  --green: #3CB371;
  --amber: #F0A13A;
  --red: #E5484D;
  --code-text: #D8D7D1;
  --code-str: #E9C46A;
  --code-num: #F0A13A;

  --f-sans: "Manrope", "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --top: 60px;
  --side: 268px;
  --codew: 44%;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--top) + 16px); -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--ink); color: var(--text);
  font-family: var(--f-sans); font-size: 16px; line-height: 1.65; font-weight: 400;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip;
}
a { color: var(--text); text-decoration: underline; text-decoration-color: rgba(236, 234, 226, .35); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--text); }
p { margin: 0 0 14px; text-wrap: pretty; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin: 4px 0; }
li::marker { color: var(--dim); }
strong, b { font-weight: 650; color: var(--text); }
h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -.025em; line-height: 1.15; text-wrap: balance; }
code { font-family: var(--f-mono); font-size: .86em; color: var(--text); background: rgba(236, 234, 226, .06); border: 1px solid var(--line-2); padding: .08em .36em; border-radius: 3px; overflow-wrap: anywhere; }
pre code { background: none; border: 0; padding: 0; font-size: inherit; color: inherit; overflow-wrap: normal; border-radius: 0; }
kbd { font-family: var(--f-mono); font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-bottom-width: 2px; padding: 0 5px; border-radius: 3px; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue-text); outline-offset: 2px; }
.mono { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--blue); color: #fff; padding: 8px 14px; text-decoration: none; }
.skip:focus { top: 10px; }

/* buttons, as on the website: square, mono, crop-corner dots */
.btn {
  --c: #fff;
  display: inline-flex; align-items: center; gap: .8em; justify-content: center;
  min-height: 44px; padding: 0 20px; border: 0; cursor: pointer; text-decoration: none;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600;
  color: #fff; background:
    linear-gradient(var(--c), var(--c)) top 4px left 4px / 3px 3px no-repeat,
    linear-gradient(var(--c), var(--c)) top 4px right 4px / 3px 3px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom 4px left 4px / 3px 3px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom 4px right 4px / 3px 3px no-repeat,
    var(--blue);
  transition: background-color .2s;
}
.btn:hover { background-color: var(--blue-deep); text-decoration: none; }
.btn--ghost { --c: var(--text); color: var(--text); background:
    linear-gradient(var(--c), var(--c)) top 4px left 4px / 3px 3px no-repeat,
    linear-gradient(var(--c), var(--c)) top 4px right 4px / 3px 3px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom 4px left 4px / 3px 3px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom 4px right 4px / 3px 3px no-repeat;
  box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { box-shadow: inset 0 0 0 1px var(--text); background-color: transparent; }

/* ---------------------------------------------------------------- top bar */
.top { position: sticky; top: 0; z-index: 40; height: var(--top); display: flex; align-items: center; gap: 18px;
  padding: 0 var(--gutter-r) 0 var(--gutter); background: rgba(23, 25, 29, .9); backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); flex: none; }
.brand svg { height: 18px; width: auto; display: block; fill: currentColor; }
.brand-tag { color: var(--muted); border-left: 1px solid var(--line); padding-left: 12px; line-height: 18px; }
.search-btn { display: inline-flex; align-items: center; gap: 10px; min-width: 0; flex: 0 1 300px; height: 36px; margin-left: 12px;
  padding: 0 10px 0 12px; background: var(--ink-2); border: 1px solid var(--line); color: var(--dim); cursor: pointer;
  font: 500 13px/1 var(--f-sans); text-align: left; }
.search-btn:hover { border-color: rgba(236, 234, 226, .22); color: var(--muted); }
.search-btn svg { width: 15px; height: 15px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.6; }
.search-btn span { flex: 1; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.top-links { display: flex; align-items: center; gap: 22px; margin-left: auto; }
.top-links a { color: var(--muted); text-decoration: none; }
.top-links a:hover { color: var(--text); }
.top .btn { min-height: 36px; padding: 0 14px; }
.menu-btn { display: none; margin-left: auto; height: 36px; padding: 0 12px; border: 1px solid var(--line); background: transparent;
  color: var(--text); cursor: pointer; align-items: center; gap: 8px; }
.menu-btn span.bars { width: 14px; height: 10px; position: relative; border-top: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; }
.menu-btn span.bars::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid currentColor; transform: translateY(-50%); }

/* ---------------------------------------------------------------- layout */
.layout { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: calc(100vh - var(--top)); }
.sidebar { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; overscroll-behavior: contain;
  border-right: 1px solid var(--line); padding: 26px 14px 60px 18px; scrollbar-width: thin; scrollbar-color: #2b2f35 transparent; }
.side-group { margin-bottom: 26px; }
.side-group h2 { color: var(--dim); margin: 0 0 8px 10px; font-size: 10.5px; }
.side-group ul { list-style: none; margin: 0; padding: 0; }
.side-group li { margin: 0; }
.side-link { display: flex; align-items: center; gap: 8px; padding: 6px 10px; color: var(--muted); text-decoration: none; font-size: 14.5px;
  font-weight: 500; border-left: 2px solid transparent; line-height: 1.35; }
.side-link:hover { color: var(--text); }
.side-link[aria-current="page"] { color: var(--text); border-left-color: var(--blue); background: rgba(36, 76, 207, .08); }
.side-sub { list-style: none; margin: 4px 0 10px 12px !important; padding: 0 0 0 0 !important; border-left: 1px solid var(--line-2); }
.side-sub a { display: flex; align-items: baseline; gap: 8px; padding: 4px 8px 4px 12px; color: var(--dim); text-decoration: none; font-size: 13px; line-height: 1.35; }
.side-sub a:hover { color: var(--text-2); }
.side-sub a.is-active { color: var(--text); }
.side-sub .m { flex: none; width: 38px; text-align: left; padding: 0; background: none !important; font-size: 9.5px; }

.content { min-width: 0; }
.scrim { display: none; }
.page-foot { border-top: 1px solid var(--line); padding: 28px clamp(24px, 4vw, 56px) 48px; color: var(--dim); display: flex; flex-wrap: wrap; gap: 10px 26px; }
.page-foot a { color: var(--muted); text-decoration: none; }
.page-foot a:hover { color: var(--text); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; padding: 36px clamp(24px, 4vw, 56px) 8px; max-width: 900px; }
.pager a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); text-decoration: none; background: var(--ink-2); }
.pager a:hover { border-color: rgba(236, 234, 226, .25); }
.pager a .mono { color: var(--dim); }
.pager a span:last-child { font-weight: 600; letter-spacing: -.01em; }
.pager a.next { text-align: right; grid-column: 2; }

/* ---------------------------------------------------------------- sections: words left, code right */
.hero { padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 56px) clamp(28px, 4vw, 40px); border-bottom: 1px solid var(--line);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: .7em; color: var(--dim); }
.hero .eyebrow::before { content: ""; width: 6px; height: 6px; background: var(--dim); }
.hero h1 { font-size: clamp(2.3rem, 1.6rem + 2.6vw, 3.4rem); letter-spacing: -.04em; line-height: 1.02; margin: 16px 0 16px; max-width: 18ch; }
.hero .lede { font-size: 1.125rem; line-height: 1.6; color: var(--text-2); max-width: 62ch; margin: 0; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 26px; color: var(--dim); }
.hero .facts b { color: var(--text-2); font-weight: 500; }

.sec { display: grid; grid-template-columns: minmax(0, 1fr); border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--top) + 8px); }
.sec-text { padding: 44px clamp(24px, 4vw, 56px) 36px; min-width: 0; }
.sec-text > * { max-width: 720px; }
.sec-text > .wide { max-width: none; }
.sec-code { padding: 0 clamp(24px, 4vw, 56px) 40px; min-width: 0; display: grid; gap: 16px; align-content: start; }
.sec-code:empty { display: none; }
.sec h2 { font-size: 1.75rem; letter-spacing: -.03em; margin-bottom: 14px; }
.sec h2 a, .sec h3 a { color: inherit; text-decoration: none; }
.sec h2 a:hover::after, .sec h3 a:hover::after { content: " #"; color: var(--dim); }
.sec h3 { font-size: 1.15rem; letter-spacing: -.015em; margin: 30px 0 10px; font-weight: 600; }
.sec .lede { color: var(--text-2); font-size: 1.0625rem; }
.label { display: block; color: var(--dim); margin: 26px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

@media (min-width: 1200px) {
  .content { background: linear-gradient(90deg, transparent calc(100% - var(--codew)), var(--band) calc(100% - var(--codew))); }
  .hero { position: relative; z-index: 1; background-color: var(--ink); }
  .pager, .page-foot { background: var(--ink); max-width: none; }
  .pager { padding-right: calc(var(--codew) + 56px); }
  .page-foot { position: relative; }
  .sec { grid-template-columns: calc(100% - var(--codew)) var(--codew); }
  .sec-code { padding: 44px 28px 36px; }
  .sec-code:empty { display: block; }
  .sec--full { grid-template-columns: minmax(0, 1fr); background: var(--ink); }
  .sec--full .sec-text > * { max-width: 920px; }
}

/* the endpoint line */
.ep { display: flex; align-items: center; gap: 10px; margin: 2px 0 18px; padding: 9px 12px; background: var(--ink-2); border: 1px solid var(--line);
  font-family: var(--f-mono); font-size: 13.5px; overflow-x: auto; white-space: nowrap; max-width: 720px; }
.ep .path { color: var(--text); }
.ep .path i { font-style: normal; color: var(--blue-text); }
.m { display: inline-block; font-family: var(--f-mono); font-weight: 700; font-size: 10.5px; letter-spacing: .06em; padding: 3px 7px; line-height: 1.2; flex: none; }
.m-get { color: var(--green); background: rgba(60, 179, 113, .12); }
.m-post { color: var(--amber); background: rgba(240, 161, 58, .12); }
.m-delete { color: var(--red); background: rgba(229, 72, 77, .12); }
.m-patch, .m-put { color: var(--blue-text); background: rgba(147, 171, 255, .12); }

/* who may call it */
.access { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.access .mono { color: var(--dim); }
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 12px; color: var(--text-2);
  border: 1px solid var(--line); padding: 2px 8px; background: rgba(236, 234, 226, .03); white-space: nowrap; }

/* parameters */
.params { margin: 0 0 8px; border-top: 1px solid var(--line); }
.param { padding: 13px 0 12px; border-bottom: 1px solid var(--line-2); }
.param-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.param-name { font-family: var(--f-mono); font-size: 13.5px; font-weight: 600; color: var(--text); }
.param-type { font-family: var(--f-mono); font-size: 12px; color: var(--dim); }
.param-req { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
.param-opt { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.param-desc { margin-top: 4px; color: var(--text-2); font-size: 15px; line-height: 1.6; }
.param-desc p:last-child { margin-bottom: 0; }
.param-desc .vals { color: var(--muted); font-size: 14px; }
.param .param-kids { margin: 10px 0 2px 2px; padding-left: 16px; border-left: 1px solid var(--line); }
.param .param-kids .param { padding: 9px 0; }
.param .param-kids .param:last-child { border-bottom: 0; }

/* tables */
.table-wrap { overflow-x: auto; margin: 4px 0 18px; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; line-height: 1.5; }
th { text-align: left; font-family: var(--f-mono); font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--dim);
  padding: 10px 12px 9px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 11px 12px 10px 0; border-bottom: 1px solid var(--line-2); color: var(--text-2); vertical-align: top; }
td:first-child { color: var(--text); }
td .yes { color: var(--green); font-family: var(--f-mono); font-size: 12.5px; }
td .no { color: var(--dim); font-family: var(--f-mono); font-size: 12.5px; }
.nowrap { white-space: nowrap; }

/* notes */
.note { margin: 6px 0 18px; padding: 13px 16px; border: 1px solid var(--line); border-left: 2px solid var(--dim); background: rgba(236, 234, 226, .025);
  color: var(--text-2); font-size: 15px; }
.note .mono { display: block; color: var(--dim); margin-bottom: 4px; font-size: 10.5px; }
.note p:last-child { margin-bottom: 0; }
.note--warn { border-left-color: var(--amber); }

/* code cards */
.code-card { background: var(--card); border: 1px solid var(--line); min-width: 0; }
@media (min-width: 1200px) { .code-card { background: #15171B; } }
.code-head { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 6px 0 14px; border-bottom: 1px solid var(--line); }
.code-title { color: var(--dim); white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; }
.code-tabs { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.code-tabs::-webkit-scrollbar { display: none; }
.code-tabs button { position: relative; flex: none; height: 39px; padding: 0 9px; border: 0; background: none; cursor: pointer; color: var(--dim);
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .02em; }
.code-tabs button:hover { color: var(--text-2); }
.code-tabs button[aria-selected="true"] { color: var(--text); }
.code-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 9px; right: 9px; bottom: -1px; height: 2px; background: var(--blue); }
.code-tabs + .copy, .code-head .copy { margin-left: 4px; }
.code-head .spacer { margin-left: auto; }
.copy { flex: none; height: 28px; padding: 0 9px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer;
  font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.copy:hover { color: var(--text); border-color: rgba(236, 234, 226, .25); }
.copy.done { color: var(--green); border-color: rgba(60, 179, 113, .45); }
.code-card pre { margin: 0; padding: 14px 16px 16px; overflow: auto; max-height: 540px; font-family: var(--f-mono); font-size: 12.5px; line-height: 1.7;
  color: var(--code-text); tab-size: 2; scrollbar-width: thin; scrollbar-color: #2b2f35 transparent; }
.code-card pre.tall { max-height: none; }
.code-panel[hidden] { display: none; }
.code-sub { padding: 9px 14px; border-bottom: 1px solid var(--line-2); color: var(--muted); font-size: 13px; line-height: 1.5; }
.status { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .02em; }
.code-tabs button .dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.s2 { background: var(--green); } .s4 { background: var(--amber); } .s5 { background: var(--red); }
.code-card .cap { padding: 8px 14px; border-top: 1px solid var(--line-2); color: var(--dim); font-size: 12.5px; line-height: 1.5; }

/* syntax colors: the website's (blue keys, yellow strings) */
.t-k { color: var(--blue-text); }
.t-s { color: var(--code-str); }
.t-n { color: var(--code-num); }
.t-l { color: #E59A6F; }
.t-c { color: var(--dim); font-style: italic; }
.t-p { color: #8A8E96; }
.t-f { color: var(--blue-text); }
.t-v { color: var(--code-num); }
.t-w { color: #C9A0F0; }
.t-h { color: var(--muted); }

/* a flow of boxes (how it works) */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 8px 0 6px; counter-reset: f; }
.flow-step { position: relative; padding: 16px 16px 16px 0; border-top: 1px solid var(--text); display: grid; gap: 6px; align-content: start; margin-right: 18px; }
.flow-step .mono { color: var(--dim); }
.flow-step b { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; line-height: 1.3; }
.flow-step p { color: var(--muted); font-size: 14px; line-height: 1.55; margin: 0; }
.flow-step code { font-size: 12px; }
@media (max-width: 1100px) { .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 0; } }
@media (max-width: 560px) { .flow { grid-template-columns: minmax(0, 1fr); } .flow-step { margin-right: 0; } }

/* cards (what you can build, downloads) */
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 6px 0 18px; }
.card { display: grid; gap: 6px; align-content: start; padding: 18px 18px 16px; background: var(--ink-2); border: 1px solid var(--line); text-decoration: none; color: var(--text); }
a.card:hover { border-color: rgba(236, 234, 226, .25); }
.card .mono { color: var(--dim); }
.card b { font-size: 16.5px; font-weight: 600; letter-spacing: -.01em; }
.card span.d { color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.card .go { color: var(--muted); font-size: 13px; margin-top: 4px; }
@media (max-width: 680px) { .cards { grid-template-columns: minmax(0, 1fr); } }

/* the mission life cycle drawing */
.diagram { margin: 8px 0 18px; border: 1px solid var(--line); background: #15171B; overflow-x: auto; }
.diagram svg { display: block; width: 100%; min-width: 660px; height: auto; }
.diagram .cap { padding: 8px 14px; border-top: 1px solid var(--line-2); color: var(--dim); font-size: 12.5px; }
.lc-box rect { fill: #1E2126; stroke: rgba(236, 234, 226, .22); stroke-width: 1; }
.lc-box text { font-family: var(--f-mono); font-size: 12px; fill: var(--text); text-anchor: middle; dominant-baseline: central; }
.lc-box.final rect { fill: #17191D; stroke-dasharray: 3 3; }
.lc-box.final text { fill: var(--text-2); }
.lc-box.ok rect { stroke: rgba(60, 179, 113, .7); }
.lc-arrow { fill: none; stroke: #6C7078; stroke-width: 1.3; }
.lc-arrow.soft { stroke: #4B4F57; stroke-dasharray: 4 3; }
.lc-label { font-family: var(--f-sans); font-size: 11.5px; fill: var(--muted); }
.lc-head { fill: #6C7078; }

/* details (event types) */
details.ev { border-bottom: 1px solid var(--line-2); }
details.ev summary { display: flex; align-items: baseline; gap: 12px; padding: 11px 0; cursor: pointer; list-style: none; }
details.ev summary::-webkit-details-marker { display: none; }
details.ev summary::before { content: "+"; font-family: var(--f-mono); color: var(--dim); width: 12px; flex: none; }
details.ev[open] summary::before { content: "\2212"; color: var(--blue-text); }
details.ev summary code { flex: none; }
details.ev summary span { color: var(--text-2); font-size: 15px; }
details.ev .code-card { margin: 2px 0 14px 24px; }

/* search */
.search-dlg { position: fixed; inset: 0; z-index: 80; display: none; align-items: flex-start; justify-content: center; padding: 10vh 16px 16px; background: rgba(8, 9, 11, .66); }
.search-dlg.open { display: flex; }
.search-box { width: min(640px, 100%); max-height: 72vh; display: flex; flex-direction: column; background: var(--panel); border: 1px solid rgba(236, 234, 226, .18); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.search-box .row { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.search-box .row svg { width: 16px; height: 16px; stroke: var(--dim); fill: none; stroke-width: 1.7; flex: none; }
.search-box input { flex: 1; min-width: 0; height: 52px; border: 0; outline: 0; background: transparent; color: var(--text); font: 500 16px var(--f-sans); }
.search-box input::placeholder { color: var(--dim); }
.search-res { list-style: none; margin: 0; padding: 6px; overflow-y: auto; }
.search-res li { margin: 0; }
.search-res a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 10px; padding: 9px 10px; text-decoration: none; color: var(--text-2); }
.search-res a[aria-selected="true"], .search-res a:hover { background: rgba(236, 234, 226, .06); color: var(--text); }
.search-res .m, .search-res .kind { grid-row: span 2; align-self: start; margin-top: 3px; }
.search-res .kind { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); width: 44px; }
.search-res .t { font-weight: 600; font-size: 14.5px; }
.search-res .p { color: var(--dim); font-size: 12.5px; font-family: var(--f-mono); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.search-empty { padding: 18px 16px; color: var(--muted); font-size: 14px; }
.search-foot { display: flex; gap: 16px; padding: 9px 14px; border-top: 1px solid var(--line); color: var(--dim); font-size: 12px; }

/* ---------------------------------------------------------------- small screens */
@media (max-width: 1199px) {
  .sec-code { padding-top: 0; }
  .code-card { background: var(--band); }
}
@media (max-width: 960px) {
  :root { --top: 56px; }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; top: var(--top); left: 0; bottom: 0; height: auto; width: min(320px, 86vw); z-index: 60; background: var(--ink);
    transform: translateX(-102%); transition: transform .22s ease; box-shadow: 20px 0 60px rgba(0, 0, 0, .45); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { display: block; }
  .scrim { display: none; position: fixed; inset: var(--top) 0 0 0; z-index: 55; background: rgba(8, 9, 11, .55); }
  .menu-btn { display: inline-flex; }
  .top-links { display: none; }
  .search-btn { flex: 1 1 auto; margin-left: 4px; }
  .search-btn kbd { display: none; }
  .brand-tag { display: none; }
}
@media (max-width: 560px) {
  .sec-text { padding: 34px var(--gutter-r) 28px var(--gutter); }
  .sec-code { padding: 0 var(--gutter-r) 32px var(--gutter); }
  .hero, .pager, .page-foot { padding-left: var(--gutter); padding-right: var(--gutter-r); }
  .sec h2 { font-size: 1.5rem; }
  .pager { grid-template-columns: minmax(0, 1fr); }
  .pager a.next { grid-column: 1; }
  .search-btn span { display: none; }
  .search-btn { flex: 0 0 auto; width: 36px; padding: 0; justify-content: center; margin-left: auto; }
  .menu-btn { margin-left: 0; }
  .code-card pre { font-size: 12px; }
  th, td { padding-right: 10px; }
}
@media print {
  .top, .sidebar, .pager, .copy, .code-tabs { display: none !important; }
  .layout { display: block; }
  .content { background: none !important; }
  .sec { grid-template-columns: minmax(0, 1fr) !important; }
  .code-panel[hidden] { display: block !important; }
}
.sec-text > h3:first-child { margin-top: 0; font-size: 1.3rem; letter-spacing: -.02em; font-weight: 600; }

.code-tabs.row2 { margin: 0; padding: 0 6px; flex-wrap: wrap; overflow: visible; border-bottom: 1px solid var(--line); gap: 0 2px; }
.code-tabs.row2 button { height: 36px; }
td code { white-space: nowrap; overflow-wrap: normal; }
td:last-child code { white-space: normal; overflow-wrap: anywhere; }
