/*
Theme Name: Trivero
Description: Custom theme dla Trivero — Intelligent Ledger.
Author: Trivero
Version: 2.0
Text Domain: trivero
*/

/* =========================================================
   Design tokens — "księga" / ledger
   ========================================================= */
:root {
  --bg: #F3F4F0;
  --surface: #FFFFFF;
  --surface-2: #E9EAE4;
  --ink: #17241B;
  --muted: #6B7268;
  --line: #DCDDD5;
  --forest: #2F6B45;
  --accent-soft: #E3EBE5;
  --on-primary: #F3F4F0;
  --r: 2px;
  --font-sans: "Archivo", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

.mono { font-family: var(--font-mono); }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; height: auto; display: block; }

:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }

/* Reveal przy scrollu — klasę .reveal dokleja JS, więc bez JS-a
   wszystko zostaje w pełni widoczne od razu (progresywne wzmocnienie). */
.reveal { opacity: 0; transform: translateY(16px); transition-delay: calc(min(var(--i, 0), 6) * 45ms); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

h1, h2, h3, h4 { text-wrap: balance; margin: 0; letter-spacing: -0.025em; font-weight: 600; }
p { line-height: 1.6; margin: 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--forest); font-weight: 500;
}

/* Sygnatura: linia-obwód z węzłem (jak w logo) */
.noderule { position: relative; height: 1px; background: var(--line); }
.noderule::before {
  content: ""; position: absolute; left: 0; top: -3px;
  width: 7px; height: 7px; background: var(--forest);
}
.noderule::after {
  content: ""; position: absolute; left: 16px; top: -2px;
  width: 5px; height: 5px; border: 1px solid var(--forest); background: var(--bg);
}

/* =========================================================
   Header
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.brand .mark { width: 24px; height: 24px; border-radius: var(--r); background: var(--forest); flex-shrink: 0; }
.brand-logo img { max-height: 40px; width: auto; }
.navlinks { display: flex; gap: 30px; font-size: 13px; color: var(--muted); font-weight: 500; list-style: none; margin: 0; padding: 0; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: 0.05em; }
.navlinks a { position: relative; padding-bottom: 4px; transition: color .18s ease; }
.navlinks a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--forest);
  transition: right .22s cubic-bezier(.4,0,.2,1);
}
.navlinks a:hover { color: var(--ink); }
.navlinks a:hover::after, .navlinks .current-menu-item a::after { right: 0; }
.navlinks .current-menu-item a { color: var(--forest); }
@media (max-width: 760px) { .navlinks { display: none; } }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 11px 18px; border-radius: var(--r); cursor: pointer; white-space: nowrap;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease; border: none;
}
.btn-primary { background: var(--forest); color: var(--on-primary); }
.btn-primary:hover { background: color-mix(in srgb, var(--forest) 82%, var(--ink)); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { border-color: var(--forest); color: var(--forest); }

/* =========================================================
   Blog index — lista wpisów jako księga
   ========================================================= */
.blog-head { padding: 56px 0 36px; }
.blog-head h1 { font-size: 42px; }
@media (max-width: 640px) { .blog-head h1 { font-size: 29px; } }
.blog-head p { color: var(--muted); font-size: 15.5px; margin-top: 12px; max-width: 60ch; }

.toolbar { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.search-form { position: relative; flex: 1; min-width: 240px; max-width: 420px; }
.search-form input[type="search"] {
  width: 100%; padding: 11px 16px 11px 38px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--surface); font-size: 13.5px; font-family: var(--font-sans); color: var(--ink); outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.search-form input[type="search"]:focus { border-color: var(--forest); box-shadow: 0 0 0 3px color-mix(in srgb, var(--forest) 15%, transparent); }
.search-form .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 14px; pointer-events: none; }

