:root {
  --bg: #f7f8fb;
  --surface: #ffffff;
  --text: #1c2233;
  --muted: #5b6478;
  --line: #e3e6ee;
  --brand: #3b3fd8;
  --brand-ink: #ffffff;
  --brand-soft: #eceefe;
  --new: #0f7b4b;
  --new-bg: #e2f5ec;
  --improved: #1f5fbf;
  --improved-bg: #e4eefc;
  --changed: #9a5b00;
  --changed-bg: #fdf0d9;
  --fixed: #6a3fb5;
  --fixed-bg: #efe8fb;
  --known: #b3261e;
  --known-bg: #fce8e6;
  --code-bg: #eef0f6;
  --shadow: 0 1px 2px rgba(20, 30, 60, .06), 0 4px 16px rgba(20, 30, 60, .06);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1320; --surface: #171c2e; --text: #e8ebf5; --muted: #a2abc2; --line: #2a3150;
    --brand: #8f94ff; --brand-ink: #10132a; --brand-soft: #232a52;
    --new: #5fd6a0; --new-bg: #12372a; --improved: #8db8ff; --improved-bg: #16294a;
    --changed: #f3c06a; --changed-bg: #3b2b0e; --fixed: #c3a6ff; --fixed-bg: #2a1f4a;
    --known: #ff9d94; --known-bg: #43191a; --code-bg: #20263d; --shadow: none;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1320; --surface: #171c2e; --text: #e8ebf5; --muted: #a2abc2; --line: #2a3150;
  --brand: #8f94ff; --brand-ink: #10132a; --brand-soft: #232a52;
  --new: #5fd6a0; --new-bg: #12372a; --improved: #8db8ff; --improved-bg: #16294a;
  --changed: #f3c06a; --changed-bg: #3b2b0e; --fixed: #c3a6ff; --fixed-bg: #2a1f4a;
  --known: #ff9d94; --known-bg: #43191a; --code-bg: #20263d; --shadow: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--brand); }
code { background: var(--code-bg); padding: .1em .35em; border-radius: 4px; font: .9em ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; word-break: break-all; }
.wrap { width: min(1180px, 100% - 32px); margin: 0 auto; }
.skip { position: absolute; left: -999px; top: 0; background: var(--brand); color: var(--brand-ink); padding: .5rem 1rem; z-index: 20; }
.skip:focus { left: 8px; top: 8px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--line); }
.top-in { width: min(1180px, 100% - 32px); margin: 0 auto; display: flex; align-items: center; gap: 1rem; min-height: 56px; }
.brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--text); font-weight: 500; }
.brand b { font-weight: 700; }
.mark { width: 22px; height: 22px; border-radius: 6px; background: linear-gradient(135deg, var(--brand), #14b8a6); display: inline-block; }
.top-nav { display: flex; gap: 1rem; flex: 1; }
.top-nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.top-nav a:hover { color: var(--text); }
.top-tools { display: flex; align-items: center; gap: .5rem; }
.icon-btn, .lang summary { background: transparent; border: 1px solid var(--line); border-radius: 8px; color: var(--text); padding: .35rem .7rem; cursor: pointer; font: inherit; font-size: .9rem; }
.icon-btn:hover, .lang summary:hover { background: var(--brand-soft); }
.lang { position: relative; }
.lang summary { list-style: none; }
.lang summary::-webkit-details-marker { display: none; }
.lang .menu { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); min-width: 12rem; padding: .3rem; display: flex; flex-direction: column; }
.lang .menu a { padding: .5rem .7rem; border-radius: 6px; text-decoration: none; color: var(--text); }
.lang .menu a:hover { background: var(--brand-soft); }
.lang .menu a[aria-current] { font-weight: 700; color: var(--brand); }

/* hero and cards */
.hero { background: linear-gradient(135deg, var(--brand-soft), transparent 70%); border-bottom: 1px solid var(--line); padding: 3rem 0 2.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--muted); margin: 0 0 .5rem; font-weight: 600; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 .6rem; }
h2 { font-size: 1.5rem; margin: 2.6rem 0 1rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
h3 { font-size: 1.1rem; margin: 0; }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 70ch; }
.btn { display: inline-block; background: var(--brand); color: var(--brand-ink); padding: .6rem 1.1rem; border-radius: 10px; text-decoration: none; font-weight: 600; }
.btn:hover { filter: brightness(1.08); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; margin-bottom: 3rem; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.2rem; text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .12s, border-color .12s; }
.card:hover { transform: translateY(-2px); border-color: var(--brand); }
.card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .6rem; }
.ver { font: 600 1.05rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.card p { color: var(--muted); margin: .4rem 0 .8rem; font-size: .95rem; }
.card-meta { color: var(--muted); font-size: .85rem; }
.status { font-size: .75rem; font-weight: 700; padding: .15rem .55rem; border-radius: 999px; }
.status-rc { background: var(--changed-bg); color: var(--changed); }
.status-stable { background: var(--new-bg); color: var(--new); }
.status-superseded { background: #eef0f3; color: #5b6573; }
.status-beta { background: var(--improved-bg); color: var(--improved); }

/* release page */
.release-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 1.6rem 0 1.4rem; }
.crumbs { margin: 0 0 .6rem; color: var(--muted); font-size: .9rem; }
.meta { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; color: var(--muted); margin: .6rem 0 0; }
.ver-select { display: inline-flex; gap: .5rem; align-items: center; }
.ver-select select { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: .25rem .5rem; font: inherit; }
.layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2.5rem; padding-top: 1rem; padding-bottom: 3rem; }
.toc { position: sticky; top: 72px; align-self: start; max-height: calc(100vh - 90px); overflow: auto; font-size: .92rem; }
.toc-title { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: var(--muted); font-weight: 700; margin: 1rem 0 .5rem; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: block; padding: .3rem .8rem; color: var(--muted); text-decoration: none; margin-left: -2px; border-left: 2px solid transparent; }
.toc a:hover { color: var(--text); }
.toc a.on { color: var(--brand); border-left-color: var(--brand); font-weight: 600; }
.doc { min-width: 0; }
.doc h2:first-of-type { margin-top: 1rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .8rem; margin: 1.2rem 0 0; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; }
.fact dt { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.fact dd { margin: .2rem 0 0; font-weight: 600; }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .5rem; }
.chip { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px; padding: .3rem .85rem; cursor: pointer; font: inherit; font-size: .88rem; }
.chip.on { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.item { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; margin: 0 0 .9rem; }
.item header { display: flex; gap: .7rem; align-items: baseline; flex-wrap: wrap; margin-bottom: .3rem; }
.item p { margin: .5rem 0; }
.item ul { margin: .4rem 0 .4rem 1.2rem; padding: 0; }
.item[hidden] { display: none; }
.tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .15rem .5rem; border-radius: 6px; }
.tag-new { background: var(--new-bg); color: var(--new); }
.tag-improved { background: var(--improved-bg); color: var(--improved); }
.tag-changed { background: var(--changed-bg); color: var(--changed); }
.tag-fixed { background: var(--fixed-bg); color: var(--fixed); }
.tag-known { background: var(--known-bg); color: var(--known); }
.note { background: var(--brand-soft); border-radius: 8px; padding: .55rem .8rem; font-size: .93rem; }
.hint { color: var(--muted); font-size: .9rem; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
th, td { text-align: left; padding: .6rem .8rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.copy { border: 1px solid var(--line); background: var(--surface); color: var(--text); border-radius: 6px; padding: .1rem .5rem; cursor: pointer; font: inherit; font-size: .8rem; }
.timeline { list-style: none; margin: 1rem 0 0; padding: 0 0 0 1rem; border-left: 2px solid var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 1rem; padding: 0 0 1.4rem 1rem; }
.timeline li::before { content: ""; position: absolute; left: -1.38rem; top: .45rem; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px var(--bg); }
.timeline time { color: var(--muted); font: .85rem ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; padding-top: .15rem; }
.timeline h3 { font-size: 1rem; margin-bottom: .2rem; }
.timeline p { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .timeline li { grid-template-columns: 1fr; gap: .2rem; } }
.foot { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .88rem; }
.foot-in { width: min(1180px, 100% - 32px); margin: 0 auto; padding: 1.2rem 0; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; gap: 0; }
  .toc { position: static; max-height: none; border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
  .toc ol { display: flex; flex-wrap: wrap; border-left: 0; gap: .2rem .6rem; }
  .toc a { border-left: 0; margin: 0; padding: .2rem 0; }
  .top-nav { display: none; }
  .top-in { justify-content: space-between; }
}
@media print {
  .top, .toc, .filters, .foot, .copy { display: none; }
  .item { break-inside: avoid; }
}

.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .8rem; color: var(--muted); background: var(--brand-soft); padding: .1rem .4rem; border-radius: 5px; margin-right: .4rem; white-space: nowrap; }
.item header { flex-wrap: wrap; }
.meta-line { color: var(--muted); font-size: .85rem; margin: .2rem 0 0; }
.doc.wide { max-width: none; }
.table-tools { display: flex; flex-wrap: wrap; gap: 1rem; align-items: end; margin-bottom: 1rem; }
.table-tools label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--muted); }
.table-tools input, .table-tools select { font: inherit; padding: .4rem .6rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); min-width: 14rem; }
table.issues td:first-child, table.issues th:first-child { white-space: nowrap; }
tr[hidden] { display: none; }
@media (max-width: 760px) { .top-nav { display: flex; flex-wrap: wrap; gap: .4rem .9rem; } .top-in { flex-wrap: wrap; } }

