/* Documentation shell. Kept separate from help.css used by public legal pages. */
:root {
    --blue: #1557e9;
    --blue-dark: #1044b6;
    --blue-pale: #edf3ff;
    --ink: #17263d;
    --muted: #637084;
    --line: #e4e9f0;
    --surface: #f6f8fb;
    --header-height: 126px;
    --sidebar-width: 282px;
    font-synthesis: none;
    color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-height) + 28px); }
body { margin: 0; color: var(--ink); background: #fff; font: 18px/1.7 Arial, Helvetica, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.28; overflow-wrap: anywhere; }
h1 { font-size: 38px; letter-spacing: -.032em; font-weight: 700; }
h2 { font-size: 26px; letter-spacing: -.018em; }
h3 { font-size: 20px; }
a { color: var(--blue); text-decoration: none; text-underline-offset: 4px; }
a:hover { color: var(--blue-dark); }
button, input { font: inherit; }
button, summary { cursor: pointer; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
button { color: inherit; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #b67e12; outline-offset: 4px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.icon { display: inline-block; width: 22px; height: 22px; flex: 0 0 22px; vertical-align: middle; }
.skip-link { position: fixed; left: 20px; top: -100px; z-index: 60; background: var(--ink); color: white; padding: 12px 20px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: white; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 9px 17px; border: 1px solid transparent; border-radius: 8px; font-size: 16px; font-weight: 600; line-height: 1.45; text-align: center; }
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover { color: #fff; background: var(--blue-dark); }
.button-outline { border-color: #cbd7e8; background: #fff; }
.button-outline:hover { border-color: var(--blue); background: var(--blue-pale); }

.docs-header { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); }
.header-main { max-width: 1680px; min-height: 74px; margin: auto; padding: 14px 32px; display: flex; align-items: center; gap: 32px; }
.brand { display: flex; gap: 12px; align-items: center; color: var(--ink); flex: 0 0 250px; white-space: nowrap; }
.brand:hover { color: var(--ink); }
.brand img { width: 44px; height: 44px; object-fit: contain; flex: 0 0 44px; }
.brand>span { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.brand strong { font-size: 18px; letter-spacing: -.02em; }
.brand-divider { display: block; width: 1px; height: 24px; background: #d6dde7; }
.header-search { display: flex; align-items: center; min-width: 190px; max-width: 410px; flex: 1; height: 44px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.header-search:focus-within { border-color: var(--blue); outline: 2px solid #d5e3ff; }
.header-search input { min-width: 0; width: 100%; padding: 10px 12px; border: 0; background: transparent; color: var(--ink); font-size: 16px; line-height: 24px; outline: none; }
.header-search input::placeholder { color: #707c8e; opacity: 1; }
.header-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.search-key { padding: 0 7px; border: 1px solid #d4dce8; border-radius: 4px; color: var(--muted); font: 13px/22px Arial, sans-serif; }
.search-submit, .search-clear { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border: 0; background: transparent; color: var(--muted); border-radius: 7px; }
.search-submit:hover, .search-clear:hover { color: var(--blue); background: #e8eef8; }
.search-clear { flex-basis: 32px; font-size: 24px; }
.header-actions { display: flex; align-items: center; gap: 22px; margin-left: auto; font-size: 16px; white-space: nowrap; }
.portal-link { display: inline-flex; align-items: center; gap: 6px; }
.portal-link .icon { width: 18px; height: 18px; flex-basis: 18px; }
.login-link { color: var(--ink); }
.audience-nav { border-top: 1px solid #f1f3f7; }
.audience-inner { display: flex; align-items: stretch; gap: 32px; max-width: 1680px; margin: auto; padding: 0 32px; overflow-x: auto; scrollbar-width: thin; }
.audience-inner>a { display: flex; align-items: center; flex-shrink: 0; min-height: 51px; border-bottom: 3px solid transparent; padding: 12px 0 9px; color: #546176; font-size: 16px; line-height: 1.5; }
.audience-inner>a:hover { color: var(--blue); }
.audience-inner>a[aria-current] { border-color: var(--blue); color: var(--blue); font-weight: 600; }
.audience-caption { margin-left: auto; align-self: center; font-size: 14px; color: var(--muted); white-space: nowrap; }

.docs-layout { display: grid; grid-template-columns: var(--sidebar-width) minmax(0,1fr); max-width: 1680px; min-height: calc(100vh - var(--header-height)); margin: auto; }
.docs-sidebar { position: sticky; top: var(--header-height); height: calc(100dvh - var(--header-height)); border-right: 1px solid var(--line); align-self: start; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d8e0eb transparent; }
.docs-menu { min-height: 100%; }
.mobile-menu-toggle { display: none; }
.sidebar-inner { padding: 28px 18px 24px 24px; display: flex; flex-direction: column; min-height: calc(100dvh - var(--header-height)); }
.topic-nav { font-size: 16px; line-height: 1.5; }
.nav-home, .nav-faq { display: block; padding: 9px 10px; border-radius: 6px; color: var(--ink); }
.nav-home { margin-bottom: 15px; font-weight: 600; }
.nav-home[aria-current] { background: var(--blue-pale); color: var(--blue); }
.nav-group { margin: 6px 0; }
.nav-group>summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 8px 8px 8px 10px; border-radius: 6px; font-size: 16px; font-weight: 600; }
.nav-group>summary:hover, .nav-home:hover, .nav-faq:hover { color: var(--blue); background: var(--surface); }
.nav-group>summary>.icon { width: 18px; height: 18px; flex-basis: 18px; color: #8290a3; }
.nav-group[open]>summary>.icon, .page-toc[open]>summary>.icon, .docs-menu[open]>.mobile-menu-toggle>.icon { transform: rotate(180deg); }
.nav-group ul { margin: 2px 0 10px; padding: 0; list-style: none; }
.nav-group li a { display: block; padding: 8px 10px 8px 22px; margin: 1px 0; color: #566277; font-size: 15px; line-height: 1.55; border-radius: 5px; border-left: 2px solid transparent; }
.nav-group li a:hover { color: var(--blue); background: var(--surface); }
.nav-group li a[aria-current] { color: var(--blue); border-left-color: var(--blue); background: var(--blue-pale); font-weight: 600; }
.nav-faq { margin-top: 12px; }
.sidebar-bottom { margin-top: auto; padding: 30px 10px 0; font-size: 13px; line-height: 1.65; color: var(--muted); }
.sidebar-bottom>a { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; margin-top: 13px; }
.sidebar-bottom .icon { width: 16px; height: 16px; flex-basis: 16px; }

.docs-main { min-width: 0; padding: 38px 44px 0; }
.docs-main:focus { outline: none; }
.content-anchor { height: 0; }
.directory-content { max-width: 900px; }
.eyebrow { display: block; margin-bottom: 12px; color: var(--muted); font-size: 14px; font-weight: 500; }
.page-heading { margin-bottom: 38px; }
.page-heading>p, .article-summary { margin-top: 18px; max-width: 780px; color: #526078; font-size: 18px; line-height: 1.75; }
.home-section { margin: 38px 0; }
.home-section>h2 { margin-bottom: 20px; }
.section-lead { color: var(--muted); margin-top: -10px; }
.start-links { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.start-links li { border-bottom: 1px solid var(--line); }
.start-links a { display: flex; align-items: center; gap: 18px; padding: 21px 10px 21px 0; color: var(--ink); }
.start-links a>span:nth-child(2) { min-width: 0; flex: 1; }
.start-links a> .icon { color: var(--blue); width: 20px; height: 20px; flex-basis: 20px; }
.start-links a strong { display: block; font-size: 19px; line-height: 1.45; }
.start-links a small { display: block; margin-top: 4px; font-size: 16px; line-height: 1.5; color: var(--muted); }
.start-links a:hover strong { color: var(--blue); }
.start-icon { display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 10px; color: var(--blue); background: var(--blue-pale); }
.participation-path { padding: 0; margin: 25px 0 28px; list-style: none; counter-reset: path; }
.participation-path>li { counter-increment: path; position: relative; display: flex; gap: 18px; padding-bottom: 24px; }
.participation-path>li::before { content: counter(path); position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid #cbdaf2; border-radius: 50%; font-size: 14px; font-weight: 600; background: #fff; color: var(--blue); }
.participation-path>li:not(:last-child)::after { content: ''; position: absolute; left: 14px; top: 30px; bottom: 0; width: 1px; background: #dbe4f3; }
.participation-path>li:last-child { padding-bottom: 0; }
.participation-path strong { display: block; font-size: 18px; line-height: 1.6; }
.participation-path p { color: var(--muted); font-size: 17px; line-height: 1.65; margin-top: 4px; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 21px 24px; margin-top: 26px; border-radius: 8px; background: #f0f5fd; font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; }
.notice-icon { display: grid; place-items: center; width: 22px; height: 22px; flex: 0 0 22px; margin-top: 4px; border: 1.5px solid #768da9; border-radius: 50%; color: #5b7494; font: 600 14px/1 Arial, sans-serif; }
.notice>div>p { margin-top: 4px; }
.notice a { text-decoration: underline; }
.start-notice { margin: -8px 0 34px; }
.cabinet-map { margin: 0; }
.cabinet-row { display: grid; grid-template-columns: 175px minmax(0,1fr); gap: 28px; padding: 25px 0; border-top: 1px solid var(--line); }
.cabinet-row dt { font-size: 18px; font-weight: 600; line-height: 1.5; }
.cabinet-row dd { margin: 0; min-width: 0; }
.cabinet-row dd>p { color: #56647a; font-size: 17px; line-height: 1.75; }
.topic-links { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 0; margin: 12px 0 0; list-style: none; }
.topic-links a { display: inline-flex; align-items: center; gap: 6px; padding: 4px 0; font-size: 16px; line-height: 1.6; }
.topic-links .icon { width: 16px; height: 16px; flex-basis: 16px; }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item>summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 0; font-size: 17px; font-weight: 600; line-height: 1.6; }
.faq-item>summary>.icon { color: #7c8ba0; }
.faq-item[open]>summary>.icon { transform: rotate(180deg); }
.faq-answer { padding-bottom: 22px; color: #56647a; font-size: 17px; }
.faq-answer>a { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 16px; }

.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 25px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue); }
.back-to-search { display: inline-block; margin: -6px 0 22px; font-size: 15px; }
.reading-layout { display: grid; grid-template-columns: minmax(0,1fr) 190px; gap: 0 44px; align-items: start; }
.article-heading { grid-column: 1; grid-row: 1; min-width: 0; max-width: 820px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.article-meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 14px; line-height: 1.6; margin-bottom: 15px; }
.article-heading h1 { font-size: 34px; }
.print-button { display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 0; padding: 5px 0; margin-top: 17px; color: var(--muted); font-size: 14px; min-height: 36px; }
.print-button:hover { color: var(--blue); }
.print-button .icon { width: 17px; height: 17px; flex-basis: 17px; }
.article-outline { position: sticky; top: calc(var(--header-height) + 32px); grid-column: 2; grid-row: 1 / 3; min-width: 0; max-height: calc(100dvh - var(--header-height) - 60px); overflow-y: auto; scrollbar-width: thin; }
.page-toc>summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--ink); font-size: 14px; font-weight: 600; padding-bottom: 14px; pointer-events: none; }
.page-toc>summary>.icon { display: none; }
.page-toc ol { list-style: none; border-left: 1px solid var(--line); padding: 0; margin: 0; }
.page-toc a { display: block; padding: 7px 0 7px 15px; margin-left: -1px; border-left: 2px solid transparent; font-size: 14px; line-height: 1.6; color: #647187; }
.page-toc a:hover { color: var(--blue); }
.page-toc a[aria-current] { color: var(--blue); border-color: var(--blue); }
.article-content { grid-column: 1; grid-row: 2; min-width: 0; max-width: 820px; }
.article-section { padding-top: 36px; }
.article-section h2 { margin-bottom: 18px; font-size: 26px; }
.heading-anchor { margin-left: 10px; font-size: 20px; font-weight: 400; color: #8fa5c7; opacity: 0; }
.article-section h2:hover .heading-anchor, .heading-anchor:focus-visible { opacity: 1; }
.article-section>p, .instruction-steps { font-size: 18px; line-height: 1.85; overflow-wrap: anywhere; }
.instruction-steps { padding-left: 24px; margin: 18px 0 0; }
.instruction-steps li { padding-left: 7px; margin: 12px 0; }
.instruction-steps li::marker { color: #5e7290; font-size: 16px; }
.article-actions { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.article-actions h2, .related-section h2 { font-size: 21px; }
.action-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.related-section { margin-top: 34px; }
.related-links { list-style: none; padding: 0; margin: 13px 0 0; }
.related-links a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 0; font-size: 16px; }
.related-links .icon { width: 16px; height: 16px; flex-basis: 16px; }
.article-pagination { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; margin-top: 38px; padding-top: 26px; border-top: 1px solid var(--line); }
.article-pagination a { display: flex; flex-direction: column; gap: 6px; color: var(--ink); }
.article-pagination a:hover strong { color: var(--blue); }
.article-pagination a[rel="next"] { text-align: right; }
.article-pagination span { color: var(--muted); font-size: 14px; }
.article-pagination strong { font-size: 16px; font-weight: 500; line-height: 1.6; }

.search-count { color: var(--muted); font-size: 15px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.search-results { margin: 0; padding: 0; list-style: none; }
.search-results li { border-bottom: 1px solid var(--line); }
.search-results a { display: block; padding: 24px 0; }
.result-section { color: var(--muted); font-size: 14px; }
.search-results h2 { margin-top: 7px; font-size: 22px; }
.search-results p { margin-top: 8px; color: #59677b; font-size: 17px; }
.empty-search { padding: 32px 0; }
.empty-search p { margin: 12px 0 20px; color: var(--muted); }
.empty-page { max-width: 760px; padding: 45px 0 80px; }
.empty-page p { margin: 20px 0 26px; color: var(--muted); }
.docs-footer { margin-top: 64px; padding: 25px 0 28px; border-top: 1px solid var(--line); font-size: 13px; line-height: 1.7; color: var(--muted); }
.docs-footer nav { display: flex; flex-wrap: wrap; gap: 5px 22px; margin-top: 7px; }
.docs-footer a { display: inline-flex; align-items: center; gap: 5px; padding: 5px 0; color: #56647b; font-size: 14px; }
.docs-footer a:hover { color: var(--blue); }
.docs-footer .icon { width: 16px; height: 16px; flex-basis: 16px; }

@media (max-width: 1280px) {
    :root { --sidebar-width: 266px; }
    .header-main { gap: 24px; padding-inline: 24px; }
    .brand { flex-basis: 242px; }
    .header-actions { gap: 16px; }
    .audience-inner { padding-inline: 24px; }
    .docs-main { padding: 32px 36px 0; }
    .sidebar-inner { padding-left: 16px; }
    .reading-layout { grid-template-columns: minmax(0,1fr); }
    .article-heading { grid-column: 1; grid-row: 1; border: 0; padding-bottom: 25px; }
    .article-outline { position: static; grid-column: 1; grid-row: 2; max-height: none; overflow: visible; margin-bottom: 8px; }
    .article-content { grid-column: 1; grid-row: 3; }
    .page-toc { padding: 0 18px; border: 1px solid var(--line); border-radius: 8px; }
    .page-toc>summary { min-height: 48px; padding: 12px 0; pointer-events: auto; font-size: 15px; }
    .page-toc>summary>.icon { display: block; width: 18px; height: 18px; }
    .page-toc ol { margin: 2px 0 18px; }
    .page-toc a { font-size: 15px; }
}
@media (min-width: 981px) {
    /* Navigation remains visible with JS disabled, including a closed details. */
    .docs-menu:not([open])>.sidebar-inner { display: flex; }
}
@media (max-width: 980px) {
    :root { --header-height: 126px; }
    .header-main { padding: 14px 24px; gap: 20px; }
    .brand { flex-basis: auto; }
    .brand>span { font-size: 16px; gap: 9px; }
    .brand strong { font-size: 17px; }
    .brand img { width: 38px; height: 38px; flex-basis: 38px; }
    .header-actions .portal-link { display: none; }
    .header-actions { gap: 16px; }
    .audience-caption { display: none; }
    .docs-layout { display: block; }
    .docs-sidebar { position: static; height: auto; max-height: none; border-right: 0; overflow: visible; background: #fff; }
    .docs-menu { min-height: 0; border-bottom: 1px solid var(--line); }
    .mobile-menu-toggle { display: flex; align-items: center; justify-content: space-between; padding: 13px 24px; font-size: 16px; font-weight: 600; background: var(--surface); }
    .mobile-menu-toggle>span { display: flex; align-items: center; gap: 10px; }
    .mobile-menu-toggle .icon { width: 19px; height: 19px; flex-basis: 19px; }
    .sidebar-inner { min-height: 0; max-height: min(62dvh,600px); overflow-y: auto; padding: 14px 24px 24px; }
    .sidebar-bottom { display: none; }
    .nav-group li a { font-size: 16px; }
    .docs-main { padding: 30px 32px 0; }
    .directory-content, .article-heading, .article-content { max-width: none; }
    .cabinet-row { grid-template-columns: 180px minmax(0,1fr); }
}
@media (max-width: 720px) {
    :root { --header-height: 174px; }
    .header-main { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 12px 20px; }
    .brand>span { gap: 8px; }
    .brand strong { font-size: 16px; }
    .brand { gap: 7px; }
    .brand img { width: 34px; height: 34px; flex-basis: 34px; }
    .brand-divider { height: 20px; }
    .header-actions { grid-column: 2; grid-row: 1; gap: 12px; font-size: 15px; }
    .header-actions .button { min-height: 38px; padding: 7px 11px; font-size: 14px; }
    .header-search { grid-column: 1 / -1; grid-row: 2; max-width: none; min-width: 0; }
    .audience-inner { padding-inline: 20px; gap: 26px; }
    .audience-inner>a { min-height: 48px; font-size: 15px; }
    .mobile-menu-toggle { padding-inline: 20px; }
    .sidebar-inner { padding-inline: 20px; }
    .docs-main { padding: 27px 24px 0; }
    h1 { font-size: 32px; }
    .article-heading h1 { font-size: 30px; }
    h2, .article-section h2 { font-size: 24px; }
    .page-heading>p, .article-summary { font-size: 18px; }
    .article-section>p, .instruction-steps { font-size: 18px; line-height: 1.8; }
    .page-heading { margin-bottom: 28px; }
    .home-section { margin-block: 32px; }
    .cabinet-row { grid-template-columns: minmax(0,1fr); gap: 9px; padding-block: 22px; }
    .notice { padding: 18px; gap: 11px; }
    .start-links a { gap: 13px; }
    .start-links a strong { font-size: 18px; }
    .start-links a small { font-size: 16px; }
    .heading-anchor { opacity: 1; }
    .breadcrumbs { font-size: 13px; margin-bottom: 20px; }
    .docs-footer { margin-top: 44px; }
}
@media (max-width: 440px) {
    .header-main { padding-inline: 16px; }
    .brand>span { font-size: 15px; }
    .brand strong { font-size: 15px; }
    .brand img { width: 29px; height: 29px; flex-basis: 29px; }
    .header-actions .login-link { display: none; }
    .header-actions .button { max-width: 122px; font-size: 13px; white-space: normal; }
    .audience-inner { padding-inline: 16px; gap: 22px; }
    .docs-main { padding-inline: 20px; }
    .mobile-menu-toggle, .sidebar-inner { padding-inline: 16px; }
    .page-heading>p, .article-summary { font-size: 17px; }
    .start-icon { width: 36px; height: 36px; flex-basis: 36px; }
    .start-links a { gap: 10px; }
    .start-links a>.icon { width: 18px; height: 18px; flex-basis: 18px; }
    .notice { padding: 17px 14px; font-size: 16px; }
    .article-pagination { gap: 18px; }
    .article-pagination strong { font-size: 15px; }
    .action-links .button { width: 100%; }
}
@media (max-width: 360px) {
    .article-heading h1 { font-size: 26px; }
    .brand-divider, .brand>span>span:last-child { display: none; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
    :root { --header-height: 0px; }
    body { font-size: 12pt; color: #000; }
    .docs-header, .docs-sidebar, .docs-footer, .skip-link, .article-outline, .breadcrumbs, .back-to-search, .print-button, .article-meta, .article-actions, .related-section, .article-pagination, .heading-anchor { display: none !important; }
    .docs-layout, .reading-layout { display: block; }
    .docs-main { padding: 0; }
    .article-content, .article-heading, .directory-content { max-width: none; }
    .article-heading { padding: 0 0 20px; border: 0; }
    h1, .article-heading h1 { font-size: 24pt; }
    h2, .article-section h2 { font-size: 18pt; break-after: avoid; }
    .article-section { padding-top: 20px; }
    .article-section>p, .instruction-steps, .article-summary, .notice { font-size: 12pt; }
    .notice, .instruction-steps li, .cabinet-row { break-inside: avoid; }
    .notice { background: #f5f5f5; border: 1px solid #ccc; }
    a { color: #000; }
    .faq-item:not([open])>.faq-answer { display: block; }
}
