/* ============================================================
   WERDYKT — uniwersalny motyw afiliacyjny "atheme"
   System design: tokeny, typografia, komponenty
   ============================================================ */

/* ---------- Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,400;1,6..72,500&family=Public+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* ---------- Design tokens ---------- */
:root {
  /* Type */
  --font-display: 'Newsreader', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;

  /* Color — warm paper + navy ink */
  --paper:        #fbfaf7;
  --paper-2:      #f4f2ec;
  --paper-3:      #eae6dc;
  --surface:      #ffffff;
  --ink:          #15212e;
  --ink-2:        #51606e;
  --ink-3:        #8794a0;
  --line:         #e7e3d9;
  --line-2:       #d8d3c6;

  /* Brand navy */
  --navy:         #1d3b59;
  --navy-700:     #15304a;
  --navy-deep:    #0e2233;
  --navy-tint:    #eef2f6;

  /* Accents (shared L/C, varied hue) */
  --cta:          oklch(0.585 0.135 152);   /* conversion green */
  --cta-700:      oklch(0.515 0.13 152);
  --cta-tint:     oklch(0.95 0.04 152);
  --gold:         oklch(0.76 0.13 80);       /* awards / stars */
  --gold-deep:    oklch(0.66 0.12 73);
  --gold-tint:    oklch(0.95 0.045 85);
  --rose:         oklch(0.60 0.14 25);       /* cons / negative */
  --rose-tint:    oklch(0.95 0.035 25);

  /* Radii & shadow */
  --r-sm: 6px;
  --r:    10px;
  --r-lg: 16px;
  --r-xl: 24px;
  --shadow-sm: 0 1px 2px rgba(20,33,46,.06), 0 1px 1px rgba(20,33,46,.04);
  --shadow:    0 4px 16px -4px rgba(20,33,46,.12), 0 2px 6px -2px rgba(20,33,46,.08);
  --shadow-lg: 0 18px 50px -12px rgba(14,34,51,.30), 0 6px 18px -8px rgba(14,34,51,.18);

  /* Layout */
  --container: 1180px;
  --narrow: 720px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-radius: 3px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.18; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4vw, 3.1rem); line-height: 1.16; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
h4 { font-size: 1.12rem; }
p { text-wrap: pretty; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cta-700);
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.eyebrow::before { content:""; width: 22px; height: 2px; background: currentColor; display:inline-block; }
.lead { font-size: 1.18rem; color: var(--ink-2); line-height: 1.6; }
.muted { color: var(--ink-2); }
.mono { font-family: var(--font-mono); }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.narrow { max-width: var(--narrow); margin-inline: auto; }
.section { padding-block: clamp(48px, 7vw, 88px); }
.section--tight { padding-block: clamp(36px, 5vw, 56px); }
.section--paper2 { background: var(--paper-2); }
.section--navy { background: var(--navy-deep); color: #e9eef3; }
.section--navy h1, .section--navy h2, .section--navy h3 { color: #fff; }
.section--navy .lead, .section--navy .muted { color: #aebccb; }
.divider { height: 1px; background: var(--line); border: 0; }
.stack > * + * { margin-top: var(--gap, 1rem); }

.grid { display: grid; gap: 24px; }
.cols-2 { grid-template-columns: repeat(2, 1fr); }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px){ .cols-3, .cols-4 { grid-template-columns: repeat(2,1fr);} }
@media (max-width: 620px){ .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; } }

.section-head { max-width: 680px; margin-bottom: 36px; }
.section-head .lead { margin-top: 12px; }
.center { text-align: center; margin-inline: auto; }

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --bg: var(--surface); --fg: var(--ink); --bd: var(--line-2);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font-family: var(--font-body); font-weight: 700; font-size: 0.98rem;
  line-height: 1; padding: 0.85em 1.4em; border-radius: var(--r);
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  transition: transform .14s ease, box-shadow .18s ease, background .18s ease, filter .18s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arr { transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn--cta { --bg: var(--cta); --fg: #fff; --bd: transparent; box-shadow: 0 8px 20px -8px oklch(0.585 0.135 152 / .7); }
.btn--cta:hover { filter: brightness(1.05); box-shadow: 0 12px 26px -8px oklch(0.585 0.135 152 / .85); }
.btn--primary { --bg: var(--navy); --fg: #fff; --bd: transparent; }
.btn--primary:hover { --bg: var(--navy-700); }
.btn--ghost { --bg: transparent; --fg: var(--ink); }
.btn--ghost:hover { --bg: var(--paper-2); }
.btn--on-navy { --bg: #fff; --fg: var(--navy-deep); --bd: transparent; }
.btn--lg { padding: 1.05em 1.7em; font-size: 1.05rem; }
.btn--sm { padding: 0.62em 1em; font-size: 0.86rem; }
.btn--block { width: 100%; }

.btn-note { font-family: var(--font-mono); font-size: 0.7rem; color: var(--ink-3); margin-top: 8px; text-align: center; }

/* ============================================================
   Badges, pills, chips
   ============================================================ */
.badge {
  display: inline-flex; align-items: center; gap: 0.45em;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 0.42em 0.7em; border-radius: 999px;
  background: var(--navy-tint); color: var(--navy);
}
.badge--award { background: var(--gold-tint); color: var(--gold-deep); }
.badge--cta { background: var(--cta-tint); color: var(--cta-700); }
.badge--rank { background: var(--navy-deep); color: #fff; }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.pill {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-size: 0.82rem; font-weight: 600; color: var(--ink-2);
  padding: 0.35em 0.8em; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--surface);
}

/* ============================================================
   Stars & score
   ============================================================ */
.stars { display: inline-flex; gap: 2px; color: var(--gold); --pct: 100%; position: relative; }
.stars svg { width: 1em; height: 1em; }
.score {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  width: 64px; height: 64px; border-radius: var(--r); flex: none;
  background: var(--navy-deep); color: #fff; font-family: var(--font-display);
}
.score__num { font-size: 1.5rem; font-weight: 600; line-height: 1; }
.score__max { font-family: var(--font-mono); font-size: 0.6rem; color: #9fb2c4; margin-top: 2px; }
.score--gold { background: var(--gold); color: var(--navy-deep); }
.score--gold .score__max { color: var(--navy-deep); opacity: .65; }
.score--lg { width: 88px; height: 88px; border-radius: var(--r-lg); }
.score--lg .score__num { font-size: 2.2rem; }

/* Score breakdown bars */
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: 150px 1fr 38px; align-items: center; gap: 14px; }
.bar-row .bar-label { font-size: 0.92rem; font-weight: 600; }
.bar-track { height: 9px; border-radius: 999px; background: var(--paper-3); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--navy), var(--cta)); }
.bar-val { font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; text-align: right; color: var(--ink); }
@media (max-width: 520px){ .bar-row { grid-template-columns: 110px 1fr 34px; } }

/* ============================================================
   Cards
   ============================================================ */
.card {
  display: block;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow-sm);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s;
}
a.card { color: inherit; text-decoration: none; }

/* Cards inside grids align their inner content: the .card-foot row is pinned to the bottom. */
.grid > .card { display: flex; flex-direction: column; }
.grid > .card > .card-body { display: flex; flex-direction: column; flex: 1; }
.card .card-foot { margin-top: auto; padding-top: 14px; }
.card--hover:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: var(--line-2); }
.card__kicker { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }

