/* Al Adalah Club - home page (website remodel, IT, 25 Oct 2026). Loaded on the home page only, after site.css + brand-2026.css.
   Sections: lead story + latest headlines, match centre, news, first-team players, photo albums, join + community, governance.
   Undo: restore WebViews/home.php.orig and remove the home-2026.css line in WebViews/layout.php. */
.visually-hidden{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
.hm-head{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:28px;flex-wrap:wrap}
.hm-head h2{font-size:clamp(28px,3vw,38px);margin:0;line-height:1.3}
.hm-head-light .eyebrow{color:var(--t-fg-eaa9b9)}
.hm-head-light h2,.hm-head-light .text-link{color:var(--t-fg-ffffff)}
.hm-head .text-link{white-space:nowrap}

/* lead story */
.hm-lead{position:relative;isolation:isolate;overflow:hidden;background:var(--t-bg-0a2944);color:var(--t-fg-ffffff);min-height:640px;display:flex;align-items:flex-end}
.hm-lead-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:35% 36%;z-index:-2}  /* 26 Oct (user): keep the upper part (faces) on wide screens */
.hm-lead-shade{position:absolute;inset:0;z-index:-1;background:linear-gradient(to left,rgba(9,37,63,.94) 0%,rgba(9,37,63,.72) 42%,rgba(9,37,63,.18) 78%),linear-gradient(0deg,rgba(9,37,63,.88),transparent 55%)}
.hm-lead-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(300px,.9fr);gap:48px;align-items:end;padding:130px 0 60px}
.hm-kicker{display:flex;align-items:center;gap:12px;margin:0 0 6px;font-size:14px;color:var(--t-fg-cfdbe8)}
.hm-kicker span{background:var(--t-bg-9c1b3d);color:var(--t-fg-ffffff);font-weight:700;font-size:13px;padding:3px 12px;border-radius:3px}
.hm-lead h1{font-size:clamp(34px,4.1vw,56px);line-height:1.25;margin:10px 0 16px;text-wrap:balance}
.hm-lead h1 a:hover{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:8px}
.hm-lead-text{max-width:640px;color:var(--t-fg-dbe4ee);font-size:18px;margin-bottom:26px}
.hm-headlines{background:rgba(10,41,68,.9);border-top:4px solid var(--t-bd-9c1b3d);padding:20px 22px 16px;border-radius:0 0 6px 6px}
/* 26 Oct (user: "move that to the left", same width): on big screens the lead spans the header's width, so the headlines column sits
   near the left edge (clear of the faces) and the title lines up under the logo; the column keeps its earlier width (452px). */
@media(min-width:1101px){.hm-lead-grid.container{width:min(1720px,calc(100% - 72px));grid-template-columns:minmax(0,1fr) 452px}}.hm-headlines h2{font-size:15px;margin:0 0 6px;color:var(--t-fg-eaa9b9);letter-spacing:.3px}
.hm-headlines ol{list-style:none;margin:0;padding:0}
.hm-headlines li a{display:grid;grid-template-columns:96px 1fr;gap:14px;align-items:center;padding:12px 0;border-bottom:1px solid rgba(255,255,255,.1)}
.hm-headlines li:last-child a{border-bottom:0}
.hm-headlines img{width:96px;height:64px;object-fit:cover;border-radius:4px}
.hm-headlines time{display:block;font-size:12px;color:var(--t-fg-9fb1c6)}
.hm-headlines strong{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:15px;line-height:1.55}
.hm-headlines li a:hover strong{color:var(--t-fg-f3c4cf)}
.hm-more{display:inline-flex;align-items:center;gap:6px;margin-top:8px;font-size:14px;font-weight:700;color:var(--t-fg-ffffff)}

