/* Terminal theme documentation. Colors follow the theme's Terminal preset. */
:root {
  --void: #070a08;
  --panel: #0c110d;
  --text: #cdeed5;
  --muted: #9fcfaa;
  --phos: #39ff14;
  --soft: #5ee08a;
  --line: #2f7a3c;
  --faint: #173a20;
  --amber: #ffb000;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; color-scheme: dark; }
body { margin: 0; font: 15px/1.65 var(--mono); color: var(--text); background: var(--void); }
a { color: var(--soft); text-underline-offset: 2px; }
a:hover { color: var(--phos); }
:focus-visible { outline: 2px solid var(--phos); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

header.top { border-bottom: 3px double var(--line); padding: 12px 20px; background: var(--void); }
header.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
header.top nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
header.top nav a { color: var(--soft); text-decoration: none; }
header.top nav a:hover, header.top nav a[aria-current] { color: var(--phos); text-decoration: underline; }
.brand { color: var(--phos); text-decoration: none; font-weight: 700; font-size: 18px; letter-spacing: .5px; }
.brand .inv { background: var(--phos); color: var(--void); padding: 0 .6ch; margin-right: .6ch; }
.brand small { color: var(--muted); font-weight: 400; font-size: 13px; }

.wrap { max-width: 1120px; margin: 0 auto; }
.layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; padding: 24px 20px 60px; }
.page { padding: 24px 20px 60px; }
.toc { position: sticky; top: 16px; align-self: start; font-size: 14px; border: 1px solid var(--line); background: var(--panel); padding: 12px 14px; max-height: calc(100vh - 32px); overflow: auto; }
.toc b { display: block; margin: 8px 0 4px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.toc a { display: block; padding: 3px 0; text-decoration: none; color: var(--text); }
.toc a:hover { color: var(--phos); }

main section { position: relative; border: 3px double var(--line); background: var(--panel); padding: 22px 22px 18px; margin: 14px 0 26px; }
main section > .label { position: absolute; top: -.85em; left: 14px; background: var(--panel); color: var(--soft); padding: 0 .6ch; font-size: 13px; line-height: 1.4; }
h1 { font-size: 28px; line-height: 1.25; margin: 0 0 10px; color: var(--phos); }
h2 { font-size: 21px; line-height: 1.3; margin: 0 0 12px; color: var(--phos); }
h3 { font-size: 16px; margin: 20px 0 6px; color: var(--soft); }
p, li { max-width: 76ch; }
ul, ol { padding-left: 3ch; }
code, kbd { font: inherit; color: var(--phos); }
kbd { border: 1px solid var(--line); padding: 0 .5ch; white-space: nowrap; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin: 10px 0; font-size: 14px; }
th, td { text-align: left; padding: 7px 9px; border-bottom: 1px dotted var(--line); vertical-align: top; }
th { color: var(--soft); text-transform: uppercase; font-size: 12px; letter-spacing: .06em; border-bottom: 1px solid var(--line); }
.note { border-left: 3px double var(--soft); background: var(--faint); padding: 10px 14px; margin: 12px 0; }
.warn { border-left-color: var(--amber); }
.warn b:first-child { color: var(--amber); }
.lead { font-size: 16px; color: var(--muted); }
.pill { display: inline-block; border: 1px solid var(--line); padding: 0 .8ch; margin: 2px 6px 2px 0; font-size: 13px; color: var(--soft); }
details { border: 1px solid var(--line); padding: 8px 12px; margin: 8px 0; background: var(--void); }
summary { cursor: pointer; color: var(--soft); font-weight: 700; }
details[open] summary { margin-bottom: 6px; }
.btn { display: inline-block; background: var(--phos); color: var(--void); text-decoration: none; font: 700 15px var(--mono); padding: 8px 16px; border: 1px solid var(--phos); cursor: pointer; }
.btn:hover { background: var(--soft); border-color: var(--soft); color: var(--void); }
footer.bottom { text-align: center; color: var(--muted); font-size: 13px; padding: 20px; border-top: 1px solid var(--line); }

form.support { display: grid; gap: 16px; max-width: 660px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; margin-bottom: 4px; color: var(--soft); font-weight: 700; }
.hint { font-weight: 400; color: var(--muted); font-size: 13px; }
input, select, textarea { width: 100%; font: inherit; color: var(--text); background: var(--void); border: 1px solid var(--soft); padding: 8px 10px; }
textarea { min-height: 160px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 840px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; max-height: none; }
  .row { grid-template-columns: 1fr; }
  main section { padding: 20px 14px 14px; }
}
