:root {
  --bg: #ffffff; --surface: #f8fafc; --text: #171717; --muted: #525252; --faint: #737373;
  --line: #e5e5e5; --brand: #4f46e5; --brand-ink: #ffffff;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--brand); }
a:hover { text-decoration-thickness: 2px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.row { display: flex; align-items: center; justify-content: space-between; }
.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.9); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .row { height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; color: var(--text); text-decoration: none; }
.logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: #fff; font-size: 16px; }
.cta { background: var(--text); color: #fff; text-decoration: none; padding: 8px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; }
.grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 64px; }
.side { position: sticky; top: 96px; align-self: start; display: flex; flex-direction: column; gap: 2px; }
.side-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--faint); margin: 0 0 8px; }
.side a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; font-size: 14px; }
.side a:hover { background: var(--surface); color: var(--text); }
.side a[aria-current="page"] { background: #eef2ff; color: var(--brand); font-weight: 700; }
main, article { min-width: 0; }
article { max-width: 760px; overflow-wrap: anywhere; }
h1 { font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 8px; }
h2 { font-size: 21px; margin: 36px 0 8px; letter-spacing: -.01em; }
h3 { font-size: 16px; margin: 0 0 6px; }
.dates { color: var(--faint); font-size: 14px; margin: 0 0 24px; }
.lead { font-size: 18px; color: var(--muted); }
p, li { color: #262626; }
ul, ol { padding-left: 22px; }
li { margin: 6px 0; }
code { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: 14px; }
.table-wrap { max-width: 100%; overflow-x: auto; margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14px; overflow-wrap: normal; }
tr:last-child td { border-bottom: 0; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
th { background: var(--surface); font-weight: 700; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; }
.card { border: 1px solid var(--line); border-radius: 18px; padding: 20px; background: #fff; }
.card p { margin: 4px 0; }
.card.link { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.card.link:hover { border-color: #c7d2fe; box-shadow: 0 4px 16px rgba(79,70,229,.08); }
.muted { color: var(--faint); font-size: 14px; }
.foot { border-top: 1px solid var(--line); background: var(--surface); padding: 32px 0; font-size: 14px; color: var(--muted); }
.foot .links { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.foot .links a { color: var(--muted); }
@media (max-width: 800px) {
  .grid { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 24px; }
  .side { position: static; flex-direction: row; flex-wrap: wrap; gap: 6px; }
  .side-h { width: 100%; }
  .side a { border: 1px solid var(--line); }
}
@media print { .top, .side, .foot { display: none; } .grid { display: block; } }