.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag-pill {
  font-family: var(--font-mono); font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.05em;
  padding: 7px 12px; border-radius: var(--r); border: 1px solid var(--line);
  color: var(--muted); background: var(--surface); cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.tag-pill:hover { border-color: var(--forest); color: var(--forest); }
.tag-pill.active { background: var(--forest); color: var(--on-primary); border-color: var(--forest); }
.tag-pill.active:hover { color: var(--on-primary); }

/* Featured — najnowszy wpis */
.featured {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  overflow: hidden; margin-bottom: 40px;
  transition: box-shadow .22s ease, transform .22s cubic-bezier(.16,1,.3,1), opacity .5s ease;
}
.featured:hover { transform: translateY(-3px); box-shadow: 0 28px 48px -28px rgba(23,36,27,0.25); }
@media (max-width: 760px) { .featured { grid-template-columns: 1fr; } }
.featured-body { padding: 34px 36px; display: grid; gap: 14px; align-content: center; }
@media (max-width: 640px) { .featured-body { padding: 24px 20px; } }
.featured-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--forest-deep, #4E8060); font-weight: 700;
}
.featured-label::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--forest); }
.featured-body h2 { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.025em; transition: color .16s ease; }
.featured:hover .featured-body h2 { color: var(--forest); }
.featured-excerpt { font-size: 14.5px; color: var(--muted); max-width: 52ch; line-height: 1.6; }
.featured-meta {
  display: flex; gap: 12px; font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums; flex-wrap: wrap;
}
.featured-more { font-size: 13.5px; font-weight: 700; color: var(--forest-deep, #4E8060); display: inline-flex; gap: 6px; align-items: center; }
.featured-more .arr { transition: transform .18s cubic-bezier(.16,1,.3,1); }
.featured:hover .featured-more .arr { transform: translateX(4px); }
.featured-viz {
  background: var(--accent-soft); position: relative; min-height: 260px;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.featured-viz svg { width: 88%; height: auto; }
.featured-viz img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
@media (max-width: 760px) { .featured-viz { min-height: 180px; } }

/* Wyróżnione — pasek poziomy, zamiast sidebaru */
.picks-band { background: var(--accent-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 36px 0; margin-bottom: 40px; }
.picks-head { display: flex; align-items: center; margin-bottom: 20px; }
.picks-head h3 {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink); font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.picks-head h3::before { content: ""; width: 6px; height: 6px; background: var(--forest); flex-shrink: 0; }

.picks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 860px) { .picks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .picks-grid { display: flex; overflow-x: auto; gap: 14px; scroll-snap-type: x mandatory; margin: 0 -20px; padding: 0 20px 4px; }
  .pick-card { min-width: 210px; scroll-snap-align: start; flex-shrink: 0; }
}

.pick-card {
  display: grid; gap: 10px; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px;
  transition: border-color .16s ease, opacity .5s ease, transform .5s cubic-bezier(.16,1,.3,1);
}
.pick-card:hover { border-color: var(--forest); }
.pick-card:hover .pick-title { color: var(--forest); }
.pick-viz { height: 56px; display: flex; align-items: center; justify-content: center; background: var(--bg); border-radius: var(--r); overflow: hidden; }
.pick-viz svg { width: 80%; height: auto; }
.pick-viz img { width: 100%; height: 100%; object-fit: cover; }
.pick-num { font-size: 10px; color: var(--forest); font-weight: 600; }
.pick-title { font-size: 13.5px; font-weight: 600; line-height: 1.35; transition: color .16s ease; }
.pick-date { font-family: var(--font-mono); font-size: 10.5px; color: var(--muted); }

/* Księga wpisów — 2 kolumny z grzbietem pośrodku, jak w oprawionej księdze */
.ledger { border-top: 2px solid var(--ink); display: grid; grid-template-columns: 1fr 1fr; column-gap: 0; }
.ledger-row {
  display: grid; grid-template-columns: 104px 1fr; gap: 22px; align-items: start;
  padding: 22px 28px 22px 0; border-bottom: 1px solid var(--line);
  transition: background-color .16s ease, opacity .5s ease, transform .5s cubic-bezier(.16,1,.3,1);
}
.ledger-row:nth-child(even) { padding-left: 28px; padding-right: 0; border-left: 1px solid var(--line); }
.ledger-row:hover { background: color-mix(in srgb, var(--surface) 60%, transparent); }
.ledger-row:hover .row-title { color: var(--forest); }
@media (max-width: 760px) {
  .ledger { grid-template-columns: 1fr; }
  .ledger-row, .ledger-row:nth-child(even) { padding: 18px 0; border-left: none; }
}

.row-viz {
  width: 104px; height: 78px; border-radius: var(--r); background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 60%, transparent);
}
.row-viz svg { width: 82%; height: auto; }
.row-viz img { width: 100%; height: 100%; object-fit: cover; }

.row-main { display: grid; gap: 8px; min-width: 0; }
.row-meta {
  font-family: var(--font-mono); font-size: 11px; color: var(--muted);
  text-transform: uppercase; letter-spacing: 0.05em;
  display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap;
  font-variant-numeric: tabular-nums;
}
.row-cat { color: var(--forest); font-weight: 600; }
.row-title { font-size: 19px; font-weight: 600; line-height: 1.3; letter-spacing: -0.02em; transition: color .16s ease; }
.row-excerpt { font-size: 13.5px; color: var(--muted); line-height: 1.55; max-width: 62ch; }

@media (max-width: 620px) {
  .ledger-row { grid-template-columns: 84px 1fr; gap: 14px; }
  .row-viz { width: 84px; height: 63px; }
}

@media (prefers-reduced-motion: reduce) {
  .featured, .featured:hover { transform: none; transition: none; }
  .featured-more .arr { transition: none; }
}

.pagination { display: flex; justify-content: center; align-items: center; gap: 6px; margin-top: 44px; }
.page-numbers {
  min-width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--r); border: 1px solid var(--line); font-size: 12px; font-weight: 500; color: var(--muted);
  background: var(--surface); font-family: var(--font-mono); cursor: pointer;
  transition: background-color .16s ease, color .16s ease, border-color .16s ease;
}
.page-numbers:hover { border-color: var(--forest); color: var(--forest); }
.page-numbers.current { background: var(--forest); color: var(--on-primary); border-color: var(--forest); }
.page-numbers.dots { border: none; background: none; }

/* Sidebar — używane na stronie pojedynczego wpisu (TOC / powiązane / CTA) */
.side-block { border-top: 1px solid var(--ink); padding-top: 16px; }
.side-block h3, .side-block h4 {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink); margin-bottom: 16px; font-weight: 600;
  display: flex; align-items: center; gap: 8px;
}
.side-block h3::before, .side-block h4::before {
  content: ""; width: 6px; height: 6px; background: var(--forest); flex-shrink: 0;
}

