/* T27 (29 Nov 2026): Amanda's style review for RC6. Loaded last. */

/* Images with width and height set keep their shape (the attributes only reserve space) */
:where(picture) img[width]{height:auto}

/* Italic accents (acc(..., it=True)) and accents kept on one line */
.accent em{font-style:italic}
.accent.nw{white-space:nowrap}

/* Full-screen tops with a scroll cue (T27-B 3): text to the left over a darker shade */
.phero.full{min-height:min(calc(100vh - 76px),960px);align-items:center}
.phero.full:after{background:linear-gradient(90deg,rgba(19,41,75,.92) 0%,rgba(19,41,75,.88) 56%,rgba(19,41,75,.5) 78%,rgba(19,41,75,.2) 100%),linear-gradient(180deg,rgba(19,41,75,0) 62%,rgba(19,41,75,.6) 100%)}
.phero.full .wrap{max-width:none;margin:0;padding:96px 48px 120px}
.phero.full .in{max-width:760px}
.phero.full .sub{max-width:700px}
.phero .btns{display:flex;flex-wrap:wrap;gap:14px;margin-top:24px}
.phero .btns .pill{margin-top:0}
.down{position:absolute;left:50%;bottom:22px;transform:translateX(-50%);width:44px;height:44px;border-radius:50%;border:2px solid rgba(255,255,255,.8);background:rgba(19,41,75,.45);display:flex;align-items:center;justify-content:center;color:var(--white);text-decoration:none;font-size:20px;z-index:2;animation:bob 2.4s ease-in-out infinite}
.down:focus-visible{outline:3px solid var(--gold);outline-offset:3px}
.anchor{scroll-margin-top:76px}
.anchor:focus{outline:none}
@media (prefers-reduced-motion:reduce){.down{animation:none}}

/* Home hero (T27-C): title lower so the mountain sits behind "Trinity", and a darker area behind the paragraph */
.hero h1{padding-top:clamp(72px,12vh,140px)}
.home .hero .copy{background:rgba(19,41,75,.72);padding:20px 24px;border-radius:var(--r)}
/* T27-D 3: a shade from the left keeps the title readable over the sky (4.5 to 1) */
@media (min-width:861px){ .home .hero:after{background:linear-gradient(90deg,rgba(19,41,75,.86) 0%,rgba(19,41,75,.8) 52%,rgba(19,41,75,.25) 76%,rgba(19,41,75,0) 100%),linear-gradient(180deg,rgba(19,41,75,.4) 0%,rgba(19,41,75,.1) 30%,rgba(19,41,75,.5) 60%,rgba(19,41,75,.92) 100%)} }

/* Home: Part of the Trinity family. Image on the left, words, then the logo above the button on the right */
.door27 .wrap{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr) 240px;gap:48px}
.door27 .dimg img{border-radius:var(--r);aspect-ratio:4/3;object-fit:cover;width:100%;box-shadow:0 20px 40px rgba(0,0,0,.25)}
.door27 .dside{display:flex;flex-direction:column;align-items:center;gap:24px}
.door27 .tile{width:200px}

/* Bands that tell sections apart */
.band-white{background:var(--white)}
.band-mist{background:var(--mist)}
.goldline{background:var(--blue)}
.goldline .wrap{padding-top:40px;padding-bottom:40px}
.goldline p{margin:0;color:var(--gold);font:700 clamp(28px,3vw,40px)/1.2 var(--fh)}

/* Text beside an image (About: Why we do this; Foundation: Who we are) */
.split27{display:grid;grid-template-columns:1.15fr 1fr;gap:56px;align-items:start;padding-top:72px;padding-bottom:72px}
.split27 p{font-size:20px;margin:0 0 18px}
.split27 .ph img{border-radius:var(--r);aspect-ratio:4/3;object-fit:cover;width:100%;box-shadow:var(--shadow)}
.split27 .ph{position:sticky;top:110px}

/* About: Two parts, one family */
.parts27{display:grid;grid-template-columns:1fr 240px;gap:56px;align-items:center;padding-top:72px;padding-bottom:72px}
.parts27 p{font-size:20px;margin:0 0 16px}
.parts27 .tile{background:var(--blue);border-radius:var(--r);padding:20px}
.parts27 .tile img,.door27 .tile img{display:block;width:100%;height:auto;max-width:180px;margin:0 auto}
.band-white .people{padding-top:72px;padding-bottom:40px}

