/* Zenant & Herbart: details theme.json cannot express. Loaded on the site and in the editor. */

:root {
	--zh-ink: var(--wp--preset--color--ink, #1A1814);
	--zh-body: var(--wp--preset--color--body, #3B3731);
	--zh-quiet: var(--wp--preset--color--muted, #6E675D);
	--zh-gold: var(--wp--preset--color--gold, #A8873A);
	--zh-gold-deep: var(--wp--preset--color--gold-deep, #82631A);
	--zh-line: var(--wp--preset--color--line, #E7E0D2);
	--zh-ivory: var(--wp--preset--color--ivory, #F8F5EE);
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
p { text-wrap: pretty; }
:where(h1, h2, h3) { text-wrap: balance; }
:focus-visible { outline: 2px solid var(--zh-gold); outline-offset: 2px; }

/* Wordmark: the same everywhere */
.zh-wordmark { margin: 0; font-family: var(--wp--preset--font-family--wordmark); font-size: 28px; font-weight: 600; line-height: 1.1; letter-spacing: 0.01em; }
.zh-wordmark a { color: var(--zh-ink); text-decoration: none; }
.zh-wordmark em { font-style: italic; font-weight: 500; color: #8A6A1F; }
.zh-wordmark-small { font-size: 23px; }

/* Small text roles */
.zh-kicker { margin: 0; font-size: 15px; font-weight: 600; color: var(--zh-gold-deep); }
.zh-quiet { color: var(--zh-quiet); }
.zh-ulink { margin: 0; }
.zh-ulink a { color: var(--zh-ink); font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--zh-gold); padding-bottom: 2px; }
.zh-ulink a:hover { color: var(--zh-gold-deep); }

/* Header */
.zh-header .wp-block-navigation a { color: var(--zh-body); text-decoration: none; }
.zh-header .wp-block-navigation a:hover { color: var(--zh-gold-deep); }
.zh-account-link { margin: 0; font-size: 16px; }
.zh-account-link a { color: var(--zh-body); text-decoration: none; }
.zh-account-link a:hover { color: var(--zh-gold-deep); }
.zh-btn-compact .wp-block-button__link { padding: 11px 20px; }
.wp-block-navigation__responsive-container.is-menu-open { padding: 24px 28px; }

/* Batch details strip */
.zh-strip .wp-block-column { padding: 22px 24px; }
.zh-strip .wp-block-column:first-child { padding-left: 0; }
.zh-strip .wp-block-column + .wp-block-column { border-left: 1px solid var(--zh-line); }
.zh-strip .wp-block-column > * { margin: 0; }
.zh-strip .wp-block-column > * + * { margin-top: 2px; }

/* Five teaching steps (table block) */
.wp-block-table.zh-steps table { border-collapse: collapse; width: 100%; border-top: 1px solid var(--zh-ink); }
.wp-block-table.zh-steps td { border: 0; border-bottom: 1px solid var(--zh-line); padding: 20px 16px 20px 0; vertical-align: baseline; }
.wp-block-table.zh-steps td:first-child { width: 64px; font-family: var(--wp--preset--font-family--heading); font-size: 20px; color: var(--zh-gold); }
.wp-block-table.zh-steps td:nth-child(2) { width: 30%; font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--large); color: var(--zh-ink); }
.wp-block-table.zh-steps td:nth-child(3) { color: var(--zh-quiet); }

/* Programme list (table block) */
.wp-block-table.zh-programmes { overflow-x: auto; }
.wp-block-table.zh-programmes table { border-collapse: collapse; width: 100%; min-width: 640px; }
.wp-block-table.zh-programmes thead { border-bottom: 1px solid var(--zh-ink); }
.wp-block-table.zh-programmes th { border: 0; padding: 0 16px 10px 0; text-align: left; font-size: 14px; font-weight: 600; color: var(--zh-quiet); }
.wp-block-table.zh-programmes td { border: 0; border-bottom: 1px solid var(--zh-line); padding: 22px 16px 22px 0; vertical-align: middle; }
.wp-block-table.zh-programmes td:first-child { font-family: var(--wp--preset--font-family--heading); font-size: var(--wp--preset--font-size--large); }
.wp-block-table.zh-programmes td:first-child a { color: var(--zh-ink); text-decoration: none; }
.wp-block-table.zh-programmes td:first-child a:hover { color: var(--zh-gold-deep); }
.wp-block-table.zh-programmes td:last-child { font-weight: 600; color: var(--zh-ink); white-space: nowrap; }
.wp-block-table.zh-programmes tbody tr { transition: background .2s ease; }
.wp-block-table.zh-programmes tbody tr:hover { background: #FBF9F4; }

/* Prices */
.zh-amount { font-variant-numeric: tabular-nums; }
.zh-fee { margin: 0 0 14px; font-family: var(--wp--preset--font-family--heading); font-size: 34px; color: var(--zh-ink); }

/* Photo placeholders (cover blocks without an image) */
.wp-block-cover.zh-photo { padding: 16px; }
.wp-block-cover.zh-photo .wp-block-cover__inner-container { width: 100%; }

/* Columns with dividers and ruled tops */
.zh-ruled { border-top: 1px solid var(--zh-ink); padding-top: 18px; }
.zh-divided > .wp-block-column { padding-right: 32px; }
.zh-divided > .wp-block-column + .wp-block-column { border-left: 1px solid var(--zh-line); padding-left: 32px; }

/* Founder quote */
.zh-founder-quote { margin: 0; padding: 0; }
.zh-founder-quote p { font-family: var(--wp--preset--font-family--heading); font-size: 28px; line-height: 1.35; color: var(--zh-ink); }
.zh-founder-quote p::before { content: "\201C"; }
.zh-founder-quote p::after { content: "\201D"; }
.zh-founder-quote cite { display: block; margin-top: 12px; font-family: var(--wp--preset--font-family--body); font-size: 16px; font-style: normal; color: var(--zh-quiet); }

/* Footer */
.zh-footer-title { font-family: var(--wp--preset--font-family--body) !important; font-size: 15px !important; font-weight: 700; margin-bottom: 4px; }
.zh-footer-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.zh-footer a, .zh-footer-list a { color: var(--zh-body); text-decoration: none; }
.zh-footer a:hover { color: var(--zh-gold-deep); }
.zh-footer-contact { line-height: 1.8; margin: 0; }
.zh-footer-base p { margin: 0; }

/* Fade in. Only applies when scripts run, so content is never hidden without them. */
.zh-js .zh-fade { opacity: 0; transform: translateY(10px); transition: opacity .9s ease, transform .9s ease; }
.zh-js .zh-fade.is-in { opacity: 1; transform: none; }
.editor-styles-wrapper .zh-fade { opacity: 1 !important; transform: none !important; }
@media (prefers-reduced-motion: reduce) { .zh-js .zh-fade { opacity: 1; transform: none; transition: none; } }

/* Registration popup */
.zh-modal-open { overflow: hidden; }
.zh-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.zh-modal[hidden] { display: none; }
.zh-modal__backdrop { position: absolute; inset: 0; background: rgba(26, 24, 20, 0.45); }
.zh-modal__box { position: relative; width: 100%; max-width: 760px; max-height: 100%; overflow-y: auto; background: #FFFFFF; border-top: 3px solid var(--zh-gold); display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); animation: zhPop .4s ease both; }
@keyframes zhPop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .zh-modal__box { animation: none; } }
.zh-modal__close { position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; background: transparent; color: var(--zh-quiet); font-size: 26px; line-height: 1; cursor: pointer; z-index: 1; }
.zh-modal__side { background: var(--zh-ivory); padding: 36px 30px; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; }
.zh-modal__side h2, .zh-thanks h2 { margin: 0; font-size: 32px; }
.zh-modal__side p, .zh-thanks p { margin: 0; }
.zh-modal__main { padding: 36px 30px 30px; }
.zh-form { display: flex; flex-direction: column; gap: 12px; }
.zh-form label { display: flex; flex-direction: column; gap: 5px; font-size: 15px; font-weight: 600; color: var(--zh-ink); }
.zh-form input[type="text"], .zh-form input[type="tel"], .zh-form input[type="email"], .zh-form select { font: inherit; font-size: 16px; font-weight: 400; padding: 11px 13px; border: 1px solid #D8CFBD; border-radius: 0; background: #FFFFFF; color: var(--zh-ink); }
.zh-form__consent { flex-direction: row !important; align-items: flex-start; gap: 10px !important; font-size: 14px !important; font-weight: 400 !important; color: var(--zh-quiet) !important; line-height: 1.45; }
.zh-form__consent input { width: 18px; height: 18px; margin-top: 2px; flex: none; accent-color: var(--zh-gold); }
.zh-form__error { margin: 0; color: #9B2C1F; font-size: 15px; }
.zh-form .wp-block-button__link, .zh-thanks .wp-block-button__link { width: 100%; cursor: pointer; }
.zh-thanks { display: flex; flex-direction: column; gap: 12px; justify-content: center; min-height: 100%; }
.zh-thanks[hidden], .zh-form[hidden] { display: none; }
.zh-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Classroom (LMS) screens: app layout, no website header or footer */
.zh-classroom { background: #F6F3EC; }
.zh-classroom-bar { position: sticky; top: 0; z-index: 50; }
.admin-bar .zh-classroom-bar { top: 32px; }

/* Small screens */
@media (max-width: 781px) {
	.zh-strip .wp-block-column { padding: 18px 0; }
	.zh-strip .wp-block-column + .wp-block-column { border-left: 0; border-top: 1px solid var(--zh-line); }
	.zh-divided > .wp-block-column, .zh-divided > .wp-block-column + .wp-block-column { padding: 0; border-left: 0; }
	.zh-divided > .wp-block-column + .wp-block-column { border-top: 1px solid var(--zh-line); padding-top: 24px; }
	.wp-block-table.zh-steps td:nth-child(2) { width: auto; }
	.wp-block-table.zh-steps tr { display: grid; grid-template-columns: 48px 1fr; }
	.wp-block-table.zh-steps td:nth-child(3) { grid-column: 2; padding-top: 0; }
	.wp-block-table.zh-steps td:first-child, .wp-block-table.zh-steps td:nth-child(2) { border-bottom: 0; }
	.wp-block-cover.zh-photo { min-height: 300px !important; }
	.zh-header .wp-block-buttons { display: none; }
}

/* Bands sit flush against each other, with no white gaps between them */
.wp-site-blocks > * + * { margin-block-start: 0; }
.wp-block-post-content > .alignfull { margin-block: 0; }
.zh-band-action .wp-block-buttons { justify-content: flex-end; }
@media (max-width: 781px) { .zh-band-action .wp-block-buttons { justify-content: flex-start; } }
.zh-ts:empty { display: none; }
.zh-ts { min-height: 65px; }
