.documentation-hub, .docs-guide { color: var(--text-primary); }
.dh-hero { padding: 72px 0 56px; border-bottom: 1px solid var(--border); }
.dh-eyebrow { color: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.dh-hero h1 { font-size: clamp(32px, 4vw, 50px); font-weight: 600; letter-spacing: -.035em; line-height: 1.15; margin-bottom: 20px; }
.dh-lead { max-width: 720px; color: var(--text-secondary); font-size: 18px; line-height: 1.7; }
.dh-search { display: grid; grid-template-columns: minmax(0, 1fr) 210px auto; gap: 16px; align-items: end; margin-top: 32px; }
.dh-search label { display: block; font-size: 12px; margin-bottom: 8px; color: var(--text-secondary); }
.dh-search input, .dh-search select { display: block; width: 100%; min-height: 48px; padding: 12px; font: inherit; font-size: 14px; color: var(--text-primary); background: var(--bg-surface); border: 1px solid var(--border); border-radius: 6px; }
.dh-search button { min-height: 48px; cursor: pointer; }
.dh-section { padding: 64px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 100px; }
.dh-surface { background: var(--bg-surface); }
.dh-section-heading { max-width: 760px; margin-bottom: 28px; }
.dh-section-heading h2 { font-size: clamp(26px, 3vw, 34px); font-weight: 600; letter-spacing: -.025em; line-height: 1.3; margin-bottom: 16px; }
.dh-section-heading p:not(.dh-eyebrow) { font-size: 16px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 16px; }
.dh-link { color: var(--accent); font-size: 14px; font-weight: 500; }
.dh-start { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; list-style: none; padding: 0; }
.dh-start a { display: flex; align-items: center; gap: 14px; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); height: 100%; font-size: 15px; }
.dh-start a span { color: var(--accent); font-size: 12px; }
.dh-start a span:last-child { margin-left: auto; }
.dh-roles, .dh-catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.dh-card, .dh-article { padding: 28px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-body); min-width: 0; }
.dh-card h3, .dh-article h3 { font-size: 19px; font-weight: 600; line-height: 1.4; letter-spacing: -.015em; margin-bottom: 16px; }
.dh-card ul { list-style: none; padding: 0; }
.dh-card li + li { margin-top: 14px; }
.dh-card a { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.dh-card a:hover, .dh-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.dh-article { display: flex; flex-direction: column; background: var(--bg-surface); }
.dh-article p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; margin-bottom: 24px; }
.dh-article .dh-link { margin-top: auto; }
.dh-product { font-size: 11px; color: var(--accent); margin-bottom: 14px; }
.dh-article:hover, .dh-start a:hover { border-color: var(--accent); }
.dh-tabs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.dh-tabs a { padding: 10px 16px; border: 1px solid var(--border); border-radius: 6px; font-size: 13px; }
.dh-tabs a[aria-current] { background: var(--bg-surface); color: var(--accent); border-color: var(--accent); }
.dh-empty { grid-column: 1 / -1; padding: 32px; border: 1px solid var(--border); border-radius: var(--radius); }
.dh-empty p { color: var(--text-secondary); margin: 16px 0; }
.documentation-hub a:focus-visible, .documentation-hub input:focus-visible, .documentation-hub select:focus-visible, .documentation-hub button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.docs-guide-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 64px; }
.docs-guide-toc { position: sticky; top: 100px; align-self: start; font-size: 13px; }
.docs-guide-toc h2 { font-size: 14px; margin-bottom: 16px; }
.docs-guide-toc ol { padding-left: 20px; }
.docs-guide-toc li { margin-bottom: 12px; line-height: 1.6; }
.docs-guide-toc a:hover { color: var(--accent); }
.docs-guide .guide-section { padding: 28px 0; border-bottom: 1px solid var(--border); scroll-margin-top: 100px; }
.docs-guide .guide-section:first-child { padding-top: 0; }
.docs-guide .guide-section h2 { font-size: 25px; line-height: 1.4; font-weight: 600; letter-spacing: -.02em; margin-bottom: 20px; }
.docs-guide .guide-section p, .docs-guide .guide-section li { color: var(--text-secondary); font-size: 15px; line-height: 1.8; margin-bottom: 14px; }
.docs-guide .guide-section ul { padding-left: 20px; }
.docs-guide .guide-section a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.docs-guide .guide-check { padding: 20px; background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius); margin-top: 20px; }
.docs-guide .guide-check p:last-child { margin-bottom: 0; }
.docs-guide .guide-section details { padding: 16px 0; border-bottom: 1px solid var(--border); }
.docs-guide .guide-section summary { cursor: pointer; font-size: 15px; font-weight: 500; }
.docs-guide .guide-section details p { margin-top: 12px; }
@media (max-width: 1000px) { .dh-search { grid-template-columns: minmax(0, 1fr) 190px; } .dh-search button { justify-self: start; } .dh-roles, .dh-catalog, .dh-start { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 800px) { .docs-guide-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; } .docs-guide-toc { position: static; border-bottom: 1px solid var(--border); padding-bottom: 20px; } }
@media (max-width: 600px) { .dh-hero, .dh-section { padding: 40px 0; } .dh-search, .dh-roles, .dh-catalog, .dh-start { grid-template-columns: minmax(0, 1fr); } .dh-search button { width: 100%; } .dh-card, .dh-article { padding: 24px; } }