/* About: What guides us. No boxes: T7 fading into a plain list */
.values27{padding-top:80px;padding-bottom:80px}
.vgrid{display:grid;grid-template-columns:1fr 1fr;gap:0;align-items:center}
.fade img{-webkit-mask-image:linear-gradient(90deg,#000 55%,transparent 100%);mask-image:linear-gradient(90deg,#000 55%,transparent 100%);width:100%;aspect-ratio:4/3;object-fit:cover}
.vlist{list-style:none;margin:0;padding:0 0 0 8px}
.vlist li{padding:14px 0;border-bottom:1px solid rgba(19,41,75,.15)}
.vlist li:last-child{border-bottom:0}
.vlist h3{margin:0 0 4px;font:700 24px/1.2 var(--fh);color:var(--blue)}
.vlist p{margin:0}

/* Working with us: the partnership as a timeline */
.tl27,.way27{padding-top:72px;padding-bottom:72px}
.tlgrid{display:grid;grid-template-columns:1fr 1.2fr;gap:56px;align-items:start}
.tlgrid .ph{position:sticky;top:110px}
.tlgrid .ph img{border-radius:var(--r);aspect-ratio:4/3;object-fit:cover;width:100%;box-shadow:var(--shadow)}
.timeline{list-style:none;margin:0;padding:0;position:relative}
.timeline:before{content:"";position:absolute;left:23px;top:12px;bottom:12px;width:3px;background:var(--gold)}
.timeline li{position:relative;display:grid;grid-template-columns:48px 1fr;gap:20px;padding:0 0 28px}
.timeline li:last-child{padding-bottom:0}
.timeline .dot{position:relative;z-index:1;width:48px;height:48px;border-radius:50%;background:var(--blue);color:var(--white);display:flex;align-items:center;justify-content:center;font:700 16px/1 var(--fb)}
.timeline h3{margin:8px 0 6px;font:700 24px/1.2 var(--fh);color:var(--navy)}
.timeline p{margin:0}
.way27 .timeline{max-width:860px}

/* Working with us: How we keep you informed, T9 fading into the text */
.ki27{display:grid;grid-template-columns:1fr 1fr;gap:0;align-items:center;padding-top:56px;padding-bottom:72px}
.ki27 .tx{padding-left:16px}
.ki27 .tx p,.ki27 .tx li{font-size:20px}
.band-mist .asks{padding-top:72px;padding-bottom:72px}
.band-mist .ticks li{background:var(--white)}

/* News: one article per row */
.nlist{display:flex;flex-direction:column;gap:28px}
.nrow{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);background:var(--white);border-radius:var(--r);overflow:hidden;box-shadow:var(--shadow)}
.nrow .ph img{width:100%;height:100%;min-height:240px;object-fit:cover}
.nrow .tx{padding:28px 32px}
.nrow h2{margin:6px 0 12px;font:400 30px/1.15 var(--fh)}
.nrow h2 a{color:inherit;text-decoration:none}
.nrow h2 a:hover{text-decoration:underline}
.nrow p{margin:0 0 14px}
.byline{font-weight:600}
.byline .dt{margin-left:12px;font-weight:400}

/* Talk to us: button beside the line for people looking for housing */
.hb27{display:flex;align-items:center;gap:24px;flex-wrap:wrap}
.hb27 p{flex:1;min-width:260px;margin:0}

/* The Lottery logo (T27-B 5): white background, never below the fund's minimum */
.fund27{display:flex;align-items:center;justify-content:space-between;gap:40px;flex-wrap:wrap;padding-top:64px;padding-bottom:64px}
.fund27 > div{flex:1;min-width:260px}
.fund27 p{font-size:20px}
.lead2.fund27{max-width:1240px;padding-top:64px;padding-bottom:24px}
.nlcf{display:block;flex:none;background:var(--white);border-radius:var(--r-sm)}
.nlcf img{width:240px;height:auto;min-width:165px}

@media (max-width:1180px){
  .door27 .wrap{grid-template-columns:1fr 1fr}
  .door27 .dside{grid-column:1 / -1;flex-direction:row;justify-content:flex-start}
  .door27 .dside .pill{grid-column:auto}
}
@media (max-width:860px){
  .phero.full{min-height:calc(100svh - 68px)}
  .phero.full:after{background:linear-gradient(180deg,rgba(19,41,75,.84) 0%,rgba(19,41,75,.86) 45%,rgba(19,41,75,.92) 100%)}
  .home .hero:after{background:linear-gradient(180deg,rgba(19,41,75,.8) 0%,rgba(19,41,75,.78) 40%,rgba(19,41,75,.85) 60%,rgba(19,41,75,.95) 100%)}
  .phero.full .wrap{padding:64px 16px 96px}
  .phero.full h1{font-size:42px}
  .phero.full .sub{font-size:19px}
  .hero h1{padding-top:56px}
  .home .hero .copy{padding:14px 16px}
  .door27 .wrap{grid-template-columns:1fr}
  .door27 .dside{flex-direction:column;align-items:flex-start}
  .door27 .tile{width:140px}
  .split27,.parts27,.tlgrid,.vgrid,.ki27,.nrow{grid-template-columns:1fr;gap:24px}
  .split27,.parts27,.tl27,.way27,.values27{padding-top:48px;padding-bottom:48px}
  .split27 .ph,.tlgrid .ph{position:static}
  .parts27 .tile{width:140px}
  .fade img{-webkit-mask-image:linear-gradient(180deg,#000 60%,transparent 100%);mask-image:linear-gradient(180deg,#000 60%,transparent 100%)}
  .ki27 .tx{padding-left:0}
  .nrow .ph img{min-height:0;aspect-ratio:16/9;height:auto}
  .nrow .tx{padding:20px}
  .nrow h2{font-size:26px}
  .goldline .wrap{padding-top:28px;padding-bottom:28px}
}
.band-white .person{background:var(--sky);box-shadow:none}
/* T27-D 1: a long email address wraps on a 320 px phone instead of pushing the page sideways */
a[href^="mailto:"]{overflow-wrap:anywhere}
/* T28-A 1: Home on phones. The scroll cue sits below the button in the page flow, so it is never cut off or covered */
@keyframes bob28{50%{transform:translateY(6px)}}
@media (max-width:860px){
  .home .hero{max-height:none}
  .home .hero h1{padding-top:28px;font-size:52px}
  .home .hero .foot{padding-bottom:0;gap:18px}
  .home .hero .copy p{font-size:16px}
  .home .hero .copy .lede{font-size:17px}
  .home .hero .down{position:relative;left:auto;bottom:auto;transform:none;margin:22px auto 24px;flex:none;animation-name:bob28}
}
@media (max-width:860px) and (prefers-reduced-motion:reduce){ .home .hero .down{animation:none} }

/* ---------- T29 (29 Nov 2026): Amanda's second style round ---------- */

/* Sections where an image fills one side, edge to edge, and fades into the text (T29-B 2, 4, 5, 6, 10) */
.bleed{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;position:relative}
.bleed .bph{position:relative;min-height:480px}
.bleed .bph picture{display:block;position:absolute;inset:0}
.bleed .bph img{display:block;width:100%;height:100%;object-fit:cover}
.bleed.img-left .bph img{-webkit-mask-image:linear-gradient(90deg,#000 50%,transparent 100%);mask-image:linear-gradient(90deg,#000 50%,transparent 100%)}
.bleed.img-right .bph{order:2}
.bleed.img-right .bph img{-webkit-mask-image:linear-gradient(270deg,#000 50%,transparent 100%);mask-image:linear-gradient(270deg,#000 50%,transparent 100%)}
.bleed .btx{padding:80px 48px;align-self:center}
.bleed.img-left .btx{padding-right:max(48px,calc((100vw - 1240px) / 2 + 48px))}
.bleed.img-right .btx{padding-left:max(48px,calc((100vw - 1240px) / 2 + 48px))}
.bleed .btx > *{max-width:640px}
.bleed .btx p{font-size:20px;margin:0 0 18px}
.bleed .btx .timeline p,.bleed .btx .vlist p{font-size:inherit;margin:0}
.bleed .btx ul:not(.vlist){font-size:20px}

/* Home: Part of the Trinity family. T11 mirrored, facing the words (145), and a line drawing of the Trinity knot,
   taken from the logo itself (not redrawn), in place of the circles */
.door.door29{display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}
.door29 .bph img{object-position:25% 50%}
.door29 h2{font-size:clamp(36px,3.6vw,52px)}
.door.door29:before,.door.door29:after{content:none}
.door29 .bph{min-height:520px}
.door29 .dgrid{display:grid;grid-template-columns:minmax(0,1fr) 180px;gap:36px;align-items:center;max-width:none;position:relative;z-index:1}
.door29 .dside{display:flex;flex-direction:column;align-items:center;gap:24px}
.door29 .tile{width:180px}
.door29 .knot{position:absolute;right:-60px;top:-70px;width:380px;height:auto;opacity:.32;pointer-events:none;z-index:0}

/* Home hero: no box behind the paragraph, a soft dark shade that fades, as on the About us top (T29-B 1) */
.home .hero .copy{background:none;padding:0;border-radius:0}
@media (min-width:861px){ .home .hero:after{background:linear-gradient(90deg,rgba(19,41,75,.92) 0%,rgba(19,41,75,.88) 50%,rgba(19,41,75,.5) 72%,rgba(19,41,75,.15) 100%),linear-gradient(180deg,rgba(19,41,75,0) 55%,rgba(19,41,75,.7) 100%)} }

/* Talk to us: T12 (T29-B 8). The two faces are in the upper part of the picture, so on a laptop the words sit in the
   lower part, under a shade that is light at the top and dark at the bottom. Nothing covers the face on the left */
@media (min-width:861px){
  .phero.full.talk29{align-items:flex-end}
  .phero.full.talk29 .wrap{padding-top:300px;padding-bottom:104px}
  .phero.full.talk29:after{background:linear-gradient(180deg,rgba(19,41,75,.2) 0%,rgba(19,41,75,.25) 30%,rgba(19,41,75,.82) 52%,rgba(19,41,75,.92) 100%),linear-gradient(90deg,rgba(19,41,75,.35) 0%,rgba(19,41,75,.15) 60%,rgba(19,41,75,0) 100%)}
}

/* The Lottery logo, larger (T29-B 11). Unaltered, on white, never below the fund's minimum */
.nlcf{max-width:100%}
.nlcf img{display:block;width:360px;max-width:100%;min-width:165px;height:auto}

@media (max-width:860px){
  .bleed,.door.door29{grid-template-columns:1fr}
  .bleed .bph,.door29 .bph{min-height:0;order:0}
  .bleed.img-right .bph{order:0}
  .bleed .bph picture{position:static;height:auto;max-height:none}
  .bleed .bph img,.bleed.img-left .bph img,.bleed.img-right .bph img{height:auto;aspect-ratio:16/10;-webkit-mask-image:linear-gradient(180deg,#000 55%,transparent 100%);mask-image:linear-gradient(180deg,#000 55%,transparent 100%)}
  .bleed .btx,.bleed.img-left .btx,.bleed.img-right .btx{padding:8px 16px 56px}
  .bleed .btx p,.bleed .btx ul:not(.vlist){font-size:18px}
  .door29 .dgrid{grid-template-columns:1fr;gap:24px}
  .door29 .dside{align-items:flex-start}
  .door29 .tile{width:140px}
  .door29 .knot{width:220px;right:-50px;top:-40px;opacity:.25}

  /* T29-A 144: on phones a lighter shade over the photo, and the words on a darker panel */
  .phero.full:after{background:linear-gradient(180deg,rgba(19,41,75,.35) 0%,rgba(19,41,75,.25) 50%,rgba(19,41,75,.5) 100%)}
  .phero.full .in{background:rgba(19,41,75,.86);padding:20px 18px;border-radius:var(--r)}
  .phero.full .wrap{padding:40px 16px 96px}
}
/* About us top: "a real chance to move on" on one line (T29-B 3). The title scales with the screen so the line ends
   about 60% across, inside the dark shade. Below 600 px wide it cannot fit, so it wraps there */
.phero.full.about29 h1{font-size:clamp(40px,4.6vw,96px)}
@media (max-width:860px){ .phero.full.about29 h1{font-size:42px} }
@media (max-width:599px){ .phero.full.about29 .accent.nw{white-space:normal} }
.who27 .bph img{object-position:78% 50%}

/* T30-C (29 Nov 2026), Amanda's last style points */
/* 1. Home, Trinity Foundation: the logo and button sit a little further right; they may overlap the knot drawing */
.door29 .dgrid{grid-template-columns:minmax(0,1fr) auto}
.door29.img-left .btx{padding-right:max(28px,calc((100vw - 1240px) / 2 + 8px))}
.door29 .dside{position:relative;z-index:2}
/* 2. What we do: each service image fills its side and fades towards the centre and the text */
.rows30{padding:24px 0 40px}
.svc30{scroll-margin-top:100px}
.svc30 .bph{min-height:520px}
.svc30 h2{margin:0 0 18px;font:400 clamp(32px,3.2vw,46px)/1.1 var(--fh);overflow-wrap:break-word}
.svc30 .pill{white-space:normal;max-width:100%}
/* 3. Foundation, Who we are: text to the left, T11 shown in full on the right */
.who27{grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:center}
.who27 .bph{min-height:0}
.who27 .bph picture{position:static}
.who27 .bph img{height:auto;aspect-ratio:16/9;object-fit:cover;object-position:50% 50%;-webkit-mask-image:linear-gradient(270deg,#000 85%,transparent 100%);mask-image:linear-gradient(270deg,#000 85%,transparent 100%)}
.who27.img-right .btx{padding-right:32px}
@media (max-width:860px){
  .door29 .dgrid{grid-template-columns:1fr}
  .door29.img-left .btx{padding-right:16px}
  .svc30 .bph{min-height:0}
  .who27{grid-template-columns:1fr}
  .who27 .bph img{-webkit-mask-image:linear-gradient(180deg,#000 80%,transparent 100%);mask-image:linear-gradient(180deg,#000 80%,transparent 100%)}
}

/* T31-AD-B 4 (29 Nov 2026): T13 on Why we do this. The map is at the left of the picture, so the fade stays narrow
   and the crop keeps the left edge, so the fade never covers the map */
.why33 .bph img{object-position:0% 50%;-webkit-mask-image:linear-gradient(270deg,#000 92%,transparent 100%);mask-image:linear-gradient(270deg,#000 92%,transparent 100%)}
