/* HydraResolve home page: Interactive Lab showcase. Loaded only on /en/ and /ar/, on top of hr3.css.
   Uses the hr3.css tokens; the preview's SVG part rules are copied from lab.css by the build (_tools/showcase.py). */
/* Lab SVG part rules, copied from assets/lab.css by the build */
.hl-svg{display:block;width:100%;height:auto;direction:ltr;font-family:var(--font);user-select:none;-webkit-user-select:none}
.hl-svg.narrow{display:none}
.hl-lbl{fill:#dbe6f2;font-size:21px;font-weight:600}
.hl-lbl.sm{font-size:18px}
.hl-lbl.xs{font-size:14px;fill:#9fb3c9;font-weight:500}
.hl-port{fill:#f7c766;font:700 18px var(--mono)}
.hl-pipe{--pc:#3f6f9f}
.hl-pipe.hp{--pc:#f0ae2e}
.hl-pipe.idle{--pc:#33506f}
.hl-pipe path{fill:none;stroke-linecap:round;stroke-linejoin:round}
.hl-pipe .o{stroke:#06101d;stroke-width:13}
.hl-pipe .c{stroke:var(--pc);stroke-width:8;transition:stroke .25s}
.hl-pipe .f{stroke:#fff;stroke-width:3.2;stroke-dasharray:1 15;opacity:.85}
.hl-pipe.idle .f{opacity:0}
.hl-pipe path.hl-arr{fill:#fff;stroke:#06101d;stroke-width:1.4;stroke-linejoin:round;opacity:.95}
.hl-pipe.idle .hl-arr{opacity:0}
.hl-tag{fill:#f7c766;font:700 15px var(--font);letter-spacing:.04em;opacity:0}
.hl-tankbody{fill:#0f2139;stroke:#7896b8;stroke-width:2}
.hl-oilline{stroke:#f7c766;stroke-width:2;opacity:.55}
.hl-motor{fill:#24496f;stroke:#7896b8;stroke-width:2}
.hl-fin{stroke:#4a77a6;stroke-width:3}
.hl-m{fill:#fff;font:700 26px var(--font)}
.hl-shaft{fill:#a9bfd6}
.hl-housing{fill:#1b3a5f;stroke:#a9bfd6;stroke-width:2}
.hl-gear{fill:#2f5b88;stroke:#cfdbe7;stroke-width:6;stroke-dasharray:4.71 4.71}
.hl-hub{fill:#cfdbe7}
.hl-dial{fill:#f3f6fa;stroke:#a9bfd6;stroke-width:3}
.hl-tick{stroke:#24496f;stroke-width:2}
.hl-needle{stroke:#d9472b;stroke-width:3;stroke-linecap:round}
.hl-pin{fill:#0b1b30}
.hl-body{fill:#1b3a5f;stroke:#a9bfd6;stroke-width:2;transition:stroke .2s}
.hl-seat{stroke:#cfdbe7;stroke-width:3}
.hl-poppet{fill:#cfdbe7}
.hl-spring{fill:none;stroke:#f7c766;stroke-width:2;stroke-linejoin:round}
.hl-screw{stroke:#a9bfd6;stroke-width:3}
.hl-sq{fill:rgba(255,255,255,.035);stroke:#a9bfd6;stroke-width:2}
.hl-vp{fill:none;stroke:#7896b8;stroke-width:3}
.hl-vp.on{stroke:#f0ae2e;stroke-width:4;stroke-dasharray:9 7}
.hl-ah{fill:#a9bfd6}
.hl-block{fill:none;stroke:#a9bfd6;stroke-width:3}
.hl-sol{fill:#1b3a5f;stroke:#a9bfd6;stroke-width:2;transition:fill .2s}
.hl-sol-l{stroke:#a9bfd6;stroke-width:2}
.hl-vspring,.hl-stem{fill:none;stroke:#a9bfd6;stroke-width:2}
.hl-portstub{stroke:#a9bfd6;stroke-width:2}
.hl-barrel{stroke:#7896b8;stroke-width:2}
.hl-ch{transition:fill .25s}
.hl-ch.hp{fill:#f0ae2e}
.hl-ch.ret{fill:#3f6f9f}
.hl-cap,.hl-gland{fill:#36597f;stroke:#7896b8;stroke-width:2}
.hl-piston{fill:#dbe6f2;stroke:#fff;stroke-width:1}
.hl-rod{stroke:#6f8aa8;stroke-width:1}
.hl-rail{fill:#4a6585}
.hl-clevis{fill:#a9bfd6;stroke:#6f8aa8;stroke-width:2}
.hl-loadbox{fill:#f0ae2e;stroke:#8a5600;stroke-width:2}
.hl-loadtxt{fill:#0b1b30;font-size:16px;font-weight:700}
.hl-loadval{fill:#0b1b30;font:600 14px var(--mono)}
.hl-robox{fill:rgba(6,16,29,.72);stroke:rgba(169,191,214,.3);stroke-width:1.5}
.hl-rolbl{fill:#9fb3c9;font-size:15px;font-weight:500}
.hl-roval{fill:#fff;font:700 28px var(--mono)}
.hl-rounit{fill:#9fb3c9;font:500 15px var(--font)}
.narrow .hl-pipe .o{stroke-width:9}
.narrow .hl-pipe .c{stroke-width:6}
.narrow .hl-pipe .f{stroke-width:2.6;stroke-dasharray:1 11}
.narrow .hl-vp{stroke-width:2.5}
.narrow .hl-vp.on{stroke-width:3.2;stroke-dasharray:7 5}
.narrow .hl-sq{stroke-width:1.6}
.narrow .hl-lbl.sm,.narrow .hl-port,.narrow .hl-tag,.narrow .hl-loadtxt.n{font-size:19px}
.lab-showcase{padding-block:48px 8px}
.lsc{display:grid;grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr);gap:clamp(24px,4vw,48px);align-items:center;
  background-color:var(--navy-900);background-image:linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
  background-size:28px 28px;border-radius:var(--radius-l);padding:clamp(24px,4vw,44px);color:#c3d1e0;box-shadow:var(--shadow)}
.lsc .eyebrow{color:var(--amber-300)}
.lsc h2{color:#fff;font-size:clamp(1.45rem,2.6vw,2rem);line-height:1.3;margin:0 0 14px;text-transform:none;font-weight:700}
.lsc-lead{font-size:1.05rem;line-height:1.7;margin:0 0 16px;max-width:60ch}
.lsc-points{list-style:none;margin:0 0 24px;padding:0;display:grid;gap:8px}
.lsc-points li{position:relative;padding-inline-start:22px;line-height:1.55;color:#dbe6f2}
.lsc-points li::before{content:"";position:absolute;inset-inline-start:0;top:.72em;width:12px;height:2px;background:var(--amber-400)}
.lsc .actions{margin:0}
.lsc-cta{min-height:48px;padding-inline:24px;font-size:1rem}
.lsc-cta:focus-visible{outline:3px solid #fff;outline-offset:3px}
.lsc-note{margin:14px 0 0;font-size:.9rem;color:#9fb3c9}
.lsc-fig{margin:0;max-width:none;background:radial-gradient(120% 90% at 30% 20%,#13294a 0,#0b1b30 70%);border:1px solid rgba(169,191,214,.22);border-radius:14px;padding:10px 10px 0;min-width:0}
.lsc-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:6px 12px;padding:2px 4px 8px;border-bottom:1px solid rgba(169,191,214,.16);margin-bottom:6px}
.lsc-badge{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--amber-300);color:var(--amber-300);border-radius:999px;padding:2px 10px;font-size:.78rem;font-weight:600}
.lsc-badge::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--amber-300)}
.lsc-state{color:#9fb3c9;font-size:.84rem}
.lsc-fig .nw{white-space:nowrap}
.lsc-fig figcaption{color:#9fb3c9;font-size:.86rem;line-height:1.55;padding:10px 4px 12px;margin:0;border-top:1px solid rgba(169,191,214,.16)}
.lsc-motion path{fill:none;stroke:var(--amber-300);stroke-width:4;stroke-linecap:round}
.lsc-motion path.h{fill:var(--amber-300);stroke:none}
/* the in-diagram "cap end" / "rod end" labels are drawn for the Lab's larger stage; keep them legible in the smaller preview */
.lsc .wide .hl-lbl.xs{font-size:16px}
.lsc .wide .hl-rolbl,.lsc .wide .hl-rounit{font-size:17px}
.lsc .wide .hl-loadval{font-size:16px}
/* stacked below 1100 px so the preview keeps legible labels (side by side it would shrink below ~500 px) */
@media (max-width:1100px){.lsc{grid-template-columns:minmax(0,1fr)}.lsc-fig{width:100%;max-width:720px}}
/* phone layout of the circuit up to 720 px, capped so it does not grow taller than the screen */
@media (max-width:720px){.lsc .hl-svg.wide{display:none}.lsc .hl-svg.narrow{display:block}.lsc-fig{max-width:460px}}
@media (max-width:600px){
  .lab-showcase{padding-top:36px}
  .lsc{margin-inline:calc(-1 * var(--gutter));border-radius:0;padding:28px var(--gutter);box-shadow:none}
  .lsc-fig{padding:6px 4px 0;border-radius:12px}
  .lsc-cta{width:100%}
}
/* Keyboard focus clear of the consent banner. While the banner is open (fixed to the bottom of the viewport, first
   visit only), focus scrolling treats the band it covers as outside the viewport, so the focused CTA and its ring
   stay visible. Each value is the banner's measured reach from the viewport bottom (EN/AR, root font 16 and 20 px)
   plus the 6 px focus ring and some headroom. No effect once a consent choice is saved (the banner is hidden). */
html:has(#analytics-consent.show:not([hidden])){scroll-padding-bottom:12rem}
@media (max-width:760px){html:has(#analytics-consent.show:not([hidden])){scroll-padding-bottom:14.5rem}}
@media (max-width:460px){html:has(#analytics-consent.show:not([hidden])){scroll-padding-bottom:20rem}}
@media (max-width:340px){html:has(#analytics-consent.show:not([hidden])){scroll-padding-bottom:23.5rem}}
@media print{.lab-showcase{display:none}}
