/* Mobile-first editorial website. No fixed bottom navigation. */

.home-story{display:grid;grid-template-columns:96px minmax(0,1fr);gap:16px;align-items:start;min-width:0}
.home-story:not(:has(.home-story__image)){grid-template-columns:1fr}
.home-story__image{display:block;overflow:hidden;border-radius:8px;background:var(--paper);aspect-ratio:4/3}
.home-story__image img{width:100%;height:100%;object-fit:cover}
.home-story h3{font-size:1.05rem;line-height:1.35;letter-spacing:-.025em;margin:5px 0 8px;overflow-wrap:anywhere}
.home-story h3 a{color:var(--ink);text-decoration:none}
.home-story h3 a:hover{text-decoration:underline;text-decoration-color:var(--orange)}
.home-story time{font-size:.72rem;color:var(--muted)}
.home-story p{color:var(--muted);font-size:.95rem;line-height:1.6;margin:10px 0}
.home-story .kicker{font-size:.65rem;letter-spacing:.075em}
.home-story--lead{display:block}
.home-story--lead .home-story__image{aspect-ratio:16/10;margin-bottom:18px}
.home-story--lead h3{font-size:clamp(1.6rem,4vw,2.5rem);line-height:1.15}

.home-widget{min-width:0;overflow-wrap:anywhere}
.home-widget img,.home-widget iframe{max-width:100%}
.home-widget figure{margin:0}
.home-widget input:not([type=checkbox]):not([type=radio]),.home-widget select,.home-widget textarea{max-width:100%;min-height:44px;font:inherit}
.home-widget button,.home-widget input[type=submit]{min-height:44px;cursor:pointer}

@media(min-width:640px){
 .home-story{grid-template-columns:120px minmax(0,1fr)}
 .home-story--lead{display:block}
 
 
 
 
 
}

