:root {
  --bg: #FBFAF8; --panel: #FFFFFF; --ink: #1B1A18; --text: #2B2A27; --muted: #64625D; --faint: #8F8D88;
  --line: rgba(0,0,0,.08); --blue: #3B6CF6; --soft: #F3F1EC;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', -apple-system, system-ui, sans-serif; -webkit-font-smoothing: antialiased; font-size: 16px; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.top { position: sticky; top: 0; z-index: 10; background: rgba(251,250,248,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1120px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 17px; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand:hover { text-decoration: none; }
.top-links { display: flex; gap: 18px; font-size: 14px; }
.top-links a { color: var(--muted); }
.top-links a.on { color: var(--ink); font-weight: 600; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 56px 24px 80px; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; }
.toc { position: sticky; top: 90px; align-self: start; max-height: calc(100vh - 110px); overflow: auto; }
.toc b { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin-bottom: 12px; }
.toc a { display: block; color: var(--muted); font-size: 13.5px; line-height: 1.4; padding: 6px 10px; border-radius: 8px; }
.toc a:hover { background: var(--soft); color: var(--ink); text-decoration: none; }

article { max-width: 720px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
h1 { font-family: Georgia, 'Iowan Old Style', 'Noto Serif', serif; font-weight: 400; font-size: 46px; line-height: 1.1; letter-spacing: -.5px; color: var(--ink); margin-bottom: 14px; }
.updated { color: var(--faint); font-size: 14px; margin-bottom: 34px; }
.summary { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px 24px; margin-bottom: 40px; }
.summary h3 { font-size: 15px; color: var(--ink); margin-bottom: 10px; }
h2 { font-family: Georgia, 'Iowan Old Style', 'Noto Serif', serif; font-weight: 400; font-size: 27px; color: var(--ink); margin: 48px 0 14px; scroll-margin-top: 90px; }
h3 { font-size: 16.5px; font-weight: 600; color: var(--ink); margin: 24px 0 8px; }
p, li { color: var(--text); font-size: 16px; line-height: 1.75; }
p { margin: 0 0 14px; }
ul, ol { padding-left: 22px; margin: 6px 0 16px; }
li { margin: 4px 0; }
strong { color: var(--ink); font-weight: 600; }
.table { width: 100%; border-collapse: collapse; margin: 10px 0 20px; font-size: 14.5px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.55; }
.table th { background: var(--soft); color: var(--ink); font-weight: 600; font-size: 13.5px; }
.table tr:last-child td { border-bottom: 0; }
.note { background: var(--soft); border-radius: 12px; padding: 14px 16px; color: var(--muted); font-size: 14.5px; line-height: 1.6; margin: 10px 0 18px; }

footer { border-top: 1px solid var(--line); padding: 30px 24px; text-align: center; color: var(--faint); font-size: 13px; }
footer a { color: var(--muted); }

@media (max-width: 860px) {
  .wrap { grid-template-columns: 1fr; gap: 0; padding-top: 34px; }
  .toc { position: static; max-height: none; margin-bottom: 30px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
  h1 { font-size: 36px; }
  .table { display: block; overflow-x: auto; }
  .top-links { gap: 12px; font-size: 13px; }
}
