
:root {
  --ink: #162033;
  --muted: #5a6678;
  --line: #cdd7e6;
  --panel: rgba(255,255,255,0.96);
  --nav: #102241;
  --nav2: #173c7a;
  --accent: #1d4ed8;
  --safe: #166534;
  --warn: #92400e;
  --shadow: 0 18px 38px rgba(16,34,65,0.12);
}
* { box-sizing: border-box; }
html { min-width: 320px; }
body {
  margin: 0;
  font-family: "Trebuchet MS", "Segoe UI", Tahoma, sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, rgba(73,118,184,0.18), transparent 34rem), linear-gradient(135deg, #eef4fb 0%, #fffaf0 100%);
}
a { color: #174fcf; }
.skip-link { position: absolute; left: -999px; top: 0; }
.skip-link:focus { left: 1rem; top: 1rem; z-index: 20; background: white; padding: .6rem .8rem; border: 2px solid var(--accent); }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 292px minmax(0, 1fr); transition: grid-template-columns .18s ease; }
.sidebar { position: sticky; top: 0; align-self: start; min-height: 100vh; padding: 1rem .9rem; color: white; background: linear-gradient(180deg, var(--nav), var(--nav2)); box-shadow: 12px 0 30px rgba(16,34,65,.16); z-index: 4; }
.brand { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: .75rem; align-items: center; padding: .45rem .35rem 1rem; border-bottom: 1px solid rgba(255,255,255,.18); }
.brand img { width: 54px; height: 54px; border-radius: 14px; background: rgba(255,255,255,.12); }
.brand strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 1.08rem; line-height: 1.15; }
.brand span { display: block; color: rgba(255,255,255,.75); font-size: .84rem; margin-top: .2rem; }
.collapse-label { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 1rem .2rem; padding: .55rem .7rem; border: 1px solid rgba(255,255,255,.24); border-radius: 999px; cursor: pointer; user-select: none; background: rgba(255,255,255,.08); }
.nav-tabs { display: grid; gap: .45rem; margin-top: .6rem; }
.nav-tabs a { display: grid; grid-template-columns: 1.8rem minmax(0, 1fr); align-items: center; gap: .55rem; padding: .62rem .72rem; border-radius: 14px; color: white; text-decoration: none; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); }
.nav-tabs a:hover, .nav-tabs a.active { background: rgba(255,255,255,.18); border-color: rgba(255,255,255,.32); }
.nav-tabs .icon { text-align: center; font-weight: 700; }
.sidebar-note { margin-top: 1.1rem; padding: .8rem; border-radius: 16px; background: rgba(255,255,255,.10); color: rgba(255,255,255,.84); font-size: .88rem; line-height: 1.45; }
.nav-toggle:checked ~ .app-shell { grid-template-columns: 78px minmax(0, 1fr); }
.nav-toggle:checked ~ .app-shell .sidebar { padding-inline: .55rem; }
.nav-toggle:checked ~ .app-shell .brand { grid-template-columns: 1fr; justify-items: center; }
.nav-toggle:checked ~ .app-shell .brand-text, .nav-toggle:checked ~ .app-shell .nav-text, .nav-toggle:checked ~ .app-shell .collapse-text, .nav-toggle:checked ~ .app-shell .sidebar-note { display: none; }
.nav-toggle:checked ~ .app-shell .nav-tabs a { grid-template-columns: 1fr; justify-items: center; padding-inline: .35rem; }
.nav-toggle:checked ~ .app-shell .collapse-label { justify-content: center; padding-inline: .35rem; }
.content { min-width: 0; padding: 1.2rem clamp(1rem, 3vw, 2.4rem) 3rem; }
.hero, .panel, .warning-panel { border-radius: 24px; box-shadow: var(--shadow); }
.hero { padding: clamp(1.5rem, 4vw, 3rem); color: white; background: linear-gradient(135deg, rgba(16,33,65,.96), rgba(23,65,141,.92) 58%, rgba(143,179,255,.88)); }
.hero h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; }
.hero h1 { margin: 0 0 .75rem; font-size: clamp(2.2rem, 5vw, 4.6rem); letter-spacing: -.03em; }
.hero p { max-width: 78rem; color: rgba(255,255,255,.88); font-size: clamp(1rem, 1.8vw, 1.26rem); line-height: 1.7; }
.hero .meta { display: flex; flex-wrap: wrap; gap: .55rem; margin-top: 1.1rem; }
.badge { display: inline-flex; align-items: center; padding: .38rem .62rem; border-radius: 999px; background: rgba(255,255,255,.13); border: 1px solid rgba(255,255,255,.2); }
.panel, .warning-panel { margin-top: 1.2rem; padding: clamp(1rem, 2.2vw, 1.55rem); background: var(--panel); border: 1px solid var(--line); }
.warning-panel { border-left: 8px solid var(--warn); background: #fffbeb; }
.ok-panel { border-left: 8px solid var(--safe); background: #f0fdf4; }
h2 { margin: .3rem 0 .85rem; color: #11284f; font-size: clamp(1.45rem, 2.6vw, 2rem); }
h3 { margin: 1.2rem 0 .45rem; color: #173c7a; }
p, li { line-height: 1.72; }
.lead p { font-size: 1.05rem; }
.downloads { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: .85rem; }
.download { padding: 1rem; border-radius: 18px; border: 1px solid var(--line); background: #f4f7fb; }
.download a { font-size: 1.06rem; font-weight: 700; }
.notice { color: var(--muted); font-size: .95rem; }
.version-entry { padding: .9rem 0; border-top: 1px solid var(--line); }
.version-entry:first-child { border-top: 0; }
.version-entry strong { display: block; margin-bottom: .35rem; color: #11284f; }
.table-wrap { max-width: 100%; overflow: visible; }
table { border-collapse: collapse; width: auto; max-width: 100%; background: white; }
th, td { border: 1px solid var(--line); padding: 2px 5px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
th { background: #e8eef7; cursor: pointer; user-select: none; }
td.num, th.num { text-align: right; }
code { background: #edf2f8; padding: .08rem .25rem; border-radius: 5px; }
footer { margin-top: 1.6rem; color: var(--muted); font-size: .92rem; line-height: 1.55; }
@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: relative; min-height: auto; }
  .nav-toggle:checked ~ .app-shell { grid-template-columns: 1fr; }
  .nav-toggle:checked ~ .app-shell .brand-text, .nav-toggle:checked ~ .app-shell .nav-text, .nav-toggle:checked ~ .app-shell .collapse-text, .nav-toggle:checked ~ .app-shell .sidebar-note { display: block; }
  .nav-toggle:checked ~ .app-shell .nav-tabs a { grid-template-columns: 1.8rem minmax(0,1fr); justify-items: stretch; }
}