/* match centre */
.hm-match{background:var(--t-bg-0a2944);color:var(--t-fg-ffffff);padding:60px 0 70px;border-top:4px solid var(--t-bd-9c1b3d)}
.hm-match .small-heading{color:var(--t-fg-b9c9dc);font-size:14px;margin-bottom:10px}
.hm-match-grid{display:grid;grid-template-columns:1.12fr 1fr .9fr;gap:24px;align-items:start}
.hm-match .matches-highlight{background:none;border:0;border-radius:0;overflow:visible}
.hm-match .match-card{border:1px solid rgba(255,255,255,.12);border-radius:12px}
.hm-match-actions{margin-top:12px}
.hm-chip{display:inline-flex;align-items:center;gap:8px;padding:9px 16px;border:1px solid rgba(255,255,255,.32);border-radius:999px;color:var(--t-fg-ffffff);font-size:14px;font-weight:700;transition:background .15s,color .15s}
.hm-chip:hover{background:var(--t-bg-ffffff);color:var(--t-fg-0e3659)}
.hm-form{background:rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.1);border-radius:10px;padding:20px}
.hm-form-chips{list-style:none;display:flex;gap:8px;margin:0 0 14px;padding:0}
.hm-form-chips li{width:36px;height:36px;display:grid;place-items:center;border-radius:6px;font-weight:700;font-size:15px}
.is-w{background:var(--t-bg-1f7a4d)}.is-d{background:var(--t-bg-6b7785)}.is-l{background:var(--t-bg-b3261e)}
.hm-results{list-style:none;margin:0;padding:0}
.hm-results li a{display:flex;flex-direction:column;gap:2px;padding:10px 0;border-bottom:1px solid rgba(255,255,255,.08);font-size:14px}
.hm-results li:last-child a{border-bottom:0}
.hm-results li a:hover .hm-res-teams{color:var(--t-fg-f3c4cf)}
.hm-res-teams b{display:inline-block;margin:0 6px;font-size:15px;color:var(--t-fg-ffffff)}
.hm-res-meta{font-size:12px;color:var(--t-fg-9fb1c6)}
.hm-res-meta i{font-style:normal;font-weight:700;font-size:11px;padding:1px 7px;border-radius:3px;margin-inline-end:8px;color:var(--t-fg-ffffff)}
.hm-match .empty,.hm-match .web-empty{color:var(--t-fg-c7d3e0)}

