:root {
  color-scheme: dark;
  --page: #111c2a;
  --panel: #18283a;
  --line: #344963;
  --text: #f1f5fa;
  --muted: #bdcbd9;
  --accent: #9ae3ed;
  font-family: "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--text); line-height: 1.65; }
a { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.skip { position: absolute; top: 0; left: 1rem; padding: .6rem; transform: translateY(-120%); background: var(--panel); }
.skip:focus { transform: translateY(0); }
.page-header { background: #122e48; border-bottom: 1px solid var(--line); }
.product { display: flex; align-items: center; gap: .8rem; max-width: 78rem; padding: .8rem clamp(1rem, 4vw, 3rem); margin: auto; color: var(--text); text-decoration: none; font-size: 1.15rem; font-weight: 650; }
.product img { display: block; flex: none; }
.layout { max-width: 78rem; margin: auto; padding: clamp(1rem, 4vw, 3rem); display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: clamp(1rem, 4vw, 4rem); align-items: start; }
.navigation { border-top: 1px solid var(--line); padding-top: .65rem; color: var(--muted); }
.navigation summary { cursor: pointer; font-weight: 600; }
.navigation nav { margin-top: .65rem; display: grid; gap: .25rem; }
.navigation a { text-decoration: none; padding: .35rem .7rem; border-left: 3px solid transparent; }
.navigation a[aria-current] { border-left-color: var(--accent); background: var(--panel); color: var(--text); font-weight: 650; }
.navigation a:hover, .button:hover { text-decoration: underline; }
main { max-width: 51rem; min-width: 0; }
h1, h2 { margin: 0 0 .65rem; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(1.9rem, 5vw, 3.4rem); max-width: 19ch; }
h2 { font-size: clamp(1.2rem, 3vw, 1.6rem); }
p { margin: 0 0 1rem; }
.intro { font-size: clamp(1.06rem, 2vw, 1.22rem); color: var(--muted); }
section { border-top: 1px solid var(--line); margin: 1.9rem 0; padding-top: 1.45rem; }
.thresholds { background: var(--panel); border: 1px solid var(--line); border-radius: .55rem; padding: 0 .95rem; }
.thresholds div { display: grid; grid-template-columns: 7.4rem minmax(0, 1fr); gap: .55rem; padding: .7rem 0; }
.thresholds div + div { border-top: 1px solid var(--line); }
dt, .checks strong { color: var(--accent); font-weight: 650; }
dd { margin: 0; }
.checks { padding-left: 1.4rem; }
.checks li + li { margin-top: .72rem; }
.button { display: inline-block; border: 1px solid var(--line); border-radius: .45rem; padding: .5rem .85rem; background: var(--panel); text-decoration: none; }
@media (max-width: 42rem) {
  .layout { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .navigation nav { display: flex; flex-wrap: wrap; }
  .thresholds div { grid-template-columns: 1fr; gap: .1rem; }
}


.simulation { max-width: 58rem; }
.simulation h1 { max-width: none; }
.replay { margin: 1.35rem 0 0; }
.replay video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1120 / 690;
  background: #0c1520;
  border: 1px solid var(--line);
  border-radius: .55rem;
}
.replay video:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
.replay figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .25rem 1rem;
  margin-top: .55rem;
  color: var(--muted);
  font-size: .93rem;
}
.replay-note { color: var(--muted); }



.parameters dt { margin-top: .8rem; }
.parameters dd { margin-top: .2rem; }
pre {
  max-width: 100%;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: .45rem;
  padding: .85rem;
}


.page-footer {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.2rem;
  max-width: 78rem;
  margin: auto;
  padding: 1rem clamp(1rem, 4vw, 3rem) 1.6rem;
  border-top: 1px solid var(--line);
  font-size: .93rem;
}


.overview { max-width: 58rem; }
.overview h1 { max-width: 24ch; }
.overview-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1.35rem 0 .5rem; }
.button-primary { background: var(--accent); border-color: var(--accent); color: #111c2a; font-weight: 650; }
.download-notice { color: var(--muted); font-size: .93rem; }
.overview-grid, .download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
  gap: .85rem;
  margin: .9rem 0;
}
.overview-card {
  min-width: 0;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: .55rem;
  background: var(--panel);
}
.overview-card h3 { margin: 0 0 .45rem; line-height: 1.3; font-size: 1.08rem; }
.overview-card p:last-child { margin-bottom: 0; }
.overview-replay { margin: .9rem 0 0; }
.overview-replay img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: .55rem;
}
.overview-replay figcaption { margin-top: .55rem; color: var(--muted); font-size: .93rem; }
.checksum { overflow-wrap: anywhere; }
