/* Doctor guide (/aide) — additions to style.css + legal.css. Generated copy:
   edit tool/doctor_guide/assets/guide.css, then rebuild the guide. */

.legal-header a { border: none; }
.legal-header .subtitle { margin-top: 0; }

.guide-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin: -30px 0 30px;
    padding: 12px 16px;
    background-color: #f7fafc;
    border-radius: 8px;
}

.guide-nav a,
.guide-print {
    color: #667eea;
    font-weight: 600;
    font-size: 15px;
    text-decoration: none;
    background: none;
    border: none;
    padding: 4px 0;
    cursor: pointer;
    font-family: inherit;
}

.guide-nav a:hover,
.guide-print:hover { color: #764ba2; }

.guide-search {
    flex: 1 1 220px;
    min-width: 0;
    margin-left: auto;
    padding: 8px 12px;
    font-size: 15px;
    font-family: inherit;
    border: 1px solid #cbd5e0;
    border-radius: 6px;
    background: #ffffff;
    color: #2d3748;
}

.guide-search:focus { outline: 2px solid #667eea; outline-offset: 1px; }

.guide-results {
    margin: -18px 0 30px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    overflow: hidden;
    color: #4a5568;
}

.guide-results:not(:has(a)) { padding: 12px 16px; }

.guide-results a {
    display: block;
    padding: 12px 16px;
    text-decoration: none;
    color: #4a5568;
    border-bottom: 1px solid #e2e8f0;
}

.guide-results a:last-child { border-bottom: none; }
.guide-results a:hover { background-color: #f7fafc; }
.guide-results strong { display: block; color: #2c5282; font-size: 16px; }
.guide-results span { font-size: 14px; }

.guide-toc-title { margin-top: 0 !important; }
.guide-toc h2 { font-size: 20px !important; border-bottom: none !important; margin: 24px 0 8px !important; padding: 0 !important; color: #2c5282 !important; }
.legal-content .guide-toc ol { margin: 0 0 8px 0; padding-left: 2.2em; } /* room for two-digit numbers */
.legal-content .guide-toc li { margin-bottom: 6px; font-size: 17px; }

.guide-downloads { display: flex; flex-wrap: wrap; gap: 12px; }
.legal-content .guide-downloads a {
    display: inline-block;
    padding: 8px 14px;
    border: 1px solid #667eea;
    border-radius: 6px;
    font-weight: 600;
}

.legal-content figure {
    margin: 24px auto;
    text-align: center;
}

.legal-content figure img {
    max-height: 640px;
    width: auto;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.legal-content figcaption {
    margin-top: 8px;
    font-size: 14px;
    color: #718096;
}

.legal-content blockquote {
    margin: 20px 0;
    padding: 14px 20px;
    background-color: #f7fafc;
    border-left: 4px solid #667eea;
    border-radius: 4px;
}

.legal-content blockquote p:last-child { margin-bottom: 0; }

.legal-content table { width: 100%; border-collapse: collapse; margin: 16px 0 24px; }
.legal-content th,
.legal-content td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
.legal-content th { background-color: #f7fafc; font-weight: 600; }

.legal-content code {
    font-size: 0.9em;
    padding: 1px 5px;
    background-color: #f7fafc;
    border-radius: 4px;
}

.guide-pager {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 40px;
}

.guide-pager a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
}

.guide-pager a[rel="next"] { margin-left: auto; text-align: right; }

.chapitre-titre {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
    margin: 50px 0 20px;
}

@media screen and (max-width: 768px) {
    .guide-nav { margin-top: -20px; }
    .guide-search { flex-basis: 100%; margin-left: 0; }
    .legal-content figure img { max-height: 520px; }
}

@media (prefers-color-scheme: dark) {
    .guide-nav,
    .legal-content blockquote,
    .legal-content th,
    .legal-content code,
    .guide-results a:hover { background-color: #2d3748; }
    .guide-search { background: #1a202c; color: #e2e8f0; border-color: #4a5568; }
    .guide-results,
    .guide-results a,
    .legal-content th,
    .legal-content td { border-color: #4a5568; color: #e2e8f0; }
    .guide-results strong,
    .guide-toc h2 { color: #a3bffa !important; }
    .chapitre-titre { color: #f7fafc; }
}
