/* The "See it for yourself" demonstrations: a real screenshot with live parts over it. The screenshot is always the
   light theme, so the live parts use fixed colours that match the product, not the site's theme. Slots use physical
   left/top because they are positioned over a picture, which does not mirror in right-to-left. */
.afwrap { overflow-x: auto; border-radius: 14px; border: 1px solid #d3ddea; background: #f1f6fe; }
.af { position: relative; container-type: inline-size; min-inline-size: 720px; color: #051b3a; font-family: var(--font); direction: ltr; text-align: left; }
.af > img { display: block; inline-size: 100%; block-size: 100%; user-select: none; }
.af__slot { position: absolute; box-sizing: border-box; overflow: hidden; font-size: clamp(8px, 1.15cqw, 16px); }
.af button, .af input { font-family: inherit; }

/* 3D viewer in its screen */
.af__viewer { background: #fff; border: 1px solid #c9d3e0; display: flex; flex-direction: column; border-radius: 4px; }
.af__viewer .viewer__canvas { flex: 1; min-block-size: 0; aspect-ratio: auto; block-size: auto; border: 0; border-radius: 0; background: #f6f9fd; }
.af__viewer .viewer__tools { display: flex; gap: 0.5em; padding: 0.5em; background: #fff; flex-wrap: wrap; }
.af__viewer .btn--small { min-block-size: 0; padding: 0.35em 0.9em; font-size: 1em; border-radius: 4px; border: 1px solid #c9d3e0; background: #fff; color: #051b3a; }
.af__panel { background: #fff; border: 1px solid #c9d3e0; padding: 0.8em 1em; overflow: auto; }
.af__panel .viewer__panel { background: transparent; border: 0; padding: 0; }
.af__panel h4 { margin: 0 0 0.4em; font-size: 1.15em; }
.af__panel .props { font-size: 1em; color: #051b3a; } .af__panel .props dt { color: #4a5b73; }

/* Map with a satellite base map */
.af__layers { background: #fff; border: 1px solid #d3ddea; }
.af__layers .layers { border: 0; margin: 0; padding: 0.5em 0.8em; display: flex; flex-wrap: wrap; gap: 0.2em 1.2em; align-items: center; }
.af__layers legend { font-size: 1.1em; padding: 0 0.3em; color: #051b3a; }
.af__layers .check { min-block-size: 0; font-size: 1em; gap: 0.4em; padding: 0; font-weight: 500; }
.af__layers .check input { inline-size: 1.1em; block-size: 1.1em; }
.af__layers .layers__bar { margin: 0; display: flex; gap: 0.4em; }
.af__layers .btn--small { min-block-size: 0; padding: 0.2em 0.8em; font-size: 1em; border-radius: 4px; background: #fff; color: #051b3a; border: 1px solid #c9d3e0; }
.af__map { background: #3a2c22; border: 1px solid #c9d3e0; }
.af__map svg.map { display: block; inline-size: 100%; block-size: 100%; border: 0; border-radius: 0; background: #3a2c22; }
.af__map .map-bg--plain, .af__map .map-grid--plain { display: none; }
.af__map svg.is-plain .basemap { display: none; }
.af__map svg.is-plain .map-bg--plain { display: block; fill: #0d2a52; } .af__map svg.is-plain .map-grid--plain { display: block; }
.af__map .seg--map { position: absolute; inset-block-start: 0.6em; right: 0.6em; margin: 0; padding: 0.15em; background: rgba(255, 255, 255, 0.92); }
.af__map .seg--map .seg__btn { min-block-size: 0; padding: 0.25em 0.8em; font-size: 1em; color: #051b3a; }
.af__imagery { position: absolute; left: 0.6em; bottom: 0.5em; font-size: 0.85em; color: #fff; background: rgba(5, 27, 58, 0.6); padding: 0.15em 0.6em; border-radius: 99px; max-inline-size: 80%; }
.af__card { background: #fff; border: 1px solid #d3ddea; padding: 0.8em 1em; overflow: auto; }
.af__card .mapcard h4 { margin: 0 0 0.3em; font-size: 1.1em; } .af__card .props { font-size: 1em; } .af__card .muted { color: #4a5b73; margin: 0; }

/* Executive report */
.af__cover { background: #f1f6fe; border: 2px dashed #b8c6d9; display: grid; place-items: center; color: #4a5b73; font-weight: 600; font-size: clamp(9px, 1.3cqw, 18px); }
.af__cover[hidden] { display: none; }
.af__tint { mix-blend-mode: multiply; pointer-events: none; clip-path: polygon(0 18%, 4.5% 18%, 4.5% 0, 100% 0, 100% 100%, 0 100%); }
.af__tint svg { display: block; inline-size: 100%; block-size: 100%; }
.af__tint[hidden] { display: none; }
.af__hot { overflow: visible; }
.af__hotbtn { position: absolute; inset: 0; inline-size: 100%; block-size: 100%; background: transparent; border: 2px solid transparent; border-radius: 6px; cursor: pointer; padding: 0; animation: afpulse 2.4s ease-in-out infinite; }
.af__hotbtn:hover, .af__hotbtn:focus-visible, .af__hotbtn.is-on { border-color: #e4a92c; background: rgba(228, 169, 44, 0.12); animation: none; outline: none; }
.af__hotbtn:focus-visible { box-shadow: 0 0 0 3px #1f4fa3; }
@keyframes afpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(228, 169, 44, 0); } 50% { box-shadow: 0 0 0 4px rgba(228, 169, 44, 0.35); } }
@media (prefers-reduced-motion: reduce) { .af__hotbtn { animation: none; } }
.af__note { margin: 0.8rem 0 0; padding: 0.7rem 1rem; border-radius: 12px; background: var(--accent-soft); color: var(--ink); border: 1px solid var(--line); min-block-size: 3em; }

/* Benchmarks */
.af__compare { background: #fff; border: 1px solid #d3ddea; padding: 1em 1.4em; overflow: auto; }
.af__compare h3 { margin: 0 0 0.3em; font-size: 1.5em; }
.af__compare p { margin: 0 0 0.5em; font-size: 1.05em; color: #051b3a; line-height: 1.4; }
.af__row { display: flex; gap: 1.2em; align-items: center; flex-wrap: wrap; }
.af__switch { display: inline-flex; align-items: center; gap: 0.5em; font-weight: 600; cursor: pointer; }
.af__switch input { inline-size: 1.3em; block-size: 1.3em; accent-color: #e4a92c; }
.af__seg { display: inline-flex; gap: 0.4em; flex-wrap: wrap; }
.af__pill { padding: 0.4em 1em; border-radius: 4px; border: 1px solid #c9d3e0; background: #fff; color: #051b3a; font-size: 1em; font-weight: 600; cursor: pointer; }
.af__pill[aria-pressed='true'] { background: #e4a92c; border-color: #e4a92c; }
.af__pill:disabled { opacity: 0.45; cursor: not-allowed; }
.af__status { margin: 0.4em 0 0; font-size: 0.95em; color: #4a5b73; }
.af__cards { overflow: auto; background: #f1f6fe; }
.af__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.2em; }
.af__metric { background: #fff; border: 1px solid #d3ddea; padding: 0.8em 1em; min-inline-size: 0; }
.af__metric h3 { margin: 0; font-size: 1.2em; line-height: 1.2; }
.af__q { margin: 0 0 0.4em; color: #4a5b73; font-size: 1em; }
.af__r { display: flex; justify-content: space-between; gap: 0.6em; margin: 0 0 0.25em; font-size: 0.95em; color: #4a5b73; } .af__r b { color: #051b3a; text-align: right; }
.af__r--other b { color: #8a5e0b; }
.af__v { margin: 0.5em 0; font-size: 1em; }
.af__yours { margin: 0.4em 0 0.2em; font-weight: 700; font-size: 1em; }
.af__metric ul { margin: 0; padding-left: 1.3em; font-size: 0.95em; }
.af__track { position: relative; block-size: 0.8em; border-radius: 99px; background: #e8eef7; margin-block: 0.7em; }
.af__band { position: absolute; inset-block: 0; left: 30%; width: 40%; background: rgba(228, 169, 44, 0.45); border-radius: 99px; }
.af__dot { position: absolute; inset-block-start: 50%; inline-size: 1.2em; block-size: 1.2em; margin-inline-start: -0.6em; transform: translateY(-50%); border-radius: 50%; background: #051b3a; border: 2px solid #fff; transition: inset-inline-start 0.4s; }

/* Data flow */
.dflowwrap { overflow-x: auto; }
.dflow { display: block; inline-size: 100%; min-inline-size: 640px; block-size: auto; font-family: var(--font); }
.dflow text { fill: var(--ink); font-size: 13px; font-weight: 600; pointer-events: none; }
.dflow__p { fill: none; stroke: var(--line); stroke-width: 2.5; transition: stroke 0.3s; }
.dflow__p.is-lit { stroke: var(--accent); stroke-width: 3.5; }
.dflow__p--aside.is-lit { stroke: #c0392b; }
.dflow__head { fill: var(--line); }
.dflow__node rect, .dflow__layer > rect { fill: var(--surface); stroke: var(--line); stroke-width: 2; transition: all 0.3s; }
.dflow__node, .dflow__layer { cursor: pointer; }
.dflow__node:focus-visible rect, .dflow__layer:focus-visible > rect { stroke: var(--focus); stroke-width: 3.5; outline: none; }
.dflow__node:hover rect, .dflow__layer:hover > rect, .dflow .is-lit > rect { stroke: var(--accent); }
.dflow .is-lit > rect { fill: var(--accent-soft); stroke-width: 3; }
.dflow__layer--bronze > rect { fill: color-mix(in srgb, #b87333 18%, var(--surface)); }
.dflow__layer--silver > rect { fill: color-mix(in srgb, #8a99b3 22%, var(--surface)); }
.dflow__layer--gold > rect { fill: color-mix(in srgb, #e4a92c 22%, var(--surface)); }
.dflow__lt { font-size: 15px !important; font-weight: 800 !important; } .dflow__ls { font-size: 9.5px !important; font-weight: 500 !important; fill: var(--muted) !important; }
.dflow__row { fill: var(--surface) !important; stroke: var(--line) !important; stroke-width: 1 !important; }
.dflow__n { font-size: 20px !important; font-weight: 800 !important; }
.dflow__bin rect { stroke-dasharray: 6 4; }
.dflow__pkt { fill: var(--accent); stroke: #051b3a; stroke-width: 2; opacity: 0; transition: opacity 0.2s; }
.dflow__pkt.is-on { opacity: 1; } .dflow__pkt.is-bad { fill: #c0392b; stroke: #fff; }
.dflow__status { min-block-size: 3em; margin: 0.6rem 0 0; padding: 0.6rem 0.9rem; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--line); }

.af__map .seg--map .seg__btn[aria-pressed='true'] { background: #e4a92c; color: #051b3a; }
.af__foot { background: #f1f6fe; display: flex; align-items: center; padding-inline: 0.8em; color: #4a5b73; font-size: clamp(8px, 1cqw, 14px); }
