/* Page overrides for /as61439-outdoor-switchboards/ (hero, crumb, standards shared with /containerised-switchrooms/, plus page-only rules) */
h1,h2,h3,.display{font-family:'Saira Condensed','Saira',sans-serif;font-weight:600;line-height:1.04;letter-spacing:-.01em}
.nav-link:hover{color:var(--blue)}
.submenu-inner a:hover{background:var(--paper);color:var(--blue)}
.hero .lede{font-size:clamp(.95rem,1.55vw,1.17rem);color:var(--on-dark-body);max-width:50ch;font-weight:400;line-height:1.45}
.intro h2{font-size:clamp(1.9rem,3.5vw,2.9rem);font-weight:600;margin:.45em 0 .55em;color:var(--navy);max-width:16ch}
.intro p{color:var(--ink-muted);font-size:.95rem;margin-bottom:1.1em;max-width:54ch;line-height:1.5}
@media(prefers-reduced-motion:reduce){
.btn,.unique,.ind{transition:none}
}
.hero-uniques .hu{font-size:clamp(1.15rem,2.1vw,1.75rem)}
.crumb{font-family:'Saira',sans-serif;font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;color:var(--on-dark-muted);margin-bottom:6px}
.crumb a{color:var(--on-dark-muted)}
.crumb span{color:var(--blue-soft);margin:0 .5em}
.intro .lead-line{max-width:46ch}
/* Standards: navy, matching the industry pages (e.g. /mining/, /water-municipal/). */
.standards{padding:clamp(72px,9vw,118px) 0;background:var(--navy-deep);color:#fff;position:relative;overflow:hidden}
.standards .wrap{position:relative;z-index:2}
.std-left .section-head h2{color:#fff}
.std-left .section-head p{color:var(--on-dark-body)}
.std-media{position:relative;align-self:start;margin-top:clamp(34px,3.4vw,46px)}
@media(max-width:820px){
.std-media{max-width:440px;margin-top:0}
}
@media(max-width:1080px){
.menu-toggle span{transition:transform .2s ease,opacity .2s ease}
}

/* Spec bullets — same as /switchboard-options/: body text with the site's diamond marker. */
.opt-pts{list-style:none;display:flex;flex-direction:column;gap:10px;margin:4px 0 30px}
.opt-pts li{position:relative;padding-left:24px;font-size:.95rem;font-weight:400;color:var(--ink-muted);line-height:1.5;max-width:54ch}
.opt-pts li::before{content:"";position:absolute;left:0;top:.55em;width:8px;height:8px;background:var(--blue);transform:rotate(45deg)}
/* No trailing gap when the list ends the column (it otherwise adds 30px under the section on mobile). */
.opt-pts:last-child{margin-bottom:0}

/* Intro / capabilities figures */
.od-figure{margin:0}
.od-figure img{width:100%;border-radius:4px;object-fit:cover;box-shadow:0 30px 60px -34px rgba(12,52,87,.5)}
.od-figure figcaption{margin-top:12px;font-family:'Saira',sans-serif;font-size:.8rem;letter-spacing:.12em;text-transform:uppercase;color:var(--ink-muted)}
.od-caps{background:var(--paper)}
.od-caps .intro-grid{align-items:center}
.od-caps .od-figure img{aspect-ratio:16/17;max-height:620px}

/* Build gallery — same card treatment as the /electrical-design/ drawing gallery. */
.od-gallery{padding:clamp(64px,8vw,104px) 0;background:#fff}
.od-gal-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:24px}
.od-gal-fig{margin:0;border:1px solid var(--line);border-radius:4px;overflow:hidden;background:var(--paper)}
.od-gal-fig img{width:100%;aspect-ratio:3/2;object-fit:cover;display:block;background:var(--line)}
.od-gal-fig figcaption{padding:14px 18px;font-family:'Saira',sans-serif;font-weight:600;font-size:.9rem;letter-spacing:.02em;color:var(--navy);border-top:3px solid var(--blue)}
@media(max-width:560px){
.od-gal-grid{grid-template-columns:1fr}
}

/* Standards: lead under the heading (same as the industry pages' inline style). */
.std-lead{font-size:.95rem;margin-top:.5em;max-width:60ch;line-height:1.55}

/* Click to enlarge — copied from /electrical-design/ (gallery zoom button + lightbox). */
.gal-zoom{display:block;position:relative;width:100%;padding:0;border:0;margin:0;background:none;cursor:zoom-in;font:inherit;color:inherit}
.gal-zoom-hint{position:absolute;top:10px;right:10px;display:flex;align-items:center;justify-content:center;width:34px;height:34px;border-radius:50%;background:rgba(12,52,87,.72);color:#fff;opacity:0;transform:scale(.85);transition:opacity .2s ease,transform .2s ease;pointer-events:none}
.od-gal-fig:hover .gal-zoom-hint,.gal-zoom:focus-visible .gal-zoom-hint{opacity:1;transform:scale(1)}
.gal-zoom:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
/* lightbox */
.lightbox{position:fixed;inset:0;z-index:1000;display:flex;align-items:center;justify-content:center;padding:clamp(16px,4vw,56px);background:rgba(12,52,87,.82);backdrop-filter:blur(4px);opacity:0;transition:opacity .22s ease}
.lightbox[hidden]{display:none}
.lightbox.open{opacity:1}
/* Safety net: a lightbox that is fading out (or stuck without .open) never intercepts clicks. */
.lightbox:not(.open){pointer-events:none}
.lightbox-fig{margin:0;display:flex;flex-direction:column;align-items:center;gap:14px;max-width:100%;max-height:100%;transform:scale(.96);transition:transform .22s ease}
.lightbox.open .lightbox-fig{transform:scale(1)}
.lightbox-img{max-width:100%;max-height:82vh;width:auto;height:auto;object-fit:contain;background:#fff;border-radius:4px;box-shadow:0 40px 80px -30px rgba(12,52,87,.6)}
.lightbox-cap{font-family:'Saira',sans-serif;font-weight:600;font-size:.95rem;letter-spacing:.02em;color:var(--on-dark-soft);text-align:center}
.lightbox-close{position:absolute;top:clamp(10px,2vw,22px);right:clamp(10px,2vw,26px);width:44px;height:44px;display:flex;align-items:center;justify-content:center;font-size:2rem;line-height:1;color:#fff;background:rgba(255,255,255,.12);border:1px solid rgba(255,255,255,.25);border-radius:50%;cursor:pointer;transition:background .2s ease}
.lightbox-close:hover{background:rgba(255,255,255,.24)}
@media(prefers-reduced-motion:reduce){
.lightbox,.lightbox-fig,.gal-zoom-hint{transition:none}
}
/* Fit the whole 2 × 2 gallery (plus its heading) in one screen: cap the grid width so two 3:2 rows
   and the gap fit the viewport height left after the heading (~280px). Width W gives a grid height of
   (W - gap) / 1.5 + gap, so W = 1.5 × (100svh - 280px - gap) + gap. Never narrower than 560px, so
   short landscape screens (phones turned sideways) still get usable photos. */
.od-gallery .section-head{margin-bottom:clamp(24px,3vw,36px);margin-inline:auto;text-align:center}
.od-gal-grid{max-width:min(100%,max(560px,calc(1.5 * (100svh - 280px - 24px) + 24px)));margin-inline:auto}
@media(max-width:560px){
.od-gal-grid{max-width:none}
}
/* Hero heading: 17ch (site default 14ch) keeps "AS61439 type-tested" on the first line and
   "outdoor switchboards." on the second at every width. */
.hero h1{max-width:17ch}
