/* Wspólne elementy stron publicznych (Sprint 145): pasek górny z menu jak na stronie głównej, pigułki, ikona
   w kółku z pierścieniem, nadtytuł, nagłówek strony i sekcji, liczby z ikonami, kolumny redakcyjne.
   Korzystają z niego /o-stronie/ i ekrany Monitoringu Regulacyjnego AI. Wartości WYŁĄCZNIE z tokenów
   site-tokens.css (ładowany wcześniej) — strażnik config/test_style_literals.py pilnuje tego pliku.

   Nazwy klas nie powtarzają klas Bootstrapa ani app.css (ekrany Monitoringu ładują oba): stąd `pub-bar`,
   `pub-nav`, `kicker`, `ed-cols` zamiast `topbar`, `nav`, `eyebrow`, `col`. */

/* ── Pasek górny w geometrii plakatu strony głównej (decyzja właściciela 2026-10-26) ───────────────────────────
   Ta sama szerokość co plakat (--poster-max), te same odległości co na stronie głównej: znak 1.2rem od góry i 1.5rem od
   lewego brzegu, menu 1.4rem od góry na środku, przełącznik motywu 1.4rem od góry i 1.5rem od prawego brzegu — przy
   przejściu ze strony głównej na podstronę znak, menu i przełącznik stoją w tym samym miejscu. */
.pub-bar { position: relative; max-width: var(--poster-max); height: 8rem; margin: 0 auto; line-height: normal; }
.pub-brand { position: absolute; top: 1.2rem; left: 1.5rem; z-index: 20; filter: var(--mark-shadow); }
.pub-brand-mark { display: block; font-family: var(--brand-font); font-weight: var(--brand-weight); font-size: var(--fs-poster-enter);
                  letter-spacing: var(--brand-ls); line-height: 1; white-space: nowrap; text-decoration: none; background-image: var(--brand-stripes);
                  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: var(--brand-fill);
                  filter: var(--brand-shadow); transition: filter .4s ease; }
.pub-brand-mark:hover { filter: var(--brand-hover); text-decoration: none; }
.pub-brand-mark .brand-ai { color: var(--brand-a); }
.pub-brand-mark .brand-colon, .pub-brand-mark .brand-rico { color: var(--brand-b); }
.pub-brand-sub { display: block; margin-top: .05rem; font-family: var(--sub-font); font-size: var(--sub-size); font-weight: var(--sub-weight);
                 letter-spacing: var(--sub-ls); text-transform: var(--sub-case); color: var(--sub-color); white-space: nowrap; }

/* Menu jak na stronie głównej (decyzja właściciela 2026-10-26): krój, rozmiar i rozstaw z tokenów --nav-*, kropki
   między pozycjami, ikona osoby przy „Zaloguj”; po najechaniu linia rozwija się pod napisem i pojawia się poświata,
   pozycja bieżąca ma linię na stałe. */
.pub-nav { position: absolute; top: 1.4rem; left: 50%; transform: translateX(-50%); z-index: 20; display: flex; align-items: center; gap: 1rem;
           font-family: var(--nav-font); font-size: var(--nav-size); font-weight: 500; letter-spacing: var(--nav-ls); text-transform: uppercase; white-space: nowrap; }
.pub-nav a { position: relative; display: inline-flex; align-items: center; gap: .35em; color: var(--nav-ink); text-decoration: none;
             transition: filter .4s ease; }
.pub-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -.22em; height: 2px; background: var(--gold-line);
                    transform: scaleX(0); transform-origin: left center; transition: transform .35s ease; }
.pub-nav a:hover, .pub-nav a:focus-visible { filter: var(--nav-glow); text-decoration: none; outline: none; }
.pub-nav a:hover::after, .pub-nav a:focus-visible::after, .pub-nav a.active::after { transform: scaleX(1); }
.pub-nav svg { width: .9em; height: .9em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pub-nav .sep { color: var(--muted); opacity: .6; user-select: none; }

.pub-bar .theme-form { position: absolute; top: 1.4rem; right: 1.5rem; z-index: 20; display: inline-flex; margin: 0; font-size: var(--fs-poster-theme); }
.visually-hidden-lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pub-bar .theme-seg { font-size: inherit; display: inline-grid; grid-template-columns: 1fr 1fr; height: 1.42em; border: 1px solid var(--border);
                      border-radius: 999px; overflow: hidden; background: var(--surface); }
.pub-bar .ts-half { display: flex; align-items: center; justify-content: center; width: 1.7em; height: 100%; margin: 0; padding: 0; border: 0;
                    background-color: transparent; color: var(--muted); font-size: inherit; line-height: 0; }
.pub-bar .ts-half + .ts-half { box-shadow: inset 1px 0 0 var(--border); }
.pub-bar .ts-half svg { display: block; width: .9em; height: .9em; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.pub-bar .ts-half.is-active { background-color: var(--accent); color: var(--on-accent); }
.pub-bar button.ts-half { cursor: pointer; transition: background-color .2s ease, color .2s ease; }
.pub-bar button.ts-half:hover { color: var(--accent); background-color: var(--accent-dim); }
.pub-bar button.ts-half:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }

/* ── Pigułki: przełącznik części strony i podmenu modułu. Bieżąca wypełniona akcentem. ─────────────────── */
.pills { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; font: 600 var(--fs-chip) var(--font-label); color: var(--heading);
        text-decoration: none; padding: 8px 16px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); white-space: nowrap; }