/* Homepage V2 — mobile first, configurable from WordPress */
.home-v2{background:#fff}
.home-v2>.container,.home-v2 .container{width:min(calc(100% - 24px),1180px)}
.home-hero{padding:18px 0 10px}
.home-hero__track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;gap:0}
.home-hero__track::-webkit-scrollbar{display:none}
.home-hero__slide{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always}
.home-hero .home-story{position:relative;border:0;border-radius:12px;overflow:hidden;background:#071f36;min-height:420px}
.home-hero .home-story__image{position:absolute;inset:0;aspect-ratio:auto;margin:0}
.home-hero .home-story__image::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(4,22,39,.06) 10%,rgba(4,22,39,.88) 84%)}
.home-hero .home-story__image img{height:100%;width:100%;object-fit:cover}
.home-hero .home-story__body{position:absolute;z-index:2;left:0;right:0;bottom:0;padding:22px;color:#fff}
.home-hero .home-story h3{font-size:clamp(1.75rem,8vw,2.8rem);margin:8px 0 10px;max-width:900px}
.home-hero .home-story h3 a{color:#fff}
.home-hero .home-story p{color:#e7edf4;max-width:760px;margin:0 0 12px}
.home-hero .home-story time{color:#e7edf4}
.home-hero .home-story .kicker{color:#ffac60}
.home-carousel-controls{display:flex;align-items:center;justify-content:center;gap:10px;margin-top:10px}
.home-carousel-controls__arrow{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:50%;background:#fff;color:var(--navy);cursor:pointer}
.home-carousel-controls__dots{display:flex;align-items:center;gap:4px}
.home-carousel-controls__dots button{display:grid;place-items:center;width:32px;height:44px;border:0;background:transparent;padding:0;cursor:pointer}
.home-carousel-controls__dots span{width:7px;height:7px;border-radius:50%;background:#c9ced5;transition:width .2s ease,background-color .2s ease}
.home-carousel-controls__dots [aria-current="true"] span{width:20px;border-radius:20px;background:var(--orange)}

.home-v2-section{padding:20px 0;border-top:1px solid var(--line)}
.home-v2-section:first-child{border-top:0}
.home-v2-section__head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.home-v2-section__head h2{margin:0;padding-left:10px;border-left:4px solid var(--orange);font-size:1.35rem;line-height:1.2;letter-spacing:-.025em}
.home-v2-section__head a{font-size:.78rem;font-weight:700;text-decoration:none;white-space:nowrap}

.home-v2-card-grid{display:grid;gap:18px}
.home-v2-card-grid .home-story{display:block}
.home-v2-card-grid .home-story__image{aspect-ratio:16/9;margin-bottom:12px}
.home-v2-card-grid .home-story h3{font-size:1rem}
.home-v2-card-grid .home-story__body{padding:0}

.home-betting{background:#08233d;border-radius:12px;padding:18px;color:#fff}
.home-betting>header h2{margin:0 0 7px;font-size:1.25rem}
.home-betting>header p{margin:0 0 16px;color:#cfdae5;font-size:.85rem;line-height:1.5}
.home-betting__list{display:grid;gap:8px}
.home-operator-card a{display:grid;grid-template-columns:64px minmax(0,1fr) 20px;align-items:center;gap:10px;padding:8px;background:#fff;color:#08233d;text-decoration:none;border-radius:8px}
.home-operator-card__logo{display:grid;place-items:center;height:46px;background:#f7f8fa;border-radius:6px;overflow:hidden}
.home-operator-card__logo img{width:100%;height:100%;object-fit:contain}
.home-operator-card__body{display:grid;gap:2px}
.home-operator-card__body strong{font-size:.88rem}
.home-operator-card__body small{font-size:.68rem;color:#6d7782}
.home-betting__all{display:flex;justify-content:center;align-items:center;gap:8px;margin-top:10px;padding:12px;background:var(--orange);color:var(--navy-2);text-decoration:none;border-radius:8px;font-weight:750;font-size:.82rem}
.home-responsible-v2{margin-top:12px;padding:14px;border:1px solid rgba(255,255,255,.16);border-radius:8px}
.home-responsible-v2 strong{display:block;font-size:.82rem}
.home-responsible-v2 p{margin:5px 0 0;color:#d8e0e7;font-size:.75rem;line-height:1.5}

.home-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.home-category-card{display:grid;place-items:center;gap:8px;min-height:92px;padding:10px;border:1px solid var(--line);border-radius:9px;background:#f7f9fb;text-align:center;text-decoration:none;font-size:.72rem;font-weight:700}
.home-category-card__icon{color:#0c65c7}

.home-newsletter-v2{background:#f4f7fa;padding:34px 0;margin-top:12px}
.home-newsletter-v2 .container{max-width:720px;text-align:center}
.home-newsletter-v2 h2{margin:0 0 16px;font-size:1.45rem;line-height:1.3}
.home-newsletter-v2__form input:not([type=checkbox]):not([type=radio]){width:100%;min-height:48px}
.home-newsletter-v2__form button,.home-newsletter-v2__form input[type=submit]{min-height:48px;padding:0 22px;border:0;border-radius:7px;background:var(--orange);color:var(--navy-2);font-weight:700;cursor:pointer}

@media(min-width:640px){
  .home-v2>.container,.home-v2 .container{width:min(calc(100% - 40px),1180px)}
  .home-hero .home-story{min-height:500px}
  .home-hero .home-story__body{padding:32px}
  
  .home-v2-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-category-grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media(min-width:960px){
  .home-hero{padding-top:22px}
  .home-hero .home-story{min-height:520px}
  
  
  
  .home-v2-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .home-v2-card-grid--guides{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
}

/* Approved reference layout: desktop hero + betting rail, mobile stacked */
.home-top-grid{display:grid;gap:20px;padding-top:18px}
.home-top-grid__hero,.home-top-grid__betting{min-width:0}
.home-top-grid .home-hero{width:100%;padding:0}
.home-top-grid .home-betting{height:100%}

.home-content-grid{display:grid;gap:28px;padding-top:24px;padding-bottom:30px}
.home-content-grid__main,.home-content-grid__aside{min-width:0}
.home-latest-grid{display:grid;gap:16px}
.home-latest-grid .home-story{grid-template-columns:110px minmax(0,1fr);padding-bottom:14px;border-bottom:1px solid var(--line)}
.home-latest-grid .home-story__image{aspect-ratio:1/1}
.home-newsletter-card{padding:22px;border:1px solid var(--line);border-radius:10px;background:#f7f9fb}
.home-newsletter-card h2{margin:0 0 14px;font-size:1.1rem;line-height:1.3}

@media(min-width:960px){
  .home-top-grid{grid-template-columns:minmax(0,1fr) 320px;align-items:stretch}
  .home-top-grid .home-hero .home-story{min-height:500px}
  .home-top-grid__betting .home-betting{position:sticky;top:16px}
  .home-content-grid{grid-template-columns:minmax(0,1fr) 320px;align-items:start}
  .home-content-grid__aside{display:grid;gap:22px}
  .home-latest-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:18px}
  .home-latest-grid .home-story{display:block;padding-bottom:0;border-bottom:0}
  .home-latest-grid .home-story__image{aspect-ratio:4/3;margin-bottom:10px}
  .home-v2-card-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
  .home-v2-card-grid--guides{grid-template-columns:repeat(4,minmax(0,1fr))}
}

@media(max-width:959px){
  .home-top-grid{grid-template-columns:1fr}
  .home-top-grid__betting{order:2}
  .home-content-grid{grid-template-columns:1fr}
  .home-content-grid__aside{display:grid;gap:22px}
  .home-newsletter-card{order:2}
  .home-v2-categories{order:3}
}

/* Mobile density: use two columns only where card content remains readable */
@media(min-width:420px) and (max-width:639px){
  .home-v2-card-grid,
  .home-v2-card-grid--guides{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:16px 12px;
  }
  .home-v2-card-grid .home-story,
  .home-v2-card-grid--guides .home-story{
    min-width:0;
  }
  .home-v2-card-grid .home-story__image,
  .home-v2-card-grid--guides .home-story__image{
    aspect-ratio:4/3;
    margin-bottom:9px;
  }
  .home-v2-card-grid .home-story h3,
  .home-v2-card-grid--guides .home-story h3{
    font-size:.9rem;
    line-height:1.28;
    margin-top:5px;
  }
  .home-v2-card-grid .home-story time,
  .home-v2-card-grid--guides .home-story time{
    font-size:.68rem;
  }
}

.home-betting__viewport{overflow:hidden;scrollbar-width:none;scroll-behavior:smooth}
.home-betting__viewport::-webkit-scrollbar{display:none}
.home-betting__list{display:grid;gap:8px}

/* Static homepage content; existing hero and betting rail are unchanged. */
.ladsil-static-home{padding-block:32px 48px;overflow-wrap:anywhere}
.ladsil-static-home>h1{font-size:clamp(1.4rem,3vw,2.2rem);line-height:1.25;margin:0 0 14px;max-width:900px}
.ladsil-home-intro{font-size:1.08rem;color:var(--muted);max-width:850px;margin-bottom:30px}
.ladsil-static-home h2{font-size:clamp(1.3rem,2.5vw,1.8rem);border-left:4px solid var(--orange);padding-left:12px;margin:32px 0 16px}
.ladsil-home-editoria{border-top:1px solid var(--line);padding-block:12px 20px;margin-top:28px}
.ladsil-home-posts .wp-block-post-template{display:grid;grid-template-columns:1fr;gap:24px;list-style:none;padding:0}
.ladsil-home-posts .wp-block-post{min-width:0}
.ladsil-home-posts .wp-block-post-featured-image{margin:0 0 12px;border-radius:8px;overflow:hidden}
.ladsil-home-posts .wp-block-post-title{font-size:1.08rem;line-height:1.4;margin:0 0 10px}
.ladsil-home-posts .wp-block-post-title a{color:var(--ink);text-decoration:none}
.ladsil-home-posts .wp-block-post-title a:hover{text-decoration:underline}
.ladsil-home-posts .wp-block-post-author-name,.ladsil-home-posts .wp-block-post-date{font-size:.76rem;color:var(--muted)}
.ladsil-home-topic-links{line-height:2}
@media(min-width:520px){.ladsil-home-posts .wp-block-post-template{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:960px){.ladsil-home-posts .wp-block-post-template{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* Final homepage articles: four desktop cards, swipe and keyboard on mobile. */
.ladsil-betting-articles .wp-block-post-template{display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;padding-bottom:12px;scrollbar-width:thin}
.ladsil-betting-articles .wp-block-post{flex:0 0 86%;scroll-snap-align:start}
.ladsil-betting-articles .wp-block-post-featured-image img{width:100%;aspect-ratio:16/9;object-fit:cover}
[data-article-controls][hidden]{display:none}
@media(min-width:520px){.ladsil-betting-articles .wp-block-post{flex-basis:calc((100% - 24px)/2)}}
@media(min-width:960px){.ladsil-betting-articles .wp-block-post{flex-basis:calc((100% - 72px)/4)}}

/* Official operator logos occupy the reserved slot without crop or distortion. */
.home-operator-card__logo{background:#fff;padding:4px}
.home-operator-card__logo img{display:block;width:100%;height:100%;object-fit:contain;border-radius:0}
.operator-logo-pending{font-size:.65rem;font-weight:600;color:var(--navy);text-align:center;overflow-wrap:anywhere}

/* A full-width mobile headline, followed by a shallow operator panel. */
@media(max-width:639px){
.home-top-grid{grid-template-columns:minmax(0,1fr);gap:20px;align-items:start;padding-top:16px}
.home-top-grid__betting{order:2}
.home-top-grid .home-hero .home-story{min-height:390px;border-radius:14px}
.home-top-grid .home-hero .home-story__body{padding:22px}
.home-top-grid .home-hero .home-story h3{font-size:clamp(1.4rem,6vw,1.8rem);line-height:1.22;margin:10px 0 14px}
.home-top-grid .home-hero .home-story p{display:none}
.home-top-grid .home-hero .home-story .kicker{font-size:.68rem}
.home-top-grid .home-hero .home-story time{font-size:.75rem}
.home-top-grid .home-carousel-controls{gap:10px;margin-top:14px}
.home-top-grid .home-carousel-controls__arrow{width:44px;height:44px}
.home-top-grid .home-carousel-controls__dots{gap:0;flex-wrap:wrap;justify-content:center}
.home-top-grid .home-carousel-controls__dots button{width:32px;height:44px}
.home-top-grid .home-betting{height:auto;padding:20px;border-radius:14px}
.home-top-grid .home-betting>header h2{font-size:1.15rem;line-height:1.3;margin-bottom:16px}
.home-top-grid .home-betting>header p{display:none}
.home-top-grid .home-betting__list{gap:10px}
.home-top-grid .home-operator-card a{grid-template-columns:100px minmax(0,1fr) 16px;gap:12px;padding:12px;text-align:left;min-height:80px}
.home-top-grid .home-operator-card__logo{height:46px;min-height:0;aspect-ratio:auto;padding:6px;align-self:center}
.home-top-grid .home-operator-card__logo img{display:block;width:100%;height:100%;max-height:100%;object-fit:contain;object-position:center}
.home-top-grid .home-operator-card__body strong{font-size:.92rem;line-height:1.3}
.home-top-grid .home-operator-card__body small{font-size:.7rem;line-height:1.4}
.home-top-grid .home-betting__all{font-size:.8rem;line-height:1.4;padding:13px 10px;margin-top:14px}
.home-top-grid .home-responsible-v2{padding:0;border:0;margin-top:14px}
.home-top-grid .home-responsible-v2 strong{font-size:.7rem}
.home-top-grid .home-responsible-v2 p{display:none}
}
/* Each category slide: one lead on the left, two secondary articles on the right. */
.home-editorial-carousel{min-width:0}
.home-editorial-carousel__track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:thin;overscroll-behavior-x:contain;gap:20px}
.home-editorial-carousel__slide{flex:0 0 100%;min-width:0;scroll-snap-align:start;scroll-snap-stop:always}
.home-editorial-group{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:16px}
.home-editorial-group__item{min-width:0}
.home-editorial-group__item--lead{grid-column:1;grid-row:1/span 2}
.home-editorial-group__item--small{grid-column:2}
.home-editorial-group .home-story{display:block;padding:0;border:0}
.home-editorial-group .home-story__image{aspect-ratio:16/10;margin-bottom:10px;border-radius:10px}
.home-editorial-group__item--lead .home-story__image{aspect-ratio:4/3}
.home-editorial-group .home-story__body{padding:0}
.home-editorial-group .home-story h3{font-size:1.05rem;line-height:1.35;margin:4px 0 8px}
.home-editorial-group__item--lead .home-story h3{font-size:clamp(1.25rem,2vw,1.8rem)}
.home-editorial-group .home-story p{display:none}
.home-editorial-group .home-story .kicker{font-size:.62rem}
.home-editorial-group .home-story time{font-size:.7rem}
@media(min-width:760px){.home-editorial-group{gap:20px 28px}.home-editorial-group__item--small .home-story{display:grid;grid-template-columns:140px minmax(0,1fr);gap:14px}.home-editorial-group__item--small .home-story__image{aspect-ratio:4/3;margin:0}}
@media(max-width:519px){
.home-editorial-group{gap:12px}
.home-editorial-group .home-story__image{border-radius:7px;margin-bottom:7px}
.home-editorial-group__item--lead .home-story__image{aspect-ratio:4/5}
.home-editorial-group .home-story h3{font-size:.78rem;line-height:1.3}
.home-editorial-group__item--lead .home-story h3{font-size:1rem}
.home-editorial-group .home-story .kicker{font-size:.52rem;letter-spacing:.025em}
.home-editorial-group .home-story time{font-size:.6rem}
}

