/*
 * Text stránek z blokového editoru — a starší „editorial" bloky přímo v šablonách.
 *
 * Pravidla jsou zúžená na .editorial, obal sekce, který kolem textu staví
 * stuk_render_sections() ve functions.php. Do blokového editoru pošle
 * stuk_block_editor_styles() tentýž soubor s .editorial přepsaným na
 * .is-root-container, takže redaktor vidí text ve stejném stylu jako návštěvník.
 */

/* ── Sekce a text ───────────────────────────────────────────────────────────── */

.editorial { max-width: 720px; margin: 0 auto; }
.editorial--wide { max-width: 960px; }
.editorial--wide > p { max-width: 720px; }

.editorial-kicker,
.editorial p.is-style-stuk-kicker { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--stuk-green-dark); line-height: 1.6; margin: 0 0 0.6rem; }

.editorial h2 { font-size: 1.7rem; font-weight: 800; color: var(--dark-gray); line-height: 1.2; margin: 0 0 1rem; }
.editorial h2:not(:first-child) { margin-top: 2.5rem; }
.editorial .editorial-kicker + h2,
.editorial .is-style-stuk-kicker + h2 { margin-top: 0; }
.editorial h3 { font-size: 1.15rem; font-weight: 700; color: var(--dark-gray); margin: 2rem 0 0.6rem; }