/* Logo placeholder (brand mark slot) */
.logo-slot {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; color: var(--navy);
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--r); width: 56px; height: 56px; font-size: 1.4rem; flex: none;
}
.logo-slot--lg { width: 76px; height: 76px; font-size: 2rem; border-radius: var(--r-lg); }

/* ---------- Rank card (ranking list) ---------- */
.rank-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--shadow-sm); overflow: clip;
  transition: box-shadow .2s ease, border-color .2s;
}
.rank-card:hover { box-shadow: var(--shadow); }
.rank-card--top { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint), var(--shadow); }
.rank-card__ribbon {
  position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold); color: var(--navy-deep); font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 14px 7px 18px; border-bottom-right-radius: var(--r);
}
.rank-card__body { display: grid; grid-template-columns: 64px 1fr auto; gap: 22px; padding: 26px; align-items: start; }
.rank-card--top .rank-card__body { padding-top: 44px; }
.rank-num {
  font-family: var(--font-display); font-size: 2.6rem; font-weight: 600; line-height: 1;
  color: var(--navy); width: 64px; text-align: center;
  border-right: 1px solid var(--line); padding-right: 10px;
}
.rank-main { min-width: 0; }
.rank-title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.rank-title-row h3 { margin: 0; }
.rank-tag { font-size: 0.84rem; font-weight: 700; color: var(--cta-700); }
.rank-feats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; }
.rank-feat { display: inline-flex; align-items: center; gap: 7px; font-size: 0.92rem; color: var(--ink-2); }
.rank-feat svg { width: 16px; height: 16px; color: var(--cta); flex: none; }
.rank-aside { display: flex; flex-direction: column; align-items: stretch; gap: 12px; width: 210px; text-align: center; }
.rank-price { font-size: 0.86rem; color: var(--ink-2); }
.rank-price b { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); font-weight: 600; }
.rank-stars-row { display: flex; align-items: center; justify-content: center; gap: 8px; }
.rank-stars-row .num { font-family: var(--font-mono); font-weight: 600; font-size: 0.9rem; }
@media (max-width: 780px){
  .rank-card__body { grid-template-columns: 48px 1fr; }
  .rank-num { font-size: 2rem; width: 48px; }
  .rank-aside { grid-column: 1 / -1; width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
  .rank-aside .score { flex: 0 0 auto; margin: 0 !important; }
  .rank-aside .rank-price { flex: 1 1 auto; text-align: left; }
  .rank-aside .btn { flex: 0 0 100%; }
  .rank-aside > a:not(.btn) { flex: 0 0 100%; text-align: center; }
}

/* ============================================================
   Comparison table
   ============================================================ */
.table-wrap { overflow-x: auto; overflow-y: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-sm); }
table.ctable { width: 100%; border-collapse: collapse; min-width: 640px; }
.ctable th, .ctable td { padding: 13px 13px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ctable thead th { background: var(--navy-deep); color: #fff; font-family: var(--font-body); font-weight: 700; font-size: 0.92rem; }
.ctable thead th:first-child { border-top-left-radius: 0; }
.ctable tbody tr:hover { background: var(--paper-2); }
.ctable .row-label { font-weight: 700; color: var(--ink); width: 200px; }
.ctable td.is-win { background: var(--cta-tint); }
.ctable .yes { color: var(--cta-700); font-weight: 700; }
.ctable .no { color: var(--ink-3); }
.ctable .sortable { cursor: pointer; user-select: none; }
.ctable .sortable::after { content: "↕"; opacity: .5; margin-left: 6px; font-size: 0.8em; }
.ctable .sort-asc::after { content: "↑"; opacity: 1; }
.ctable .sort-desc::after { content: "↓"; opacity: 1; }

/* ============================================================
   Pros / cons
   ============================================================ */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 620px){ .proscons { grid-template-columns: 1fr; } }
.pc-col { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: var(--surface); }
.pc-col h4 { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-family: var(--font-body); font-weight: 800; font-size: 1rem; }
.pc-col.pros { background: var(--cta-tint); border-color: oklch(0.83 0.07 152); }
.pc-col.cons { background: var(--rose-tint); border-color: oklch(0.86 0.05 25); }
.pc-col ul { display: grid; gap: 10px; }
.pc-col li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 0.96rem; color: var(--ink); align-items: start; }
.pc-col li svg { width: 18px; height: 18px; margin-top: 3px; }
.pros li svg { color: var(--cta-700); }
.cons li svg { color: var(--rose); }
.pc-icn { width: 26px; height: 26px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; }
.pros .pc-icn { background: var(--cta); color: #fff; }
.cons .pc-icn { background: var(--rose); color: #fff; }

/* ============================================================
   Verdict box
   ============================================================ */
.verdict {
  display: grid; grid-template-columns: auto 1fr; gap: 24px;
  background: var(--navy-deep); color: #e9eef3; border-radius: var(--r-xl);
  padding: 32px; align-items: center; box-shadow: var(--shadow-lg);
}
.verdict h3 { color: #fff; }
.verdict .verdict-label { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.verdict p { color: #b8c6d4; margin-top: 8px; }
.verdict-cta { margin-top: 18px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
@media (max-width: 620px){ .verdict { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* ============================================================
   Author / E-E-A-T box
   ============================================================ */
.author {
  display: flex; gap: 18px; align-items: center;
  border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 20px; background: var(--surface);
}
.author__avatar {
  width: 64px; height: 64px; border-radius: 50%; flex: none;
  background: var(--paper-3) repeating-linear-gradient(45deg, transparent, transparent 6px, rgba(0,0,0,.03) 6px, rgba(0,0,0,.03) 12px);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--navy);
  border: 1px solid var(--line-2);
}
.author__avatar { overflow: hidden; }
.author__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.author__name { font-weight: 800; font-size: 1rem; }
.author__role { font-size: 0.86rem; color: var(--ink-2); }
.author__meta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-3); }

/* Trust strip */
.trust-strip { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
.trust-item { display: inline-flex; align-items: center; gap: 10px; font-size: 0.92rem; font-weight: 600; color: var(--ink-2); }
.trust-item svg { width: 20px; height: 20px; color: var(--cta); flex: none; }

/* ============================================================
   Image / media placeholder
   ============================================================ */
.media-ph {
  position: relative; background: var(--paper-2);
  background-image: repeating-linear-gradient(135deg, transparent, transparent 11px, rgba(29,59,89,.05) 11px, rgba(29,59,89,.05) 12px);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.media-ph::after {
  content: attr(data-label); font-family: var(--font-mono); font-size: 0.72rem;
  letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  background: var(--surface); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px;
}
.ratio-16-9 { aspect-ratio: 16/9; }
.ratio-4-3 { aspect-ratio: 4/3; }
.ratio-1-1 { aspect-ratio: 1/1; }

/* ============================================================
   Header / nav
   ============================================================ */
.topbar {
  background: var(--navy-deep); color: #c3d0dd; font-size: 0.78rem;
  font-family: var(--font-mono); letter-spacing: .02em;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; padding-block: 6px; white-space: nowrap; }
.topbar > .container > span { overflow: hidden; text-overflow: ellipsis; }
.topbar a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.topbar .topbar-right { display: flex; gap: 18px; flex: none; }
@media (max-width: 700px){ .topbar .topbar-right { display: none; } }

.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251,250,247,.88); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; align-items: center; gap: 24px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; color: var(--ink); letter-spacing: -.02em; }
.brand__mark { width: 34px; height: 34px; flex: none; }
.nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav a { padding: 9px 13px; border-radius: var(--r-sm); font-weight: 600; font-size: 0.95rem; color: var(--ink-2); transition: background .15s, color .15s; }
.nav a:hover { background: var(--paper-2); color: var(--ink); }
.nav a.active { color: var(--navy); background: var(--navy-tint); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 40px; height: 40px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--ink-2); }
.icon-btn:hover { color: var(--ink); background: var(--paper-2); }
.icon-btn svg { width: 19px; height: 19px; }
.nav-toggle { display: none; }
@media (max-width: 960px){
  .nav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 14px 24px 22px; margin: 0;
    transform: translateY(-130%); transition: transform .28s ease; box-shadow: var(--shadow); }
  .nav.open { transform: translateY(0); }
  .nav a { padding: 13px; font-size: 1.05rem; }
  .nav-toggle { display: inline-flex; }
  .header-desktop-cta { display: none; }
}

/* ============================================================
   Hero
   ============================================================ */
.hero { position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
@media (max-width: 940px){ .hero-grid { grid-template-columns: 1fr; gap: 36px; } }
.hero h1 { margin-top: 16px; }
.hero .lead { margin-top: 18px; max-width: 30em; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; }
.hero-trust { margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--line); }

/* Hero spotlight card (#1 pick) */
.spotlight { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--shadow-lg); padding: 8px; }
.spotlight__top { background: var(--navy-deep); border-radius: 18px; padding: 22px 24px; color: #fff; display: flex; align-items: center; gap: 18px; }
.spotlight__top .badge--award { background: var(--gold); color: var(--navy-deep); }
.spotlight__body { padding: 22px 18px 12px; }
.spotlight__row { display: flex; align-items: center; gap: 14px; }
.spotlight ul { display: grid; gap: 9px; margin: 16px 0; }
.spotlight li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; font-size: 0.95rem; color: var(--ink-2); }
.spotlight li svg { width: 17px; height: 17px; color: var(--cta); margin-top: 3px; }

/* ============================================================
   Category grid
   ============================================================ */
.cat-card { display: flex; flex-direction: column; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); transition: transform .18s, box-shadow .2s, border-color .2s; }
.cat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.cat-ic { width: 46px; height: 46px; border-radius: var(--r); background: var(--navy-tint); color: var(--navy); display: flex; align-items: center; justify-content: center; }
.cat-ic svg { width: 24px; height: 24px; }
.cat-card h4 { font-family: var(--font-body); font-weight: 800; }
.cat-card .cat-meta { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ink-3); margin-top: auto; }
.cat-card .cat-go { font-weight: 700; color: var(--navy); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; }

