/* ===================================================================
   Rivulet IQ — case-extra.css
   Small additions for four case pages (analytics-secure-file-portal, engine-training-simulator,
   retailer-ai-analytics-dashboard, telecom-secure-intranet). Loaded after case.css, which stays
   untouched; the section structure (round 3) is case.css's shared one. Boxes only from the visual layer (.vx / .vx-screen / .vc); no sticky, no pinning, tokens only.
   =================================================================== */

/* six rows in the telecom hero screen: a little tighter so the panel stays the height of the copy */
.cx-rows--tight > li { padding-block: 9px; }

/* ------------------------------------------------------------------ CHART VIEW (engine simulator hero)
   The simulator's chart as the hero product screen: faint curves, the two marked bands, one orange curve that draws
   itself when the screen comes into view ([data-ui="bars"] adds .is-on; reduced motion gets it at once). */
.cx-chart {
    & .cx-chart__tabs { margin: 0 0 18px; }
    & .ui-chip { border-color: rgba(255, 255, 255, .16); color: var(--s-soft); }
    & .ui-chip.is-active { border-color: color-mix(in srgb, var(--orange) 60%, transparent); color: var(--orange); }
    & svg { display: block; width: 100%; height: auto; }
    & .cx-plot__grid { fill: none; stroke: rgba(255, 255, 255, .07); stroke-width: 1; }
    & .cx-plot__band { fill: color-mix(in srgb, var(--orange) 10%, transparent); }
    & .cx-plot__label { fill: var(--orange); font-family: var(--font-mono); font-size: 17px; letter-spacing: 0; text-transform: none; }
    & .cx-plot__line { fill: none; stroke: rgba(255, 255, 255, .28); stroke-width: 1.5; }
    & .cx-plot__accent { fill: none; stroke: var(--s-o); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.4s cubic-bezier(.16, 1, .3, 1) .3s; }
    & .cx-plot__dot { fill: var(--s-o); opacity: 0; transition: opacity .5s ease 1.6s; }
    & .cx-chart__plot.is-on .cx-plot__accent { stroke-dashoffset: 0; }
    & .cx-chart__plot.is-on .cx-plot__dot { opacity: 1; }
    @media (max-width: 767.98px) { & .cx-plot__label { font-size: 24px; } }
}
@media (prefers-reduced-motion: reduce) { .cx-chart .cx-plot__accent { stroke-dashoffset: 0; } .cx-chart .cx-plot__dot { opacity: 1; } }

/* ------------------------------------------------------------------ RIBBON under the problem split (telecom), full bleed */
.cx-ribbon { margin-block: var(--sp75) 0; margin-inline: calc(var(--gutter) * -1); }
.cx-ribbon .pg-marquee__item { color: var(--white-75); }

/* ------------------------------------------------------------------ long hero button labels ("About Digital Product Engineering") fit a phone */
@media (max-width: 767.98px) {
    .cs-hero .pg-hero__actions .btn { padding-inline: 24px; white-space: normal; }
    .cs-hero .pg-hero__actions .btn__label { flex: 1 1 auto; min-width: 0; }
}