.side-cta { background: var(--forest); color: var(--on-primary); border-radius: var(--r); padding: 24px; display: grid; gap: 10px; }
.side-cta h4 { font-size: 16px; color: var(--on-primary); font-family: var(--font-sans); text-transform: none; letter-spacing: -0.01em; margin-bottom: 0; }
.side-cta h4::before { display: none; }
.side-cta p { font-size: 13px; opacity: 0.85; }
.side-cta .btn-primary { background: var(--on-primary); color: var(--forest); margin-top: 4px; width: fit-content; }
.side-cta .btn-primary:hover { background: #fff; }

/* Newsletter — osobny, jasny pasek. Tło: cienkie linie jak papier
   księgowy; pod kursorem rozświetla się ta sama siatka w zieleni marki. */
.newsletter-band {
  position: relative; overflow: hidden; --mx: 50%; --my: 30%;
  background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 8px;
}
.newsletter-band::before, .newsletter-band::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(0deg, currentColor 0 1px, transparent 1px 11px);
}
.newsletter-band::before { color: var(--line); opacity: .7; }
.newsletter-band::after {
  color: var(--forest); opacity: 0;
  -webkit-mask-image: radial-gradient(220px circle at var(--mx) var(--my), #000 0%, transparent 72%);
  mask-image: radial-gradient(220px circle at var(--mx) var(--my), #000 0%, transparent 72%);
  transition: opacity .25s ease;
}
.newsletter-band:hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .newsletter-band::after { transition: none; } }

.newsletter-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 40px 0;
  transition: opacity .5s ease, transform .5s cubic-bezier(.16,1,.3,1);
}
.newsletter-inner h4 { font-size: 18px; }
.newsletter-inner p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  min-width: 220px; padding: 11px 14px; border-radius: var(--r); border: 1px solid var(--line);
  background: var(--bg); color: var(--ink); font-size: 13px; font-family: var(--font-sans);
}

/* SEO section — grafika (wykres-sygnatura) + tekst */
.seo-section { padding: 56px 0; }
.seo-layout { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .seo-layout { grid-template-columns: 1fr; gap: 32px; } }
.seo-graphic { background: var(--accent-soft); border-radius: 12px; padding: 28px; }
.seo-graphic svg { width: 100%; height: auto; }
.seo-inner h2 { font-size: 22px; margin-bottom: 22px; }
.seo-inner .body { display: grid; gap: 16px; }
.seo-inner p { font-size: 14px; color: var(--muted); line-height: 1.75; }
.seo-inner p strong { color: var(--ink); font-weight: 600; }

