/* redakcja-styles.css – opieka.farm · strona „Redakcja" (zespół redakcyjny)
   Buduje na home-styles.css + calc-styles.css (calc-head / calc-group-h).
   Charakter edytorski: nagłówki Source Sans 3, spokojna siatka kart osób.
   Zespół zaczytywany z WordPress (role: Administrator, Redaktor, Autor),
   z wykluczeniami zdefiniowanymi w Customizerze. */

/* ── Header akcent serif (spójnie z charakterem „redakcja") ── */
.red-page .calc-head h1 .em { font-style: normal; font-weight: inherit; color: inherit; }

/* ── Spis treści (skok do sekcji) ── */
.red-toc { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 20px 0 4px; }
.red-toc a {
  font-family: 'Source Sans 3', sans-serif; font-size: 13.5px; font-weight: 600;
  color: var(--primary); text-decoration: none; padding: 6px 14px;
  border: 1px solid var(--line); border-radius: 999px; line-height: 1.2;
  transition: background .15s ease, border-color .15s ease;
}
.red-toc a:hover, .red-toc a:focus-visible {
  border-color: var(--primary); background: color-mix(in srgb, var(--primary) 8%, transparent); outline: none;
}

/* ── Nagłówki sekcji większe (tylko strona redakcji) ── */
.calc-group-h.red-h h2 { font-size: 23px; font-weight: 700; letter-spacing: -0.02em; }
.calc-group-h[id] { scroll-margin-top: 90px; }

/* ── Notka o synchronizacji z WordPress (widok redakcyjny) ── */
.red-sync {
  display: flex; align-items: flex-start; gap: 14px;
  margin: 22px 0 8px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--rad-md);
  box-shadow: var(--shadow-sm);
}
.red-sync .ic {
  width: 34px; height: 34px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 9px; background: var(--accent-soft); color: var(--accent-2);
}
.red-sync .ic svg { width: 18px; height: 18px; }
.red-sync .tx { font-size: 13.5px; color: var(--ink-2); line-height: 1.55; }
.red-sync .tx b { color: var(--ink); }
.red-sync .tx code {
  font-family: 'Source Sans 3', sans-serif; font-size: 11.5px;
  background: var(--bg-2); padding: 1px 6px; border-radius: 5px; color: var(--primary);
}
.red-sync .roles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.red-sync .role-pill {
  font-family: 'Source Sans 3', sans-serif; font-size: 10.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--primary-2);
  background: rgba(13,75,92,0.06); border: 1px solid var(--line-2);
  padding: 3px 9px; border-radius: 999px;
}
.red-sync .stamp {
  margin-left: auto; flex-shrink: 0; align-self: center;
  font-family: 'Source Sans 3', sans-serif; font-size: 10.5px;
  color: var(--ink-3); letter-spacing: 0.06em; text-align: right; line-height: 1.5;
}
.red-sync .stamp .live {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); margin-right: 5px; vertical-align: middle;
  box-shadow: 0 0 0 3px var(--accent-soft);
}

/* ── Avatar z inicjałami ── */
.red-av {
  flex-shrink: 0; border-radius: 16px; overflow: hidden; /* #53: koło → zaokrąglony kwadrat */
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
  color: #fff;
}

/* ── Karta naczelnego (wyróżniona, szeroka) ── */
.red-lead {
  display: grid; grid-template-columns: auto 1fr; gap: 26px;
  align-items: start;
  margin: 18px 0 6px;
  padding: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--rad-lg);
  box-shadow: var(--shadow-md);
}
.red-lead .red-av { width: 96px; height: 96px; font-size: 30px; }
.red-lead .who { display: flex; flex-direction: column; }
.red-lead .role-tag {
  font-family: 'Source Sans 3', sans-serif; font-size: 11px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-2);
  display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
}
.red-lead .role-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.red-lead h2 {
  font-family: 'Source Sans 3', sans-serif; font-weight: 500; letter-spacing: -0.015em;
  font-size: 28px; margin: 0 0 4px; color: var(--ink);
}
.red-lead .sub {
  font-size: 13px; color: var(--ink-3); margin: 0 0 14px;
  font-family: 'Source Sans 3', sans-serif; letter-spacing: 0.02em;
}
.red-lead .bio { font-size: 14.5px; color: var(--ink-2); line-height: 1.65; margin: 0; max-width: 74ch; }
.red-lead .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ── Linki osoby ── */
.red-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: 500; color: var(--primary-2);
  padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px;
  background: var(--bg); transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.red-link:hover { background: rgba(13,75,92,0.06); color: var(--primary); border-color: var(--primary-2); }
.red-link svg { width: 14px; height: 14px; }

/* ── Pasek filtra (rola WordPress) – reuse .cat-filter z calc-styles.css ── */

