/*
Theme Name: Cellzone
Theme URI: https://www.cellzone.eu/
Author: Redakce Cellzone
Description: Redakční šablona magazínu Cellzone. Inkoustová modř, signální červená, barvy rubrik.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cellzone
*/

/* ══════════ Jetons ══════════ */
:root {
	--papier: #F4F2EE;
	--blanc: #FFFFFF;
	--papier-2: #E9E5DD;
	--encre: #0F1B2D;
	--encre-2: #23324A;
	--doux: #4E5A6B;
	--filet: #DDD8CF;
	--accent: #D7261E;
	--accent-fort: #A8160F;
	--accent-voile: #FBE3E1;
	--bleu: #0B6E99;

	--titre: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--texte: "Literata", Georgia, "Times New Roman", serif;
	--ui: "Archivo", "Helvetica Neue", Arial, sans-serif;

	--cadre: 1280px;
	--marge: 24px;
	--ombre: 0 1px 2px rgba(15,27,45,.06), 0 10px 28px -14px rgba(15,27,45,.28);
	--ombre-haut: 0 2px 4px rgba(15,27,45,.08), 0 22px 44px -20px rgba(15,27,45,.38);
	--rayon: 10px;

	--sb-fond: #FFFFFF;
	--sb-encre: #0F1B2D;
	--sb-doux: #4E5A6B;
	--sb-filet: #DDD8CF;
	--sb-accent: #B81D16;
	--sb-accent-fort: #A8160F;
	--sb-accent-2: #0B6E99;
	--sb-surf: #F4F2EE;
	--sb-surf2: #E9E5DD;
	--sb-rub: #D7261E;
	--sb-rayon: 10px;
	--sb-ombre: 0 1px 2px rgba(15,27,45,.06), 0 8px 22px -12px rgba(15,27,45,.28);
	--sb-ombre-haut: 0 2px 4px rgba(15,27,45,.08), 0 18px 40px -18px rgba(15,27,45,.36);
	--sb-titre: "Archivo", "Helvetica Neue", Arial, sans-serif;
	--sb-lecture: "Literata", Georgia, serif;
	--sb-aside-largeur: 310px;
	--sb-haut-collant: 112px;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root { --sb-fond: #FFFFFF; --sb-encre: #0F1B2D; --sb-doux: #4E5A6B; --sb-filet: #DDD8CF; --sb-surf: #F4F2EE; --sb-surf2: #E9E5DD; }
}
[data-theme="light"] { --sb-fond: #FFFFFF; --sb-encre: #0F1B2D; --sb-doux: #4E5A6B; --sb-filet: #DDD8CF; --sb-surf: #F4F2EE; --sb-surf2: #E9E5DD; }

/* ══════════ Base ══════════ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 130px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--papier); color: var(--encre); font: 400 17px/1.6 var(--texte); overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-color: rgba(215,38,30,.45); text-underline-offset: 3px; }
a:hover { color: var(--accent-fort); }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 2px; border-radius: 3px; }
h1, h2, h3, h4 { font-family: var(--titre); color: var(--encre); margin: 0; }
p { margin: 0 0 1em; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
.cz-saut:focus { position: fixed !important; top: 10px; left: 10px; width: auto; height: auto; clip: auto; z-index: 1000; background: var(--encre); color: #fff; padding: 10px 16px; border-radius: 8px; }
.cz-cadre { width: 100%; max-width: var(--cadre); margin: 0 auto; padding: 0 var(--marge); }
.cz-ico { flex: none; }

/* ══════════ Boutons, puces ══════════ */
.cz-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 48px; padding: 0 24px; border: 2px solid var(--accent); border-radius: 999px; background: var(--accent); color: #fff; font: 700 15.5px/1 var(--ui); letter-spacing: .01em; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .2s; }
.cz-btn:hover { background: var(--accent-fort); border-color: var(--accent-fort); color: #fff; transform: translateY(-1px); }
.cz-btn--ligne { background: transparent; color: var(--encre); border-color: var(--encre); }
.cz-btn--ligne:hover { background: var(--encre); border-color: var(--encre); color: #fff; }
.cz-puce { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--blanc); border: 1px solid var(--filet); font: 600 14px/1.2 var(--ui); color: var(--encre); text-decoration: none; }
.cz-puce--lien:hover { border-color: var(--rub, var(--accent)); color: var(--encre); box-shadow: inset 0 -3px 0 var(--rub, var(--accent)); }
.cz-compte { font-variant-numeric: tabular-nums; }

/* ══════════ En-tête ══════════ */
.cz-tete { position: sticky; top: 0; z-index: 50; background: var(--blanc); box-shadow: 0 1px 0 var(--filet); }
.cz-tete-ruban { background: var(--encre); color: #DCE3EE; font: 600 13px/1 var(--ui); transition: margin .25s; }
.cz-ruban-in { display: flex; align-items: center; gap: 24px; min-height: 34px; }
.cz-date { color: #fff; }
.cz-devise { color: #B9C4D4; }
.cz-devise b { color: #FF8C85; font-weight: 700; }
.cz-ruban-liens { margin-left: auto; display: flex; gap: 18px; }
.cz-ruban-liens a { text-decoration: none; color: #DCE3EE; }
.cz-ruban-liens a:hover { color: #fff; text-decoration: underline; }
.cz-barre-in { display: flex; align-items: center; gap: 28px; min-height: 74px; }
.cz-logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; color: var(--encre); flex: none; }
.cz-logo .cz-symbole { width: 44px; height: 44px; }
.cz-logo-mot { font: 800 29px/1 var(--titre); font-stretch: 88%; letter-spacing: -.035em; }
.cz-logo-mot b { color: var(--accent); font-weight: 800; }
.cz-nav { flex: 1; min-width: 0; }
.cz-nav-liste { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; justify-content: center; }
.cz-nav-liste a { display: flex; align-items: center; gap: 7px; padding: 10px 12px; border-radius: 8px; text-decoration: none; font: 700 14.5px/1.1 var(--ui); color: var(--encre); white-space: nowrap; }
.cz-nav-liste a .cz-ico { color: var(--doux); }
.cz-nav-liste a:hover, .cz-nav-liste a.is-actif { background: var(--papier); color: var(--encre); }
.cz-nav-liste a.is-actif { box-shadow: inset 0 -3px 0 var(--accent); }
.cz-nav-sec { display: none; }
.cz-nav-plny { display: none; }
.cz-barre-in .cz-nav { display: flex; justify-content: center; }
.cz-tete-outils { display: flex; align-items: center; gap: 10px; flex: none; }
.cz-tete-hledat { display: flex; align-items: center; background: var(--papier); border: 1px solid var(--filet); border-radius: 999px; padding: 0 4px 0 16px; height: 44px; }
.cz-tete-hledat input { border: 0; background: transparent; width: 130px; font: 500 15px var(--ui); color: var(--encre); outline: none; }
.cz-tete-hledat button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--encre); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cz-burger { display: none; width: 46px; height: 46px; border: 1px solid var(--filet); border-radius: 12px; background: var(--blanc); color: var(--encre); cursor: pointer; place-items: center; }
.cz-tete-filet { display: flex; height: 4px; }
.cz-tete-filet span { flex: 1; }
.cz-tete.is-pose .cz-tete-ruban { margin-top: -34px; }

/* ══════════ Fil d'Ariane, méta, kicker ══════════ */
.cz-ariane ol { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font: 600 13.5px/1.4 var(--ui); color: var(--doux); }
.cz-ariane li + li::before { content: "›"; margin-right: 6px; color: var(--doux); }
.cz-ariane a { color: var(--doux); text-decoration: none; }
.cz-ariane a:hover { color: var(--accent-fort); text-decoration: underline; }
.cz-kick { display: inline-flex; align-items: center; gap: 6px; font: 800 12.5px/1.2 var(--ui); letter-spacing: .07em; text-transform: uppercase; color: var(--encre); text-decoration: none; }
.cz-kick .cz-ico { color: var(--rub, var(--accent)); }
.cz-kick::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--rub, var(--accent)); margin-right: 2px; }
.cz-kick .cz-ico { display: none; }
.cz-kick:hover { color: var(--accent-fort); }
.cz-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 12px; font: 600 13.5px/1.3 var(--ui); color: var(--doux); }
.cz-temps { display: inline-flex; align-items: center; gap: 5px; }
.cz-temps .piste { fill: none; stroke: var(--filet); stroke-width: 3; }
.cz-temps .arc { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.cz-section-titre { font: 800 clamp(24px,2.2vw,32px)/1.15 var(--titre); letter-spacing: -.02em; margin-bottom: 22px; }
.cz-section-titre span { font: 600 15px var(--ui); color: var(--doux); letter-spacing: 0; margin-left: 10px; }

/* ══════════ Cartes et lignes ══════════ */
.cz-grille { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 28px; }
.cz-grille--3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.cz-carte { background: var(--blanc); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.cz-carte:hover { transform: translateY(-3px); box-shadow: var(--ombre-haut); }
.cz-carte-photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--papier-2); }
.cz-carte-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.cz-carte:hover .cz-carte-photo img { transform: scale(1.04); }
.cz-carte-texte { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.cz-carte-titre { font: 750 19px/1.28 var(--titre); letter-spacing: -.01em; }
.cz-carte-titre a { text-decoration: none; }
.cz-carte-titre a:hover { text-decoration: underline; }
.cz-carte-chapo { font: 400 15.5px/1.55 var(--texte); color: var(--encre-2); margin: 0; }
.cz-carte .cz-meta { margin-top: auto; }
.cz-ligne { display: grid; grid-template-columns: 112px minmax(0,1fr); gap: 16px; align-items: start; padding: 16px 0; border-top: 1px solid var(--filet); }
.cz-ligne:first-child { border-top: 0; padding-top: 0; }
.cz-ligne-photo { display: block; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: var(--papier-2); }
.cz-ligne-photo img { width: 100%; height: 100%; object-fit: cover; }
.cz-ligne-texte { display: flex; flex-direction: column; gap: 6px; }
.cz-ligne-titre { font: 700 17px/1.3 var(--titre); }
.cz-ligne-titre a { text-decoration: none; }
.cz-ligne-titre a:hover { text-decoration: underline; }
.cz-sans-photo.cz-ligne { grid-template-columns: 1fr; }
.cz-plus-zone { display: flex; justify-content: center; margin-top: 32px; }
.cz-plus-zone .cz-compte { display: inline-grid; place-items: center; min-width: 28px; height: 24px; padding: 0 6px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 13px; }

/* ══════════ Avatars ══════════ */
.cz-avatar { border-radius: 50%; object-fit: cover; background: var(--papier-2); flex: none; }
.cz-avatar--mini { width: 34px; height: 34px; }
.cz-avatar--fiche { width: 52px; height: 52px; border: 3px solid #fff; }
.cz-avatar--tym { width: 104px; height: 104px; border: 4px solid #fff; box-shadow: var(--ombre); }
.cz-avatar--tym-velky { width: 150px; height: 150px; border: 5px solid #fff; box-shadow: var(--ombre); }
.cz-avatar--auteur { width: 150px; height: 150px; border: 5px solid #fff; box-shadow: var(--ombre); }
.sb-avatar-symbole { display: inline-grid; place-items: center; }
.sb-avatar-symbole svg { width: 70%; height: 70%; }

/* ══════════ Formulaires ══════════ */
.cz-form { display: flex; flex-wrap: wrap; gap: 16px; }
.cz-champ { flex: 1 1 100%; display: flex; flex-direction: column; gap: 6px; }
.cz-demi { flex: 1 1 calc(50% - 8px); }
.cz-champ label { font: 700 14px var(--ui); color: var(--encre); }
.cz-champ input, .cz-champ select, .cz-champ textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid #C9C3B8; border-radius: 10px; background: var(--blanc); font: 500 16px/1.4 var(--ui); color: var(--encre); }
.cz-champ textarea { min-height: 110px; resize: vertical; }
.cz-champ input:focus, .cz-champ select:focus, .cz-champ textarea:focus { border-color: var(--bleu); outline: 3px solid rgba(11,110,153,.2); }
.cz-piege { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.cz-merci { flex: 1 1 100%; padding: 14px 16px; border-radius: 10px; background: #E3F3EA; color: #0B4F31; font: 600 15px var(--ui); }
.cz-form .cz-btn { min-height: 52px; padding: 0 30px; font-size: 16.5px; }
.cz-aside-form { background: var(--encre); color: #fff; border-radius: var(--rayon); padding: 20px; margin-top: 18px; }
.cz-aside-titre { font: 800 17px/1.2 var(--titre); color: #fff; margin: 0 0 12px; }
.cz-aside-form .cz-form { gap: 10px; }
.cz-aside-form .cz-champ input, .cz-aside-form .cz-champ textarea { min-height: 46px; border-color: transparent; }
.cz-aside-form .cz-champ textarea { min-height: 70px; }
.cz-aside-form .cz-btn { width: 100%; min-height: 48px; }
.cz-aside-form .cz-merci { background: #1F3A2D; color: #D8F3E4; }

/* ══════════ Pied de page ══════════ */
.cz-pied { background: var(--encre); color: #C8D2DF; margin-top: 72px; position: relative; }
.cz-pied-signal { position: absolute; top: -34px; right: max(24px, calc((100vw - var(--cadre)) / 2 + 24px)); display: flex; align-items: flex-end; gap: 6px; height: 34px; }
.cz-pied-signal span { width: 12px; border-radius: 3px 3px 0 0; background: var(--encre); }
.cz-pied-signal span:nth-child(1) { height: 10px; } .cz-pied-signal span:nth-child(2) { height: 18px; } .cz-pied-signal span:nth-child(3) { height: 26px; } .cz-pied-signal span:nth-child(4) { height: 34px; background: var(--accent); }
.cz-pied-grille { display: grid; grid-template-columns: 1.4fr 1fr 1.3fr 1fr; gap: 44px; padding-top: 56px; padding-bottom: 44px; }
.cz-logo--pied { color: #fff; }
.cz-logo--pied .cz-logo-mot b { color: #FF6B63; }
.cz-pied-texte { font: 400 15px/1.6 var(--texte); color: #C8D2DF; margin: 16px 0 18px; }
.cz-pied-loupe { display: flex; gap: 8px; }
.cz-pied-loupe input { flex: 1; min-width: 0; min-height: 48px; border: 1px solid #34465F; background: #16253B; color: #fff; border-radius: 10px; padding: 0 14px; font: 500 15px var(--ui); }
.cz-pied-loupe input::placeholder { color: #93A1B5; }
.cz-pied-loupe button { min-height: 48px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--accent); color: #fff; font: 700 15px var(--ui); cursor: pointer; }
.cz-pied-loupe button:hover { background: var(--accent-fort); }
.cz-pied-titre { font: 800 13px/1.2 var(--ui); letter-spacing: .12em; text-transform: uppercase; color: #fff; margin-bottom: 18px; }
.cz-pied-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cz-pied-liste a { display: flex; align-items: center; gap: 10px; padding: 7px 0; color: #DCE3EE; text-decoration: none; font: 600 15px/1.3 var(--ui); }
.cz-pied-liste a:hover { color: #fff; text-decoration: underline; }
.cz-pied-pastille { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.cz-pied-fil { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.cz-pied-fil li { display: grid; gap: 3px; }
.cz-pied-fil time { font: 600 12.5px var(--ui); color: #93A1B5; }
.cz-pied-fil a { color: #fff; text-decoration: none; font: 600 15px/1.35 var(--titre); }
.cz-pied-fil a:hover { text-decoration: underline; }
.cz-pied-bas { border-top: 1px solid #23344D; background: #0A1422; }
.cz-pied-bas .cz-cadre { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 18px; padding-bottom: 18px; font: 500 13.5px var(--ui); color: #A7B3C3; }
.cz-pied-bas a { color: #DCE3EE; }

/* ══════════ État vide ══════════ */
.cz-vide { text-align: center; padding: 48px 20px; background: var(--blanc); border-radius: var(--rayon); box-shadow: var(--ombre); }
.cz-vide-sceau svg { width: 64px; height: 64px; margin: 0 auto 14px; }
.cz-vide-h { font: 800 24px var(--titre); margin-bottom: 8px; }

/* ══════════ Responsive commun ══════════ */
@media (max-width: 1240px) {
	.cz-tete-hledat input { width: 84px; }
	.cz-nav-liste a .cz-ico { display: none; }
}
@media (max-width: 1020px) {
	.cz-nav-court { display: none; }
	.cz-nav-plny { display: inline; }
	.cz-burger { display: grid; }
	.cz-tete-hledat { display: none; }
	.cz-barre-in { min-height: 64px; justify-content: space-between; }
	.cz-nav { position: fixed; inset: 102px 0 0 0; background: var(--blanc); padding: 18px var(--marge) 40px; overflow-y: auto; transform: translateX(100%); transition: transform .3s; z-index: 60; }
	.cz-menu-ouvert .cz-nav { transform: none; }
	.cz-nav-liste { flex-direction: column; gap: 4px; }
	.cz-nav-liste a { padding: 14px 12px; font-size: 17px; border-bottom: 1px solid var(--filet); border-radius: 0; }
	.cz-nav-liste a .cz-ico { display: inline; }
	.cz-nav-sec { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 20px 12px; font: 600 15px var(--ui); }
	.cz-nav-sec a { color: var(--doux); }
	.cz-grille, .cz-grille--3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
	.cz-pied-grille { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
	:root { --marge: 18px; }
	body { font-size: 16.5px; }
	.cz-devise, .cz-ruban-liens { display: none; }
	.cz-logo-mot { font-size: 25px; }
	.cz-logo .cz-symbole { width: 38px; height: 38px; }
	.cz-grille, .cz-grille--3 { grid-template-columns: 1fr; gap: 20px; }
	.cz-pied-grille { grid-template-columns: 1fr; gap: 32px; }
	.cz-ligne { grid-template-columns: 92px minmax(0,1fr); }
	.cz-demi { flex-basis: 100%; }
}
