/* ═══════════════════════════════════════════════════════════════════════════
   RC4U — Wiedza — lista artykulow i widok wpisu

   Zrodlo: design/makiety/rc4u-redesign.html (blok <style> nr 6).
   Wygenerowane 2026-08-28. Zmiany wprowadzaj TUTAJ — makieta jest juz tylko
   dokumentacja decyzji, nie zrodlem prawdy.
   ═══════════════════════════════════════════════════════════════════════════ */

/* ============================================================
   WIEDZA - lista artykulow i widok wpisu
   Blog to druga droga wejscia na strone: czlowiek szuka wiedzy,
   a nie auta. Uklad ma go plynnie przeprowadzic do rezerwacji.
   ============================================================ */

/* --- filtry tematow --- */
.chips{display:flex; flex-wrap:wrap; gap:.5rem; margin-bottom:clamp(1.6rem,3vw,2.4rem)}

.chip{
  border:1px solid var(--line-strong); background:transparent; color:var(--ink);
  border-radius:100px; padding:.42rem .95rem; font-size:.82rem; font-weight:500;
  min-height:38px; display:inline-flex; align-items:center; gap:.4rem; min-width:0;
  transition:background .15s, border-color .15s, color .15s;
}

.chip:hover{border-color:var(--ink); background:var(--surface-2)}

.chip[aria-pressed="true"]{
  background:var(--accent-fill); color:var(--accent-on-fill); border-color:transparent; font-weight:600;
}

.chip small{font-size:.75em; opacity:.7; font-weight:400}

/* --- wpis wyrozniony --- */
.artlead{
  display:grid; gap:1.4rem; margin-bottom:clamp(2rem,4vw,3rem);
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg);
  overflow:hidden; text-decoration:none; color:inherit; min-width:0;
  transition:box-shadow .18s ease, border-color .18s;
}

.artlead:hover{box-shadow:var(--shadow-lg); border-color:var(--line-strong)}

.artlead__media{aspect-ratio:16/9; background:var(--bg-sunken); overflow:hidden}

.artlead__media img{width:100%; height:100%; object-fit:cover; transition:transform .5s ease}

.artlead:hover .artlead__media img{transform:scale(1.04)}

.artlead__body{
  display:flex; flex-direction:column; gap:.9rem; min-width:0;
  padding:0 1.3rem 1.5rem;
}

.artlead__title{
  font-family:var(--body); font-weight:600; letter-spacing:0;
  font-size:clamp(1.25rem,1.05rem + 1vw,1.85rem); line-height:1.3; text-wrap:balance;
}

@media (min-width:820px){
  .artlead{grid-template-columns:1.1fr 1fr; gap:0; align-items:stretch}
  .artlead__media{aspect-ratio:auto; height:100%; min-height:19rem}
  .artlead__body{padding:clamp(1.6rem,3vw,2.4rem); justify-content:center}
}

/* --- siatka wpisow --- */
.artgrid{display:grid; gap:1.25rem; grid-template-columns:1fr; min-width:0}

@media (min-width:620px){.artgrid{grid-template-columns:repeat(2,1fr)}}

@media (min-width:1020px){.artgrid{grid-template-columns:repeat(3,1fr); gap:1.6rem}}

.art{
  display:flex; flex-direction:column; min-width:0; text-decoration:none; color:inherit;
  background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); overflow:hidden;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s;
}

.art:hover{transform:translateY(-3px); box-shadow:var(--shadow-lg); border-color:var(--line-strong)}

.art__media{aspect-ratio:16/9; background:var(--bg-sunken); overflow:hidden}

.art__media img{width:100%; height:100%; object-fit:cover; transition:transform .5s ease}

.art:hover .art__media img{transform:scale(1.045)}

.art__body{display:flex; flex-direction:column; gap:.6rem; padding:1.05rem 1.15rem 1.25rem; flex:1; min-width:0}

.art__title{
  font-family:var(--body); font-weight:600; font-size:1.02rem; line-height:1.4;
  letter-spacing:0; text-wrap:balance;
}

