/*
Theme Name: The Wellness Hub
Template: twentytwentyfive
Version: 1.3.5
Description: Child block theme for The Wellness Hub (staging). Component geometry lives in kit/kit.css and the client's tokens and type in project.css, both byte-identical to the files the prototype loads (clients/wellness-hub/prototypes/). This file holds ONLY the WordPress chrome the kit cannot know about.
*/

/* ---- WordPress chrome the kit can't know about -------------------------- */
.wp-site-blocks > *{ margin-block:0 !important; }
.wp-site-blocks{ padding:0 !important; }
.entry-content, .wp-block-post-content{ margin-block:0 !important; max-width:none !important; }
.wp-block-group.k-section{ max-width:none !important; }
.k-btn.wp-element-button, .wp-block-button__link.k-btn{ border:0; }

/* WordPress wraps every template part in <div class="wp-block-template-part">. position:sticky only holds
   while the element's PARENT is in view, and that wrapper is only as tall as the header, so the header
   would un-stick itself the moment it scrolled past. Make the wrapper the sticky element (M&J lesson). */
.wp-site-blocks > .wp-block-template-part:first-child{ position:sticky; top:0; z-index:50; }

/* Logged-in view: the admin bar is 32px (46px under 783px); public visitors never see this. */
body.admin-bar .wp-site-blocks > .wp-block-template-part:first-child{ top:32px; }
@media (max-width:782px){ body.admin-bar .wp-site-blocks > .wp-block-template-part:first-child{ top:46px; } }
@media (max-width:600px){ body.admin-bar .wp-site-blocks > .wp-block-template-part:first-child{ top:0; } }

/* Contact Form 7 adds a response box under every form; the prototype's plain form has none. */
.k-form .wpcf7-response-output{ margin:14px 0 0 !important; font-size:.9rem; border-radius:10px; }
.k-form .wpcf7-response-output:empty{ display:none; }
.k-form form.wpcf7-form{ margin:0; }
.k-form .wpcf7-spinner{ display:none; }
