/* Capability cards and their detail panel (GRW-20). Loaded after v4.css and ocean.css.
   The cards keep the look v4.css gives .cap; this file makes each one a button and adds the panel.
   Motion values are in js/caps.js (Ripplix 5510). */

/* ---------- the card as a button ---------- */
.cap { position: relative; padding: 0; transition: border-color var(--rds-dur-fast), background-color var(--rds-dur-fast), transform var(--rds-dur) var(--rds-ease-out); }
.cap-btn {
  display: block; width: 100%; min-height: 44px; padding: 12px 16px 15px;
  border: 0; border-radius: 12px; background: none; text-align: left; cursor: default;
  -webkit-tap-highlight-color: transparent;
}
.cap-btn .cap-top, .capd-ghost .cap-top { display: flex; flex-direction: column-reverse; align-items: flex-start; justify-content: flex-start; gap: 3px; margin-bottom: 6px; }
.cap-line { display: block; font-size: .84rem; line-height: 1.45; color: var(--rds-text-2); text-wrap: pretty; }
.cap-plus { display: none; }
.cap-btn::after { content: ''; position: absolute; inset: 0; border-radius: 12px; }   /* the whole card is the button */
.cap-face { display: block; padding: 12px 16px 15px; }

/* the small drawing on the card: the top of the same screen the panel shows */
.cap-prev {
  position: relative; display: block; height: 124px; margin: 6px 6px 0; border-radius: 8px; overflow: hidden; pointer-events: none;
  background:
    radial-gradient(120% 90% at 8% 4%, var(--w1) 0, transparent 58%),
    radial-gradient(90% 80% at 96% 22%, var(--w2) 0, transparent 60%),
    radial-gradient(110% 80% at 70% 104%, var(--w3) 0, transparent 62%),
    radial-gradient(70% 60% at 16% 88%, var(--w4) 0, transparent 64%),
    var(--w0);
}
.cap-prev .cx {
  position: absolute; left: 16px; top: 16px; width: 330px; max-width: none; transform: scale(.691); transform-origin: 0 0;
  box-shadow: 0 1px 2px rgba(23, 44, 45, .10), 0 10px 22px -10px rgba(23, 44, 45, .45);
}
.cap-prev .cx-input::after { animation: none; }
.cap-prev::after { content: ''; position: absolute; inset: 0; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(23, 44, 45, .10), inset 0 -18px 18px -14px rgba(23, 44, 45, .22); }

html.js .cap-btn { cursor: pointer; }
html.js .cap-line { padding-right: 34px; min-height: 2.9em; }
html.js .cap-plus {
  display: block; position: absolute; z-index: 1; right: 12px; bottom: 12px; width: 24px; height: 24px; border-radius: 50%;
  border: 1px solid var(--rds-line-strong);
  background:
    linear-gradient(currentColor, currentColor) center / 9px 1.5px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.5px 9px no-repeat;
  color: var(--rds-text-2);
  transition: background-color var(--rds-dur-fast), color var(--rds-dur-fast), border-color var(--rds-dur-fast), transform var(--rds-dur) var(--rds-ease-out);
}
html.js .cap:hover, html.js .cap:has(:focus-visible) { border-color: var(--rds-line-strong); transform: translateY(-2px); }
html.js .cap:hover .cap-plus, html.js .cap-btn:focus-visible .cap-plus {
  background-color: var(--rds-gold); border-color: var(--rds-gold); color: #172C2D; transform: rotate(90deg);
}
.cap-btn:focus-visible { outline: none; }
.cap-btn:focus-visible::after { outline: 2px solid var(--rds-gold); outline-offset: 2px; }
.cap.is-source { opacity: 0; }

/* the strip holds while a panel is open */
.marquee.caps-open .marquee-track { animation-play-state: paused; }
/* a card that holds focus from a mouse press does not hold the strip */
.marquee.is-moving:not(:hover):not(.is-paused):not(.caps-open):focus-within:not(:has(:focus-visible)) .marquee-track { animation-play-state: running; }

