/* The Maine mark stands on its own, centered between equal navigation wings. */
html[data-design-header="jewel"] .site-header .brand-jewel::before,
html[data-design-header="jewel"] .site-header .brand-jewel::after,
.home-arrival__jewel::before,
.home-arrival__jewel::after { content:none; display:none; }
html[data-design-header="jewel"] .site-header .brand-jewel > .brand-scroll-wordmark { display:none; }
html[data-design-palette="black"] .site-subheader {
  background:#E4DCCD; color:var(--dv-ink);
  border-bottom-color:var(--dv-brass);
}
html[data-design-palette="black"] .site-subheader a { color:var(--dv-ink); }
html[data-design-palette="black"] .site-subheader a:hover { color:var(--dv-brass-ink); }
.site-header .brand-jewel picture { display:block; width:100%; height:100%; }
.home-arrival__jewel img,
footer img[src*="logo-white-original-gold"] { filter:url(#logo-clear-black); }
@media(min-width:1101px) {
  :root { --utility-height:56px; --masthead-center:236px; }
  html[data-design-header="jewel"] .site-subheader {
    height:56px; min-height:56px;
    grid-template-columns:minmax(0,1fr) 236px minmax(0,1fr);
  }
  html[data-design-header="jewel"] .site-header { height:96px; min-height:96px; border-bottom-color:var(--dv-brass); }
  html[data-design-header="jewel"] .site-header .brand-jewel {
    top:-56px; left:50%; transform:translateX(-50%);
    width:224px; height:228px; padding:0; border:0;
    background:transparent; box-shadow:none; border-radius:0;
    isolation:auto; transition:none; display:block;
  }
  /* The existing Maine alpha silhouette supplies a solid interior only.
     Its surrounding pixels remain clear; this does not restore a jewel frame. */
  html[data-design-header="jewel"] .site-header:not(.is-scrolled) .brand-jewel::before,
  .home-arrival__jewel::before {
    content:''; display:block; position:absolute; inset:0; z-index:0;
    background:#171717; clip-path:none; border:0;
    -webkit-mask:url('/assets/logo-maine-solid-center.png') center/contain no-repeat;
    mask:url('/assets/logo-maine-solid-center.png') center/contain no-repeat;
    mask-mode:alpha; pointer-events:none;
  }
  html[data-design-header="jewel"] .site-header .brand-jewel picture {position:relative;z-index:1;}
  .home-arrival__jewel img {z-index:1;}
  html[data-design-header="jewel"] .site-header .brand-jewel picture img {
    display:block; width:224px; height:228px; max-width:100%;
    object-fit:contain; filter:url(#logo-clear-black);
  }
  html[data-design-header="jewel"] .site-header #main-navigation {
    grid-template-columns:minmax(0,1fr) 236px minmax(0,1fr);
    padding:0 4%; width:100%;
  }
  html[data-design-header="jewel"] .site-header .nav-group { justify-content:center; gap:clamp(16px,1.6vw,28px); }
  /* Preserve breathing room beneath the larger, freestanding Maine mark. */
  .home-page .hero .hero-copy { padding-top:106px; padding-bottom:42px; }
  html .inner-page > .page-intro:first-child,
  html .county-page > .county-intro:first-child { padding-top:100px; }
  html[data-design-header="jewel"] .site-header.is-scrolled .brand-jewel {
    top:50%; transform:translate(-50%,-50%); width:174px; height:58px;
  }
  html[data-design-header="jewel"] .site-header.is-scrolled .brand-jewel picture { display:none; }
  html[data-design-header="jewel"] .site-header.is-scrolled .brand-jewel > .brand-scroll-wordmark {
    display:block; width:174px; height:58px; object-fit:contain; filter:brightness(0) invert(1);
  }
}
@media(max-width:1100px) {
  html[data-design-header="jewel"] .site-header .brand-jewel picture img { filter:brightness(0) invert(1); }
  html[data-design-header="jewel"] .site-header .brand-scroll-wordmark { display:none; }
}
