/* Wspólne minimum stron hodowców (Z214) — szablony mają własne pliki CSS. Kontrakt zmiennych: --bg --surf --surf2 --ink --muted
   --acc --accInk --link --line --fh --fb --fn --r --txt (skala tekstu gościa: A=1, A+=1,15, A++=1,3 × skala szablonu).
   Szablon używa rem (albo calc(Npx * var(--txt))), żeby przełącznik A/A+/A++ działał. */
html { font-size: calc(100% * var(--txt, 1)); -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body.sh { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--fb); overflow-x: hidden; }
img, svg { max-width: 100%; }
/* obrączka w tekście nie łamie się na myślniku (ObraczkiWTekscie, odbiór 22.10) */
.sh-obr { white-space: nowrap; }
.sh-obr.sh-obr-zawin { white-space: normal; }
/* bez skryptu: duże nagłówki na telefonie mogą zawinąć obrączkę (lepiej niż przewijanie w bok) */
@media (max-width: 479px) { html:not(.sh-js) h1 .sh-obr, html:not(.sh-js) h2 .sh-obr { white-space: normal; } }
.sh-pomin { position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--acc); color: var(--accInk); padding: .6rem 1rem; }
.sh-pomin:focus { left: .5rem; top: .5rem; }
.sh-pulapka { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.sh-podglad-pasek { position: sticky; top: 0; z-index: 900; background: #fff4c2; color: #4a3b00; font: 600 13px/1.3 system-ui, sans-serif; padding: 6px 12px; text-align: center; border-bottom: 1px solid #e6d27a; }
.sh-podglad-style { display: flex; align-items: center; gap: 8px; max-width: 100%; box-sizing: border-box; overflow-x: auto; white-space: nowrap; padding: 6px 12px; background: #f3f1ea; border-bottom: 1px solid #ddd8c6; font: 600 12px/1.3 system-ui, sans-serif; color: #3d3a2e; scrollbar-width: thin; }
.sh-pps-et { flex: none; }
.sh-pps { flex: none; box-sizing: border-box; width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); border: 1px solid rgba(0,0,0,.35); outline-offset: 2px; text-decoration: none; }
.sh-pps:focus-visible { outline: 2px solid #1a56db; }
.sh-pps--wybrany { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #1a1a1a; margin: 0 2px; }
.sh-pps-nazwa { flex: none; font-weight: 700; }
.sh-podglad-pasek--laska { background: #ffe1d6; color: #5c1d08; border-color: #f0b49c; }
.sh-stopka-mg { font-size: .8rem; opacity: .85; margin: .5rem 0 0; }
.sh-stopka-mg a { color: inherit; }
/* Z283: separator „·” jako pseudoelement pozycji; pozycja na początku linii ma kropkę poza ramką (overflow:hidden) */
.sh-stopka-mg { overflow: hidden; }
.sh-stopka-mg .sh-st-l { display: flex; flex-wrap: wrap; margin-left: -1em; justify-content: inherit; }
.sh-stopka-mg .sh-st-p { display: flex; align-items: center; }
.sh-stopka-mg .sh-st-p:first-child { padding-left: 1em; }
.sh-stopka-mg .sh-st-p + .sh-st-p::before { content: "\00B7"; flex: none; width: 1em; text-align: center; }
/* okno „Zgłoś stronę” (otwierane kotwicą #zglos) */
.sh-zglos { display: none; position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.55); padding: 16px; align-items: center; justify-content: center; }
.sh-zglos:target { display: flex; }
.sh-zglos-okno { background: #fff; color: #1a1a1a; max-width: 460px; width: 100%; border-radius: 10px; padding: 20px; font: 15px/1.45 system-ui, sans-serif; display: grid; gap: 10px; }
.sh-zglos-okno h2 { margin: 0; font-size: 19px; }
.sh-zglos-okno p { margin: 0; color: #444; font-size: 14px; }
.sh-zglos-okno label { display: grid; gap: 4px; font-weight: 600; font-size: 14px; }
.sh-zglos-okno select, .sh-zglos-okno textarea, .sh-zglos-okno input { font: inherit; font-weight: 400; padding: 10px; border: 1px solid #bbb; border-radius: 6px; min-height: 44px; }
.sh-zglos-przyciski { display: flex; gap: 10px; justify-content: flex-end; align-items: center; }
.sh-zglos-przyciski a { color: #333; padding: 10px; }
.sh-zglos-przyciski button { min-height: 44px; padding: 0 18px; border: 0; border-radius: 6px; background: #1a1a1a; color: #fff; font: 600 15px system-ui, sans-serif; cursor: pointer; }
/* telefon „pokaż po kliknięciu” */
[data-sh-telefon] { cursor: pointer; }
/* tekst czytany przez czytniki, niewidoczny */
.sh-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
/* Z310: uwaga na końcu strony o tłumaczeniu automatycznym tekstów hodowcy (dyskretna, kolor dziedziczony z szablonu) */
.sh-tlumaczenie-auto { margin: 0; padding: .9rem 1rem 1.4rem; text-align: center; font-size: .78rem; line-height: 1.4; opacity: .65; }

/* Z310 etap 2: chiński (zh-Hans / zh-Hant) — kroje szablonów (Google Fonts) nie mają znaków CJK, więc doklejamy systemowe kroje CJK
   (bez pobierania plików): --cjk-sans / --cjk-serif. Zmienne --fh --fb --fn dostają je w DokumentStrony (Zmienne); poniżej kroje
   zaszyte w samych szablonach (Tablica, Zeszyt, Profil). W chińskim nie stosujemy pochyłego (syntetyczny italik psuje znaki). */
:lang(zh-Hans) {
  --cjk-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "Noto Sans SC", "Source Han Sans SC", sans-serif;
  --cjk-serif: "Songti SC", "STSong", "Noto Serif CJK SC", "Noto Serif SC", "Source Han Serif SC", "SimSun", serif;
}
:lang(zh-Hant) {
  --cjk-sans: "PingFang TC", "Microsoft JhengHei", "Noto Sans CJK TC", "Noto Sans TC", "Source Han Sans TC", sans-serif;
  --cjk-serif: "Songti TC", "PMingLiU", "Noto Serif CJK TC", "Noto Serif TC", "Source Han Serif TC", serif;
}
:lang(zh-Hans) .tb, :lang(zh-Hant) .tb { --f-tab: var(--cjk-sans); --f-led: var(--cjk-sans); }
:lang(zh-Hans) .zs, :lang(zh-Hant) .zs { --reka: var(--cjk-sans); --zegar: var(--cjk-sans); }
:lang(zh-Hans) body.sh.sh-profil, :lang(zh-Hant) body.sh.sh-profil { --pr-h: var(--cjk-serif); --pr-b: var(--cjk-sans); }
:lang(zh-Hans) body.sh, :lang(zh-Hans) body.sh *, :lang(zh-Hant) body.sh, :lang(zh-Hant) body.sh * { font-style: normal; }
