/* KASWA Blog V2 — distinct editorial desktop themes, design r1.
   Strictly scoped >=1200px. Existing compact and classic themes, mobile,
   article details, live pricing, checkout, and footer are left unchanged.
   KASWA original editorial compositions; no external framework or assets. */
@media (min-width:1200px) {
  /* All layouts: prevent huge feature images; preserve accessible headings. */
  .kb-v2-blog:is(.kb-theme-newsroom,.kb-theme-headline) .kb-featured-story {
    overflow:hidden; border:1px solid #dfd6c6; border-radius:18px;
    background:#fff; box-shadow:0 5px 22px rgba(23,41,54,.06);
  }
  .kb-v2-blog:is(.kb-theme-newsroom,.kb-theme-headline) .kb-featured-story .kb-featured-image {
    min-height:0!important; height:245px!important; max-height:245px!important;
    overflow:hidden;
  }
  .kb-v2-blog:is(.kb-theme-newsroom,.kb-theme-headline) .kb-featured-story .kb-featured-image img {
    width:100%; height:100%; object-fit:cover;
  }
  .kb-v2-blog:is(.kb-theme-newsroom,.kb-theme-headline) .kb-featured-story h2 {
    font-size:clamp(22px,1.8vw,29px)!important; line-height:1.2!important;
  }
  .kb-v2-blog:is(.kb-theme-newsroom,.kb-theme-headline) .kb-story-grid {
    display:grid!important; grid-auto-flow:row dense;
    align-items:stretch; gap:14px!important;
  }
  .kb-v2-blog:is(.kb-theme-newsroom,.kb-theme-headline) .kb-story-grid > .kb-story-card {
    min-width:0!important; min-height:0!important;
    overflow:hidden; margin:0;
    transition:transform .16s ease,box-shadow .16s ease;
  }
  .kb-v2-blog:is(.kb-theme-newsroom,.kb-theme-headline) .kb-story-card .kb-story-figure img {
    width:100%; height:100%; object-fit:cover;
  }
  .kb-v2-blog:is(.kb-theme-newsroom,.kb-theme-headline) .kb-story-card .kb-story-meta {
    gap:6px; flex-wrap:wrap;
  }

  /* THEME 1: KASWA Haber Portalı — a horizontal lead story,
     followed by two compact spotlights and three-column news briefs.
     Distinct from symmetrical classic grid and magazine tiles. */
  .kb-v2-blog.kb-theme-newsroom .kb-featured-story > a {
    display:grid!important; grid-template-columns: 43% minmax(0,1fr)!important;
    align-items:stretch;
  }
  .kb-v2-blog.kb-theme-newsroom .kb-story-grid {
    grid-template-columns:repeat(12,minmax(0,1fr))!important;
  }
  .kb-v2-blog.kb-theme-newsroom .kb-story-grid > .kb-story-card {
    grid-column:span 4; border-radius:12px;
  }
  .kb-v2-blog.kb-theme-newsroom .kb-story-grid > .kb-story-card:nth-child(1) {
    grid-column:span 7; grid-row:span 2;
  }
  .kb-v2-blog.kb-theme-newsroom .kb-story-grid > .kb-story-card:nth-child(2),
  .kb-v2-blog.kb-theme-newsroom .kb-story-grid > .kb-story-card:nth-child(3) {
    grid-column:span 5; display:grid!important;
    grid-template-columns:minmax(0,42%) minmax(0,1fr);
    min-height:175px;
  }
  .kb-v2-blog.kb-theme-newsroom .kb-story-grid > .kb-story-card:nth-child(2) .kb-story-figure,
  .kb-v2-blog.kb-theme-newsroom .kb-story-grid > .kb-story-card:nth-child(3) .kb-story-figure {
    height:100%!important; min-height:175px; aspect-ratio:auto;
  }
  .kb-v2-blog.kb-theme-newsroom .kb-story-grid > .kb-story-card:nth-child(1) .kb-story-figure {
    max-height:225px; aspect-ratio:16/7;
  }
  .kb-v2-blog.kb-theme-newsroom .kb-story-grid > .kb-story-card:nth-child(n+4) .kb-story-figure {
    max-height:155px; aspect-ratio:16/9;
  }
  .kb-v2-blog.kb-theme-newsroom .kb-story-grid > .kb-story-card:nth-child(2) .kb-story-content,
  .kb-v2-blog.kb-theme-newsroom .kb-story-grid > .kb-story-card:nth-child(3) .kb-story-content {
    padding:12px;
  }
  .kb-v2-blog.kb-theme-newsroom .kb-story-grid > .kb-story-card:nth-child(2) h3,
  .kb-v2-blog.kb-theme-newsroom .kb-story-grid > .kb-story-card:nth-child(3) h3 {
    font-size:15px; line-height:1.32;
  }
  .kb-v2-blog.kb-theme-newsroom .kb-story-grid > .kb-story-card:nth-child(2) .kb-story-excerpt,
  .kb-v2-blog.kb-theme-newsroom .kb-story-grid > .kb-story-card:nth-child(3) .kb-story-excerpt {
    display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical;
    overflow:hidden; font-size:12px; line-height:1.45;
  }
  .kb-v2-blog.kb-theme-newsroom .kb-story-grid > .kb-story-card:nth-child(n+4) h3 {
    font-size:15px;line-height:1.35;
  }

  /* THEME 2: KASWA Dergi Vitrini — asymmetric 8/4 columns;
     alternate wide horizontal feature and smaller editorial cards.
     No oversized full-page product cover. */
  .kb-v2-blog.kb-theme-headline .kb-featured-story > a {
    display:grid!important; grid-template-columns:58% minmax(0,1fr)!important;
  }
  .kb-v2-blog.kb-theme-headline .kb-story-grid {
    grid-template-columns:repeat(12,minmax(0,1fr))!important;
    gap:18px!important;
  }
  .kb-v2-blog.kb-theme-headline .kb-story-grid > .kb-story-card {
    grid-column:span 4; border-radius:18px;
    background:#fff;
  }
  .kb-v2-blog.kb-theme-headline .kb-story-grid > .kb-story-card:nth-child(6n+1) {
    grid-column:span 8; display:grid!important;
    grid-template-columns:50% minmax(0,1fr);
    align-self:stretch;
  }
  .kb-v2-blog.kb-theme-headline .kb-story-grid > .kb-story-card:nth-child(6n+2) {
    grid-column:span 4;
  }
  .kb-v2-blog.kb-theme-headline .kb-story-grid > .kb-story-card:nth-child(6n+3),
  .kb-v2-blog.kb-theme-headline .kb-story-grid > .kb-story-card:nth-child(6n+4),
  .kb-v2-blog.kb-theme-headline .kb-story-grid > .kb-story-card:nth-child(6n+5) {
    grid-column:span 4;
  }
  .kb-v2-blog.kb-theme-headline .kb-story-grid > .kb-story-card:nth-child(6n+6) {
    grid-column:span 12; display:grid!important;
    grid-template-columns: 38% minmax(0,1fr);
  }
  .kb-v2-blog.kb-theme-headline .kb-story-grid > .kb-story-card:is(:nth-child(6n+1),:nth-child(6n+6)) .kb-story-figure {
    height:100%; min-height:185px; max-height:250px;
    aspect-ratio:auto;
  }
  .kb-v2-blog.kb-theme-headline .kb-story-grid > .kb-story-card:not(:nth-child(6n+1)):not(:nth-child(6n+6)) .kb-story-figure {
    aspect-ratio:16/9; max-height:175px;
  }
  .kb-v2-blog.kb-theme-headline .kb-story-card h3 {
    font-size:17px!important;line-height:1.3!important;
  }
  .kb-v2-blog.kb-theme-headline .kb-story-card:nth-child(6n+1) h3,
  .kb-v2-blog.kb-theme-headline .kb-story-card:nth-child(6n+6) h3 {
    font-size:20px!important;
  }
  .kb-v2-blog.kb-theme-headline .kb-story-content {padding:14px!important;}
}
@media (prefers-reduced-motion:reduce) {
  .kb-v2-blog:is(.kb-theme-newsroom,.kb-theme-headline) .kb-story-grid > .kb-story-card {
    transition:none!important;
  }
}