.pill:hover { border-color: var(--accent-edge); color: var(--heading); text-decoration: none; }
.pill.on { border-color: var(--accent); background: var(--accent); color: var(--on-accent); }
.pill:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ── Ikona w kółku z pierścieniem (jak przy mózgu na /o-stronie/). Barwa: klasa tone-* na tym samym elemencie. ── */
.ring-ic { width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center; margin: 7px;
           background: var(--cb); color: var(--c); box-shadow: 0 0 0 6px var(--page), 0 0 0 7px var(--gold-line); }
.ring-ic svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.tone-green { --c: var(--i-green); --cb: var(--i-green-bg); } .tone-red { --c: var(--i-red); --cb: var(--i-red-bg); }
.tone-gold { --c: var(--i-gold); --cb: var(--i-gold-bg); } .tone-blue { --c: var(--i-blue); --cb: var(--i-blue-bg); }
.tone-teal { --c: var(--i-teal); --cb: var(--i-teal-bg); } .tone-violet { --c: var(--i-violet); --cb: var(--i-violet-bg); }

/* ── Nadtytuł, nagłówek strony i sekcji ─────────────────────────────────────────────────────────────────── */
.kicker { font: 600 var(--fs-kicker) var(--font-label); letter-spacing: .24em; text-transform: uppercase; color: var(--eyebrow-ink); }
.page-head h1 { font: 400 var(--fs-hero)/1.05 var(--font-display); color: var(--heading); margin: 10px 0 0; letter-spacing: -.01em; }
.page-head p { max-width: 62ch; margin: 16px 0 0; color: var(--soft); font: 400 var(--fs-body)/1.6 var(--font-read); }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 18px; }
.sec-head h2 { font: 400 var(--fs-h2)/1.15 var(--font-display); color: var(--heading); margin: 6px 0 0; }
.sec-more { font: 500 var(--fs-ui) var(--font-label); white-space: nowrap; color: var(--accent); text-decoration: none; }
.sec-more:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ── Liczby z ikonami w jednym wierszu ──────────────────────────────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 28px; }
.stat { display: flex; align-items: center; justify-content: center; gap: 16px; color: inherit; text-decoration: none; }
.stat b { display: block; font: 400 var(--fs-2xl)/1 var(--font-display); color: var(--heading); }
.stat small { display: block; margin-top: 4px; font: 400 var(--fs-sm) var(--font-label); color: var(--soft); }
a.stat:hover b { color: var(--accent); }

/* ── Kolumny redakcyjne: linia u góry, data krojem tytułów, punktory, stopka liczb ─────────────────────── */
.ed-cols { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 24px; }
.ed-col { border-top: 2px solid var(--accent-edge); padding-top: 14px; }
.ed-col ul { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; }
.ed-col li { position: relative; padding-left: 14px; font: 400 var(--fs-md)/1.4 var(--font-read); color: var(--text); }
.ed-col li::before { content: ""; position: absolute; left: 0; top: .55em; width: 5px; height: 5px; border-radius: 50%; background: var(--bullet); }
.ed-meta { margin-top: 10px; font: 400 var(--fs-xs) var(--font-label); color: var(--soft); }
.ed-meta b { color: var(--ink-strong); font-weight: 600; }

/* ── Telefon ─────────────────────────────────────────────────────────────────────────────────────────────── */
/* Menu schodzi pod logo dopiero na telefonie — na komputerze i tablecie zostaje w pasku, w tym samym rozmiarze
   co na stronie głównej (wcześniej przy oknie węższym niż 1260 px zmniejszało się do 11 px w drugim wierszu). */
/* Wąskie okno — jak na stronie głównej: menu przy prawej krawędzi obok przełącznika, zawijane. */
@media (max-width: 1200px) {
  .pub-nav { left: auto; right: 6.6rem; max-width: calc(100% - 24rem); transform: none; flex-wrap: wrap; justify-content: flex-end; row-gap: .35rem; }
  .pub-nav .sep { display: none; }
}
@media (max-width: 900px) {
  /* Telefon: znak w rozmiarze z telefonu strony głównej, menu pod nim (na stronie głównej menu przejmuje dolny pasek). */
  .pub-bar { height: auto; padding: 14px 16px 10px; }
  .pub-brand { position: static; }
  .pub-brand-mark { font-size: var(--fs-poster-enter-tel); }
  .pub-bar .theme-form { top: 14px; right: 14px; font-size: var(--fs-poster-theme-tel); }
  .pub-nav { position: static; transform: none; max-width: none; justify-content: flex-start; gap: 10px; font-size: var(--fs-2xs); margin-top: 10px; flex-wrap: wrap; }
  .page-head h1 { font-size: var(--fs-3xl); }
  .page-head p { font-size: var(--fs-base); }
  .sec-head h2 { font-size: var(--fs-closing); }
  .stats { gap: 10px; }
  .stat { flex-direction: column; text-align: center; gap: 8px; }
  .stat .ring-ic { width: 40px; height: 40px; } .stat .ring-ic svg { width: 19px; height: 19px; }
  .stat b { font-size: var(--fs-lg); }
  .ed-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .pub-nav a, .pub-nav a::after { transition: none; } }