.editorial p { font-size: 1.05rem; color: #3f4448; line-height: 1.8; margin: 0 0 1.15rem; }
.editorial p.is-style-stuk-muted { font-size: 1rem; color: var(--medium-gray); line-height: 1.6; max-width: 620px; margin-bottom: 0; }
.editorial p.has-text-align-center { text-align: center; margin-left: auto; margin-right: auto; }
.editorial p a, .editorial li a { color: var(--stuk-green-dark); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; font-weight: 600; }
.editorial p a:hover, .editorial li a:hover { color: var(--stuk-green); }
.editorial strong { color: var(--dark-gray); font-weight: 700; }
.editorial code { background: rgba(162,173,0,0.13); color: var(--stuk-green-darker); padding: 0.1em 0.4em; border-radius: 5px; font-size: 0.9em; }
.editorial-lead { font-size: 1.2rem; line-height: 1.7; color: var(--dark-gray); margin-bottom: 1.5rem; }
.editorial hr { border: 0; border-top: 1px solid #e4e6e0; margin: 3rem 0; }
.editorial img { max-width: 100%; height: auto; border-radius: var(--border-radius); }
.editorial figure { margin: 2rem 0; }
.editorial figcaption { font-size: 0.85rem; color: var(--medium-gray); text-align: center; margin-top: 0.5rem; }

.tip,
.editorial p.is-style-stuk-tip { background: rgba(162,173,0,0.09); border-left: 3px solid var(--stuk-green); border-radius: 0 var(--border-radius) var(--border-radius) 0; padding: 1.1rem 1.4rem; margin: 1.75rem 0; font-size: 0.98rem; color: #3f4448; line-height: 1.65; }
.tip strong,
.editorial p.is-style-stuk-tip strong { color: var(--stuk-green-darker); }
.tip::before,
.editorial p.is-style-stuk-tip::before { content: '💡 '; }

/* ── Seznamy ────────────────────────────────────────────────────────────────── */

.editorial > ul { list-style: none; padding: 0; margin: 0 0 1.3rem; }
.editorial > ul > li { position: relative; padding-left: 1.5rem; font-size: 1.05rem; color: #3f4448; line-height: 1.7; margin-bottom: 0.7rem; }
.editorial > ul > li::before { content: '→'; position: absolute; left: 0; color: var(--stuk-green); font-weight: 700; }
.editorial > ol { padding-left: 1.5rem; margin: 0 0 1.3rem; }
.editorial > ol > li { font-size: 1.05rem; color: #3f4448; line-height: 1.7; margin-bottom: 0.7rem; }

/*
 * Seznamy se stylem ŠTUK (Karty, Karty s čísly, Kroky, Časová osa, Čísla,
 * Kontakty). Tučný začátek položky je její nadpis a text pokračuje na dalším
 * řádku (Shift + Enter); zalomení hned za nadpisem se skryje.
 */
.editorial :is(ul, ol)[class*="is-style-stuk-"] { list-style: none; padding: 0; margin: 2.5rem 0 0; }
.editorial :is(ul, ol)[class*="is-style-stuk-"] > li { padding-left: 0; margin-bottom: 0; }
.editorial :is(ul, ol)[class*="is-style-stuk-"] > li::before { content: none; }
.editorial :is(ul, ol)[class*="is-style-stuk-"] > li > strong:first-child { display: block; }
.editorial :is(ul, ol)[class*="is-style-stuk-"] > li > strong + br { display: none; }

/* Karty */
.editorial :is(ul, ol).is-style-stuk-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.editorial :is(ul, ol).is-style-stuk-cards > li { background: #fff; border-radius: var(--border-radius); box-shadow: var(--shadow-light); padding: 1.75rem; border-top: 3px solid var(--stuk-green); font-size: 0.9rem; color: var(--medium-gray); line-height: 1.6; }
.editorial :is(ul, ol).is-style-stuk-cards > li > strong:first-child { font-size: 1.1rem; color: var(--dark-gray); margin-bottom: 0.5rem; }

/* Karty s čísly */
.editorial :is(ul, ol).is-style-stuk-offers { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; counter-reset: stuk-offer; }
.editorial :is(ul, ol).is-style-stuk-offers > li { counter-increment: stuk-offer; background: #fff; border-radius: var(--border-radius); box-shadow: var(--shadow-light); padding: 1.75rem; font-size: 0.9rem; color: var(--medium-gray); line-height: 1.6; }
.editorial :is(ul, ol).is-style-stuk-offers > li::before { content: counter(stuk-offer, decimal-leading-zero); display: block; font-size: 2rem; font-weight: 900; color: var(--stuk-green); line-height: 1; margin-bottom: 0.5rem; }
.editorial :is(ul, ol).is-style-stuk-offers > li > strong:first-child { font-size: 1.05rem; color: var(--dark-gray); margin-bottom: 0.5rem; }

/* Kroky */
.editorial :is(ul, ol).is-style-stuk-steps { margin-top: 2rem; counter-reset: stuk-step; }
.editorial :is(ul, ol).is-style-stuk-steps > li { counter-increment: stuk-step; position: relative; padding: 1.25rem 1.25rem 1.25rem 4rem; background: #fff; border-radius: var(--border-radius); box-shadow: var(--shadow-light); margin-bottom: 1rem; font-size: 0.95rem; color: var(--dark-gray); line-height: 1.6; }
.editorial :is(ul, ol).is-style-stuk-steps > li::before { content: counter(stuk-step); position: absolute; left: 1.25rem; top: 1.25rem; width: 28px; height: 28px; background: var(--stuk-green); color: #fff; border-radius: 50%; font-weight: 900; font-size: 0.85rem; display: flex; align-items: center; justify-content: center; }
.editorial :is(ul, ol).is-style-stuk-steps > li > strong:first-child { margin-bottom: 0.25rem; }

/* Časová osa: rok, nadpis, text — každé na svém řádku */
.editorial :is(ul, ol).is-style-stuk-timeline > li { position: relative; padding: 1.25rem 0 1.25rem calc(80px + 1.5rem); border-bottom: 1px solid #eee; font-size: 0.87rem; color: var(--medium-gray); line-height: 1.5; }
.editorial :is(ul, ol).is-style-stuk-timeline > li:last-child { border-bottom: none; }
.editorial :is(ul, ol).is-style-stuk-timeline > li > strong:first-child { position: absolute; left: 0; top: 1.25rem; width: 80px; padding-top: 0.15rem; font-size: 1.4rem; font-weight: 900; color: var(--stuk-green); line-height: 1; }
.editorial :is(ul, ol).is-style-stuk-timeline > li > strong:nth-of-type(2) { display: block; font-size: 0.95rem; color: var(--dark-gray); line-height: 1.6; margin-bottom: 0.25rem; }

/* Čísla */
.editorial :is(ul, ol):is(.is-style-stuk-stats, .is-style-stuk-stats-center) { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 2rem; }
.editorial :is(ul, ol):is(.is-style-stuk-stats, .is-style-stuk-stats-center) > li { font-size: 0.85rem; color: var(--medium-gray); line-height: 1.6; }
.editorial :is(ul, ol).is-style-stuk-stats-center > li { text-align: center; padding: 1.5rem; }
.editorial :is(ul, ol):is(.is-style-stuk-stats, .is-style-stuk-stats-center) > li > strong:first-child { font-size: 3rem; font-weight: 900; color: var(--stuk-green); line-height: 1; margin-bottom: 0.3rem; }

/* Kontakty */
.editorial :is(ul, ol).is-style-stuk-contact { display: flex; flex-wrap: wrap; gap: 2rem; align-items: flex-start; background: #fff; border-radius: var(--border-radius); box-shadow: var(--shadow-light); padding: 2rem; margin-top: 2rem; }
.editorial :is(ul, ol).is-style-stuk-contact > li { font-size: 0.9rem; color: var(--medium-gray); line-height: 1.6; }
.editorial :is(ul, ol).is-style-stuk-contact > li > strong:first-child { font-size: 1.1rem; color: var(--dark-gray); margin-bottom: 0.5rem; }
.editorial :is(ul, ol).is-style-stuk-contact a { color: var(--stuk-green); text-decoration: none; font-weight: 600; }

/* ── Tlačítka ───────────────────────────────────────────────────────────────── */

.editorial .wp-block-buttons { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 2.5rem 0 0.75rem; }
.editorial .wp-block-buttons.is-content-justification-center { justify-content: center; }
.editorial .wp-block-button__link { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.8rem 2rem; border-radius: var(--border-radius); background: var(--stuk-green); color: #fff; box-shadow: var(--shadow-light); font-size: 1rem; font-weight: 600; line-height: 1.6; text-align: center; text-decoration: none; transition: all 0.3s ease; }
.editorial .wp-block-button__link:hover { background: var(--stuk-green-dark); color: #fff; transform: translateY(-2px); box-shadow: var(--shadow-medium); }

/* ── Oddělovač sekcí (vidět je jen v editoru, na webu z něj vznikne nová sekce) ── */

.editorial hr.wp-block-separator.wp-block-separator { position: relative; width: auto; height: 0; margin: 3rem 0; border: 0; border-top: 2px dashed var(--stuk-green); background: none; opacity: 1; overflow: visible; }
.editorial hr.wp-block-separator::after { content: 'Nová sekce'; position: absolute; left: 50%; top: -0.75em; transform: translateX(-50%); padding: 0 0.6rem; background: #fff; color: var(--stuk-green-dark); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.editorial hr.is-style-stuk-bg-light::after { content: 'Nová sekce · šedé pozadí'; }
.editorial hr.is-style-stuk-bg-white::after { content: 'Nová sekce · bílé pozadí'; }