/* ── Lista osób: białe dymki-karty ── */
.red-list {
  display: flex; flex-direction: column; gap: 14px;
}
.red-row {
  display: grid; grid-template-columns: auto 1fr; gap: 22px;
  padding: 26px 28px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--rad-lg);
  align-items: start; transition: box-shadow 0.14s, border-color 0.14s;
}
.red-row:hover { border-color: var(--line-2, var(--line)); box-shadow: 0 6px 22px rgba(13,75,92,0.07); }
.red-row .red-av { width: 72px; height: 72px; font-size: 22px; margin-top: 2px; }
.red-row .who { min-width: 0; }
.red-row .who .pre {
  font-family: 'Source Sans 3', sans-serif; font-size: 11px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
  margin-bottom: 2px;
}
.red-row .who .nm {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 17px; font-weight: 600; letter-spacing: -0.012em; color: var(--ink);
  line-height: 1.2;
}
/* Pozycja/stanowisko pod nazwą (#40) — jak .red-lead .sub, mniejsza. */
.red-row .who .sub {
  font-size: 12.5px; color: var(--ink-3); margin: 2px 0 0;
  font-family: 'Source Sans 3', sans-serif; letter-spacing: 0.02em;
}
/* Kotwica per osoba (#41): odsłona spod sticky chrome po skoku #red-<nicename>. */
.red-lead, .red-row { scroll-margin-top: 96px; }
.red-row .bio {
  font-size: 14px; color: var(--ink-2); line-height: 1.62; margin: 8px 0 0; max-width: 80ch;
}
.red-row .meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 12px;
}
.red-row .meta .links { margin: 0; }
.red-list .links, .red-lead .meta .links { display: flex; flex-wrap: wrap; gap: 8px; }

/* ── Numer PWZ (poświadczenie) – font tekstowy, cyfry tabularne ── */
.pwz {
  font-family: 'Source Sans 3', sans-serif; font-size: 12.5px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3);
  display: inline; line-height: 1.5;
}
.pwz b {
  font-weight: 600; color: var(--ink-2); letter-spacing: 0.04em;
  text-transform: none; font-variant-numeric: tabular-nums;
}
.red-lead .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 16px; }
.red-lead .pre {
  font-family: 'Source Sans 3', sans-serif; font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 2px;
}

/* ── CTA: dołącz do zespołu ── */
.red-cta {
  margin: 44px 0 8px;
  padding: 34px;
  background: var(--primary);
  color: #fff;
  border-radius: var(--rad-lg);
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  position: relative; overflow: hidden;
}
.red-cta::after {
  content: ''; position: absolute; right: -60px; top: -60px;
  width: 240px; height: 240px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
}
.red-cta .tx { position: relative; z-index: 1; min-width: 240px; flex: 1; }
.red-cta h3 {
  font-family: 'Source Sans 3', sans-serif; font-weight: 500; font-size: 26px;
  margin: 0 0 8px; letter-spacing: -0.01em;
}
.red-cta p { margin: 0; font-size: 14.5px; color: rgba(255,255,255,0.82); line-height: 1.55; max-width: 54ch; }
.red-cta .go {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 9px;
  background: #fff; color: var(--primary-d);
  font-weight: 600; font-size: 14.5px;
  padding: 13px 22px; border-radius: 999px;
  transition: transform 0.14s, box-shadow 0.14s;
}
.red-cta .go:hover { transform: translateY(-1px); box-shadow: 0 10px 24px -8px rgba(0,0,0,0.4); }
.red-cta .go svg { width: 18px; height: 18px; }

@media (max-width: 860px) {
  .red-lead { grid-template-columns: 1fr; gap: 18px; padding: 20px; }
  .red-lead .red-av { width: 72px; height: 72px; font-size: 24px; }
  .red-sync { flex-wrap: wrap; }
  .red-sync .stamp { margin-left: 0; width: 100%; text-align: left; }
  .red-row { grid-template-columns: auto 1fr; gap: 14px; }
  .red-cta { padding: 24px; }
}

/* ── Byli redaktorzy / współpracownicy (#23) — lista minimalna (bez PWZ/bio) ── */
.red-byli { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px 28px; } /* #53: 2→3 kolumny */
.red-byli-row { display: flex; align-items: baseline; gap: 10px; padding: 9px 2px; font-family: 'Source Sans 3', sans-serif; }
.red-byli-row .nm { font-weight: 600; color: var(--ink); }
.red-byli-row .nm a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line-2); }
.red-byli-row .nm a:hover { color: var(--primary); }
.red-byli-row .fn { font-size: 13px; color: var(--ink-3); }
.red-byli-row .lt { margin-left: auto; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: var(--ink-3); white-space: nowrap; }
@media (max-width: 1000px) { .red-byli { grid-template-columns: repeat(2, 1fr); } } /* #53: tablet = 2 kol */
@media (max-width: 720px) { .red-byli { grid-template-columns: 1fr; } }

/* Dyskretny link do strony autora (/autor/) — sama ikonka, ledwo widoczna (22.07). */
.red-pubs { display: inline-flex; align-items: center; color: var(--ink-4); opacity: .45; vertical-align: middle; margin-left: 6px; transition: opacity .15s, color .15s; }
.red-pubs svg { width: 14px; height: 14px; }
.red-pubs:hover { opacity: 1; color: var(--primary); }
