/* =====================================================================================================
   Surat Kabar NTFP (beranda): empat kolom bernomor 01–04, tiap kolom dengan garis tipis di kiri, judul, paragraf,
   dan foto (referensi gaya "01 / 02 / 03 / 04" dari user, 16 Okt 2026) dalam warna beranda.
   Isi: assets/components/home/surat-kabar/surat-kabar.js + PENGATURAN.suratKabar. Satu layar penuh seperti Tim Kami; foto mengisi sisa tinggi,
   jadi kolom selalu muat tanpa gulir di dalamnya. Ponsel (<=760px): satu kolom, alur halaman biasa.
   ===================================================================================================== */
.sk{--sk-bg:var(--paper);--sk-garis:rgba(51,103,46,.32);
  position:relative;height:calc(100vh - var(--head-h-s));height:calc(100svh - var(--head-h-s));min-height:600px;display:flex;flex-direction:column;padding:48px max(72px, var(--wadah-tepi)) 48px var(--wadah-tepi);background:var(--sk-bg);box-sizing:border-box;overflow:hidden}   /* 72px right: room for the side dots */
html.piling #surat-kabar{top:0;height:100vh;height:100svh;padding-top:calc(var(--head-h-s) + 48px)}
.sk [hidden]{display:none!important}

.sk-head{flex:none;display:flex;align-items:baseline;gap:16px 40px;margin:0 0 clamp(20px,4.5vh,52px);margin:0 0 clamp(20px,4.5svh,52px)}
.sk-label{margin:0;font-size:14px;line-height:20px;font-weight:600;letter-spacing:.14em;text-transform:uppercase;color:var(--forest);overflow-wrap:anywhere}   /* as "TIM KAMI"; a long word wraps (R11) */
.sk-lede{margin:0 0 0 auto;max-width:520px;color:var(--ink-soft);font-size:16px;line-height:24px;text-wrap:pretty}

/* the four columns: a thin rule on the left, the number on top, then title, text and a photo filling the rest */
/* subgrid: name, text and photo share one row each across the four columns, so texts and photos line up
   even when a name ("Cerita dari Lapangan") takes two lines */