/* ============================================================
   Article / guide
   ============================================================ */
.article-body { font-size: 1.12rem; line-height: 1.78; color: #25323f; }
.article-body > * + * { margin-top: 1.35em; }
.article-body h2 { margin-top: 1.8em; }
.article-body h3 { margin-top: 1.4em; }
.article-body p > a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); font-weight: 600; }
.article-body p > a:hover { text-decoration-color: var(--navy); }
.article-body ul.bullets { display: grid; gap: 10px; }
.article-body ul.bullets li { display: block; position: relative; padding-left: 24px; margin: 0; }
.article-body ul.bullets li::before { content: ""; position: absolute; left: 2px; top: 0.66em; width: 8px; height: 8px; border-radius: 50%; background: var(--cta); }
.article-body blockquote {
  border-left: 4px solid var(--gold); padding: 4px 0 4px 24px; margin-block: 1.6em;
  font-family: var(--font-display); font-size: 1.45rem; line-height: 1.4; color: var(--ink); font-style: italic;
}
.figure { margin-block: 2em; }
.figure figcaption { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-3); margin-top: 10px; text-align: center; }

/* Inline CTA box inside article */
.inline-cta {
  display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center;
  background: var(--surface); border: 1px solid var(--line-2); border-left: 4px solid var(--cta);
  border-radius: var(--r-lg); padding: 22px 24px; box-shadow: var(--shadow-sm); margin-block: 2em;
}
.inline-cta .ic-score { flex: none; }
.inline-cta h4 { margin: 0; font-family: var(--font-body); font-weight: 800; }
.inline-cta p { font-size: 0.92rem; color: var(--ink-2); margin-top: 3px; }
@media (max-width: 620px){ .inline-cta { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* TOC */
.toc { position: sticky; top: 90px; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 22px; background: var(--surface); }
.toc h4 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; font-weight: 600; }
.toc a { display: block; padding: 7px 12px; border-radius: var(--r-sm); font-size: 0.92rem; color: var(--ink-2); border-left: 2px solid transparent; }
.toc a:hover { background: var(--paper-2); color: var(--ink); }
.toc a.active { color: var(--navy); font-weight: 700; border-left-color: var(--cta); background: var(--navy-tint); }

/* Breadcrumb + meta */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-3); letter-spacing: .02em; }
.breadcrumb a:hover { color: var(--navy); }
.breadcrumb .sep { opacity: .5; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-size: 0.86rem; color: var(--ink-2); }
.post-meta .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--line-2); }
.post-meta b { color: var(--ink); }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; text-align: left; padding: 20px 22px; background: none; border: 0; font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.faq-q .chev { flex: none; transition: transform .22s ease; color: var(--ink-3); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--ink-2); }

