/* micro-duck.store content pages (guides, policies, about). Loaded after site.css, which holds the
   colour tokens, fonts, top bar, buttons and footer. */

.page-main { padding-top: calc(var(--bar-h) + clamp(1.5rem, 5vh, 3.5rem)); padding-bottom: clamp(3rem, 8vh, 6rem); }
.topbar.is-solid { background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.topbar .btn-small { flex: none; }
@media (max-width: 900px) { .topbar .shop-btn { display: none; } }

.crumbs { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 1.4rem; }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .3em .8em; }
.crumbs li + li::before { content: "/"; margin-right: .8em; opacity: .5; }
.crumbs a { color: inherit; text-underline-offset: .25em; }

.page-head { display: grid; gap: 1rem; max-width: 50rem; margin-bottom: clamp(2rem, 5vh, 3.2rem); }
.page-head h1 { font-size: clamp(2.3rem, 5.6vw, 4.4rem); line-height: .98; }
.page-head .updated { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); }

.doc { max-width: 46rem; font-size: 1.0625rem; line-height: 1.65; }
.doc > * + * { margin-top: 1rem; }
.doc h2 { font-size: clamp(1.55rem, 3vw, 2.2rem); line-height: 1.05; margin-top: clamp(2.4rem, 6vh, 3.4rem); scroll-margin-top: calc(var(--bar-h) + 16px); }
.doc h3 { font-size: clamp(1.15rem, 1.8vw, 1.35rem); margin-top: 1.8rem; scroll-margin-top: calc(var(--bar-h) + 16px); }
.doc h2 + *, .doc h3 + * { margin-top: .7rem; }
.doc ul, .doc ol { padding-left: 1.25em; }
.doc li + li { margin-top: .35rem; }
.doc li::marker { color: var(--accent); }
.doc a { text-decoration-thickness: 1px; text-underline-offset: .2em; }
.doc a:hover { color: var(--accent); }
.doc strong { font-weight: 600; }
.doc code { font-family: var(--font-mono); font-size: .86em; padding: .1em .35em; border-radius: 4px; background: color-mix(in srgb, var(--fg) 9%, transparent); }
.doc pre { font-family: var(--font-mono); font-size: .82rem; line-height: 1.7; background: #15171A; color: #E8E6E1; border-radius: 10px; padding: 1rem 1.2rem; overflow-x: auto; }
.doc pre code { background: none; padding: 0; font-size: inherit; }
.doc pre .c { color: #8A9099; }
.doc hr { border: 0; border-top: 1px solid var(--line); margin-block: 2rem; }
.doc .muted, .doc small { color: var(--fg-2); }

.note { border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 1rem 1.2rem; background: color-mix(in srgb, var(--fg) 5%, transparent); }
.note > * + * { margin-top: .6rem; }
.note .eyebrow { display: block; margin-bottom: .2rem; }
.note.accent { border-color: var(--accent); }

.table-wrap { overflow-x: auto; margin-inline: -2px; }
.doc table { width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.45; min-width: 34rem; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: .7rem .8rem .7rem 0; border-bottom: 1px solid var(--line); }
.doc thead th { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--fg-2); font-weight: 500; border-bottom-color: var(--line-strong); }
.doc tbody th { font-weight: 600; }

.doc .spec-table { margin-top: 1rem; }
.doc .faq { margin-top: 1rem; }
.doc .faq .a > * + * { margin-top: .6rem; }

.cta-row { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.6rem; }

.related { margin-top: clamp(3rem, 8vh, 5rem); border-top: 1px solid var(--line); padding-top: 1.6rem; }
.related h2 { font-size: 1rem; font-family: var(--font-mono); font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--fg-2); margin-bottom: 1rem; }
.related ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .8rem; }
.related a { display: block; height: 100%; padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: 10px; text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
.related a:hover { border-color: var(--fg); transform: translateY(-2px); }
.related b { display: block; font-weight: 600; }
.related span { display: block; margin-top: .25rem; font-size: .88rem; color: var(--fg-2); }
