/* Shared styles for product, AI, Passenger Check, Defence and Media pages.
   Tailwind (runtime) handles layout; this file only holds the few pieces
   Tailwind utilities can't express cleanly. */

:root {
  --rc-teal: #14A99C;
  --rc-teal-dark: #0B6F66;
  --rc-teal-light: #3BEEE2;
  --rc-ink: #14141E;
  --rc-body: #5B6470;
  --rc-line: #E8ECEC;
}

/* Section headings: dark text on light panels, light text on the dark page */
.rc-h2-light { background: linear-gradient(180deg, #2D2D2D 0%, rgba(16, 16, 16, .7) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rc-h2-dark { background: linear-gradient(180deg, #FFFFFF 0%, rgba(255, 255, 255, .7) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rc-h2-teal { background: linear-gradient(180deg, #3BEEE2 0%, rgba(5, 161, 148, .75) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* On white sheets the bright gradient measures 1.45-2.39:1; use the dark teal (4.8-6.0:1). Dark panels inside a sheet keep the bright one. */
.pcx-sheet .rc-h2-teal, .pcx-sec .rc-h2-teal { background-image: linear-gradient(180deg, #0C8075 0%, #0B6F66 100%); }
.pcx-sheet :is(.on-dark, .ds-dark, .ds-ai, .rc4-band, .vtx-dark, .pgx-dark, .pcx-ai, .pcx-ai-sec, .pcx-strip-sec, .pcx-faq-sec, .vhm, .vt-ai) .rc-h2-teal,
:is(.on-dark, .ds-dark, .ds-ai, .rc4-band, .vtx-dark, .pgx-dark, .pcx-ai, .pcx-ai-sec, .pcx-strip-sec, .pcx-faq-sec, .vhm, .vt-ai) .rc-h2-teal { background-image: linear-gradient(180deg, #3BEEE2 0%, rgba(5, 161, 148, .75) 100%); }

.rc-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rc-teal-dark); }
.rc-eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.rc-eyebrow.on-dark { color: var(--rc-teal-light); }

.rc-badge-new { display: inline-flex; align-items: center; border-radius: 999px; background: #E6FAF8; color: var(--rc-teal-dark); font-size: 11px; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; }
.rc-badge-new.on-dark { background: rgba(59, 238, 226, .14); color: var(--rc-teal-light); }

/* Product card */
.rc-card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--rc-line); border-radius: 20px; background: #fff; padding: 24px; color: var(--rc-ink); }
.rc-card:hover { transform: translateY(-4px); border-color: #9BE7DF; box-shadow: 0 22px 44px -22px rgba(5, 161, 148, .45); }
.rc-card:focus-visible { outline: 3px solid var(--rc-teal); outline-offset: 3px; }
.rc-card .rc-card-icon { width: 48px; height: 48px; border-radius: 12px; }
.rc-card h3 { margin-top: 20px; font-size: 20px; line-height: 1.3; font-weight: 600; }
.rc-card p { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--rc-body); }
.rc-card .rc-more { margin-top: auto; padding-top: 22px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 15px; color: var(--rc-teal-dark); }
.rc-card:hover .rc-more svg { transform: translateX(4px); }

/* Check list */
.rc-checks { margin-top: 16px; display: grid; gap: 10px; }
.rc-checks li { position: relative; padding-left: 28px; font-size: 15px; line-height: 1.5; color: #31373D; }
.rc-checks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 18px; height: 18px; border-radius: 999px; background: #E6FAF8 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E8F84' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.rc-checks.on-dark li { color: #D5DEDD; }
.rc-checks.on-dark li::before { background-color: rgba(59, 238, 226, .14); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233BEEE2' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }

/* Jump chips under a hero */
.rc-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.rc-chip { display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(59, 238, 226, .28); background: rgba(255, 255, 255, .04); color: #DDF7F4; border-radius: 999px; padding: 9px 16px; font-size: 14px; }
.rc-chip:hover { border-color: var(--rc-teal-light); background: rgba(59, 238, 226, .1); color: #fff; }

/* Browser-style frame around product screenshots */
.rc-frame { border-radius: 18px; background: #fff; padding: 8px; box-shadow: 0 30px 80px -30px rgba(5, 161, 148, .55); }
.rc-frame-bar { display: flex; gap: 6px; padding: 4px 6px 10px; }
.rc-frame-bar span { width: 9px; height: 9px; border-radius: 99px; background: #FB8C8C; }
.rc-frame-bar span:nth-child(2) { background: #FFCD82; }
.rc-frame-bar span:nth-child(3) { background: #A7ED7D; }
.rc-frame img { display: block; width: 100%; height: auto; border-radius: 12px; }

/* Prompt pills used in AI sections */
.rc-prompt { display: inline-flex; align-items: center; gap: 8px; border-radius: 12px; border: 1px solid #D5F3EF; background: #F3FCFB; padding: 10px 14px; font-size: 14px; color: #1F3B39; }
.rc-prompt.on-dark { border-color: rgba(59, 238, 226, .25); background: rgba(59, 238, 226, .07); color: #E2FBF8; }

/* Placeholder media: clearly marked until real photos arrive */
.rc-placeholder { position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 16px; background: repeating-linear-gradient(135deg, #0B2B29 0 14px, #0D3331 14px 28px); color: #9FD9D3; text-align: center; }
.rc-placeholder.top { align-items: flex-start; padding-top: 14px; }
.rc-placeholder span { font-size: 13px; letter-spacing: .04em; padding: 6px 12px; border: 1px dashed rgba(159, 217, 211, .5); border-radius: 8px; background: rgba(0, 22, 21, .55); }

/* Before / after comparison slider */
.rc-compare { position: relative; overflow: hidden; border-radius: 18px; aspect-ratio: 16 / 9; background: #000; user-select: none; touch-action: pan-y; }
.rc-compare img, .rc-compare .rc-compare-layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rc-compare .rc-compare-after { clip-path: inset(0 0 0 var(--pos, 50%)); }
.rc-compare * { transition: none !important; }
.rc-compare-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 2px; background: #fff; transform: translateX(-1px); pointer-events: none; }
.rc-compare-handle::after { content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; transform: translate(-50%, -50%); border-radius: 999px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230E8F84' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l-6 6 6 6M15 6l6 6-6 6'/%3E%3C/svg%3E") center / 22px no-repeat; box-shadow: 0 6px 20px rgba(0, 0, 0, .35); }
.rc-compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.rc-compare input[type=range]:focus-visible + .rc-compare-handle::after { outline: 3px solid var(--rc-teal-light); outline-offset: 3px; }
.rc-compare-tag { position: absolute; top: 14px; z-index: 2; border-radius: 8px; padding: 5px 10px; font-size: 12px; font-weight: 600; letter-spacing: .04em; pointer-events: none; }
.rc-compare-tag.before { left: 14px; background: rgba(0, 0, 0, .6); color: #fff; }
.rc-compare-tag.after { right: 14px; background: var(--rc-teal); color: #fff; }

/* AI detection boxes drawn over footage */
.rc-detect { position: absolute; border: 2px solid var(--c, #3BEEE2); border-radius: 6px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25), 0 0 18px -4px var(--c, #3BEEE2); }
.rc-detect b { position: absolute; left: -2px; top: -24px; white-space: nowrap; background: var(--c, #3BEEE2); color: #00211F; font: 600 11px/1 "Roboto", sans-serif; padding: 5px 7px; border-radius: 5px 5px 5px 0; }

/* AI Agent answer text */
.rc-ai-answer b { font-weight: 600; color: #111827; }

/* Gallery */
.rc-gallery { columns: 1; column-gap: 16px; }
@media (min-width: 640px) { .rc-gallery { columns: 2; } }
@media (min-width: 1024px) { .rc-gallery { columns: 3; } }
.rc-gallery > * { break-inside: avoid; margin-bottom: 16px; }

/* Tabs (Media page) */
.rc-tab { border-radius: 999px; padding: 9px 18px; font-size: 14px; font-weight: 500; color: #C6D3D2; border: 1px solid rgba(255, 255, 255, .14); }
.rc-tab.light { color: #31373D; border-color: #DDE3E3; }
.rc-tab.light:hover { border-color: #14A99C; }
.rc-tab[aria-pressed=true], .rc-tab[aria-selected=true] { background: var(--rc-teal); border-color: var(--rc-teal); color: #fff; }

@media (prefers-reduced-motion: reduce) {
  .rc-card:hover, .rc-card:hover .rc-more svg { transform: none; }
}

/* Buttons: one consistent size, label always centred */
.rc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 12px; font-size: 15px; font-weight: 600; line-height: 1; white-space: nowrap; text-align: center; cursor: pointer; }
.rc-btn svg { flex: none; }
.rc-btn:focus-visible { outline: 3px solid var(--rc-teal-light); outline-offset: 3px; }
.rc-btn-primary { color: #fff; background: linear-gradient(53deg, #0C8075 17.5%, #0B6F66 100%); box-shadow: 0 8px 24px -10px rgba(35, 187, 173, .7), inset 0 1px 0 rgba(255, 255, 255, .2); }
.rc-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px -10px rgba(35, 187, 173, .85), inset 0 1px 0 rgba(255, 255, 255, .25); color: #fff; }
.rc-btn-ghost { color: #DDF7F4; border: 1px solid rgba(62, 204, 195, .5); background: rgba(255, 255, 255, .02); }
.rc-btn-ghost:hover { border-color: var(--rc-teal-light); color: #fff; background: rgba(59, 238, 226, .06); }
.rc-btn-ghost.on-light { color: var(--rc-teal-dark); border-color: #9BE7DF; background: #fff; }
.rc-btn-ghost.on-light:hover { border-color: var(--rc-teal); background: #F3FCFB; }
.rc-btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 479px) { .rc-btn-row .rc-btn { width: 100%; } }

/* Segmented control (with / without AI Agent) */
.rc-seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.rc-seg button { min-height: 36px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: #A9BDBB; }
.rc-seg button[aria-pressed=true] { background: #fff; color: #0B6F66; box-shadow: 0 4px 14px -6px rgba(0, 0, 0, .4); }
.rc-seg button:focus-visible { outline: 2px solid var(--rc-teal-light); outline-offset: 2px; }

/* Related cards (bottom of a page, like related articles) */
.rc-related { display: flex; gap: 14px; align-items: flex-start; border: 1px solid var(--rc-line); border-radius: 16px; background: #fff; padding: 18px; color: var(--rc-ink); }
.rc-related:hover { border-color: #9BE7DF; box-shadow: 0 16px 34px -22px rgba(5, 161, 148, .5); transform: translateY(-2px); }
.rc-related img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.rc-related h3 { font-size: 16px; font-weight: 600; line-height: 1.3; }
.rc-related p { margin-top: 4px; font-size: 14px; line-height: 1.45; color: var(--rc-body); }

/* ---------- Trip replay mockup (inc-trip-replay.js) ---------- */
.rc-tr-win { background: #fff; color: #14141E; border-radius: 22px; overflow: hidden; box-shadow: 0 50px 120px -50px rgba(0,0,0,.85), 0 0 0 1px rgba(59,238,226,.14); text-align: left; }
.rc-tr-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid #EEF1F4; font-size: 13px; color: #6B7280; }
.rc-tr-top b { color: #14141E; font-weight: 600; }
.rc-tr-dots { display: inline-flex; gap: 6px; } .rc-tr-dots i { width: 9px; height: 9px; border-radius: 50%; background: #E3E7EA; }
.rc-tr-crumb { margin-left: auto; }
.rc-tr-body { display: grid; grid-template-columns: 272px minmax(0, 1fr); }
.rc-tr-side { border-right: 1px solid #EEF1F4; padding: 16px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.rc-tr-veh { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rc-tr-veh b { display: block; font-size: 15px; } .rc-tr-veh span { font-size: 12px; color: #6B7280; }
.rc-tr-live { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; background: #E6FAF8; color: #0B6F66 !important; font-weight: 600; padding: 3px 10px; }
.rc-tr-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #14A99C; box-shadow: 0 0 0 3px rgba(20,169,156,.2); }
.rc-tr-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rc-tr-stats div { border: 1px solid #E8ECEF; border-radius: 10px; padding: 8px; }
.rc-tr-stats b { display: block; font-size: 14px; font-weight: 600; white-space: nowrap; } .rc-tr-stats span { font-size: 11px; color: #6B7280; }
.rc-tr-label { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #8A9399; }
.rc-tr-tabs { display: flex; gap: 18px; border-bottom: 1px solid #EEF1F4; }
.rc-tr-tabs button { padding: 6px 0 9px; font-size: 13px; font-weight: 500; color: #6B7280; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.rc-tr-tabs button[aria-selected="true"] { color: #0B6F66; border-color: #14A99C; }
.rc-tr-list { display: flex; flex-direction: column; gap: 4px; }
.rc-tr-list[hidden] { display: none; }
.rc-tr-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 12px; border: 1px solid transparent; text-align: left; transition: background .2s, border-color .2s; }
.rc-tr-item:hover { background: #F6F8F9; }
.rc-tr-item.is-active { background: #F0FBFA; border-color: #BDEBE6; }
.rc-tr-ico { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 9px; }
.rc-tr-txt { flex: 1; min-width: 0; } .rc-tr-txt b { display: block; font-size: 13px; font-weight: 600; line-height: 1.3; }
.rc-tr-txt small { display: block; font-size: 11.5px; color: #6B7280; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-tr-sev { flex: none; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 600; }
.rc-tr-sev.high { background: #FFE4E8; color: #BE123C; } .rc-tr-sev.med { background: #FEF3C7; color: #92400E; } .rc-tr-sev.info { background: #E0F2FE; color: #075985; }
.rc-tr-trip { border: 1px solid #BDEBE6; border-radius: 12px; overflow: hidden; }
.rc-tr-trip-h { display: flex; align-items: center; gap: 8px; padding: 12px 12px 0; font-size: 14px; }
.rc-tr-dot { width: 9px; height: 9px; border-radius: 50%; background: #F5B700; box-shadow: 0 0 0 3px rgba(245,183,0,.2); }
.rc-tr-trip p { padding: 6px 12px 12px 29px; font-size: 12px; color: #4B5563; line-height: 1.6; }
.rc-tr-trip-f { display: flex; justify-content: space-between; gap: 6px; background: #F0FBFA; padding: 8px 12px; font-size: 11.5px; font-weight: 600; color: #0B6F66; }
.rc-tr-main { min-width: 0; display: flex; flex-direction: column; }
.rc-tr-map { position: relative; aspect-ratio: 16 / 9; background: #EDF1EF; overflow: hidden; }
.rc-tr-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rc-tr-pill { position: absolute; left: 12px; top: 12px; display: flex; gap: 12px; background: #fff; border-radius: 10px; padding: 7px 12px; font-size: 12px; color: #6B7280; box-shadow: 0 8px 24px -12px rgba(15,23,42,.35); }
.rc-tr-pill b { color: #14141E; font-weight: 600; font-variant-numeric: tabular-nums; }
.rc-tr-cam { position: absolute; right: 12px; top: 12px; width: 28%; min-width: 180px; background: #fff; border-radius: 12px; padding: 6px; box-shadow: 0 16px 40px -18px rgba(15,23,42,.5); }
.rc-tr-cam-v { position: relative; border-radius: 8px; overflow: hidden; background: #0F1716; aspect-ratio: 16 / 9; }
.rc-tr-cam-v video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-tr-rec { position: absolute; left: 8px; top: 8px; display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: .06em; padding: 2px 6px; }
.rc-tr-rec::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #F43F5E; }
.rc-tr-cam-f { display: flex; justify-content: space-between; padding: 6px 4px 2px; font-size: 11.5px; color: #4B5563; }
.rc-tr-cam-f span:last-child { color: #0B6F66; font-weight: 600; }
.rc-tr-pop { position: absolute; width: 236px; background: #fff; border-radius: 12px; padding: 10px 12px; font-size: 12px; color: #4B5563; box-shadow: 0 18px 44px -18px rgba(15,23,42,.55); transform: translate(18px, -50%); pointer-events: none; animation: rc-tr-in .25s ease-out; z-index: 2; }
.rc-tr-pop.flip { transform: translate(calc(-100% - 18px), -50%); }
.rc-tr-pop[hidden] { display: none; }
.rc-tr-pop-h { display: flex; align-items: center; gap: 8px; } .rc-tr-pop-h b { flex: 1; font-size: 13px; color: #14141E; }
.rc-tr-pop-h .rc-tr-ico { width: 26px; height: 26px; border-radius: 8px; }
.rc-tr-pop-m { margin-top: 6px; font-size: 11.5px; color: #8A9399; }
.rc-tr-pop p:last-child { margin-top: 4px; line-height: 1.5; }
@keyframes rc-tr-in { from { opacity: 0; } to { opacity: 1; } }
.rc-tr-ctrl { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-top: 1px solid #EEF1F4; }
.rc-tr-play { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: #14A99C; color: #fff; transition: background .2s; }
.rc-tr-play:hover { background: #0B6F66; } .rc-tr-play svg[hidden] { display: none; }
.rc-tr-time { flex: none; font-size: 12px; color: #6B7280; font-variant-numeric: tabular-nums; }
.rc-tr-track { position: relative; flex: 1; height: 28px; min-width: 80px; }
.rc-tr-ticks { position: absolute; left: 8px; right: 8px; top: 50%; height: 0; pointer-events: none; z-index: 1; }
.rc-tr-ticks i { position: absolute; top: -9px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; }
.rc-tr-ticks i.sq { border-radius: 2px; background: #F59E0B; }
.rc-tr-track input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; --p: 0%; }
.rc-tr-track input::-webkit-slider-runnable-track { height: 5px; border-radius: 5px; background: linear-gradient(90deg, #14A99C var(--p), #E2E8EA var(--p)); }
.rc-tr-track input::-moz-range-track { height: 5px; border-radius: 5px; background: #E2E8EA; }
.rc-tr-track input::-moz-range-progress { height: 5px; border-radius: 5px; background: #14A99C; }
.rc-tr-track input::-webkit-slider-thumb { -webkit-appearance: none; width: 16px; height: 16px; margin-top: -5.5px; border-radius: 50%; background: #14A99C; border: 3px solid #fff; box-shadow: 0 0 0 1px #14A99C, 0 2px 6px rgba(0,0,0,.2); }
.rc-tr-track input::-moz-range-thumb { width: 12px; height: 12px; border-radius: 50%; background: #14A99C; border: 3px solid #fff; box-shadow: 0 0 0 1px #14A99C; }
.rc-tr-track input:focus-visible { outline: 2px solid #14A99C; outline-offset: 2px; border-radius: 6px; }
.rc-tr-spd { display: flex; flex: none; gap: 4px; }
.rc-tr-spd button { min-width: 32px; border: 1px solid #DCE3E6; border-radius: 7px; padding: 3px 6px; font-size: 12px; color: #4B5563; }
.rc-tr-spd button[aria-pressed="true"] { border-color: #14A99C; background: #E6FAF8; color: #0B6F66; font-weight: 600; }
.rc-tr-opts { display: flex; flex-wrap: wrap; gap: 16px; padding: 6px 16px 14px 66px; font-size: 12px; color: #4B5563; }
.rc-tr-opts span { display: inline-flex; align-items: center; gap: 6px; }
.rc-tr-opts i { width: 14px; height: 14px; border-radius: 4px; background: #14A99C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 10px no-repeat; }
.rc-tr-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 28px; color: #DDF7F4; font-size: 15px; }
.rc-tr-points li { display: inline-flex; align-items: center; gap: 8px; }
.rc-tr-points li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #3BEEE2; box-shadow: 0 0 0 4px rgba(59,238,226,.15); }
@media (max-width: 1023px) {
  .rc-tr-body { grid-template-columns: 1fr; }
  .rc-tr-side { order: 2; border-right: 0; border-top: 1px solid #EEF1F4; }
}
@media (max-width: 639px) {
  .rc-tr-crumb, .rc-tr-hide-sm, .rc-tr-spd, .rc-tr-opts { display: none; }
  .rc-tr-map { aspect-ratio: 4 / 3; }
  .rc-tr-cam { width: 40%; min-width: 0; right: 8px; top: 8px; padding: 4px; }
  .rc-tr-cam-f { display: none; }
  .rc-tr-pill { left: 8px; top: 8px; font-size: 11px; gap: 8px; padding: 5px 8px; }
  .rc-tr-pop, .rc-tr-pop.flip { left: 8px !important; right: 8px; top: auto !important; bottom: 8px; width: auto; transform: none; }
  .rc-tr-ctrl { gap: 8px; padding: 10px 12px; }
}

/* ---------- 360 view: AI Agent and live event cards over the dashboard ---------- */
.rc-360 { position: relative; }
.rc-360-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 24px; }
.rc-360-chips span { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; padding: 6px 14px; font-size: 14px; color: #DDF7F4; background: rgba(255,255,255,.03); }
.rc-360-chips span.ai { border-color: rgba(59,238,226,.45); background: rgba(59,238,226,.1); color: #fff; font-weight: 600; }
.rc-360-chips img { width: 18px; height: 18px; }
.rc-360-card { position: absolute; background: #fff; color: #1F2A37; border-radius: 16px; box-shadow: 0 30px 70px -30px rgba(2,22,21,.75), 0 0 0 1px rgba(15,23,42,.06); text-align: left; }
.rc-360-ai { right: -3%; bottom: 7%; width: 330px; overflow: hidden; }
.rc-360-ai .bar { height: 3px; background: linear-gradient(90deg, #6B8CFF, #3BB0F0, #14A99C); }
.rc-360-ai .hd { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #EEF1F4; font-size: 13px; font-weight: 600; }
.rc-360-ai .hd img { width: 24px; height: 24px; }
.rc-360-ai .hd em { font-style: normal; margin-left: auto; font-size: 11px; color: #3B82F6; background: #E8F3FF; border-radius: 999px; padding: 1px 7px; }
.rc-360-ai .bd { padding: 12px 14px 14px; background: linear-gradient(180deg, #fff, #F6FBFF); font-size: 13px; line-height: 1.55; }
.rc-360-ai .q { margin-left: auto; max-width: 88%; border: 1px solid #D7ECFF; background: #EEF8FF; border-radius: 12px; padding: 7px 10px; }
.rc-360-ai .a { margin-top: 10px; color: #374151; } .rc-360-ai .a b { color: #111827; font-weight: 600; }
.rc-360-evt { left: -3%; top: 34%; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; font-size: 13px; }
.rc-360-evt .ic { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; align-items: center; justify-content: center; background: #FFE4E8; color: #BE123C; }
.rc-360-evt b { display: block; font-weight: 600; } .rc-360-evt small { color: #6B7280; font-size: 12px; }
@media (max-width: 1023px) {
  .rc-360-card { position: static; width: auto; margin-top: 14px; }
  .rc-360-cards { display: grid; gap: 0; }
}
@media (min-width: 1024px) and (max-width: 1279px) { .rc-360-ai { right: 1%; } .rc-360-evt { left: 1%; } }

/* ---------- Passenger Check strip, dark and subtle ---------- */
.rc-pc { display: flex; flex-direction: column; gap: 20px; border-radius: 24px; padding: 24px; color: #fff; background: radial-gradient(120% 140% at 0% 0%, rgba(59,238,226,.10) 0%, rgba(59,238,226,0) 55%), #031D1B; border: 1px solid rgba(59,238,226,.16); transition: border-color .25s, background-color .25s; }
.rc-pc:hover { border-color: rgba(59,238,226,.38); }
.rc-pc-ic { display: inline-flex; width: 56px; height: 56px; flex: none; align-items: center; justify-content: center; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.rc-pc-ic img { width: 40px; height: 40px; border-radius: 10px; }
.rc-pc-cta { display: inline-flex; flex: none; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 12px; border: 1px solid rgba(59,238,226,.45); padding: 0 20px; font-weight: 600; color: #3BEEE2; transition: background .2s, color .2s; }
.rc-pc:hover .rc-pc-cta { background: #14A99C; border-color: #14A99C; color: #fff; }
@media (min-width: 640px) { .rc-pc { flex-direction: row; align-items: center; padding: 28px 32px; } }

/* ---------- AI alert notification over the dashcam clip ---------- */
.rc-ai-tag { display: inline-flex; align-items: center; gap: 8px; border: 1px solid #CDEFEB; background: #F1FBFA; color: #0B6F66; border-radius: 999px; padding: 5px 14px 5px 6px; font-size: 13px; font-weight: 600; }
.rc-ai-tag img { width: 18px; height: 18px; }
.rc-alert { position: absolute; right: -128px; bottom: 64px; width: 280px; background: rgba(255,255,255,.97); color: #14141E; border-radius: 14px; text-align: left; box-shadow: 0 24px 50px -20px rgba(2,22,21,.6), 0 0 0 1px rgba(15,23,42,.06); overflow: hidden; z-index: 2; }
.rc-alert.is-in { animation: rc-alert-in .45s cubic-bezier(.2,.8,.2,1); }
@keyframes rc-alert-in { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
.rc-alert-h { display: flex; align-items: center; gap: 7px; padding: 9px 12px 0; font-size: 12px; font-weight: 600; color: #4B5563; }
.rc-alert-h img { width: 22px; height: 22px; }
.rc-alert-h em { margin-left: auto; font-style: normal; font-weight: 500; color: #8A9399; }
.rc-alert-b { padding: 6px 12px 10px; }
.rc-alert-t { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.rc-alert-t b { font-size: 15px; font-weight: 600; }
.rc-alert-sev { flex: none; border-radius: 999px; padding: 2px 8px; font-size: 11px; font-weight: 600; }
.rc-alert-sev.high { background: #FFE4E8; color: #BE123C; } .rc-alert-sev.med { background: #FEF3C7; color: #92400E; } .rc-alert-sev.low { background: #E0F2FE; color: #075985; }
.rc-alert-d { margin-top: 3px; font-size: 13px; color: #374151; }
.rc-alert-m { margin-top: 2px; font-size: 12px; color: #8A9399; }
.rc-alert-f { border-top: 1px solid #EEF1F4; background: #F6FBFA; padding: 8px 12px; display: grid; gap: 4px; }
.rc-alert-f li { position: relative; padding-left: 18px; font-size: 12px; color: #0B6F66; font-weight: 500; }
.rc-alert-f li::before { content: ""; position: absolute; left: 0; top: 3px; width: 12px; height: 12px; border-radius: 50%; background: #14A99C url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 8px no-repeat; }
@media (max-width: 1279px) {
  .rc-alert { position: static; width: auto; max-width: 420px; margin: 10px auto 0; box-shadow: 0 0 0 1px #E3E8EA, 0 12px 30px -18px rgba(2,22,21,.4); }
}
@media (prefers-reduced-motion: reduce) { .rc-alert.is-in { animation: none; } }

/* ---------- Incident hotspots: heatmap, connector lines, fix cards ---------- */
.rc-tr .rc-tr-win { max-width: 1080px; margin-left: auto; margin-right: auto; }
.rc-hm-flow { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) 160px minmax(0, 1fr); align-items: end; max-width: 1180px; margin-left: auto; margin-right: auto; }
.rc-hm-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 2; overflow: visible; }
.rc-hm-line { transition: opacity .25s; }
.rc-hm-pulse { animation: rc-hm-flow 2.4s linear infinite; }
@keyframes rc-hm-flow { to { stroke-dashoffset: -42; } }
.rc-hm-flow[data-focus] .rc-hm-line:not(.is-on) { opacity: .18; }
.rc-hm-col { min-width: 0; }
.rc-hm-head { margin-bottom: 16px; text-align: center; }
.rc-hm-head b { display: block; font-size: 20px; font-weight: 600; }
.rc-hm-head span { display: block; margin-top: 2px; font-size: 13px; color: #9AA8A7; }
.rc-hm-head.red b { color: #FB7185; } .rc-hm-head.teal b { color: #3BEEE2; }
.rc-hm-mapcard { position: relative; background: #fff; color: #14141E; border-radius: 18px; overflow: hidden; box-shadow: 0 40px 100px -50px rgba(0,0,0,.9), 0 0 0 1px rgba(244,63,94,.18), 0 0 60px -20px rgba(244,63,94,.35); }
.rc-hm-map { position: relative; aspect-ratio: 4 / 3; background: #EEF2F0; overflow: hidden; }
.rc-hm-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.rc-hm-pin { transition: opacity .25s; }
.rc-hm-pin text { pointer-events: none; }
.rc-hm-ring { opacity: .35; }
.rc-hm-pin.is-on .rc-hm-ring { opacity: 1; }
.rc-hm-flow[data-focus] .rc-hm-pin:not(.is-on) { opacity: .45; }
.rc-hm-legend { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.92); border-radius: 8px; padding: 5px 10px; font-size: 11px; color: #6B7280; }
.rc-hm-legend i { width: 72px; height: 6px; border-radius: 6px; background: linear-gradient(90deg, rgba(250,204,21,.45), #F97316, #E11D48); }
.rc-hm-cards { display: flex; flex-direction: column; gap: 16px; }
.rc-hm-card { position: relative; border-radius: 16px; padding: 16px 18px; text-align: left; color: #fff; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)), #04201E; border: 1px solid rgba(59,238,226,.22); box-shadow: 0 0 0 1px rgba(0,0,0,.2), 0 0 40px -24px rgba(59,238,226,.6); transition: border-color .25s, opacity .25s, transform .25s; }
.rc-hm-card:hover, .rc-hm-card.is-on { border-color: rgba(59,238,226,.6); transform: translateX(-2px); }
.rc-hm-flow[data-focus] .rc-hm-card:not(.is-on) { opacity: .5; }
.rc-hm-dot { position: absolute; left: -6px; top: 50%; width: 11px; height: 11px; margin-top: -5.5px; border-radius: 50%; background: #3BEEE2; box-shadow: 0 0 0 4px rgba(59,238,226,.18), 0 0 12px #3BEEE2; }
.rc-hm-card-h { display: flex; align-items: center; gap: 10px; }
.rc-hm-card-h h3 { flex: 1; min-width: 0; font-size: 16px; font-weight: 600; line-height: 1.3; }
.rc-hm-badge { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; font-size: 12px; font-weight: 700; color: #fff; background: var(--c); box-shadow: 0 0 12px -2px var(--c); }
.rc-hm-n { flex: none; font-size: 12px; color: #9AA8A7; } .rc-hm-n b { font-size: 18px; color: #fff; font-variant-numeric: tabular-nums; margin-right: 2px; }
.rc-hm-why { margin-top: 4px; padding-left: 34px; font-size: 13px; color: #B9C6C5; }
.rc-hm-fix { display: flex; gap: 8px; margin-top: 12px; padding: 9px 10px; border-radius: 10px; background: rgba(59,238,226,.08); font-size: 13px; line-height: 1.45; color: #DDF7F4; }
.rc-hm-fix img { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.rc-hm-fix b { color: #3BEEE2; font-weight: 600; }
@media (max-width: 1023px) {
  .rc-hm-flow { grid-template-columns: 1fr; gap: 28px; max-width: 620px; }
  .rc-hm-lines, .rc-hm-gap, .rc-hm-dot { display: none; }
  .rc-hm-card { border-left: 3px solid var(--c); }
  .rc-hm-card:hover { transform: none; }
}
@media (max-width: 639px) {
  .rc-hm-map { aspect-ratio: 4 / 3; }
  .rc-hm-legend { left: 8px; bottom: 8px; }
  .rc-hm-head b { font-size: 18px; }
  .rc-hm-card { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { .rc-hm-pulse { animation: none; display: none; } }

/* ---------- Fuel Guardian: dashboard with AI overlay (FMS page) ---------- */
.rc-fg { position: relative; }
.rc-fg-ai { right: -4%; bottom: 10%; }
.rc-fg-loss { left: -4%; top: 59%; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; font-size: 13px; }
.rc-fg-loss .ic { display: inline-flex; width: 34px; height: 34px; border-radius: 10px; align-items: center; justify-content: center; background: #FEF3C7; color: #B45309; }
.rc-fg-loss b { display: block; font-weight: 600; } .rc-fg-loss small { color: #6B7280; font-size: 12px; }
@media (min-width: 1024px) and (max-width: 1279px) { .rc-fg-ai { right: 1%; } .rc-fg-loss { left: 1%; } }

/* ---------- Fuel loss heatmap mockup (inc-fuel-heatmap.js) ---------- */
.rc-fh { margin: 72px auto 56px; max-width: 1180px; text-align: left; }
.rc-fh-intro { text-align: center; margin-bottom: 28px; }
.rc-fh-intro h3 { margin-top: 10px; font-size: clamp(24px, 3vw, 36px); line-height: 1.2; font-weight: 600; color: #1F2328; }
.rc-fh-intro h3 span { color: #0B6F66; }
.rc-fh-card { display: grid; grid-template-columns: minmax(0, 1fr) 330px; background: #fff; border-radius: 22px; border: 1px solid #E8ECEF; box-shadow: 0 30px 80px -45px rgba(0,22,21,.45); overflow: hidden; }
.rc-fh-main { padding: 22px 24px; min-width: 0; }
.rc-fh-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.rc-fh-top b { display: block; font-size: 16px; font-weight: 600; color: #14141E; } .rc-fh-top small { font-size: 13px; color: #6B7280; }
.rc-fh-read { flex: none; border-radius: 8px; background: #F3F5F6; padding: 4px 10px; font-size: 12px; color: #4B5563; font-variant-numeric: tabular-nums; }
.rc-fh-hot { margin-top: 14px; border-radius: 12px; border: 1px solid #FBC4C4; background: #FFF4F4; padding: 10px 14px; font-size: 13.5px; color: #B42318; }
.rc-fh-hot b { font-weight: 700; }
.rc-fh-scroll { overflow-x: auto; margin-top: 16px; padding-bottom: 4px; }
.rc-fh-grid { display: grid; grid-template-columns: 38px repeat(24, minmax(14px, 1fr)); gap: 4px; min-width: 520px; }
.rc-fh-hr { font-size: 10.5px; color: #8A9399; text-align: center; }
.rc-fh-day { font-size: 12px; color: #6B7280; display: flex; align-items: center; }
.rc-fh-cell { aspect-ratio: 1; border-radius: 4px; background: #F3F5F6; border: 1px solid #E8ECEF; transition: background-color .35s ease, transform .15s; }
.rc-fh-cell.rc-fh-corner { visibility: hidden; }
.rc-fh-cell[data-d]:hover { transform: scale(1.18); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #14141E; }
.rc-fh-cell.l1, .rc-fh-legend .l1 { background: #FDE2E2; border-color: #FBD0D0; }
.rc-fh-cell.l2, .rc-fh-legend .l2 { background: #FBC4C4; border-color: #F9B1B1; }
.rc-fh-cell.l3, .rc-fh-legend .l3 { background: #F99B9B; border-color: #F68A8A; }
.rc-fh-cell.l4, .rc-fh-legend .l4 { background: #F26464; border-color: #EE5555; }
.rc-fh-cell.l5, .rc-fh-legend .l5 { background: #E5252E; border-color: #D61F28; }
.rc-fh-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; font-size: 12px; color: #6B7280; }
.rc-fh-legend i { width: 14px; height: 14px; border-radius: 3px; background: #F3F5F6; border: 1px solid #E8ECEF; }
.rc-fh-total { margin-left: auto; color: #4B5563; }
.rc-fh-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.rc-fh-stats div { border: 1px solid #E8ECEF; border-radius: 12px; padding: 10px 12px; background: #FAFBFB; }
.rc-fh-stats small { display: block; font-size: 12px; color: #6B7280; } .rc-fh-stats b { font-size: 15px; font-weight: 600; color: #14141E; }
.rc-fh-side { border-left: 1px solid #EEF1F4; background: #FAFCFC; padding: 22px 18px; display: flex; flex-direction: column; gap: 12px; }
.rc-fh-side-h { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #14141E; }
.rc-fh-pats { display: flex; flex-direction: column; gap: 6px; }
.rc-fh-pat { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid #E8ECEF; background: #fff; text-align: left; transition: border-color .2s, box-shadow .2s, background .2s; }
.rc-fh-pat:hover { border-color: #BDEBE6; }
.rc-fh-pat[aria-pressed="true"] { border-color: #14A99C; background: #F0FBFA; box-shadow: 0 0 0 3px rgba(20,169,156,.12); }
.rc-fh-pat:focus-visible { outline: 2px solid #14A99C; outline-offset: 2px; }
.rc-fh-pat .dot { width: 9px; height: 9px; flex: none; border-radius: 50%; }
.rc-fh-pat .tx { flex: 1; min-width: 0; } .rc-fh-pat .tx b { display: block; font-size: 13.5px; font-weight: 600; color: #14141E; }
.rc-fh-pat .tx em { font-style: normal; margin-left: 4px; border: 1px solid #E3E7EA; border-radius: 6px; padding: 0 6px; font-size: 11px; font-weight: 600; color: #374151; }
.rc-fh-pat .tx small { display: block; font-size: 12px; color: #6B7280; line-height: 1.4; }
.rc-fh-pat .lt { flex: none; font-size: 13px; font-weight: 700; color: #B42318; }
.rc-fh-note { margin-top: auto; font-size: 12px; color: #6B7280; line-height: 1.5; }
.rc-fh-foot { margin-top: 10px; text-align: center; font-size: 12px; color: #8A9399; }
@media (max-width: 1023px) {
  .rc-fh-card { grid-template-columns: 1fr; }
  .rc-fh-side { border-left: 0; border-top: 1px solid #EEF1F4; }
}
@media (max-width: 639px) {
  .rc-fh-main { padding: 18px 16px; }
  .rc-fh-read { display: none; }
  .rc-fh-scroll { overflow: visible; }
  .rc-fh-grid { min-width: 0; gap: 2px; grid-template-columns: 30px repeat(24, minmax(0, 1fr)); }
  .rc-fh-cell { border-radius: 2px; }
  .rc-fh-hr { font-size: 9px; }
  .rc-fh-day { font-size: 11px; }
  .rc-fh-stats { grid-template-columns: 1fr; }
}

/* ---------- Trip Hub replay: DMS / ADAS tag and plain-words explainer ---------- */
.rc-tr-tag { display: inline-block; margin-right: 5px; border-radius: 4px; padding: 0 4px; font-style: normal; font-size: 10px; font-weight: 700; letter-spacing: .03em; background: #EEF2FF; color: #4338CA; vertical-align: 1px; }
.rc-tr-explain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; max-width: 1080px; margin: 24px auto 0; }
.rc-tr-explain li { display: flex; gap: 12px; border: 1px solid rgba(59,238,226,.16); border-radius: 16px; padding: 16px; background: rgba(255,255,255,.03); }
.rc-tr-ex-ico { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 11px; background: rgba(59,238,226,.12); color: #3BEEE2; }
.rc-tr-ex-h { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rc-tr-ex-h b { font-size: 15px; font-weight: 600; color: #fff; }
.rc-tr-ex-h em { font-style: normal; font-size: 10.5px; font-weight: 600; border-radius: 999px; padding: 1px 7px; background: rgba(59,238,226,.14); color: #3BEEE2; }
.rc-tr-explain li p:last-child { margin-top: 4px; font-size: 13px; line-height: 1.5; color: #B9C6C5; }
@media (max-width: 1023px) { .rc-tr-explain { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .rc-tr-explain { grid-template-columns: 1fr; } }

/* ---------- BMS: detailed battery analysis (tabs + rebuilt dashboard panels) ---------- */
.rc-bx { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 8fr); gap: 28px; align-items: start; }
.rc-bx-tabs { display: grid; gap: 10px; }
.rc-bx-tab { display: flex; gap: 14px; align-items: flex-start; width: 100%; text-align: left; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(255,255,255,.1); background: rgba(255,255,255,.03); color: #fff; cursor: pointer; transition: background .2s, border-color .2s; }
.rc-bx-tab:hover { border-color: rgba(59,238,226,.4); }
.rc-bx-tab.is-on { background: rgba(59,238,226,.1); border-color: #3BEEE2; }
.rc-bx-tab:focus-visible { outline: 3px solid #3BEEE2; outline-offset: 2px; }
.rc-bx-tab .n { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: rgba(255,255,255,.08); color: #C6C6C6; }
.rc-bx-tab.is-on .n { background: #3BEEE2; color: #00302C; }
.rc-bx-tab b { display: block; font-size: 16px; font-weight: 600; }
.rc-bx-tab small { display: block; margin-top: 2px; font-size: 14px; line-height: 1.45; color: #AFC0BF; }
.rc-bx-win { background: #fff; color: #14141E; border-radius: 20px; overflow: hidden; box-shadow: 0 40px 100px -40px rgba(0,0,0,.8), 0 0 0 1px rgba(59,238,226,.16); }
.rc-bx-body { padding: 22px; min-height: 310px; }
.rc-bx-panel { animation: rcBxIn .35s ease; }
@keyframes rcBxIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.rc-bx-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rc-bx-sum > div { border: 1px solid #EEF1F4; border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.rc-bx-sum span { font-size: 12.5px; color: #6B7280; }
.rc-bx-sum b { font-size: 26px; font-weight: 600; line-height: 1.1; }
.rc-bx-sum b.amber { color: #D97706; } .rc-bx-sum b.green { color: #0B6F66; }
.rc-bx-sum em { font-style: normal; font-size: 12px; color: #8A9592; }
.rc-bx-sum i { display: block; height: 6px; border-radius: 6px; background: linear-gradient(90deg, var(--c, #14A99C) var(--w), #E8F0EF var(--w)); }
.rc-bx-stats { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.rc-bx-stats span { font-size: 12.5px; color: #5B6470; background: #F4F7F7; border-radius: 999px; padding: 4px 11px; }
.rc-bx-stats b { color: #14141E; font-weight: 600; }
.rc-bx-stats .bad { background: #FEE2E2; color: #991B1B; } .rc-bx-stats .bad b { color: #991B1B; }
.rc-bx-cells { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; }
.rc-bx-cells .c { position: relative; height: 92px; border-radius: 8px; background: #F2F5F5; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; }
.rc-bx-cells .c i { display: block; height: var(--h); background: #2A9D8F; border-radius: 6px 6px 0 0; transition: height .5s ease; }
.rc-bx-cells .c.watch i { background: #F59E0B; }
.rc-bx-cells .c.weak { box-shadow: inset 0 0 0 2px #EF4444; } .rc-bx-cells .c.weak i { background: #EF4444; }
.rc-bx-cells .c small { position: absolute; top: 6px; left: 0; right: 0; text-align: center; font-size: 11px; color: #6B7280; }
.rc-bx-cells .c.weak small { color: #B91C1C; font-weight: 700; }
.rc-bx-therm { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.rc-bx-therm .t { border-radius: 10px; padding: 12px 6px; text-align: center; font-size: 20px; font-weight: 600; background: #DCFCE7; color: #15803D; border: 1px solid rgba(0,0,0,.04); }
.rc-bx-therm .t small { display: block; font-size: 11px; font-weight: 500; color: inherit; opacity: .75; margin-bottom: 2px; }
.rc-bx-therm .cool { background: #E0ECFF; color: #2563EB; }
.rc-bx-therm .warm { background: #FEF3C7; color: #B45309; }
.rc-bx-therm .hot { background: #FEE2E2; color: #DC2626; box-shadow: inset 0 0 0 2px #F87171; }
.rc-bx-chart { width: 100%; height: auto; display: block; }
.rc-bx-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; font-size: 12.5px; color: #5B6470; }
.rc-bx-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rc-bx-legend i { width: 10px; height: 10px; border-radius: 3px; background: #2A9D8F; }
.rc-bx-legend i.watch { background: #F59E0B; } .rc-bx-legend i.weak { background: #EF4444; } .rc-bx-legend i.cool { background: #3B82F6; }
.rc-bx-legend i.dash { height: 0; width: 16px; border-top: 2px dashed #0B6F66; background: none; border-radius: 0; }
.rc-bx-verdict { display: flex; align-items: center; gap: 12px; padding: 14px 22px; background: linear-gradient(90deg, #E6FAF8, #F2FCFB); border-top: 1px solid #DDF3F1; }
.rc-bx-verdict img { flex: none; border-radius: 50%; }
.rc-bx-verdict p { font-size: 14px; line-height: 1.5; color: #2F3A3A; }
.rc-bx-verdict p b { color: #0B6F66; }
.rc-bx-risk { flex: none; margin-left: auto; border-radius: 999px; background: #FEF3C7; color: #92400E; font-size: 12.5px; font-weight: 600; padding: 4px 11px; white-space: nowrap; }
@media (max-width: 1023px) {
  .rc-bx { grid-template-columns: 1fr; }
  .rc-bx-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .rc-bx-tabs { display: flex; overflow-x: auto; gap: 8px; scrollbar-width: none; }
  .rc-bx-tab { flex: none; width: auto; padding: 10px 14px; }
  .rc-bx-tab small { display: none; }
  .rc-bx-body { padding: 14px; min-height: 0; }
  .rc-bx-sum { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-bx-sum b { font-size: 21px; }
  .rc-bx-cells { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rc-bx-cells .c { height: 64px; }
  .rc-bx-therm { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rc-bx-therm .t { font-size: 16px; padding: 8px 4px; }
  .rc-bx-verdict { flex-wrap: wrap; padding: 14px; }
  .rc-bx-risk { margin-left: 40px; }
}
@media (prefers-reduced-motion: reduce) { .rc-bx-panel { animation: none; } }

/* ---------- Fuel: live map with the Fuel Level row highlighted ---------- */
.rc-fmap .relative { position: relative; }
.rc-fmap-ring { position: absolute; left: 68.6%; top: 85.4%; width: 30.4%; height: 5.6%; border-radius: 10px; box-shadow: 0 0 0 3px #14A99C, 0 0 0 9px rgba(20,169,156,.22); animation: rcRing 2.2s ease-in-out infinite; pointer-events: none; }
@keyframes rcRing { 50% { box-shadow: 0 0 0 3px #14A99C, 0 0 0 15px rgba(20,169,156,.06); } }
.rc-fmap-tag { position: absolute; right: 4%; top: 78.5%; display: inline-flex; align-items: center; gap: 6px; background: #0B3A36; color: #fff; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 6px 12px; box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); }
.rc-fmap-tag svg { color: #3BEEE2; }
@media (max-width: 639px) { .rc-fmap-tag { font-size: 11px; padding: 4px 9px; top: 76%; } }
@media (prefers-reduced-motion: reduce) { .rc-fmap-ring { animation: none; } }

/* ---------- Defence: AI-enabled camera ---------- */
.rc-cam-stage { position: relative; aspect-ratio: 1 / 1; max-width: 520px; margin: 0 auto; width: 100%; }
.rc-cam-glow { position: absolute; inset: 6%; border-radius: 50%; background: radial-gradient(circle, rgba(59,238,226,.28) 0%, rgba(59,238,226,0) 68%); }
.rc-cam-stage::before { content: ""; position: absolute; inset: 2%; border-radius: 50%; border: 1px dashed rgba(59,238,226,.35); }
.rc-cam-img { position: absolute; left: 14%; top: 14%; width: 72%; height: 72%; object-fit: cover; border-radius: 50%; background: #fff; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 0 0 6px rgba(255,255,255,.06); }
.rc-cam-chip { position: absolute; left: var(--x); top: var(--y); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font-size: 13px; font-weight: 600; color: #fff; background: rgba(0,22,21,.82); border: 1px solid rgba(59,238,226,.35); border-radius: 999px; padding: 7px 12px; backdrop-filter: blur(6px); box-shadow: 0 14px 30px -14px rgba(0,0,0,.8); }
.rc-cam-chip i { width: 8px; height: 8px; border-radius: 50%; background: #3BEEE2; box-shadow: 0 0 0 4px rgba(59,238,226,.18); }
.rc-cam-chip i.red { background: #F43F5E; box-shadow: 0 0 0 4px rgba(244,63,94,.2); }
.rc-cam-chip i.amber { background: #F59E0B; box-shadow: 0 0 0 4px rgba(245,158,11,.2); }
@media (max-width: 639px) { .rc-cam-chip { font-size: 11px; padding: 5px 9px; } }

/* ---------- Emergency: live ambulance cameras ---------- */
.rc-amb { background: #0E1414; border-radius: 22px; padding: 12px; color: #fff; box-shadow: 0 40px 90px -40px rgba(0,22,21,.6); }
.rc-amb-top { display: flex; align-items: center; gap: 10px; padding: 4px 6px 12px; font-size: 13px; color: #AFC0BF; }
.rc-amb-top b { color: #fff; font-weight: 600; }
.rc-amb-live { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #fff; background: #E11D48; border-radius: 6px; padding: 3px 8px; }
.rc-amb-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: rcBlink 1.4s infinite; }
@keyframes rcBlink { 50% { opacity: .2; } }
.rc-amb-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rc-amb-grid figure { position: relative; margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: #1C2424; }
.rc-amb-grid video { width: 100%; height: 100%; object-fit: cover; display: block; }
.rc-amb-grid figcaption { position: absolute; left: 10px; top: 10px; font-size: 11.5px; font-weight: 600; background: rgba(0,0,0,.55); border-radius: 6px; padding: 3px 8px; }
.rc-amb-alert { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; background: rgba(255,255,255,.95); color: #9F1239; border-radius: 10px; padding: 7px 10px; }
.rc-amb-alert i, .rc-amb-foot i { width: 8px; height: 8px; border-radius: 50%; background: #F43F5E; flex: none; }
.rc-amb-foot { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 6px 4px; font-size: 12.5px; color: #AFC0BF; }
.rc-amb-foot span:first-child { display: inline-flex; align-items: center; gap: 7px; color: #fff; }
.rc-amb-foot span:first-child i { background: #3BEEE2; }
@media (max-width: 639px) { .rc-amb-top span:last-child { display: none; } .rc-amb-grid { grid-template-columns: 1fr; } }

/* ---------- Pharma: route optimiser ---------- */
.rc-ro { background: #fff; color: #14141E; border-radius: 22px; overflow: hidden; border: 1px solid #E8ECEC; box-shadow: 0 40px 90px -40px rgba(0,22,21,.35); }
.rc-ro-body { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
.rc-ro-map svg { display: block; width: 100%; height: 100%; min-height: 300px; }
.rc-ro-path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: rcRoDraw 2.4s ease-out .3s forwards; }
@keyframes rcRoDraw { to { stroke-dashoffset: 0; } }
.rc-ro-side { border-left: 1px solid #EEF1F4; padding: 14px; }
.rc-ro-h { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #6B7280; margin-bottom: 8px; }
.rc-ro-list { display: grid; gap: 4px; }
.rc-ro-list li { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-bottom: 1px solid #F2F4F5; }
.rc-ro-list li:last-child { border-bottom: 0; }
.rc-ro-list .n { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; background: #E6FAF8; color: #0B6F66; }
.rc-ro-list div { min-width: 0; }
.rc-ro-list b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-ro-list small { display: block; font-size: 11px; color: #8A9592; }
.rc-ro-list em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 600; color: #0B6F66; }
.rc-ro-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid #EEF1F4; }
.rc-ro-stats div { padding: 12px 16px; border-right: 1px solid #EEF1F4; }
.rc-ro-stats div:last-child { border-right: 0; }
.rc-ro-stats b { display: block; font-size: 18px; font-weight: 600; color: #0B3A36; }
.rc-ro-stats span { font-size: 12px; color: #6B7280; }
@media (max-width: 767px) {
  .rc-ro-body { grid-template-columns: 1fr; }
  .rc-ro-side { border-left: 0; border-top: 1px solid #EEF1F4; }
  .rc-ro-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rc-ro-stats div:nth-child(2) { border-right: 0; }
  .rc-ro-stats div:nth-child(-n+2) { border-bottom: 1px solid #EEF1F4; }
}
@media (prefers-reduced-motion: reduce) { .rc-ro-path { animation: none; stroke-dashoffset: 0; } .rc-amb-live::before { animation: none; } }

/* ---------- Shift scheduler (Pharma, E-commerce, Food) ---------- */
.rc-sch { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 56px; align-items: center; }
.rc-sch-ic { width: 64px; height: 64px; border-radius: 16px; display: grid; place-items: center; color: #0B6F66; background: linear-gradient(180deg, #E6FAF8, #CDEFEB); }
.rc-sch-steps { margin-top: 24px; display: grid; gap: 12px; }
.rc-sch-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border: 1px solid #E8ECEC; border-radius: 14px; background: #fff; }
.rc-sch-steps b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: #14A99C; color: #fff; }
.rc-sch-steps span { font-size: 14px; line-height: 1.45; color: #5B6470; }
.rc-sch-steps strong { display: block; font-size: 16px; font-weight: 600; color: #14141E; }
.rc-sch-visual { position: relative; padding-bottom: 56px; }
.rc-sch-visual .relative { position: relative; }
.rc-sch-ring { position: absolute; left: 80.2%; top: 30.6%; width: 12.6%; height: 44.2%; border-radius: 10px; box-shadow: 0 0 0 3px #14A99C, 0 0 0 9px rgba(20,169,156,.2); animation: rcRing 2.2s ease-in-out infinite; pointer-events: none; }
.rc-sch-tag { position: absolute; right: 2%; top: 23.5%; background: #0B3A36; color: #fff; font-size: 13px; font-weight: 600; border-radius: 999px; padding: 6px 12px; white-space: nowrap; box-shadow: 0 12px 30px -12px rgba(0,0,0,.5); }
.rc-sch-drawer { position: absolute; left: -28px; bottom: 0; width: 54%; border-radius: 16px; overflow: hidden; background: #fff; box-shadow: 0 30px 70px -24px rgba(0,22,21,.45), 0 0 0 1px rgba(0,0,0,.06); }
.rc-sch-drawer img { display: block; width: 100%; height: auto; }
@media (max-width: 1279px) { .rc-sch { grid-template-columns: 1fr; gap: 32px; } .rc-sch-drawer { left: 12px; } }
@media (max-width: 639px) {
  .rc-sch-visual { padding-bottom: 0; }
  .rc-sch-drawer { position: static; width: 100%; margin-top: 12px; }
  .rc-sch-tag { font-size: 10px; padding: 3px 7px; top: 22%; }
}
@media (prefers-reduced-motion: reduce) { .rc-sch-ring { animation: none; } }

/* Shared site button, as used on the redesigned pages (main.css keeps the older size for the rest of the site). */
.custom-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; line-height: 1.2; padding: 12px 20px; }
