/* Heart House Flex v0.10.5 — theme-owned UX refinements.
   All colours inherit Colour Studio / shared palette roles. Plugin components
   and Seasonal Storybook are deliberately outside this stylesheet. */
.hh-site-header .hh-primary-menu>li.hh-nav-duplicate-action-link{display:none}
.hh-site-header .hh-header-actions .hh-button{min-height:44px;white-space:nowrap}
.hh-site-header .hh-primary-nav .hh-primary-menu>li>a{line-height:1.35}
.hh-site-header .hh-primary-nav a:focus-visible,
.hh-site-header .hh-header-actions :is(a,button):focus-visible,
.hh-site-header .hh-mobile-actions a:focus-visible{outline:3px solid var(--hh-focus);outline-offset:3px}
.hh-site-header .hh-header-actions{gap:clamp(.25rem,.6vw,.75rem)}
.hh-site-header .hh-primary-nav .sub-menu a{min-height:44px}

/* A recognizable hierarchy for theme-owned navigation and editorial links.
   Keep custom colour roles; do not force backgrounds or light/dark mode. */
.hhf-theme .hh-page-hero .hh-container{max-width:var(--hh-content)}
.hhf-theme .hh-theme-content :is(h2,h3)+:is(p,ul,ol){margin-block-start:.65rem}
.hhf-theme .hh-theme-content :is(p,li){overflow-wrap:break-word}
.hhf-theme .hh-content-presentation-reading :is(p,li){max-width:76ch}
.hhf-theme .hh-theme-content :is(a,.hh-button):focus-visible{outline:3px solid var(--hh-focus);outline-offset:3px}
.hhf-theme .hh-theme-content .hh-button--secondary{border-color:var(--hh-button-secondary-border);color:var(--hh-button-secondary-text)}
.hhf-theme .hh-theme-content .hh-button--promo{color:var(--hh-button-promo-text)}
.hhf-theme .hh-theme-content .hh-button--promo:is(:hover,:active){color:var(--hh-button-promo-hover-text,var(--hh-button-promo-text))}
.hhf-theme .hh-theme-content .hh-promo-banner{color:var(--hh-cta-promo-text)}
.hhf-theme .hh-theme-content .hh-promo-banner :is(p,h2,h3){color:inherit}

/* Homepage: give editorial introductions room to breathe without altering
   plugin service cards, testimonials, CTAs, or WordPress block ordering. */
.home.hhf-theme .entry-content > :is(h1,h2,h3){max-width:26ch;text-wrap:balance;line-height:1.14}
.home.hhf-theme .entry-content > p{max-width:72ch;text-wrap:pretty}
.home.hhf-theme .entry-content > :is(.wp-block-columns,.wp-block-group,.wp-block-cover){min-width:0}
.home.hhf-theme .entry-content > .wp-block-columns{column-gap:clamp(1rem,2.5vw,2.5rem)}
.home.hhf-theme .entry-content > :is(h2,h3)+p{margin-top:.6rem}

/* The footer retains its links and contact detail; only visual rhythm changes. */
.hhf-theme .hh-site-footer .hh-footer-nav a:focus-visible,
.hhf-theme .hh-site-footer :is(.hh-footer-location-links a,.hh-footer-contact-link,.hh-footer-map-link):focus-visible{outline:3px solid var(--hh-focus);outline-offset:3px}
.hhf-theme .hh-site-footer .hh-footer-nav a{line-height:1.4;text-underline-offset:.18em}
.hhf-theme .hh-footer-main :is(.hh-footer-heading,.hh-footer-title){text-wrap:balance}