/* ============================================================
   Disclosure / sticky CTA / footer
   ============================================================ */
.disclosure {
  font-size: 0.82rem; color: var(--ink-2); background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px;
  display: flex; gap: 12px; align-items: flex-start;
}
.disclosure svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; margin-top: 2px; }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: rgba(14,34,51,.97); backdrop-filter: blur(8px); color: #fff;
  border-top: 1px solid rgba(255,255,255,.12);
  transform: translateY(110%); transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.sticky-cta.show { transform: translateY(0); }
.sticky-cta .container { display: flex; align-items: center; gap: 18px; padding-block: 12px; }
.sticky-cta .sc-info { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sticky-cta .sc-title { font-weight: 800; white-space: nowrap; }
.sticky-cta .sc-sub { font-size: 0.82rem; color: #aab9c8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 52ch; }
.sticky-cta .sc-info .badge { white-space: nowrap; flex: none; }
.sticky-cta .sc-actions .btn { white-space: nowrap; }
.sticky-cta .sc-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
/* Progressive slimming: the bar must never overlap its own text. */
@media (max-width: 1100px){ .sticky-cta [data-sticky-close] { display: none; } .sticky-cta .sc-info .badge { display: none; } }
@media (max-width: 860px){ .sticky-cta .sc-sub { display: none; } .sticky-cta .sc-title { max-width: 38vw; overflow: hidden; text-overflow: ellipsis; } }
@media (max-width: 640px){ .sticky-cta .container { padding-inline: 16px; gap: 12px; } .sticky-cta .sc-title { max-width: 34vw; } .sticky-cta .sc-actions .btn { padding: .65em 1em; font-size: .9rem; } }

.site-footer { background: var(--navy-deep); color: #aebccb; padding-block: 56px 28px; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px; }
@media (max-width: 760px){ .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; } }
.site-footer .brand { color: #fff; }
.footer-col h5 { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: .12em; text-transform: uppercase; color: #7e90a2; margin-bottom: 14px; font-weight: 600; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { font-size: 0.92rem; }
.footer-bottom { margin-top: 40px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.8rem; color: #7e90a2; }

/* ---------- utility ---------- */
.flex { display: flex; }
.items-center { align-items: center; }
.gap-sm { gap: 8px; } .gap { gap: 16px; } .gap-lg { gap: 28px; }
.wrap { flex-wrap: wrap; }
.mt-0{margin-top:0}.mt-1{margin-top:8px}.mt-2{margin-top:16px}.mt-3{margin-top:24px}.mt-4{margin-top:36px}
.mb-2{margin-bottom:16px}.mb-3{margin-bottom:24px}
.hidden { display: none; }

/* NOTE: no opacity/transform entrance animations on content — this preview
   environment can freeze CSS animations/transitions at frame 0, which would
   leave from-state (opacity:0) content permanently hidden. Content is visible
   at rest. Bars get their final width set as an inline style (not animation-gated). */
.bar-fill { transition: width 1s cubic-bezier(.2,.8,.2,1); }

@media (prefers-reduced-motion: reduce){
  * { scroll-behavior: auto !important; transition: none !important; }
}

/* ============================================================
   WordPress-native content (.entry-content)
   Bare semantic elements are styled directly, so anything the
   CMS outputs (lists, tables, images, quotes, headings) renders
   correctly with NO extra classes or markup changes.
   ============================================================ */
.entry-content { font-size: 1.12rem; line-height: 1.78; color: #25323f; overflow-wrap: break-word; }
.entry-content > * + * { margin-top: 1.3em; }
.entry-content h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 1.7em; }
.entry-content h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-top: 1.4em; }
.entry-content h4 { font-size: 1.12rem; margin-top: 1.2em; }
.entry-content p { margin: 1.05em 0; }
.entry-content p:first-child { margin-top: 0; }
.entry-content p:last-child { margin-bottom: 0; }
.entry-content a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); font-weight: 600; }
.entry-content a:hover { text-decoration-color: var(--navy); }
.entry-content strong, .entry-content b { font-weight: 700; color: var(--ink); }

/* Native lists — proper markers, no class needed */
.entry-content ul, .entry-content ol { padding-left: 1.4em; display: block; }
.entry-content ul { list-style: disc; }
.entry-content ul li::marker { color: var(--cta); }
.entry-content ol { list-style: decimal; }
.entry-content ol li::marker { color: var(--navy); font-family: var(--font-mono); font-weight: 600; }
.entry-content li { margin: 0.5em 0; padding-left: 0.3em; }
.entry-content li > ul, .entry-content li > ol { margin-top: 0.5em; }

/* Enhanced "check" list when the editor adds class="bullets" / .ticks */
.entry-content ul.bullets, .entry-content ul.ticks { list-style: none; padding-left: 0; display: grid; gap: 12px; }
.entry-content ul.bullets li { display: block; position: relative; padding-left: 26px; margin: 0; }
.entry-content ul.bullets li::before { content: ""; position: absolute; left: 2px; top: 0.66em; width: 9px; height: 9px; border-radius: 50%; background: var(--cta); }

.entry-content blockquote {
  border-left: 4px solid var(--gold); padding: 4px 0 4px 24px; margin-block: 1.5em;
  font-family: var(--font-display); font-size: 1.4rem; line-height: 1.4; color: var(--ink); font-style: italic;
}
.entry-content blockquote cite { display: block; font-size: 0.92rem; font-style: normal; color: var(--ink-2); margin-top: 10px; font-family: var(--font-body); }

/* Images & figures (wp-block-image, alignwide, etc.) */
.entry-content img { max-width: 100%; height: auto; border-radius: var(--r); }
.entry-content figure { margin: 1.8em 0; }
.entry-content figure.wp-block-image { text-align: center; }
.entry-content figure.wp-block-image img { max-width: 100%; }
.entry-content figure.wp-block-image.size-full img, .entry-content figure.wp-block-image.alignwide img, .entry-content figure.wp-block-image.alignfull img { width: 100%; }
.entry-content figcaption, .entry-content .wp-element-caption { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-3); margin-top: 10px; text-align: center; }
.entry-content .alignwide { width: min(100% + 120px, 100vw - 48px); margin-inline: calc(50% - min(50% + 60px, 50vw - 24px)); }
.entry-content .alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); border-radius: 0; }
.entry-content .alignleft { float: left; margin: 0.3em 1.6em 1em 0; max-width: 50%; }
.entry-content .alignright { float: right; margin: 0.3em 0 1em 1.6em; max-width: 50%; }
.entry-content .aligncenter { margin-inline: auto; }

