:root { color-scheme: light; --ink: #26313e; --muted: #6c7681; --blue: #2464a0; --line: #e5e8eb; }
* { box-sizing: border-box; }
body { margin: 0; background: #fff; color: var(--ink); font: 15px/1.7 -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
button, input { font: inherit; }
a { color: var(--blue); text-underline-offset: 3px; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid #80b7ea; outline-offset: 3px; }
[hidden] { display: none !important; }
.page-shell { max-width: 1200px; margin: 0 auto; padding: 24px; }
.container.duk { width: 100%; max-width: 1440px; margin-left: auto; margin-right: auto; }
.duk-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 34px; align-items: start; }
.duk-layout--content-only { grid-template-columns: minmax(0, 1fr); }
.sidebar { padding: 18px 12px; background: #f7f8fa; border-radius: 6px; }
.search-box { position: relative; margin: 0 4px 22px; }
.search-box label { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 600; }
.search-field { display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #d7dce2; border-radius: 4px; background: #fff; color: var(--muted); }
.search-field:focus-within { border-color: var(--blue); }
.search-field svg { flex-shrink: 0; }
.search-field input { width: 100%; min-width: 0; padding: 8px 0; border: 0; background: transparent; color: var(--ink); font-size: 13px; }
.search-field input:focus { outline: 0; }
.search-results { position: absolute; top: 100%; margin-top: 4px; left: 0; z-index: 10; width: min(380px, 80vw); max-height: 340px; overflow: auto; padding: 6px; border: 1px solid var(--line); border-radius: 4px; background: #fff; box-shadow: 0 4px 16px #0001; }
.search-results p, .dropdown_search_row, .dropdown_search_row_no { font-size: 13px; padding: 10px; margin: 0; }
.search-results .list-group-item { font-size: 13px; padding: 10px; }
.topic-button { width: 100%; display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 9px 10px; border: 0; border-radius: 4px; color: #485563; background: transparent; text-align: left; font-size: 13px; line-height: 1.5; }
.topic-button span { color: #8a96a3; }
.topic-button:hover { background: #edf0f4; }
.topic-button.active { background: #e7eef6; color: var(--blue); font-weight: 600; }
.sidebar-label { margin: 22px 10px 8px; color: var(--muted); font-size: 11px; letter-spacing: .5px; }
.sidebar-note { margin: 8px 10px; color: var(--muted); font-size: 12px; }
.article-card { min-width: 0; }
.article-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 34px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.article-label { color: var(--muted); font-size: 11px; }
.print-button, .back-link { padding: 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; text-decoration: none; }
.print-button:hover, .back-link:hover { color: var(--blue); }
.article-body { min-height: 240px; padding: 24px 0; overflow-wrap: anywhere; }
.article-body:focus { outline: none; }
.article-body h1, .article-body h2, .article-body h3, .article-body h4 { margin: 0 0 20px; font-size: 24px; line-height: 1.4; font-weight: 650; }
.article-body h5 { font-size: 15px; }
.article-body p { margin: 0 0 16px; }
.article-body img { max-width: 100% !important; height: auto !important; }
.article-body video, .article-body iframe { max-width: 100%; }
.article-body video { display: block; width: 100%; height: auto; margin: 20px auto; background: #172331; }
.article-body > div[align] { margin-top: 20px; }
.duk-article-content { line-height: 1.8; }
.duk-article-content img { margin-top: 10px; margin-bottom: 10px; }
.duk-article-content table { max-width: 100%; border-collapse: collapse; }
.table-scroll { overflow-x: auto; margin: 20px 0; }
.duk-article-content td, .duk-article-content th { padding: 8px 12px; border: 1px solid var(--line); }
.list-group { display: grid; }
.list-group-item { display: block; padding: 12px 8px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; cursor: pointer; line-height: 1.6; }
.list-group-item:last-child { border-bottom: 0; }
.list-group-item:hover, .list-group-item:focus-visible { color: var(--blue); background: #f5f7fa; }
.article-body > a:has(img) { display: inline-block; margin-top: 20px; }
.pager { list-style: none; padding: 0; margin: 0 0 20px; font-size: 13px; }
.pager a { cursor: pointer; text-decoration: none; }
.pager a::before { content: "← "; }
.DUK_button, .duk-download { display: inline-block; margin: 8px 0; font-size: 13px; }
.button { padding: 7px 13px; border: 1px solid #d7dce2; border-radius: 4px; background: #f6f8fa; color: var(--ink); font-size: 13px; }
.button:hover { background: #edf1f5; }
.status-message { min-height: 200px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--muted); }
.status-message h3 { color: var(--ink); margin-bottom: 8px; font-size: 20px; }
.status-message p { max-width: 420px; font-size: 14px; margin: 10px 0 18px; }
.status-symbol { display: none; }
.spinner { width: 22px; height: 22px; border: 2px solid #e3ebf4; border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
.no-script { padding: 20px 0; }
.content-only { max-width: 1080px; }
.content-only .duk-layout { display: block; }
.skip-link { position: absolute; left: 16px; top: -80px; padding: 10px 15px; background: white; z-index: 20; }
.skip-link:focus { top: 10px; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation: none; } }
@media (max-width: 760px) {
    .page-shell { padding: 16px; }
    .duk-layout { grid-template-columns: 1fr; gap: 22px; }
    .sidebar { padding: 14px 10px; }
    .search-box { margin-bottom: 14px; }
    .topic-navigation { max-height: 220px; overflow-y: auto; }
    .article-body { padding: 20px 0; }
    .article-body h1, .article-body h2, .article-body h3, .article-body h4 { font-size: 21px; }
}
@media print {
    body { color: #000; }
    .sidebar, .article-toolbar, .pager, .skip-link { display: none; }
    .page-shell, .content-only { max-width: none; padding: 0; }
    .duk-layout { display: block; }
    .article-body { padding: 0; }
    .article-body img { break-inside: avoid; }
}
