:root {
  color-scheme: light;
  --navy: #081f3d;
  --navy-2: #123458;
  --teal: #0ea5a8;
  --teal-soft: #e8fbfb;
  --surface: #ffffff;
  --muted: #eef3f7;
  --border: #d7e0e8;
  --text: #102a43;
  --subtle: #52697f;
  --danger: #b42318;
  --shadow: 0 10px 30px rgba(8,31,61,.08);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
[data-theme="dark"] {
  color-scheme: dark;
  --surface: #07172b;
  --muted: #0d2745;
  --border: #27445f;
  --text: #eff8ff;
  --subtle: #b6c9d8;
  --teal-soft: #0b3f43;
  --shadow: none;
}
* { box-sizing: border-box; }
html { background: var(--muted); }
body { margin: 0; color: var(--text); background: var(--muted); font: 15px/1.65 var(--font); }
a { color: #087f83; }
[data-theme="dark"] a { color: #55dfe0; }
a:hover { text-decoration-thickness: 2px; }
.skip { position: fixed; left: -999px; top: 8px; z-index: 100; background: var(--navy); color: white; padding: 8px 12px; }
.skip:focus { left: 8px; }
.topbar { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px max(20px, calc((100vw - 1180px)/2)); color: white; background: var(--navy); }
.brand { display: flex; align-items: center; gap: 12px; color: white; text-decoration: none; }
.brand span { display: grid; }
.brand small { color: #b9d8e8; }
.logo { width: 42px; height: 42px; object-fit: contain; border-radius: 10px; background: white; }
.ghost { border: 1px solid #6e879e; background: transparent; color: white; padding: 8px 12px; cursor: pointer; }
.layout { width: min(1180px, calc(100% - 32px)); margin: 28px auto; display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px; }
.sidebar { display: flex; flex-direction: column; align-self: start; position: sticky; top: 20px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.sidebar a { padding: 11px 14px; color: var(--subtle); text-decoration: none; border-left: 3px solid transparent; }
.sidebar a:hover, .sidebar a[aria-current="page"] { color: var(--text); background: var(--teal-soft); border-left-color: var(--teal); }
.content { min-width: 0; padding: clamp(24px, 4vw, 54px); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
h1, h2 { color: var(--navy-2); line-height: 1.2; }
[data-theme="dark"] h1, [data-theme="dark"] h2 { color: #d9ecff; }
h1 { margin-top: 0; font-size: clamp(2rem, 5vw, 3rem); }
h2 { margin-top: 2rem; font-size: 1.25rem; }
.lead { font-size: 1.1rem; color: var(--subtle); }
.notice { margin: 22px 0; padding: 14px 16px; background: var(--teal-soft); border-left: 4px solid var(--teal); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; vertical-align: top; padding: 10px; border-bottom: 1px solid var(--border); }
code { overflow-wrap: anywhere; }
.button { display: inline-block; margin-top: 10px; padding: 9px 13px; color: white; background: var(--navy); text-decoration: none; }
.footer { width: min(1180px, calc(100% - 32px)); margin: 0 auto 30px; color: var(--subtle); font-size: 13px; text-align: right; }
@media (max-width: 720px) {
  .layout { grid-template-columns: 1fr; margin-top: 16px; }
  .sidebar { position: static; flex-direction: row; overflow-x: auto; }
  .sidebar a { white-space: nowrap; border-left: 0; border-bottom: 3px solid transparent; }
  .sidebar a:hover, .sidebar a[aria-current="page"] { border-bottom-color: var(--teal); }
  .content { padding: 22px; }
  table { display: block; overflow-x: auto; }
}
