/* fp-articles.css: the public article list `/cikkek` (ArticleList, frontend/views/cikkek/list.php), lifted from the
   Claude Design project's cikkek-m.html (its inline <style>), scoped under .ckPage; the hero is static.css's .stHero.
   Built differently from the mock:
     1. every item heading is an h2 (the lead's and the cards'), so the card rules name h2;
     2. the current chip carries a tick and the current page a yellow bar beside the blue fill (the colour-blind rule);
     3. an arrow at an end is a dimmed <span class="nv off">, not a link;
     4. the fallback picture is the header's white logo (fportal-logo.png) on the blue gradient.
   Mobile first: min-width only (1, 2, 3 columns at 600 and 1000 px). No focus mark (frontend-rules.md 1.16). */

.ckPage{padding:0 0 28px}
.ckPage a{color:inherit}
.ckPage a:hover{color:var(--fp-link)}
.ckWrap{display:flex;flex-direction:column;gap:14px;padding-top:12px}
.ckWrap>*{min-width:0}

/* ---------- the type chips ---------- */
.ckF{display:flex;flex-wrap:wrap;gap:8px}
.ckPage .ckCh{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 14px;background:var(--fp-bg-surface);border:1px solid var(--fp-card-bd,var(--fp-divider));color:var(--fp-fg);font-size:13px;line-height:16px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;text-decoration:none;transition:border-color .15s,background .15s}
.ckPage .ckCh:hover{border-color:var(--fp-blue);color:var(--fp-link)}
.ckPage .ckCh[aria-current="true"]{background:var(--fp-blue);border-color:var(--fp-blue);color:#fff}
.ckCh[aria-current="true"]::before{content:"";width:9px;height:5px;border-left:2.5px solid currentColor;border-bottom:2.5px solid currentColor;transform:rotate(-45deg) translateY(-2px)}
.ckStat{margin:0;font-size:13px;line-height:18px;font-weight:600;color:var(--fp-fg-muted)}

/* ---------- the picture slot and the uniform fallback ---------- */
.ckImg{position:relative;display:block;overflow:hidden;background:#0b1530}
.ckImg>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transition:transform .3s ease}
.ckPh{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:radial-gradient(circle at 100% 0,rgba(255,255,255,.08) 0 34%,transparent 34.5%),radial-gradient(circle at 0 100%,rgba(255,255,255,.06) 0 42%,transparent 42.5%),var(--fp-blue-gradient)}
.ckPh img{position:static;width:38%;max-width:220px;height:auto;object-fit:contain;opacity:.95}
.ckCat{font-size:12px;line-height:16px;font-weight:700;color:var(--fp-link);text-transform:uppercase;letter-spacing:.6px}
.ckMeta{display:flex;flex-wrap:wrap;gap:4px 10px;font-size:12px;line-height:16px;color:var(--fp-fg-muted);text-transform:uppercase;letter-spacing:.4px;font-weight:700}
.ckMeta span+span::before,.ckMeta time+span::before{content:"·";margin-right:10px}

/* ---------- the lead item (page 1) ---------- */
.ckPage .ckLead{display:grid;background:var(--fp-bg-surface);color:var(--fp-fg);text-decoration:none}
.ckPage .ckLead:hover{color:var(--fp-fg)}
.ckLead .ckImg{aspect-ratio:16/9}
.ckLead .bd{display:flex;flex-direction:column;gap:8px;padding:14px 14px 18px;min-width:0}
.ckLead .ckCat{align-self:flex-start;background:var(--fp-yellow);color:#000;padding:0 8px;line-height:22px}
.ckLead h2{margin:0;font-size:24px;line-height:29px;font-weight:700;text-wrap:balance}
.ckLead p{margin:0;font-size:16px;line-height:23px;color:var(--fp-fg-muted);text-wrap:pretty;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.ckLead:hover h2{color:var(--fp-link)}
.ckLead:hover .ckImg>img{transform:scale(1.03)}

/* ---------- the card grid ---------- */
.ckGrid{display:grid;gap:12px;margin:0;padding:0;list-style:none}
.ckPage .ckGrid li a.ckCard{display:flex;flex-direction:column;height:100%;padding:0;background:var(--fp-bg-surface);border:1px solid var(--fp-card-bd,var(--fp-divider));color:var(--fp-fg);text-decoration:none;transition:border-color .15s}
.ckPage .ckGrid li a.ckCard:hover{border-color:var(--fp-blue)}
/* the in-feed ad cell (AdSlot::inFeed(), every 6th): a card's frame, its label inside, the unit filling the rest */
.ckPage .ckGrid li.ckAd{display:flex}
.ckPage .ckGrid li.ckAd .fpAd{flex:1;margin:0;padding:8px;background:var(--fp-bg-surface);border:1px solid var(--fp-card-bd,var(--fp-divider))}
.ckPage .ckGrid li.ckAd .fpAdBox{flex:1}
.ckCard .ckImg{aspect-ratio:16/10}
.ckCard:hover .ckImg>img{transform:scale(1.05)}
.ckCard .bd{display:flex;flex-direction:column;gap:6px;flex:1;padding:12px 14px 14px;min-width:0}
.ckCard h2{margin:0;font-size:17px;line-height:22px;font-weight:700;text-wrap:pretty}
.ckCard:hover h2{color:var(--fp-link)}
.ckCard p{margin:0;font-size:14px;line-height:20px;color:var(--fp-fg-muted);display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.ckCard .ckMeta{margin-top:auto;padding-top:4px}

/* ---------- the pager ---------- */
.ckPg{display:flex;flex-wrap:wrap;justify-content:center;gap:6px;margin-top:6px}
.ckPg a,.ckPg span{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-width:44px;height:44px;padding:0 8px;font-size:15px;font-weight:700;font-variant-numeric:tabular-nums}
.ckPage .ckPg a,.ckPg .nv.off{background:var(--fp-bg-surface);border:1px solid var(--fp-card-bd,var(--fp-divider));color:var(--fp-fg);text-decoration:none}
.ckPage .ckPg a:hover{border-color:var(--fp-blue);color:var(--fp-link)}
.ckPage .ckPg a[aria-current="page"]{background:var(--fp-blue);border-color:var(--fp-blue);color:#fff;box-shadow:inset 0 -4px 0 var(--fp-yellow)}
.ckPg .nv.off{opacity:.4}
.ckPg .gap{min-width:24px;padding:0;color:var(--fp-fg-muted)}
.ckPg .nv{padding:0 12px;font-size:13px;text-transform:uppercase;letter-spacing:.5px}
.ckPg .nv b{display:none;font-weight:700}
.ckPg svg{width:16px;height:16px;stroke:currentColor;fill:none;stroke-width:2.4}

@media (min-width:600px){
.ckGrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.ckPg .nv b{display:inline}
}
@media (min-width:861px){
.ckPage{padding-bottom:40px}
.ckWrap{gap:18px;padding-top:20px}
.ckPage .ckCh{min-height:36px}
.ckPage .ckLead{grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);align-items:stretch}
.ckLead .ckImg{aspect-ratio:auto;min-height:100%}
.ckLead .ckImg::before{content:"";display:block;padding-top:56.25%}
.ckLead .bd{gap:12px;padding:24px 28px;justify-content:center}
.ckLead h2{font-size:30px;line-height:36px}
.ckLead p{font-size:17px;line-height:25px}
}
@media (min-width:1000px){
.ckGrid{grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
}

/* ---------- dark mode: the two blues (a small control's fill --fp-ctl, a line --fp-accent) ---------- */
:where([data-theme="dark"]) .ckPage .ckCh[aria-current="true"],:where([data-theme="dark"]) .ckPage .ckPg a[aria-current="page"]{background:var(--fp-ctl,var(--fp-blue));border-color:var(--fp-ctl,var(--fp-blue))}
:where([data-theme="dark"]) .ckPage .ckCh:not([aria-current="true"]):hover,:where([data-theme="dark"]) .ckPage .ckPg a:not([aria-current="page"]):hover,:where([data-theme="dark"]) .ckPage .ckGrid li a.ckCard:hover{border-color:var(--fp-accent,var(--fp-blue))}
