/* V26: independently configurable, structural front-page arrangements.
   Loaded AFTER V24/V23 to override old canvas height and width restrictions.
   No duplicate article markup: the same editorial content is reflowed. */
body .v5-home.ph24-home.container{width:min(var(--ph24-page-width,1180px),calc(100% - 40px))!important;max-width:var(--ph24-page-width,1180px)!important;margin-inline:auto!important}
.ph24-home .v5-main-headline,.ph24-home .v5-agenda,.ph24-home .v5-spot,.ph24-home .v5-feed{min-width:0}
.ph24-home .v5-spots{display:grid!important;width:100%;gap:12px;grid-template-columns:repeat(4,minmax(0,1fr))!important}
.ph24-home .v5-spot{min-width:0}
.ph24-home .v5-spot-media{width:100%;overflow:hidden}
.ph24-home .v5-spot-media img{width:100%;height:100%;object-fit:cover}
/* Top spotlight 1: four cards. 2: three columns. 3: 2x2. 4: one feature + three small. */
.ph24-home.ph26-spots-row3 .v5-spots{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.ph24-home.ph26-spots-grid2 .v5-spots{grid-template-columns:repeat(2,minmax(0,1fr))!important}
.ph24-home.ph26-spots-grid2 .v5-spot-media{height:clamp(145px,14vw,245px)!important}
.ph24-home.ph26-spots-feature .v5-spots{grid-template-columns:minmax(0,1.65fr) repeat(3,minmax(0,1fr))!important}
.ph24-home.ph26-spots-feature .v5-spot:first-child{grid-row:1/span 2;position:relative;overflow:hidden;background:#172134}
.ph24-home.ph26-spots-feature .v5-spot:first-child .v5-spot-media{height:100%!important;min-height:265px}
.ph24-home.ph26-spots-feature .v5-spot:first-child .v5-spot-copy{position:absolute;inset:auto 0 0;padding:45px 16px 13px;background:linear-gradient(transparent,rgba(1,9,18,.9));color:#fff}
.ph24-home.ph26-spots-feature .v5-spot:first-child .v5-spot-copy :is(h3,small){color:#fff!important}
.ph24-home.ph26-spots-feature .v5-spot:not(:first-child){display:flex;align-items:center;gap:9px}
.ph24-home.ph26-spots-feature .v5-spot:not(:first-child) .v5-spot-media{flex:0 0 47%;height:90px!important}
/* Core image-led hero grids: five genuinely different DOM arrangements. */
body .ph24-home.ph26-hero-press .v5-front-stage{display:grid!important;grid-template-columns:minmax(0,2.1fr) minmax(0,1fr)!important;gap:14px!important}
body .ph24-home.ph26-hero-split .v5-front-stage{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;gap:12px!important}
body .ph24-home.ph26-hero-mosaic .v5-front-stage{display:grid!important;grid-template-columns:minmax(0,1.45fr) minmax(0,1fr)!important;gap:8px!important}
body .ph24-home.ph26-hero-mosaic .v5-slider-stage{aspect-ratio:3/2!important}
body .ph24-home.ph26-hero-stacked .v5-front-stage{display:flex!important;flex-direction:column!important;gap:12px!important}
body .ph24-home.ph26-hero-cinema .v5-front-stage{display:flex!important;flex-direction:column!important;gap:12px!important}
body .ph24-home.ph26-hero-cinema .v5-slider-stage{aspect-ratio:2.4/1!important}
body .ph24-home.ph26-hero-stacked .v5-slider-stage{aspect-ratio:1280/722!important}
/* Both full-width presets use two side stories as a horizontal second level. */
body .ph24-home:is(.ph26-hero-stacked,.ph26-hero-cinema) .v5-agenda{width:100%!important;position:static!important;min-height:0!important}
body .ph24-home:is(.ph26-hero-stacked,.ph26-hero-cinema) .v5-agenda-cards{position:static!important;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto!important;height:auto!important;gap:12px!important}
body .ph24-home:is(.ph26-hero-stacked,.ph26-hero-cinema) .v5-agenda-card{height:240px!important;min-height:0!important}
body .ph24-home.ph26-hero-split .v5-slider-stage{aspect-ratio:4/3!important}
body .ph24-home.ph26-hero-split .v5-agenda-card{height:auto!important}
body .ph24-home.ph26-hero-mosaic .v5-agenda-cards{grid-template-rows:minmax(0,1.35fr) minmax(0,.65fr)!important}
/* Independent Gündem card compositions. */
body .ph24-home.ph26-agenda-overlay .v5-agenda-card{position:relative!important;display:block!important;background:#091523!important;color:#fff!important;isolation:isolate}
body .ph24-home.ph26-agenda-overlay .v5-agenda-card>div:first-child{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;z-index:-1}
body .ph24-home.ph26-agenda-overlay .v5-agenda-card>div:first-child img{width:100%;height:100%;object-fit:cover}
body .ph24-home.ph26-agenda-overlay .v5-agenda-card:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,rgba(3,8,17,.90),transparent 75%)}
body .ph24-home.ph26-agenda-overlay .v5-agenda-card>span{position:absolute;bottom:67px;left:14px;color:#fff!important;z-index:1;font-size:11px}
body .ph24-home.ph26-agenda-overlay .v5-agenda-card h3{position:absolute;bottom:10px;left:14px;right:12px;color:#fff!important;z-index:1;font-size:clamp(16px,1.8vw,24px);line-height:1.15!important}
/* Explicit row mode: right-hand panel becomes a genuine 2-up tile layout. */
body .ph24-home.ph26-agenda-row .v5-agenda{position:static!important}
body .ph24-home.ph26-agenda-row .v5-agenda-cards{position:static!important;height:auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto!important}
body .ph24-home.ph26-agenda-row .v5-agenda-card{min-height:0!important;height:100%!important}
body .ph24-home.ph26-agenda-row .v5-agenda-card>div:first-child{height:62%!important;min-height:110px;flex:0 0 62%}
/* In narrow sidebars, 2-up cards would be illegible; give this mode a full row. */
@media(min-width:941px){body .ph24-home.ph26-agenda-row:is(.ph26-hero-press,.ph26-hero-split,.ph26-hero-mosaic) .v5-front-stage{display:flex!important;flex-direction:column!important}
body .ph24-home.ph26-agenda-row:is(.ph26-hero-press,.ph26-hero-split,.ph26-hero-mosaic) .v5-agenda-card{height:220px!important}}
/* Independent regular feed formats. */
body .ph24-home.ph26-feed-list .v5-feed-main .news-grid{display:grid!important;grid-template-columns:1fr!important;gap:12px!important}
body .ph24-home.ph26-feed-list .v5-feed-main .news-card{display:grid!important;grid-template-columns:minmax(140px,34%) minmax(0,1fr)!important;gap:16px!important;align-items:start}
body .ph24-home.ph26-feed-list .v5-feed-main .news-card img{width:100%;object-fit:cover}
body .ph24-home.ph26-feed-feature .v5-feed-main .news-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
body .ph24-home.ph26-feed-feature .v5-feed-main .news-card:first-child{grid-column:span 2;grid-row:span 2}
body .ph24-home.ph26-feed-feature .v5-feed-main .news-card:first-child img{aspect-ratio:16/9;object-fit:cover;width:100%}
/* Respect explicit left-side request without reverting to viewport-wide stretch. */
body .ph24-home.ph24-side-left.ph26-hero-press .v5-front-stage{grid-template-columns:minmax(0,1fr) minmax(0,2.1fr)!important}
body .ph24-home.ph24-side-left.ph26-hero-split .v5-front-stage{grid-template-columns:repeat(2,minmax(0,1fr))!important}
/* Avoid double source CSS max-height and fixed media heights on each preset. */
body .ph24-home .v5-slider-stage{height:auto!important;max-height:none!important}
/* preview frame and page share the same CSS; follow sensible responsive breakpoints. */
@media(max-width:940px){
 body .v5-home.ph24-home.container{width:calc(100% - 26px)!important}
 body .ph24-home.ph26-hero-press .v5-front-stage,body .ph24-home.ph26-hero-split .v5-front-stage,body .ph24-home.ph26-hero-mosaic .v5-front-stage{display:flex!important;flex-direction:column!important}
 body .ph24-home .v5-agenda{position:static!important;width:100%!important}
 body .ph24-home .v5-agenda-cards{position:static!important;height:auto!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:auto!important}
 body .ph24-home .v5-agenda-card{height:220px!important;min-height:0!important}
 .ph24-home.ph26-spots-feature .v5-spots{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 .ph24-home.ph26-spots-feature .v5-spot:first-child{grid-row:span 2}
 .ph24-home.ph26-spots-feature .v5-spot:not(:first-child){display:block}
 .ph24-home.ph26-spots-feature .v5-spot:not(:first-child) .v5-spot-media{height:95px!important}
}
@media(max-width:620px){
 body .ph24-home.ph26-spots-row4 .v5-spots,body .ph24-home.ph26-spots-row3 .v5-spots,body .ph24-home.ph26-spots-grid2 .v5-spots{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body .ph24-home.ph26-spots-feature .v5-spots{grid-template-columns:1fr!important}
 body .ph24-home.ph26-spots-feature .v5-spot:first-child{grid-row:auto}
 body .ph24-home.ph26-spots-feature .v5-spot:not(:first-child){display:flex}
 body .ph24-home.ph26-hero-cinema .v5-slider-stage{aspect-ratio:16/9!important}
 body .ph24-home.ph26-hero-split .v5-slider-stage,body .ph24-home.ph26-hero-mosaic .v5-slider-stage{aspect-ratio:16/9!important}
 body .ph24-home.ph26-agenda-row .v5-agenda-cards,body .ph24-home.ph26-agenda-overlay .v5-agenda-cards{grid-template-columns:1fr!important}
 body .ph24-home.ph26-feed-feature .v5-feed-main .news-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
 body .ph24-home.ph26-feed-feature .v5-feed-main .news-card:first-child{grid-column:span 2;grid-row:auto}
 body .ph24-home.ph26-feed-list .v5-feed-main .news-card{grid-template-columns:36% minmax(0,1fr)!important;gap:10px!important}
}
@media(max-width:940px){
 body .ph24-home.ph26-hero-split .v5-agenda-card,
 body .ph24-home.ph26-agenda-overlay.ph26-hero-split .v5-agenda-card{height:220px!important;min-height:220px!important}
}
/* Keep lower full-width news tiles compact rather than letting their images grow to 400px. */
body .ph24-home:is(.ph26-hero-stacked,.ph26-hero-cinema).ph26-agenda-row .v5-agenda-card{height:240px!important;min-height:0!important}
body .ph24-home:is(.ph26-hero-stacked,.ph26-hero-cinema).ph26-agenda-row .v5-agenda-card>div:first-child{height:auto!important;min-height:0!important;flex:1 1 0!important}
@media(max-width:620px){body .ph24-home:is(.ph26-hero-stacked,.ph26-hero-cinema).ph26-agenda-row .v5-agenda-card{height:205px!important}}