.sk-daftar{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:auto auto minmax(0,1fr);margin:0;padding:0;list-style:none}
.sk-item{position:relative;display:grid;grid-row:span 3;grid-template-rows:subgrid;row-gap:0;align-content:start;min-width:0;min-height:0;padding:0 clamp(16px,2.6vw,48px) 0 clamp(14px,1.3vw,20px);border-left:1px solid var(--sk-garis)}
.sk-nama{grid-row:1}
.sk-teks{grid-row:2;align-self:start}
.sk-foto{grid-row:3}
/* the category name takes the place of the reference's big numbers */
.sk-nama{flex:none;align-self:start;margin:-.08em 0 0;font-family:var(--font-head,var(--font));font-size:clamp(28px,2.7vw,44px);line-height:1.05;font-weight:700;letter-spacing:-.02em;color:var(--forest-deep);text-wrap:balance;overflow-wrap:anywhere}   /* 700: headings (§3.2); R11: a long word wraps */
.sk-tautan{color:inherit;text-decoration:none;text-underline-offset:4px;text-decoration-thickness:1.5px;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.sk-tautan svg{display:inline-block;width:.55em;height:.55em;margin-left:.3em;vertical-align:.04em;color:var(--forest);transition:transform .3s var(--ease)}
.sk-tautan::after{content:"";position:absolute;inset:0;z-index:2}   /* the whole column is the link */
.sk-teks{flex:none;max-width:36ch;margin:clamp(16px,4vh,48px) 0 0;margin:clamp(16px,4svh,48px) 0 0;font-size:16px;line-height:24px;color:var(--ink-soft);text-wrap:pretty}
.sk-foto{position:relative;flex:1 1 auto;width:min(100%,340px);min-height:110px;max-height:440px;margin-top:24px;overflow:hidden;border-radius:8px;background:#E9EEDB}   /* --r-md card media; --leaf-wash */
.sk-foto img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .3s var(--ease)}   /* --dur-2: photo zoom */
.sk-contoh{position:absolute;left:8px;bottom:8px;padding:2px 8px;border-radius:6px;background:rgba(36,48,40,.78);color:var(--paper);font-size:12px;line-height:16px;font-weight:600}   /* --r-sm, --fs-xs: stand-in badge */

/* hover / keyboard focus */
@media (hover:hover){
  .sk-item:hover .sk-tautan{text-decoration-line:underline}
  .sk-item:hover .sk-tautan svg{transform:translateX(4px)}
  .sk-item:hover .sk-foto img{transform:scale(1.04)}
}
.sk-tautan:focus-visible{outline:none}
.sk-tautan:focus-visible::after{outline:3px solid var(--forest);outline-offset:-3px}
.sk-tautan:focus-visible svg{transform:translateX(4px)}
@media (prefers-reduced-motion:reduce){
  .sk-tautan svg,.sk-foto img{transition:none}
  .sk-item:hover .sk-tautan svg,.sk-tautan:focus-visible svg,.sk-item:hover .sk-foto img{transform:none}
}

/* short laptop screens: smaller number, less air */
@media (min-width:761px) and (max-height:820px){
  .sk{padding-top:28px}   /* scroll off: the same room under the header */
  html.piling #surat-kabar{padding-top:calc(var(--head-h-s) + 28px)}
  .sk{padding-bottom:28px}
  .sk-head{margin-bottom:16px}
  .sk-nama{font-size:clamp(26px,2.4vw,36px)}
  .sk-teks{margin-top:16px;font-size:14px;line-height:20px}
  .sk-foto{margin-top:16px;min-height:90px}
}
@media (max-width:1100px) and (min-width:761px){   /* the type step (§5.2); was 1199 */
  .sk{padding-right:64px}   /* left stays at the 40 px gutter, in line with the logo (§5.1; was 28) */
  .sk-teks{font-size:14px;line-height:20px}
}

/* phones: one column under the other, in the normal page flow (as Tim and Kontak) */
@media (max-width:760px){
  .sk{height:auto;min-height:0;padding:40px 16px 56px}
  .sk-head{flex-direction:column;gap:8px;margin-bottom:24px}
  .sk-lede{margin-left:0}
  .sk-daftar{grid-template-columns:1fr;grid-template-rows:none;gap:48px}
  .sk-item{display:flex;flex-direction:column;grid-row:auto;padding:0 0 0 16px}
  .sk-nama{font-size:32px}
  .sk-teks{margin-top:16px}
  .sk-foto{flex:none;width:100%;min-height:0;max-height:none;aspect-ratio:3/2;margin-top:16px}
}

/* =====================================================================================================
   Gaya 'kartu' (gayaSuratKabar, referensi user 16 Okt 2026): empat kartu berwarna. Panel atas (tanpa logo, 16 Okt):
   nama kategori tegak di tepi kanan (dibaca dari bawah ke atas), kalimat pendek kiri bawah; foto di bawah panel.
   Lebar kartu mengikuti lebar DAN tinggi layar (min()), jadi keempatnya selalu muat satu layar.
   ===================================================================================================== */
.sk--kartu{--skk-gap:clamp(14px,2vw,32px);
  --skk-w:min(calc((min(100vw, var(--wadah) + 80px) - 112px - 3 * var(--skk-gap)) / 4),calc((100svh - var(--head-h-s) - 200px) / 1.58),380px)}
.sk--kartu{justify-content:center}   /* label and cards centred together */
.skk-daftar{flex:none;min-height:0;display:flex;justify-content:center;align-items:flex-start;gap:var(--skk-gap);margin:0;padding:0;list-style:none}
.skk{--skk-warna:var(--forest-deep);position:relative;container-type:inline-size;flex:none;display:flex;flex-direction:column;width:var(--skk-w);aspect-ratio:1/1.58;border-radius:8px;background:var(--skk-warna);color:#fff;overflow:hidden;
  box-shadow:0 1px 0 rgba(36,48,40,.08),0 8px 20px -12px rgba(36,48,40,.45);transition:transform .3s var(--ease),box-shadow .3s var(--ease)}   /* --r-md card, --shadow-2, hover lift --dur-2 */
.skk-panel{flex:1 1 auto;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto 1fr;gap:0 6cqw;padding:9cqw 8cqw 8cqw 9cqw}
/* the name, upright along the right edge, read from the bottom up (as the reference) */
/* the span turns, not the heading or the link: a transform there would trap the stretched link (.skk-tautan::after) inside it.
   Sizes in cqw (card width): cqi would follow the upright text's own inline axis. */
.skk-nama{grid-column:2;grid-row:1 / 3;align-self:stretch;min-height:0;margin:0;font-family:var(--font-head,var(--font));font-size:15cqw;line-height:1;font-weight:700;letter-spacing:-.02em}
.skk-tautan{display:block;height:100%;color:inherit;text-decoration:none;-webkit-tap-highlight-color:transparent;touch-action:manipulation}
.skk-putar{display:block;height:100%;writing-mode:vertical-rl;transform:rotate(180deg);text-wrap:balance}   /* a fixed height lets long names wrap onto a second upright line */
.skk-tautan::after{content:"";position:absolute;inset:0;z-index:2}   /* the whole card is the link */
.skk-sub{grid-column:1;grid-row:2;align-self:end;margin:0;font-size:max(12px,5.4cqw);line-height:1.35;font-weight:600;color:rgba(255,255,255,.92);text-wrap:pretty}
.skk-foto{position:relative;flex:none;height:30%;overflow:hidden;background:rgba(0,0,0,.2)}
.skk-foto img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .3s var(--ease)}

@media (hover:hover){
  .skk:hover{transform:translateY(-2px);box-shadow:0 1px 0 rgba(36,48,40,.08),0 24px 48px -28px rgba(36,48,40,.55)}   /* card lift (§7.2), --shadow-3 */
  .skk:hover .skk-foto img{transform:scale(1.05)}
}
.skk-tautan:focus-visible{outline:none}
.skk:has(.skk-tautan:focus-visible){outline:3px solid var(--forest);outline-offset:3px;transform:translateY(-2px)}
@media (prefers-reduced-motion:reduce){
  .skk,.skk-foto img{transition:none}
  .skk:hover,.skk:has(.skk-tautan:focus-visible){transform:none}
  .skk:hover .skk-foto img{transform:none}
}
@media (min-width:761px) and (max-height:820px){
  .sk--kartu{--skk-w:min(calc((min(100vw, var(--wadah) + 80px) - 112px - 3 * var(--skk-gap)) / 4),calc((100svh - var(--head-h-s) - 150px) / 1.58),380px)}
}
/* phones: two by two, normal page flow */
@media (max-width:760px){
  .sk--kartu{--skk-gap:12px;--skk-w:auto}
  .skk-daftar{display:grid;grid-template-columns:1fr 1fr;align-items:start}
  .skk{width:auto}
  .skk-nama{font-size:16cqw}
  .skk-sub{font-size:max(12px,5cqw)}   /* --fs-xs floor */
}
