/* Product pages (pages.py), on the site's own stylesheet (/site.css) and its console look. */
.p-main { padding-top: 40px; }
.p-art { max-width: 1000px !important; }
.p-crumbs { font-family: var(--console); font-size: 12.5px; color: var(--n-text-3); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.p-crumbs a { color: var(--n-text-2); text-decoration: none; }
.p-crumbs a:hover { color: var(--n-strong); text-decoration: underline; }
.site .p-h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.08; margin-top: 6px; overflow-wrap: anywhere; }
.p-lede { font-size: 17px; color: var(--d-ink-2); max-width: 46em; }
.p-lede a, .s-legal p a { color: var(--d-ink); }
.p-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 6px 0 4px; background: var(--n-line); border: 1px solid var(--n-line); }
.p-stat { background: var(--n-bg); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.p-stat b { font-family: var(--mono); font-size: 30px; line-height: 1.1; font-weight: 500; color: var(--d-ink); }
.p-stat span { font-size: 13px; color: var(--d-ink-2); }
.p-stat.crit b { color: var(--s-red); }
.p-stat.high b { color: var(--s-amber); }
.p-table { min-width: 640px; }
.p-table td { font-size: 14px; }
.p-cve { font-family: var(--mono); font-size: 13px; color: var(--d-ink) !important; font-weight: 500; white-space: nowrap; }
.p-title { display: block; color: var(--d-ink-2); margin-top: 2px; max-width: 46em; }
.p-sev { display: inline-block; min-width: 42px; text-align: center; font-family: var(--mono); font-size: 13px; padding: 1px 7px; border: 1px solid currentColor; font-weight: 500; }
.p-sev.critical { color: var(--s-red); }
.p-sev.high { color: var(--s-amber); }
.p-sev.medium { color: var(--med); }
.p-sev.low, .p-sev.none { color: var(--n-text-3); }
.p-kev { display: inline-block; border: 1px solid var(--s-red); color: var(--s-red); font-size: 12px; font-weight: 600; padding: 1px 7px; white-space: nowrap; }
.p-dim { color: var(--n-text-3); }
.p-fix { font-family: var(--mono); font-size: 13px; white-space: nowrap; color: var(--d-ink) !important; }
.p-src { display: block; font-family: var(--sans); font-size: 12px; color: var(--n-text-3); }
.p-note { font-size: 14px; }
.p-up td b { font-family: var(--mono); font-weight: 500; }
.p-fixed { list-style: none; padding: 0 !important; display: grid; gap: 0; border-top: 1px solid var(--n-line); }
.p-fixed li { padding: 8px 2px; border-bottom: 1px solid var(--n-line); font-size: 14px; color: var(--d-ink-2); }
.p-fixed .p-cve { margin-right: 8px; }
.p-fixed small { font-family: var(--mono); font-size: 12px; color: var(--n-text-3); white-space: nowrap; margin-left: 6px; }
.p-updated { font-size: 13px; color: var(--n-text-3) !important; margin-top: 18px; }
.p-versions { display: flex; flex-wrap: wrap; gap: 6px; }
.p-versions a { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border: 1px solid var(--n-line); text-decoration: none; color: var(--d-ink) !important; font-family: var(--mono); font-size: 13px; }
.p-versions a small { color: var(--n-text-3); font-size: 12px; }
.p-versions a:hover { border-color: var(--dawn); }
.p-products { list-style: none; padding: 0 !important; display: grid !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 !important;
  border-top: 1px solid var(--n-line); border-left: 1px solid var(--n-line); }
.p-products a { display: flex; flex-direction: column; gap: 2px; height: 100%; box-sizing: border-box; padding: 12px 14px; border-right: 1px solid var(--n-line); border-bottom: 1px solid var(--n-line); text-decoration: none; color: var(--d-ink); }
.p-products a:hover { background: var(--n-raise); box-shadow: inset 0 2px 0 var(--dawn); }
.p-products span { font-size: 13px; color: var(--d-ink-2); }
.p-products em { font-style: normal; color: var(--s-red); }
.p-cta { display: flex; gap: 24px; align-items: center; justify-content: space-between; margin: 26px 0 8px; padding: 20px 22px; border: 1px solid var(--n-line); border-top: 2px solid var(--dawn); background: var(--n-raise); }
.site .p-cta h2 { font-size: 22px; margin: 0 0 6px; color: var(--n-strong); }
.s-legal .p-cta p { color: var(--n-text-2); margin: 0; max-width: 40em; }
@media (max-width: 760px) {
  .p-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p-cta { flex-direction: column; align-items: flex-start; }
  /* Tables become one card per row: the first cell on top, the rest as labelled values beneath. */
  .p-table { min-width: 0; }
  .p-table thead { display: none; }
  .p-table tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; padding: 12px; border-bottom: 1px solid var(--d-line); }
  .p-table td { display: block; padding: 0; border: 0; }
  .p-table td:first-child { flex-basis: 100%; }
  .p-table td[data-label]:empty { display: none; }
  .p-table td[data-label]::before { content: attr(data-label); display: block; font-family: var(--console); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--n-text-3); margin-bottom: 2px; }
}
