/* Handbook layouts use the same vg.css tokens and masthead as the trading app. */
body { padding-bottom:0; font-size:16px; overflow-wrap:anywhere; }
.bar, main, footer { max-width:960px; margin-inline:auto; padding-inline:clamp(16px,4vw,36px); }
.bar { display:flex; align-items:center; min-height:60px; }
header { background:var(--head); color:var(--head-text); border-bottom:1px solid var(--head-2); }
header .vg-brand:hover { color:var(--head-gold); }
header .vg-word span { display:block; }
main { padding-block:clamp(28px,5vw,56px); }
h1, h2, p { margin:0; }
h1 { font-size:clamp(2rem,5vw,3.3rem); line-height:1.08; letter-spacing:-.035em; }
h2 { font-size:1.35rem; line-height:1.25; }
.lead { margin-top:12px; color:var(--muted); max-width:62ch; }
.focus, .directory li, article { border:1px solid var(--line); border-radius:var(--radius); background:var(--panel); box-shadow:var(--shadow); }
.focus { display:flex; align-items:center; flex-wrap:wrap; gap:12px 18px; margin-top:16px; padding:clamp(18px,3vw,28px); }
.focus:first-of-type { margin-top:24px; border-top:3px solid var(--gold-fill); }
.focus > div { flex-basis:100%; }
.focus p { margin-top:6px; max-width:66ch; color:var(--muted); }
.focus .label { margin:0 0 6px; color:var(--gold); text-transform:uppercase; font-size:.8rem; letter-spacing:.08em; font-weight:650; }
.button, .download { display:inline-flex; align-items:center; min-height:44px; padding:8px 14px; background:var(--gold-fill); color:#0e1b30; border-radius:var(--radius-sm); font-weight:650; text-decoration:none; }
.button:hover, .download:hover { color:#0e1b30; text-decoration:underline; }
.focus > a, .section-title a, nav a { display:inline-flex; align-items:center; min-height:44px; }
a { text-underline-offset:.2em; }
.section-title { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:4px 14px; margin:28px 0 8px; }
.directory { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,18rem),1fr)); gap:12px; list-style:none; padding:0; margin:0; }
.directory a { display:block; height:100%; padding:16px; text-decoration:none; }
.directory a:hover strong { text-decoration:underline; }
.directory span { display:block; color:var(--muted); margin-top:4px; }
nav { margin-bottom:10px; }
.download { margin:16px 0; }
article { max-width:76ch; padding:clamp(18px,3vw,30px); line-height:1.65; }
article h2 { margin-top:24px; margin-bottom:8px; }
article p + p { margin-top:12px; }
article li { margin:.4rem 0; }
article ol, article ul { padding-left:1.4rem; }
code { color:var(--text); background:var(--panel-2); border:1px solid var(--line-soft); border-radius:4px; padding:.06em .24em; }
footer { border-top:1px solid var(--line); color:var(--muted); padding-block:16px 32px; font-size:.9rem; }
.skip { position:absolute; left:1rem; top:-6rem; background:var(--panel); padding:.6rem; }
.skip:focus { top:.4rem; }
@media print { .skip, nav, .download { display:none; } article, .focus, .directory li { box-shadow:none; } }
