:root {
  --brand-name: 'Cyber Resilience';
  --brand-body-bg: #ffffff;
  --brand-body-text: #191919;
  --brand-body-text-muted: rgba(25,25,25,0.7);
  --brand-card-bg: #ffffff;
  --brand-card-border: #d4d4d3;
  --brand-header-bg: #142F55;
  --brand-header-text: #ffffff;
  --brand-header-text-muted: rgba(255,255,255,0.75);
  --brand-footer-bg: #001129;
  --brand-footer-text: rgba(255,255,255,0.75);
  --brand-divider: #d4d4d3;
  --brand-primary: #0076D6;
  --brand-primary-hover: #26A1FF;
  --brand-primary-on-dark: #03ECFF;
  --brand-link: #0076D6;
  --brand-link-hover: #26A1FF;
  --brand-success: #055B3E;
  --brand-success-bg: #CDF0EB;
  --brand-warning: #807C1E;
  --brand-warning-bg: #FFF83C;
  --brand-danger: #780808;
  --brand-danger-bg: #FCCFCF;
  --brand-info: #005F7C;
  --brand-info-bg: #CCDFE5;
  --brand-font-body: Satoshi, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --brand-font-headings: Satoshi, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --brand-font-mono: 'Courier New', monospace;
  --brand-body-size: 16px;
  --brand-h1-size: 34px;
  --brand-h1-weight: 700;
  --brand-h2-size: 28px;
  --brand-h2-weight: 700;
  --brand-radius-button: 3px;
  --brand-radius-card: 8px;
  --brand-radius-chip: 999px;
  --brand-nav-link-transform: uppercase;
  --brand-nav-link-spacing: 0.6px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: var(--brand-font-body);
       font-size: var(--brand-body-size); line-height: 1.6;
       color: var(--brand-body-text); background: var(--brand-body-bg); }
