/* Readability and layout repairs shared by the app, Archive and Integrations.
   Palette accents, sharp geometry, view preference and animation stay intact. */
:root,html[data-pu-theme] { --pl-faint:var(--pl-muted); }
html[data-pu-theme="crt"] { --pl-muted:#78a179; }
html[data-pu-theme="cyber"] { --pl-high:#d56b88; }
html[data-pu-theme="codered"] { --pl-med:#ed6770; --pl-low:#ce6973; }
html[data-pu-theme="codeblue"] { --pl-low:#6b9fe0; }

.pl-caption,.pl-notice,.pu-notice,.pl-field,.pu-field,.pl-eyebrow,
.pl-unknown,.pu-stat-label,.pu-pager,.pl-patch-meta,.pl-patch-release-foot,
.pl-patches-section-label,.pu-snapshot-note,.pu-advisory-copy small,
.pu-disclosure>summary small,.pu-panel-heading>span { font-size:12px; line-height:1.6; }
/* The original bundle uses inline sizes for many labels and dates. */
.pl-content :is(div,span,p,a,button,th,td)[style*="font-size: 8px"],
.pl-content :is(div,span,p,a,button,th,td)[style*="font-size: 9px"],
.pl-content :is(div,span,p,a,button,th,td)[style*="font-size: 10px"],
.pl-content :is(div,span,p,a,button,th,td)[style*="font-size: 11px"] { font-size:12px!important; }
.pl-data-table,.pu-table { font-size:12px; }
.pl-data-table th,.pu-table th { font-size:12px; letter-spacing:.5px; }
.pl-footer { font-size:12px!important; line-height:1.6; }
.pl-nav { font-size:12px!important; letter-spacing:.7px!important; }

.pl-theme-button { min-height:44px; height:auto; padding:7px 10px; }
.pl-theme-button-copy,.pl-theme-active { font-size:11px; line-height:1.3; }
.pl-theme-menu { top:calc(100% + 7px); }
.pl-theme-menu-head,.pl-theme-menu-foot { font-size:11px; line-height:1.4; letter-spacing:.8px; }
.pl-theme-option { min-height:56px; }
.pl-theme-option-text strong,.pl-theme-option-text small { font-size:12px; line-height:1.4; letter-spacing:.25px; }
.pl-theme-option-text small { white-space:normal; }
.pl-theme-option:focus-visible,.pl-theme-button:focus-visible { outline:2px solid var(--pl-green); outline-offset:-3px; }
.pl-view-switch,.pl-view-indicator { font-size:12px; }
.pl-theme-wrap { min-width:0; }
.pl-ticker-tag { color:var(--pl-muted); }

/* Keep all ten CVE columns readable. Overflow belongs to this focusable region,
   never the page; wide desktops use their available space. */
.pu-cve-scroll { width:100%; max-width:100%; overflow-x:auto; overscroll-behavior-x:contain; }
.pu-cve-scroll:focus-visible { outline:2px solid var(--pl-green); outline-offset:-3px; }
.pu-cve-scroll>div { min-width:0; }
.pu-cve-index { table-layout:fixed; min-width:1440px; }
.pu-cve-index th,.pu-cve-index td { overflow-wrap:anywhere; vertical-align:top; }
.pu-cve-index th:nth-child(1),.pu-cve-index td:nth-child(1) { width:30px; padding-left:10px!important; padding-right:6px!important; }
.pu-cve-index th:nth-child(2),.pu-cve-index td:nth-child(2) { width:170px; }
.pu-cve-index th:nth-child(3),.pu-cve-index td:nth-child(3) { width:26%; min-width:220px; white-space:normal!important; overflow:visible!important; text-overflow:clip!important; }
.pu-cve-index th:nth-child(4),.pu-cve-index td:nth-child(4) { width:125px; }
.pu-cve-index th:nth-child(5),.pu-cve-index td:nth-child(5) { width:130px; }
.pu-cve-index th:nth-child(6),.pu-cve-index td:nth-child(6) { width:100px; }
.pu-cve-index th:nth-child(7),.pu-cve-index td:nth-child(7) { width:130px; white-space:normal!important; }
.pu-cve-index th:nth-child(8),.pu-cve-index td:nth-child(8) { width:120px; }
.pu-cve-index th:nth-child(9),.pu-cve-index td:nth-child(9) { width:110px; }
.pu-cve-index th:nth-child(10),.pu-cve-index td:nth-child(10) { width:90px; }
.pu-cve-index td[colspan] { width:auto; white-space:normal; }

.pu-search-empty { margin:20px; padding:24px; border:1px solid var(--pl-hair-hi); background:var(--pl-bg-alt); text-align:left; }
.pu-search-empty h3,.pu-search-empty strong { display:block; color:var(--pl-ink); font:700 15px/1.5 var(--pl-mono); margin:0 0 8px; }
.pu-search-empty p,.pu-search-empty>span { display:block; margin:0; color:var(--pl-ink-soft); font:13px/1.7 var(--pl-mono); }
.pu-search-page [role="status"] { line-height:1.6; }
.pu-search-page :is(button,input,select,a):focus-visible { outline:2px solid var(--pl-green); outline-offset:3px; }
.pu-search-filter-row,.pu-search-filter-group,.pu-search-chips button,.pu-search-pagination button { min-height:44px; }
.pu-search-result { display:block; }
.pu-search-result:hover,.pu-search-result:focus-visible { background:var(--pl-raised); }
.pu-search-result:focus-visible { outline-offset:-3px!important; }
.pu-search-pagination { flex-wrap:wrap; }
.pu-archive .reference-source { font-size:12px; color:var(--pl-muted); margin:3px 0 14px; }
.pu-archive .eyebrow { font-size:12px; }
.pu-archive .pu-shared-topbar { z-index:20!important; }

@media(max-width:800px) {
 .pl-theme-button { padding:7px; }
 .pl-theme-menu { position:fixed; top:82px; right:16px; width:min(320px,calc(100vw - 32px)); max-height:calc(100dvh - 98px); }
 .pu-search-empty { margin:14px; padding:20px; }
}
@media(max-width:900px) {
 .pu-search-layout { grid-template-columns:minmax(0,1fr)!important; }
}
@media(forced-colors:active) {
 .pu-cve-scroll:focus-visible,.pl-theme-option:focus-visible,.pl-theme-button:focus-visible { outline-color:Highlight; }
 .pu-search-empty { border-color:CanvasText; }
}
