/* Manual-only reading layout, using the website's existing typography and palette. */
.manual-page { min-width: 0; }
.manual-header { max-width: 1120px; padding-bottom: 2rem; border-bottom: 1px solid #e6ebf3; }
.manual-lead { margin-top: 1.5rem; max-width: 840px; color: #5a6a8a; font-size: 17px; line-height: 1.7; }
.manual-related { display: flex; flex-wrap: wrap; gap: .65rem 1.5rem; margin-top: 1.5rem; font-size: 14px; font-weight: 700; }
.manual-related a { color: var(--color-link, #2455db); }
.manual-related a[aria-current] { color: var(--color-ink, #0b1020); text-decoration: underline; text-underline-offset: 5px; }
.manual-fallback { margin-top: 1.5rem; border-left: 3px solid var(--color-brand, #ce191f); background: #f7f9fc; padding: 1rem; line-height: 1.6; }
.manual-layout { display: grid; gap: 2rem; margin-top: 2rem; }
.manual-sidebar { min-width: 0; }
.manual-contents-title { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: #5a6a8a; }
.manual-sidebar ul { margin-top: .7rem; list-style: none; padding: 0; }
.manual-sidebar a { display: block; padding: .4rem 0; color: #3c4a60; font-size: 14px; line-height: 1.5; }
.manual-sidebar a:hover { color: var(--color-brand, #ce191f); }
.manual-content { min-width: 0; max-width: 900px; }
.manual-actions { display: flex; gap: .5rem; flex-wrap: wrap; padding-bottom: 1rem; }
.manual-actions[hidden] { display: none; }
.manual-section { padding: 1.8rem 0; border-bottom: 1px solid #e6ebf3; scroll-margin-top: 140px; }
.manual-section:first-of-type { padding-top: .4rem; }
.manual-anchor, .manual-group { scroll-margin-top: 140px; }
.manual-anchor { display: block; }
.manual-prose { font-size: 15px; line-height: 1.75; color: #3c4a60; overflow-wrap: anywhere; }
.manual-prose p, .manual-prose ul, .manual-prose ol, .manual-prose dl { margin-top: 1rem; }
.manual-prose ul { list-style: disc; padding-left: 1.5rem; }
.manual-prose ol { list-style: decimal; padding-left: 1.5rem; }
.manual-prose li + li { margin-top: .45rem; }
.manual-prose h2, .manual-prose h3 { margin-top: 1.7rem; color: #0b1020; font-size: 19px; font-weight: 800; line-height: 1.4; }
.manual-prose h4, .manual-prose h5 { margin-top: 1.3rem; color: #0b1020; font-size: 16px; font-weight: 800; }
.manual-prose a { color: var(--color-link, #2455db); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.manual-prose a:hover { color: var(--color-brand, #ce191f); }
.manual-prose kbd, .manual-prose code, .manual-prose samp, .manual-prose var { font-family: ui-monospace, monospace; font-size: .9em; overflow-wrap: anywhere; }
.manual-prose kbd { border: 1px solid #cfd6e3; border-radius: 4px; background: #f4f6fb; padding: .1rem .3rem; }
.manual-prose pre { white-space: pre-wrap; overflow-wrap: anywhere; padding: 1rem; background: #f4f6fb; border-radius: 10px; margin-top: 1rem; }
.manual-prose img { height: auto; max-width: 100%; }
.manual-prose .manual-figure { display: block; margin: 1.25rem 0; border-radius: 8px; max-height: 600px; object-fit: contain; object-position: left; }
.manual-prose .manual-icon { display: inline-block; vertical-align: middle; margin: 0 .25rem; }
.manual-table { max-width: 100%; overflow-x: auto; margin-top: 1rem; }
.manual-prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.manual-prose td, .manual-prose th { border: 1px solid #e6ebf3; padding: .7rem; vertical-align: top; min-width: 100px; }
.manual-prose th { background: #f7f9fc; font-weight: 700; text-align: left; }
.manual-prose td .manual-figure { margin: .3rem 0; }
.manual-group { margin-top: 1rem; border: 1px solid #e6ebf3; border-radius: 12px; background: white; overflow: clip; }
.manual-group > summary { cursor: pointer; padding: 1rem 1.2rem; color: #0b1020; font-size: 16px; font-weight: 750; line-height: 1.5; background: #f7f9fc; }
.manual-group > summary:hover { color: var(--color-brand, #ce191f); }
.manual-group-body { padding: .3rem 1.2rem 1.2rem; }
.manual-page :focus-visible { outline: 3px solid var(--color-link, #2455db); outline-offset: 3px; }
@media (min-width: 900px) {
    .manual-layout { grid-template-columns: 245px minmax(0, 1fr); gap: 3rem; }
    .manual-sidebar { position: sticky; top: 8rem; align-self: start; max-height: calc(100vh - 10rem); overflow-y: auto; }
}
@media (max-width: 559px) {
    .manual-prose { font-size: 14px; }
    .manual-group > summary { padding: .85rem; font-size: 15px; }
    .manual-group-body { padding: .25rem .85rem 1rem; }
    .manual-actions > button { font-size: 12px; padding-left: .65rem; padding-right: .65rem; }
}
@media print {
    body > header, body > footer, .manual-actions, .manual-sidebar, .manual-related { display: none !important; }
    .manual-page, .manual-content, .manual-header { max-width: none !important; width: auto !important; padding: 0 !important; }
    .manual-layout { display: block; }
    .manual-group::details-content { display: block !important; content-visibility: visible !important; }
    .manual-group > .manual-group-body { display: block !important; }
    .manual-group > summary { background: transparent; }
    .manual-group, .manual-section { border: 0; overflow: visible; }
    .manual-table { overflow: visible; }
    .manual-prose h2, .manual-prose h3, .manual-group > summary { break-after: avoid; }
    .manual-prose img, .manual-prose tr { break-inside: avoid; }
}
