/* Knowell Dental: WordPress adjustments layered on top of knowell.css (the approved design). */

/* Block theme wrappers add no spacing of their own. */
.wp-site-blocks{padding:0}
.wp-site-blocks>header.wp-block-template-part,.wp-site-blocks>footer.wp-block-template-part{margin:0}
#main>.entry-content>*{margin-block:0}

/* Scroll reveal only hides content once JavaScript is running (no-JS, crawlers and print stay visible). */
html:not(.js) .reveal{opacity:1;transform:none}
@media print{.reveal{opacity:1!important;transform:none!important}.site-header,.sticky-cta,.wa-float{display:none!important}}

/* Fixed header sits below the WordPress admin bar for logged-in users. */
.admin-bar .site-header{top:32px}
@media(max-width:782px){.admin-bar .site-header{top:46px}}
@media(max-width:600px){.admin-bar .site-header{top:0}}

/* Templates without a page hero (posts, archives, 404, search) clear the fixed header. */
body:not(.page):not(.single-treatment) .wp-site-blocks>main{padding-top:140px;padding-bottom:4rem}

/* Footer columns are <nav> elements in WordPress; keep the original column styling. */
.foot>nav{min-width:0}

/* Eyebrow spark drawn in CSS, so editing the eyebrow text in the block editor never removes it. */
.eyebrow.kd-spark::before{content:"";flex:none;width:12px;height:12px;background:var(--color-primary);clip-path:polygon(50% 0,62% 38%,100% 50%,62% 62%,50% 100%,38% 62%,0 50%,38% 38%)}
.hero .eyebrow.kd-spark::before,.hero2 .eyebrow.kd-spark::before,.section-dark .eyebrow.kd-spark::before,.cx-hero .eyebrow.kd-spark::before{background:#5b8fe0}
.dc-sec .eyebrow.kd-spark::before{background:#fff}

/* Optional disclosure under a dentist portrait (Dentists > Portrait disclosure). */
.kd-portrait-note{font-size:.75rem;line-height:1.4;color:#5a6a78;margin:.5rem 0 0}
.section-dark .kd-portrait-note,.dc-sec .kd-portrait-note{color:#c8d2df}

/* Honest status for forms that are not connected yet. */
.kd-form-status{grid-column:1/-1;margin-top:1rem;padding:.9rem 1rem;border-left:3px solid var(--color-primary);background:#eef3fb;color:var(--color-dark-navy);font-size:.92rem;line-height:1.6}
.kd-form-status a{text-decoration:underline}

/* Treatment hero booking form. The approved HTML ships it switched off; the brief requires it on.
   Clinic Details > "Show booking form on treatment pages" adds body.kd-forms-on (desktop: beside the intro, <=900px: stacked). */
body.kd-forms-on .sp-hero .sp-card{display:block}
body.kd-forms-on .sp-hero .sp-grid{grid-template-columns:1.1fr .9fr}
@media(max-width:900px){body.kd-forms-on .sp-hero .sp-grid{grid-template-columns:1fr}}

/* Headings for screen readers only (keeps a logical h1 > h2 > h3 outline without changing the design). */
.kd-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Contrast (WCAG AA), using colours the approved design already uses for the same elements elsewhere. */
.section-dark .step b{color:#8fb2ec}
.svc-row small{color:#5a6a78}
/* Keyboard focus stays visible on navy backgrounds. */
.section-dark :focus-visible,.site-footer :focus-visible,.page-hero :focus-visible,.hero2 :focus-visible,.cx-hero :focus-visible,.tp-dr.is-lead :focus-visible{outline-color:#fff}