.docs-guide .guide-section h3 { font-size: 17px; font-weight: 600; margin: 20px 0 12px; }
.docs-guide .guide-review { max-width: 800px; color: var(--text-secondary); font-size: 13px; line-height: 1.7; margin-top: 20px; }
.documentation-hub #economics { scroll-margin-top: 100px; }
.docs-guide .guide-section table { width: 100%; border-collapse: collapse; background: var(--bg-surface); font-size: 14px; }
.docs-guide .guide-section th, .docs-guide .guide-section td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.docs-guide .guide-section th { background: #f0efec; font-weight: 600; }

.docs-guide .guide-table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
.docs-guide .guide-table-scroll table { width: 100%; min-width: 580px; border-collapse: collapse; text-align: left; font-size: 14px; }
.docs-guide .guide-table-scroll th, .docs-guide .guide-table-scroll td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.docs-guide .guide-table-scroll th { background: var(--bg-surface); }
.docs-guide .guide-table-scroll tr:last-child td { border-bottom: 0; }
.docs-guide .content-section pre[data-language] { padding: 22px; border: 1px solid #3b4a54; border-left: 3px solid var(--accent); border-radius: 10px; background: #18232d; color: #e4edf5; }
.docs-guide .content-section pre[data-language]::before { content: attr(data-language); display: block; margin-bottom: 14px; color: #a7bacb; font: 600 11px/1.4 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.docs-guide .content-section pre[data-language] code { background: transparent; color: inherit; padding: 0; font: 13px/1.75 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre; }
.docs-guide .content-section pre:focus-visible, .docs-guide .guide-table-scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }

.docs-pdf-downloads{display:flex;flex-wrap:wrap;gap:16px;margin:24px 0}.docs-pdf-download{display:flex;align-items:center;gap:12px;padding:14px 18px;border:1px solid var(--accent);border-radius:8px;color:var(--accent-hover);background:var(--bg-surface);font-size:14px;font-weight:600}.docs-pdf-download:hover{background:#fdf3ee}.docs-pdf-download:focus-visible{outline:3px solid var(--accent);outline-offset:4px}.docs-pdf-download i{font-size:24px}.docs-pdf-download small{display:block;margin-top:3px;font-size:12px;font-weight:400;color:var(--text-secondary)}.docs-pdf-unavailable{font-size:13px;color:var(--text-secondary)}

.docs-pdf-section { margin-top: 32px; }