/* news */
.hm-news .meta{display:flex;gap:12px;font-size:13px;color:var(--t-fg-5d6b7a);margin:0 0 6px}
.hm-news .meta span{color:var(--t-fg-9c1b3d);font-weight:700}
.hm-news-grid{display:grid;grid-template-columns:1.25fr 1fr;gap:28px;align-items:start}
.hm-news-feature a{display:block;border:1px solid var(--t-bd-e3e7ec);border-radius:8px;overflow:hidden;background:var(--t-bg-ffffff);transition:box-shadow .2s}
.hm-news-feature a:hover{box-shadow:0 18px 40px rgba(14,54,89,.1)}
.hm-news-feature .card-picture{aspect-ratio:16/9}
.hm-news-feature img{width:100%;height:100%;object-fit:cover}
.hm-news-body{padding:22px 24px 26px}
.hm-news-body h3{font-size:26px;line-height:1.4;margin:0 0 10px}
.hm-news-body p:last-child{color:var(--t-fg-5d6b7a);margin:0}
.hm-news-list{display:grid;gap:16px}
.hm-news-item a{display:grid;grid-template-columns:172px 1fr;gap:16px;align-items:center;padding-bottom:16px;border-bottom:1px solid var(--t-bd-e3e7ec)}
.hm-news-item:last-child a{border-bottom:0}
.hm-news-item .card-picture{aspect-ratio:4/3;border-radius:6px}
.hm-news-item img{width:100%;height:100%;object-fit:cover}
.hm-news-item h3{font-size:17px;line-height:1.55;margin:0;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.hm-news-item a:hover h3,.hm-news-feature a:hover h3{color:var(--t-fg-9c1b3d)}

/* sliders (players, albums) */
.hm-rail-nav{display:flex;align-items:center;gap:10px}
.hm-rail-btn{width:40px;height:40px;border-radius:50%;border:1px solid currentColor;background:transparent;color:inherit;display:grid;place-items:center;opacity:.85}
.hm-rail-btn:hover:not(:disabled){opacity:1;background:rgba(127,127,127,.12)}
.hm-rail-btn:disabled{opacity:.3}
.hm-rail-btn .icon{width:18px;height:18px;vertical-align:0}
.hm-rail{list-style:none;margin:0;padding:0 0 6px;display:grid;grid-auto-flow:column;gap:20px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain}
.hm-rail::-webkit-scrollbar{display:none}
.hm-rail>li{scroll-snap-align:start;min-width:0}

/* first-team players */
.hm-squad{background:var(--t-bg-0e3659);color:var(--t-fg-ffffff);padding:64px 0 70px}
.hm-squad .hm-rail-nav{color:var(--t-fg-ffffff)}
.hm-players{grid-auto-columns:calc((100% - 60px)/4)}
/* 26 Oct (user: "one row 4 pics for a large team is a bit not fair"): the squad rail spans the header's width and shows 7 (wide) or
   6 (laptop) players at a time */
@media(min-width:1101px){.hm-squad .container{width:min(1720px,calc(100% - 72px))}.hm-players{gap:18px;grid-auto-columns:calc((100% - 90px)/6)}.hm-players strong{font-size:16px}}
@media(min-width:1500px){.hm-players{grid-auto-columns:calc((100% - 108px)/7)}}
/* the rail scrolls sideways, which also clips upwards: room for the card's 5px hover lift (user: "its golden top cuts off") */
.hm-rail.hm-players{padding-top:12px;margin-top:-12px}
.hm-players a{display:block;color:var(--t-fg-ffffff)}
.hm-player-photo{position:relative;aspect-ratio:4/5;overflow:hidden;border-radius:8px;background:linear-gradient(180deg,var(--t-bg-164a78),var(--t-bg-0a2944))}
.hm-player-photo img{width:100%;height:100%;object-fit:cover;object-position:top center;transition:transform .35s ease}
.hm-player-photo .image-placeholder{width:50%;height:auto;margin:25% auto 0;display:block;opacity:.18;filter:brightness(0) invert(1);object-fit:contain}
.hm-players a:hover .hm-player-photo img:not(.image-placeholder){transform:scale(1.04)}
.hm-player-photo:after{content:'';position:absolute;inset:auto 0 0 0;height:30%;background:linear-gradient(0deg,rgba(10,41,68,.55),transparent)}
.hm-player-num{position:absolute;top:10px;inset-inline-start:14px;z-index:1;font-size:46px;font-weight:700;line-height:1;color:var(--t-fg-ffffff);text-shadow:0 2px 12px rgba(0,0,0,.35);font-variant-numeric:tabular-nums}
.hm-players strong{display:block;margin-top:12px;font-size:18px;line-height:1.4}
.hm-players a>span{display:block;color:var(--t-fg-b9c9dc);font-size:14px}

/* media: photo albums */
.hm-media .hm-rail-nav{color:var(--t-fg-0e3659)}
.hm-albums{grid-auto-columns:calc((100% - 40px)/3)}
.hm-albums a{position:relative;display:block;border-radius:8px;overflow:hidden;color:var(--t-fg-ffffff)}
.hm-albums .card-picture{aspect-ratio:4/3}
.hm-albums img{width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.hm-albums a:hover img:not(.image-placeholder){transform:scale(1.04)}
.hm-albums a:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,rgba(9,37,63,.88),rgba(9,37,63,0) 58%);pointer-events:none}
.hm-album-tag{position:absolute;top:12px;inset-inline-start:12px;z-index:1;display:inline-flex;align-items:center;gap:6px;background:rgba(10,41,68,.85);font-size:12px;padding:4px 10px;border-radius:999px}
.hm-albums strong{position:absolute;inset:auto 0 0 0;z-index:1;padding:16px 18px;font-size:18px;line-height:1.5}
.hm-videos{margin-bottom:24px}

/* join + community */
.hm-join{background:var(--t-bg-f4f6f8);padding:72px 0}
.hm-join-grid{display:grid;grid-template-columns:1.15fr repeat(3,1fr);gap:20px;align-items:stretch}
.hm-join-intro h2{font-size:clamp(28px,3vw,38px);margin:0 0 10px}
.hm-join-intro p{color:var(--t-fg-5d6b7a)}
.hm-mascot{display:block;width:100%;max-width:210px;height:auto;margin-top:6px}
/* 26 Oct (user: "these panels ... are TOO ai looky"): text columns with a numeral and a hairline - no box, icon or coloured top edge */
.hm-join-card{display:flex;flex-direction:column;gap:8px;padding:4px 28px 4px 0;border-inline-start:1px solid var(--t-bd-d6dde6)}
.hm-join-card>b{font-size:46px;line-height:1;color:var(--t-fg-9c1b3d);font-variant-numeric:tabular-nums;margin-bottom:6px}
.hm-join-card:hover strong{color:var(--t-fg-9c1b3d)}
.hm-join-card strong{font-size:20px}
.hm-join-card>span{color:var(--t-fg-5d6b7a);font-size:15px}
.hm-join-card em{font-style:normal;font-weight:700;color:var(--t-fg-9c1b3d);margin-top:auto;display:inline-flex;align-items:center;gap:6px}