/* Native tables — bare <table> styled; wrap wide ones in .table-scroll or use
   Gutenberg <figure class="wp-block-table"> for horizontal scroll. */
.entry-content figure.wp-block-table, .table-scroll {
  display: block; width: 100%; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
  box-shadow: var(--shadow-sm); margin-block: 1.6em;
}
.entry-content figure.wp-block-table > table, .table-scroll > table { margin: 0; border: 0; border-radius: 0; box-shadow: none; min-width: max-content; }
.entry-content table {
  width: 100%; border-collapse: collapse; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); margin-block: 1.6em;
}
.entry-content th, .entry-content td {
  padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line);
  vertical-align: top; font-size: 0.98rem; line-height: 1.5;
}
/* Kill WordPress core block-library vertical/box borders on content tables
   (prototype never loaded wp-block-library; higher specificity wins regardless of order). */
.entry-content table th, .entry-content table td,
.entry-content figure.wp-block-table th, .entry-content figure.wp-block-table td {
  border-top: 0; border-left: 0; border-right: 0;
}
.entry-content figure.wp-block-table { border-color: var(--line); }
.entry-content figure.wp-block-table table { border-collapse: collapse; }
.entry-content td { max-width: 420px; }
.entry-content thead th { background: var(--navy-deep); color: #fff; font-weight: 700; white-space: normal; vertical-align: bottom; }
.entry-content tbody tr:nth-child(even) { background: var(--paper-2); }
.entry-content tbody tr:hover { background: var(--navy-tint); }
.entry-content tbody td:first-child, .entry-content tbody th:first-child { font-weight: 700; color: var(--ink); }
.entry-content code, .entry-content kbd { font-family: var(--font-mono); font-size: 0.88em; background: var(--paper-2); padding: 0.12em 0.4em; border-radius: 5px; }
.entry-content hr { border: 0; border-top: 1px solid var(--line); margin-block: 2em; }
.entry-content :first-child { margin-top: 0; }

/* ---------- Gutenberg blocks ---------- */
/* Text alignment utilities */
.entry-content .has-text-align-center { text-align: center; }
.entry-content .has-text-align-right { text-align: right; }
.entry-content .has-text-align-left { text-align: left; }
/* Buttons block */
.entry-content .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 1.4em; list-style: none; padding: 0; }
.entry-content .wp-block-button { margin: 0; }
.entry-content .wp-block-button__link {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.98rem; line-height: 1; text-decoration: none;
  padding: 0.85em 1.4em; border-radius: var(--r); background: var(--cta); color: #fff;
  border: 1.5px solid transparent; transition: filter .18s, transform .14s;
}
.entry-content .wp-block-button__link:hover { filter: brightness(1.05); transform: translateY(-1px); text-decoration: none; }
.entry-content .wp-block-button.is-style-outline .wp-block-button__link, .entry-content .is-style-outline .wp-block-button__link {
  background: transparent; color: var(--navy); border-color: var(--line-2);
}
/* Columns block */
.entry-content .wp-block-columns { display: flex; flex-wrap: wrap; gap: 28px; margin-block: 1.6em; align-items: flex-start; }
.entry-content .wp-block-column { flex: 1 1 0; min-width: 220px; }
.entry-content .wp-block-column > :first-child { margin-top: 0; }
@media (max-width: 600px){ .entry-content .wp-block-column { flex-basis: 100%; } }
/* Group / media-text */
.entry-content .wp-block-group > :first-child { margin-top: 0; }
.entry-content .wp-block-media-text { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: center; margin-block: 1.6em; }
.entry-content .wp-block-media-text__content > :first-child { margin-top: 0; }
@media (max-width: 600px){ .entry-content .wp-block-media-text { grid-template-columns: 1fr; } }
/* Code / preformatted */
.entry-content pre, .entry-content .wp-block-code, .entry-content .wp-block-preformatted {
  font-family: var(--font-mono); font-size: 0.9rem; line-height: 1.6; background: var(--navy-deep); color: #e9eef3;
  padding: 18px 20px; border-radius: var(--r); overflow-x: auto; margin-block: 1.5em;
}
.entry-content pre code, .entry-content .wp-block-code code { background: none; padding: 0; color: inherit; }
/* Pullquote */
.entry-content .wp-block-pullquote { border: 0; border-top: 3px solid var(--gold); border-bottom: 3px solid var(--gold); padding: 28px 0; margin-block: 2em; text-align: center; }
.entry-content .wp-block-pullquote blockquote, .entry-content .wp-block-pullquote p { border: 0; padding: 0; font-family: var(--font-display); font-size: 1.7rem; line-height: 1.3; font-style: italic; color: var(--ink); }
.entry-content .wp-block-pullquote cite { display: block; margin-top: 14px; font-family: var(--font-mono); font-size: 0.78rem; font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
/* Verse, definition list, mark, sub/sup */
.entry-content .wp-block-verse { font-family: var(--font-display); white-space: pre-wrap; }
.entry-content dl { margin-block: 1.2em; }
.entry-content dt { font-weight: 700; color: var(--ink); }
.entry-content dd { margin: 0 0 0.8em; color: var(--ink-2); }
.entry-content mark, .entry-content .has-inline-color { background: var(--gold-tint); padding: 0.05em 0.25em; border-radius: 4px; }
.entry-content small { font-size: 0.82em; color: var(--ink-2); }
/* Embeds & video */
.entry-content .wp-block-embed, .entry-content .wp-block-video { margin-block: 1.8em; }
.entry-content .wp-block-embed__wrapper, .entry-content iframe, .entry-content video { max-width: 100%; border-radius: var(--r); }
.entry-content .wp-block-separator { max-width: 100px; margin-inline: auto; border-top-width: 2px; }
.entry-content .wp-block-separator.is-style-wide { max-width: 100%; }
/* Caption block, list-style none variants */
.entry-content .wp-block-list.is-style-none, .entry-content ul.is-style-none { list-style: none; padding-left: 0; }

/* Guard: component lists inside content keep custom layout, not disc markers */
.entry-content :is(.pc-col, .verdict, .inline-cta) ul { list-style: none; padding-left: 0; }
.entry-content .pc-col li { padding-left: 0; }
.entry-content .pc-col li::marker { content: none; }
/* Buttons inside content must not get link underline / link color */
.entry-content a.btn { text-decoration: none; color: var(--fg); }
.entry-content a.btn:hover { text-decoration: none; }
/* Clickable brand name + logo */
.brand-link { display: inline-flex; align-items: center; gap: 14px; color: inherit; min-width: 0; }
.brand-link h3, .brand-link h4, .brand-link .bl-name { transition: color .15s; }
.brand-link:hover .bl-name, .brand-link:hover h3, .brand-link:hover h4 { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }

/* scroll hint for wide tables */
.table-scroll { position: relative; }

/* ============================================================
   Forms
   ============================================================ */
.field { display: block; margin-bottom: 18px; }
.field > label { display: block; font-weight: 700; font-size: 0.92rem; margin-bottom: 7px; color: var(--ink); }
.field .hint { font-weight: 400; color: var(--ink-3); font-size: 0.82rem; }
.input, .textarea, .select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--surface); border: 1.5px solid var(--line-2); border-radius: var(--r);
  padding: 0.78em 0.95em; transition: border-color .15s, box-shadow .15s;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-tint); }
