/* ============================================================
   webkartka.pl — blog i podstrony (/blog/, /strona/, 404)
   Wygląd 2026-11. Wspólne elementy (nagłówek, stopka, przyciski,
   okruszki, blok CTA) są w /assets/wk-site.css — ładowany wcześniej.
   ============================================================ */

/* ---------- Nagłówek listy wpisów ---------- */
.wk-hero { background: var(--spruce); color: var(--on-dark); }
.wk-hero-in { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 56px; align-items: end; padding-top: 36px; padding-bottom: 56px; }
.wk-hero .wk-crumbs ol { color: var(--on-dark-2); }
.wk-hero .wk-crumbs li + li::before { color: rgba(238, 241, 236, .4); }
.wk-hero .wk-crumbs a:hover, .wk-hero .wk-crumbs [aria-current] { color: #fff; }
.wk-hero-title { margin: 22px 0 0; color: #fff; font-size: clamp(72px, 12vw, 168px); line-height: .86; letter-spacing: -.04em; }
.wk-hero-title.is-cat { font-size: clamp(40px, 6vw, 84px); line-height: .98; letter-spacing: -.03em; }
.wk-hero-desc { margin: 0; max-width: 38ch; color: var(--on-dark-2); font-size: clamp(18px, 1.6vw, 22px); line-height: 1.45; }
.wk-hero-count { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--rule-dark); color: #fff; font-size: 16px; font-weight: 600; }

/* ---------- Pasek kategorii ---------- */
.wk-cats { background: var(--white); border-bottom: 1px solid var(--rule); position: relative; }
.wk-cats-list { display: flex; flex-wrap: wrap; column-gap: 28px; list-style: none; margin: 0; padding: 0; }
.wk-cats-list a { display: block; padding: 17px 0 13px; border-bottom: 4px solid transparent; color: var(--ink); font-size: 16px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.wk-cats-list a span { margin-left: 4px; color: var(--muted); font-size: 14px; font-weight: 500; }
.wk-cats-list a:hover { border-bottom-color: var(--rule); }
.wk-cats-list a.is-active { border-bottom-color: var(--marker-2); }
@media (max-width: 760px) {
  .wk-cats-list { flex-wrap: nowrap; overflow-x: auto; column-gap: 22px; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-right: 40px; }
  .wk-cats-list::-webkit-scrollbar { display: none; }
  .wk-cats::after { content: ''; position: absolute; top: 0; right: 0; bottom: 1px; width: 48px; background: linear-gradient(90deg, rgba(255, 255, 255, 0), #fff 75%); pointer-events: none; }
}

/* ---------- Lista wpisów ---------- */
.wk-list { padding-top: 56px; padding-bottom: 80px; }
.wk-label { margin: 0 0 10px; color: var(--spruce-2); font-size: 15px; font-weight: 700; }
.wk-label a { color: inherit; text-decoration: none; }
.wk-label a:hover { text-decoration: underline; text-underline-offset: 3px; }
.wk-label .wk-dot { margin: 0 8px; }
.wk-meta { display: flex; flex-wrap: wrap; gap: 0 8px; margin: 0; color: var(--muted); font-size: 15px; }

.wk-featured { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 52px; align-items: center; margin-bottom: 72px; }
.wk-featured-img { display: block; }
.wk-featured-img img, .wk-card-img img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--r); border: 1.5px solid var(--ink); background: var(--sage); }
.wk-featured-title { margin: 0 0 16px; font-size: clamp(32px, 3.4vw, 50px); line-height: 1.02; letter-spacing: -.025em; }
.wk-featured-title a, .wk-card-title a { color: var(--ink); text-decoration: none; }
.wk-featured-title a:hover, .wk-card-title a:hover { text-decoration: underline; text-decoration-color: var(--marker-2); text-decoration-thickness: 4px; text-underline-offset: 5px; }
.wk-featured-ex { margin: 0 0 18px; color: var(--text); font-size: 19px; line-height: 1.55; }
.wk-more { display: inline-block; margin-top: 24px; color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--marker-2); text-decoration-thickness: 4px; text-underline-offset: 6px; }
.wk-more:hover { color: var(--spruce-2); }

.wk-sec-title { margin: 0 0 32px; padding-top: 16px; border-top: 1.5px solid var(--ink); color: var(--ink); font-family: var(--display); font-size: clamp(30px, 3vw, 42px); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; }
.wk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 36px; }
.wk-card { min-width: 0; }
.wk-card-img { display: block; margin-bottom: 18px; }
.wk-card.no-img { padding-top: 18px; border-top: 1.5px solid var(--ink); }
.wk-card.no-img .wk-card-title { font-size: 28px; }
.wk-card.no-img .wk-card-ex { -webkit-line-clamp: 4; }
.wk-featured.no-img { display: block; padding: 44px 48px 48px; background: var(--sage); border-radius: var(--r); }
.wk-featured.no-img .wk-featured-title { max-width: 24ch; font-size: clamp(34px, 4vw, 58px); }
.wk-featured.no-img .wk-featured-ex { max-width: 62ch; }
.wk-card-title { margin: 0 0 10px; font-size: 26px; line-height: 1.12; letter-spacing: -.015em; }
.wk-card-ex { margin: 0 0 14px; color: var(--text); font-size: 16px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.wk-empty { padding: 24px 0 8px; max-width: 60ch; }
.wk-empty h2 { margin: 0 0 10px; font-size: 34px; line-height: 1.1; }

/* ---------- Paginacja ---------- */
.wk-pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 72px; padding-top: 22px; border-top: 1px solid var(--rule); font-weight: 700; }
.wk-pager a { color: var(--ink); text-decoration: none; }
.wk-pager-prev:hover, .wk-pager-next:hover { text-decoration: underline; text-decoration-color: var(--marker-2); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.wk-pager .is-off { color: var(--rule); }
.wk-pager-nums { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.wk-pager-nums a, .wk-pager-nums span { display: inline-flex; align-items: center; justify-content: center; min-width: 46px; height: 46px; padding: 0 8px; border-radius: var(--r); }
.wk-pager-nums a:hover { background: var(--sage); }
.wk-pager-nums [aria-current] { background: var(--marker); color: var(--ink); }
.wk-pager-gap { display: inline-flex; align-items: center; color: var(--muted); }

/* ---------- Wpis / podstrona ---------- */
.wk-article-head { background: var(--sage); padding-top: 32px; padding-bottom: 44px; }
.wk-article-head .wk-crumbs { margin-bottom: 30px; }
.wk-article-title { margin: 0; max-width: 22ch; font-size: clamp(38px, 5.4vw, 72px); line-height: 1; letter-spacing: -.03em; }
.wk-article-lead { margin: 22px 0 0; max-width: 60ch; color: var(--text); font-size: clamp(19px, 1.7vw, 23px); line-height: 1.5; }
.wk-article-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin: 30px 0 0; padding-top: 16px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 15px; }
.wk-article-head .wk-label { margin-bottom: 14px; }
.wk-article-cover { background: linear-gradient(var(--sage) 0, var(--sage) 50%, #fff 50%, #fff 100%); }
.wk-article-cover figure { margin: 0; }
.wk-article-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 630; object-fit: cover; border-radius: var(--r); border: 1.5px solid var(--ink); background: var(--sage-2); }
.wk-article-body { padding-top: 56px; padding-bottom: 64px; }
.wk-article-body.has-toc { display: grid; grid-template-columns: 260px minmax(0, 720px); gap: 64px; justify-content: center; }

.wk-toc { align-self: start; position: sticky; top: 96px; font-size: 15px; }
.wk-toc details > summary { display: flex; justify-content: space-between; align-items: center; list-style: none; cursor: pointer; padding-bottom: 10px; border-bottom: 1.5px solid var(--ink); color: var(--ink); font-family: var(--display); font-size: 21px; font-weight: 700; }
.wk-toc details > summary::-webkit-details-marker { display: none; }
.wk-toc details > summary::after { content: '−'; font: 500 22px/1 var(--font); }
.wk-toc details:not([open]) > summary::after { content: '+'; }
.wk-toc ol { list-style: none; margin: 0; padding: 0; }
.wk-toc li { border-bottom: 1px solid var(--rule); }
.wk-toc a { display: block; padding: 10px 0; color: var(--text); line-height: 1.35; text-decoration: none; }
.wk-toc a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--marker-2); text-decoration-thickness: 3px; text-underline-offset: 4px; }

.wk-prose { max-width: 720px; margin: 0 auto; color: var(--text); font-size: 19px; line-height: 1.72; overflow-wrap: break-word; }
.has-toc .wk-prose { margin: 0; }
.wk-prose > :first-child { margin-top: 0; }
.wk-prose p { margin: 0 0 1.15em; }
.wk-prose h2 { margin: 2em 0 .55em; font-size: clamp(30px, 2.8vw, 38px); line-height: 1.1; letter-spacing: -.02em; scroll-margin-top: 96px; }
.wk-prose h3 { margin: 1.7em 0 .45em; font-size: clamp(23px, 2vw, 27px); line-height: 1.2; }
.wk-prose h4 { margin: 1.5em 0 .4em; font-size: 21px; }
.wk-prose a { color: var(--spruce-2); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.wk-prose a:hover { color: var(--ink); text-decoration-color: var(--marker-2); text-decoration-thickness: 3px; }
.wk-prose strong, .wk-prose b { color: var(--ink); font-weight: 700; }
.wk-prose ul, .wk-prose ol { margin: 0 0 1.3em; padding-left: 1.35em; }
.wk-prose li { margin: .4em 0; padding-left: .3em; }
.wk-prose ul > li::marker { color: var(--spruce-2); }
.wk-prose ol > li::marker { color: var(--ink); font-weight: 700; }
.wk-prose blockquote { margin: 1.8em 0; padding: 14px 20px; border-left: 5px solid var(--marker-2); background: var(--sage); color: var(--ink); font-size: 1.05em; font-weight: 500; line-height: 1.55; }
.wk-prose blockquote p:last-child { margin-bottom: 0; }
.wk-prose img { display: block; max-width: 100%; height: auto; border-radius: var(--r); }
.wk-prose figure { margin: 2em 0; }
.wk-prose figcaption { margin-top: 8px; color: var(--muted); font-size: 15px; line-height: 1.45; }
.wk-prose table { width: 100%; margin: 1.6em 0; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.wk-prose th, .wk-prose td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.wk-prose thead th { border-bottom: 1.5px solid var(--ink); color: var(--ink); }
.wk-prose hr { margin: 2.4em 0; border: 0; border-top: 1.5px solid var(--ink); }
.wk-prose code { padding: 1px 5px; border-radius: 3px; background: var(--sage); font-size: .9em; }

.wk-faq { margin-top: 3.2em; }
.wk-faq h2 { margin-top: 0; }
.wk-faq details { border-top: 1px solid var(--rule); }
.wk-faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.wk-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 18px 0; cursor: pointer; list-style: none; color: var(--ink); font-family: var(--display); font-size: 22px; font-weight: 600; line-height: 1.25; }
.wk-faq summary::-webkit-details-marker { display: none; }
.wk-faq summary::after { content: '+'; flex: none; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--sage-2); color: var(--ink); font: 500 22px/1 var(--font); }
.wk-faq details[open] summary::after { content: '−'; background: var(--marker); }
.wk-faq summary:hover { color: var(--spruce-2); }
.wk-faq-a { padding: 0 52px 22px 0; }
.wk-faq-a p { margin: 0; }

.wk-prevnext { display: grid; grid-template-columns: 1fr 1fr; margin-bottom: 72px; }
.wk-pn { display: block; padding: 28px 32px 28px 0; border-top: 1.5px solid var(--ink); border-bottom: 1px solid var(--rule); color: var(--ink); text-decoration: none; }
.wk-pn + .wk-pn { padding: 28px 0 28px 32px; border-left: 1px solid var(--rule); text-align: right; }
.wk-pn-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 15px; font-weight: 600; }
.wk-pn-title { display: block; font-family: var(--display); font-size: 24px; font-weight: 700; line-height: 1.15; }
.wk-pn:hover .wk-pn-title { text-decoration: underline; text-decoration-color: var(--marker-2); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.wk-pn.is-off { pointer-events: none; }
.wk-pn + .wk-pn.is-off { border-left-color: transparent; }

.wk-related { padding-top: 64px; padding-bottom: 80px; }

/* ---------- 404 ---------- */
.wk-404 { background: var(--sage); }
.wk-404-in { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 24px 64px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.wk-404-code { margin: 0; color: var(--ink); font-family: var(--display); font-size: clamp(120px, 19vw, 250px); font-weight: 700; line-height: .8; letter-spacing: -.05em; }
.wk-404-text h1 { margin: 0 0 14px; font-size: clamp(34px, 4vw, 54px); line-height: 1.02; letter-spacing: -.025em; }
.wk-404-text p { margin: 0; max-width: 50ch; font-size: 18px; }
.wk-404-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px !important; }

/* ---------- Responsywność ---------- */
@media (max-width: 1180px) {
  .wk-article-body.has-toc { display: block; }
  .wk-toc { position: static; max-width: 720px; margin: 0 auto 40px; padding: 16px 20px 6px; background: var(--sage); border-radius: var(--r); }
  .wk-toc details:not([open]) > summary { padding-bottom: 10px; border-bottom: 0; }
  .wk-toc li:last-child { border-bottom: 0; }
}
@media (max-width: 1000px) {
  .wk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 28px; }
}
@media (max-width: 900px) {
  .wk-hero-in { grid-template-columns: 1fr; gap: 18px; padding-top: 24px; padding-bottom: 40px; }
  .wk-featured { grid-template-columns: 1fr; gap: 22px; margin-bottom: 48px; }
}
@media (max-width: 760px) {
  .wk-list { padding-top: 32px; padding-bottom: 56px; }
  .wk-prose { font-size: 18px; line-height: 1.68; }
  .wk-article-head { padding-top: 22px; padding-bottom: 32px; }
  .wk-article-head .wk-crumbs { margin-bottom: 22px; }
  .wk-article-body { padding-top: 36px; padding-bottom: 48px; }
  .wk-faq summary { font-size: 20px; }
  .wk-faq-a { padding-right: 0; }
  .wk-prevnext { grid-template-columns: 1fr; margin-bottom: 56px; }
  .wk-pn, .wk-pn + .wk-pn { padding: 22px 0; border-left: 0; text-align: left; }
  .wk-pn + .wk-pn { border-top: 0; }
  .wk-pn.is-off { display: none; }
  .wk-pager { flex-wrap: wrap; justify-content: center; }
  .wk-pager-nums { order: -1; width: 100%; justify-content: center; }
  .wk-pager-prev, .wk-pager-next { flex: 1 1 40%; }
  .wk-pager-next { text-align: right; }
  .wk-404-in { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 56px; }
  .wk-related { padding-top: 48px; padding-bottom: 56px; }
  .wk-prose table { display: block; overflow-x: auto; }
}
@media (max-width: 640px) {
  .wk-grid { grid-template-columns: 1fr; gap: 40px; }
  .wk-card-title { font-size: 24px; }
  .wk-featured.no-img { padding: 28px 20px 32px; }
  .wk-featured-ex { font-size: 17px; }
}
@media print {
  .wk-cats, .wk-prevnext, .wk-related, .wk-toc { display: none !important; }
  .wk-article-head { background: none; }
  .wk-prose a::after { content: ' (' attr(href) ')'; font-size: .8em; color: #555; }
}