/* governance */
/* 26 Oct: documents on hairlines (no boxes) - same language as the inner pages */
.hm-docs{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);gap:0;border-block:1px solid var(--t-bd-e3e7ec)}
.hm-docs li+li{border-inline-start:1px solid var(--t-bd-e3e7ec)}
.hm-docs a{display:flex;align-items:center;gap:14px;padding:22px 20px;height:100%;transition:background .2s}
.hm-docs a:hover{background:var(--t-bg-f4f6f8)}
.hm-docs a:hover strong{color:var(--t-fg-9c1b3d)}
.hm-docs a>.icon{width:30px;height:30px;color:var(--t-fg-9c1b3d);flex-shrink:0}
.hm-docs a>span{flex:1;min-width:0}
.hm-docs strong{display:block;font-size:17px;line-height:1.5}
.hm-docs small{color:var(--t-fg-5d6b7a);font-size:13px}
.hm-docs em{font-style:normal;font-size:13px;font-weight:700;color:var(--t-fg-9c1b3d);display:inline-flex;align-items:center;gap:4px;white-space:nowrap}

@media(max-width:1100px){
.hm-lead{min-height:0}
.hm-lead-grid{grid-template-columns:1fr;gap:28px;padding:120px 0 40px}
.hm-match-grid{grid-template-columns:1fr 1fr}
.hm-form{grid-column:1/-1}
.hm-news-grid{grid-template-columns:1fr}
.hm-players{grid-auto-columns:calc((100% - 40px)/3)}
.hm-albums{grid-auto-columns:calc((100% - 20px)/2)}
.hm-join-grid{grid-template-columns:repeat(3,1fr)}
.hm-join-intro{grid-column:1/-1}
.hm-docs{grid-template-columns:1fr}
}
@media(max-width:760px){
.hm-lead-grid{padding:110px 0 32px}
.hm-lead-text{font-size:16px}
.hm-match{padding:48px 0 56px}
.hm-match-grid{grid-template-columns:1fr}
.hm-news-item a{grid-template-columns:118px 1fr}
.hm-news-body h3{font-size:22px}
.hm-players{grid-auto-columns:64%}
.hm-albums{grid-auto-columns:82%}
.hm-join-grid{grid-template-columns:1fr}
.hm-docs em{display:none}
}
@media(prefers-reduced-motion:reduce){.hm-player-photo img,.hm-albums img,.hm-join-card{transition:none}}
/* 27 Oct: home match cards use the same round crest plate as the match boards (was a white rounded square) */
.hm-match .match-team img{box-sizing:content-box;width:64px;height:64px;padding:6px;border-radius:50%;background:radial-gradient(circle at 50% 35%,var(--t-bg-ffffff) 0,var(--t-bg-f6f8fb) 55%,var(--t-bg-e4e9f0) 100%);box-shadow:0 0 0 3px rgba(255,255,255,.09),0 6px 14px rgba(0,0,0,.25)}
/* 27 Oct (user): players rows pan slowly by themselves - hover / keyboard focus / a touch stops a row; up to 3 rows (first team on top),
   each at its own speed; shuffled on every load. Without enough players to overflow, a row simply stands still. */
