/* Casa Floresta — canonical public header layout (v0.4.9 / v0.3.8).
   All geometry lives here, not in versioned premium overrides. The shared
   selectors cover the Home shortcode and commercial pages identically.
   This stylesheet is loaded in wp_head and never waits for JavaScript. */
:is(.mpcf-home,.mpcfp-market) .mpcf-site-header {
  position: relative !important;
  top: 0 !important; /* Prevent admin-bar offset from shifting a non-sticky header. */
  z-index: 80;
  display: block !important;
  box-sizing: border-box !important;
  height: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: 1px solid #e9eee8;
  background: #fff;
}
:is(.mpcf-home,.mpcfp-market) .mpcf-site-header > .mpcf-shell.mpcf-header-inner {
  /* Force the actual inner row to fill and centre inside the outer header.
     Explicit resets prevent theme/block spacing from offsetting the row. */
  position: relative !important;
  top: 0 !important;
  inset-block-start: 0 !important;
  transform: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  box-sizing: border-box !important;
  width: min(calc(100% - 48px),1240px);
  height: 100% !important;
  min-height: 0 !important;
  max-height: 100% !important;
  margin: 0 auto !important;
  padding: 0 !important;
  gap: clamp(10px, 1.5vw, 22px);
}
:is(.mpcf-home,.mpcfp-market) .mpcf-header-inner > :is(.mpcf-brand,.mpcf-desktop-nav,.mpcf-header-tools) {
  position: relative;
  top: 0;
  transform: none;
  align-self: center !important;
  margin-block: 0 !important;
  padding-block: 0 !important;
}
:is(.mpcf-home,.mpcfp-market) .mpcf-brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}
:is(.mpcf-home,.mpcfp-market) .mpcf-brand .mpcf-official-logo {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: clamp(160px,17vw,210px);
  max-height: 46px !important;
  object-fit: contain;
  object-position: left center;
}
:is(.mpcf-home,.mpcfp-market) .mpcf-header-tools {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 4px;
}
:is(.mpcf-home,.mpcfp-market) .mpcf-header-icon,
:is(.mpcf-home,.mpcfp-market) .mpcf-site-search > summary {
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  margin: 0 !important;
  padding: 0 !important;
}
/* Restore the original pre-v0.4.4 account silhouette (no enclosing circle). */
:is(.mpcf-home,.mpcfp-market) .mpcf-header-icon--account svg {
  display: block;
  width: 20px !important;
  height: 20px !important;
}
@media (max-width: 1150px) {
 :is(.mpcf-home,.mpcfp-market) .mpcf-site-header > .mpcf-shell.mpcf-header-inner {
   width: min(calc(100% - 32px),1240px);
 }
}
@media (max-width: 1020px) {
 :is(.mpcf-home,.mpcfp-market) .mpcf-site-header {
   height: 62px !important;
   min-height: 62px !important;
   max-height: 62px !important;
 }
 :is(.mpcf-home,.mpcfp-market) .mpcf-brand .mpcf-official-logo { max-height: 43px !important; }
}
@media (max-width: 760px) {
 :is(.mpcf-home,.mpcfp-market) .mpcf-site-header {
   height: 60px !important;
   min-height: 60px !important;
   max-height: 60px !important;
 }
 :is(.mpcf-home,.mpcfp-market) .mpcf-brand .mpcf-official-logo { max-height: 41px !important; }
 :is(.mpcf-home,.mpcfp-market) .mpcf-site-header > .mpcf-shell.mpcf-header-inner {
   width: calc(100% - 30px);
 }
}
@media (max-width: 380px) {
 :is(.mpcf-home,.mpcfp-market) .mpcf-site-header {
   height: 58px !important;
   min-height: 58px !important;
   max-height: 58px !important;
 }
 :is(.mpcf-home,.mpcfp-market) .mpcf-brand .mpcf-official-logo { max-height: 38px !important; }
}