.art__lead{font-size:.86rem; color:var(--ink-muted); min-width:0}

.art__more{
  margin-top:auto; padding-top:.3rem; font-size:.84rem; font-weight:600; color:var(--accent);
  display:inline-flex; align-items:center; gap:.4rem;
}

.art:hover .art__more{text-decoration:underline; text-underline-offset:3px}

/* --- metryczka wpisu: temat, data, czas czytania --- */
.artmeta{
  display:flex; flex-wrap:wrap; align-items:center; gap:.4rem .7rem;
  font-size:.74rem; color:var(--ink-muted); min-width:0;
}

.artmeta__tag{
  font-size:.68rem; font-weight:600; letter-spacing:.1em; text-transform:uppercase;
  color:var(--accent-on-fill); background:var(--accent-fill);
  border-radius:100px; padding:.2rem .6rem; white-space:nowrap;
}

.artmeta__dot{width:3px; height:3px; border-radius:50%; background:currentColor; opacity:.5; flex:0 0 3px}

/* --- paginacja --- */
.pager{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:center;
  gap:.4rem; margin-top:clamp(2rem,4vw,3rem);
}

.pager a, .pager span{
  min-width:42px; min-height:42px; padding:.4rem .7rem; border-radius:var(--r);
  display:inline-flex; align-items:center; justify-content:center;
  border:1px solid var(--line); color:var(--ink); text-decoration:none; font-size:.9rem;
}

.pager a:hover{border-color:var(--line-strong); background:var(--surface-2)}

.pager .is-now{background:var(--accent-fill); color:var(--accent-on-fill); border-color:transparent; font-weight:600}

.pager .is-gap{border:0; min-width:1.4rem; color:var(--ink-muted)}

/* --- widok wpisu --- */
.post__head{max-width:64ch; margin-bottom:clamp(1.4rem,3vw,2rem)}

.post__title{
  font-size:clamp(2rem,1.3rem + 2.8vw,3.4rem); margin:.7rem 0 .9rem;
  line-height:calc(.94em + 4px);
}

.post__hero{
  margin:0 0 clamp(1.8rem,3.5vw,2.8rem); border-radius:var(--r-lg); overflow:hidden;
  border:1px solid var(--line); background:var(--bg-sunken); aspect-ratio:16/9;
}

.post__hero img{width:100%; height:100%; object-fit:cover}

/* na szerokim ekranie zdjecie ma wprowadzac, a nie zjadac pol ekranu */
@media (min-width:1000px){.post__hero{aspect-ratio:21/9}}

.post{display:grid; gap:clamp(1.8rem,3vw,2.6rem); min-width:0}

@media (min-width:1000px){
  .post{grid-template-columns:minmax(0,1fr) 19rem; align-items:start; gap:3rem}
}

.post__main{min-width:0; max-width:68ch}

.post__body{min-width:0}

.post__body p{margin:0 0 1.15rem; font-size:1.02rem}

.post__body h2{
  font-family:var(--body); font-weight:600; letter-spacing:0;
  font-size:clamp(1.3rem,1.1rem + .9vw,1.65rem); line-height:1.32;
  margin:2.2rem 0 .9rem; scroll-margin-top:calc(var(--demobar-h,0px) + var(--nav-h,0px) + 1.5rem);
}

.post__body h3{
  font-family:var(--body); font-weight:600; letter-spacing:0;
  font-size:1.06rem; line-height:1.4; margin:1.6rem 0 .5rem;
}

.post__body ul{margin:0 0 1.3rem; padding-left:1.1rem; display:grid; gap:.45rem}

.post__body li{font-size:.98rem; padding-left:.25rem}

.post__body li::marker{color:var(--accent)}

.post__body > *:first-child{margin-top:0}

.post__aside{display:grid; gap:1.2rem; min-width:0; align-content:start}

@media (min-width:1000px){
  .post__aside{position:sticky; top:calc(var(--demobar-h,0px) + var(--nav-h,0px) + 1.2rem)}
}