/* CTA na koniec listy — jedyny mocny akcent koloru, z żywym tłem analityki */
.cta-band { background: var(--forest); position: relative; overflow: hidden; }
.cta-inner { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 44px 0; }
.cta-inner h4 { font-size: 20px; color: var(--on-primary); }
.cta-inner p { font-size: 14px; color: color-mix(in srgb, var(--on-primary) 78%, transparent); margin-top: 6px; }
.cta-inner .btn-primary { background: var(--on-primary); color: var(--forest); flex-shrink: 0; }
.cta-inner .btn-primary:hover { background: #fff; }

/* Tło analityczne — słupki, wyłącznie w tym jednym pasie.
   Wysokość steruje JS w zależności od pozycji scrolla (--h, custom
   property), więc słupki nie animują się same — czekają na przewijanie.
   Domyślne --h (nth-child) to tylko spoczynkowy kształt, zanim JS zadziała. */
.pulse-bars { position: absolute; inset: 0; display: flex; align-items: flex-end; gap: 4px; padding: 0 4%; opacity: 0.16; }
.pulse-bars span {
  flex: 1; height: 100%; background: var(--on-primary); border-radius: 2px 2px 0 0;
  transform-origin: bottom; transform: scaleY(var(--h, .3)); will-change: transform;
}
.pulse-bars span:nth-child(3n) { --h: .5; }
.pulse-bars span:nth-child(5n) { --h: .65; }
.pulse-bars span:nth-child(7n) { --h: .4; }

/* =========================================================
   Single post
   ========================================================= */
.crumbs { padding: 22px 0 0; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; text-transform: uppercase; letter-spacing: 0.04em; }
.crumbs a:hover { color: var(--forest); }
.crumbs .sep { opacity: .5; }

.post-head { padding: 26px 0 32px; max-width: 820px; }
.post-head .post-cat {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--forest); border: 1px solid color-mix(in srgb, var(--forest) 35%, var(--line));
  border-radius: var(--r); padding: 5px 10px; display: inline-block;
}
.post-head h1 { font-size: 44px; line-height: 1.08; margin-top: 18px; }
@media (max-width: 640px) { .post-head h1 { font-size: 30px; } }
.post-dek { font-size: 17px; color: var(--muted); margin-top: 16px; max-width: 65ch; }

.post-meta-row { display: flex; align-items: center; gap: 18px; margin-top: 26px; flex-wrap: wrap; }
.author-chip { display: flex; align-items: center; gap: 10px; }
.author-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--forest); flex-shrink: 0; overflow: hidden; }
.author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.author-info { font-size: 13px; line-height: 1.3; }
.author-info .name { font-weight: 600; }
.author-info .date { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.meta-sep { width: 1px; height: 30px; background: var(--line); }
.meta-stat { font-family: var(--font-mono); font-size: 11px; color: var(--muted); display: flex; align-items: baseline; gap: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.meta-stat strong { color: var(--ink); font-variant-numeric: tabular-nums; }

.ai-bar { display: flex; gap: 8px; margin-top: 22px; flex-wrap: wrap; align-items: center; }
.ai-btn, a.ai-btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11.5px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 9px 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); cursor: pointer; transition: border-color .16s ease, color .16s ease;
}
.ai-btn:hover, a.ai-btn:hover { border-color: var(--forest); color: var(--forest); }
.ai-btn .dot { width: 6px; height: 6px; background: var(--forest); }
.ai-btn.playing .dot { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .ai-btn.playing .dot { animation: none; } }

.ai-wrap { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ai-lbl { font-family: var(--font-mono); font-size: 11px; color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; margin-right: 2px; }

.post-hero-img { height: 300px; border-radius: var(--r); background: var(--accent-soft); overflow: hidden; border: 1px solid var(--line); margin-bottom: 8px; }
.post-hero-img img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 640px) { .post-hero-img { height: 180px; } }

.article-layout { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; padding-top: 40px; padding-bottom: 80px; align-items: start; }
@media (max-width: 900px) {
  .article-layout { grid-template-columns: 1fr; }
  .rail-col { order: 3; position: static; }
  .rail-col .toc { display: none; }
}
.rail-col { position: sticky; top: 92px; display: grid; gap: 36px; order: 2; }
article.post-content { order: 1; max-width: 720px; font-size: 16px; line-height: 1.75; color: var(--ink); }

.toc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc li a { display: block; font-size: 13px; color: var(--muted); padding: 7px 0 7px 16px; border-left: 2px solid transparent; margin-left: -2px; transition: color .16s ease, border-color .16s ease; }
.toc li a:hover { color: var(--ink); }
.toc li.active a { color: var(--forest); border-left-color: var(--forest); font-weight: 600; }
.toc li.sub a { padding-left: 30px; font-size: 12.5px; }

