/* The site's plain pages (help, privacy, legal notice). The colours are the app's own and the page follows the
   visitor's system theme, as the mock does (doc/06-product/website/mocks/d-merged.html). */
:root {
  --bg: #f6f7f9; --panel: #ffffff; --line: #dde2ea; --text: #111418; --muted: #5a6273;
  --accent: #0c9a2c; --accent-ink: #ffffff; --accent-soft: rgba(12, 154, 44, 0.10);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000005; --panel: #0c0e16; --line: #2a2a33; --text: #e4e4e6; --muted: #8a8a92;
    --accent: #3aff3a; --accent-ink: #031a06; --accent-soft: rgba(58, 255, 58, 0.10);
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 16px/1.6 ui-sans-serif, system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }
header { border-bottom: 1px solid var(--line); }
header .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 18px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; color: var(--text); text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 7px; background: #000005; }
header .langs { justify-self: end; font-size: 14px; color: var(--muted); }
header .beer { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; padding: 6px 11px; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; background: var(--panel); }
header .beer, header .beer:hover { background: #f2a900; border-color: #f2a900; color: #231500; }   /* the orange of the landing's support card */
header .beer:hover { filter: brightness(1.06); }
header .beer svg, .fb svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 560px) { header .beer span { display: none; } }
.fb { position: fixed; right: 16px; bottom: 16px; z-index: 6; display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; background: var(--panel); color: var(--text); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0,0,0,.18); font-size: 14px; font-weight: 600; text-decoration: none; }
.fb:hover { border-color: var(--accent); color: var(--accent); }
.wip { display: inline-block; border: 1px dashed var(--muted); color: var(--muted); border-radius: 6px; padding: 2px 8px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; vertical-align: middle; }
.cta { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 8px; font-weight: 600; background: var(--accent); color: var(--accent-ink, #fff); text-decoration: none; border: 1px solid var(--accent); }
.cta[aria-disabled="true"] { background: transparent; color: var(--muted); border: 1px dashed var(--muted); pointer-events: none; }
ol.terms > li { margin: 18px 0; }
ol.terms > li > b:first-child { display: block; margin-bottom: 4px; }
header .langs a { color: var(--muted); }
header .langs b { color: var(--accent); }
main { padding: 40px 0 56px; }
h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.1; letter-spacing: -.02em; margin: 0 0 8px; }
h2 { font-size: 22px; margin: 40px 0 8px; line-height: 1.2; }
p, li { color: var(--text); }
.muted, .updated { color: var(--muted); }
.updated { font-size: 14px; margin: 0 0 28px; }
.lead { font-size: 18px; color: var(--muted); margin: 0 0 8px; }
/* The game named as Virtual Regatta asked (2026-10-02): above the download buttons, small and in italics. */
.dl-note { margin: 16px 0 0; font-size: 13px; font-style: italic; color: var(--muted); }
ul { padding-left: 22px; }
li { margin: 6px 0; }
.box { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 12px; padding: 14px 18px; margin: 24px 0; }
.box p { margin: 0; }
table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; }
th, td { text-align: left; vertical-align: top; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
@media (max-width: 560px) { th, td { padding: 8px 6px; font-size: 14px; } }
footer { border-top: 1px solid var(--line); padding: 22px 0 40px; font-size: 14px; color: var(--muted); }
footer a { color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }

/* The help page */
h3 { font-size: 17px; margin: 24px 0 6px; }
section { scroll-margin-top: 16px; }
.toc { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 8px; padding: 0; list-style: none; font-size: 15px; }
.toc li { margin: 0; }
ol.steps { padding-left: 22px; }
ol.steps li { margin: 10px 0; }
kbd { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 1px 5px; background: var(--panel); }
.badges { list-style: none; padding: 0; margin: 12px 0; }
.badges li { display: grid; grid-template-columns: 42px 1fr; gap: 12px; align-items: baseline; margin: 10px 0; }
.badge { display: inline-flex; align-items: center; justify-content: center; height: 22px; min-width: 32px; padding: 0 6px; border-radius: 5px; font: 700 12px/1 ui-sans-serif, system-ui, sans-serif; color: #fff; }
.badge.ok { background: #199e70; } .badge.wait { background: #888888; } .badge.err { background: #d55181; } .badge.none { background: transparent; border: 1px dashed var(--muted); }
details { border-top: 1px solid var(--line); padding: 12px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 8px 0 0; }
.dlrow { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.dlrow a { border: 1px solid var(--line); border-radius: 8px; padding: 8px 14px; font-weight: 600; text-decoration: none; color: var(--text); background: var(--panel); }
.dlrow a:hover { border-color: var(--accent); color: var(--accent); }
.tiprow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }

/* The downloads page */
.rel { border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; margin: 22px 0; background: var(--panel); }
.rel.stable { border-color: var(--accent); background: linear-gradient(135deg, var(--accent-soft), transparent 60%), var(--panel); }
.rel.beta { border-style: dashed; }
.rel h2 { margin: 0 0 2px; display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.rel h2 .ver { font: 600 15px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.rel .updated { margin: 0 0 8px; }
.rel .muted { margin: 4px 0 8px; }
.dlrow a { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.dlrow a small { font-weight: 400; font-size: 12px; color: var(--muted); }
.dlrow a.mine { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.dlrow a.mine small { color: inherit; opacity: .8; }
.scroll { overflow-x: auto; }
table.all td { vertical-align: top; }
table.all .links a { margin-right: 12px; white-space: nowrap; }
table.all details { border: 0; padding: 0; }
table.all details:last-of-type { border: 0; }
table.all summary { font-weight: 400; color: var(--muted); font-size: 14px; }
.badge-s, .badge-b { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; border-radius: 5px; padding: 1px 6px; vertical-align: 1px; }
.badge-s { background: var(--accent-soft); color: var(--accent); }
.badge-b { border: 1px dashed var(--muted); color: var(--muted); }
.dlrow a.soon { color: var(--muted); border-style: dashed; background: transparent; pointer-events: none; }