.toc h3{
  font-family:var(--body); font-size:.72rem; font-weight:600; letter-spacing:.16em;
  text-transform:uppercase; color:var(--ink-muted); margin-bottom:.85rem;
}

.toc ol{margin:0; padding:0; list-style:none; counter-reset:toc; display:grid; gap:.15rem}

.toc li{counter-increment:toc; min-width:0}

.toc a{
  display:flex; gap:.6rem; padding:.42rem 0; font-size:.87rem; color:var(--ink);
  text-decoration:none; line-height:1.35; border-bottom:1px dashed var(--line);
}

.toc li:last-child a{border-bottom:0}

.toc a::before{content:counter(toc); color:var(--ink-muted); font-size:.78rem; flex:0 0 auto; font-variant-numeric:tabular-nums}

.toc a:hover{color:var(--accent)}

/* granatowa karta w trybie ciemnym siada na prawie tak samo ciemnym tle —
   delikatna ramka odcina ja od otoczenia, w jasnym pozostaje niewidoczna */
.postcta{background:var(--navy-900); color:#eaf3fa; border-color:var(--navy-700)}

.postcta h3{color:#fff; margin-bottom:.6rem; font-size:1.5rem}

.postcta p{font-size:.87rem; color:#a8bccd; margin-bottom:1.1rem}

.postcta .btn{width:100%}

.share{display:flex; flex-wrap:wrap; align-items:center; gap:.5rem; min-width:0}

.share span{font-size:.78rem; color:var(--ink-muted); margin-right:.2rem}

.share a{
  width:38px; height:38px; border-radius:50%; border:1px solid var(--line);
  display:inline-flex; align-items:center; justify-content:center; color:var(--ink); flex:0 0 38px;
}

.share a:hover{border-color:var(--ink); background:var(--surface-2)}

/* --- pasek pod trescia: poprzedni i nastepny wpis --- */
.postnav{
  display:grid; gap:1rem; margin-top:clamp(2.4rem,4vw,3.4rem);
  border-top:1px solid var(--line); padding-top:1.6rem;
}

@media (min-width:760px){.postnav{grid-template-columns:1fr 1fr}}

.postnav a{
  display:flex; flex-direction:column; gap:.3rem; min-width:0; text-decoration:none; color:inherit;
  border:1px solid var(--line); border-radius:var(--r-lg); padding:1rem 1.15rem;
  transition:border-color .18s, background .18s;
}

.postnav a:hover{border-color:var(--line-strong); background:var(--surface-2)}

.postnav small{font-size:.72rem; letter-spacing:.12em; text-transform:uppercase; color:var(--ink-muted)}

.postnav b{font-weight:600; font-size:.94rem; line-height:1.35}

.postnav .is-next{text-align:right}

/* --- pas zachety pod lista i pod wpisem --- */
.blogcta{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between;
  gap:1.4rem 2rem; background:var(--surface); border:1px solid var(--line);
  border-radius:var(--r-lg); padding:clamp(1.4rem,3vw,2.2rem);
}

.blogcta__t{min-width:0; max-width:52ch}

.blogcta__t h3{font-size:clamp(1.5rem,1.2rem + 1.4vw,2.2rem); margin-bottom:.5rem}

.blogcta__t p{color:var(--ink-muted); font-size:.94rem}

.blogcta__btns{display:flex; flex-wrap:wrap; gap:.7rem; min-width:0}

/* --- autor wpisu: pole opcjonalne, wypelnione tylko tam, gdzie jest --- */
.artmeta__by{display:inline-flex; align-items:center; gap:.4rem; min-width:0}

.artmeta__by img{width:22px; height:22px; border-radius:50%; flex:0 0 22px}

.authorbox{
  display:flex; flex-wrap:wrap; gap:1rem 1.2rem; align-items:flex-start; min-width:0;
  border:1px solid var(--line); border-radius:var(--r-lg); background:var(--surface-2);
  padding:1.2rem 1.3rem; margin-top:2.4rem;
}

.authorbox img{width:60px; height:60px; border-radius:50%; flex:0 0 60px}

.authorbox__t{min-width:0; flex:1 1 16rem}

.authorbox__t b{display:block; font-weight:600; font-size:1rem}

.authorbox__t small{display:block; font-size:.76rem; letter-spacing:.1em; text-transform:uppercase; color:var(--ink-muted); margin:.15rem 0 .6rem}

.authorbox__t p{font-size:.88rem; color:var(--ink-muted); margin:0}

/* w trybie EN kafelek mowi, ze tresc jest tylko po polsku */
.artmeta__only{
  font-size:.66rem; font-weight:600; letter-spacing:.08em; border:1px solid var(--line-strong);
  border-radius:100px; padding:.1rem .45rem; color:var(--ink-muted); white-space:nowrap;
}

/* kategoria jest klikalna — wraca na liste z zalozonym filtrem */
button.artmeta__tag{border:0; cursor:pointer; font-family:inherit}

button.artmeta__tag:hover{background:var(--accent); color:var(--ink-inverse)}

/* Spis tresci stoi NAD trescia na kazdej szerokosci — czytelnik dostaje go
   wtedy, kiedy jest mu potrzebny. Kolumna boczna nalezy do oferty. */
.toc--m{padding:.9rem 1.1rem; margin-bottom:2rem}

.toc--m > summary{
  cursor:pointer; font-family:var(--body); font-size:.72rem; font-weight:600;
  letter-spacing:.16em; text-transform:uppercase; color:var(--ink-muted);
  list-style:none; display:flex; align-items:center; gap:.5rem; min-height:24px;
}

.toc--m > summary::-webkit-details-marker{display:none}

.toc--m > summary::after{
  content:''; width:8px; height:8px; margin-left:auto; flex:0 0 8px;
  border-right:2px solid currentColor; border-bottom:2px solid currentColor;
  transform:rotate(45deg) translate(-2px,-2px); transition:transform .18s ease;
}

.toc--m[open] > summary::after{transform:rotate(-135deg) translate(-3px,-3px)}

.toc--m ol{margin-top:.7rem}

.toc--m li{break-inside:avoid}

/* --- kolumna boczna wpisu: same drogi do wypozyczenia --- */
.ctacard{display:grid; gap:.75rem; min-width:0}

.ctacard h3{
  font-family:var(--body); font-size:.98rem; font-weight:600; letter-spacing:0;
  line-height:1.35; margin:0;
}

.ctacard p{font-size:.85rem; color:var(--ink-muted); margin:0}

.ctacard .btn{width:100%}

.ctacard__car{display:flex; gap:.8rem; align-items:center; min-width:0}

.ctacard__car img{
  width:74px; height:52px; flex:0 0 74px; object-fit:cover;
  border-radius:var(--r-sm); border:1px solid var(--line);
}

.ctacard__car b{display:block; font-weight:600; font-size:.92rem; line-height:1.3}

.ctacard__car span{display:block; font-size:.8rem; color:var(--ink-muted); margin-top:.15rem}

.ctacard__eyebrow{
  font-size:.66rem; font-weight:600; letter-spacing:.16em; text-transform:uppercase;
  color:var(--ink-muted);
}

.ministeps{margin:0; padding:0; list-style:none; counter-reset:ms; display:grid; gap:.5rem}

.ministeps li{
  counter-increment:ms; display:flex; gap:.6rem; align-items:flex-start;
  font-size:.85rem; min-width:0;
}

.ministeps li::before{
  content:counter(ms); flex:0 0 20px; height:20px; border-radius:50%;
  background:var(--bg-sunken); color:var(--ink-muted);
  font-size:.7rem; font-weight:600; display:grid; place-items:center; margin-top:.12rem;
}

/* wpis nie ma jeszcze tlumaczenia - mowimy o tym wprost */
.langnote{
  display:flex; gap:.6rem; align-items:flex-start; font-size:.85rem;
  background:var(--surface-2); border:1px solid var(--line); border-radius:var(--r);
  padding:.75rem .9rem; margin-bottom:1.6rem; color:var(--ink-muted);
}

.langnote svg{flex:0 0 16px; margin-top:.15rem}