.textarea { min-height: 140px; resize: vertical; line-height: 1.6; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2351606e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px; }
.check { display: grid; grid-template-columns: 22px 1fr; gap: 12px; align-items: start; font-size: 0.9rem; color: var(--ink-2); }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--cta); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px){ .field-row { grid-template-columns: 1fr; } }

/* ============================================================
   Brand logo tiles (image-slot in prototype, <img class="brand-logo"> in prod)
   ============================================================ */
.brand-logo, image-slot.brand-logo {
  flex: none; border-radius: 12px; object-fit: contain; vertical-align: top;
}
image-slot.brand-logo { background: transparent; border: 0; }
img.brand-logo { width: 48px; height: 48px; padding: 0; background: var(--surface); border: 1px solid var(--line); }

/* ============================================================
   Nav dropdowns
   ============================================================ */
.nav-item { position: relative; display: flex; align-items: center; }
.nav-item > a { display: inline-flex; align-items: center; gap: 5px; }
.nav-caret { width: 14px; height: 14px; transition: transform .2s; opacity: .6; }
.nav-item:hover .nav-caret, .nav-item:focus-within .nav-caret { transform: rotate(180deg); }
.nav-menu {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 8px; display: grid; gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .16s, transform .16s, visibility .16s;
  z-index: 60;
}
.nav-item:hover .nav-menu, .nav-item:focus-within .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu a { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: var(--r-sm); }
.nav-menu a:hover { background: var(--paper-2); }
.nav-menu a b { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.nav-menu a span { font-size: 0.8rem; color: var(--ink-3); }
.nav-menu .nav-menu-all { color: var(--navy); font-weight: 700; font-size: 0.86rem; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 12px; }
@media (max-width: 960px){
  .nav-item { flex-direction: column; align-items: stretch; }
  .nav-item > a { justify-content: space-between; }
  .nav-caret { display: inline-block; opacity: .55; }
  .nav-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none;
    border: 0; border-left: 2px solid var(--line); border-radius: 0; margin: 0 0 4px 14px; padding: 0;
    min-width: 0; display: grid; max-height: 0; overflow: hidden; transition: max-height .3s ease; }
  .nav-item.open > .nav-menu { max-height: 640px; padding: 4px 0; }
  .nav-menu a { padding: 10px 12px; }
  .nav-menu a span { display: none; }
  .nav-item.open .nav-caret { transform: rotate(180deg); }
}