/* Additional original & editorial compositions, without changing Compact or Classic. */
@media (min-width:1200px) {
  /* KASWA Orijinal: reproduce original category/feature/3-card reading hierarchy;
     preserves existing header, banners, category data and article links. */
  .kb-v2-blog.kb-theme-original .kb-featured-story > a {
    display:grid!important;grid-template-columns:minmax(0,1.25fr) minmax(0,.9fr)!important;
  }
  .kb-v2-blog.kb-theme-original .kb-featured-story .kb-featured-image {
    height:365px!important;max-height:365px!important;min-height:0!important;
  }
  .kb-v2-blog.kb-theme-original .kb-featured-story h2 {font-size:clamp(23px,2.1vw,31px)!important;line-height:1.25!important;}
  .kb-v2-blog.kb-theme-original .kb-story-grid {
    display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:16px!important;
  }
  .kb-v2-blog.kb-theme-original .kb-story-card .kb-story-figure {max-height:205px;aspect-ratio:16/9;}
  .kb-v2-blog.kb-theme-original .kb-story-card h3 {font-size:17px;line-height:1.35;}
  /* Magazine differs from portal: rotating lead, no duplicate static lead. */
  .kb-v2-blog.kb-theme-headline .kb-magazine-spotlight {display:block;}
  .kb-v2-blog.kb-theme-headline .kb-featured-story {display:none!important;}
  /* Modern Editoryal: alternating asymmetrical feature and mixed image/text list. */
  .kb-v2-blog.kb-theme-editorial .kb-featured-story {border:0;box-shadow:none;background:#faf9f6;}
  .kb-v2-blog.kb-theme-editorial .kb-featured-story > a {
    display:grid!important;grid-template-columns: minmax(0,3fr) minmax(0,2fr)!important;gap:18px;align-items:start;
  }
  .kb-v2-blog.kb-theme-editorial .kb-featured-image {height:310px!important;min-height:0!important;max-height:310px!important;border-radius:18px;}
  .kb-v2-blog.kb-theme-editorial .kb-featured-story h2 {font-size:clamp(22px,1.9vw,30px)!important;}
  .kb-v2-blog.kb-theme-editorial .kb-story-grid {
    display:grid!important;grid-template-columns:repeat(12,minmax(0,1fr))!important;gap:19px!important;align-items:stretch;
  }
  .kb-v2-blog.kb-theme-editorial .kb-story-grid > .kb-story-card {
    grid-column:span 6;display:grid!important;grid-template-columns:45% minmax(0,1fr);
    min-height:186px;box-shadow:none;border-radius:14px;
  }
  .kb-v2-blog.kb-theme-editorial .kb-story-grid > .kb-story-card:nth-child(5n+1) {
    grid-column:span 7;display:flex!important;flex-direction:column;
  }
  .kb-v2-blog.kb-theme-editorial .kb-story-grid > .kb-story-card:nth-child(5n+2) {
    grid-column:span 5;display:flex!important;flex-direction:column;
  }
  .kb-v2-blog.kb-theme-editorial .kb-story-grid > .kb-story-card:nth-child(5n+3),
  .kb-v2-blog.kb-theme-editorial .kb-story-grid > .kb-story-card:nth-child(5n+4),
  .kb-v2-blog.kb-theme-editorial .kb-story-grid > .kb-story-card:nth-child(5n+5) {
    grid-column:span 4;grid-template-columns:1fr;display:flex!important;flex-direction:column;
  }
  .kb-v2-blog.kb-theme-editorial .kb-story-card .kb-story-figure {aspect-ratio:auto;min-height:150px;height:100%;max-height:185px;}
  .kb-v2-blog.kb-theme-editorial .kb-story-card:nth-child(5n+1) .kb-story-figure,
  .kb-v2-blog.kb-theme-editorial .kb-story-card:nth-child(5n+2) .kb-story-figure {height:205px;max-height:205px;}
  .kb-v2-blog.kb-theme-editorial .kb-story-card .kb-story-content {padding:13px!important;}
  .kb-v2-blog.kb-theme-editorial .kb-story-card h3 {font-size:16px;line-height:1.34;}
  .kb-v2-blog.kb-theme-editorial .kb-story-card:nth-child(5n+1) h3 {font-size:20px;}
  /* Blog manager index choices: 6 cards in two rows, mobile rules untouched. */
  .kblog-v2-shell .kblog-v2-themes:has(.kblog-v2-theme-preview[data-theme="editorial"]) {
    grid-template-columns:repeat(4,minmax(0,1fr))!important;
  }
}
.kblog-v2-theme-preview[data-theme="original"] {grid-template-columns:3fr 2fr;grid-template-rows:2fr 1fr 1fr;}
.kblog-v2-theme-preview[data-theme="original"] span:first-child {grid-column:1;grid-row:1/4;background:#d8c9af;}
.kblog-v2-theme-preview[data-theme="editorial"] {grid-template-columns:3fr 2fr;grid-template-rows:repeat(3,1fr);}
.kblog-v2-theme-preview[data-theme="editorial"] span:first-child {grid-row:1/3;grid-column:1;background:#d8c9af;}
.kblog-v2-theme-preview[data-theme="editorial"] span:nth-child(2) {grid-column:2;grid-row:1;}
.kblog-v2-theme-preview[data-theme="newsroom"] {grid-template-columns:3fr 2fr;grid-template-rows:repeat(3,1fr);}
.kblog-v2-theme-preview[data-theme="newsroom"] span:first-child {grid-column:1/3;grid-row:1;background:#172936;}
.kblog-v2-theme-preview[data-theme="headline"] {grid-template-columns:3fr 1fr;grid-template-rows:repeat(3,1fr);}
.kblog-v2-theme-preview[data-theme="headline"] span:first-child {grid-column:1;grid-row:1/4;background:#9a742d;}
/* Magazine headline slider is desktop-only: other widths retain existing cards. */
.kb-magazine-spotlight {display:none;}
@media (min-width:1200px) {
  .kb-v2-blog.kb-theme-headline .kb-magazine-spotlight {
    border:1px solid #e1d4b9;border-radius:18px;background:#fff;position:relative;
    overflow:hidden;margin-bottom:22px;box-shadow:0 4px 18px rgba(23,41,54,.06);
  }
  .kb-magazine-slide[hidden] {display:none!important;}
  .kb-magazine-slide > a {display:grid;grid-template-columns:55% minmax(0,1fr);color:#172936;text-decoration:none;min-height:265px;}
  .kb-magazine-slide img {display:block;width:100%;height:265px;object-fit:cover;}
  .kb-magazine-body {display:flex;flex-direction:column;gap:10px;justify-content:center;padding:22px;}
  .kb-magazine-body small {color:#bd1522;text-transform:uppercase;font-weight:700;letter-spacing:.08em;}
  .kb-magazine-body strong {font-size:clamp(20px,1.8vw,29px);line-height:1.23;}
  .kb-magazine-body > span {color:#64748b;font-size:13px;line-height:1.6;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;}
  .kb-magazine-body b {color:#ba1924;font-size:13px;}
  .kb-magazine-controls {position:absolute;right:15px;bottom:14px;display:flex;align-items:center;gap:8px;background:#fffdf6d9;padding:5px;border-radius:18px;}
  .kb-magazine-controls button {background:#172936;color:#fff;border:0;border-radius:16px;min-width:34px;min-height:34px;cursor:pointer;}
  .kb-magazine-controls button:focus-visible {outline:3px solid #c71922;outline-offset:2px;}
  .kb-magazine-controls span {font-size:12px;font-weight:700;font-variant-numeric:tabular-nums;}
}
@media (prefers-reduced-motion:reduce) {.kb-v2-blog .kb-story-card {transition:none!important;}}
