/* Mapleleaf — fuel-first version (branch: fuel-focus)
   Loaded after style.css + style2.css. Only additions and targeted overrides:
   the design tokens, fonts and existing components are reused as they are.
   Everything is scoped to body.v2 so it wins over style2.css without !important. */

/* Images carry width/height attributes (stops layout shift). style.css never sets height:auto, so without this the
   height attribute pins images to fixed pixel heights and ignores aspect-ratio. :where() keeps specificity at zero,
   so every class rule that sets its own height (biz-card, avatar, hero photo...) still wins. */
:where(img){height:auto}

/* ---------- placeholders: anything a person still has to confirm ---------- */
.todo{background:rgba(244,201,93,.14);outline:1px dashed rgba(244,201,93,.75);outline-offset:1px;border-radius:3px;padding:0 .3em;font-style:normal;color:inherit}
.on-paper .todo{background:rgba(200,155,60,.16);outline-color:#b7860f}

/* on-paper sections must not pick up style2's even-section dark wash */
body.v2 .section.on-paper{background:#efeee9;color:#101010}
body.v2 .on-paper .section-head h2,body.v2 .on-paper h2,body.v2 .on-paper h3,body.v2 .on-paper h4{color:#0a0a0a}
/* .offer and .value-card always render as dark cards (own gradient background)
   regardless of the section around them, so their headings must stay light even
   when the on-paper rule above would otherwise force them near-black - that
   mismatch was making card titles unreadable wherever these sit on-paper. */
body.v2 .on-paper .offer h3,body.v2 .on-paper .value-card h4{color:#f7f3ed}
body.v2 .on-paper .eyebrow{color:#b5290f}
body.v2 .on-paper .eyebrow::before{background:var(--v2-red)}

/* ---------- navigation ---------- */
/* style2 gave the nav overflow:hidden + contain:paint, which clipped anything that
   didn't fit (the cropped iPhone menu) and would also clip the About dropdown. */
body.v2 .nav{overflow:visible;contain:none}
body.v2 .nav .wrap{gap:20px}
body.v2 .brand-row{flex:0 0 auto}
body.v2 .navlinks{display:flex;align-items:center;gap:clamp(12px,1.4vw,24px);margin-left:auto;white-space:nowrap}
body.v2 .navlinks a,body.v2 .dd-toggle{font-size:13px;font-weight:800;color:#d8d5cf;padding:12px 0;transition:.25s}
body.v2 .dd-toggle{background:none;border:0;cursor:pointer;font-family:inherit;display:inline-flex;align-items:center;gap:7px;position:relative}
body.v2 .dd-toggle::after{content:"";width:6px;height:6px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:translateY(-2px) rotate(45deg);transition:transform .25s}
body.v2 .has-dd:hover .dd-toggle::after,body.v2 .has-dd.open .dd-toggle::after{transform:translateY(1px) rotate(225deg)}
body.v2 .dd-toggle:hover,body.v2 .dd-toggle.active,body.v2 .has-dd:focus-within .dd-toggle{color:#fff;text-shadow:0 0 16px rgba(255,41,56,.75)}
body.v2 .has-dd{position:relative}
body.v2 .has-dd::before{content:"";position:absolute;left:-20px;right:-20px;top:100%;height:18px} /* keeps hover alive across the gap */
body.v2 .dd-menu{position:absolute;top:calc(100% + 12px);left:-16px;min-width:230px;padding:8px;border:1px solid var(--v2-line);border-radius:18px;background:rgba(8,8,8,.98);box-shadow:0 24px 60px rgba(0,0,0,.55);opacity:0;visibility:hidden;transform:translateY(6px);transition:opacity .2s,transform .2s,visibility .2s}
body.v2 .has-dd:hover .dd-menu,body.v2 .has-dd:focus-within .dd-menu,body.v2 .has-dd.open .dd-menu{opacity:1;visibility:visible;transform:none}
body.v2 .has-dd.force-closed .dd-menu{opacity:0;visibility:hidden;transform:translateY(6px)}
body.v2 .dd-menu a{display:block;padding:11px 14px;border-radius:11px;font-size:13.5px}
body.v2 .dd-menu a::after{display:none}
body.v2 .dd-menu a:hover,body.v2 .dd-menu a.active{background:rgba(255,255,255,.07);text-shadow:none}
body.v2 .nav-find{padding:12px 20px;font-size:12.5px;text-transform:none;letter-spacing:.01em;white-space:nowrap}
body.v2 .navcta{flex:0 0 auto}
@media(max-width:1330px){body.v2 .navlinks a,body.v2 .dd-toggle{font-size:12.5px}body.v2 .navlinks{gap:clamp(10px,1.2vw,18px)}}
/* eight links plus the button need ~1200px of bar; below that use the menu button */
@media(max-width:1240px){
  body.v2 .navlinks,body.v2 .nav-find{display:none}
  body.v2 .burger{display:flex}
}

/* mobile menu: scrolls (landscape phones), keeps its close button in reach */
body.v2 .mnav{overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;padding:0 26px max(32px,env(safe-area-inset-bottom));gap:4px;background:#050505}
body.v2 .mnav-top{position:sticky;top:0;z-index:2;display:flex;justify-content:flex-end;margin:0 -26px 6px;padding:16px 22px 8px;background:#050505}
body.v2 .mnav-close{position:static;width:48px;height:48px;font-size:34px;line-height:1}
body.v2 .mnav a{font-family:var(--ff-head);font-size:22px;padding:9px 0;line-height:1.2;letter-spacing:-.02em}
body.v2 .mnav-group{display:flex;flex-direction:column;padding:6px 0}
body.v2 .mnav-label{font-size:11.5px;letter-spacing:.2em;text-transform:uppercase;color:var(--v2-gold);font-weight:800;padding:6px 0}
body.v2 .mnav-group a{font-size:19px;padding:7px 0 7px 16px;border-left:2px solid var(--v2-line)}
body.v2 .mnav .mnav-find{align-self:flex-start;margin-top:14px;padding:15px 24px;font-size:14px;color:#fff}
html.menu-open,html.menu-open body{overflow:hidden}

/* ---------- home hero: fuel subject on the right, text on the dark left ---------- */
/* min-height is capped at 58vw so the hero can never get taller than the 16:9 photo suits:
   a tall, narrow hero crops the photo so hard that the tanker slides under the text. */
body.v2 .hero--fuel{min-height:min(100svh,900px,58vw);align-items:center;padding-block:130px 72px}
body.v2 .hero--fuel .hero-photo img{width:100%;height:100%;object-fit:cover;object-position:88% 55%}
body.v2 .hero--fuel .hero-photo::before{background:linear-gradient(90deg,rgba(3,3,3,.98) 0%,rgba(3,3,3,.96) 30%,rgba(3,3,3,.9) 44%,rgba(3,3,3,.42) 55%,rgba(3,3,3,0) 66%),linear-gradient(0deg,#050505 0%,transparent 24%)}
body.v2 .hero--fuel .hero-content{padding:0;width:min(600px,44vw);margin-left:clamp(26px,8vw,130px)}
body.v2 .hero--fuel .eyebrow{margin-bottom:22px;font-size:12px}
/* Cinematic hero type - calmer, lowercase display type over the photo
   slideshow below, promoted from the "Variant D" home page review option.
   font-weight:600 deliberately (not the review draft's 800) - client
   feedback on the review was that the heavier weight read as too thick. */
body.v2 .hero--fuel .hero-title{font-family:'Inter',sans-serif;font-size:clamp(26px,3.6vw,44px);
  line-height:1.15;text-transform:none;letter-spacing:-.02em;font-weight:600}
body.v2 .hero--fuel .hero-copy{width:min(470px,100%);font-size:clamp(15px,1.25vw,19px);line-height:1.55}
body.v2 .hero--fuel .hero-cta{display:flex;flex-wrap:wrap;gap:12px;margin-top:34px}
/* up to 1100px the photo gets its own band above the text instead of sitting behind it */
@media(max-width:1100px){
  body.v2 .hero--fuel{display:block;min-height:0;padding:0}
  body.v2 .hero--fuel::after{display:none}
  body.v2 .hero--fuel .hero-photo{position:relative;inset:auto;height:clamp(300px,58vw,480px);transform:none!important}
  body.v2 .hero--fuel .hero-photo img{object-position:86% 55%}
  /* left fade keeps the old station's lettering unreadable while the tanker (right) stays clear */
  body.v2 .hero--fuel .hero-photo::before{background:linear-gradient(0deg,#050505 0%,rgba(5,5,5,.7) 20%,transparent 52%),linear-gradient(90deg,rgba(5,5,5,.96) 0%,rgba(5,5,5,.88) 34%,rgba(5,5,5,.22) 50%,transparent 57%),linear-gradient(180deg,rgba(5,5,5,.6) 0%,transparent 26%)}
  /* max-width:none cancels a leftover max-width:260px from an older,
     unrelated hero design in style.css's legacy @media(max-width:640px)
     block - nothing in this v2 layer had ever overridden it, so the
     content column (including the CTA buttons) was silently capped to
     260px on phones, leaving a large dead gap and making the buttons
     look unaligned against the full-width photo. */
  body.v2 .hero--fuel .hero-content{width:auto;max-width:none;margin:0;padding:6px 24px 56px}
  body.v2 .hero--fuel .hero-title{font-size:clamp(26px,8vw,36px);line-height:1.15}
  body.v2 .hero--fuel .hero-copy{margin-top:22px}
}

/* ---------- home hero: cinematic 4-photo crossfade slideshow ----------
   Promoted from the home page review's "Variant D" option - a pure-CSS
   crossfade (5s per photo, 20s loop) standing in for video until real
   site footage exists. .hero-photo--video sits alongside the base
   .hero-photo class so it inherits its positioning/responsive rules
   above; only the slide stack, crossfade and its own contrast overlay
   are added here. */
body.v2 .hero--fuel .hero-photo--video .slide{position:absolute;inset:0;opacity:0;overflow:hidden;
  animation:mlSlideFade 20s infinite}
body.v2 .hero--fuel .hero-photo--video .slide img{width:100%;height:100%;object-fit:cover;
  animation:mlHeroKenburns 20s ease-in-out infinite alternate;transform-origin:60% 45%}
body.v2 .hero--fuel .hero-photo--video .slide:nth-child(1){animation-delay:0s}
body.v2 .hero--fuel .hero-photo--video .slide:nth-child(2){animation-delay:5s}
body.v2 .hero--fuel .hero-photo--video .slide:nth-child(3){animation-delay:10s}
body.v2 .hero--fuel .hero-photo--video .slide:nth-child(4){animation-delay:15s}
@keyframes mlSlideFade{
  0%{opacity:0}
  3%{opacity:1}
  22%{opacity:1}
  25%{opacity:0}
  100%{opacity:0}
}
@keyframes mlHeroKenburns{
  0%{transform:scale(1) translate(0,0)}
  100%{transform:scale(1.12) translate(-1.5%,-1%)}
}
/* The rotating photos have no dark region of their own where the text sits
   (unlike the old single static photo) - this dedicated overlay guarantees
   legibility regardless of which image is showing. */
body.v2 .hero--fuel .hero-photo--video::after{content:"";position:absolute;inset:0;z-index:1;
  background:linear-gradient(90deg,rgba(4,3,2,.92) 0%,rgba(4,3,2,.78) 32%,rgba(4,3,2,.35) 58%,rgba(4,3,2,.08) 78%),
    linear-gradient(0deg,rgba(4,3,2,.55) 0%,rgba(4,3,2,0) 30%)}
@media(max-width:1100px){
  body.v2 .hero--fuel .hero-photo--video::after{background:linear-gradient(0deg,rgba(4,3,2,.6) 0%,rgba(4,3,2,.15) 45%)}
}
@media(prefers-reduced-motion:reduce){
  body.v2 .hero--fuel .hero-photo--video .slide,
  body.v2 .hero--fuel .hero-photo--video .slide img{animation:none}
  body.v2 .hero--fuel .hero-photo--video .slide:first-child{opacity:1}
}

/* ---------- pillar tiles (reuse .biz-grid / .biz-card) ---------- */
body.v2 .section.pillar-strip{padding-block:clamp(44px,5vw,76px)}
body.v2 .pillar-strip .section-head{margin-bottom:34px}
body.v2 .pillar-strip .biz-card{min-height:440px}
body.v2 .pillar-strip .biz-card::before{background:linear-gradient(180deg,rgba(4,4,4,0) 28%,rgba(4,4,4,.74) 56%,rgba(4,4,4,.97) 84%)}
body.v2 .biz-card .content h3.tag{font-size:22px;line-height:1.1;letter-spacing:-.03em;text-transform:none;font-family:var(--ff-head);font-weight:600;margin:0}
body.v2 .biz-card .content h3.tag+p{margin-top:12px}
@media(max-width:1100px){body.v2 .biz-grid.cols-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){body.v2 .biz-grid.cols-4{grid-template-columns:1fr}body.v2 .pillar-strip .biz-card{min-height:340px}}

/* ---------- terminal -> forecourt flow ---------- */
body.v2 .statement{font-size:clamp(19px,2vw,26px);line-height:1.4;font-weight:500;letter-spacing:-.02em;max-width:820px;margin-top:22px;text-transform:none}
body.v2 .on-paper .statement{color:#2a2622}
.flow{list-style:none;margin:56px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:28px;counter-reset:step;position:relative}
.flow::before{content:"";position:absolute;left:0;right:0;top:9px;height:2px;background:linear-gradient(90deg,var(--v2-red),var(--v2-gold))}
.flow::after{content:"";position:absolute;right:-2px;top:3px;width:12px;height:12px;border-top:2px solid var(--v2-gold);border-right:2px solid var(--v2-gold);transform:rotate(45deg)}
.flow-step{position:relative;padding-top:42px;counter-increment:step}
.flow-step::before{content:"";position:absolute;left:0;top:0;width:20px;height:20px;border-radius:50%;background:var(--v2-red);border:4px solid #efeee9;box-shadow:0 0 0 2px var(--v2-red)}
.flow-step h3{font-size:21px;line-height:1.1;text-transform:none;font-family:var(--ff-head);font-weight:600;letter-spacing:-.03em}
.flow-step h3::before{content:counter(step,decimal-leading-zero);display:block;font-size:12px;letter-spacing:.18em;color:var(--v2-red);font-weight:800;margin-bottom:8px}
.flow-step p{margin-top:10px;font-size:15px;line-height:1.55;text-transform:none;font-weight:400;color:#4a4540}
@media(max-width:900px){
  .flow{grid-template-columns:1fr;gap:6px;padding-left:34px;margin-top:40px}
  .flow::before{left:9px;right:auto;top:6px;bottom:6px;width:2px;height:auto;background:linear-gradient(180deg,var(--v2-red),var(--v2-gold))}
  .flow::after{display:none}
  .flow-step{padding:0 0 26px}
  .flow-step::before{left:-34px;top:2px;width:20px;height:20px}
}

/* ---------- stats (fuel metrics) ---------- */
body.v2 .stat-band.five{grid-template-columns:repeat(5,minmax(0,1fr))}
body.v2 .stat-band .s>div{min-width:0}
@media(max-width:980px){body.v2 .stat-band.five{grid-template-columns:1fr 1fr}body.v2 .stat-band.five .s:last-child{grid-column:1/-1}}
@media(max-width:640px){body.v2 .stat-band.five{grid-template-columns:1fr}}

/* 5-up value-card grid (home: "Why Choose Mapleleaf Petroleum") - was an inline
   style with no mobile breakpoint, which forced 5 columns at every width
   including phones and caused horizontal overflow. A real class instead, same
   980/640 breakpoint pattern as the rest of this file's card grids. */
body.v2 .values-grid-5{grid-template-columns:repeat(5,minmax(0,1fr))}
@media(max-width:980px){body.v2 .values-grid-5{grid-template-columns:1fr 1fr}}
@media(max-width:640px){body.v2 .values-grid-5{grid-template-columns:1fr}}
/* the headline copy sits on the bright canopy sign: darken the left, or the whole image once the layout stacks */
body.v2 .home-history .history-bg::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.98) 0%,rgba(0,0,0,.88) 30%,rgba(0,0,0,.3) 58%,rgba(0,0,0,0) 78%)}
@media(max-width:980px){body.v2 .home-history .history-bg::after{background:linear-gradient(180deg,rgba(0,0,0,.92) 0%,rgba(0,0,0,.7) 55%,rgba(0,0,0,.4) 100%)}}
body.v2 .home-history .stat-band b{text-transform:none;font-size:clamp(22px,2.2vw,30px)}
body.v2 .home-history .stat-band span{font-size:12.5px}

/* ---------- "also part of the group" strip ---------- */
.group-strip{padding-block:clamp(40px,5vw,64px);border-block:1px solid var(--v2-line);background:#070707}
.group-strip .wrap{display:grid;grid-template-columns:minmax(150px,220px) 1fr 1fr;gap:clamp(20px,4vw,56px);align-items:start}
.group-strip .eyebrow{padding-top:4px}
.group-item h3{font-size:18px;text-transform:none;font-family:var(--ff-head);font-weight:600;letter-spacing:-.02em;margin:0}
.group-item p{margin-top:6px;font-size:14.5px;line-height:1.5;color:#b9b5ae;text-transform:none;font-weight:400}
.group-item a{display:inline-block;margin-top:10px;font-size:13px;font-weight:800;color:var(--v2-gold);text-transform:none}
.group-item a:hover{color:#fff}
@media(max-width:780px){.group-strip .wrap{grid-template-columns:1fr}}

/* ---------- generic content bits ---------- */
body.v2 .hero-cta{display:flex;flex-wrap:wrap;gap:12px 14px}
/* two inherited quirks that read as bugs once the copy is left-aligned: the CTA band shrink-wrapped
   to the middle of the page, and biz-detail paragraphs were centred under left-aligned headings */
body.v2 .cta-band>.wrap{width:100%}
body.v2 .biz-detail p{text-align:left}
.split{display:grid;grid-template-columns:1fr 1fr;gap:clamp(28px,5vw,72px);align-items:start}
@media(max-width:900px){.split{grid-template-columns:1fr}}
/* Contact page only: both panels stretch to the same height as each
   other, rather than each sizing to its own (uneven) content. */
#details .split{align-items:stretch}
#details .split .panel{height:100%}
.panel{border:1px solid var(--v2-line);border-radius:28px;padding:clamp(26px,3vw,40px);background:linear-gradient(145deg,rgba(255,255,255,.07),rgba(255,255,255,.02))}
.on-paper .panel{background:#fff;border-color:var(--line-dark)}
.panel h3{font-size:clamp(22px,2.2vw,30px);line-height:1.1;text-transform:none;font-family:var(--ff-head);font-weight:600;letter-spacing:-.03em}
.panel p{margin-top:12px;font-size:15.5px;line-height:1.6;color:#d0ccc5;text-transform:none;font-weight:400}
.on-paper .panel p{color:#4a4540}
.panel .kicker{display:block;font-size:12px;letter-spacing:.18em;text-transform:uppercase;color:var(--v2-gold);font-weight:800;margin-bottom:12px}
.on-paper .panel .kicker{color:#b5290f}
.offer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:18px}
.offer{border:1px solid var(--v2-line);border-radius:26px;padding:30px 28px;background:linear-gradient(145deg,#17181b,#0b0c0e)}
.offer h3{font-size:19px;line-height:1.15;text-transform:none;font-family:var(--ff-head);font-weight:600;letter-spacing:-.02em}
.offer p{margin-top:10px;font-size:14.5px;line-height:1.55;color:#c9c5be;text-transform:none;font-weight:400}
.metric-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px;margin-top:34px}
.metric{padding:22px 24px;border:1px solid var(--v2-line);border-radius:22px;background:rgba(6,6,6,.55)}
.metric b{display:block;font-family:var(--ff-head);font-size:clamp(26px,3vw,38px);letter-spacing:-.03em;text-transform:none}
.metric span{display:block;margin-top:4px;font-size:13.5px;color:#b9b5ae;text-transform:none;font-weight:400}
.img-frame{border-radius:30px;overflow:hidden;box-shadow:0 35px 90px rgba(0,0,0,.45)}
.img-frame img{width:100%;height:100%;object-fit:cover;aspect-ratio:4/3}
.link-arrow{display:inline-flex;gap:8px;margin-top:18px;font-size:14px;font-weight:800;color:var(--v2-gold);text-transform:none}
.link-arrow:hover{color:#fff}
.on-paper .link-arrow{color:#b5290f}
.on-paper .link-arrow:hover{color:#0a0a0a}
.check-list{list-style:none;margin:18px 0 0;padding:0;display:grid;gap:10px}
.check-list li{position:relative;padding-left:26px;font-size:15.5px;line-height:1.5;color:#d0ccc5;text-transform:none;font-weight:400}
.check-list li::before{content:"";position:absolute;left:0;top:.5em;width:12px;height:7px;border-left:2px solid var(--v2-gold);border-bottom:2px solid var(--v2-gold);transform:rotate(-45deg)}
.on-paper .check-list li{color:#3f3a35}
.on-paper .check-list li::before{border-color:#b5290f}

/* ---------- forecourts ---------- */
.forecourt-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.forecourt-card{border:1px solid var(--line-dark);border-radius:26px;padding:28px;background:#fff;display:flex;flex-direction:column;gap:14px;min-width:0}
.forecourt-card h3{font-size:24px;line-height:1.05;text-transform:none;font-family:var(--ff-head);font-weight:600;letter-spacing:-.03em;color:#0a0a0a}
.forecourt-card .brand{font-size:11.5px;letter-spacing:.18em;text-transform:uppercase;color:#b5290f;font-weight:800}
.forecourt-card dl{margin:0;display:grid;gap:10px}
.forecourt-card dt{font-size:11.5px;letter-spacing:.14em;text-transform:uppercase;color:#7a746d;font-weight:800}
.forecourt-card dd{margin:2px 0 0;font-size:15px;color:#2a2622;overflow-wrap:anywhere}
@media(max-width:980px){.forecourt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.forecourt-grid{grid-template-columns:1fr}}

/* ---------- quote form ---------- */
.form-panel{border:1px solid var(--v2-line);border-radius:32px;padding:clamp(24px,4vw,52px);background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.02))}
.form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 20px;margin-top:28px}
.form-grid .full{grid-column:1/-1}
.field label{display:block;font-size:12.5px;letter-spacing:.06em;font-weight:700;color:#d8d5cf;margin-bottom:8px;text-transform:none}
.field label small{font-weight:400;color:#948f88}
.field input,.field select,.field textarea{width:100%;background:#0d0e10;border:1px solid rgba(255,255,255,.18);border-radius:14px;color:#fff;font:inherit;font-size:16px;padding:14px 16px;min-height:50px}
.field textarea{min-height:130px;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{outline:2px solid var(--v2-gold);outline-offset:1px;border-color:transparent}
.field select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,#d8d5cf 50%),linear-gradient(135deg,#d8d5cf 50%,transparent 50%);background-position:calc(100% - 22px) 55%,calc(100% - 16px) 55%;background-size:6px 6px;background-repeat:no-repeat;padding-right:40px}
.form-actions{display:flex;flex-wrap:wrap;gap:14px 22px;align-items:center;margin-top:8px}
/* .form-panel's translucent-white-on-dark glass effect and the light grey
   labels both assume a dark page background - on-paper (light) sections need
   their own solid panel and dark label colour, same pattern as .on-paper
   .panel above. Input boxes already force a solid dark background regardless
   of section, so they are unaffected. */
body.v2 .on-paper .form-panel{background:#fff;border-color:var(--line-dark)}
body.v2 .on-paper .field label{color:#3f3a35}
body.v2 .on-paper .field label small{color:#8a8075}
body.v2 .on-paper .field select{background-image:linear-gradient(45deg,transparent 50%,#3f3a35 50%),linear-gradient(135deg,#3f3a35 50%,transparent 50%)}
body.v2 .on-paper .form-note{color:#5a5550}
.form-note{font-size:13.5px;line-height:1.5;color:#a8a39c;text-transform:none;font-weight:400;max-width:560px}
.form-note a{color:var(--v2-gold);text-decoration:underline}
.form-status{font-size:14.5px;color:#f4c95d;min-height:1.4em;text-transform:none;font-weight:600}
@media(max-width:640px){.form-grid{grid-template-columns:1fr}}

/* ---------- contact departments ---------- */
.dept-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.dept{background:#fff;border:1px solid var(--line-dark);border-radius:26px;padding:28px;min-width:0}
.dept h3{font-size:22px;line-height:1.1;text-transform:none;font-family:var(--ff-head);font-weight:600;letter-spacing:-.03em;color:#0a0a0a}
.dept p{margin-top:8px;font-size:14.5px;color:#5a5550;text-transform:none;font-weight:400}
/* Base .lines: a vertical list of contact-style lines (phone, email,
   address, hours) - used standalone on dark panels (e.g. contact.html's
   "Contact details" card) and overridden below for on-paper .dept cards.
   Previously unstyled outside .dept, so these ran together as one
   wrapped inline paragraph instead of separate lines. */
.lines{display:grid;gap:8px;font-size:15.5px;line-height:1.5;color:#d0ccc5;margin-top:12px}
.lines a{color:var(--v2-gold);font-weight:700;overflow-wrap:anywhere}
.lines a:hover{color:#fff}
.lines span{overflow-wrap:anywhere}
.dept .lines{margin-top:14px;gap:6px;font-size:15px;color:#2a2622}
.dept .lines a{color:#b5290f;font-weight:700;overflow-wrap:anywhere}
.dept .lines a:hover{color:#8a1f0b}
@media(max-width:780px){.dept-grid{grid-template-columns:1fr}}

/* ---------- team: monogram fallback until real headshots arrive ----------
   Usage: <div class="team-card team-card--placeholder"><div class="avatar" data-initials="AB"><img ...> */
.team-card--placeholder .avatar{background:linear-gradient(145deg,#2b2c31,#111214)}
.team-card--placeholder .avatar img{display:none}
.team-card--placeholder .avatar::after{content:attr(data-initials);font-family:var(--ff-head);font-size:clamp(34px,5vw,56px);letter-spacing:.03em;color:var(--v2-gold);font-weight:800}

/* ---------- community: sport gallery + lightbox ---------- */
.gallery{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.gallery--two{grid-template-columns:repeat(2,minmax(0,1fr))}
.gallery-item{margin:0;border-radius:22px;overflow:hidden;background:#101114;border:1px solid var(--v2-line);min-width:0}
.gallery-item a{display:block;overflow:hidden;cursor:zoom-in}
.gallery-item img{width:100%;aspect-ratio:4/3;object-fit:cover;transition:transform .5s ease}
.gallery-item a:hover img,.gallery-item a:focus-visible img{transform:scale(1.04)}
.gallery-item a:focus-visible{outline:3px solid var(--v2-gold);outline-offset:-3px}
.gallery--portrait .gallery-item img{aspect-ratio:3/4}
.gallery--square .gallery-item img{aspect-ratio:1/1}
/* natural proportions, column widths chosen so a landscape and two portrait shots come out about the same height */
.gallery--natural{grid-template-columns:1.5fr 1fr 1fr;align-items:start}
.gallery--natural .gallery-item img{aspect-ratio:auto;height:auto}
@media(max-width:900px){.gallery--natural{grid-template-columns:1fr 1fr}.gallery--natural .gallery-item:first-child{grid-column:1/-1}}
@media(max-width:560px){.gallery--natural{grid-template-columns:1fr}}
.gallery-item--contain img{object-fit:contain;background:#fff}
.gallery-item figcaption{padding:12px 16px 14px;font-size:13.5px;line-height:1.45;color:#c9c5be;text-transform:none;font-weight:400}
body.v2 .gallery-label{margin:46px 0 18px;font-size:13px;letter-spacing:.18em;text-transform:uppercase;color:var(--v2-gold);font-weight:800;line-height:1.4}
.gallery-label small{display:block;margin-top:6px;letter-spacing:0;text-transform:none;font-weight:400;color:#a8a39c;font-size:14px}
@media(max-width:900px){.gallery{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.gallery,.gallery--two{grid-template-columns:1fr}}
.lightbox{position:fixed;inset:0;z-index:300;display:none;align-items:center;justify-content:center;padding:20px;background:rgba(3,3,3,.95)}
.lightbox.open{display:flex}
.lightbox figure{margin:0;display:flex;flex-direction:column;align-items:center;gap:14px;max-width:min(1100px,92vw)}
.lightbox img{max-width:100%;max-height:78vh;object-fit:contain;border-radius:12px;background:#111}
.lightbox figcaption{color:#d8d5cf;font-size:14px;text-align:center;text-transform:none;font-weight:400;max-width:70ch}
.lb-btn{position:absolute;width:48px;height:48px;border-radius:50%;border:1px solid rgba(255,255,255,.25);background:rgba(20,20,20,.85);color:#fff;font-size:24px;line-height:1;cursor:pointer;display:grid;place-items:center}
.lb-btn:hover,.lb-btn:focus-visible{background:#fff;color:#000}
.lb-close{top:16px;right:16px}
.lb-prev{left:16px;top:50%;transform:translateY(-50%)}
.lb-next{right:16px;top:50%;transform:translateY(-50%)}
@media(max-width:640px){.lb-prev{left:8px;top:auto;bottom:16px;transform:none}.lb-next{right:8px;top:auto;bottom:16px;transform:none}}

/* ---------- news ---------- */
.news-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.news-grid .card{display:flex;flex-direction:column}
.news-grid .card .body{display:flex;flex-direction:column;flex:1}
.news-grid .card .more{margin-top:auto;padding-top:16px;font-size:13px;font-weight:800;color:var(--v2-gold);text-transform:none}
@media(max-width:980px){.news-grid{grid-template-columns:1fr 1fr}}
@media(max-width:640px){.news-grid{grid-template-columns:1fr}}

/* anchored sections must clear the fixed nav */
body.v2 [id]{scroll-margin-top:112px}
/* short header for content-light pages (contact, news, policy) */
body.v2 .page-header--slim{min-height:0;padding-block:170px 70px}
@media(max-width:640px){body.v2 .page-header--slim{min-height:0;padding-block:130px 50px}}

/* ---------- placeholder (policy) pages ---------- */
.draft-note{max-width:760px;border:1px dashed rgba(244,201,93,.6);border-radius:24px;padding:32px;background:rgba(244,201,93,.05)}
.draft-note h2{font-size:clamp(26px,3vw,38px);text-transform:none;letter-spacing:-.03em}
.draft-note p{margin-top:14px;color:#cfcac4;text-transform:none;font-weight:400}

/* ---------- footer ---------- */
body.v2 .foot-grid{grid-template-columns:1.5fr repeat(3,minmax(0,1fr));gap:36px}
body.v2 .foot-brand p{max-width:300px}
body.v2 .foot-line{margin-top:12px;color:var(--v2-gold);font-weight:800;font-size:14px}
body.v2 .foot-addr{margin-top:10px;font-size:14.5px;line-height:1.5;color:var(--muted);text-transform:none;font-weight:400}
body.v2 .foot-legal{margin-top:54px;padding-top:24px;border-top:1px solid var(--v2-line);display:grid;gap:12px;font-size:13px;color:#8d8983;text-transform:none}
body.v2 .foot-legal p{margin:0;line-height:1.6}
body.v2 .legal-links{display:flex;flex-wrap:wrap;gap:8px 24px;list-style:none;margin:0;padding:0}
body.v2 .legal-links a:hover{color:#fff}
@media(max-width:1100px){body.v2 .foot-grid{grid-template-columns:repeat(2,minmax(0,1fr))}body.v2 .foot-brand{grid-column:1/-1}}

/* tablets: keep the stat band and heading from colliding when photo sections stack */
@media(max-width:980px){body.v2 .home-history{min-height:0}}

/* nothing in this file may create sideways scroll on a phone */
@media(max-width:640px){
  body.v2 .section-head h2{overflow-wrap:break-word}
  .panel,.offer,.metric,.forecourt-card,.dept{min-width:0}
}
