/* guides.css — /guides (guides.php) and /guides/<slug> (guide.php).
   Option B of the 2026-10-02 guide mockup: the house frame and panels (.wg-frame /
   .wg-panel in shared.css), an "On this page" rail beside numbered step panels.
   On phones the rail turns into a row of chips above the frame, and "More guides"
   moves to the end. */

.gd-frame{margin:24px 0 48px;display:grid;grid-template-columns:250px minmax(0,1fr);align-items:start}
.gd-rail{display:flex;flex-direction:column;gap:14px;position:sticky;top:84px}
.gd-toc{display:flex;flex-direction:column;gap:2px}
.gd-toc a{padding:7px 10px;border-radius:8px;color:var(--fg2);font-size:.88rem;font-weight:600;line-height:1.35}
.gd-toc a:hover{background:var(--glass-hover);color:var(--fg)}
.gd-toc a.on{background:rgba(50,167,235,.12);color:var(--fg);font-weight:700}
.gd-more{display:flex;flex-direction:column;gap:10px}
.gd-more a{font-size:.88rem;font-weight:600;line-height:1.4;color:var(--brand)}
.gd-more a:hover{text-decoration:underline}

.gd-body{display:flex;flex-direction:column;gap:14px;min-width:0;color:#c4cad6;font-size:1rem;line-height:1.65}
.gd-body .wg-panel{scroll-margin-top:84px}
.gd-body p{margin:0 0 .7em;max-width:72ch}
.gd-body p:last-child{margin-bottom:0}
.gd-body ul,.gd-body ol{margin:0 0 .7em;padding-left:1.3rem;display:flex;flex-direction:column;gap:.35rem;max-width:72ch}
.gd-body ul:last-child,.gd-body ol:last-child{margin-bottom:0}
.gd-body strong{color:var(--fg)}
.gd-body a:not(.btn){color:var(--brand)}
.gd-body a:not(.btn):hover{text-decoration:underline}
.gd-body code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.88em;padding:.1rem .4rem;
  border-radius:.35rem;background:#0a1120;border:1px solid #1b2840;color:var(--brand)}

.gd-step-h{display:flex;align-items:center;gap:12px;margin-bottom:12px}
.gd-num{width:34px;height:34px;flex:none;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background:var(--brand);color:#04121c;font-size:1rem;font-weight:800}
.gd-step-h h2,.gd-h2{margin:0;font-size:1.2rem;font-weight:800;line-height:1.3;color:var(--fg)}
.gd-h2{margin-bottom:12px}
.gd-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

.gd-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.gd-tile{display:flex;gap:12px;padding:12px;border-radius:10px;background:rgba(255,255,255,.03)}
.gd-tile svg{flex:none;margin-top:2px}
.gd-tile b{display:block;color:var(--fg)}
.gd-tile span{font-size:.9rem;line-height:1.5}

.gd-faq{margin:0;display:flex;flex-direction:column;gap:14px}
.gd-faq dt{font-weight:700;color:var(--fg)}
.gd-faq dd{margin:2px 0 0;max-width:72ch}

.gd-cta{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:18px 20px;border-radius:12px;
  border:1px solid var(--border-brand);background:rgba(50,167,235,.06)}
.gd-cta p{margin:0;flex:1;font-size:1.05rem;font-weight:700;color:var(--fg)}

.gd-tiers{list-style:none;padding:0!important;gap:0!important;border:1px solid var(--border);border-radius:10px;overflow:hidden}
.gd-tiers li{display:flex;align-items:center;gap:12px;padding:10px 14px;border-top:1px solid var(--border)}
.gd-tiers li:first-child{border-top:0}
.gd-tiers li span:last-child{margin-left:auto;font-size:.86rem;color:var(--muted);text-align:right}
.gd-dot{width:12px;height:12px;border-radius:50%;background:var(--c);flex:none}
.gd-note{font-size:.8rem;color:var(--muted)}

/* A section's screenshot (guides_lib 'img'), taken from the live site. */
.gd-shot{margin:14px 0 0;display:flex;flex-direction:column;align-items:flex-start;gap:8px}
.gd-shot img{display:block;width:auto;max-width:100%;height:auto;border-radius:10px;border:1px solid var(--border);background:#0d1219}
.gd-shot figcaption{font-size:.82rem;color:var(--muted)}

/* Command lists (the commands guide): command on the left, what it does on the right. */
.gd-table{width:100%;border-collapse:collapse;font-size:.92rem}
.gd-table th,.gd-table td{padding:9px 10px;border-top:1px solid var(--border);text-align:left;vertical-align:top}
.gd-table tr:first-child th,.gd-table tr:first-child td{border-top:0}
.gd-table th{width:34%;font-weight:600;white-space:nowrap}
.gd-table td{color:#c4cad6}
@media (max-width:640px){.gd-table th,.gd-table td{display:block;width:auto;padding:0 2px}
  .gd-table th{padding-top:10px}.gd-table td{padding-bottom:10px;border-top:0}}

/* Live overlay examples in the overlay guide (iframes of overlay-view.php?demo=1,
   scaled down to fit by guide.php's script). */
.gd-ovs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-bottom:8px}
.gd-ovs figure{margin:0;display:flex;flex-direction:column;gap:10px;padding:12px;border-radius:10px;min-width:0;
  background-color:#141a24;background-image:conic-gradient(#1b2230 25%,#141a24 0 50%,#1b2230 0 75%,#141a24 0);background-size:20px 20px}
.gd-ovs figure:first-child{grid-column:1/-1}
.gd-ov-box{position:relative;overflow:hidden;height:60px}
.gd-ov{border:0;background:transparent;transform-origin:0 0;display:block}
.gd-ovs figcaption{font-size:.9rem;color:var(--fg2)}

.gd-chips{display:none;gap:8px;overflow-x:auto;margin-top:18px;padding-bottom:4px}
.gd-chips a{flex:none;padding:9px 14px;border-radius:999px;border:1px solid var(--border);color:var(--fg2);font-size:.88rem;font-weight:600}
.gd-more-end{display:none}

@media (max-width:900px){
  .gd-frame{grid-template-columns:minmax(0,1fr);margin-top:14px}
  .gd-rail{display:none}
  .gd-chips{display:flex}
  .gd-more-end{display:block}
  .gd-tiles,.gd-ovs{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:640px){
  .gd-step-h h2,.gd-h2{font-size:1.05rem}
  .gd-num{width:32px;height:32px;font-size:.95rem}
  .gd-cta{flex-direction:column;align-items:stretch;text-align:center}
  .gd-cta .btn{justify-content:center}
}

/* ── /guides list ──────────────────────────────────────────────────────────── */
.gl-frame{margin:28px 0 48px}
.gl-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.gl-card{display:flex;flex-direction:column;gap:8px;padding:16px;border-radius:12px;background:rgba(255,255,255,.03);
  border:1px solid var(--border);color:var(--fg);transition:border-color .15s,background .15s}
.gl-card:hover{border-color:var(--border-brand);background:var(--glass-hover)}
.gl-label{font-size:.7rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;color:var(--brand)}
.gl-card h2{margin:0;font-size:1.05rem;font-weight:800;line-height:1.3}
.gl-card p{margin:0;font-size:.9rem;line-height:1.55;color:var(--muted)}
.gl-meta{margin-top:auto;padding-top:4px;font-size:.8rem;color:var(--muted)}
@media (max-width:900px){.gl-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.gl-frame{margin:20px 0 36px}.gl-grid{grid-template-columns:minmax(0,1fr)}}
