/*
 * Zinn SEO Content — shared styles for the consolidated category/shop SEO blocks.
 * Class names + values are the SAME as the old per-snippet <style> blocks so the
 * rendered block looks identical. One stylesheet replaces ~101 inline <style> tags.
 * Versioned filename (Cloudflare strips ?ver=, house rules §16).
 *
 * 1-0-2 (2026-07-04): toggle label markup changed — the visible label now lives in
 * .zh-seo-toggle-text and BOTH label variants are emitted as hidden buffer-translatable
 * spans (so the "Learn more / Show less" text localises on /{lang}/ pages instead of the
 * JS re-injecting raw English from data-* attributes). Added the belt-and-braces
 * .zh-seo-toggle [hidden] rule so the hidden label spans never render even inside a flex
 * button. No visual change to the button itself.
 *
 * 1-0-1 (2026-06-28): body text recoloured from white (rgba(255,255,255,…) — a leftover
 * from the old DARK-background snippets) to a readable dark on the live CREAM/light shop
 * + category pages; paragraphs / list-items / FAQ answers / HowTo steps were invisible
 * (white-on-cream) once the snippets were consolidated into this plugin. ONLY the four
 * white text colours changed — gold headings/links/strong (#f5a623) are untouched.
 */

/* The server-rendered holder stays hidden; the shared script moves the wrapper into
 * the page target. If JS never runs the copy stays in the DOM for crawlers (same
 * JS-dependent visibility the old snippets had) without a misplaced flash. */
.zsc-holder { display: none !important; }

.zh-seo-content-wrapper { margin-top: 0.75rem; font-size: 0.95rem; line-height: 1.6; }
.zh-seo-content { max-height: 0; overflow: hidden; transition: max-height 0.4s ease-out; opacity: 0.95; }
.zh-seo-content.zh-expanded { max-height: 12000px; transition: max-height 0.6s ease-in; }
.zh-seo-content h2 { font-size: 1.2rem; margin: 1rem 0 0.6rem; color: #f5a623; }
.zh-seo-content h3 { font-size: 1.05rem; margin: 1rem 0 0.5rem; color: #f5a623; }
.zh-seo-content p { margin: 0.5rem 0; color: #3d3a30; }
.zh-seo-content a { color: #f5a623; text-decoration: underline; text-decoration-color: rgba(245, 166, 35, 0.4); text-underline-offset: 2px; transition: text-decoration-color 0.2s ease; }
.zh-seo-content a:hover { text-decoration-color: #f5a623; }
.zh-seo-content > ul { margin: 0.6rem 0; padding-left: 1.25rem; }
.zh-seo-content > ul li { margin: 0.35rem 0; color: #3d3a30; }
.zh-seo-content strong { color: #f5a623; }

.zh-seo-toggle { background: transparent; border: 1px solid rgba(245, 166, 35, 0.6); color: #f5a623; padding: 0.4rem 1rem; border-radius: 4px; cursor: pointer; font-size: 0.85rem; margin-top: 0.5rem; transition: all 0.2s ease; display: inline-flex; align-items: center; gap: 0.4rem; }
.zh-seo-toggle:hover { background: rgba(245, 166, 35, 0.15); border-color: #f5a623; }
.zh-seo-toggle:focus-visible { outline: 2px solid #f5a623; outline-offset: 2px; }
.zh-seo-toggle .zh-arrow { display: inline-block; transition: transform 0.3s ease; font-size: 0.7rem; }
.zh-seo-toggle.zh-active .zh-arrow { transform: rotate(180deg); }
/* Hidden label spans carry the buffer-translated "Learn more / Show less" text for the
 * JS to read; they must never render, even as flex children. */
.zh-seo-toggle [hidden] { display: none !important; }

.zh-faq-section { margin-top: 1.25rem; border-top: 1px solid rgba(245, 166, 35, 0.2); padding-top: 0.75rem; }
.zh-faq-section h3 { font-size: 1.05rem; margin: 1rem 0 0.5rem; color: #f5a623; }
.zh-faq-item { margin-bottom: 0.6rem; border: 1px solid rgba(245, 166, 35, 0.15); border-radius: 5px; overflow: hidden; }
.zh-faq-question { background: rgba(245, 166, 35, 0.08); padding: 0.6rem 0.85rem; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: 0.9rem; color: #f5a623; transition: background 0.2s ease; }
.zh-faq-question:hover { background: rgba(245, 166, 35, 0.15); }
.zh-faq-question:focus-visible { outline: 2px solid #f5a623; outline-offset: -2px; }
.zh-faq-question .zh-faq-icon { font-size: 1.1rem; transition: transform 0.3s ease; flex-shrink: 0; margin-left: 0.5rem; }
.zh-faq-item.zh-open .zh-faq-question .zh-faq-icon { transform: rotate(45deg); }
.zh-faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, padding 0.3s ease; padding: 0 0.85rem; color: #3d3a30; font-size: 0.9rem; }
.zh-faq-item.zh-open .zh-faq-answer { max-height: 600px; padding: 0.75rem 0.85rem; transition: max-height 0.4s ease-in, padding 0.3s ease; }
.zh-faq-answer p { margin: 0; }

.zh-howto-section { margin-top: 1.25rem; border-top: 1px solid rgba(245, 166, 35, 0.2); padding-top: 0.75rem; }
.zh-howto-section h2 { font-size: 1.2rem; margin: 1rem 0 0.6rem; color: #f5a623; }
.zh-howto-section h3 { font-size: 1.05rem; margin: 1rem 0 0.5rem; color: #f5a623; }
.zh-howto-steps { counter-reset: howto-step; margin: 0.6rem 0; padding-left: 0; list-style: none; }
.zh-howto-step { margin-bottom: 0.75rem; padding-left: 2.5rem; position: relative; color: #3d3a30; }
.zh-howto-step::before { counter-increment: howto-step; content: counter(howto-step); position: absolute; left: 0; top: 0; width: 1.8rem; height: 1.8rem; background: rgba(245, 166, 35, 0.15); border: 1px solid rgba(245, 166, 35, 0.4); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #f5a623; font-weight: 700; font-size: 0.85rem; }
.zh-howto-step strong { color: #f5a623; display: block; margin-bottom: 0.2rem; }
.zh-howto-step-title { color: #f5a623; font-weight: 700; display: block; margin-bottom: 0.2rem; }
.zh-howto-step-text { display: block; }

/* Shop-page category/explore pills (the /zinns/ block uses these). */
.zh-category-links { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; }
.zh-category-links a { display: inline-block; padding: 0.35rem 0.8rem; border: 1px solid rgba(245, 166, 35, 0.4); border-radius: 999px; font-size: 0.85rem; color: #f5a623; text-decoration: none; transition: all 0.2s ease; }
.zh-category-links a:hover { background: rgba(245, 166, 35, 0.15); border-color: #f5a623; }

@media (max-width: 768px) {
	.zh-seo-content h2 { font-size: 1.15rem; }
	.zh-seo-content h3 { font-size: 1rem; }
	.zh-howto-step { padding-left: 2.2rem; }
	.zh-faq-question { font-size: 0.88rem; }
}
