/* The User Guide window (guide.html): Beacon's dark colours, large readable text, the contents on the left. */
:root { --bg:#10151f; --panel:#161d2a; --line:#273246; --text:#e6ebf3; --muted:#9aa7ba; --gold:#d4a72c; --lgold:#f2c14e; --link:#8fb8ff; }
* { box-sizing:border-box; }
html { height:100%; }
html, body { margin:0; background:var(--bg); color:var(--text); font:16px/1.6 "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif; }
/* the body grows with the pages (min-height, not height): a body only as tall as the window would carry the sticky contents
   away once the pages scroll past one window */
body { display:grid; grid-template-columns:270px minmax(0, 1fr); min-height:100%; }
.hidden { display:none !important; }

#toc { position:sticky; top:0; align-self:start; height:100vh; overflow:auto; background:var(--panel); border-right:1px solid var(--line); padding:18px 14px; display:flex; flex-direction:column; gap:12px; }
.brand { display:flex; gap:10px; align-items:center; }
.brand .star { color:var(--gold); font-size:26px; line-height:1; }
.brand b { display:block; letter-spacing:.12em; font-size:14px; color:var(--lgold); }
.brand small { color:var(--muted); font-size:13px; }
#find { width:100%; padding:8px 10px; border-radius:8px; border:1px solid var(--line); background:#0c111a; color:var(--text); font:inherit; font-size:14px; }
#find:focus { outline:2px solid var(--gold); outline-offset:0; }
#tocList { list-style:none; margin:0; padding:0; counter-reset:t; flex:1; }
#tocList li { counter-increment:t; }
#tocList a { display:block; padding:6px 10px; border-radius:6px; color:var(--text); text-decoration:none; font-size:14.5px; line-height:1.35; }
#tocList a::before { content:counter(t) ". "; color:var(--muted); }
#tocList a:hover { background:rgba(255,255,255,.06); }
#tocList a.on { background:#25324a; box-shadow:inset 3px 0 0 var(--gold); }
.tocfoot { margin:0; color:var(--muted); font-size:12.5px; }

#page { padding:26px 40px 80px; max-width:1000px; }
section { padding-bottom:28px; margin-bottom:28px; border-bottom:1px solid var(--line); scroll-margin-top:16px; }
section:last-of-type { border-bottom:none; }
h1 { font-size:30px; margin:0 0 8px; color:#fff; }
h2 { font-size:24px; margin:0 0 12px; color:var(--lgold); }
h3 { font-size:18px; margin:22px 0 8px; color:#fff; }
p, li, dd { max-width:76ch; }
.lead { font-size:18px; color:#d3dae6; }
a { color:var(--link); }
b { color:#fff; }
code { background:#0c111a; border:1px solid var(--line); border-radius:4px; padding:1px 5px; font:14px Consolas, Menlo, monospace; color:var(--lgold); }
kbd { display:inline-block; min-width:22px; padding:1px 6px; border:1px solid #3a4760; border-bottom-width:3px; border-radius:5px; background:#1c2433; font:13px Consolas, Menlo, monospace; text-align:center; color:#fff; }

figure { margin:16px 0; }
figure img { display:block; max-width:100%; height:auto; border:1px solid var(--line); border-radius:8px; cursor:zoom-in; box-shadow:0 6px 18px rgba(0,0,0,.35); }
figure.narrow img { max-width:min(100%, 380px); }
figure.small img { max-width:min(100%, 480px); }
figcaption { color:var(--muted); font-size:14px; margin-top:6px; }
.two { display:grid; grid-template-columns:auto minmax(0, 1fr); gap:22px; align-items:start; }
.two > figure { margin-top:4px; }

ol.parts, ol.steps { padding-left:0; list-style:none; counter-reset:n; }
ol.parts > li, ol.steps > li { counter-increment:n; position:relative; padding-left:42px; margin:8px 0; }
ol.parts > li::before { content:counter(n); position:absolute; left:0; top:0; width:28px; height:28px; border-radius:50%; background:var(--lgold); color:#111; font:800 15px/28px Arial, sans-serif; text-align:center; box-shadow:0 0 0 3px rgba(242,193,78,.25); }
ol.steps > li::before { content:counter(n); position:absolute; left:2px; top:1px; width:26px; height:26px; border-radius:6px; background:#25324a; color:var(--lgold); font:700 14px/26px Arial, sans-serif; text-align:center; }
ol.steps ul { margin:6px 0; }
.tip, .note { border-radius:8px; padding:10px 14px; margin:14px 0; max-width:80ch; }
.tip { background:rgba(212,167,44,.1); border:1px solid rgba(212,167,44,.35); }
.note { background:rgba(143,184,255,.08); border:1px solid rgba(143,184,255,.25); color:#d3dae6; }
.pill { font-size:12px; vertical-align:middle; padding:2px 8px; border-radius:20px; border:1px solid var(--gold); color:var(--lgold); letter-spacing:.05em; font-weight:600; }
table.keys { border-collapse:collapse; }
table.keys td { padding:6px 14px 6px 0; border-bottom:1px solid var(--line); }
dl.faq dt { font-weight:700; color:#fff; margin-top:14px; }
dl.faq dd { margin:4px 0 0; color:#d3dae6; }
mark { background:rgba(242,193,78,.35); color:inherit; border-radius:3px; }
#noHits { color:var(--muted); font-size:17px; }
.foot { color:var(--muted); font-size:13px; margin-top:8px; }

#zoom { position:fixed; inset:0; background:rgba(5,8,14,.92); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:8px; padding:20px; cursor:zoom-out; z-index:10; }
#zoom img { max-width:100%; max-height:calc(100% - 30px); border-radius:6px; box-shadow:0 10px 40px rgba(0,0,0,.6); }
#zoom p { margin:0; color:var(--muted); font-size:13px; }

/* a narrow guide window: the contents go on top */
@media (max-width:860px) {
  body { grid-template-columns:1fr; }
  #toc { position:static; height:auto; border-right:none; border-bottom:1px solid var(--line); }
  #tocList { columns:2; }
  #page { padding:20px; }
  .two { grid-template-columns:1fr; }
}
