@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
    color-scheme: dark;
    --navy: #101b2b;
    --navy-2: #17263a;
    --panel: #1b2b40;
    --panel-2: #22354c;
    --ink: #e8eef4;
    --muted: #a8b4c0;
    --line: #3d4f5f;
    --ochre: #f4a300;
    --cyan: #65d5d1;
    --red: #f28b82;
    --green: #8ed9a4;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background:
        radial-gradient(circle at 10% 0%, rgba(101, 213, 209, 0.1), transparent 28rem),
        linear-gradient(180deg, var(--navy-2), var(--navy));
    color: var(--ink);
    font-family: "DM Sans", system-ui, sans-serif;
    line-height: 1.65;
}

a { color: var(--cyan); }
a:hover { color: var(--ochre); }

.guide-shell { max-width: 1120px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.guide-topbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 2rem; }
.guide-brand { display: flex; align-items: center; gap: .75rem; color: var(--muted); font-family: "Space Mono", monospace; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.guide-brand img { width: 42px; height: 42px; object-fit: contain; }
.guide-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.guide-button { display: inline-block; border: 1px solid var(--line); border-radius: 6px; padding: .55rem .8rem; background: rgba(255,255,255,.05); color: var(--ink); text-decoration: none; font-size: .88rem; cursor: pointer; }
.guide-button:hover { border-color: var(--ochre); color: var(--ink); background: rgba(244,163,0,.12); }

.guide-hero { padding: 2.25rem; border: 1px solid var(--line); border-radius: 14px; background: linear-gradient(135deg, rgba(244,163,0,.12), rgba(101,213,209,.06)); box-shadow: 0 18px 55px rgba(0,0,0,.18); }
.eyebrow { color: var(--ochre); font-family: "Space Mono", monospace; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
h1, h2, h3, h4 { line-height: 1.2; }
h1 { max-width: 850px; margin: .5rem 0 .9rem; font-size: clamp(2rem, 5vw, 3.5rem); letter-spacing: -.035em; }
h2 { margin-top: 2.5rem; padding-bottom: .45rem; border-bottom: 1px solid var(--line); color: var(--cyan); font-size: 1.65rem; }
h3 { color: var(--ochre); margin-top: 1.6rem; }
h4 { color: var(--ink); margin-bottom: .3rem; }
.lede { max-width: 780px; color: var(--muted); font-size: 1.1rem; }
.meta { color: var(--muted); font-size: .85rem; }

.guide-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 2.25rem; align-items: start; }
.guide-content { min-width: 0; }
.guide-toc { position: sticky; top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(27,43,64,.78); }
.guide-toc strong { display: block; margin-bottom: .6rem; color: var(--ochre); font-family: "Space Mono", monospace; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; }
.guide-toc a { display: block; padding: .28rem 0; color: var(--muted); font-size: .86rem; text-decoration: none; }
.guide-toc a:hover { color: var(--cyan); }

.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 1rem 0 1.25rem; }
.card { padding: 1.1rem 1.2rem; border: 1px solid var(--line); border-radius: 10px; background: rgba(27,43,64,.7); }
.card h3 { margin-top: 0; }
.callout { margin: 1.1rem 0; padding: 1rem 1.1rem; border-left: 4px solid var(--ochre); border-radius: 0 8px 8px 0; background: rgba(244,163,0,.1); }
.callout.info { border-left-color: var(--cyan); background: rgba(101,213,209,.08); }
.callout.warning { border-left-color: var(--red); background: rgba(242,139,130,.08); }
.checklist { list-style: none; padding-left: 0; }
.checklist li { padding: .35rem 0 .35rem 1.7rem; position: relative; }
.checklist li::before { content: "□"; position: absolute; left: 0; color: var(--ochre); font-size: 1.15rem; }
ol.steps { counter-reset: guide-step; list-style: none; padding-left: 0; }
ol.steps > li { counter-increment: guide-step; position: relative; margin: 1rem 0; padding: .85rem 1rem .85rem 3.2rem; border: 1px solid rgba(168,180,192,.18); border-radius: 8px; background: rgba(255,255,255,.025); }
ol.steps > li::before { content: counter(guide-step); position: absolute; left: .95rem; top: .85rem; display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; background: var(--ochre); color: var(--navy); font-family: "Space Mono", monospace; font-weight: 700; font-size: .78rem; }
table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; font-size: .92rem; }
th, td { padding: .7rem .75rem; border: 1px solid var(--line); vertical-align: top; text-align: left; }
th { background: var(--panel-2); color: var(--ochre); }
td { background: rgba(27,43,64,.55); }
code, kbd { padding: .12rem .35rem; border-radius: 4px; background: #0b1420; color: var(--cyan); font-family: "Space Mono", monospace; font-size: .85em; }
.guide-footer { margin-top: 3rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.muted { color: var(--muted); }

@media (max-width: 780px) {
    .guide-topbar { align-items: flex-start; flex-direction: column; }
    .guide-layout { grid-template-columns: 1fr; }
    .guide-toc { position: static; order: -1; }
    .card-grid { grid-template-columns: 1fr; }
    .guide-hero { padding: 1.4rem; }
}

@media print {
    body { background: #fff; color: #111; }
    .guide-shell { max-width: none; padding: 0; }
    .guide-topbar, .guide-toc, .guide-actions { display: none; }
    .guide-hero, .card, td, .callout { background: #fff; color: #111; box-shadow: none; }
    .guide-hero { border: 1px solid #bbb; }
    h2, h3, h4, th, a { color: #111; }
    .muted, .lede, .meta, .guide-footer { color: #444; }
    th, td { border-color: #aaa; }
    a { text-decoration: underline; }
}