/* Shared product presentation. Scoped to product pages; original media and CMS layouts remain intact. */
body:is([data-library="product"], [data-library="edge-box"], [data-library="edge-intelligence"], [data-library="coral-platform"], [data-library="smart-parking"], [data-library="robot-patrol"], [data-library="retail-loss"]) {
  --product-navy: #102735;
  --product-paper: #f5f6f3;
  --product-line: #d6dfdf;
  --product-copy: #526571;
  --product-accent: #236579;
}
:is(.edge-product,.coral-product,.parking-product,.patrol-product,.retail-product) :is(.section-shell,.edge-shell,.coral-shell,.patrol-shell,.retail-shell) { max-width: 1400px; }
:is(.edge-product,.coral-product,.parking-product,.patrol-product,.retail-product) :is(h1,h2,h3) { text-wrap: balance; }
:is(.edge-product,.coral-product,.parking-product,.patrol-product,.retail-product) :is(h2,[id]) { scroll-margin-top: 135px; }
:is(.edge-hero,.patrol-hero,.retail-hero,.coral-hero) { background: radial-gradient(ellipse at 83% 20%, #244c60 0%, transparent 66%), #102735; }
:is(.edge-hero,.patrol-hero,.retail-hero) h1 { font-size: clamp(38px,4.7vw,68px); line-height: 1.15; letter-spacing: -.045em; }
:is(.edge-hero-grid,.patrol-hero-grid,.retail-hero-grid) { grid-template-columns: minmax(0,.85fr) minmax(0,1.15fr); gap: clamp(28px,4vw,58px); }
:is(.edge-photo-hero,.patrol-media-hero,.retail-media-hero,.coral-photo-hero) { border-radius: 12px; box-shadow: 0 20px 60px #0003; overflow: hidden; }
.edge-product { --edge-accent:#aedbed; --edge-highlight:#d0eef8; }
.patrol-product { --patrol-accent:#e9cb9c; --patrol-accent-bright:#f1dcc0; }
.retail-product { --retail-accent:#a5dcd1; --retail-blue:#b4d5ec; }
.coral-product { --coral-accent:#a5dce3; }
.product-section-nav { background:#fff; border-block:1px solid var(--product-line); color:var(--product-navy); }
.product-section-nav > div { display:flex; gap:30px; align-items:center; min-height:66px; overflow-x:auto; scrollbar-width:thin; }
.product-section-nav a { flex:none; font-size:14px; padding-block:20px; border-bottom:2px solid transparent; color:#48606d; transition:color .2s,border-color .2s; }
.product-section-nav a:hover { color:#163d50; border-color:#46778c; }
.product-section-nav button { margin-left:auto; white-space:nowrap; flex:none; border:0; color:#163d50; font-weight:650; background:transparent; }
.product-section-nav :is(a,button):focus-visible { outline:2px solid #236579; outline-offset:4px; }
/* Airy reading surfaces between the visual hero and the darker workflow. */
:is(.edge-block:not(.edge-workflow),.patrol-section:not(.patrol-workflow):not(.patrol-architecture):not(.patrol-contact),.retail-section-overview,.retail-section-algorithms,.retail-section-scenarios,.retail-section-values,.coral-twin-agents,.coral-twin-value,.coral-twin-capabilities) {
  background:var(--product-paper); color:var(--product-navy);
  --edge-text:#142f3f; --edge-copy:#526571; --edge-muted:#61717c; --edge-rule:#d6dfdf; --edge-panel:#fff; --edge-accent:#276982;
  --patrol-ink:#142f3f; --patrol-copy:#526571; --patrol-muted:#61717c; --patrol-line:#d6dfdf; --patrol-card:#fff; --patrol-accent:#875f2b;
  --retail-ink:#142f3f; --retail-copy:#526571; --retail-muted:#61717c; --retail-border:#d6dfdf; --retail-panel:#fff; --retail-accent:#236f67;
  --coral-text:#142f3f; --coral-copy:#526571; --coral-muted:#61717c; --coral-rule:#d6dfdf; --coral-surface:#fff; --coral-accent:#236579;
}
:is(.edge-block,.patrol-section,.retail-section,.parking-section,.coral-product-twin .coral-block) { padding-block:clamp(40px,5.4vw,76px); }
:is(.edge-section-heading,.patrol-section-header,.retail-section-intro) { margin-bottom:28px; max-width:880px; }
:is(.edge-block,.patrol-section,.retail-section,.parking-section,.coral-block) h2 { font-size:clamp(25px,2.7vw,38px); line-height:1.3; letter-spacing:-.025em; }
:is(.edge-algorithm-grid,.patrol-card-grid,.retail-algorithms-grid,.retail-scenarios-grid,.coral-capability-grid) { gap:20px; }
:is(.edge-algorithm-card,.edge-scenario-card,.patrol-card,.retail-card,.coral-capability,.coral-theme,.parking-feature-card,.parking-scene) { border-radius:10px; overflow:hidden; border:1px solid var(--product-line); box-shadow:0 4px 14px #18344404; }
:is(.edge-algorithm-card,.edge-scenario-card,.patrol-card,.retail-card,.parking-feature-card,.parking-scene) { background:#fff; }
:is(.edge-algorithm-copy,.patrol-card-copy,.retail-card-copy,.parking-scene-copy) { padding:22px; }
:is(.edge-algorithm-card,.patrol-card,.retail-card,.coral-capability,.parking-feature-card) h3 { font-size:20px; line-height:1.4; }
:is(.edge-algorithm-card,.patrol-card,.retail-card,.coral-capability,.parking-feature-card) p { font-size:14px; line-height:1.8; }
:is(.edge-photo,.patrol-media,.retail-media,.coral-photo,.parking-photo) figcaption { font-size:10px; letter-spacing:.02em; }
:is(.edge-algorithm-note,.patrol-state-note) { font-size:12px !important; }
/* Status pills retain deployment truth without competing with product imagery. */
.edge-algorithm-status:is([data-state="pending"],[data-state="adapt"]),
.patrol-algorithm-state:is([data-state="pending"],[data-state="extendable"]),
.retail-algorithm-state, .retail-scenario-status { background:#f3efe5; border-color:#d9c9aa; color:#715729; }
.retail-algorithm-stage { background:#edf3f5; border-color:#c8dade; color:#31616c; }
.coral-capability-status { line-height:1.6; }
.coral-theme-grid[data-lead-theme] > .coral-theme:first-child { background:#e9f0ef; border-color:#c4d5d7; }
.coral-value { border-top-color:#9cafb8; }
.coral-theme .coral-photo { border-radius:7px; overflow:hidden; }
.coral-photo-hero img { object-fit:contain; }
.coral-title-rest { font-size:.47em; line-height:1.35; }
.edge-benefits > div,.patrol-benefits > li,.retail-overview-points > li { border-color:#ccd7db; }
.edge-hardware { background:#edf1f1 !important; }
.edge-specs dt,.edge-benefits dt { color:#163d50; }
.edge-scenario-card .edge-icon { color:#286980; }
.edge-scenario-card { padding:24px; }
.edge-algorithm-grid,.patrol-card-grid,.retail-algorithms-grid { align-items:stretch; }
.patrol-function-icon { color:#876333; }
.patrol-state-note { border-color:#d6dfdf; }
.patrol-algorithm-status { background:#f3efe5; color:#715729; border-color:#d9c9aa; }
.retail-section-rules { background:#122d39; }
.retail-rule-card { border-radius:10px; background:#173744; border-color:#4b6a73; }
.retail-rule-head { padding:22px 25px; }
.retail-rule-limit strong { color:#b6e4d8; font-variant-numeric:tabular-nums; }
.retail-trigger-config { border-radius:8px; }
.retail-section-values :is(h3,svg) { color:#184d53; }
.parking-hero { background:#102735; }
.parking-hero h1 { font-size:clamp(38px,5.1vw,72px); line-height:1.14; }
.parking-feature-grid { gap:18px; background:transparent; border:0; }
.parking-feature-card { padding:26px; }
.parking-scene-copy { padding:24px; }
.parking-photo { overflow:hidden; border-radius:10px; }
.parking-scene .parking-photo { border-radius:0; }
.parking-benefits dt { color:#236579; }
.parking-flow { background:#eaf0f0; }
/* Uploaded-media product: broad visual, compact story, and intact video playback. */
body[data-library="edge-box"] .detail-intro { padding-top:34px; padding-bottom:36px; }
body[data-library="edge-box"] .detail-heading { gap:32px; margin-block:30px; }
body[data-library="edge-box"] .detail-heading h1 { font-size:clamp(34px,4.2vw,62px); line-height:1.18; max-width:12em; }
body[data-library="edge-box"] .detail-heading p { max-width:52em; line-height:1.8; font-size:16px; }
body[data-library="edge-box"] .detail-visual { border-radius:12px; overflow:hidden; }
body[data-library="edge-box"] .detail-photo { max-height:540px; aspect-ratio:16/7; }
body[data-library="edge-box"] .detail-photo img { height:100%; object-fit:cover; }
body[data-library="edge-box"] .article-layout { grid-template-columns:minmax(200px,.32fr) minmax(0,1fr); gap:clamp(28px,6vw,90px); padding-block:45px 70px; }
body[data-library="edge-box"] .article-layout aside { padding:26px; border:1px solid var(--product-line); background:#eaf0ec; border-radius:10px; align-self:start; }
body[data-library="edge-box"] .article-prose h2 { font-size:clamp(24px,2.5vw,34px); margin-block:36px 16px; }
body[data-library="edge-box"] .article-prose h2:first-child { margin-top:0; }
body[data-library="edge-box"] .article-prose p { font-size:16px; line-height:1.9; }
body[data-library="edge-box"] .article-prose :is(img,video) { border-radius:10px; }
body[data-library="edge-box"] .article-video video { width:100%; height:auto; aspect-ratio:16/9; object-fit:contain; }
body[data-library="edge-box"] .contact :is(.contact-top,.contact-heading,.contact-details),body[data-library="product"] .contact :is(.contact-top,.contact-heading,.contact-details) { display:none; }
body:is([data-library="edge-box"],[data-library="product"]) .contact { padding-top:0; }
body:is([data-library="edge-box"],[data-library="product"]) .site-footer { margin-top:0; }
/* Product index aligns imagery and text while preserving readable full titles. */
body[data-library="product"] .library-hero { padding-block:40px 45px; }
body[data-library="product"] .library-hero h1 { font-size:clamp(36px,4.7vw,67px); margin-top:22px; }
body[data-library="product"] .product-grid { gap:38px 26px; }
body[data-library="product"] .product-photo { aspect-ratio:16/9; border-radius:10px; overflow:hidden; }
body[data-library="product"] .product-photo img { width:100%; height:100%; object-fit:cover; }
body[data-library="product"] .product-meta { margin-top:18px; color:#586f7a; }
body[data-library="product"] .product-title { align-items:flex-start; gap:15px; }
body[data-library="product"] .product-title h3 { font-size:clamp(21px,2.1vw,29px); line-height:1.4; }
body[data-library="product"] .product-card > p { font-size:14px; line-height:1.8; margin-top:10px; }
@media (hover:hover) and (prefers-reduced-motion:no-preference) {
  :is(.edge-algorithm-card,.patrol-card,.retail-card,.parking-feature-card) { transition:transform .2s,box-shadow .2s; }
  :is(.edge-algorithm-card,.patrol-card,.retail-card,.parking-feature-card):hover { transform:translateY(-3px); box-shadow:0 12px 28px #173e5010; }
}
@media (max-width:900px) {
  .product-section-nav > div { gap:23px; }
  .patrol-scenario-grid,.retail-scenarios-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:690px) {
  :is(.edge-hero-grid,.patrol-hero-grid,.retail-hero-grid) { grid-template-columns:minmax(0,1fr); }
  .product-section-nav > div { min-height:54px; gap:22px; }
  .product-section-nav a { padding-block:16px; font-size:13px; }
  .product-section-nav button { display:none; }
  :is(.edge-block,.patrol-section,.retail-section,.parking-section,.coral-product-twin .coral-block) { padding-block:38px; }
  :is(.edge-algorithm-grid,.patrol-card-grid,.retail-algorithms-grid,.retail-scenarios-grid,.patrol-scenario-grid,.parking-feature-grid) { grid-template-columns:minmax(0,1fr); gap:18px; }
  :is(.edge-algorithm-copy,.patrol-card-copy,.retail-card-copy) { padding:20px; }
  body[data-library="edge-box"] .article-layout { grid-template-columns:minmax(0,1fr); gap:30px; }
  body[data-library="edge-box"] .detail-photo { aspect-ratio:16/9; }
  body[data-library="product"] .product-grid { gap:30px; }
  body[data-library="product"] .library-decoration { display:none; }
}
body[data-library="retail-loss"] .contact :is(.contact-top,.contact-heading,.contact-details) { display:none; }
body[data-library="retail-loss"] .contact { padding-top:0; }
body[data-library="retail-loss"] .site-footer { margin-top:0; }
.retail-product .retail-algorithm-stage[data-stage] { color:#31616c; background:#edf3f5; border-color:#bfd1d6; }
.retail-product .retail-algorithm-state[data-state] { color:#715729; background:#f3efe5; border-color:#d9c9aa; }
.patrol-overview .patrol-hardware { background:#e9eef0; border-radius:8px; }
.patrol-overview .patrol-hardware h3 { color:#18394a; }
.patrol-overview .patrol-media-device img { background:#e4e9e8; }
body[data-library="edge-box"] .detail-visual { height:auto; }
body[data-library="edge-box"] .detail-photo img { padding:0; mix-blend-mode:normal; }
body[data-library="product"] .product-photo img { mix-blend-mode:normal; }