.hm-pan+.hm-pan{margin-top:34px}
.hm-pan-label{margin:0 0 10px}
.hm-pan-label a{display:inline-flex;align-items:baseline;gap:10px;color:var(--t-fg-ffffff)}
.hm-pan-label strong{font-size:19px}.hm-pan-label span{color:var(--t-fg-b9c9dc);font-size:14px}.hm-pan-label .icon{width:16px;height:16px;align-self:center}
.hm-pan-view{overflow-x:auto;scrollbar-width:none;padding-top:12px;margin-top:-12px;overscroll-behavior-x:contain}
.hm-pan-view::-webkit-scrollbar{display:none}
.hm-pan-track{list-style:none;margin:0;padding:0 0 6px;display:flex;gap:18px;width:max-content}
.hm-pan-track>li{flex:0 0 clamp(190px,13.4vw,236px)}
.hm-pan.is-panning .hm-pan-view{overflow:hidden;position:relative}
.hm-pan.is-panning .hm-pan-view:before,.hm-pan.is-panning .hm-pan-view:after{content:'';position:absolute;top:0;bottom:0;width:5%;z-index:2;pointer-events:none}
.hm-pan.is-panning .hm-pan-view:before{left:0;background:linear-gradient(90deg,var(--t-bg-0e3659),rgba(14,54,89,0))}
.hm-pan.is-panning .hm-pan-view:after{right:0;background:linear-gradient(270deg,var(--t-bg-0e3659),rgba(14,54,89,0))}
.hm-pan.is-panning .hm-pan-track{gap:0;will-change:transform;  /* 28 Oct: moved by script (site-2026.js), endless loop */ backface-visibility:hidden;transform:translate3d(0,0,0) rotate(.01deg)}  /* rotate: no whole-pixel snapping (jitter) */
.hm-pan.is-panning .hm-pan-track>li{margin-inline-end:18px}
.hm-pan:hover .hm-pan-track,.hm-pan:focus-within .hm-pan-track,.hm-pan.is-paused .hm-pan-track{animation-play-state:paused}
@keyframes hm-pan{from{transform:translate3d(0,0,0) rotate(.01deg)}to{transform:translate3d(50%,0,0) rotate(.01deg)}}
@media(max-width:760px){.hm-pan-track>li{flex-basis:58vw}}
@media(prefers-reduced-motion:reduce){.hm-pan.is-panning .hm-pan-track{animation:none}}
/* media: 3 latest videos + 3 latest photo albums, two rows (no arrows) */
.hm-albums-grid{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
@media(max-width:760px){.hm-albums-grid{grid-template-columns:1fr}}
/* 11 Nov 2026 - first-team players band (user, dark theme: "this side does not look right", then: "a huge plane of one color is not bad
   but is kind of lacking in design, why not use the #9C1B3D?"). Both themes: base navy (light = brand navy, dark = deep navy - the dark
   theme's mid-blue --aa-navy was meant for buttons), club crimson #9C1B3D glow rising under the cards (echoes the cards' crimson bottoms),
   soft blue light behind the title, faint diagonal hatch (echoes the cards), crimson top line. Edge fades = a mask, so they blend over any
   background (the old solid-colour fades only matched a flat band). Undo: delete this block (copy before: home-2026.css.bak-20261111-roles). */
.hm-squad{border-top:3px solid #9C1B3D;background:
 radial-gradient(110% 78% at 50% 120%,rgba(156,27,61,.62) 0%,rgba(156,27,61,.24) 42%,rgba(156,27,61,0) 72%),
 radial-gradient(55% 62% at 88% -12%,rgba(70,130,200,.26),rgba(70,130,200,0) 70%),
 repeating-linear-gradient(135deg,rgba(255,255,255,.03) 0 1px,rgba(255,255,255,0) 1px 13px),
 var(--t-bg-0e3659)}
.hm-squad .hm-pan-view:before,.hm-squad .hm-pan-view:after,.hm-squad .hm-pan.is-panning .hm-pan-view:before,.hm-squad .hm-pan.is-panning .hm-pan-view:after{background:none}
.hm-squad .hm-pan.is-panning .hm-pan-view{-webkit-mask-image:linear-gradient(90deg,transparent 0,#000 5%,#000 95%,transparent 100%);mask-image:linear-gradient(90deg,transparent 0,#000 5%,#000 95%,transparent 100%)}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .hm-squad{background:
 radial-gradient(110% 78% at 50% 120%,rgba(156,27,61,.55) 0%,rgba(156,27,61,.2) 42%,rgba(156,27,61,0) 72%),
 radial-gradient(55% 62% at 88% -12%,rgba(70,130,200,.2),rgba(70,130,200,0) 70%),
 repeating-linear-gradient(135deg,rgba(255,255,255,.025) 0 1px,rgba(255,255,255,0) 1px 13px),
 var(--aa-surface)}}
:root[data-theme="dark"] .hm-squad{background:
 radial-gradient(110% 78% at 50% 120%,rgba(156,27,61,.55) 0%,rgba(156,27,61,.2) 42%,rgba(156,27,61,0) 72%),
 radial-gradient(55% 62% at 88% -12%,rgba(70,130,200,.2),rgba(70,130,200,0) 70%),
 repeating-linear-gradient(135deg,rgba(255,255,255,.025) 0 1px,rgba(255,255,255,0) 1px 13px),
 var(--aa-surface)}
