/* ===================================================================
   seo-pages.css — shared brand stylesheet for static SEO pages
   Tokens reused from web/index.html (no invented values).
   =================================================================== */

/* ----- RESET & BASE ----- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: #f0f2f5;
  color: #1a1a1a;
  line-height: 1.6;
  /* prevent horizontal overflow */
  overflow-x: hidden;
}

/* ----- TYPOGRAPHY ----- */
h1 {
  font-size: clamp(1.4rem, 5vw, 1.9rem);
  color: #1a1a1a;
  margin: 0 0 12px;
  line-height: 1.25;
}

h2 {
  font-size: 1.1rem;
  color: #0f172a;
  margin: 28px 0 8px;
  line-height: 1.35;
}

h3 {
  font-size: 1rem;
  color: #0f172a;
  margin: 20px 0 6px;
}

p, li {
  font-size: .95rem;
  color: #334155;
}

a { color: #2563eb; }
a:hover { text-decoration: underline; }

ul, ol { padding-left: 22px; }
li { margin-bottom: 4px; }

strong { color: #0f172a; }

/* ----- HEADER ----- */
.seo-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 48px;
  background: #f0f2f5;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  padding: 0 16px;
}

.seo-header { justify-content: space-between; }

.seo-brand { font-size: 0.82rem; font-weight: 600; color: #2563eb; text-decoration: none; letter-spacing: 0.01em; }
.seo-brand:hover { text-decoration: underline; }

.seo-header-cta { display: inline-block; padding: 7px 14px; font-size: 0.85rem; font-weight: 600; border-radius: 8px; background: #2563eb; color: #fff; text-decoration: none; white-space: nowrap; }
.seo-header-cta:hover { background: #1d4ed8; color: #fff; text-decoration: none; }
/* Para CTA w nagłówku (strony gorącej listy): koralowy „Cennik" (Premium = koral) przed niebieskim
   „Ćwicz za darmo". Na wąskim telefonie ciaśniejsze paddingi, żeby marka + dwa przyciski zmieściły się
   w jednym rzędzie bez zawijania. */
.seo-header-actions { display: flex; align-items: center; gap: 8px; }
.seo-header-cta.seo-header-cta-premium { background: #ff5f5f; }
.seo-header-cta.seo-header-cta-premium:hover, .seo-header-cta.seo-header-cta-premium:focus-visible { background: #ef4444; }
@media (max-width: 400px) {
  .seo-header-actions { gap: 6px; }
  .seo-header-actions .seo-header-cta { padding: 7px 10px; }
}

/* ----- PAGE WRAPPER ----- */
.seo-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 16px 72px;
}

@media (min-width: 480px) {
  .seo-wrap { padding-left: 24px; padding-right: 24px; }
}

/* Szerokość jak ekran setupu nauki (#screen-setup/#screen-setup-wiedza): 800px, a od 1024px — 900px. */
@media (min-width: 1024px) {
  .seo-wrap { max-width: 900px; }
}

/* ----- BREADCRUMB ----- */
.breadcrumb {
  font-size: .85rem;
  color: #64748b;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: #64748b;
  text-decoration: none;
}

.breadcrumb a:hover { text-decoration: underline; }

.breadcrumb span { margin: 0 6px; }

/* ----- EYEBROW CHIP ----- */
.eyebrow {
  display: inline-block;
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 4px;
  padding: 3px 8px;
  margin-bottom: 10px;
}

/* ----- CARD ----- */
.seo-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  padding: 20px 24px;
  margin-bottom: 16px;
}

.seo-card h2:first-child,
.seo-card h3:first-child {
  margin-top: 0;
}

/* Karta z kotwicą (#zdawalnosc, #akty-rok-po-roku, ...) - header jest sticky na 48 px,
   więc bez tego skok z linku wsuwa nagłówek pod pasek. */
.seo-card[id] {
  scroll-margin-top: 64px;
}

/* ----- STEP CARD variant ----- */
.seo-card.step-card {
  border-left: 3px solid #2563eb;
  border-radius: 0 14px 14px 0;
}

/* step number badge */
.step-num {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 4px;
  margin-bottom: 8px;
  letter-spacing: .03em;
}

/* ----- CALLOUT ----- */
.callout {
  background: #f0fdf4;
  border-left: 3px solid #16a34a;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: .9rem;
  color: #14532d;
}

/* ----- BLOCKQUOTE (pull-quote / cytat) ----- */
blockquote {
  background: #f8fafc;
  border-left: 3px solid #94a3b8;
  padding: 14px 18px;
  margin: 16px 0;
  border-radius: 0 8px 8px 0;
  font-size: .93rem;
  font-style: italic;
  color: #475569;
}
blockquote strong { color: #1e293b; font-style: normal; }

/* ----- WARNING ----- */
.warning {
  background: #fef9c3;
  border-left: 3px solid #ca8a04;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  font-size: .9rem;
  color: #78350f;
}

/* ----- FACT LIST (terminy page) ----- */
.fact-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}

.fact-list li {
  padding: 10px 14px;
  margin-bottom: 8px;
  background: #f8fafc;
  border-left: 3px solid #2563eb;
  border-radius: 0 6px 6px 0;
  font-size: .95rem;
}

.fact-list li strong { color: #0f172a; }

.fact-list li .label {
  display: block;
  font-size: .78rem;
  color: #64748b;
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

/* ----- ACTS LIST ----- */
.act-list {
  padding-left: 24px;
  margin: 12px 0 0;
}

.act-list li {
  padding: 6px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: .93rem;
  color: #334155;
}

.act-list li:last-child { border-bottom: none; }

.new-badge {
  display: inline-block;
  background: #dcfce7;
  color: #166534;
  font-size: .72rem;
  font-weight: 600;
  padding: 1px 7px;
  border-radius: 10px;
  margin-left: 8px;
  vertical-align: middle;
}

/* ----- FAQ ITEMS ----- */
.faq-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.faq-item h2 {
  margin: 0;
  padding: 14px 18px;
  font-size: 1rem;
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  cursor: default;
}

.faq-answer {
  padding: 0 18px 14px;
}

.faq-answer p { margin: 10px 0 0; }

/* ----- TEASER BLOCK ----- */
.teaser-block {
  background: #eff6ff;
  border-left: 4px solid #2563eb;
  border-radius: 0 10px 10px 0;
  padding: 18px 22px;
}

.teaser-block p { margin: 0 0 12px; color: #0f172a; font-size: .95rem; }
.teaser-block p:last-child { margin-bottom: 0; }

/* ----- SEE-ALSO CARD ----- */
.see-also {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
  padding: 18px 22px;
  margin: 24px 0;
}

.see-also h2 {
  margin-top: 0;
  font-size: .95rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
}

.see-also ul { margin: 8px 0 0; }
.see-also li { margin-bottom: 6px; }

/* ----- SOURCE NOTE ----- */
.source-note {
  font-size: .8rem;
  color: #94a3b8;
  margin-top: 10px;
}

/* ----- CTA BUTTON ----- */
.seo-cta {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  padding: 13px 28px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  transition: background .15s;
}

.seo-cta:hover { background: #1d4ed8; color: #fff; text-decoration: none; }

.cta-btn {
  display: inline-block;
  background: #2563eb;
  color: #fff;
  text-decoration: none;
  padding: 11px 24px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
}

.cta-btn:hover { background: #1d4ed8; color: #fff; text-decoration: none; }

.cta-block {
  margin: 32px 0;
  text-align: center;
}

.cta-note {
  font-size: .85rem;
  color: #64748b;
  margin-top: 8px;
}

/* ----- FOOTER ----- */
.seo-footer {
  border-top: 1px solid #e5e7eb;
  margin-top: 40px;
  padding: 16px 16px 28px;
  text-align: center;
  font-size: .83rem;
  color: #94a3b8;
  line-height: 1.9;
}

.seo-footer a {
  color: #64748b;
  text-decoration: none;
}

.seo-footer a:hover { text-decoration: underline; }

/* separator dots */
.seo-footer > *:not(:first-child)::before {
  content: " · ";
  color: #cbd5e1;
}

/* ----- BACKGROUND ILLUSTRATION ----- */
/* Mobile: subtle bottom decoration in document flow */
.bg-illustration {
  pointer-events: none;
  user-select: none;
  margin-top: 32px;
  width: 100%;
  overflow: hidden;
}

.bg-illustration img {
  display: block;
  width: 100%;
  height: auto;
  opacity: .5;
  mix-blend-mode: multiply;
}

/* Desktop: fixed, centered at bottom, behind content */
@media (min-width: 768px) {
  .seo-wrap { padding-bottom: min(38vh, 320px); }

  .bg-illustration {
    position: fixed;
    bottom: var(--footer-push, 0px);
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    width: auto;
    z-index: -1;
    background: transparent;
  }

  .bg-illustration img {
    max-height: min(38vh, 320px);
    width: auto;
    height: auto;
  }
}

/* Tabela „Ile pytań z każdego aktu - rok po roku" na stronach *-statystyki.
   Generuje ją tools/aplikacje/build-seo-akty-roczniki.py; styl siedzi tutaj, bo przy 45
   wierszach x 13 kolumn inline'owe atrybuty style to ~30 KB powtórzonego tekstu na stronę. */
.ar-scroll {
  overflow-x: auto;
  margin-top: 16px;
}

.ar-t {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82em;
}

.ar-t th,
.ar-t td {
  padding: 6px 8px;
  text-align: right;
  white-space: nowrap;
}

.ar-t th:first-child,
.ar-t td:first-child {
  text-align: left;
  white-space: normal;
  min-width: 15em;
}

.ar-t thead tr { border-bottom: 2px solid #e5e7eb; }
.ar-t tbody tr { border-bottom: 1px solid #f3f4f6; }
.ar-t tbody tr:nth-child(even) { background: #fafafa; }
.ar-t tbody tr:last-child { border-bottom: 0; }
.ar-t .ar-sum { font-weight: 600; }
.ar-t .ar-dim { color: #6b7280; }

/* ── Wejście do zakupu na stronach o egzaminie na urzędnika mianowanego ──────────────────────
   Koral to kolor Premium w całym produkcie (niebieski znaczy konto i wersję darmową), więc cały
   blok jest koralowy, a nie tylko przycisk. Pełna szerokość kontenera, bo to jedna decyzja,
   a nie przypis na marginesie.
   Markup wstrzykuje web/ksap-oferta.js; przy wyłączonej sprzedaży te klasy nie mają czego ubrać. */
.ksap-oferta-box { width: 100%; box-sizing: border-box; margin: 26px 0 30px; padding: 20px 22px;
  background: #fff1f2; border: 1px solid #fecdd3; border-radius: 16px;
  box-shadow: 0 3px 12px rgba(0,0,0,.08); text-align: center; }
.ksap-oferta-eyebrow { margin: 0 0 6px; font-size: 0.72rem; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: #ff5f5f; }
.ksap-oferta-head { margin: 0 0 0.9rem; font-size: 1.1rem; font-weight: 700; color: #c53030; line-height: 1.35; }
.ksap-oferta-lead { margin: 0 0 16px; font-size: 0.95rem; color: #7f1d1d; line-height: 1.55; }
.ksap-oferta-lista { margin: 0 0 16px; padding: 0; list-style: none; }
.ksap-oferta-lista li { font-size: 0.92rem; color: #7f1d1d; line-height: 1.5; margin: 0 0 7px; }
.ksap-oferta-lista li:last-child { margin-bottom: 0; }
.ksap-oferta-akcje { display: inline-flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
/* Poziomy odstęp w karcie treści - dziś używa go dopisek „Co z tym zrobiliśmy" w relacji 2026,
   oddzielając komentarz z dziś od tekstu sprzed miesięcy. Bez marginesu linia przykleja się do
   akapitów i czyta się jak obramowanie, a nie jak przerwa w czasie. */
.seo-card hr { margin: 14px 0; border: 0; border-top: 1px solid #e5e7eb; }

.ksap-oferta-cta { display: inline-block; border-radius: 10px; padding: 11px 20px; background: #ff5f5f;
  color: #fff; font-weight: 700; font-size: 0.97rem; text-decoration: none; }
.ksap-oferta-cta:hover, .ksap-oferta-cta:focus-visible { background: #ef4444; color: #fff; text-decoration: none; }
/* Wariant lekki - jedna linijka pod istniejącym CTA strony informacyjnej. */
.ksap-oferta-linia { margin: 10px 0 0; font-size: 0.92rem; }
.ksap-oferta-linia a { color: #c53030; font-weight: 600; }
