/* envs/graphic: explainer graphics, their sketches, placeholders and legends. */

.envs-graphic {
  --g-air: #ffffff;
  --g-water: #d5eef7;
  --g-steel: var(--envs-ink, #0b1d2e);
  --g-envs: var(--envs-blue, #1ba6dc);
  --g-envs-2: var(--envs-blue-deep, #0f7aab);
  --g-frame: #c5ced6;
  --g-foul: var(--envs-orange, #e9a21f);
  --g-footprint: #d9a520;
  --g-text: var(--envs-ink, #0b1d2e);
  --g-muted: var(--envs-text-muted, #5b6c7c);
  margin: 0;
  max-width: 1100px;
}
body.envs .envs-graphic .envs-graphic__title { margin: 0 0 14px; font: 600 clamp(18px, 2vw, 22px)/1.25 var(--envs-sans, sans-serif); color: var(--g-text); }
.envs-graphic__art { border: 1px solid var(--envs-line, #d7dde3); background: var(--envs-surface, #f3f5f7); overflow: hidden; }
.envs-graphic__art > img, .envs-graphic__svg { display: block; width: 100%; height: auto; }
.envs-graphic--sketch .envs-graphic__art { max-width: 760px; }

/* Legend */
body.envs .envs-graphic .envs-graphic__legend { margin: 18px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; counter-reset: g; font-size: 15px; line-height: 1.5; color: var(--envs-text-2, #3d4c5a); }
.envs-graphic--sketch .envs-graphic__legend { max-width: 760px; }
.envs-graphic__legend li { position: relative; margin: 0; padding-left: 34px; counter-increment: g; }
.envs-graphic__legend li::before { content: ""; position: absolute; left: 8px; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--g-envs); }
ol.envs-graphic__legend li::before { content: counter(g); left: 0; top: 0; width: 24px; height: 24px; display: grid; place-items: center; background: var(--g-steel); color: #fff; font: 600 13px/1 var(--envs-sans, sans-serif); }

/* Sketch parts */
.envs-graphic__svg .g-air { fill: var(--g-air); }
.envs-graphic__svg .g-water { fill: var(--g-water); }
.envs-graphic__svg .g-steel { fill: var(--g-steel); }
.envs-graphic__svg .g-frame { fill: var(--g-frame); }
.envs-graphic__svg .g-band { fill: var(--g-envs); }
.envs-graphic__svg .g-ripple { fill: none; stroke: var(--g-envs); stroke-width: 2; stroke-opacity: .55; }
.envs-graphic__svg .g-arcs path { fill: none; stroke: var(--g-envs); stroke-width: 3; stroke-linecap: round; }
.envs-graphic__svg .g-bandline { fill: none; stroke: var(--g-envs); stroke-width: 5; }
/* Hardware parts (same shapes as content-drafts/graphics-v3/hardware-sprites.svg) */
.envs-graphic__svg .g-o { stroke: var(--g-steel); stroke-width: 2.5; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.envs-graphic__svg .g-gold { fill: var(--g-footprint); }
.envs-graphic__svg .g-blue { fill: var(--g-envs); }
.envs-graphic__svg .g-blue2 { fill: var(--g-envs-2); }
.envs-graphic__svg .g-ink { fill: var(--g-steel); }
.envs-graphic__svg .g-grey { fill: #9eacb9; }
.envs-graphic__svg .g-pale { fill: #d7dde3; }
.envs-graphic__svg .g-face { fill: #fff; }
.envs-graphic__svg .g-none { fill: none; }
.envs-graphic__svg .g-epoxy { fill: #9eacb9; }
.envs-graphic__svg .g-gasket { fill: var(--g-envs-2); }
.envs-graphic__svg .g-thread { fill: none; stroke: var(--g-steel); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.envs-graphic__svg .g-lead { fill: none; stroke: var(--g-steel); stroke-width: 7; stroke-linecap: round; }
.envs-graphic__svg .g-wire { fill: none; stroke: var(--g-envs-2); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.envs-graphic__svg .g-dotted { fill: none; stroke: var(--g-envs-2); stroke-width: 3; stroke-dasharray: 1 9; stroke-linecap: round; }
.envs-graphic__svg .g-axis { fill: none; stroke: var(--g-muted); stroke-width: 1.5; stroke-dasharray: 7 6; }
.envs-graphic__svg .g-chev { fill: none; stroke: var(--g-muted); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.envs-graphic__svg .g-tick circle { fill: #fff; stroke: var(--g-envs); stroke-width: 2.5; }
.envs-graphic__svg .g-tick path { fill: none; stroke: var(--g-envs); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.envs-graphic__svg .g-foul { fill: var(--g-foul); }
.envs-graphic__svg .g-path { fill: none; stroke: var(--g-foul); stroke-width: 1.5; stroke-dasharray: 3 4; stroke-linecap: round; }
.envs-graphic__svg .g-dot circle { fill: #fff; stroke: var(--g-steel); stroke-width: 2; }
.envs-graphic__svg .g-dot text { font: 700 16px/1 var(--envs-sans, sans-serif); fill: var(--g-steel); }
.envs-graphic__svg .g-rule { stroke: var(--g-muted); stroke-width: 1; }
.envs-graphic__svg .g-rule--dash { stroke-dasharray: 4 4; }
.envs-graphic__svg .g-bars rect { fill: var(--g-envs); }
.envs-graphic__svg .g-avg { stroke: var(--g-envs-2); stroke-width: 3; stroke-dasharray: 10 6; }
.envs-graphic__svg .g-label { font: 600 14px/1 var(--envs-sans, sans-serif); fill: var(--g-text); }
.envs-graphic__svg .g-label--muted { font-weight: 400; fill: var(--g-muted); }
.envs-graphic[data-graphic="duty-cycle"] .envs-graphic__art { background: #fff; padding: 12px 8px; }
/* >>> schematic parts */
/* Parts used by the "where it goes" schematics */
.envs-graphic__svg .g-tube { fill: none; stroke: #9eacb9; stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }
.envs-graphic__svg .g-pipe { fill: none; stroke: var(--g-steel); stroke-width: 5; }
.envs-graphic__svg .g-hull { fill: #fff; stroke: var(--g-steel); stroke-width: 9; stroke-linejoin: round; }
.envs-graphic__svg .g-line { fill: none; stroke: var(--g-steel); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.envs-graphic__svg .g-line--thin { stroke-width: 1.5; stroke: #9eacb9; }
.envs-graphic__svg .g-cab { fill: #e9edf0; }
.envs-graphic__svg .g-lamp-g { fill: #3aa655; }
.envs-graphic__svg .g-lamp-r { fill: #d64545; }
.envs-graphic__svg .g-zone { fill: var(--g-envs); fill-opacity: .16; stroke: var(--g-envs); stroke-opacity: .5; stroke-width: 1.5; }
.envs-graphic__svg .g-wire--thin { stroke-width: 2; }
.envs-graphic__svg .g-ground { fill: none; stroke: #9eacb9; stroke-width: 2; }
.envs-graphic__svg .g-panel { fill: #fff; stroke: var(--envs-line, #d7dde3); stroke-width: 2; }
.envs-graphic__svg .g-arrow { fill: none; stroke: var(--g-envs-2); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.envs-graphic__svg .g-white { fill: #fff; }
.envs-graphic__svg .g-sig { fill: none; stroke: var(--g-envs-2); stroke-width: 3; stroke-linecap: round; }
/* <<< schematic parts */

/* Placeholder frame: a blueprint grid with the brief's one-line summary */
.envs-graphic__ph {
  display: grid; align-content: center; justify-items: center; gap: 10px; width: 100%; max-height: 520px; padding: 28px; text-align: center;
  color: var(--g-muted);
  background:
    linear-gradient(var(--envs-line, #d7dde3) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--envs-line, #d7dde3) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--envs-surface, #f3f5f7);
}
.envs-graphic__ph strong { font: 600 clamp(18px, 2.4vw, 26px)/1.2 var(--envs-cond, var(--envs-sans, sans-serif)); letter-spacing: .02em; text-transform: uppercase; color: var(--g-text); max-width: 24ch; text-wrap: balance; }
.envs-graphic__ph span { max-width: 46ch; font-size: 14px; line-height: 1.5; }
.envs-graphic__ph .envs-graphic__ph-tag { padding: 5px 9px; border: 1px dashed var(--g-envs-2); color: var(--g-envs-2); font: 600 11px/1 var(--envs-cond, sans-serif); letter-spacing: .18em; text-transform: uppercase; background: var(--envs-surface, #f3f5f7); }
.envs-graphic--placeholder .envs-graphic__art { border-style: dashed; }

.envs-graphic-section__head { margin-bottom: 32px; }
.envs-graphic-block { margin: 32px 0; }

@media (max-width: 781px) {
  body.envs .envs-graphic .envs-graphic__legend { grid-template-columns: 1fr; }
  .envs-graphic__ph { padding: 20px 16px; }
}

/* Sketches on wide screens: drawing left, legend right */
@media (min-width: 1100px) {
  .envs-graphic--sketch { display: grid; grid-template-columns: minmax(0, 760px) minmax(240px, 1fr); gap: 0 40px; align-items: start; }
  .envs-graphic--sketch .envs-graphic__title { grid-column: 1 / -1; }
  body.envs .envs-graphic--sketch .envs-graphic__legend { grid-template-columns: 1fr; margin-top: 0; gap: 14px; }
  .envs-prose .envs-graphic--sketch { display: block; }
}

/* The system diagram is wide: full width, legend underneath in two columns. */
.envs-graphic--sketch[data-graphic="system-overview"] { display: block; }
.envs-graphic--sketch[data-graphic="system-overview"] .envs-graphic__art,
.envs-graphic--sketch[data-graphic="system-overview"] .envs-graphic__legend { max-width: none; }
@media (min-width: 782px) {
  body.envs .envs-graphic--sketch[data-graphic="system-overview"] .envs-graphic__legend { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; gap: 10px 32px; }
}
/* Callout numbers stay readable when the drawing is scaled down on a phone. */
.envs-graphic__svg .g-dot { transform-box: fill-box; transform-origin: center; }
@media (max-width: 600px) {
  .envs-graphic[data-graphic="how-it-works"] .g-dot { transform: scale(1.7); }
  .envs-graphic[data-graphic="footprint-mount"] .g-dot { transform: scale(1.4); }
  .envs-graphic[data-graphic="system-overview"] .g-dot { transform: scale(2); }
  .envs-graphic[data-graphic="system-overview"] .g-o { stroke-width: 1.5; }
}
/* The exploded view is tall: keep it compact. */
.envs-graphic--sketch[data-graphic="footprint-mount"] .envs-graphic__art { max-width: 560px; }
@media (min-width: 1100px) {
  .envs-graphic--sketch[data-graphic="footprint-mount"] { grid-template-columns: minmax(0, 560px) minmax(240px, 1fr); }
}

/* >>> industry pages */
/* A diagram standing in for a photo (industry hero, home slider, applications index): no legend, fills its column. */
.envs-graphic--inline, .envs-graphic--inline .envs-graphic__art { max-width: none; }
.envs-graphic--inline.envs-graphic--sketch { display: block; }
.envs-slide__img--graphic { display: grid; align-items: center; padding: 24px; background: var(--envs-surface, #f3f5f7); }
.envs-slide__img--graphic .envs-graphic { width: 100%; }
.envs-slide__img--graphic .envs-graphic__art { border: 0; background: #fff; }
.envs-news-card__img:has(.envs-card-graphic) { background: var(--envs-surface, #f3f5f7); }
.envs-card-graphic { position: absolute; inset: 0; display: grid; align-items: center; padding: 12px 16px; }
.envs-card-graphic .envs-graphic__art { border: 0; background: transparent; }
.envs-card-graphic .envs-graphic__svg { max-height: 236px; }
/* Industry pages */
.envs-industry-hero__solo { max-width: 960px; }
.envs-industry-content .envs-prose > ul { margin-top: 0; }
.envs-industry-content .envs-prose h3 { margin-top: 36px; }
.envs-industry-next__others { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--envs-line, #d7dde3); font-size: 15px; line-height: 1.9; color: var(--envs-text-2, #3d4b59); }
.envs-industry-next__others strong { display: block; margin-bottom: 4px; font: 600 12px/1.4 var(--envs-cond, var(--envs-sans, sans-serif)); letter-spacing: .14em; text-transform: uppercase; color: var(--envs-ink, #0b1d2e); }
/* <<< industry pages */
