/* V26 hero styles — user-approved full-bleed banner images.
 *
 * Layout facts the numbers below are built on:
 *   - desktop art ≈2.4:1 (1942×809; products 1935×812) with an empty left band
 *     of roughly 30–40% where the copy is placed;
 *   - mobile art is 1:1 on Home and 4:3 on the other pages, with an empty top
 *     band of roughly 35–42% where the copy is placed;
 *   - #app is capped at 480px below 800px viewport and opens to 1120px at
 *     >=800px (integrated-v24.css), so 800px is the single art-switch breakpoint;
 *   - every slide/hero keeps the same structure, so the Home carousel height is
 *     identical in every state (autoplay, hover, focus, paused) and only follows
 *     the image ratio, never the copy length.
 */

/* ---------- shared ---------- */
.v26-hero{position:relative;display:block}
.v26-hero .v26-pic{display:block;margin:0}
.v26-hero .v26-img{display:block;width:100%;height:100%;object-fit:cover}
.v26-copy{position:absolute;z-index:2;display:flex;flex-direction:column;align-items:flex-start;gap:8px;min-width:0}
.v26-title{margin:0;font-size:24px;line-height:1.12;letter-spacing:-.6px;color:#123527}
.v26-title em{font-style:normal;color:#0a6d49}
.v26-desc{margin:0;font-size:13px;line-height:1.45;color:#3c5548;max-width:44ch}
.v26-eyebrow{margin:0;font-size:10px;letter-spacing:1.8px;color:#0a6d49;font-weight:700}
.v26-logo{display:block;width:84px}
.v26-logo img{display:block;width:100%;height:auto}
.v26-cta{min-height:44px}
/* mobile CTA lives below the image in normal flow; the in-copy CTA is desktop-only */
.v26-cta-flow{display:flex;justify-content:center;padding:10px 16px 14px}
.v26-hero .v26-cta{display:none}
/* phones: products/custom keep only the title on the artwork; the rest moves
 * below the image (their 4:3 art leaves a narrower top band than Home/factory) */
.v26-flow{display:none}
@media(max-width:799px){
  .v26-hero-products .v26-copy .v26-logo,
  .v26-hero-custom .v26-copy .v26-logo,
  .v26-hero-products .v26-copy .v26-eyebrow,
  .v26-hero-products .v26-copy .v26-desc,
  .v26-hero-custom .v26-copy .v26-desc,
  .v26-hero-custom .v26-copy .v26-cta{display:none}
  .v26-hero-products .v26-flow,
  .v26-hero-custom .v26-flow{display:flex;flex-direction:column;align-items:center;gap:4px;
    padding:12px 18px 2px;text-align:center}
  /* V26-R1 fix (V26-02): compact, fully visible U-LAI brand row leading the flow
   * block; in normal flow below the image, so it never covers the products and
   * only adds ~72px before the description (search entrance stays reachable). */
  .v26-flow .v26-logo{width:64px;min-width:64px}
  .v26-flow .v26-logo img{width:100%;height:auto}
  .v26-flow .v26-logo + .v26-eyebrow,
  .v26-flow .v26-logo + .v26-desc{margin-top:6px}
  .v26-hero-custom .v26-cta-flow{padding-top:8px}
  .v26-hero-products .v26-title,
  .v26-hero-custom .v26-title{font-size:20px}
  .v26-hero-products .v26-copy,
  .v26-hero-custom .v26-copy{padding-top:10px;gap:0}
}

/* ---------- mobile (<800px): copy in the artwork's top band ---------- */
.v26-copy{top:0;left:0;right:0;padding:14px 20px 0;text-align:center;align-items:center}
.v26-title{font-size:22px}
.v26-desc{font-size:12.5px;max-width:40ch}
.v26-hero .v26-pic img{aspect-ratio:1/1}            /* home mobile art (also set inline) */
.v26-hero-products .v26-pic img,
.v26-hero-custom .v26-pic img,
.v26-hero-factory .v26-pic img{aspect-ratio:4/3}

/* ---------- desktop (>=800px): copy in the left band, left-aligned ---------- */
@media(min-width:800px){
  .v26-copy{left:4%;top:50%;transform:translateY(-50%);right:auto;width:35%;max-width:460px;
    padding:0;text-align:left;align-items:flex-start;gap:10px}
  .v26-hero .v26-cta{display:inline-flex}
  .v26-hero .v26-cta-flow{display:none}
  .v26-title{font-size:34px}
  .v26-desc{font-size:14.5px;max-width:46ch}
  .v26-eyebrow{font-size:11px}
  .v26-logo{width:104px}
  .v26-hero .v26-pic img{aspect-ratio:1942/809}
  .v26-hero-products .v26-pic img{aspect-ratio:1935/812}
}
@media(min-width:1180px){
  .v26-title{font-size:40px}
  .v26-desc{font-size:15px}
  .v26-logo{width:118px}
}

/* ---------- Home carousel: full-bleed slides replace the old card grids ----------
 * The slides keep the .v25-slide class (the approved autoplay/pause/swipe logic
 * queries it) but drop the fixed 440–460px two-column card layout: each slide is
 * just the approved picture plus its copy overlay, so the track height follows
 * the image ratio only and is identical for all three slides and all states.
 *
 * V26-R1 fix (review item V26-01): the rule below re-declares display:block for
 * the visible slide, but .v25-slide.v26-slide has the same specificity as the
 * base .v25-slide[hidden]{display:none} in v25-ui-r3.css and loads after it, so
 * it used to override the hidden state and paint all three slides stacked. This
 * scoped hide rule (specificity 0-3-0) wins over both and guarantees a non-
 * current slide has no box at all: not painted, no layout rectangles, and its
 * CTA/controls are unreachable by keyboard because display:none removes them
 * from rendering and tab order. */
.v25-slide.v26-slide[hidden]{display:none}
.v25-slide.v26-slide{display:block;height:auto;padding:0;gap:0;position:relative;touch-action:pan-y}
.v25-slide.v26-slide .v26-pic{display:block}
.v25-slide.v26-slide .v26-pic img{width:100%;height:auto;object-fit:cover}
.v25-slide.v26-slide .v26-copy{position:absolute;top:0;left:0;right:0;padding:12px 20px 0;
  text-align:center;align-items:center;gap:6px}
.v25-slide.v26-slide .v26-title{font-size:21px}
.v25-slide.v26-slide .v26-desc{font-size:12.5px;max-width:40ch}
.v25-slide.v26-slide .v26-cta{display:none}          /* phone: CTA below the image */
.v25-slide.v26-slide .v26-cta-flow{display:flex;justify-content:center;padding:8px 16px 6px}
@media(min-width:800px){
  .v25-slide.v26-slide .v26-pic img{aspect-ratio:1942/809}
  .v25-slide.v26-slide .v26-copy{left:4%;right:auto;top:50%;transform:translateY(-50%);
    width:35%;max-width:460px;padding:0;text-align:left;align-items:flex-start;gap:10px}
  .v25-slide.v26-slide .v26-title{font-size:36px}
  .v25-slide.v26-slide .v26-desc{font-size:14.5px;max-width:46ch}
  .v25-slide.v26-slide .v26-cta{display:inline-flex}
  .v25-slide.v26-slide .v26-cta-flow{display:none}
}
@media(min-width:1180px){
  .v25-slide.v26-slide .v26-title{font-size:42px}
}

/* ---------- safe-area fallbacks ----------
 * If a copy block would ever grow past the artwork's whitespace (very narrow
 * phones, user font scaling), let the page scroll to it instead of painting the
 * copy over the products/building: the overlay height is capped and the flow CTA
 * row absorbs the rest. */
@media(max-width:389px){
  .v26-title,.v25-slide.v26-slide .v26-title{font-size:19px}
  .v26-desc,.v25-slide.v26-slide .v26-desc{font-size:11.5px}
  .v26-hero-factory .v26-copy{padding-top:8px;gap:4px}
  .v26-hero-factory .v26-desc{font-size:10.5px}
}