a { color: var(--brand-link); text-decoration: none; }
a:hover { color: var(--brand-link-hover); text-decoration: underline; }
header { background: var(--brand-header-bg); padding: 12px 24px;
         display: flex; align-items: center;
         justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.site-name { color: var(--brand-header-text); font-weight: 600; font-size: 15px;
             text-decoration: none; }
.site-name:hover { color: #fff; text-decoration: none; }
/* Barracuda fins logo + wordmark — same as canonical header. */
.site-brand { display: inline-flex; align-items: center; gap: 10px;
              color: var(--brand-header-text); text-decoration: none; }
.site-brand:hover { color: #fff; text-decoration: none; }
.site-brand .fins-logo { height: 22px; width: auto; display: block; }
.site-brand .wordmark { font-family: var(--brand-font-body);
                         font-weight: 700; font-size: 14px;
                         text-transform: uppercase; letter-spacing: 0.7px;
                         color: var(--brand-header-text); }
nav.main-nav { display: flex; gap: 20px; align-items: center; }
nav.main-nav a { color: var(--brand-header-text-muted); font-size: 14px;
                  text-transform: var(--brand-nav-link-transform);
                  letter-spacing: var(--brand-nav-link-spacing);
                  text-decoration: none; }
nav.main-nav a:hover { color: var(--brand-header-text); text-decoration: none; }
nav.main-nav a.active { color: var(--brand-header-text); }
.nav-item { position: relative; }
.nav-item > a::after { content: " ▾"; font-size: 10px; opacity: 0.6; }
.nav-dropdown { display: none; position: absolute; top: 100%; left: 0;
                padding-top: 10px; z-index: 100; min-width: 130px; }
.nav-dropdown-inner { background: #0f172a; border: 1px solid #334155; border-radius: 6px;
                      padding: 4px 0; }
.nav-dropdown-inner a { display: block; padding: 7px 14px; color: #94a3b8; font-size: 13px;
                        white-space: nowrap; }
.nav-dropdown-inner a:hover { color: #e2e8f0; background: #1e293b; text-decoration: none; }
.nav-item:hover .nav-dropdown { display: block; }
main { max-width: 760px; margin: 32px auto; padding: 0 20px 60px; }
.header-card { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
               padding: 24px; margin-bottom: 20px; }
.header-card h1 { font-size: 26px; font-weight: 700; color: #0f172a; margin-bottom: 12px; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.badge { padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 600;
         text-transform: uppercase; letter-spacing: 0.05em; }
.badge.critical { background: #fee2e2; color: #991b1b; }
.badge.high     { background: #ffedd5; color: #9a3412; }
.badge.medium   { background: #fef3c7; color: #92400e; }
.badge.low      { background: #d1fae5; color: #065f46; }
.badge.none     { background: #f1f5f9; color: #475569; }
.badge.kev                  { background: #fecaca; color: #7f1d1d; }
.badge.exploit-public       { background: #fde68a; color: #78350f; }
.badge.active-exploitation  { background: #ef4444; color: #fff; }
.badge.high-epss            { background: #fed7aa; color: #7c2d12; }
.badge.ransomware-linked    { background: #1e1b4b; color: #c7d2fe; }
.badge.updated              { background: #fef3c7; color: #92400e;
                              border: 1px solid #fbbf24; }
/* EU/UK peer chips (Item-#8 Q3 — peer chips alongside KEV). */
.badge.euvd-exploit         { background: #ddd6fe; color: #4338ca; }
.badge.ncsc-alert           { background: #dbeafe; color: #1e3a8a; }
/* EU & UK references section (Q8-G — unconditional). */
.eu-uk-refs { margin-top:18px; }
.eu-uk-refs h2 { font-size:16px; margin-bottom:8px; }
.eu-uk-refs .eu-ref-list { list-style:none; padding:0; margin:0;
                           display:flex; flex-direction:column; gap:6px; }
.eu-uk-refs .eu-ref-list li { padding:6px 10px; border:1px solid #e2e8f0;
                              border-radius:6px; background:#f8fafc;
                              font-size:13px; }
.eu-uk-refs .eu-ref-csirt { color:#475569; font-weight:600; }
.eu-uk-refs .eu-ref-list a { color:#1d4ed8; text-decoration:none; }
.eu-uk-refs .eu-ref-list a:hover { text-decoration:underline; }
.eu-uk-refs .eu-ref-empty { color:#64748b; font-size:13px; font-style:italic; }
[data-region="eu"] .eu-uk-refs { border-left: 3px solid #3b82f6;
                                 padding-left: 12px; }
/* CVE-detail tabs (Vulnerability / Related Threats / Affected Assets /
   Mitigating Controls) — replaces the long-scroll layout with focused
   per-tab panels. Tab content lives in <section id="X" class="cd-tab-panel">. */
.cd-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin: 24px 0 18px;
           border-bottom: 1px solid #e2e8f0; }
.cd-tab  { padding: 10px 18px; background: transparent; border: 1px solid transparent;
           border-bottom: none; border-radius: 6px 6px 0 0; cursor: pointer;
           font: inherit; font-size: 14px; font-weight: 500; color: #64748b;
           margin-bottom: -1px; transition: color 0.15s, background 0.15s; }
.cd-tab:hover { color: #0f172a; background: #f1f5f9; }
.cd-tab.is-active { color: #0f172a; background: #fff; border-color: #e2e8f0;
                    border-bottom-color: #fff; font-weight: 600; }
.cd-tab-panel { display: none; }
.cd-tab-panel.is-active { display: block; }
@media (max-width: 600px) {
  .cd-tabs   { gap: 2px; }
  .cd-tab    { padding: 8px 10px; font-size: 12px; }
}
/* RCE / LPE / DDoS — clickable badges linking to explainer pages. */
.badge.rce                  { background: #fecdd3; color: #881337;
                              text-decoration: none;
                              border-bottom: 1px dotted #be123c; }
.badge.lpe                  { background: #c7d2fe; color: #1e1b4b;
                              text-decoration: none;
                              border-bottom: 1px dotted #4338ca; }
.badge.ddos                 { background: #fed7aa; color: #7c2d12;
                              text-decoration: none;
                              border-bottom: 1px dotted #c2410c; }
a.badge.rce:hover           { background: #fda4af; color: #4c0519; }
a.badge.lpe:hover           { background: #a5b4fc; color: #0f172a; }
a.badge.ddos:hover          { background: #fdba74; color: #431407; }
.published { font-size: 13px; color: #64748b; margin-top: 4px; }
.timeline { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #e2e8f0; }
.timeline-events { display: flex; gap: 4px; align-items: stretch; }
.timeline-event { flex: 1; min-width: 0; padding: 6px 8px; border-radius: 6px;
                  background: #f8fafc; border-left: 3px solid #cbd5e1; }
.timeline-event.published-ev   { border-left-color: #475569; }
.timeline-event.modified-ev    { border-left-color: #0ea5e9; }
.timeline-event.kev-ev         { border-left-color: #7f1d1d; background: #fef2f2; }
.timeline-event.patch-ev       { border-left-color: #16a34a; background: #f0fdf4; }
.timeline-event .te-label { font-size: 10px; text-transform: uppercase;
                            letter-spacing: 0.05em; color: #64748b; }
.timeline-event .te-value { font-size: 12px; font-weight: 600; color: #1e293b;
                            font-variant-numeric: tabular-nums; margin-top: 2px; }
.timeline-event.missing { opacity: 0.4; }
.scores { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.score-box { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
             padding: 16px 20px; flex: 1; min-width: 180px; }
.cvss-ver-chip { display: inline-block; margin-left: 6px; padding: 1px 6px;
                 border-radius: 4px; font-size: 9px; font-weight: 700;
                 letter-spacing: 0.04em; vertical-align: middle;
                 text-transform: lowercase; }
.cvss-ver-chip.cvss-ver-v4    { background: #dbeafe; color: #1e3a8a; }
.cvss-ver-chip.cvss-ver-v3-1  { background: #f1f5f9; color: #475569; }
.cvss-ver-chip.cvss-ver-v3    { background: #f1f5f9; color: #475569; }
a.cvss-ver-chip { text-decoration: none; cursor: help; }
a.cvss-ver-chip:hover { filter: brightness(0.94); text-decoration: underline; }
/* Vulnerability-type badges (#2) — neutral slate, distinct from severity reds */
.badge.vt { background: #e2e8f0; color: #1e293b; text-decoration: none; }
.badge.vt:hover { background: #cbd5e1; }
.badge.vt.vt-rce, .badge.vt.vt-cmdi, .badge.vt.vt-deser { background: #fee2e2; color: #991b1b; }
.badge.vt.vt-sqli, .badge.vt.vt-xss, .badge.vt.vt-ssrf, .badge.vt.vt-xxe { background: #ffedd5; color: #9a3412; }
.score-label { display: block; font-size: 11px; text-transform: uppercase;
               letter-spacing: 0.08em; color: #64748b; margin-bottom: 4px; }
.score-value { font-size: 22px; font-weight: 700; color: #0f172a; }
.score-value.critical { color: #991b1b; }
.score-value.high     { color: #9a3412; }
.score-value.medium   { color: #92400e; }
.score-value.low      { color: #065f46; }
.score-sub { display: block; font-size: 12px; color: #64748b; margin-top: 2px;
             font-family: 'Courier New', monospace; word-break: break-all; }
.score-sub.plain { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
                   word-break: normal; }
section { background: #fff; border: 1px solid #e2e8f0; border-radius: 8px;
          padding: 20px 24px; margin-bottom: 16px; }
section h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
             color: #64748b; margin-bottom: 12px; border-bottom: 1px solid #f1f5f9;
             padding-bottom: 8px; }
.description { color: #374151; line-height: 1.7; }
.synthesis p { color: #374151; line-height: 1.7; margin-bottom: 10px; }
.synthesis p:last-child { margin-bottom: 0; }
.synthesis-unavailable { color: #9ca3af; font-style: italic; }
.ai-tag { display: inline-block; margin-left: 8px; padding: 1px 7px;
          font-size: 10px; font-weight: 700; letter-spacing: 0.06em;
          border-radius: 3px; background: #ede9fe; color: #5b21b6;
          vertical-align: middle; text-transform: uppercase; }
.ai-tag::before { content: "✦ "; font-size: 9px; }
.ai-tag { cursor: help; text-transform: none; }
.prov-note { font-size: 12px; color: #64748b; font-style: italic;
             margin: 2px 0 10px; }
details.security-summary > summary.ss-summary {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  font-weight: 600; color: #0f172a; margin: 0 0 10px;
  cursor: pointer; list-style: none; user-select: none;
}
details.security-summary > summary.ss-summary::-webkit-details-marker { display: none; }
details.security-summary > summary.ss-summary::before {
  content: "▸"; display: inline-block; width: 1.1em;
  color: #64748b; font-size: 11px;
}
details.security-summary[open] > summary.ss-summary::before { content: "▾"; }
details.desc-more { margin-top: 4px; }
details.desc-more > summary {
  display: inline-block; font-size: 13px; color: #1d4ed8;
  cursor: pointer; list-style: none; user-select: none;
}
details.desc-more > summary::-webkit-details-marker { display: none; }
details.desc-more > summary::before {
  content: "▸ "; font-size: 11px; color: #64748b;
}
details.desc-more[open] > summary::before { content: "▾ "; }
.desc-rest { margin-top: 8px; }
dl.details dt { font-weight: 600; color: #374151; margin-top: 12px; font-size: 13px; }
dl.details dt:first-child { margin-top: 0; }
dl.details dd { color: #6b7280; font-size: 14px; margin-left: 0; margin-top: 4px; }
.tag-list { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { padding: 2px 9px; border-radius: 10px; font-size: 12px; font-weight: 500; }
.tag.owasp { background: #ede9fe; color: #5b21b6; }
.tag.owasp-web { background: #e0f2fe; color: #075985; text-decoration: none;
                 transition: background 0.12s; }
a.tag.owasp-web:hover { background: #bae6fd; text-decoration: none; }
.owasp-web-section .tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.tag.atlas { background: #dbeafe; color: #1e40af; font-family: 'Courier New', monospace;
             font-size: 11px; }
.tag.cwe        { background: #f0fdf4; color: #166534;
                  text-decoration: none; transition: background 0.12s; }
a.tag.cwe:hover { background: #bbf7d0; text-decoration: none; }
.tag.enterprise { background: #ccfbf1; color: #0f766e; font-family: 'Courier New', monospace;
                  font-size: 11px; }
.technique-cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
.technique-card { border: 1px solid #e2e8f0; border-radius: 7px; padding: 12px 14px;
                  background: #f8fafc; }
.technique-card .tc-head { display: flex; align-items: baseline; gap: 8px;
                           flex-wrap: wrap; margin-bottom: 4px; }
.technique-card .tc-id { font-family: 'Courier New', monospace; font-size: 12px;
                         color: #0f766e; background: #ccfbf1; padding: 2px 7px;
                         border-radius: 4px; font-weight: 600; }
.technique-card .tc-name { font-weight: 600; color: #0f172a; font-size: 14px; }
.technique-card .tc-tactic { font-size: 11px; color: #64748b;
                             text-transform: uppercase; letter-spacing: 0.05em; }
.technique-card .tc-desc { font-size: 13px; color: #374151; margin-top: 4px;
                           line-height: 1.5; }
.technique-card .tc-link { font-size: 12px; margin-top: 4px; }
.technique-card details { margin-top: 6px; font-size: 12px; }
.technique-card details summary { cursor: pointer; color: #64748b;
                                  user-select: none; }
.technique-card details summary:hover { color: #0f172a; }
.technique-card details > p { margin-top: 6px; color: #374151; line-height: 1.55;
                              font-style: italic; }
.mc-intro { font-size: 13px; color: #475569; margin: 0 0 14px; line-height: 1.55; }
.mc-cards { display: grid; grid-template-columns: 1fr; gap: 12px; }
.crx-wrap { margin-bottom: 18px; }
.crx-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.crx-lane { border: 1px solid #e2e8f0; border-radius: 8px; padding: 12px 14px;
            border-top: 3px solid #cbd5e1; background: #fff; }
.crx-prevent { border-top-color: #16a34a; }
.crx-detect { border-top-color: #1d4ed8; }
.crx-harden { border-top-color: #c2410c; }
.crx-validate { border-top-color: #7e22ce; }
.crx-h { font-size: 12px; font-weight: 700; text-transform: uppercase;
         letter-spacing: 0.04em; color: #0f172a; }
.crx-desc { font-size: 11px; color: #64748b; margin: 2px 0 8px; line-height: 1.4; }
.crx-list { list-style: none; padding: 0; margin: 0; font-size: 12px; line-height: 1.55; }
.crx-list li { padding: 2px 0; }
.crx-list code { font-size: 11px; }
.crx-list a { color: #1d4ed8; text-decoration: none; }
.crx-empty { color: #94a3b8; font-size: 12px; }
@media (max-width: 760px) { .crx-grid { grid-template-columns: repeat(2, 1fr); } }
.mc-card { border: 1px solid #e2e8f0; border-radius: 7px; padding: 12px 14px;
           background: #fff; }
.mc-card.cov-good    { border-left: 3px solid #16a34a; }
.mc-card.cov-partial { border-left: 3px solid #ca8a04; }
.mc-card.cov-minimal { border-left: 3px solid #94a3b8; }
.mc-card-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.mc-card-link { display: inline-flex; align-items: baseline; gap: 8px;
                flex-wrap: wrap; text-decoration: none; color: inherit; }
.mc-card-link:hover .mc-card-id { background: #dbeafe; color: #1e3a8a; }
.mc-card-link:hover .mc-card-title { color: #1d4ed8; text-decoration: underline; }
.mc-card-id { font-family: 'Courier New', monospace; font-size: 12px;
              padding: 2px 6px; border-radius: 4px; background: #f1f5f9;
              color: #0f172a; font-weight: 700; transition: background 0.12s; }
.mc-card-title { font-weight: 600; color: #0f172a; font-size: 14px; }
.mc-coverage { margin-left: auto; padding: 2px 8px; border-radius: 999px;
               font-size: 11px; font-weight: 600; text-transform: uppercase;
               letter-spacing: 0.04em; }
.mc-coverage.cov-good    { background: #dcfce7; color: #166534; }
.mc-coverage.cov-partial { background: #fef9c3; color: #854d0e; }
.mc-coverage.cov-minimal { background: #f1f5f9; color: #475569; }
.mc-badges { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; }
.mc-badge { font-size: 11px; font-weight: 600; padding: 2px 8px;
            border-radius: 4px; text-transform: uppercase;
            letter-spacing: 0.04em; }
.mc-badge.lc-prevent { background: #dbeafe; color: #1e3a8a; }
.mc-badge.lc-detect  { background: #ede9fe; color: #5b21b6; }
.mc-badge.lc-respond { background: #fed7aa; color: #9a3412; }
.mc-badge.lc-recover { background: #ccfbf1; color: #0f766e; }
.mc-card-rat { margin: 6px 0 0; color: #374151; font-size: 13px;
               line-height: 1.55; font-style: italic; }
.mc-fallback-note { color: #475569; font-size: 13px; margin: 0 0 12px;
                     line-height: 1.5; }
.mc-cwe-refs { margin: 6px 0 4px; font-size: 12px; color: #64748b; }
.mc-cwe-ref { display: inline-block; font-family: 'Courier New', monospace;
              font-size: 11px; padding: 1px 6px; margin: 0 2px;
              background: #f0fdf4; color: #166534; border-radius: 3px;
              text-decoration: none; }
.mc-cwe-ref:hover { background: #bbf7d0; text-decoration: none; }
@media (min-width: 740px) { .mc-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .mc-cards { grid-template-columns: repeat(3, 1fr); } }
/* HH1 Hardening callouts (CVE→CWE→STIG derivation) */
.hc-section { margin-top: 20px; padding-top: 14px; border-top: 1px dashed #cbd5e1; }
.hc-note { font-size: 12px; color: #475569; margin: 4px 0 10px 0; }
.hc-block { border: 1px solid #e2e8f0; border-radius: 6px; padding: 8px 12px;
            margin: 6px 0; background: #f8fafc; }
.hc-block[open] { background: #fff; }
.hc-block > summary { cursor: pointer; font-size: 13px; color: #0f172a;
                      list-style: none; }
.hc-block > summary::-webkit-details-marker { display: none; }
.hc-block > summary::before { content: "▸ "; font-size: 10px; color: #64748b; }
.hc-block[open] > summary::before { content: "▾ "; }
.hc-count { color: #64748b; font-weight: 400; font-size: 12px; }
.hc-list { list-style: none; padding: 8px 0 0 0; margin: 0; }
.hc-list li { font-size: 12px; color: #334155; padding: 3px 0; }
.hc-rid { display: inline-block; font-family: ui-monospace, monospace;
          background: #eef2ff; color: #3730a3; padding: 1px 6px;
          border-radius: 3px; margin-right: 6px; font-size: 11px; }
.hc-via { color: #94a3b8; font-size: 11px; }
.affected-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
                     gap: 8px; }
.product-group { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 6px;
                 padding: 8px 12px; }
.product-group .pg-vendor  { font-size: 11px; color: #64748b;
                             text-transform: uppercase; letter-spacing: 0.05em; }
.product-group .pg-product { font-weight: 600; color: #0f172a; font-size: 13px;
                             margin-top: 2px; }
.product-group .pg-versions { font-size: 12px; color: #374151; margin-top: 4px;
                              font-family: 'Courier New', monospace; word-break: break-word; }
.product-rollup { font-size: 12px; color: #64748b; margin-top: 6px;
                  font-style: italic; }
.product-group.pg-inferred { border-style: dashed; background: #fefce8; }
.product-group.pg-inferred .pg-versions { font-family: inherit;
                                          font-style: italic; color: #78350f; }
.actor-cards { display: grid; grid-template-columns: 1fr; gap: 10px; }
.actor-card { border: 1px solid #e2e8f0; border-radius: 7px; padding: 12px 14px;
              background: #fef3c7; }
.actor-card .ac-name { font-weight: 700; color: #1f2937; font-size: 15px; }
.actor-card .ac-name a { color: #92400e; }
.actor-card .ac-alias { font-size: 12px; color: #78350f; margin-left: 8px;
                        font-style: italic; }
.actor-card .ac-evidence { font-size: 13px; color: #374151; margin-top: 6px;
                           line-height: 1.5; border-left: 3px solid #fbbf24;
                           padding-left: 10px; }
ul.refs { list-style: none; padding: 0; }
ul.refs li { padding: 8px 0; border-bottom: 1px solid #f8f9fa; }
ul.refs li:last-child { border-bottom: none; }
ul.refs .ref-url { font-size: 13px; word-break: break-all; }
ul.refs .ref-tags { font-size: 11px; color: #94a3b8; margin-top: 2px; }
footer { text-align: center; font-size: 12px; color: #94a3b8; padding: 20px;
         border-top: 1px solid #e2e8f0; margin-top: 8px; }
footer a { color: #64748b; }
.sign-in-link { color: #94a3b8; font-size: 13px; border: 1px solid #334155;
                border-radius: 5px; padding: 4px 12px; }
.sign-in-link:hover { color: #e2e8f0; border-color: #64748b; text-decoration: none; }

/* NAV-CSS-START (synced from generate_static_pages.py — do not edit here
   alone; tests/test_nav_css_parity.py compares the two) */
/* Hamburger button — hidden on desktop, shown at <=768px */
.nav-hamburger { display: none; background: transparent; border: 0; color: #e2e8f0;
                 font-size: 22px; line-height: 1; padding: 8px 12px; cursor: pointer;
                 border-radius: 6px; min-height: 44px; min-width: 44px; }
.nav-hamburger:hover { background: #334155; }
.nav-collapse { display: grid; grid-template-columns: auto 1fr auto;
                align-items: center; gap: 20px; flex: 1; }
/* Nav-bar ID-dispatch search */
.nav-search { display: flex; align-items: center; gap: 6px; position: relative;
              flex-shrink: 0; justify-self: center; }
.nav-search input { padding: 6px 10px; border: 1px solid #334155;
                    background: #0f172a; color: #e2e8f0;
                    border-radius: 6px; font-size: 13px; width: 220px;
                    max-width: 100%; font-family: inherit; }
.nav-search input:focus { outline: none; border-color: #64748b; }
.nav-search input::placeholder { color: #64748b; font-size: 12px; }
.nav-search button { padding: 6px 10px; border: 1px solid #334155;
                     background: #0f172a; color: #94a3b8;
                     border-radius: 6px; cursor: pointer; font-size: 13px;
                     font-family: inherit; }
.nav-search button:hover { color: #e2e8f0; border-color: #64748b; }
.nav-search-msg { position: absolute; top: calc(100% + 4px); right: 0;
                  background: #fee2e2; color: #7f1d1d;
                  padding: 6px 10px; font-size: 12px;
                  border-radius: 6px; display: none;
                  white-space: nowrap; z-index: 100;
                  box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.nav-search.has-msg .nav-search-msg { display: block; }
/* Generic type-ahead widget styles (assets/js/posture_typeahead.js).
   Any consumer can use .posture-typeahead-list for item styling;
   add their own positioning class on the same element. */
.posture-typeahead-list { margin: 0; padding: 4px 0; list-style: none;
                          background: #0f172a; color: #e2e8f0;
                          border: 1px solid #334155; border-radius: 6px;
                          font-size: 13px;
                          box-shadow: 0 4px 12px rgba(0,0,0,0.35);
                          max-height: 320px; overflow-y: auto; }
.posture-typeahead-list li { padding: 6px 12px; cursor: pointer;
                              display: flex; justify-content: space-between;
                              gap: 12px; align-items: baseline; }
.posture-typeahead-list li:hover,
.posture-typeahead-list li.is-active { background: #1e293b; }
.posture-typeahead-list .pt-name { color: #e2e8f0; }
.posture-typeahead-list .pt-id   { color: #64748b; font-size: 11px;
                                    font-family: ui-monospace, monospace; }
/* S2: "Did you mean:" header above fuzzy matches. Not selectable;
   filtered out of keyboard nav by .querySelectorAll('li[data-id]'). */
.posture-typeahead-list .pt-fuzzy-hdr { padding: 4px 12px; cursor: default;
                                        color: #94a3b8; font-size: 11px;
                                        text-transform: uppercase;
                                        letter-spacing: 0.5px;
                                        background: transparent !important; }
.posture-typeahead-list .pt-fuzzy .pt-name { color: #cbd5e1; }
/* Nav-search-specific positioning (S1) — the widget sits below the
   nav-bar input, right-aligned. Other consumers use their own layout. */
.nav-search-sugg { position: absolute; top: calc(100% + 4px); right: 0;
                   min-width: 220px; max-width: 360px; z-index: 100; }
/* Region focus (Item-#8 Phase 1b + E6 ternary US/EU/APAC).
   Honest framing: content is shown either way; the segmented control
   sets expansion + emphasis. Default is US; auto-flips to EU or APAC
   when navigator reports a matching locale; user can click any segment
   to override; ?region= URL param wins on first paint. */
.region-toggle { display: inline-flex; align-items: center; gap: 0;
                 padding: 2px; border: 1px solid #334155;
                 background: #0f172a; border-radius: 999px;
                 flex-shrink: 0; font-family: inherit; }
.rt-seg { padding: 4px 10px; font-size: 12px; background: transparent;
          color: #cbd5e1; border: 0; border-radius: 999px;
          cursor: pointer; font-family: inherit; white-space: nowrap;
          transition: background 0.18s, color 0.18s; }
.rt-seg:hover { color: #e2e8f0; }
.rt-seg.is-active { background: #10b981; color: #fff; }
/* Industry preference (sector) — the 3rd axis; a MULTI-select checkbox picker
   (26 values) so MSPs can pick every client sector. Same dark header theme. */
.industry-pick { position: relative; display: inline-block; margin-left: 6px; flex-shrink: 0; }
.ipk-btn { font: inherit; font-size: 12px; color: #cbd5e1; background: #0f172a;
           border: 1px solid #334155; border-radius: 999px; padding: 4px 12px;
           cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.ipk-btn:hover { border-color: #475569; }
.ipk-count { color: #10b981; font-weight: 700; }
.ipk-caret { font-size: 9px; opacity: .7; }
.ipk-menu { display: none; position: absolute; top: calc(100% + 4px); right: 0; z-index: 60;
            background: #0f172a; border: 1px solid #334155; border-radius: 10px; padding: 8px;
            max-height: 320px; overflow-y: auto; min-width: 240px;
            box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.industry-pick.is-open .ipk-menu { display: block; }
.ipk-opt { display: flex; align-items: center; gap: 7px; padding: 4px 6px; font-size: 12px;
           color: #cbd5e1; cursor: pointer; border-radius: 6px; white-space: nowrap; }
.ipk-opt:hover { background: #1e293b; }
.ipk-opt input { accent-color: #10b981; }
/* Your-lane focus (PLAN_B §3) — same pill UX as the region toggle; sets the
   audience lane that tailors the "what this means for you" guidance. */
.lane-toggle { display: inline-flex; align-items: center; gap: 0;
               padding: 2px; border: 1px solid #334155;
               background: #0f172a; border-radius: 999px;
               flex-shrink: 0; font-family: inherit; margin-left: 6px; }
.lt-seg { padding: 4px 10px; font-size: 12px; background: transparent;
          color: #cbd5e1; border: 0; border-radius: 999px;
          cursor: pointer; font-family: inherit; white-space: nowrap;
          transition: background 0.18s, color 0.18s; }
.lt-seg:hover { color: #e2e8f0; }
.lt-seg.is-active { background: #6366f1; color: #fff; }
/* NAV-CSS-END */
[data-region="us"] .eu-only { display: none !important; }
[data-region="eu"] .us-only { display: none !important; }
/* Control-framework toggle (#10/#11): NIST 800-53 / CSF 2.0 / ISO 27002. JS
   defaults the active tab by region and lets the reader switch. */
.ctl-fw-toggle { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 12px; }
.ctl-fw-btn { font: inherit; font-size: 12px; font-weight: 600; cursor: pointer;
    background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; border-radius: 999px;
    padding: 4px 12px; }
.ctl-fw-btn:hover { border-color: #94a3b8; }
.ctl-fw-btn.active { background: #1e293b; color: #fff; border-color: #1e293b; }
.ctl-fw-panels .ctl-fw { display: none; }
.ctl-fw-panels .ctl-fw.active { display: block; }
/* #1 header tagline */
.cve-tagline { font-size: 14.5px; color: #334155; margin: 2px 0 10px; line-height: 1.5; }
.cve-tagline .tl-type { display: inline-block; font-size: 11px; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.04em; background: #fee2e2; color: #991b1b;
    padding: 2px 8px; border-radius: 5px; text-decoration: none; vertical-align: middle; }
.cve-tagline .tl-type:hover { background: #fecaca; }
.cve-tagline .tl-in { color: #94a3b8; font-size: 13px; }
.cve-tagline .tl-prod { font-weight: 600; color: #0f172a; }
.cve-tagline .tl-ver { color: #64748b; font-variant-numeric: tabular-nums; }
/* #6 interactive CVSS vector */
.cvss-vector { margin-top: 6px; }
.cvss-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.cvss-chip { font: inherit; cursor: pointer; background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 5px; padding: 2px 6px; font-size: 11.5px; display: inline-flex; gap: 3px;
    line-height: 1.4; }
.cvss-chip:hover, .cvss-chip.active { border-color: #1d4ed8; background: #eff6ff; }
.cvss-chip-k { font-weight: 700; color: #1e293b; }
.cvss-chip-v { color: #64748b; }
.cvss-chip-raw { cursor: default; }
.cvss-expl { font-size: 12.5px; color: #334155; margin-top: 6px; min-height: 1.2em; }
.cvss-expl .cvss-expl-hint { color: #94a3b8; }
.cvss-expl.shown { color: #0f172a; font-weight: 600; }
.cvss-rawwrap { margin-top: 4px; font-size: 11px; }
.cvss-rawwrap summary { color: #94a3b8; cursor: pointer; }
.cvss-rawwrap .cvss-raw { font-family: "Courier New", monospace; word-break: break-all;
    color: #64748b; display: block; margin-top: 3px; }

@media (max-width: 768px) {
    header { padding: 10px 16px; flex-wrap: wrap; }
    .nav-hamburger { display: inline-flex; align-items: center; justify-content: center;
                     order: 2; margin-left: auto; }
    .nav-collapse { display: none; flex-basis: 100%; flex-direction: column;
                    align-items: stretch; gap: 0; padding-top: 8px; margin-top: 8px;
                    border-top: 1px solid #334155; order: 3; }
    header.nav-open .nav-collapse { display: flex; }
    nav.main-nav { flex-direction: column; gap: 0; align-items: stretch; }
    nav.main-nav > a,
    nav.main-nav .nav-item > a { padding: 12px 4px; min-height: 44px;
                                 display: flex; align-items: center; }
    .nav-item > a::after { margin-left: auto; }
    .nav-item .nav-dropdown { display: none; position: static; padding-top: 0; }
    .nav-item.open .nav-dropdown { display: block; }
    .nav-dropdown-inner { background: #0b1320; border: 0; border-radius: 0;
                          padding: 0 0 0 18px; }
    .nav-dropdown-inner a { padding: 10px 4px; min-height: 44px; }
    .sign-in-link { display: inline-block; margin-top: 12px; padding: 10px 14px;
                    text-align: center; }
}

/* Constrained band (769–1100px): brand wraps to two lines + tighter menu so
   the nav stays on one aligned row (mirrors generate_static_pages.py). */
@media (min-width: 769px) and (max-width: 1100px) {
    .site-brand { flex-shrink: 0; }
    .site-brand .wordmark { white-space: normal; line-height: 1.05; max-width: 7em; }
    nav.main-nav { gap: 12px; }
    nav.main-nav a { font-size: 13px; white-space: nowrap; }
    .nav-collapse { gap: 12px; }
    .nav-search input { width: 150px; }
}

@media (max-width: 540px) {
    .scores { flex-direction: column; }
    main { padding: 0 12px 40px; }
}

/* Phase 2: layout & typography for tablet/phone (≤768px) ─────────────────── */
@media (max-width: 768px) {
    main { margin: 16px auto; padding: 0 12px 40px; }
    .header-card { padding: 18px 18px; }
    .header-card h1 { font-size: 22px; }
    section { padding: 16px 18px; }
    section h2 { font-size: 12px; margin-bottom: 10px; }
    .scores { gap: 10px; }
    .score-box { padding: 12px 14px; min-width: 0; }
    .score-value { font-size: 20px; }
}

/* Phase 2: phone-only refinements (≤480px) ───────────────────────────────── */
@media (max-width: 480px) {
    .header-card { padding: 16px 16px; }
    .header-card h1 { font-size: 19px; }
    .badges { gap: 6px; }
    .badge { font-size: 11px; padding: 2px 8px; }
    /* Timeline: 2 columns × 2 rows on phone */
    .timeline-events { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
    .timeline-event { padding: 5px 8px; }
    /* Score row stacks (≤540px rule already triggers earlier; this tightens it) */
    .scores { flex-direction: column; gap: 8px; }
    .score-value { font-size: 19px; }
    /* Cards inside CVE pages */
    .technique-card { padding: 10px 12px; }
    .technique-card .tc-name { font-size: 13px; }
    .technique-card .tc-desc { font-size: 12px; }
    .product-group { padding: 7px 10px; }
    .product-group .pg-product { font-size: 12px; }
    .actor-card { padding: 10px 12px; }
    .actor-card .ac-name { font-size: 14px; }
    .actor-card .ac-evidence { font-size: 12px; }
    /* References list */
    ul.refs li { padding: 6px 0; }
    ul.refs .ref-url { font-size: 12px; }
}

/* ── New CVE narrative + playbook + threat-defense accordion ─────────── */
.cve-narrative { background:#f8fafc; border-left:4px solid #2563eb;
                 padding:14px 18px; border-radius:6px; margin-top:20px; }
.cve-narrative h2 { margin-top:0; font-size:16px; color:#1e3a8a; }
.cve-narrative p { margin:6px 0; line-height:1.6; color:#0f172a; font-size:15px; }
.cve-narrative em { font-style:normal; color:#1e3a8a; }
.playbook-section { margin-top:18px; }
.playbook-glance { background:#fefce8; border-left:4px solid #ca8a04;
                   padding:12px 16px; border-radius:6px;
                   line-height:1.6; color:#0f172a; font-size:14px; }
.playbook-glance strong { color:#854d0e; }
.playbook-glance em { font-style:normal; font-weight:600; color:#1e3a8a; }
.threat-defense { margin-top:18px; border:1px solid #e2e8f0;
                  border-radius:8px; padding:0; background:#ffffff; }
.threat-defense > summary { padding:14px 18px; font-weight:600;
                            font-size:15px; color:#0f172a; cursor:pointer;
                            list-style:none; }
.threat-defense > summary::-webkit-details-marker { display:none; }
.threat-defense > summary::before { content:"\25B6  "; font-size:11px;
                                    color:#64748b; margin-right:4px; }
.threat-defense[open] > summary::before { content:"\25BC  "; }
.threat-defense > section { padding:0 18px 8px; border-top:1px solid #f1f5f9; }
.threat-defense > section:first-of-type { border-top:none; }
.td-block-title { margin-top:14px; margin-bottom:8px; font-size:14px;
                  color:#475569; text-transform:uppercase; letter-spacing:.5px; }
.td-atlas { padding:0 18px 16px; }
/* "CVEs like this one" (similarity sidebar) — initial styles; rendered
   block is conditionally emitted by render_html when cve_similarity has
   a precomputed neighbour list. */
.similar-cves { margin-top:18px; }
.similar-cves h2 { font-size:16px; margin-bottom:8px; }
.similar-cves .sc-list { display:grid; gap:8px; }
.similar-cves .sc-row { display:flex; gap:10px; padding:8px 12px;
                        border:1px solid #e2e8f0; border-radius:6px;
                        align-items:center; }
.similar-cves .sc-row a { color:#1d4ed8; text-decoration:none;
                          font-weight:600; }
.similar-cves .sc-shared { font-size:12px; color:#64748b; flex:1; }
.similar-cves .sc-kev { font-size:11px; padding:2px 8px; border-radius:10px;
                        background:#fecaca; color:#7f1d1d; font-weight:600;
                        white-space:nowrap; }
