/* ==========================================================================
   Nearest Plug — information pages (data & verification, privacy, 404)
   ========================================================================== */

.doc-layout {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    align-items: start;
    gap: clamp(20px, 3vw, 40px);
    margin-top: calc(clamp(40px, 5vw, 64px) * -1);
    padding-bottom: clamp(48px, 6vw, 80px);
}

.doc-body {
    min-width: 0;
    padding: clamp(24px, 4.5vw, 56px);
    border: 1px solid var(--border);
    border-radius: var(--r-feature);
    background: var(--surface);
}

.doc-body > section + section {
    margin-top: clamp(36px, 4.5vw, 56px);
    padding-top: clamp(28px, 3.5vw, 40px);
    border-top: 1px solid var(--border);
}

.doc-body h2 {
    scroll-margin-top: calc(var(--header-h) + 24px);
}

.doc-aside {
    position: sticky;
    top: calc(var(--header-h) + 20px);
}

.doc-toc {
    padding: 20px;
}

.doc-toc__title {
    margin-bottom: 10px;
    color: var(--text-muted);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.doc-toc ol {
    display: grid;
    gap: 2px;
    padding: 0;
    list-style: none;
}

.doc-toc a {
    display: block;
    padding: 8px 10px;
    border-radius: var(--r-control);
    color: var(--text);
    font-size: var(--fs-sm);
    text-decoration: none;
}

.doc-toc a:hover {
    background: var(--bg-alt);
}

.doc-updated {
    margin-top: var(--sp-3);
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

/* ---- Label definitions -------------------------------------------------- */

.label-defs {
    display: grid;
    margin-top: var(--sp-5);
    border-top: 1px solid var(--border);
}

.label-def {
    display: grid;
    grid-template-columns: minmax(180px, 230px) minmax(0, 1fr);
    gap: 8px 24px;
    align-items: start;
    padding-block: 16px;
    border-bottom: 1px solid var(--border);
}

.label-def p {
    margin: 0;
    color: #2c3a33;
    font-size: var(--fs-base);
    line-height: 1.65;
}

/* ---- Steps -------------------------------------------------------------- */

.steps {
    display: grid;
    gap: 14px;
    margin-top: var(--sp-5);
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.steps li {
    position: relative;
    padding-inline-start: 48px;
    counter-increment: step;
    color: #2c3a33;
}

.steps li::before {
    content: counter(step);
    position: absolute;
    inset-inline-start: 0;
    top: -2px;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent-text);
    font-size: var(--fs-sm);
    font-weight: 700;
}

.doc-body .notice,
.doc-body .btn-row {
    margin-top: var(--sp-5);
}

/* ---- 404 ---------------------------------------------------------------- */

.not-found {
    position: relative;
    z-index: 2;
    margin-top: calc(clamp(40px, 5vw, 64px) * -1);
    padding-bottom: clamp(48px, 6vw, 80px);
}

.not-found__links {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    gap: 16px;
}

.not-found__link {
    display: grid;
    gap: 10px;
    padding: 22px;
}

.not-found__link h2 {
    font-size: var(--fs-md);
}

.not-found__link p {
    color: var(--text-muted);
    font-size: var(--fs-sm);
}

/* ---- Responsive --------------------------------------------------------- */

@media (max-width: 980px) {
    .doc-layout {
        grid-template-columns: 1fr;
    }

    .doc-aside {
        display: none;
    }
}

@media (max-width: 640px) {
    .label-def {
        grid-template-columns: 1fr;
    }
}

.page-hero .breadcrumb + .eyebrow {
    margin-top: var(--sp-5);
}
