/* ==========================================================================
   WordPress + Elementor compatibility for the Scott K. Harris design.
   ========================================================================== */

/* Elementor wrappers must not add spacing around the design's sections. */
.skh .elementor-section.elementor-section-full_width > .elementor-container { max-width: none; }
.skh .elementor-column-gap-no > .elementor-column > .elementor-element-populated { padding: 0; }
.skh .elementor-widget[class*="elementor-widget-skh_"] { margin: 0 !important; width: 100%; }
.skh .elementor-widget[class*="elementor-widget-skh_"] > .elementor-widget-container { margin: 0; padding: 0; }
.skh .elementor-section { margin: 0; }

/* Elementor resets images inside its content (height:auto, radius 0). Restore the design's values. */
.skh .elementor .st-i img,
.skh .elementor .st-t img { height: 100%; }
.skh .elementor .reel-i img { height: 100%; }

/* Facts strip (12 / 1978 / 35+ / 1,000+).
   An older ".facts{display:grid;repeat(3,1fr)}" rule in site.css squeezed the whole row into one third. */
section.facts { display: block; grid-template-columns: none; }
section.facts .fgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 30px; align-items: start; }
section.facts .fgrid > div { min-width: 0; }
section.facts .fgrid b { white-space: nowrap; }
@media (max-width: 1000px) {
	section.facts .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 24px; }
}
@media (max-width: 640px) {
	section.facts { padding: 44px 0; }
	section.facts .fgrid b { font-size: clamp(36px, 11vw, 52px); }
	section.facts .fgrid span { font-size: 15px; max-width: none; }
}
@media (max-width: 360px) {
	section.facts .fgrid { grid-template-columns: 1fr; gap: 26px; }
}

/* Header & footer templates: let the original markup behave as if it were a direct child of <body>,
   so the sticky header and full-screen mobile menu work exactly like the design. */
body:not(.elementor-editor-active) .skh-hf-header,
body:not(.elementor-editor-active) .skh-hf-header .elementor,
body:not(.elementor-editor-active) .skh-hf-header .elementor-section,
body:not(.elementor-editor-active) .skh-hf-header .elementor-container,
body:not(.elementor-editor-active) .skh-hf-header .elementor-column,
body:not(.elementor-editor-active) .skh-hf-header .elementor-widget-wrap,
body:not(.elementor-editor-active) .skh-hf-header .elementor-widget,
body:not(.elementor-editor-active) .skh-hf-header .elementor-widget-container,
body:not(.elementor-editor-active) .skh-hf-header .e-con,
body:not(.elementor-editor-active) .skh-hf-header .e-con-inner,
body:not(.elementor-editor-active) .skh-hf-header [data-skh-frag] { display: contents; }
[data-skh-frag] { display: contents; }

/* WordPress admin bar offset for the sticky header + mobile menu. */
.admin-bar .hdr { top: 32px; }
.admin-bar .mnav { top: calc(84px + 32px); }
@media (max-width: 782px) {
	.admin-bar .hdr { top: 46px; }
	.admin-bar .mnav { top: calc(84px + 46px); }
}
@media (max-width: 600px) {
	.admin-bar .hdr { top: 0; }
	#wpadminbar { position: absolute; }
}

/* Inside the Elementor editor show everything (no scroll-reveal waiting). */
.elementor-editor-active .rv,
.elementor-editor-active .qa-card { opacity: 1 !important; transform: none !important; }

/* Form status message */
.skh-form-err { color: var(--coral); font-weight: 600; margin-top: 12px; }
.form button[disabled] { opacity: .6; pointer-events: none; }

/* Plain WordPress content (posts, non-Elementor pages) */
.skh-prose { max-width: 820px; }
.skh-prose > * + * { margin-top: 1.1em; }
.skh-prose h2 { font-size: clamp(30px, 4vw, 44px); margin-top: 1.4em; }
.skh-prose h3 { margin-top: 1.3em; }
.skh-prose a { text-decoration: underline; text-underline-offset: 3px; }
.skh-prose ul, .skh-prose ol { padding-left: 1.3em; }
.skh-prose img { border-radius: 20px; height: auto; }
.skh-posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.skh-card { background: #fff; border-radius: 24px; padding: 28px; }
.skh-card small { color: var(--mute); font-size: 14px; }
.skh-card h3 { margin: 10px 0; }
.skh-card p { color: var(--mute); font-size: 16px; }
.nav-links { display: flex; gap: 8px; margin-top: 30px; }
.nav-links .page-numbers { padding: 8px 14px; border-radius: 99px; background: var(--sand); }
.nav-links .current { background: var(--ink); color: var(--cream); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); }
