/* ============================================================================
   FANTHORITY — IMAGE BANK (Phase 2, 22 Oct 2026)

   Where every competition's background pictures live: one folder per
   competition in /assets/bank/. The pictures are James's own files, byte for
   byte — never resized, never re-graded. The only thing the page adds is a
   BLEND where a picture ends, so it melts into the background colour instead
   of stopping on a hard edge. No other gradients.

     home-desktop.webp     Level 1 (the competition's home), above 1024px wide
     home-tablet.webp      Level 1, 561-1024px
     home-mobile.webp      Level 1, up to 560px
     section-desktop.webp  Level 2 (Teams / Games / Bracket), above 560px    } not in use yet:
     section-mobile.webp   Level 2, up to 560px                              } waiting for pictures

   Recommended sizes for NEW pictures, and the full guide: the project's
   "02 Tools/2 Images" folder (READ ME and "Photography Style Guide.html").

   To change a picture, replace the file with one of the same name.
   A page joins the bank with two classes on its <body>:
     bank-home (or bank-section)   +   bank-<competition>
   ========================================================================== */

/* ── THE REGISTRY — one block per competition.
      --bank-hr-* is how tall the picture is drawn, as a share of the window
      width (its own proportions: a square is 100vw, 4:3 is 74.6vw, the
      1240 x 1969 phone art is 158.8vw). --bank-dw-d is how WIDE the desktop
      picture is drawn (default: the window's width). The Hero Placer's wide
      1920 x 1080 desktop crop is drawn at max(1920px,100vw), centred, so its
      crowd line stays just under the subhead from 1025 to 1920px; the Hero
      Placer's publish step writes these lines for a competition. The blend always ends exactly on the
      picture's bottom edge because the blend uses the same box.
      Section pictures: add --bank-sec-d / --bank-sec-m here once they exist. */
.bank-worldcup-2026{   /* the World Cup home keeps its own treatment (in its page); its files are here */
 --bank-home-d:url('/assets/bank/worldcup-2026/home-desktop.webp');
 --bank-home-t:url('/assets/bank/worldcup-2026/home-tablet.webp');
 --bank-home-m:url('/assets/bank/worldcup-2026/home-mobile.webp');}
.bank-usopen-2026{
 --bank-home-d:url('/assets/bank/usopen-2026/home-desktop.webp');
 --bank-home-t:url('/assets/bank/usopen-2026/home-tablet.webp');
 --bank-home-m:url('/assets/bank/usopen-2026/home-mobile.webp');}
.bank-mlb-2026{
 --bank-home-d:url('/assets/bank/mlb-2026/home-desktop.webp');
 --bank-home-t:url('/assets/bank/mlb-2026/home-tablet.webp');
 --bank-home-m:url('/assets/bank/mlb-2026/home-mobile.webp');}
.bank-premier-league-2026-27{   /* the Voice football photo, 1024 x 1024 — square at every size */
 --bank-home-d:url('/assets/bank/premier-league-2026-27/home-desktop.webp');
 --bank-home-t:url('/assets/bank/premier-league-2026-27/home-tablet.webp');
 --bank-home-m:url('/assets/bank/premier-league-2026-27/home-mobile.webp');
 --bank-hr-d:100vw;--bank-hr-t:100vw;--bank-hr-m:100vw;}
.bank-f1-2026{   /* The Straight, 1600 x 1194 (4:3) — 74.6vw tall at every size */
 --bank-home-d:url('/assets/bank/f1-2026/home-desktop.webp');
 --bank-home-t:url('/assets/bank/f1-2026/home-tablet.webp');
 --bank-home-m:url('/assets/bank/f1-2026/home-mobile.webp');
 --bank-hr-d:74.625vw;--bank-hr-t:74.625vw;--bank-hr-m:74.625vw;}

/* ── LEVEL 1 — THE HOME PICTURE. The US Open's and MLB's own technique,
      unchanged: one fixed layer behind everything (not background-attachment:
      fixed — iOS Safari and Chrome for Android break that), height:100lvh so
      the mobile URL bar can't rescale the art mid-scroll. The picture is drawn
      full width at its own proportions; the blend runs over the bottom quarter
      of the picture only (clear to 75%, then into #0b1f3f by the bottom edge). */
body.bank-home::before{
 content:"";position:fixed;top:0;left:0;right:0;z-index:-1;pointer-events:none;
 height:100vh;height:100lvh;
 background-color:#0b1f3f;
 background-image:
   linear-gradient(180deg,rgba(11,31,63,0) 0%,rgba(11,31,63,0) 75%,rgba(11,31,63,.45) 87%,rgba(11,31,63,.85) 95%,#0b1f3f 100%),
   var(--bank-home-d);
 background-position:top center,top center;
 background-size:100% var(--bank-hr-d,100vw),var(--bank-dw-d,100%) auto;
 background-repeat:no-repeat,no-repeat;}
@media(max-width:1024px){
 body.bank-home::before{background-image:
   linear-gradient(180deg,rgba(11,31,63,0) 0%,rgba(11,31,63,0) 75%,rgba(11,31,63,.45) 87%,rgba(11,31,63,.85) 95%,#0b1f3f 100%),
   var(--bank-home-t);
  background-size:100% var(--bank-hr-t,100vw),100% auto;}
}
@media(max-width:560px){
 body.bank-home::before{background-image:
   linear-gradient(180deg,rgba(11,31,63,0) 0%,rgba(11,31,63,0) 75%,rgba(11,31,63,.45) 87%,rgba(11,31,63,.85) 95%,#0b1f3f 100%),
   var(--bank-home-m);
  background-size:100% var(--bank-hr-m,158.8vw),100% auto;}
}

/* ── LEVEL 2 — THE SECTION BANNER (ready, not showing yet). A shorter picture
      at the top of Teams, Games and Bracket that scrolls away with the page.
      No darkening — only the blend: the bottom half melts into the page's own
      background. Shows nothing until a competition's --bank-sec-d/-m exist. */
body.bank-section::before{
 content:"";position:absolute;top:0;left:0;right:0;z-index:-1;pointer-events:none;
 height:clamp(380px,36vw,600px);
 background:var(--bank-sec-d) center 35%/cover no-repeat;
 -webkit-mask-image:linear-gradient(180deg,#000 0%,#000 55%,transparent 100%);
 mask-image:linear-gradient(180deg,#000 0%,#000 55%,transparent 100%);}
@media(max-width:560px){
 body.bank-section::before{height:92vw;background:var(--bank-sec-m) center 35%/cover no-repeat;}
}

/* ── LEVEL 2 — THE PAGE TITLE, the same on every competition:
      a small gold line with the competition, the section as the big title
      (the same word as its button in the nav), one short line of intro. */
.p2head{position:relative;text-align:center;padding:34px 22px 8px;}
.p2head .p2k{display:block;font-size:11px;line-height:1.3;font-weight:800;letter-spacing:.2em;text-transform:uppercase;
 color:var(--gold,#e7c66b);}
.p2head h1{font-size:46px;font-weight:900;letter-spacing:-1px;line-height:1.04;margin:12px 0 0;padding:0;
 color:#fff;text-align:center;}
.p2head .p2s{font-size:14px;color:var(--mut,#9fb3d4);max-width:540px;margin:12px auto 0;line-height:1.6;text-align:center;min-height:0;}
@media(max-width:560px){
 .p2head{padding:26px 22px 6px;}
 .p2head h1{font-size:34px;}
 .p2head .p2s{font-size:13.5px;}
}
