/* ============================================================================================================
   Platform/trust page kit (shared by platform, platform-intelligence, platform-investigation, platform-remediation
   and trust; copied into each page file at build time). Background layers, product-UI illustration primitives,
   marquee. Navy/teal only; crimson only for risk. No amber or yellow anywhere.
   ============================================================================================================ */
/* H2 · Console (owner approved, 23 Nov 2026; rollout step 2): /platform/ uses the shared page system in system.css: the
   hero head and product stage, light (.light) and navy sections with the one card pattern, and the centered teal close.
   This file keeps only the product-drawing primitives and the hero drawing's layout. */

/* ------------------------------------------------------------ sections and layered backgrounds */
.sec { position: relative; padding: var(--section-y) 0; overflow: clip; isolation: isolate; }
.sec > .wrap { position: relative; z-index: 1; }

/* ------------------------------------------------------------ product UI primitives */
.ui { position: relative; background: linear-gradient(180deg, var(--navy-850), var(--navy-900)); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden;
  box-shadow: var(--e1); color: var(--ink-200); font: 400 var(--fs-sm)/1.4 var(--display); text-align: left; }
.ui-bar { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--navy-950) 55%, transparent); white-space: nowrap; }
.ui-bar .dots { display: flex; gap: 6px; margin-right: 4px; }
.ui-bar .dots i { width: 8px; height: 8px; border-radius: var(--r-full); background: var(--line); }
.ui-bar .t { font: 600 var(--fs-xs)/1 var(--display); color: var(--ink-50); }
.ui-bar .crumb { font: 400 var(--fs-xs)/1 var(--mono); color: var(--ink-400); overflow: hidden; text-overflow: ellipsis; }
.ui-bar .end { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.ui-body { padding: 14px; }
.ui-h { display: flex; align-items: baseline; gap: 10px; font: 600 var(--fs-sm)/1.2 var(--display); color: var(--ink-50); }
.ui-h span { font: 400 var(--fs-xs)/1 var(--display); color: var(--ink-400); }
.ui-split { display: grid; grid-template-columns: 150px minmax(0, 1fr); }
.ui-side { padding: 12px 8px; border-right: 1px solid var(--line); background: color-mix(in srgb, var(--navy-950) 35%, transparent); display: grid; gap: 2px; align-content: start; }
.ui-side span { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; font-size: var(--fs-xs); color: var(--ink-400); }
.ui-side span::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: currentColor; opacity: 0.35; }
.ui-side span.on { background: var(--teal-a12); color: var(--ink-50); }
.rows { display: grid; margin-top: 10px; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; background: color-mix(in srgb, var(--navy-950) 25%, transparent); min-width: 0; }
.row + .row { border-top: 1px solid var(--line); }
.row b { font-weight: 500; color: var(--ink-50); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.row .end { margin-left: auto; display: flex; gap: 8px; align-items: center; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px; border-radius: var(--r-xs); border: 1px solid var(--line); font: 500 var(--fs-xs)/1.2 var(--mono); letter-spacing: var(--tr-label); color: var(--ink-200); white-space: nowrap; }
.chip.ok { color: var(--teal-300); border-color: var(--teal-a40); background: var(--teal-a06); }
.chip.risk { color: var(--red-300); border-color: color-mix(in srgb, var(--red-500) 60%, transparent); background: color-mix(in srgb, var(--red-500) 12%, transparent); }
.btn-ui { display: inline-flex; align-items: center; padding: 5px 10px; border-radius: var(--r-sm); border: 1px solid var(--line-strong); font: 500 var(--fs-xs)/1 var(--display); color: var(--ink-50); white-space: nowrap; }
.btn-ui.pri { background: var(--teal-400); border-color: transparent; color: var(--navy-950); }
.sev { width: 8px; height: 8px; border-radius: var(--r-xs); flex: none; background: var(--ink-400); }
.sev.crit { background: var(--red-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--red-500) 25%, transparent); }
.sev.high { background: var(--red-400); }
.sev.ok { background: var(--teal-400); }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.tile { padding: 10px 11px; border: 1px solid var(--line); border-radius: var(--r-md); background: color-mix(in srgb, var(--navy-950) 30%, transparent); min-width: 0; }
.tile .l { display: block; font-size: var(--fs-xs); color: var(--ink-400); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile svg { display: block; width: 100%; height: 30px; margin: 8px 0 6px; overflow: visible; }
.spark { fill: none; stroke: var(--teal-400); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark.risk { stroke: var(--red-400); }

/* ------------------------------------------------------------ shared bits */
@media (max-width: 767px) {
  .ui-split { grid-template-columns: 1fr; }
  .ui-side { display: none; }
  .tiles { grid-template-columns: 1fr 1fr; }
}

/* PAGE 02 · Platform Overview. The hero is the shared split hero (.hero-duo in system.css, generalised from this page on
   24 Nov 2026): copy left, the product drawing right at 84%, the navy gradient, the masked grid and the glows. */
.hero-art.duo-art { --duo-zoom: .84; --duo-w: 784px; }
.hero-duo .ui-main { box-shadow: var(--e2), 0 0 0 1px var(--teal-a12), 0 30px 80px -30px var(--teal-a12); }
/* C7: the product view stays inside its stage at every width; the floating cards hang below the panel's tiles instead
   of covering them. */
.hero-art { position: relative; min-width: 0; padding: 10px 0 132px 28px; }
.ui-main .ui-body { padding: 14px 16px 16px; }
.ui-float { position: absolute; z-index: 2; box-shadow: var(--e1), 0 0 0 1px var(--teal-a12); }
.f-server { left: 0; bottom: 0; width: min(330px, 52%); }
.tele { display: grid; gap: 8px; padding: 12px 14px; }
.tele-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: var(--fs-xs); }
.tele-row svg { width: 100%; height: 22px; overflow: visible; }
.f-alert { right: 0; bottom: 16px; width: min(290px, 44%); background: linear-gradient(180deg, var(--navy-700), var(--navy-850)); }
.al-top { display: flex; align-items: center; gap: 8px; }
.al-top b { font-weight: 600; color: var(--ink-50); font-size: 13px; }
.al-m { margin-top: 6px; font: 400 var(--fs-xs)/1.4 var(--mono); color: var(--ink-400); }
.al-act { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }

/* The cards keep each "Explore … →" link on one line (it never wraps): four cards go two by two from 1024 to 1279 px (system.css: below 1024 px), the
   six capability cards two by three from 768 to 1023 px. */
@media (min-width: 1024px) and (max-width: 1279px) { #who-it-is-for .cards-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) and (max-width: 1023px) { #capabilities .cards-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------ responsive */
/* Narrower desktops: the panel drops its side menu so the action rows keep their full text. */
@media (max-width: 1279px) {
  .ui-main .ui-split { grid-template-columns: minmax(0, 1fr); }
  .ui-main .ui-side { display: none; }
}
@media (max-width: 1023px) { .hero-art { padding-left: 0; } }
/* Phones (C6, C8): the hero panel shows its three most serious actions, without the status tiles or floating cards;
   row text wraps instead of being cut. */
@media (max-width: 767px) {
  .hero-art { padding: 0; }
  .ui-float { display: none; }
  .ui-main .ui-bar .crumb { display: none; }
  .ui-main .row { align-items: flex-start; }
  .ui-main .row .sev { margin-top: 6px; }
  .ui-main .row b { white-space: normal; overflow: visible; }
  .ui-main .row:nth-child(n+4) { display: none; }
  .ui-main .tiles { display: none; }
  .ui-main .row .btn-ui { display: none; }
}

/* ------------------------------------------------------------ review 2: proof line (C13) */
@media (max-width: 479px) {   /* C14: one breadcrumb line; the current page truncates */
  .breadcrumbs li { flex: none; white-space: nowrap; }
  .breadcrumbs li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}

/* ---- Copy round, 25 Nov 2026 (owner: "i want the answers i chose...fix if it cut off"): the chosen labels in the
   product drawings wrap to a second line instead of being cut with an ellipsis, and tab rows wrap. Same fonts, colors
   and spacing; no text is shortened. ---- */
.ui-row > *, .ui-top .t, .ui-file, .ui-meta > *, .ui-tile .k, .ui-tile .ui-sub, .ui-row .ui-chip, .ui-body > .ui-chip,
.row b, .row .m, .d-tr b, .d-tr .m, .sg-log b, .rp-stats span, .rp-s, .i-ph .crumb, .ctx-feed li, .i-files li span,
.ev-list li > span:nth-child(2), .hit span, .ui-bar .crumb, .tile .l, .tri-row b, .cl-row b, .cl-crumb {
  white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; min-width: 0; }
.ui-tabs, .cb-tabs { flex-wrap: wrap; row-gap: 8px; }
.cb-tabs span { white-space: normal; }
.ui-row .ui-chip, .ui-body > .ui-chip { max-width: 100%; }
