:root {
  --bg: #0b0f15;
  --panel: #121823;
  --panel-2: #18202e;
  --line: rgba(126, 160, 200, .14);
  --line-soft: rgba(126, 160, 200, .08);
  --ink: #e6ecf4;
  --body-ink: #d4e0e8;
  --muted: #a4bcb6;
  --faint: #8aa0aa;
  --teal: #4ed3bc;
  --teal-br: #66e2cc;
  --amber: #ffc15c;
  --display: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --article-width: 780px;
  --wide-width: 900px;
  --shell-width: 1040px;
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection {
  color: #07110e;
  background: var(--teal-br);
}

a {
  color: var(--teal-br);
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

a:hover { color: #8df5e3; }

:focus-visible {
  outline: 2px solid var(--teal-br);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 12px;
  z-index: 100;
  padding: 9px 13px;
  border-radius: 9px;
  background: var(--teal-br);
  color: #07110e;
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform .16s ease;
}

.skip-link:focus { transform: translateY(0); }

.site-shell,
.wrap {
  width: 100%;
  margin: 0 auto;
  padding-right: 24px;
  padding-left: 24px;
}

.site-shell { max-width: var(--shell-width); }
.wrap { max-width: calc(var(--article-width) + 48px); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 15, 21, .94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.site-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.01em;
  text-decoration: none;
}

.brand:hover { color: var(--ink); }

.brand svg {
  display: block;
  width: 26px;
  height: 26px;
}

.brand-mark {
  display: block;
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
  background: url("/favicon.svg") center / contain no-repeat;
}

.site-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 3px;
  margin-left: auto;
}

.site-links a {
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 550;
  line-height: 1.2;
  text-decoration: none;
  transition: color .16s ease, background .16s ease;
}

.site-links a:hover {
  color: var(--ink);
  background: rgba(78, 211, 188, .08);
}

.site-links a[aria-current="page"] {
  color: var(--teal-br);
  background: rgba(78, 211, 188, .1);
}

.page {
  min-height: calc(100vh - 210px);
  padding-top: 54px;
  padding-bottom: 88px;
}

h1,
h2,
h3 {
  font-family: var(--display);
  text-wrap: balance;
}

h1 {
  max-width: 18ch;
  margin: 0 0 9px;
  font-size: clamp(32px, 5vw, 42px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -.025em;
}

h2 {
  margin: 42px 0 11px;
  color: var(--teal-br);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.012em;
}

h3 {
  margin: 27px 0 8px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.35;
}

p,
li,
td { color: var(--body-ink); }

p { margin: 0 0 16px; }

b,
strong { color: var(--ink); }

ul,
ol {
  margin: 12px 0 20px;
  padding-left: 21px;
}

li { margin: 6px 0; }

.updated,
.upd {
  margin: 0 0 30px;
  color: var(--faint);
  font-size: 14px;
}

.lede,
.lead {
  max-width: 70ch;
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.muted { color: var(--muted); }

.card {
  margin: 18px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(24, 32, 46, .9), rgba(18, 24, 35, .96));
  box-shadow: 0 18px 45px -38px rgba(0, 0, 0, .9);
}

.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

.card.warn {
  border-color: rgba(255, 193, 92, .45);
  background: linear-gradient(145deg, rgba(50, 39, 25, .42), rgba(18, 24, 35, .96));
}

.card.warn b:first-child { color: #ffd184; }

code {
  padding: 1px 6px;
  border-radius: 5px;
  background: rgba(126, 160, 200, .12);
  color: #dce9f0;
  font-size: .86em;
  overflow-wrap: anywhere;
}

.table-wrap {
  width: min(var(--wide-width), calc(100vw - 32px));
  margin: 24px 0 28px 50%;
  overflow-x: auto;
  transform: translateX(-50%);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(18, 24, 35, .72);
}

.table-wrap:focus-visible { border-color: var(--teal-br); }

table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 14.5px;
}

.page-supported table { min-width: 860px; }

caption {
  padding: 13px 14px 8px;
  color: var(--faint);
  font-size: 13px;
  text-align: left;
}

th,
td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

tbody tr:last-child td { border-bottom: 0; }

th {
  color: var(--faint);
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.status {
  color: var(--teal-br);
  font-weight: 700;
  white-space: nowrap;
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
}

.links a { font-weight: 600; }

/* Changelog timeline: retained as an editorial variant of the shared article system. */
.rel {
  position: relative;
  margin: 30px 0;
  padding-left: 26px;
}

.rel::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(78, 211, 188, .14);
}

.rel::after {
  content: "";
  position: absolute;
  top: 21px;
  bottom: -30px;
  left: 8px;
  width: 1px;
  background: var(--line);
}

.rel:last-child::after { display: none; }

.rel-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}

.rel-date {
  color: var(--teal-br);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -.01em;
}

.pill {
  padding: 2px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--teal-br);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .02em;
}

.rel-sub {
  margin: 0 0 2px;
  color: var(--faint);
  font-size: 13.5px;
}

.feature { margin: 30px 0; }
.feature .card { border-color: rgba(78, 211, 188, .35); }

.badge {
  display: inline-block;
  padding: 3px 11px;
  border-radius: 999px;
  background: var(--teal);
  color: #0b0f15;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--faint);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 18px 28px;
  padding-top: 28px;
  padding-bottom: 30px;
}

.footer-inner .brand {
  font-size: 16px;
}

.footer-inner .brand svg {
  width: 23px;
  height: 23px;
}

.footer-inner .brand-mark {
  width: 23px;
  height: 23px;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px 17px;
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
}

.footer-links a:hover { color: var(--ink); }

.footer-inner small {
  grid-column: 1 / -1;
  color: var(--faint);
  font-size: 12.5px;
}

@media (max-width: 900px) {
  .site-nav {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 14px;
    padding-bottom: 11px;
  }

  .site-links {
    width: 100%;
    justify-content: flex-start;
    margin-left: 0;
  }
}

@media (max-width: 560px) {
  .site-shell,
  .wrap {
    padding-right: 20px;
    padding-left: 20px;
  }

  .site-nav { min-height: 0; }

  .site-links {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
  }

  .site-links a {
    padding: 7px 5px;
    font-size: 12.5px;
    text-align: center;
  }

  .page {
    padding-top: 42px;
    padding-bottom: 68px;
  }

  h1 { font-size: clamp(31px, 10vw, 38px); }
  h2 { margin-top: 37px; }
  .lede,
  .lead { font-size: 17px; }

  .table-wrap { width: calc(100vw - 24px); }

  .footer-inner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-links { justify-content: flex-start; }
  .footer-inner small { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}
