/* Library v0.1: consultation first, shared dossier identity, no hover-only content. */
.primary-nav { display:grid; gap:4px; margin:0 0 24px; }
.primary-nav a { display:flex; align-items:center; gap:12px; padding:13px 12px; min-height:46px; color:#40536f; text-decoration:none; border-left:3px solid transparent; font-size:14px; font-weight:700; }
.primary-nav a span:first-child { color:#657caf; font:12px Consolas,monospace; }
.primary-nav a[aria-current=page] { background:#edf1fa; border-color:#2d439c; color:#20377e; }
.primary-nav a:hover { background:#f2f5fa; }
.library-side-note { padding:18px 12px; color:#5b6b83; font-size:13px; line-height:1.6; border-top:1px solid var(--line); }
.library-side-note strong { display:block; color:#233b74; margin-bottom:8px; }
.library-view { max-width:1440px; padding:38px clamp(20px,4vw,64px) 60px; margin:auto; }
.library-view h1,.library-view h2,.library-view h3 { color:#1b2f48; }
.library-hero { display:grid; grid-template-columns:1fr 170px; gap:36px; padding-bottom:30px; border-bottom:1px solid #cdd7e7; }
.library-kicker { color:#2d439c; font-size:11px; font-weight:700; letter-spacing:.12em; text-transform:uppercase; margin:0 0 18px; }
.library-hero h1,.library-detail-head h1 { font-size:clamp(30px,3.2vw,47px); line-height:1.08; letter-spacing:-.045em; max-width:750px; margin:0 0 20px; font-weight:600; }
.library-hero p:not(.library-kicker) { max-width:690px; color:#53647c; line-height:1.65; font-size:16px; margin:0; }
.library-metrics { align-self:center; display:grid; gap:18px; border-left:1px solid #cdd7e7; padding-left:28px; }
.library-metrics strong { display:block; font-size:38px; font-weight:500; letter-spacing:-.05em; color:#2d439c; }
.library-metrics span { color:#5b6b83; font-size:12px; line-height:1.4; display:block; }
.library-status-note { display:flex; flex-wrap:wrap; gap:7px 18px; margin:20px 0 26px; padding:13px 16px; background:#edf1f8; border-left:3px solid #667eb4; color:#4f607d; font-size:12px; line-height:1.5; }
.library-status-note strong { color:#263d83; }
.library-search { margin:0 0 26px; }
.library-search>label { display:block; font-size:15px; font-weight:700; margin-bottom:10px; }
.library-search>div { display:flex; align-items:center; background:#fff; border:1px solid #a2b3d0; box-shadow:0 3px 8px #243b8710; }
.library-search>div>span { font-size:32px; color:#405d9b; margin:0 14px; }
.library-search input { min-width:0; flex:1; width:100%; border:0; padding:18px 6px; font-size:17px; color:#20344f; background:transparent; }
.library-search button { border:0; background:transparent; min-width:48px; min-height:52px; font-size:25px; color:#607699; }
.library-search p,.library-helper { font-size:12px; color:#596a82; line-height:1.65; margin:10px 0; }
.library-explore { margin:0 0 24px; }
.library-explore-head { display:flex; align-items:center; gap:12px; margin-bottom:15px; }
.library-explore-head label { font-size:14px; font-weight:700; }
.library-view select { max-width:100%; min-height:44px; background:#fff; border:1px solid #becbdd; padding:10px; color:#243b61; font-size:14px; }
.library-topics { display:flex; flex-wrap:wrap; gap:9px; }
.library-topics button { display:flex; gap:14px; justify-content:space-between; align-items:center; background:#fff; color:#29436b; border:1px solid #c7d2e4; padding:13px 16px; min-height:48px; text-align:left; font-size:14px; }
.library-topics button b { min-width:21px; font:12px Consolas,monospace; color:#65799d; border-left:1px solid #d2dbea; padding-left:12px; }
.library-topics button[aria-pressed=true] { color:#fff; background:#2d439c; border-color:#2d439c; }
.library-topics button[aria-pressed=true] b { color:#fff; }
.library-topics button:hover { border-color:#2d439c; }
.library-filters { border-top:1px solid #d2dbe8; border-bottom:1px solid #d2dbe8; margin-bottom:26px; }
.library-filters summary,.library-more summary { cursor:pointer; padding:14px 4px; min-height:48px; font-size:14px; color:#294780; }
.library-filters summary span { margin-left:12px; font-weight:700; }
.library-filters>div { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; padding:10px 0 20px; align-items:end; }
.library-filters label { display:grid; gap:8px; font-size:12px; font-weight:700; color:#465875; }
.library-result-head { display:flex; justify-content:space-between; gap:20px; align-items:center; margin:25px 0; }
.library-result-head h2 { font-size:23px; margin:0; font-weight:600; letter-spacing:-.025em; }
.library-result-head p { font-size:12px; color:#60708a; margin:0; }
.library-group { margin-bottom:32px; }
.library-group>header { display:flex; align-items:center; gap:12px; margin:0 0 12px; border-bottom:1px solid #d5deeb; padding-bottom:11px; }
.library-group>header h2 { font-size:16px; margin:0; font-weight:700; }
.library-group>header span { font:12px Consolas,monospace; color:#6178a3; }
.library-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.library-card { display:flex; flex-direction:column; background:#fff; border:1px solid #d4deec; border-top:3px solid #aebcda; padding:20px; min-width:0; }
.library-card:hover,.library-card:focus-within { border-color:#3e58a1; }
.library-card-top { display:flex; gap:12px; justify-content:space-between; flex-wrap:wrap; color:#5c7297; font-size:11px; }
.library-card-top code { font:11px Consolas,monospace; }
.library-card h3 { font-size:19px; line-height:1.26; letter-spacing:-.025em; margin:19px 0 10px; font-weight:600; }
.library-card h3 a { text-decoration:none; }
.library-card h3 a:hover { text-decoration:underline; text-underline-offset:4px; }
.library-card p { font-size:13px; color:#59697f; line-height:1.55; margin:0 0 18px; }
.library-card dl { margin:auto 0 18px; }
.library-card dt { font-size:10px; text-transform:uppercase; letter-spacing:.1em; color:#738198; margin-bottom:6px; }
.library-card dd { font-size:13px; line-height:1.5; margin:0; color:#324967; }
.library-card-bottom { display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:space-between; border-top:1px solid #e1e7ef; padding-top:8px; }
.library-card-bottom small { color:#657694; font-size:10px; }
.library-card-open { display:inline-flex; align-items:center; min-height:44px; gap:8px; color:#2d439c; font-size:12px; text-decoration:none; font-weight:700; }
.library-empty { padding:45px 25px; border:1px dashed #b5c6e0; text-align:center; background:white; }
.library-empty h2 { font-size:24px; }
.library-empty p { color:#596a82; }
.library-back { display:flex; align-items:center; gap:12px 22px; flex-wrap:wrap; margin:0 0 25px; }
.library-back a { display:inline-flex; align-items:center; min-height:44px; color:#2d439c; font-size:13px; text-decoration:none; }
.library-back .text-button { min-height:44px; }
.library-detail-head { background:#fff; border-top:4px solid #2d439c; padding:32px; }
.library-detail-head>p:not(.library-kicker) { font-size:18px; line-height:1.5; color:#506681; }
.library-detail-head dl { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:20px; padding-top:24px; border-top:1px solid #d6deeb; margin-top:28px; }
.library-detail-head dt { font-size:11px; color:#617797; text-transform:uppercase; letter-spacing:.06em; margin-bottom:8px; }
.library-detail-head dd { margin:0; font-size:14px; }
.library-detail-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.library-sheet { background:white; border:1px solid #d4ddec; padding:26px; margin-bottom:20px; min-width:0; }
.library-sheet h2 { font-size:20px; font-weight:600; letter-spacing:-.02em; margin:0 0 14px; }
.library-sheet h2:not(:first-child) { margin-top:30px; }
.library-sheet p,.library-sheet li { color:#455b78; font-size:14px; line-height:1.65; }
.library-sheet p.library-deliverable { font-size:22px; color:#233f76; line-height:1.4; }
.library-sheet ul { padding-left:19px; }
.library-sheet li { padding:3px 0; }
.library-sheet p.library-helper { color:#5d6e88; font-size:12px; }
.library-sheet small { color:#5d6e88; font-size:12px; line-height:1.5; }
.library-evidence>div { margin:15px 0; padding:16px; border-left:2px solid #a9bcdb; background:#f5f7fb; }
.library-evidence>div>code { display:block; margin-bottom:12px; font-size:13px; color:#294b86; }
.library-evidence>div>div { display:grid; gap:5px; padding:7px 0; }
.library-evidence a { min-height:44px; display:flex; align-items:center; gap:5px; font-size:14px; color:#254b90; }
.library-evidence span { font-size:12px; color:#4c6588; }
.library-related { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.library-related-card { border:1px solid #dce3ed; padding:18px; min-width:0; }
.library-related-card h3 { margin:3px 0 12px; font-size:16px; line-height:1.4; }
.library-related-card a { color:#284887; text-decoration:none; display:inline-block; min-height:44px; }
.library-related-card p { margin:0; font-size:12px; }
.library-related-card code { font-size:11px; color:#677b9b; }
.library-scenario { display:flex; gap:24px; justify-content:space-between; align-items:center; padding:23px 0; border-top:1px solid #dfe6ef; }
.library-scenario h3 { font-size:16px; }
.library-scenario .button { flex-shrink:0; max-width:250px; min-height:44px; text-decoration:none; }
.library-pill { display:inline-block; font-size:11px; font-weight:700; background:#edf1f9; color:#314d86; padding:6px 9px; }
.scope-library-link { display:inline-flex; align-items:center; min-height:44px; margin:0 0 10px 36px; font-size:13px; color:#2d439c; }
[data-library-localized] { overflow-wrap:anywhere; }
.language-option { min-height:44px; }
@media(max-width:1200px) { .library-grid {grid-template-columns:repeat(2,minmax(0,1fr))} .library-hero {grid-template-columns:1fr 140px;gap:22px} .library-scenario {align-items:flex-start;flex-direction:column} }
@media(max-width:760px) {
 .primary-nav { display:flex; margin:12px 0 3px; gap:0; border-top:1px solid #e0e7f1; }
 .primary-nav a { justify-content:center; flex:1; font-size:14px; border-left:0; border-bottom:3px solid transparent; padding:12px 8px; }
 .primary-nav a span:first-child { display:none; }
 .primary-nav a[aria-current=page] { border-bottom-color:#2d439c; }
 .library-side-note { display:none; }
 .sidebar { padding-top:12px; }
 .sidebar .brand { margin-bottom:5px; }
 .topbar { min-height:50px; height:auto; }
 .library-view {padding:25px 18px 38px}
 .library-hero { grid-template-columns:1fr; gap:23px; padding-bottom:20px; }
 .library-hero h1 {font-size:34px;max-width:550px}
 .library-metrics {display:flex;gap:30px; padding:0;border:0}
 .library-metrics>div {display:flex;align-items:center;gap:11px;flex:1}
 .library-metrics strong {font-size:29px}
 .library-metrics span {font-size:11px}
 .library-status-note {margin:16px 0 23px}
 .library-search input {font-size:16px;padding:15px 0}
 .library-topics {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 .library-topics button {padding:12px;font-size:13px;gap:8px}
 .library-filters>div {grid-template-columns:repeat(2,minmax(0,1fr))}
 .library-result-head {align-items:flex-start;flex-direction:column;gap:7px}
 .library-grid {grid-template-columns:repeat(2,minmax(0,1fr))}
 .library-detail-grid {grid-template-columns:1fr;gap:0}
 .library-detail-head {padding:23px}
 .library-detail-head h1 {font-size:32px}
 .library-detail-head dl {grid-template-columns:1fr;gap:18px}
 .library-sheet {padding:22px}
 .library-back {gap:4px 15px;margin-bottom:18px}
 .library-related {grid-template-columns:1fr}
 .library-scenario .button {max-width:100%}
 .library-view select {font-size:16px}
 .component-meta {flex-wrap:wrap}
 .component-body {min-width:0}
 .form-row input,.form-row textarea,.percent-input input {font-size:16px}
}
@media(max-width:500px) { .library-grid {grid-template-columns:1fr} .library-filters>div {grid-template-columns:1fr} .library-explore-head {align-items:flex-start;flex-direction:column;gap:8px} .library-explore-head select {width:100%} }
@media(prefers-reduced-motion:reduce) {html {scroll-behavior:auto} *,*::before,*::after {transition:none!important} }

.library-metrics strong {flex-shrink:0; white-space:nowrap}
@media(max-width:760px) { .library-view {padding-top:20px} .library-hero {gap:18px} .library-hero h1 {font-size:32px;margin-bottom:13px} .library-hero p:not(.library-kicker) {font-size:14px;line-height:1.55} .library-kicker {margin-bottom:12px} .library-status-note {padding:10px 13px;font-size:11px;margin:14px 0 18px} .library-search p {font-size:11px} }
