﻿/* Documentation: neutral catalogue surfaces and accessible native PDF previews. */
.docs-page { background: #fff; color: #111; font-family: Arial, sans-serif; }
.docs-page .container { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: 48px; }
.docs-header { padding: 155px 0 76px; border-bottom: 1px solid #e2e2e2; background: #f5f5f5; color: #111; }
.docs-header-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); align-items: end; gap: 80px; }
.docs-header .section-label, .docs-library .section-label { margin-bottom: 18px; color: #777; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; }
.docs-header h1 { margin: 0; font-size: clamp(42px, 5vw, 72px); font-weight: 500; line-height: 1.05; letter-spacing: -.05em; }
.docs-header h1 span { color: #777; }
.docs-header-copy > p { max-width: 400px; margin: 0 0 28px; color: #777; font-size: 14px; line-height: 1.8; }
.docs-summary { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid #ddd; }
.docs-summary span { padding-top: 20px; color: #777; font-size: 12px; }
.docs-summary strong { display: block; margin-bottom: 5px; color: #111; font-size: 30px; font-weight: 500; line-height: 1.2; }
.docs-library { min-height: 620px; padding: 68px 0 90px; background: #fff; color: #111; }
.docs-toolbar { display: flex; margin-bottom: 32px; align-items: end; justify-content: space-between; gap: 28px; }
.docs-toolbar h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); font-weight: 500; line-height: 1.12; letter-spacing: -.035em; }
.docs-search { display: flex; width: min(100%, 360px); height: 48px; padding: 0 16px; border: 1px solid #ddd; align-items: center; gap: 12px; background: #fff; }
.docs-search:focus-within { border-color: #111; box-shadow: 0 0 0 3px #f3e50045; }
.docs-search svg { width: 19px; height: 19px; flex: 0 0 auto; fill: none; stroke: #777; stroke-linecap: round; stroke-width: 1.8; }
.docs-search input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: #111; font: 13px Arial, sans-serif; }
.docs-search input::placeholder { color: #777; }
.docs-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.docs-filters button { min-height: 40px; padding: 9px 17px; border: 1px solid #ddd; border-radius: 24px; background: #fff; color: #666; cursor: pointer; font: 12px Arial, sans-serif; }
.docs-filters button:hover, .docs-filters button.active { border-color: #111; background: #111; color: #fff; }
.docs-filters button:focus-visible, .doc-actions a:focus-visible, .doc-actions button:focus-visible, .pdf-dialog-actions a:focus-visible, .pdf-dialog-actions button:focus-visible { outline: 2px solid #111; outline-offset: 4px; }
.docs-result-count { min-height: 20px; margin: 22px 0 28px; color: #777; font-size: 12px; }
.docs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.doc-card { display: flex; min-width: 0; min-height: 360px; padding: 30px; border: 1px solid #e2e2e2; background: #f7f7f7; flex-direction: column; transition: border-color .2s ease, background .2s ease; }
.doc-card:hover { border-color: #b5b5b5; background: #f3f3f3; }
.doc-card-head { display: flex; margin-bottom: 30px; align-items: center; justify-content: space-between; }
.doc-number { color: #777; font-size: 11px; letter-spacing: .12em; }
.doc-type { padding: 4px 8px; border: 1px solid #ddd; color: #666; font-size: 10px; letter-spacing: .08em; }
.doc-card-copy > p:first-child { margin-bottom: 10px; color: #777; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.doc-card h3 { margin: 0 0 16px; color: #111; font-size: clamp(22px, 2vw, 29px); font-weight: 500; line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.doc-meta { display: flex; margin-bottom: 16px; flex-wrap: wrap; gap: 6px 12px; color: #777; font-size: 11px; }
.doc-meta span + span::before { content: "\00b7"; margin-right: 12px; color: #aaa; }
.doc-description { margin: 0 0 20px; color: #777; font-size: 13px; line-height: 1.8; }
.doc-note { margin: 0 0 20px; padding: 14px 16px; border-left: 3px solid #c4b900; background: #efefed; color: #666; font-size: 12px; line-height: 1.7; }
.doc-note strong { display: block; margin-bottom: 5px; color: #111; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.doc-tags { display: flex; margin-top: auto; margin-bottom: 22px; flex-wrap: wrap; gap: 8px; }
.doc-tags span { color: #777; font-size: 11px; }
.doc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.doc-actions button, .doc-actions a { display: flex; min-height: 44px; padding: 11px 16px; border: 1px solid #bbb; border-radius: 24px; align-items: center; justify-content: center; cursor: pointer; font: 600 12px Arial, sans-serif; text-decoration: none; }
.doc-actions button { background: transparent; color: #111; }
.doc-actions button:hover { border-color: #111; background: #fff; }
.doc-actions a { gap: 12px; border-color: #111; background: #111; color: #fff; }
.doc-actions a:hover { background: #333; }
.docs-empty { min-height: 260px; padding: 64px 24px; border: 1px dashed #ccc; background: #f7f7f7; text-align: center; }
.docs-empty > span { color: #777; font-size: 10px; letter-spacing: .15em; }
.docs-empty h3 { margin: 18px 0 10px; font-size: 26px; font-weight: 500; }
.docs-empty p { color: #777; font-size: 14px; }
body.pdf-open { overflow: hidden; }
.pdf-dialog { inset: 0; width: calc(100vw - 48px); height: calc(100dvh - 48px); max-width: 1440px; max-height: none; margin: auto; padding: 0; overflow: hidden; border: 1px solid #ddd; background: #fff; color: #111; box-shadow: 0 24px 80px #0004; font-family: Arial, sans-serif; }
.pdf-dialog::backdrop { background: #1119; }
.pdf-dialog-shell { display: grid; height: 100%; grid-template-rows: auto minmax(0, 1fr); }
.pdf-dialog header { display: flex; min-height: 78px; padding: 16px 22px; border-bottom: 1px solid #e2e2e2; align-items: center; justify-content: space-between; gap: 24px; }
.pdf-dialog header > div:first-child { min-width: 0; }
.pdf-dialog header span { display: block; color: #777; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; }
.pdf-dialog h2 { overflow: hidden; max-width: 720px; margin: 5px 0 0; color: #111; font-size: 14px; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.pdf-dialog-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 8px; }
.pdf-dialog-actions a, .pdf-dialog-actions button { display: inline-flex; min-height: 40px; padding: 9px 14px; border: 1px solid #ddd; border-radius: 24px; align-items: center; justify-content: center; background: #fff; color: #111; cursor: pointer; font: 11px Arial, sans-serif; text-decoration: none; }
.pdf-dialog-actions a:hover, .pdf-dialog-actions button:hover { border-color: #111; background: #f5f5f5; }
.pdf-dialog-actions button { width: 40px; padding: 0; font-size: 24px; }
.pdf-frame-wrap { position: relative; min-height: 0; background: #f5f5f5; }
.pdf-frame-wrap iframe { position: relative; z-index: 1; display: block; width: 100%; height: 100%; border: 0; background: #f5f5f5; }
.pdf-frame-wrap > p { position: absolute; inset: 50% auto auto 50%; width: min(90%, 520px); color: #777; text-align: center; transform: translate(-50%, -50%); }
.docs-page [hidden] { display: none !important; }
@media (max-width: 1000px) { .docs-header-grid { gap: 40px; } .docs-page .container { padding-inline: 30px; } }
@media (max-width: 800px) { .docs-header-grid { grid-template-columns: 1fr; gap: 30px; } .docs-header-copy > p { max-width: 550px; } .docs-summary { max-width: 400px; } .docs-grid { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .docs-page .container { padding-inline: 24px; } .docs-header { padding: 116px 0 48px; } .docs-header h1 { font-size: 40px; } .docs-library { padding: 44px 0 60px; } .docs-toolbar { align-items: stretch; flex-direction: column; gap: 22px; } .docs-search { width: 100%; } .doc-card { min-height: 0; padding: 24px; } .pdf-dialog { width: 100vw; height: 100dvh; margin: 0; border: 0; } .pdf-dialog header { padding: 14px 16px; gap: 12px; } .pdf-dialog-actions a { display: none; } .pdf-dialog h2 { max-width: 70vw; } }
@media (prefers-reduced-motion: reduce) { .doc-card { transition: none; } }
