/* V25-R2 UI styles.
 * Changes vs R1: the inherited supplier claims are no longer rendered anywhere
 * on customer pages (audit record only); the Factory banner is in normal flow so
 * no viewport can clip its text; the carousel status line keeps a fixed reserved
 * height in every state; slide art grids fill their area with no dead rows; and
 * the mobile Products banner is compact so the search box appears earlier. */

/* ---------- solid theme-green button, white text ---------- */
.btn.v25-solid{background:#075c3d!important;border-color:#075c3d!important;color:#fff!important}
.btn.v25-solid:hover{background:#0a6d49!important}
.btn.v25-solid:focus-visible{outline:3px solid #0a6d49;outline-offset:2px}

/* ---------- customer-service help module (Products, above the search box) ---------- */
.v25-help{display:flex;align-items:center;gap:14px;background:#075c3d;color:#fff;border-radius:12px;padding:14px 16px;margin:4px 0 14px}
.v25-help-copy{flex:1;min-width:0}
.v25-help h2{margin:0 0 3px;font-size:17px;line-height:1.2;color:#fff}
.v25-help p{margin:0;font-size:12px;line-height:1.45;color:#e2f2ea}
.v25-help-btn{flex:none;background:#fff;color:#075c3d;font-weight:700;font-size:13px;padding:11px 16px;border-radius:7px;text-decoration:none;min-height:44px;display:inline-flex;align-items:center}
.v25-help-btn:hover{background:#eaf5ef}
.v25-help-btn:focus-visible{outline:3px solid #fff;outline-offset:2px}
@media(min-width:760px){.v25-help{padding:18px 22px}.v25-help h2{font-size:21px}.v25-help p{font-size:14px}}

/* ---------- Products banner: compact on mobile ---------- */
.v25-banner{display:grid;grid-template-columns:minmax(0,1fr);grid-template-areas:"logo" "copy" "photo";
  gap:12px;padding:16px 18px 20px;background:linear-gradient(105deg,#f4f8f5 0%,#eaf3ee 55%,#e3efe8 100%)}
.v25-banner-logo{grid-area:logo;display:block;width:104px;max-width:40%}
.v25-banner-logo img{display:block;width:100%;height:auto}
.v25-banner-copy{grid-area:copy;min-width:0}
.v25-banner-eyebrow{margin:0 0 6px;font-size:10px;letter-spacing:1.8px;color:#0a6d49;font-weight:700}
.v25-banner-copy h1{margin:0 0 8px;font-size:25px;line-height:1.14;letter-spacing:-.6px;color:#123527}
.v25-banner-copy h1 em{font-style:normal;color:#0a6d49}
.v25-banner-desc{margin:0;font-size:12.5px;line-height:1.5;color:#3c5548;max-width:52ch}
.v25-banner-photo{grid-area:photo;justify-self:end;width:min(58%,230px)}
.v25-banner-photo img{display:block;width:100%;height:auto;border-radius:12px}
/* R2: phone layout — logo and photo share the first row, copy spans below, so the
 * banner is roughly half as tall and the search box enters the first screen.
 * Everything stays in normal flow, so no element can cover another. Widths are
 * fixed px: a percentage width inside the `auto` track resolves cyclically and
 * squeezes the 1fr logo track to zero. */
@media(max-width:759px){
  .v25-banner{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"logo photo" "copy copy";
    column-gap:16px;row-gap:10px;padding:14px 16px 18px}
  .v25-banner-logo{width:88px;max-width:none;align-self:center}
  .v25-banner-photo{width:132px;align-self:center;justify-self:end}
  .v25-banner-copy h1{font-size:22px}
}
@media(min-width:760px){
  .v25-banner{grid-template-columns:minmax(0,1fr) 250px;
    grid-template-areas:"logo photo" "copy photo";column-gap:30px;row-gap:10px;padding:26px 32px;align-items:center}
  .v25-banner-logo{width:96px;max-width:none;align-self:start}
  .v25-banner-copy h1{font-size:34px}
  .v25-banner-desc{font-size:14px}
  .v25-banner-photo{width:100%}
}
@media(min-width:1180px){
  .v25-banner{grid-template-columns:118px minmax(0,1fr) 320px;grid-template-areas:"logo copy photo";
    column-gap:34px;padding:34px 48px}
  .v25-banner-logo{width:118px}
  .v25-banner-copy h1{font-size:40px}
  .v25-banner-desc{font-size:15px}
  .v25-banner-photo{width:320px}
}

/* ---------- Factory banner: R2-02, normal flow, cannot clip text ----------
 * R1 kept the base absolute positioning but sized the type with viewport units;
 * between 760 and 799px the app is capped at 480px while the fonts keep growing
 * with the viewport, so the description overflowed the fixed aspect-ratio box by
 * ~24px. R2 puts the logo and the copy in normal flow inside the banner: the box
 * grows with its content at every width, nothing is ever cut off, and no wording
 * is removed. The background photo (absolute, cover) and the white gradient from
 * the base theme are kept; flow children get position:relative + z-index so they
 * stay painted above the gradient. */
.v25-factory{position:relative;display:flex;flex-direction:column;justify-content:center;row-gap:12px;
  padding:26px 4.5%;aspect-ratio:auto;height:auto;min-height:min(40vw,320px);box-sizing:border-box}
.v25-factory>.banner-original{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.v25-factory .factory-aligned-logo{position:relative;z-index:2;left:auto;top:auto;width:min(15%,110px);min-width:58px;height:auto;overflow:visible;background:transparent}
.v25-factory .factory-aligned-logo img{position:static;width:100%;height:auto;max-width:none;display:block}
.v25-factory .factory-aligned-copy{position:relative;z-index:2;left:auto;top:auto;width:auto;max-width:min(62%,470px)}
.v25-factory .factory-aligned-copy h1{font-size:clamp(17px,4.6vw,30px);line-height:1.1;margin:0 0 8px}
.v25-factory .factory-aligned-copy p{font-size:clamp(10px,2.3vw,14.5px);line-height:1.45;max-width:52ch}

/* ---------- certificates ---------- */
.v25-certs{display:grid;gap:14px}
.v25-cert-img img{width:100%;height:auto;display:block;border-radius:10px;border:1px solid #dbe7df}
.v25-cert-copy h3{margin:2px 0 6px;font-size:19px;color:#123527}
.v25-cert-copy>p{margin:0 0 8px;font-size:12.5px;line-height:1.5;color:#3c5548}
.v25-cert-types{margin:0 0 8px;padding-left:18px;font-size:12.5px;line-height:1.6;color:#234233}
.v25-cert-note{font-size:11px;color:#5f7467;margin:0 0 10px}
.v25-cert-cta{background:#075c3d;color:#fff;text-decoration:none;font-weight:700;font-size:13px;padding:12px 16px;border-radius:7px;min-height:44px;display:inline-flex;align-items:center}
.v25-cert-cta:hover{background:#0a6d49}
@media(min-width:760px){.v25-certs{grid-template-columns:1.1fr 1fr;align-items:start}}

/* ---------- hero: brand mark + fixed-height slides ---------- */
.v25-carousel{position:relative;background:linear-gradient(120deg,#f1f6f1,#fff);overflow:hidden}
.v25-hero-brand{display:flex;align-items:center;gap:10px;padding:12px 18px 0}
.v25-hero-brand a{display:block;flex:none}
.v25-hero-brand img{display:block;height:34px;width:auto}
.v25-hero-brand span{font-size:10.5px;letter-spacing:1.4px;text-transform:uppercase;color:#4a6355;font-weight:700}
.v25-track{display:grid}
/* every slide is exactly the same height: copy row auto, art row fills the rest.
 * R2: 460px on phones (was 520px) — with the filling art grids below there is no
 * dead space, and the whole hero is shorter on small screens. */
.v25-slide{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);
  gap:10px;height:460px;padding:10px 18px 0;box-sizing:border-box}
.v25-slide[hidden]{display:none}
.v25-slide-copy{min-width:0}
.v25-slide-copy h2{margin:0 0 8px;font-size:26px;line-height:1.12;letter-spacing:-.7px;color:#123527}
.v25-slide-copy h2 em{font-style:normal;color:#0a6d49}
.v25-slide-copy p{margin:0 0 12px;font-size:13px;line-height:1.5;color:#4a6355;max-width:44ch}
.v25-slide-art{display:grid;gap:8px;height:100%;min-height:0;
  grid-template-rows:repeat(2,minmax(0,1fr));justify-items:center;align-items:center}
.v25-art-2,.v25-art-4{grid-template-columns:repeat(2,minmax(0,1fr))}
/* R2: two images stack vertically and fill both rows — a two-column layout with
 * only two images would leave the whole second row empty. */
.v25-art-2{grid-template-columns:minmax(0,1fr)}
/* R2: three images fill both rows — the first spans the full width, the other two
 * share the bottom row, so slide 1 no longer leaves an empty second row. */
.v25-art-3{grid-template-columns:repeat(2,minmax(0,1fr))}
.v25-art-3 img:first-child{grid-column:1/-1}
/* never cropped: contain inside the cell, the cell absorbs any spare height */
.v25-slide-art img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;
  border-radius:10px;background:#fff;border:1px solid #e0e9e2}
.v25-controls{display:flex;flex-wrap:wrap;align-items:center;gap:8px;padding:8px 18px 14px;min-height:56px;box-sizing:border-box}
.v25-arrow{width:40px;height:40px;border-radius:50%;border:1px solid #cfe0d5;background:#fff;color:#075c3d;font-size:20px;line-height:1;cursor:pointer;display:grid;place-items:center;flex:none}
.v25-arrow:hover{background:#eaf5ef}
.v25-dots{display:flex;gap:7px;margin:0 auto}
.v25-dots [data-v25-dot]{width:22px;height:22px;border-radius:50%;border:0;background:transparent;padding:0;cursor:pointer;display:grid;place-items:center}
.v25-dots [data-v25-dot]::after{content:"";display:block;width:11px;height:11px;border-radius:50%;border:1px solid #075c3d}
.v25-dots [data-v25-dot].on::after{background:#075c3d}
.v25-play{width:40px;height:40px;border-radius:50%;border:1px solid #cfe0d5;background:#fff;color:#075c3d;cursor:pointer;display:grid;place-items:center;font-size:14px;flex:none}
/* R2-03: the status line is always present with a fixed reserved height, so
 * entering focus, pausing or hovering can never push the content below the
 * carousel down. The message is one short sentence; the detailed explanation
 * lives in a permanently-present sr-only node (see v25-ui-r2.js). */
.v25-status{flex:1 1 100%;margin:0;height:1.45em;line-height:1.45;font-size:11.5px;color:#4a6355;order:9;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
@media(min-width:760px){
  .v25-hero-brand{padding:14px 40px 0}
  .v25-hero-brand img{height:40px}
  .v25-slide{grid-template-columns:1.02fr minmax(0,1fr);grid-template-rows:minmax(0,1fr);
    column-gap:24px;height:440px;padding:18px 40px 0}
  .v25-slide-copy h2{font-size:38px}
  .v25-slide-copy p{font-size:15px;max-width:46ch}
  .v25-controls{padding:10px 40px 18px}
}
@media(min-width:1180px){
  .v25-slide{height:450px}
  .v25-slide-copy h2{font-size:42px}
}
@media(prefers-reduced-motion:reduce){
  .v25-slide,.v25-slide *{transition:none!important;animation:none!important}
}

/* ---------- English resource failure (never a silent fallback) ---------- */
.v25-alert{display:flex;align-items:flex-start;gap:12px;background:#fdecea;border-bottom:2px solid #b3261e;color:#3b1a17;padding:12px 16px;font-size:13px;line-height:1.45}
.v25-alert-copy{flex:1;min-width:0}
.v25-alert strong{display:block;font-size:14px;margin-bottom:2px}
.v25-alert p{margin:0}
.v25-alert-btn{flex:none;background:#b3261e;color:#fff;border:0;border-radius:6px;font:inherit;font-weight:700;padding:9px 16px;min-height:40px;cursor:pointer}
.v25-alert-btn:disabled{opacity:.6;cursor:default}
.v25-alert-btn:focus-visible{outline:3px solid #3b1a17;outline-offset:2px}

/* R2-01: the inherited supplier claims have no customer-facing UI any more.
 * The disputed sentences are filtered out of the rendered description; their
 * original text, matching rules and line numbers are kept only in the audit
 * record deliverables/INHERITED-CLAIMS.json, which no customer page loads. */
.source-body24 .source-text24{white-space:pre-wrap}

/* R3: when the English product body is unavailable (translation file failed or
 * no English entry exists), the raw source-language supplier body is never
 * rendered. The customer sees this honest notice instead; title, attributes,
 * MOQ, images and the enquiry flow stay untouched. */
.v25-body-unavailable .source-text24{white-space:normal}
.v25-body-fallback{display:flex;flex-direction:column;gap:10px;padding:14px 16px;background:#f6f7f9;border:1px solid #d8dce2;border-radius:8px;color:#2c3138;font-size:14px;line-height:1.5}
.v25-body-fallback strong{font-size:14px}
.v25-body-fallback p{margin:0}
.v25-body-fallback-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px}
.v25-body-fallback .v25-alert-btn{background:#075c3d}
.v25-body-fallback .v25-alert-btn:focus-visible{outline:3px solid #0a6d49;outline-offset:2px}
.v25-body-contact{color:#0b57d0;font-weight:600}
