:root {
  --ink: #0f1b2d; --muted: #4a5a70; --bg: #ffffff; --soft: #f3f6fa; --line: #dde4ee;
  --brand: #0b3b5c; --brand2: #0f6e7a; --accent: #0d8f7f; --accent-ink: #ffffff; --link: #0b6b8a;
  --note: #fff7e6; --note-line: #f0b44c; --code: #eef2f7;
}
@media (prefers-color-scheme: dark) {
  :root {
    --ink: #e6edf5; --muted: #a7b4c4; --bg: #0d1520; --soft: #142131; --line: #243447;
    --brand: #0a2a42; --brand2: #0c4d57; --accent: #22b39f; --accent-ink: #04211c; --link: #6cc7e0;
    --note: #2a2312; --note-line: #b8862d; --code: #1a2838;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
       font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
a { color: var(--link); }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.25; }
h1 { font-size: clamp(1.9rem, 4.4vw, 2.9rem); margin: 0 0 .6rem; letter-spacing: -.01em; }
h2 { font-size: clamp(1.35rem, 2.6vw, 1.75rem); margin: 2.4rem 0 .8rem; }
h3 { font-size: 1.12rem; margin: 1.4rem 0 .4rem; }
code { background: var(--code); padding: 1px 6px; border-radius: 5px; font-size: .92em; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.nw { white-space: nowrap; }

/* header */
.top { position: sticky; top: 0; z-index: 10; background: var(--bg); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 18px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.15rem; color: var(--ink);
         text-decoration: none; white-space: nowrap; }
.top nav { display: flex; gap: 4px; flex: 1; overflow-x: auto; scrollbar-width: none; }
.top nav::-webkit-scrollbar { display: none; }
.top nav a { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; white-space: nowrap;
             font-size: .95rem; }
.top nav a:hover, .top nav a[aria-current] { color: var(--ink); background: var(--soft); }
@media (max-width: 760px) {
  .top-row { flex-wrap: wrap; gap: 6px 12px; padding: 8px 0 4px; }
  .top nav { order: 3; flex: 0 0 100%; max-width: 100%; }
  .top nav a:first-child { padding-left: 0; }
  .top .btn-small { margin-left: auto; }
}

/* buttons */
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); font-weight: 700;
       text-decoration: none; padding: 12px 22px; border-radius: 10px; border: 2px solid var(--accent); }
.btn:hover { filter: brightness(1.07); }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn-small { padding: 6px 14px; font-size: .92rem; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }

/* hero */
.hero { background: linear-gradient(135deg, var(--brand), var(--brand2)); color: #fff; padding: 56px 0 60px; }
.hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 32px; align-items: center; }
.hero p.lead { font-size: 1.15rem; color: #d9e8f2; max-width: 40em; margin: 0; }
.hero .btn-ghost { color: #fff; }
.hero-art { justify-self: end; width: 100%; max-width: 380px; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 1.6rem; color: #cfe2ee; font-size: .95rem; }
.stats b { color: #fff; font-size: 1.25rem; display: block; }
.hero.small { padding: 40px 0 42px; }
.hero.small .wrap { grid-template-columns: 1fr; }
@media (max-width: 800px) { .hero .wrap { grid-template-columns: 1fr; } .hero-art { display: none; } }

/* sections */
.section { padding: 8px 0 24px; }
.lede { color: var(--muted); font-size: 1.07rem; max-width: 46em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 1rem; }
.card { display: block; border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 14px;
        background: var(--bg); color: var(--ink); text-decoration: none; }
a.card:hover { border-color: var(--accent); box-shadow: 0 4px 18px rgba(13, 143, 127, .12); }
.card h3 { margin: 0 0 .35rem; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: .96rem; }
.tag { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase;
       padding: 1px 8px; border-radius: 99px; background: var(--note); color: var(--muted);
       border: 1px solid var(--note-line); margin-left: 6px; vertical-align: 2px; }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 12px;
         grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.steps li { counter-increment: s; background: var(--soft); border-radius: 12px; padding: 16px 16px 14px 56px;
            position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 28px; height: 28px;
                    border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800;
                    display: grid; place-items: center; font-size: .9rem; }
.checks { padding-left: 1.2em; }
.checks li { margin: .35rem 0; }
.note { background: var(--note); border-left: 4px solid var(--note-line); padding: 12px 16px; border-radius: 8px;
        margin: 1.2rem 0; }
.band { background: var(--soft); border-radius: 16px; padding: 26px 24px; margin: 2.4rem 0 1rem; text-align: center; }
.band h2 { margin-top: 0; }
.band .actions { justify-content: center; }

/* long text pages */
.prose { max-width: 780px; }
.prose p, .prose li { color: var(--ink); }
.prose ol, .prose ul { padding-left: 1.3em; }
.prose li { margin: .3rem 0; }
.table-wrap { overflow-x: auto; margin: 1rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--soft); }
details { border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 700; }
details[open] summary { margin-bottom: .4rem; }
.crumbs { font-size: .88rem; color: var(--muted); padding-top: 14px; }
.crumbs a { color: var(--muted); }

/* footer */
.foot { background: #0a1622; color: #b9c7d6; margin-top: 56px; padding: 36px 0 20px; }
.foot-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.foot h2 { font-size: .95rem; color: #fff; margin: 0 0 .5rem; }
.foot ul { list-style: none; padding: 0; margin: 0; }
.foot li { margin: .3rem 0; font-size: .93rem; }
.foot a { color: #b9c7d6; text-decoration: none; }
.foot a:hover { color: #fff; }
.fine { font-size: .82rem; color: #7f91a5; margin-top: 26px; }