@media(max-width:1023px){
  .hhf-theme .hh-site-header .hh-primary-nav{overscroll-behavior:contain}
  .hhf-theme .hh-site-header .hh-primary-nav .hh-mobile-actions{gap:.55rem}
  .hhf-theme .hh-site-header .hh-primary-nav .hh-primary-menu>li>a{min-height:48px}
  .hhf-theme .hh-site-header .hh-submenu-toggle{min-height:46px;min-width:46px}
}
@media(max-width:480px){
  .hhf-theme .hh-site-header .hh-header-row{min-width:0}
  .hhf-theme .hh-site-header .hh-header-actions{min-width:0}
  .hhf-theme .hh-site-header .hh-header-register{font-size:clamp(.74rem,3.3vw,.88rem)}
  .home.hhf-theme .entry-content > :is(h1,h2,h3){max-width:100%}
  .hhf-theme .hh-footer-main{row-gap:1.2rem}
}
@media(prefers-reduced-motion:reduce){
  .hhf-theme .hh-theme-content .hh-button,
  .hhf-theme .hh-theme-content .wp-block-button__link{transition:none;transform:none}
}
/* Older three-column footer minimums overflow at tablet widths. Two balanced
   columns retain every existing footer section until wide desktop. */
@media(min-width:760px) and (max-width:1179px){
  .hhf-theme .hh-site-footer .hh-footer-main{grid-template-columns:repeat(2,minmax(0,1fr))}
  .hhf-theme .hh-site-footer .hh-footer-main>*{min-width:0}
}
/* Keep inactive desktop navigation readable when dark headers are selected.
   Current/hover/focus states retain their independent Colour Studio pairings. */
@media(min-width:1024px){
  .hhf-theme .hh-site-header.hh-header-style-dark .hh-primary-nav .hh-primary-menu>li:not(.current-menu-item):not(.current-menu-ancestor):not(.current_page_ancestor)>a:not(:hover):not(:focus-visible){color:var(--hh-header-dark-text)}
  .hhf-theme .hh-site-header.hh-header-style-light .hh-primary-nav .hh-primary-menu>li:not(.current-menu-item):not(.current-menu-ancestor):not(.current_page_ancestor)>a:not(:hover):not(:focus-visible){color:var(--hh-header-light-text)}
}


/* v0.10.5 — navigation orientation; only WP-current menu items, no new links. */
@media(max-width:1023px){
  .hhf-theme .hh-primary-nav .hh-primary-menu :is(.current-menu-item,.current-menu-ancestor,.current_page_ancestor)>a{
    font-weight:900;
    color:var(--hh-nav-active-text,var(--hh-brand-dark));
    background:var(--hh-nav-active-bg,var(--hh-surface-soft));
    border-radius:var(--hh-radius-sm);
    padding-inline:.65rem;
  }
}
/* Give useful links in the theme-owned footer a compact, readable rhythm.
   All groups, contact details, legal links and controls remain available. */
.hhf-theme .hh-footer-main{align-items:start}
.hhf-theme .hh-footer-nav-pair{row-gap:clamp(.75rem,2vw,1.5rem)}
.hhf-theme .hh-footer-visit :is(.hh-footer-contact-link,.hh-footer-map-link){min-height:40px;display:flex;align-items:center}
.hhf-theme .hh-footer-location-feature__inner{align-items:start}
@media(max-width:759px){
  .hhf-theme .hh-footer-main{padding-block:1.6rem;row-gap:1.1rem}
  .hhf-theme .hh-footer-heading{margin-bottom:.45rem}
  .hhf-theme .hh-footer-nav ul{gap:.2rem}
  .hhf-theme .hh-footer-nav a{min-height:42px}
  .hhf-theme .hh-footer-location-feature__inner{padding-block:1.4rem}
  .hhf-theme .hh-footer-location-feature__copy-text{margin-top:.55rem}
  .hhf-theme .hh-footer-secondary__grid{padding-block:.75rem}
}
/* Keep editor-authored content readable without modifying service-listing cards
   or overlaying the Seasonal Storybook scenes. */
.hhf-theme .entry-content > .wp-block-columns > .wp-block-column{min-width:0}
.hhf-theme .hh-theme-content :is(.wp-block-button__link,.hh-button):focus-visible{outline:3px solid var(--hh-focus);outline-offset:3px}
.hhf-theme #main-content{scroll-margin-top:clamp(5rem,9vw,8rem)}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
