/* KaikuSDR's website (docs/WEBSITE-AND-LICENCE.md §4): one column, system fonts, dark like the app, nothing loaded from anywhere else. */
:root { --bg: #14161c; --surface: #1d2029; --line: #2c3040; --text: #e6e8ee; --muted: #a2a8b8; --primary: #4f9cf9; --primary-ink: #0b1526; --warn: #f2c14e; }
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--text); font: 16px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; -webkit-text-size-adjust: 100%; }
body { margin: 0; }
a { color: var(--primary); }
header.top { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--surface); }
header.top .brand { font-weight: 600; font-size: 1.15rem; color: var(--text); text-decoration: none; margin-right: auto; }
header.top nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
header.top nav a { color: var(--muted); text-decoration: none; padding: 4px 0; }
header.top nav a[aria-current="page"], header.top nav a:hover { color: var(--text); }
main { max-width: 960px; margin: 0 auto; padding: 28px 20px 48px; }
footer { max-width: 960px; margin: 0 auto; padding: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.875rem; }
h1 { font-size: 2rem; line-height: 1.2; margin: 0 0 12px; }
h2 { font-size: 1.3rem; margin: 32px 0 8px; }
h3 { font-size: 1.05rem; margin: 20px 0 6px; }
p, ul, ol { margin: 0 0 12px; }
.lead { font-size: 1.15rem; color: var(--muted); }
.small { font-size: 0.875rem; color: var(--muted); }
.hero h1 { font-size: 2.6rem; }
.hero .shot { width: 100%; height: auto; margin-top: 20px; border: 1px solid var(--line); border-radius: 6px; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 36px; }
.three h2, .card h2 { margin-top: 0; font-size: 1.1rem; }
.two { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.button { display: inline-block; padding: 10px 18px; border-radius: 6px; border: 1px solid var(--primary); color: var(--primary); text-decoration: none; font-weight: 500; background: none; font: inherit; cursor: pointer; }
.button.primary { background: var(--primary); color: var(--primary-ink); }
.button:hover { filter: brightness(1.1); }
.notice { background: var(--surface); border-left: 4px solid var(--warn); padding: 12px 14px; border-radius: 4px; }
figure { margin: 0 0 32px; }
figure img { width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; }
figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 8px; }
table { border-collapse: collapse; width: 100%; margin: 12px 0 20px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { color: var(--muted); font-weight: 500; }
.compare { table-layout: fixed; }
.compare th[scope=row] { font-weight: 400; width: 56%; }
.compare td, .compare th[scope=col] { text-align: center; width: 22%; }
.compare th:first-child { text-align: left; }
@media (max-width: 640px) { .compare th[scope=row] { width: 50%; } .compare td, .compare th[scope=col] { width: 25%; } }
.compare small { color: var(--muted); font-weight: 400; }
.versions td:first-child { font-family: ui-monospace, Menlo, Consolas, monospace; }
pre.licence { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 12px; white-space: pre-wrap; word-break: break-all; font-size: 0.8125rem; }
form label { display: block; color: var(--muted); margin-bottom: 4px; }
form input[type=text] { width: 100%; max-width: 420px; padding: 9px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; margin-bottom: 10px; }
code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; background: var(--surface); padding: 1px 5px; border-radius: 4px; }
.prose img { max-width: 100%; }
.prose pre { background: var(--surface); padding: 12px; border-radius: 6px; overflow: auto; }
/* A guide page's contents: on the left, beside the text, where the window has room; above the text where it has not. */
nav.contents { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 12px 16px; margin: 4px 0 24px; }
nav.contents p { margin: 0 0 6px; color: var(--muted); font-size: 0.8125rem; text-transform: uppercase; letter-spacing: 0.04em; }
nav.contents ul { margin: 0; padding-left: 18px; }
nav.contents li { margin: 3px 0; }
@media (min-width: 900px) {
  main:has(.with-contents) { max-width: 1200px; }
  .with-contents { display: grid; grid-template-columns: 220px minmax(0, 1fr); column-gap: 36px; align-items: start; }
  .with-contents > h1 { grid-column: 1 / -1; grid-row: 1; }
  .with-contents > #top { grid-column: 1; grid-row: 1; } /* the anchor's empty span, out of the way of the title */
  .with-contents > nav.contents { grid-column: 1; grid-row: 2; position: sticky; top: 16px; margin: 6px 0 0; }
  .with-contents > .body { grid-column: 2; grid-row: 2; }
}
a.top { font-size: 0.75rem; text-decoration: none; opacity: 0.55; margin-left: 6px; vertical-align: middle; }
a.top:hover { opacity: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 760px) { .three, .two { grid-template-columns: 1fr; } .hero h1 { font-size: 2rem; } main { padding: 20px 16px 40px; } header.top { padding: 12px 16px; } }
