/* Layout and palette matched to terminal-design-reference.html. */
:root {
  --bg: #121417;
  --panel: #252a30;
  --fg: #c8cdd2;
  --muted: #939ca6;
  --dim: #78838e;
  --accent: #a4b9a2;
  --line: #343a42;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--fg);
  background: var(--bg);
  font: 13px/1.75 ui-monospace, SFMono-Regular, Menlo, Monaco,
        Consolas, "Liberation Mono", monospace;
}
.chrome {
  background: var(--panel);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 16px;
  font-size: 11px;
  color: #aeb8c2;
  gap: 10px;
}
.brand { color: #bdc8ce; font-weight: 650; }
.path { color: #8f9da7; }
.tabs {
  display: flex;
  gap: 4px;
  padding: 10px 15px 0;
  flex-wrap: wrap;
}
.tab {
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #9ca7b1;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
  padding: 5px 11px;
}
.tab[aria-current="page"] {
  background: #b2bfc6;
  color: #16191c;
  font-weight: 650;
}
.tab:hover:not([aria-current="page"]) { background: var(--panel); color: #d3d9db; }
.rule { height: 1px; background: var(--line); margin: 0 17px; }
main { flex: 1; }
.page {
  width: 100%;
  max-width: 840px;
  padding: 42px 34px 52px;
  margin: 0 auto;
}
.eyebrow { font-size: 11px; color: var(--accent); letter-spacing: .08em; margin: 0 0 19px; }
h1 {
  color: #cdd2d6;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -.035em;
  font-weight: 650;
  margin: 0 0 20px;
}
h2 { color: var(--fg); font-size: 15px; font-weight: 650; margin: 34px 0 12px; }
p { color: #aab2bb; margin: 0 0 19px; line-height: 1.85; }
a { color: #abc3b4; text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.soft { color: var(--muted); }
.meta { font-size: 11px; color: var(--dim); }
.file-row { padding: 18px 0 21px; border-bottom: 1px solid var(--line); }
.file-row:first-child { border-top: 1px solid var(--line); }
.file-title { font-size: 14px; display: flex; gap: 11px; align-items: center; margin-bottom: 8px; }
.idx { color: #66717b; min-width: 25px; }
.file-desc { font-size: 12px; line-height: 1.8; margin: 0 0 9px 36px; color: #939faa; max-width: 650px; }
.file-action { font-size: 11px; margin-left: 36px; color: var(--accent); }
.doc p { max-width: 74ch; }
.doc h2 { border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-top: 33px; }
.equation {
  border-left: 2px solid #7c9585;
  margin: 24px 0 25px;
  padding: 17px 20px;
  background: #1c2024;
  color: #ccd4d1;
  overflow-x: auto;
  font-size: 16px;
  letter-spacing: .025em;
}
sub { font-size: 10px; }
.status { color: #b5a98d; border: 1px solid #50483e; padding: 2px 7px; font-size: 10px; white-space: nowrap; }
footer {
  border-top: 1px solid var(--line);
  padding: 10px 17px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--dim);
  font-size: 10px;
}
@media (max-width: 570px) {
  body { font-size: 12px; }
  .page { padding: 30px 17px 42px; }
  h1 { font-size: 20px; }
  .chrome { padding: 8px 12px; }
  .tabs { padding: 9px 8px 0; }
  .tab { font-size: 11px; padding: 6px 8px; }
  .file-title { font-size: 12px; }
  .equation { font-size: 13px; }
}

/* Adapt the reference to semantic links and portable Markdown. */
:root { color-scheme: dark; }
main { min-width: 0; }
.page { overflow-wrap: anywhere; }
.path { min-width: 0; overflow-wrap: anywhere; text-align: right; }
.brand { flex-shrink: 0; }
.tab { text-decoration: none; }
.tab:hover { text-decoration: none; }
footer { flex-wrap: wrap; overflow-wrap: anywhere; }
.skip-link { position: absolute; left: 16px; top: -100px; padding: 5px 8px; background: var(--bg); z-index: 1; }
.skip-link:focus { top: 5px; }
.home h2 { border-top: 1px solid var(--line); padding-top: 19px; margin: 30px 0 11px; color: var(--accent); font-size: 12px; font-weight: 400; text-transform: lowercase; }
.home h2 + p { margin: 11px 0; }
.research-list { list-style: none; padding: 0; margin: 38px 0 0; }
.file-title { font-weight: 400; line-height: 1.75; margin: 0 0 8px; }
.file-title .idx { flex-shrink: 0; font-weight: 400; }
.file-title a { min-width: 0; }
.file-row .meta { margin-left: 36px; }
.entry-count { margin-top: 25px; }
.tools-directory { margin-top: 38px; }
.tools-directory .file-title { flex-wrap: wrap; }
.tools-directory .file-row > p { font-size: 12px; line-height: 1.8; margin: 0 0 9px 36px; color: #939faa; max-width: 650px; }
.doc h3, .doc h4, .doc h5, .doc h6 { font-size: 13px; font-weight: 650; margin: 25px 0 10px; }
.doc ul, .doc ol { color: #aab2bb; padding-left: 24px; margin: 0 0 19px; }
.doc li { margin: 5px 0; }
.doc li > ul, .doc li > ol { margin-bottom: 0; }
.doc blockquote { color: var(--muted); border-left: 2px solid var(--line); margin: 24px 0; padding-left: 20px; }
.doc img, .doc svg { max-width: 100%; height: auto; }
.doc img { display: block; margin: 24px 0; }
code, pre, kbd, samp { font: inherit; }
code { color: #bdc8ce; }
pre { font-size: 12px; line-height: 1.8; overflow-x: auto; margin: 24px 0; padding: 12px 0 12px 16px; border-left: 2px solid var(--line); background: transparent; }
pre code { color: var(--fg); }
table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 12px; margin: 24px 0; }
th, td { padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--line); }
th { font-weight: 650; }
hr { border: 0; height: 1px; background: var(--line); margin: 30px 0 19px; }
math { font-family: monospace; }
.equation math { display: inline math; margin: 0; text-align: left; }
.chroma .c, .chroma .c1, .chroma .cm, .chroma .cp { color: var(--muted); font-style: italic; }
.chroma .k, .chroma .kd, .chroma .kn, .chroma .kr, .chroma .kt, .chroma .o { color: var(--accent); font-weight: 650; }
.chroma .s, .chroma .s1, .chroma .s2, .chroma .sb, .chroma .si, .chroma .mi, .chroma .mf { color: #b8b397; }
.chroma .nf, .chroma .nb, .chroma .nc { color: #a2b8c2; }
@media (max-width: 570px) {
  .file-title { font-size: 12px; }
  pre { font-size: 11px; }
}