/* ---------- the panel ---------- */
.capd {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none;
  margin: 0; padding: 24px; border: 0; background: transparent; overflow: hidden;
  /* light surface: the page tokens, whatever water is behind */
  --rds-ink: #172C2D; --rds-text: #1E2B2A; --rds-text-2: #4A5A58; --rds-text-3: #6B7A78;
  --rds-surface: #FFFFFF; --rds-line: #E3E8E6; --rds-line-strong: #CBD5D2; --rds-teal: #2C5E3B;
  color: var(--rds-text); font-family: var(--rds-font);
}
.capd[open] { display: grid; place-items: center; }
.capd::backdrop { background: transparent; }
.capd-scrim {
  position: fixed; inset: 0; background: rgba(7, 26, 30, .46);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.capd-box { position: relative; width: min(100%, 940px); will-change: transform; }
.capd-shadow { position: absolute; inset: 0; border-radius: 26px; box-shadow: 0 2px 6px rgba(7, 26, 30, .18), 0 40px 80px -20px rgba(7, 26, 30, .55); pointer-events: none; }
.capd-panel {
  position: relative; border-radius: 26px; background: var(--rds-surface); overflow: hidden;
  max-height: calc(100dvh - 48px); overflow-y: auto; overscroll-behavior: contain;
}
.capd-in { display: grid; grid-template-columns: minmax(0, 11fr) minmax(0, 12fr); min-height: 468px; }

.capd-x {
  position: absolute; right: 14px; top: 14px; z-index: 3; width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; border: 0; border-radius: 50%; background: none; cursor: pointer; color: var(--rds-text-2);
}
.capd-x::before { content: ''; position: absolute; inset: 5px; border-radius: 50%; background: #F2F5F4; transition: background-color var(--rds-dur-fast); }
.capd-x svg { position: relative; width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }
.capd-x:hover { color: var(--rds-ink); }
.capd-x:hover::before { background: #E3E8E6; }
.capd-x:focus-visible { outline: 2px solid var(--rds-teal); outline-offset: -3px; border-radius: 50%; }

/* the card's own face, shown only at the card end of the run */
.capd-ghost {
  position: absolute; z-index: 4; opacity: 0; pointer-events: none; overflow: hidden; border-radius: 12px;
  background: #172F31; border: 1px solid rgba(255, 255, 255, .14);
  --rds-ink: #F2F7F5; --rds-text-2: #C9D9D5; --v4-ink-3: #A3B9B5; --rds-line-strong: rgba(255, 255, 255, .28);
}
.capd-ghost b { font-size: .92rem; font-weight: 650; color: var(--rds-ink); }

/* left: the drawing on a painted wash */
.capd-art { position: relative; display: grid; place-items: center; padding: 36px 32px; margin: 10px 0 10px 10px; }
.capd-wash {
  position: absolute; inset: 0; border-radius: 18px; overflow: hidden;
  background:
    radial-gradient(120% 90% at 8% 4%, var(--w1) 0, transparent 58%),
    radial-gradient(90% 80% at 96% 22%, var(--w2) 0, transparent 60%),
    radial-gradient(110% 80% at 70% 104%, var(--w3) 0, transparent 62%),
    radial-gradient(70% 60% at 16% 88%, var(--w4) 0, transparent 64%),
    var(--w0);
}
.capd-wash::after {   /* paper grain over the wash */
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .42 0 0 0 0 .4 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)' opacity='.38'/%3E%3C/svg%3E");
}
.capd-art .cx { z-index: 5; transform-origin: 0 0; will-change: transform; }
/* one drawing travels: the card face keeps its wash and leaves the drawing to the real one */
.capd-ghost .cap-prev .cx { visibility: hidden; }
.capd-panel, .cap-prev { --w0: #DCE8E4; --w1: color-mix(in srgb, var(--rds-teal) 50%, transparent); --w2: rgba(127, 191, 179, .62); --w3: rgba(35, 60, 56, .40); --w4: color-mix(in srgb, var(--rds-gold) 26%, transparent); }
.capd-panel[data-layer="02"], .cap-prev[data-layer="02"] { --w0: #E2E9DC; --w1: rgba(74, 110, 84, .46); --w2: rgba(166, 200, 160, .60); --w3: color-mix(in srgb, var(--rds-teal) 38%, transparent); --w4: color-mix(in srgb, var(--rds-gold) 30%, transparent); }
.capd-panel[data-layer="03"], .cap-prev[data-layer="03"] { --w0: #EEE5D1; --w1: color-mix(in srgb, var(--rds-gold) 30%, transparent); --w2: rgba(240, 214, 160, .70); --w3: rgba(93, 168, 155, .38); --w4: rgba(178, 96, 60, .20); }
.capd-panel[data-layer="04"], .cap-prev[data-layer="04"] { --w0: #E2E1E6; --w1: rgba(64, 78, 110, .42); --w2: rgba(170, 178, 204, .60); --w3: color-mix(in srgb, var(--rds-teal) 36%, transparent); --w4: rgba(178, 46, 91, .16); }

/* right: the words */
.capd-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 60px 52px 44px 44px; }
.capd-kicker { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; margin: 0 0 18px; }
#capd-name { font-size: .95rem; font-weight: 650; color: var(--rds-ink); }
.capd-tag { font-family: var(--rds-mono); font-size: .72rem; color: var(--rds-text-3); }
.capd h2 { margin: 0; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.14; letter-spacing: -0.024em; font-weight: 700; color: var(--rds-ink); text-wrap: balance; }
.capd-body { margin: 16px 0 0; max-width: 44ch; font-size: 1rem; line-height: 1.6; color: var(--rds-text-2); text-wrap: pretty; }
.capd-cta { margin-top: auto; color: #172C2D; }
.capd-copy::after { content: ''; order: 3; flex: 0 0 28px; }
.capd-cta { order: 4; }
.capd-cta:focus-visible { outline: 2px solid var(--rds-teal); outline-offset: 3px; border-radius: 10px; }

/* ---------- drawings: quiet versions of the real screens ---------- */
.cx {
  position: relative; z-index: 1; width: 100%; max-width: 330px; border-radius: 10px; overflow: hidden;
  background: #fff; border: 1px solid rgba(23, 44, 45, .10);
  box-shadow: 0 1px 2px rgba(23, 44, 45, .08), 0 18px 36px -14px rgba(23, 44, 45, .38);
  font: 400 12px/16px 'Segoe UI', -apple-system, BlinkMacSystemFont, Roboto, 'Helvetica Neue', sans-serif; color: #424242;
  font-variant-numeric: tabular-nums;
}
.cx :where(p, ul, ol) { margin: 0; padding: 0; list-style: none; }
.cx svg { display: block; }
.cx-bar { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-bottom: 1px solid #ebebeb; background: #fafafa; }
.cx-bar i { width: 10px; height: 10px; border-radius: 3px; background: #117865; }
.cx-bar b { font-weight: 600; color: #242424; }
.cx-bar span { margin-left: auto; color: #707070; }
.cx-label { padding: 10px 12px 4px; font-size: 11px; color: #707070; }
.cx em { font-style: normal; }
.cx k { color: #0f6cbd; }
.cx s { text-decoration: none; color: #a4262c; }

.cx-tree { padding: 6px; }
.cx-tree li { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px 0 calc(8px + var(--d, 0) * 14px); border-radius: 4px; white-space: nowrap; }
.cx-tree svg, .cx-flow svg, .cx-stages svg, .cx-btn svg { flex: none; width: 12px; height: 12px; fill: none; stroke: #707070; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.cx-tree li > span { overflow: hidden; text-overflow: ellipsis; }
.cx-tree em { margin-left: auto; padding: 0 6px; border-radius: 3px; background: #f5f5f5; font-size: 10.5px; color: #616161; }
.cx-tree .is-on { background: #ebf3f1; color: #242424; }
.cx-tree .is-on svg { stroke: #117865; }
.cx-tree .is-on em { background: #fff; color: #117865; }
.cx-tree .is-off { color: #9a9a9a; }

.cx-grid { width: 100%; border-collapse: collapse; border-top: 1px solid #ebebeb; }
.cx-grid th, .cx-grid td { padding: 5px 12px; text-align: left; border-bottom: 1px solid #f0f0f0; white-space: nowrap; }
.cx-grid th { font-weight: 600; color: #424242; background: #fafafa; }
.cx-grid td:not(:first-child), .cx-grid th:not(:first-child) { text-align: right; }
.cx-grid tr:last-child td { border-bottom: 0; }
.cx-status { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-top: 1px solid #ebebeb; color: #616161; }
.cx-status > span { margin-left: auto; }
.cx-status > .cx-left { margin-left: 0; }
.cx-status u { text-decoration: none; font-family: Consolas, 'Courier New', monospace; color: #707070; }
.cx-ok { display: grid; place-items: center; width: 14px; height: 14px; border-radius: 50%; background: #117865; }
.cx-ok svg { width: 9px; height: 9px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

.cx-code { counter-reset: ln; padding: 10px 12px 10px 0 !important; font: 10.5px/18px Consolas, 'Courier New', monospace; color: #242424; overflow: hidden; }
.cx-code li { counter-increment: ln; white-space: nowrap; }
.cx-code li::before { content: counter(ln); display: inline-block; width: 24px; padding-right: 8px; text-align: right; color: #9a9a9a; }
.cx-cell { position: relative; margin: 10px 10px 0 30px; border: 1px solid #e0e0e0; border-radius: 6px; }
.cx-run { position: absolute; left: -22px; top: 10px; }
.cx-run svg { width: 13px; height: 13px; fill: none; stroke: #117865; stroke-width: 1.2; stroke-linejoin: round; }
.cx-cell + .cx-status { border-top: 0; padding-left: 12px; }
.cx-out { margin: 0 10px 10px 30px !important; padding: 7px 10px !important; border-radius: 6px; background: #f5f5f5; font: 11.5px/16px Consolas, 'Courier New', monospace; color: #424242; }
.cx-tabs { display: flex; gap: 16px; padding: 0 12px !important; border-top: 1px solid #ebebeb; }
.cx-tabs b, .cx-tabs span { padding: 7px 0 6px; }
.cx-tabs b { font-weight: 600; color: #242424; box-shadow: inset 0 -2px #117865; }
.cx-tabs span { color: #707070; }
.cx-tabs + .cx-grid { border-top-color: #f0f0f0; }

.cx-fx { display: flex; align-items: center; gap: 8px; margin: 10px 10px 0 !important; padding: 6px 10px !important; border: 1px solid #e0e0e0; border-radius: 4px; font: 10.5px/16px Consolas, 'Courier New', monospace; color: #242424; white-space: nowrap; overflow: hidden; }
.cx-fx u { text-decoration: none; font-style: italic; color: #707070; }
.cx-star { width: 100%; height: auto; padding: 8px 6px 10px; }
.cx-star .ln { fill: none; stroke: #b3b3b3; stroke-width: 1; }
.cx-star .bx rect { fill: #fff; stroke: #d1d1d1; }
.cx-star .fact { fill: #ebf3f1; stroke: #117865; }
.cx-star text { font: 11px 'Segoe UI', -apple-system, Roboto, sans-serif; text-anchor: middle; fill: #424242; }
.cx-star .ft { font-weight: 600; fill: #0c5a4c; }
.cx-star .mk text { font-size: 10px; fill: #707070; }

.cx-flow { padding: 14px 12px !important; display: grid; gap: 22px; }
.cx-flow li { position: relative; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid #e0e0e0; border-radius: 6px; background: #fff; }
.cx-flow li + li::before { content: ''; position: absolute; left: 21px; top: -23px; height: 22px; border-left: 1.5px dashed #117865; }
.cx-flow span { display: grid; }
.cx-flow b { font-weight: 600; color: #242424; }
.cx-flow small { font-size: 11px; color: #707070; }
.cx-flow .is-on { border-color: #117865; background: #f4f9f8; }
.cx-flow .is-on svg { stroke: #117865; }
.cx-flow em { display: flex; align-items: center; gap: 4px; margin-left: auto; padding: 3px 6px 3px 8px; border: 1px solid #d1d1d1; border-radius: 4px; background: #fff; color: #242424; font-weight: 600; }

.cx-roles { display: grid; gap: 2px; padding: 0 6px 4px !important; }
.cx-roles li { display: flex; align-items: center; gap: 8px; height: 26px; padding: 0 8px; border-radius: 4px; }
.cx-roles li::before { content: ''; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #9a9a9a; box-sizing: border-box; }
.cx-roles .is-on { background: #ebf3f1; color: #242424; font-weight: 600; }
.cx-roles .is-on::before { border: 4px solid #117865; }
.cx-roles + .cx-fx { margin-bottom: 10px !important; }

.cx-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 10px 10px 4px; }
.cx-kpis div { padding: 7px 8px; border: 1px solid #ebebeb; border-radius: 6px; }
.cx-kpis small { display: block; font-size: 10.5px; color: #616161; white-space: nowrap; }
.cx-kpis svg { width: 100%; height: 20px; margin: 4px 0; fill: none; stroke: #117865; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.cx-kpis em { display: block; font-size: 9.5px; white-space: nowrap; }
.cx-kpis .up { color: #0c6b58; }
.cx-kpis .down { color: #9a2650; }
.cx-chart { width: 100%; height: auto; padding: 4px 10px 0; }
.cx-chart path { fill: none; }
.cx-chart .gl { stroke: #ebebeb; stroke-width: 1; }
.cx-chart .cy { stroke: #117865; stroke-width: 1.6; stroke-dasharray: 5 3.5; stroke-linecap: round; }
.cx-chart .ly { stroke: #b3b3b3; stroke-width: 1.3; stroke-dasharray: 2 3; stroke-linecap: round; }
.cx-chart .pt circle { fill: #fff; stroke: #117865; stroke-width: 1.5; }
.cx-legend { display: flex; align-items: center; gap: 6px; padding: 4px 12px 10px !important; font-size: 10.5px; color: #616161; }
.cx-legend i { width: 14px; border-top: 2px dashed #117865; }
.cx-legend i.b { margin-left: 10px; border-top: 2px dotted #b3b3b3; }

.cx-seg { display: flex; margin: 0 12px 6px !important; padding: 2px !important; border-radius: 6px; background: #f0f0f0; }
.cx-seg li { flex: 1; padding: 4px 0; border-radius: 4px; text-align: center; font-size: 11px; color: #616161; white-space: nowrap; }
.cx-seg .is-on { background: #fff; color: #242424; font-weight: 600; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.cx-pages { border-top: 1px solid #ebebeb; }

.cx-grid .is-edit td { background: #f4f9f8; }
.cx-input { display: inline-block; min-width: 38px; padding: 1px 6px; border: 1px solid #117865; border-radius: 3px; background: #fff; box-shadow: 0 0 0 2px rgba(17, 120, 101, .16); color: #242424; }
.cx-input::after { content: ''; display: inline-block; width: 1px; height: 11px; margin-left: 1px; vertical-align: -1px; background: #242424; animation: cx-caret 1.1s steps(1) infinite; }
@keyframes cx-caret { 50% { opacity: 0; } }
.cx-form { display: flex; align-items: center; gap: 8px; padding: 10px 12px !important; border-top: 1px solid #ebebeb; }
.cx-field { flex: 1; min-width: 0; padding: 4px 8px; border: 1px solid #d1d1d1; border-radius: 4px; color: #424242; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-note { flex: 1; color: #616161; }
.cx-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 4px; background: #117865; color: #fff; font-weight: 600; }
.cx-btn svg { stroke: #fff; stroke-width: 1.4; }

.cx-stages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 12px 10px !important; }
.cx-stages li { display: grid; gap: 5px; padding: 8px; border: 1px solid #e0e0e0; border-radius: 6px; min-width: 0; }
.cx-stages b { font-size: 11px; font-weight: 600; color: #242424; }
.cx-stages span { display: flex; align-items: center; gap: 4px; font-size: 10.5px; color: #616161; white-space: nowrap; overflow: hidden; }
.cx-stages em { display: flex; align-items: center; gap: 3px; margin-top: 3px; font-size: 10.5px; color: #0c6b58; white-space: nowrap; }
.cx-stages em svg { stroke: #0c6b58; stroke-width: 1.5; width: 10px; height: 10px; }
.cx-stages em.new { color: var(--rds-teal); }
.cx-stages em.new::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--rds-gold); }

.cx-chat { display: grid; gap: 8px; padding: 12px; }
.cx-chat .q { justify-self: end; max-width: 86%; padding: 6px 10px !important; border-radius: 10px 10px 2px 10px; background: #ebf3f1; color: #242424; }
.cx-chat .a { justify-self: start; width: 92%; padding: 8px 10px; border: 1px solid #ebebeb; border-radius: 10px 10px 10px 2px; color: #242424; }
.cx-chat small { display: block; margin-top: 6px; font-size: 10.5px; color: #707070; }
.cx-bars { display: grid; gap: 4px; margin-top: 8px !important; }
.cx-bars li { display: grid; grid-template-columns: 46px 1fr 12px; align-items: center; gap: 6px; font-size: 10.5px; color: #616161; }
.cx-bars i { height: 8px; width: var(--v); border-radius: 2px; background: #b9d6d0; }
.cx-bars li:first-child i { background: #117865; }
.cx-bars u { text-decoration: none; text-align: right; }
.cx-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; padding: 2px 12px 10px !important; border-bottom: 1px solid #ebebeb; }
.cx-checks li { display: flex; align-items: center; gap: 7px; height: 22px; color: #9a9a9a; }
.cx-checks i { display: grid; place-items: center; width: 12px; height: 12px; border: 1px solid #b3b3b3; border-radius: 3px; box-sizing: border-box; }
.cx-checks .is-on { color: #242424; }
.cx-checks .is-on i { border-color: #117865; background: #117865; }
.cx-checks svg { width: 9px; height: 9px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.cx-alert { padding-top: 8px; }
.cx-alert .th { stroke: #9a2650; stroke-width: 1.2; stroke-dasharray: 2 3; }
.cx-alert .tl { font: 10px 'Segoe UI', -apple-system, Roboto, sans-serif; fill: #9a2650; }
.cx-alert .hit { fill: #9a2650; }
.cx-alert .ring { fill: none; stroke: #9a2650; stroke-opacity: .35; stroke-width: 1.5; }
.cx-toast { display: flex; align-items: flex-start; gap: 9px; margin: 6px 10px 10px; padding: 9px 10px; border: 1px solid #e0e0e0; border-radius: 6px; box-shadow: 0 4px 8px rgba(0, 0, 0, .08); }
.cx-toast i { flex: none; width: 8px; height: 8px; margin-top: 4px; border-radius: 50%; background: #9a2650; }
.cx-toast span { display: grid; gap: 1px; }
.cx-toast b { font-weight: 600; color: #242424; }
.cx-toast small { font-size: 11px; color: #616161; }

/* ---------- phone: a full-width sheet ---------- */
@media (max-width: 760px) {
  .capd { padding: 0; }
  .capd[open] { place-items: end stretch; }
  .capd-box { width: 100%; }
  .capd-shadow { border-radius: 22px 22px 0 0; }
  .capd-panel { border-radius: 22px 22px 0 0; max-height: 94dvh; padding-bottom: env(safe-area-inset-bottom, 0px); }
  .capd-in { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .capd-art { margin: 8px 8px 0; padding: 56px 18px 24px; }
  .capd-wash { border-radius: 16px; }
  .capd-copy { padding: 22px 24px 26px; }
  .capd-kicker { margin-bottom: 10px; }
  .capd h2 { font-size: 1.45rem; }
  .capd-body { margin-top: 10px; }
  .capd-copy::after { flex-basis: 20px; }
  .capd-cta { align-self: stretch; }
  .capd-x { right: 12px; top: 12px; }
  .capd-x::before { background: rgba(255, 255, 255, .86); box-shadow: 0 1px 3px rgba(23, 44, 45, .18); }
}

/* ---------- left and right ---------- */
.marquee-head .marquee-toggle { margin-left: auto; }
.marquee-arrows { display: flex; gap: 6px; }
.marquee-arrow, .capd-step {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  border: 1px solid var(--rds-line-strong); background: transparent; color: var(--rds-ink);
  transition: background-color var(--rds-dur-fast), border-color var(--rds-dur-fast);
}
.marquee-arrow svg, .capd-step svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.marquee-arrow:hover { background: rgba(255, 255, 255, .14); border-color: var(--rds-ink); }
.marquee-arrow:focus-visible, .capd-step:focus-visible { outline: 2px solid var(--rds-gold); outline-offset: 2px; }
.capd-nav { display: flex; align-items: center; gap: 10px; margin-top: 22px; }
.capd-step:hover { background: #F2F5F4; border-color: var(--rds-ink); }
.capd-count { min-width: 52px; text-align: center; font: 500 .78rem var(--rds-mono); color: var(--rds-text-2); font-variant-numeric: tabular-nums; }

/* ---------- carousels ---------- */
/* One look for all three: a slide in the middle, its neighbors showing at the sides, arrows at the edges. */
.car { position: relative; --slide-w: 72%; }
.car-view {
  position: relative; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.car-slide {
  position: absolute; left: 50%; top: 10px; width: var(--slide-w);
  transform: translateX(calc(-50% + var(--d, 0) * (100% + 28px))) scale(var(--sc, 1));
  transition: transform .75s cubic-bezier(.22, 1, .36, 1), opacity .5s ease;
  opacity: .5;
}
.car-slide:not(.is-on) { --sc: .94; }
.car-slide.is-on { opacity: 1; }
.car-view:has(.car-slide:not(.is-on)) { cursor: pointer; }
.car-slide.is-on { cursor: auto; }
.car-arrow {
  position: absolute; z-index: 3; top: 50%; translate: 0 -50%; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer; padding: 0;
  border: 1px solid rgba(23, 44, 45, .14); background: rgba(255, 255, 255, .92); color: #172C2D;
  box-shadow: 0 4px 16px rgba(6, 30, 40, .24);
  transition: background-color .15s ease, scale .15s ease;
}
.car-arrow:hover { background: #fff; scale: 1.06; }
.car-arrow:focus-visible { outline: 2px solid var(--rds-gold); outline-offset: 2px; }
.car-arrow svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.car-prev { left: 8px; }
.car-next { right: 8px; }
/* the strip of cards at the sea floor: the same arrows, no Pause */
.marquee-stage { position: relative; }
.marquee .marquee-toggle { display: none !important; }
.marquee-stage .car-arrow { top: calc(50% - 5px); }
/* reports */
.showcase.car { --slide-w: 72%; }
.showcase .frame-view { height: auto; aspect-ratio: 16 / 9; }
html.rise .showcase.car { --slide-w: min(72%, max(480px, calc((100vh - 310px) * 16 / 9))); }
@media (max-width: 760px) {
  .car, .showcase.car, html.rise .showcase.car { --slide-w: 84%; }
  .car-view { -webkit-mask-image: none; mask-image: none; }
  .car-slide { transform: translateX(calc(-50% + var(--d, 0) * (100% + 12px))) scale(var(--sc, 1)); }
  .car-arrow { width: 36px; height: 36px; }
  .car-prev { left: -6px; }
  .car-next { right: -6px; }
  .marquee-stage .car-prev { left: 6px; }
  .marquee-stage .car-next { right: 6px; }
}
