/*
 * Sianah blocks — structural styles plus neutral defaults.
 * Every visual rule sits inside :where() (zero specificity) so any theme can
 * restyle it without !important. Colours come from the theme's presets with
 * plain fallbacks, so the blocks also work in other themes.
 */
.sianah-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
:where(.sianah-empty) { margin: 0; padding: 1.25rem 1.5rem; border: 1px dashed var(--wp--preset--color--line, #ccc); border-radius: .5rem; color: var(--wp--preset--color--ink-soft, #555); text-align: center; }
:where(.sianah-notice) { grid-column: 1 / -1; margin: 0 0 1rem; padding: .85rem 1rem; border-inline-start: 3px solid currentColor; border-radius: .5rem; background: var(--wp--preset--color--paper-2, #f4f4f4); }
:where(.sianah-notice.is-ok) { color: var(--wp--preset--color--green, #004714); }
:where(.sianah-notice.is-error) { color: #8a1c1c; }
.sianah-notice:focus { outline: none; }

/* Forms */
.sianah-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); gap: 1rem 1.5rem; }
.sianah-field { margin: 0; display: flex; flex-direction: column; gap: .4rem; }
.sianah-field--full { grid-column: 1 / -1; }
:where(.sianah-field label) { font-weight: 600; }
:where(.sianah-check label) { font-weight: 400; display: flex; gap: .5rem; align-items: center; }
:where(.sianah-form__required) { margin: 0; font-size: .875rem; color: var(--wp--preset--color--ink-soft, #555); }
:where(.sianah-form small, .sianah-subscribe__consent) { font-size: .875rem; }
.sianah-form :is(input:not([type=checkbox]), select, textarea),
.sianah-subscribe__form input, .sianah-qa-finder__form input[type=search] { box-sizing: border-box; width: 100%; font: inherit; color: inherit; }
:where(.sianah-form input:not([type=checkbox]), .sianah-form select, .sianah-form textarea, .sianah-subscribe__form input, .sianah-qa-finder__form input[type=search]) {
	min-height: 2.9rem; padding: .6rem .85rem;
	background: var(--wp--preset--color--white, #fff); border: 1px solid #7d867f; border-radius: .5rem;
}
.sianah-form textarea { min-height: 9rem; resize: vertical; }
:where(.sianah-form button, .sianah-subscribe__form button, .sianah-qa-finder__form button) {
	font: inherit; font-weight: 600; cursor: pointer; min-height: 2.9rem; padding: .6rem 1.4rem; border: 0; border-radius: .5rem;
	background: var(--wp--preset--color--green, #004714); color: var(--wp--preset--color--white, #fff);
}
:where(.sianah-form button:hover, .sianah-subscribe__form button:hover, .sianah-qa-finder__form button:hover) { background: var(--wp--preset--color--green-deep, #002e1a); }
:where(.sianah-form__hint) { color: var(--wp--preset--color--ink-soft, #555); margin-inline-start: .75rem; }
:where(.sianah-form, .sianah-subscribe__form, .sianah-qa-finder__form) :focus-visible { outline: 3px solid currentColor; outline-offset: 2px; }

/* Subscribe */
:where(.sianah-subscribe__form label) { display: block; margin-bottom: .5rem; }
.sianah-subscribe__row { display: flex; gap: .5rem; }
.sianah-subscribe__row input { flex: 1; min-width: 0; }
:where(.sianah-subscribe__consent) { display: block; margin-top: .6rem; opacity: .85; }

/* Q&A finder */
.sianah-qa-finder__form { display: flex; gap: .5rem; }
.sianah-qa-finder__form input[type=search] { flex: 1; min-width: 0; }
:where(.sianah-qa-finder__form input[type=search]) { min-height: 3.25rem; font-size: 1.1em; }
.sianah-qa-finder__topics, .sianah-qa-finder__subtopics { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.sianah-qa-finder__subtopics { margin-top: .75rem; }
:where(.sianah-qa-finder__topics a, .sianah-qa-finder__subtopics a) {
	display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .85rem; text-decoration: none; color: inherit;
	border: 1px solid var(--wp--preset--color--line, #ccc); border-radius: 999px; background: var(--wp--preset--color--white, #fff);
}
:where(.sianah-qa-finder__topics a:hover, .sianah-qa-finder__subtopics a:hover) { border-color: currentColor; }
:where(.sianah-qa-finder__topics a[aria-current], .sianah-qa-finder__subtopics a[aria-current]) {
	background: var(--wp--preset--color--green, #004714); border-color: var(--wp--preset--color--green, #004714); color: var(--wp--preset--color--white, #fff);
}
:where(.sianah-qa-finder .count) { font-size: .875rem; opacity: .8; }

/* Stats */
.sianah-stats__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); margin: 0; }
:where(.sianah-stats__item) { padding: .5rem 1.25rem; border-inline-start: 1px solid var(--wp--preset--color--line, #ccc); }
.sianah-stats__item dd { margin: 0; }
:where(.sianah-stats__note) { margin: .15rem 0 0; font-size: .875rem; opacity: .8; }

/* Initiatives strip */
.sianah-initiatives { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1.25rem; }
.sianah-initiatives__label { margin: 0; display: inline-flex; align-items: center; gap: .5rem; font-weight: 700; }
.sianah-initiatives__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
:where(.sianah-initiatives__title) { font-weight: 600; }
:where(.sianah-initiatives__text) { margin-inline-start: .6rem; opacity: .85; }
.sianah-pulse { width: .55rem; height: .55rem; border-radius: 50%; background: var(--wp--preset--color--lime, #7fc241); box-shadow: 0 0 0 0 rgba(127, 194, 65, .6); animation: sianah-pulse 2.4s infinite; }
@keyframes sianah-pulse { 70% { box-shadow: 0 0 0 .55rem rgba(127, 194, 65, 0); } 100% { box-shadow: 0 0 0 0 rgba(127, 194, 65, 0); } }
@media (prefers-reduced-motion: reduce) { .sianah-pulse { animation: none; } }

/* Lite YouTube */
.sianah-yt { position: relative; display: block; width: 100%; aspect-ratio: 16 / 9; padding: 0; border: 0; background: #000; cursor: pointer; overflow: hidden; }
:where(.sianah-yt) { border-radius: .75rem; }
.sianah-yt img { width: 100%; height: 100%; object-fit: cover; opacity: .88; transition: opacity .2s; }
.sianah-yt:hover img, .sianah-yt:focus-visible img { opacity: 1; }
.sianah-yt__play { position: absolute; inset: 50% auto auto 50%; width: 4.5rem; height: 4.5rem; translate: -50% -50%; border-radius: 50%; }
:where(.sianah-yt__play) { background: var(--wp--preset--color--white, #fff); }
.sianah-yt__play::after { content: ""; position: absolute; inset: 50% auto auto 54%; translate: -50% -50%; border-style: solid; border-width: .8rem 0 .8rem 1.3rem; border-color: transparent; }
:where(.sianah-yt__play)::after { border-left-color: var(--wp--preset--color--green, #004714); }
.sianah-yt--live { height: auto; }
:where(.sianah-yt__title) { margin: .75rem 0 0; font-weight: 600; }

/* Definition lists (event meta, contact info) */
.sianah-event-meta dl, .sianah-contact-info dl { margin: 0; display: grid; gap: .6rem; }
.sianah-event-meta dl > div, .sianah-contact-info dl > div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; }
:where(.sianah-event-meta dt, .sianah-contact-info dt) { opacity: .75; }
.sianah-event-meta dd, .sianah-contact-info dd { margin: 0; }

/* Share */
.sianah-share { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; }
:where(.sianah-share a, .sianah-share button) { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: .25em; }
:where(.sianah-share__label) { opacity: .75; }