.brand { gap: .65rem; }
.logo-mark { flex: none; display: block; }
.logo-word { font-weight: 800; font-size: 1.15rem; letter-spacing: .16em; line-height: 1; color: var(--text); text-transform: uppercase; }
.logo-word span { color: hsl(216, 92%, 58%); }

/* ---- download form and legal pages ---- */
.dl, .legal { padding: 1.5rem 0 2.5rem; max-width: 560px; }
.legal { max-width: 760px; }
.dl-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1.2rem 1.3rem; box-shadow: var(--shadow); }
.dl-card h1 { margin: 0 0 .2rem; font-size: 1.25rem; }
.dl-card h1 .ver { color: var(--muted); font-weight: 500; }
.dl-card .lead { margin: 0 0 .8rem; color: var(--muted); font-size: .95rem; }
.dl-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem .9rem; }
.dl-form .f label { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .2rem; }
.dl-form input[type=text], .dl-form input[type=email], .dl-form input[type=tel] { width: 100%; box-sizing: border-box; padding: .5rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--text); font: inherit; font-size: .95rem; }
.dl-form input:focus { outline: 2px solid var(--brand); outline-offset: 1px; }
.dl-form .check { display: flex; gap: .5rem; align-items: flex-start; margin-top: .65rem; font-size: .85rem; color: var(--muted); }
.dl-form .check input { margin-top: .2rem; }
.dl-form .hint { margin-top: .15rem; font-size: .75rem; }
.ferr { color: var(--known); font-size: .8rem; min-height: 1px; margin-top: .1rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dl-form .btn { margin-top: .9rem; border: 0; cursor: pointer; font: inherit; font-weight: 600; width: 100%; }
.dl-form .btn[disabled] { opacity: .6; cursor: wait; }
.dl-file { margin: .2rem 0 .9rem; font-size: .8rem; color: var(--muted); word-break: break-all; }
.dl-file code { background: none; padding: 0; color: var(--text); }
.dl-file .hash-line { font-family: ui-monospace, monospace; font-size: .7rem; margin-top: .1rem; }
.dl-ready h2 { margin: 0 0 .3rem; font-size: 1.1rem; }
.dl-card > .hint { margin: .9rem 0 0; font-size: .78rem; }
.legal h1 { font-size: 1.6rem; }
.legal h2 { font-size: 1.05rem; margin: 1.4rem 0 .3rem; }
.legal p { line-height: 1.6; }
@media (max-width: 560px) { .dl-form .grid2 { grid-template-columns: 1fr; } }

.foot-links a { color: inherit; }
.foot-links a:hover { text-decoration: underline; }

.btn-sm { padding: .35rem .8rem; font-size: .9rem; border-radius: 8px; }
.lang summary { display: flex; align-items: center; padding: .4rem .55rem; }

.feat { padding-top: 2rem; }
.feat-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.feat-col { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.2rem; }
.feat-new { border-color: var(--brand); background: var(--brand-soft); }
.feat-col h3 { margin: 0 0 .5rem; font-size: 1rem; }
.feat-col ul { list-style: none; margin: 0; padding: 0; }
.feat-col li { padding: .2rem 0 .2rem 1.1rem; position: relative; }
.feat-col li::before { content: "-"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }

.latest-date { margin-left: .8rem; color: var(--muted); }

/* features: plain lists, no boxes */
.feat-col, .feat-new { background: none; border: 0; border-radius: 0; padding: 0; }
.feat-new h3 { color: var(--brand); }