/* ============================================================
   Step list (numbered criteria) — title aligned to number
   ============================================================ */
.step { padding: 20px 0; border-top: 1px solid var(--line); }
.step:first-child { border-top: 0; padding-top: 0; }
.step-head { display: flex; align-items: center; gap: 16px; }
.step-n {
  font-family: var(--font-display); font-weight: 600; font-size: 1.5rem; color: var(--navy);
  width: 46px; height: 46px; flex: none; border-radius: var(--r); background: var(--navy-tint);
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.step-head h3 { font-family: var(--font-body); font-weight: 800; font-size: 1.15rem; margin: 0; }
.step-body { margin-top: 10px; padding-left: 62px; color: var(--ink-2); }
@media (max-width: 520px){ .step-body { padding-left: 0; } }

/* ============================================================
   Expandable rank-card detail
   ============================================================ */
.rank-more { border-top: 1px solid var(--line); }
.rank-more-toggle {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px; background: var(--paper-2); border: 0; font-family: var(--font-body);
  font-weight: 700; font-size: 0.9rem; color: var(--navy); cursor: pointer;
}
.rank-more-toggle:hover { background: var(--navy-tint); }
.rank-more-toggle .chev { width: 16px; height: 16px; transition: transform .25s; }
.rank-more.open .rank-more-toggle .chev { transform: rotate(180deg); }
.rank-more-panel { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.rank-more-panel-inner { padding: 24px 26px 28px; border-top: 1px solid var(--line); }
.rank-more-toggle .label-more { display: inline; }
.rank-more-toggle .label-less { display: none; }
.rank-more.open .label-more { display: none; }
.rank-more.open .label-less { display: inline; }

/* ============================================================
   WERDYKT — WordPress additions (logo placeholder, header search,
   two-column content layout deduped from prototype inline styles)
   ============================================================ */

/* Brand logo placeholder seal (when no ACF logo set) */
.brand-logo--ph {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display, Newsreader, Georgia, serif);
  font-weight: 600;
  font-size: 1.1em;
  line-height: 1;
  flex: none;
}

/* Header search panel */
.header-search { border-top: 1px solid var(--line); background: var(--surface); }
.header-search .container { padding-top: 14px; padding-bottom: 14px; }
.header-search form { display: flex; gap: 10px; max-width: 560px; }
.header-search input[type="search"] {
  flex: 1; padding: .8em 1em; border-radius: var(--r);
  border: 1.5px solid var(--line-2); background: var(--paper); font: inherit; color: var(--ink);
}

/* Two-column content layout (article + sticky TOC) — was inline in recenzja.html */
.review-layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 48px; align-items: start; }
.review-layout > article { width: 100%; max-width: 700px; margin-inline: auto; }
.review-layout > aside { align-self: stretch; }
@media (max-width: 900px) {
  .review-layout { grid-template-columns: minmax(0, 1fr); }
  .review-layout aside { display: none; }
}

