/* ═══════════════════════════════════════════════════════════════
   AI-K8sOps product page (pd-ko-): only what product.css lacks.
   Loaded after product.css. Every rule starts with a .pd-ko- class.
   ═══════════════════════════════════════════════════════════════ */

.pd-ko-push { margin-left: auto; }

/* ─── Hero: Issues console ──────────────────────────────────── */
.pd-ko-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 16px; padding: 10px 12px; border-radius: 10px; background: var(--off); }
.pd-ko-sum > div { display: flex; align-items: baseline; gap: 5px; }
.pd-ko-sum > div > b { font: 800 1.25rem/1 var(--fh); letter-spacing: -.02em; color: var(--muted-soft); }
.pd-ko-sum > div > span { font-size: .74rem; color: var(--muted); }
.pd-ko-sum-to > b { color: var(--navy) !important; }
.pd-ko-sum-to > span { font-weight: 600; color: var(--navy) !important; }
.pd-ko-sum-arr { color: var(--blue); }
.pd-ko-sum > p { display: inline-flex; align-items: center; gap: 5px; margin-left: auto; font-size: .72rem; font-weight: 600; color: var(--blue-deep); }
.pd-ko-issues { list-style: none; display: flex; flex-direction: column; margin: 0 16px; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.pd-ko-iss { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 26px 52px; gap: 10px; align-items: center; padding: 8px 10px; font-size: .76rem; color: var(--muted); }
.pd-ko-iss + .pd-ko-iss { border-top: 1px solid var(--border); }
.pd-ko-iss--top { background: color-mix(in srgb, var(--purple-pale) 60%, var(--white)); }
.pd-ko-sev { display: inline-flex; justify-content: center; width: 28px; padding: 1px 0; border-radius: var(--r-pill); font: 700 .64rem/1.5 var(--fb); }
.pd-ko-sev--p0 { background: #FEF3F2; color: #B42318; }
.pd-ko-sev--p1 { background: #FFEDE8; color: #C2410C; }
.pd-ko-sev--p3 { background: #EEF0F3; color: var(--mid); }
.pd-ko-wl { min-width: 0; }
.pd-ko-wl > b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 .8rem/1.35 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); }
.pd-ko-wl > small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; color: var(--muted); }
.pd-ko-ev { font-size: .68rem; white-space: nowrap; }
.pd-ko-ev > b { font: 700 .86rem var(--fh); color: var(--ink); }
.pd-ko-score { font: 800 .92rem var(--fh); color: var(--navy); text-align: right; }
.pd-ko-st { justify-self: end; padding: 1px 7px; border-radius: var(--r-pill); font-size: .64rem; font-weight: 600; }
.pd-ko-st--fire { background: #FEF3F2; color: #B42318; }
.pd-ko-st--open { background: var(--purple-pale); color: var(--blue-deep); }
.pd-ko-st--closed { background: #EEF0F3; color: var(--muted); }
.pd-ko-agent { display: flex; align-items: center; gap: 8px; margin: 0 16px; padding: 8px 10px; border-radius: 8px; background: var(--purple-pale); font-size: .78rem; line-height: 1.45; color: var(--ink); }
.pd-ko-agent > .pd-ico { color: var(--blue-deep); }
.pd-ko-agent > span:nth-child(2) { flex: 1; min-width: 0; }
.pd-ko-agent code { background: var(--white); white-space: nowrap; }
.pd-ko-live { font-size: .7rem; font-weight: 600; color: var(--blue-deep); white-space: nowrap; }
.pd-ko-live::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 25%, transparent); }

/* ─── Topology: pod dots on graph nodes ─────────────────────── */
.pd-ko-pods { display: inline-flex; gap: 3px; margin-right: 8px; vertical-align: -1px; }
.pd-ko-pods > i { width: 7px; height: 7px; border-radius: 50%; }
.pd-ko-pod--ok { background: color-mix(in srgb, #1F8A55 70%, var(--white)); }
.pd-ko-pod--bad { background: #F04438; }

/* ─── Troubleshoot: in-browser terminal ─────────────────────── */
.pd-ko-term { border: 1px solid var(--border-mid); border-radius: 12px; overflow: hidden; background: var(--white); }
.pd-ko-term-h { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; padding: 9px 12px; font-size: .72rem; color: var(--muted); }
.pd-ko-term-h > b { font: 600 .78rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); }
.pd-ko-ok { padding: 0 8px; border-radius: var(--r-pill); background: color-mix(in srgb, #1F8A55 12%, var(--white)); font-weight: 600; color: #146C43; }
.pd-ko-term-r { margin-left: auto; }
.pd-ko-term-r > b { color: #C2410C; }
.pd-ko-tabs { list-style: none; display: flex; gap: 18px; padding: 0 12px; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.pd-ko-tabs > li { margin-bottom: -1px; padding: 7px 0; border-bottom: 2px solid transparent; font-size: .74rem; color: var(--muted); }
.pd-ko-tabs > li.is-on { border-color: var(--blue); font-weight: 600; color: var(--ink); }
.pd-ko-shell { margin: 10px; padding: 10px 12px; border-radius: 8px; background: var(--navy-deep); color: rgba(255,255,255,.8); font: 500 .7rem/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; }
.pd-ko-ps { color: var(--purple-mid); }
.pd-ko-cur { display: inline-block; width: 7px; height: 12px; vertical-align: -2px; background: rgba(255,255,255,.8); }
.pd-ko-term-f { display: flex; align-items: center; gap: 6px; padding: 0 12px 10px; font-size: .7rem; color: var(--muted); }

/* ─── Signal: three cards ───────────────────────────────────── */
.pd-ko-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: stretch; }
.pd-ko-fold { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 12px; border-radius: 12px; background: var(--off); }
.pd-ko-fold .pd-chips { gap: 4px; }
.pd-ko-fold .pd-chips li { padding: 2px 8px; border: 1px solid var(--border-mid); background: var(--white); font-size: .7rem; }
.pd-ko-fold-arr { color: var(--blue); }
.pd-ko-fold > p { max-width: 92px; padding: 8px 10px; border: 2px solid var(--blue-deep); border-radius: 10px; background: var(--white); text-align: center; box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 14%, transparent); }
.pd-ko-fold > p > b { display: block; font: 800 .95rem var(--fh); color: var(--navy); }
.pd-ko-fold > p > span { display: block; margin-top: 2px; font-size: .64rem; line-height: 1.3; color: var(--muted); }
.pd-ko-chart { padding: 12px; border-radius: 12px; background: var(--off); }
.pd-ko-chart-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; font-size: .72rem; color: var(--muted); }
.pd-ko-chart-top code { background: var(--white); }
.pd-ko-chip { padding: 1px 8px; border: 1px solid var(--border-mid); border-radius: var(--r-pill); background: var(--white); font-size: .66rem; font-weight: 600; color: var(--navy); }
.pd-ko-plot { position: relative; height: 92px; margin-top: 10px; }
.pd-ko-plot > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pd-ko-band { fill: color-mix(in srgb, var(--blue) 13%, transparent); }
.pd-ko-win { fill: color-mix(in srgb, #F04438 8%, transparent); }
.pd-ko-grid { stroke: var(--border-mid); stroke-width: 1; vector-effect: non-scaling-stroke; }
.pd-ko-vline { stroke: #F04438; stroke-width: 1.25; stroke-dasharray: 3 3; vector-effect: non-scaling-stroke; }
.pd-ko-line { fill: none; stroke: var(--navy); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.pd-ko-mark { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #F04438; box-shadow: 0 0 0 2px var(--off); }
.pd-ko-flag { position: absolute; top: 2px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 7px; border: 1px solid #FECDCA; border-radius: 6px; background: var(--white); font-size: .66rem; font-weight: 600; white-space: nowrap; color: #B42318; }
.pd-ko-flag .pd-ico svg { width: 11px; height: 11px; }
.pd-ko-axis { display: flex; justify-content: space-between; margin-top: 6px; font: 500 .64rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.pd-ko-engines { list-style: none; display: flex; flex-direction: column; }
.pd-ko-engines > li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 10px; padding: 7px 0; font-size: .76rem; line-height: 1.4; color: var(--muted); }
.pd-ko-engines > li + li { border-top: 1px solid var(--border); }
.pd-ko-engines > li > b { font: 600 .74rem/1.55 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--navy); }
.pd-ko-swap { display: flex; flex-direction: column; gap: 8px; }
.pd-ko-note { display: flex; align-items: flex-start; gap: 7px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); font-size: .78rem; line-height: 1.45; color: var(--muted); }
.pd-ko-note > .pd-ico { margin-top: 1px; color: var(--blue); }
.pd-ko-scanners { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pd-ko-scanners > li { padding: 3px 8px; border: 1px solid var(--border-mid); border-radius: 6px; background: var(--white); font: 500 .7rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--navy); }
.pd-ko-finds { list-style: none; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 10px; }
.pd-ko-finds > li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 10px; }
.pd-ko-finds > li + li { border-top: 1px solid var(--border); }
.pd-ko-finds > li > span { min-width: 0; }
.pd-ko-finds b { display: block; font-size: .78rem; font-weight: 600; line-height: 1.4; color: var(--ink); }
.pd-ko-finds small { display: block; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 .66rem ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); }
.pd-ko-sv, .pd-ko-dv { flex: 0 0 auto; padding: 1px 8px; border-radius: var(--r-pill); font-size: .64rem; font-weight: 700; font-style: normal; }
.pd-ko-sv--crit { background: #FEF3F2; color: #B42318; }
.pd-ko-sv--high { background: #FFEDE8; color: #C2410C; }
.pd-ko-sv--med { background: #EEF0F3; color: var(--mid); }
.pd-ko-tally { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; font-size: .74rem; color: var(--muted); }
.pd-ko-tally > b { font-weight: 600; color: var(--ink); }
.pd-ko-tally > span { display: inline-flex; align-items: center; gap: 5px; }
.pd-ko-tally > span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; }
.pd-ko-t--crit::before { background: #F04438; } .pd-ko-t--high::before { background: #F79009; } .pd-ko-t--med::before { background: var(--muted-soft); }

/* ─── Upgrades ──────────────────────────────────────────────── */
.pd-ko-upg { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; }
.pd-ko-upg .pd-runs { margin: 0; }
.pd-ko-upg .pd-run { padding: 13px 10px; }
.pd-ko-ver { margin-left: auto; padding: 3px 10px; border: 1px solid var(--border-mid); border-radius: var(--r-pill); background: var(--off); font: 600 .74rem ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; color: var(--navy); }
.pd-ko-upg-h code { white-space: nowrap; }
.pd-ko-upg-side { display: flex; flex-direction: column; gap: 14px; }
.pd-ko-deps { list-style: none; display: flex; flex-direction: column; }
.pd-ko-deps > li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; padding: 8px 0; font-size: .74rem; color: var(--muted); }
.pd-ko-deps > li + li { border-top: 1px solid var(--border); }
.pd-ko-deps code { justify-self: start; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pd-ko-dv--block { background: color-mix(in srgb, var(--yellow) 30%, var(--white)); color: #8A6100; }
.pd-ko-dv--warn { background: #EEF0F3; color: var(--mid); }
.pd-ko-gate { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, var(--yellow) 16%, var(--white)); font-size: .78rem; font-weight: 600; color: #8A6100; }
.pd-ko-upg .pd-rows li { padding: 11px 0; }

/* ─── Guardrails: how a fix lands ───────────────────────────── */
.pd-ko-lands { margin-top: 10px; }
.pd-ko-lands li .pd-ico { color: var(--blue-deep); }

/* ─── Integrations: column weights for this page's groups ───── */
.pd-ko-intgs.pd-intgs { grid-template-columns: 1.25fr 1fr 1.25fr .9fr; }

/* ─── Where it runs (navy) ──────────────────────────────────── */
.pd-ko-runs .pd-q a { color: var(--purple-mid); text-decoration: underline; text-underline-offset: 2px; }
.pd-ko-models { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; padding: 14px 18px; border: 1px solid rgba(255,255,255,.1); border-radius: 14px; background: rgba(255,255,255,.04); }
.pd-ko-models > p { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--white); }
.pd-ko-models > p > .pd-ico, .pd-ko-models > span > .pd-ico { color: var(--purple-mid); }
.pd-ko-models > ul { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.pd-ko-models > ul > li { padding: 3px 9px; border-radius: var(--r-pill); background: rgba(56,162,255,.14); font-size: .74rem; font-weight: 500; color: rgba(255,255,255,.86); }
.pd-ko-models > span { display: inline-flex; align-items: center; gap: 6px; margin-left: auto; font-size: .78rem; color: rgba(255,255,255,.66); }

/* ─── Proof: case study + how it ran ───────────────────────── */
.pd-ko-case { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 0; padding: 0; }
.pd-ko-case-body { display: flex; flex-direction: column; gap: 14px; padding: 22px 24px; }
.pd-ko-case-body > h3 { font-family: var(--fh); font-weight: 700; font-size: 1.15rem; line-height: 1.3; color: var(--ink); text-wrap: balance; }
.pd-ko-case-body > .pd-link { align-self: flex-start; }
.pd-ko-case-how { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px; border-left: 1px solid var(--border-mid); background: var(--off); border-radius: 0 14px 14px 0; }
.pd-ko-case-how > ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.pd-ko-case-how > ul > li { display: flex; align-items: center; gap: 12px; }
.pd-ko-case-how b { font-size: .88rem; font-weight: 600; color: var(--ink); }
.pd-ko-case-how .pd-ico { background: var(--white); }

/* ─── Responsive ────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .pd-ko-trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pd-ko-trio > :last-child { grid-column: 1 / -1; }
  .pd-ko-intgs.pd-intgs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pd-ko-upg { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .pd-ko-push, .pd-ko-models > span { margin-left: 0; }
  .pd-ko-trio, .pd-ko-intgs.pd-intgs { grid-template-columns: 1fr; }
  .pd-ko-trio > :last-child { grid-column: auto; }
  .pd-ko-iss { grid-template-columns: 28px minmax(0, 1fr) auto 24px; gap: 8px; }
  .pd-ko-st { display: none; }
  .pd-ko-sum > p { margin-left: 0; width: 100%; }
  .pd-ko-case { grid-template-columns: 1fr; }
  .pd-ko-case-body, .pd-ko-case-how { padding: 20px; }
  .pd-ko-case-how { border-left: 0; border-top: 1px solid var(--border-mid); border-radius: 0 0 14px 14px; }
  .pd-ko-upg-h { flex-wrap: wrap; }
  .pd-ko-upg-h .pd-ko-ver { margin-left: 46px; }
  .pd-ko-shell { font-size: .64rem; }
  .pd-ko-case .pd-nums { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
  .pd-ko-case .pd-nums b { font-size: 1.3rem; }
  .pd-ko-deps > li { grid-template-columns: minmax(0, 1fr) auto; }
  .pd-ko-deps > li > span { grid-row: 2; grid-column: 1; }
  .pd-ko-deps > li > i { grid-row: 1 / span 2; grid-column: 2; }
}
