:root{
  --bg:#0b0f17;
  --card:#111827;
  --text:#e5e7eb;
  --muted:#a7b0be;
  --line:#273244;
  --link:#7dd3fc;
  --link2:#a7f3d0;
  --accent:#fbbf24;
  --max: 980px;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}

@media (prefers-color-scheme: light){
  :root{
    --bg:#f6f7fb;
    --card:#ffffff;
    --text:#0b1220;
    --muted:#4b5563;
    --line:#e5e7eb;
    --link:#0369a1;
    --link2:#047857;
    --shadow: 0 10px 25px rgba(17,24,39,.08);
  }
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji","Segoe UI Emoji";
  background: radial-gradient(1200px 600px at 20% -10%, rgba(125,211,252,.14), transparent 60%),
              radial-gradient(900px 600px at 90% 0%, rgba(167,243,208,.12), transparent 55%),
              var(--bg);
  color:var(--text);
  line-height:1.7;
  letter-spacing: .1px;
}

a{color:var(--link); text-decoration:none}
a:hover{text-decoration:underline}
a.secondary{color:var(--link2)}
small, .muted{color:var(--muted)}
code, pre{font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;}
pre{background:rgba(0,0,0,.22); border:1px solid var(--line); padding:14px; border-radius:12px; overflow:auto}

.wrap{max-width:var(--max); margin:0 auto; padding:28px 18px 44px}
.header{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:14px 16px; border:1px solid var(--line); border-radius:var(--radius); background:rgba(17,24,39,.35);
  backdrop-filter: blur(10px);
}
.brand{display:flex; align-items:center; gap:10px}
.badge{
  width:34px; height:34px; border-radius:10px;
  background: linear-gradient(135deg, rgba(125,211,252,.95), rgba(167,243,208,.95));
  box-shadow: 0 8px 20px rgba(125,211,252,.18);
}
.brand b{letter-spacing:.3px}
.nav{display:flex; gap:12px; flex-wrap:wrap; justify-content:flex-end}
.nav a{
  padding:8px 10px; border:1px solid transparent; border-radius:10px;
}
.nav a:hover{border-color:var(--line); background:rgba(255,255,255,.04); text-decoration:none}

.hero{margin:20px 0}
.hero h1{margin:0 0 6px; font-size:34px; line-height:1.2}
.hero p{margin:0; color:var(--muted); max-width:84ch}

.grid{display:grid; grid-template-columns: 1.2fr .8fr; gap:16px; margin-top:18px}
@media (max-width: 900px){ .grid{grid-template-columns:1fr} }

.card{
  background: rgba(17,24,39,.22);
  border:1px solid var(--line);
  border-radius:var(--radius);
  box-shadow: var(--shadow);
  padding:18px;
}
.card h2{margin:0 0 8px; font-size:18px}
.card h3{margin:18px 0 6px; font-size:16px}
.card p{margin:0 0 10px}

.list{margin:10px 0 0; padding:0; list-style:none}
.list li{
  margin:10px 0; padding:10px 12px; border:1px solid var(--line);
  border-radius:12px; background:rgba(255,255,255,.03)
}
.list li b{display:block}
.meta{display:flex; flex-wrap:wrap; gap:8px; margin-top:8px}
.tag{
  display:inline-flex; align-items:center; gap:8px;
  padding:6px 10px; border:1px solid var(--line); border-radius:999px;
  background:rgba(255,255,255,.03); color:var(--muted); font-size:13px
}
.tag .dot{width:8px; height:8px; border-radius:99px; background:var(--accent)}

.hr{height:1px; background:var(--line); margin:16px 0}
.footer{margin-top:26px; padding-top:18px; border-top:1px solid var(--line); color:var(--muted); font-size:14px}

.breadcrumb{margin:14px 0 0; color:var(--muted); font-size:14px}
.breadcrumb a{color:var(--muted)}
.breadcrumb a:hover{color:var(--text); text-decoration:none}

.two-col{display:grid; grid-template-columns:1fr 1fr; gap:14px}
@media (max-width: 720px){ .two-col{grid-template-columns:1fr} }

.callout{
  border:1px solid rgba(125,211,252,.25);
  background: rgba(125,211,252,.06);
  padding:12px 14px;
  border-radius:12px;
}

.kv{display:grid; grid-template-columns: 160px 1fr; gap:10px; margin:10px 0}
@media (max-width: 600px){ .kv{grid-template-columns:1fr} }

hr{border:none; height:1px; background:var(--line); margin:14px 0}

.table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:12px;
}
.table th, .table td{
  padding:10px 12px;
  border-bottom:1px solid var(--line);
  vertical-align:top;
}
.table th{
  text-align:left;
  color:var(--muted);
  font-weight:600;
  background:rgba(255,255,255,.03);
}
.table tr:last-child td{border-bottom:none}