/* Quick facts grid — was inline in recenzja.html */
.quick-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.quick-facts div { background: var(--surface); padding: 14px 16px; }
.quick-facts .qf-k { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.quick-facts .qf-v { font-weight: 800; margin-top: 3px; }

/* Review/compare hero grid — was inline in recenzja.html / porownanie.html */
.review-hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
@media (max-width: 840px) { .review-hero-grid { grid-template-columns: 1fr; gap: 28px; } }

/* WP pagination */
.pagination, .nav-links { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.pagination .page-numbers, .nav-links .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding: 0 12px; border-radius: var(--r);
  border: 1.5px solid var(--line-2); color: var(--ink-2); text-decoration: none; font-weight: 700;
}
.pagination .page-numbers.current { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Footer menus rendered via wp_nav_menu (ul) keep prototype look */
.footer-col ul { list-style: none; margin: 0; padding: 0; }

/* About-page team cards (page-o-nas.php) */
.team-card { text-align: center; }
.team-card .author__avatar { margin: 0 auto 12px; width: 56px; height: 56px; font-size: 1.05rem; }
.team-card h4 { margin: 0; }
.values-grid .cat-card { cursor: default; }

/* Contact page layout */
.contact-grid { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 28px; align-items: start; }
@media (max-width: 760px) { .contact-grid { grid-template-columns: 1fr; } }

/* Contact Form 7 — match the theme, never overflow */
.wpcf7-form p { margin: 0 0 16px; }
.wpcf7-form label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form textarea,
.wpcf7-form select {
  display: block; width: 100%; max-width: 100%; box-sizing: border-box;
  padding: 0.85em 1em; margin-top: 4px;
  border: 1.5px solid var(--line-2); border-radius: var(--r);
  background: var(--paper); color: var(--ink); font: inherit; line-height: 1.5;
}
.wpcf7-form textarea { min-height: 150px; resize: vertical; }
.wpcf7-form input:focus, .wpcf7-form textarea:focus, .wpcf7-form select:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-tint);
}
.wpcf7-form .wpcf7-submit {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-body); font-weight: 700; font-size: 1rem; line-height: 1;
  padding: 0.95em 1.6em; border-radius: var(--r); border: 1.5px solid transparent;
  background: var(--cta); color: #fff; cursor: pointer;
  box-shadow: 0 8px 20px -8px oklch(0.585 0.135 152 / .7); width: auto; margin-top: 4px;
  transition: filter .18s, transform .14s;
}
.wpcf7-form .wpcf7-submit:hover { filter: brightness(1.05); transform: translateY(-1px); }
.wpcf7-form .wpcf7-spinner { margin: 0 0 0 10px; }
.wpcf7-form .wpcf7-not-valid-tip { color: var(--rose); font-size: .85rem; margin-top: 4px; }
.wpcf7-form .wpcf7-response-output {
  margin: 14px 0 0; padding: 12px 16px; border-radius: var(--r);
  border: 1.5px solid var(--line-2); font-size: .92rem;
}
.wpcf7-form.invalid .wpcf7-response-output { border-color: var(--rose); background: var(--rose-tint); }
.wpcf7-form.sent .wpcf7-response-output { border-color: var(--cta); background: var(--cta-tint); }

/* Search form (search.php results + header search panel) */
.werdykt-searchform { display: flex; gap: 10px; max-width: 560px; flex-wrap: wrap; align-items: stretch; }
.werdykt-searchform input[type="search"] {
  flex: 1; min-width: 220px; padding: .85em 1.1em;
  border: 1.5px solid var(--line-2); border-radius: var(--r);
  background: var(--surface); color: var(--ink); font: inherit; line-height: 1.4;
}
.werdykt-searchform input[type="search"]::placeholder { color: var(--ink-3); }
.werdykt-searchform input[type="search"]:focus {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-tint);
}
.werdykt-searchform .btn { flex: none; }

/* ============================================================
   Versus (porownanie 1:1) — z prototypu porownanie.html
   ============================================================ */
.versus { display: grid; grid-template-columns: 1fr 64px 1fr; gap: 0; align-items: stretch; }
@media (max-width: 760px) { .versus { grid-template-columns: 1fr; gap: 14px; } .versus .vs-badge { order: -1; margin: 0 auto; } }
.vs-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; text-align: center; box-shadow: var(--shadow-sm); }
.vs-card.is-winner { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-tint), var(--shadow); }
.vs-badge { display: flex; align-items: center; justify-content: center; }
.vs-badge span { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink-3); width: 54px; height: 54px; border-radius: 50%; background: var(--paper); border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; }
.use-case { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
@media (max-width: 620px) { .use-case { grid-template-columns: 1fr; text-align: center; justify-items: center; } }

/* Article layout (poradnik) — z prototypu poradnik.html */
.article-layout { display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 48px; align-items: start; }
.article-layout > article { width: 100%; max-width: 700px; margin-inline: auto; }
.article-layout > aside { align-self: stretch; }
@media (max-width: 900px) { .article-layout { grid-template-columns: minmax(0,1fr); } .article-layout aside { display: none; } }

/* Wyrozniony poradnik (archiwum) — z prototypu poradniki.html */
.poradnik-feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; overflow: hidden; padding: 0; margin-bottom: 24px; }
.poradnik-feature .pf-img { border: 0; border-radius: 0; min-height: 300px; }
.poradnik-feature .pf-body { padding: 36px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 720px) {
  .poradnik-feature { grid-template-columns: 1fr; }
  .poradnik-feature .pf-img { min-height: 0; aspect-ratio: 16/9; }
  .poradnik-feature .pf-body { padding: 24px; }
}