article.post-content > * + * { margin-top: 22px; }
article.post-content h2 { font-size: 26px; margin-top: 48px; scroll-margin-top: 100px; }
article.post-content h3 { font-size: 20px; margin-top: 36px; scroll-margin-top: 100px; }
article.post-content p.lead { font-size: 18px; color: var(--muted); }
article.post-content ul, article.post-content ol { padding-left: 22px; display: grid; gap: 8px; }
article.post-content li { line-height: 1.65; }
article.post-content a { color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

article.post-content blockquote { border-left: 3px solid var(--forest); padding: 4px 0 4px 22px; margin: 0; font-size: 19px; font-weight: 500; line-height: 1.5; letter-spacing: -0.01em; }
article.post-content blockquote cite { display: block; margin-top: 10px; font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--muted); font-style: normal; }

.callout { background: var(--accent-soft); border-left: 3px solid var(--forest); border-radius: var(--r); padding: 20px 22px; display: flex; gap: 14px; align-items: flex-start; }
.callout .icon { font-size: 18px; flex-shrink: 0; }
.callout .txt { font-size: 14.5px; color: var(--ink); line-height: 1.6; }
.callout .txt strong { display: block; margin-bottom: 4px; font-size: 15px; }

/* "W skrócie" — wyróżniony blok na start artykułu, pod AI Overview/featured snippets */
.tldr { background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--ink); border-radius: var(--r); padding: 20px 22px; font-size: 15.5px; line-height: 1.65; color: var(--ink); }
.tldr strong:first-child { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--forest); display: block; margin-bottom: 8px; }

article.post-content table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
article.post-content thead th { text-align: left; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-weight: 600; }
article.post-content tbody td { padding: 12px 16px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
article.post-content tbody tr:last-child td { border-bottom: none; }

article.post-content figure { margin: 0; }
article.post-content figcaption { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); margin-top: 10px; text-align: center; }

.cta-shortcode { background: var(--forest); color: var(--on-primary); border-radius: var(--r); padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.cta-shortcode .txt h4 { font-size: 17px; color: var(--on-primary); }
.cta-shortcode .txt p { font-size: 13.5px; opacity: 0.85; margin-top: 4px; color: var(--on-primary); }
.cta-shortcode .btn-primary { background: var(--on-primary); color: var(--forest); flex-shrink: 0; }
.cta-shortcode .btn-primary:hover { background: #fff; }

.post-footer-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; padding-top: 32px; border-top: 1px solid var(--line); }
.post-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.post-tags span, .post-tags a { font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); border: 1px solid var(--line); background: var(--surface); padding: 6px 10px; border-radius: var(--r); }
.post-tags a:hover { border-color: var(--forest); color: var(--forest); }
.share { display: flex; gap: 6px; }
.share a { width: 32px; height: 32px; border-radius: var(--r); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 12px; color: var(--muted); transition: border-color .16s ease, color .16s ease; }
.share a:hover { border-color: var(--forest); color: var(--forest); }

.author-bio { margin-top: 40px; border-top: 1px solid var(--ink); padding-top: 24px; display: flex; gap: 18px; align-items: flex-start; }
.author-bio .av { width: 56px; height: 56px; border-radius: 50%; background: var(--forest); flex-shrink: 0; overflow: hidden; }
.author-bio .av img { width: 100%; height: 100%; object-fit: cover; }
.author-bio h4 { font-size: 16px; }
.author-bio .role { font-family: var(--font-mono); font-size: 11px; color: var(--forest); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }
.author-bio p { font-size: 13.5px; color: var(--muted); margin-top: 10px; line-height: 1.6; }

.mini-post:hover .mini-title { color: var(--forest); }
.mini-title { transition: color .16s ease; }

.related { padding: 0 0 80px; }
.related .noderule { margin-bottom: 56px; }
.related h2 { font-size: 24px; margin-bottom: 28px; }
.related-grid { border-top: 1px solid var(--ink); }
.related-card {
  display: grid; grid-template-columns: 96px 1fr; gap: 18px; align-items: center;
  padding: 18px 0; border-bottom: 1px solid var(--line);
  transition: background-color .16s ease, box-shadow .16s ease;
}
.related-card:hover { background: var(--surface); box-shadow: inset 3px 0 0 0 var(--forest); }
.related-card:hover .related-title { color: var(--forest); }
.related-thumb { width: 96px; height: 64px; background: var(--accent-soft); border-radius: var(--r); overflow: hidden; }
.related-thumb img { width: 100%; height: 100%; object-fit: cover; }
.related-body { display: grid; gap: 6px; padding-right: 12px; }
.related-cat { font-family: var(--font-mono); font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--forest); }
.related-title { font-size: 15.5px; font-weight: 600; line-height: 1.35; transition: color .16s ease; }

/* =========================================================
   Footer
   ========================================================= */
.site-footer { padding: 0 0 32px; font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.site-footer .noderule { margin-bottom: 28px; }
.site-footer a:hover { color: var(--forest); }
