/* Read-only driver pages use the existing palette with local system fonts. */
.guide-site {
    --font-body: system-ui, sans-serif;
    --font-display: var(--font-body);
}

.guide-site h1,
.guide-site h2,
.guide-site h3 {
    letter-spacing: -0.025em;
    line-height: 1.15;
    text-transform: none;
}

.guide-site h1 { font-size: clamp(2.1rem, 5.2vw, 3.5rem); }
.guide-site h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.guide-site h3 { font-size: 1.16rem; }

.guide-site .main-content { min-height: 0; }

.guide-site .guide-header {
    max-width: 56rem;
    min-height: 3.75rem;
    gap: 0.25rem 1rem;
}

.guide-brand { font-weight: 750; }
.guide-header span { color: var(--color-muted); font-size: 0.875rem; }

.guide-site .page-hero .container,
.guide-content,
.guide-site .guide-footer { max-width: 56rem; }
.guide-site .page-hero { padding-block: clamp(1.8rem, 4.5vw, 3.5rem); }
.guide-notice { margin: 1rem 0 1.25rem; max-width: 40rem; }
.guide-jumps { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; }
.guide-jumps a:not(.btn) {
    color: var(--color-accent-strong);
    font-weight: 700;
    padding-block: 0.6rem;
    text-decoration: underline;
    text-underline-offset: 0.16em;
}
.guide-editorial { margin: 1rem 0 0; }
.guide-content { padding-block: clamp(1.5rem, 4vw, 3rem); }
.guide-section { margin-block: clamp(1.5rem, 4vw, 3rem); }
.guide-section h2,
.guide-panel h2 { margin-bottom: 0.65rem; }

.guide-panel {
    background: var(--color-surface-strong);
    border: 1px solid var(--color-line-strong);
    border-radius: var(--radius-md);
    padding: clamp(1rem, 3vw, 1.8rem);
}

.guide-safety { border-inline-start: 4px solid var(--color-warning); }
.guide-safety .section-kicker { color: var(--color-warning); }
.guide-source { color: var(--color-muted); font-size: 0.93rem; }
.guide-safety p:last-child,
.guide-footer p { margin-bottom: 0; }
.guide-content a,
.guide-footer a { text-decoration: underline; text-underline-offset: 0.16em; }

.guide-observations { margin: 0; }
.guide-observations div { border-top: 1px solid var(--color-line-strong); padding-block: 0.8rem; }
.guide-observations dt { font-weight: 700; }
.guide-observations dd { margin: 0.2rem 0 0; }

.guide-content h2[id],
.guide-checklist { scroll-margin-top: 7rem; }
.guide-print-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-bottom: 1.25rem;
}
.guide-print-controls [hidden] { display: none; }
.guide-print-controls span { color: var(--color-muted); font-size: 0.93rem; }
.guide-checklist-items { padding: 0; margin: 0.65rem 0 1.25rem; }
.guide-checklist-items li {
    position: relative;
    list-style: none;
    padding-inline-start: 1.55em;
    margin-bottom: 0.4rem;
}
.guide-checklist-items li::before {
    content: "";
    position: absolute;
    inset: 0.36em auto auto 0.08em;
    width: 0.75em;
    height: 0.75em;
    border: 1px solid currentColor;
}
.guide-notes { font-weight: 700; margin: 0; }
.guide-note-lines span { display: block; height: 1.8rem; border-bottom: 1px solid var(--color-line-strong); }
.guide-site .site-footer { padding-block: 1.25rem; }
.guide-site .guide-footer { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; justify-content: space-between; }

@media (prefers-reduced-motion: reduce) {
    html:has(.guide-site) { scroll-behavior: auto; }
}

@media print {
    @page { margin: 0.65in; }

    .guide-has-checklist { background: white; color: black; font: 11pt/1.4 system-ui, sans-serif; }
    .guide-has-checklist .site-header,
    .guide-has-checklist .site-footer,
    .guide-has-checklist .guide-screen-only,
    .guide-print-controls { display: none; }

    .guide-has-checklist .guide-content,
    .guide-has-checklist .guide-checklist {
        width: auto;
        max-width: none;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: white;
    }

    .guide-checklist .section-kicker { color: black; font-size: 9pt; }
    .guide-checklist h2 { font-size: 20pt; }
    .guide-checklist h3 { font-size: 13pt; break-after: avoid; }
    .guide-checklist-items li { break-inside: avoid; }
    .guide-note-lines span { border-color: #555; }
}
