/* v47: approved Recessed Atlas header only. v43/v44 typography and body stay intact. */
body[data-page] .site-header {
  --atlas-bronze:#bb9778; --atlas-pearl:#f2e8d9;
  padding:9px clamp(8px,1.05vw,22px); border:0;
  background:#202124; color:var(--atlas-pearl);
  background-image:linear-gradient(110deg,#252629,#17191c);
  box-shadow:0 7px 18px #0004;
}
body[data-page] .site-header .nav-wrap {
  position:relative; isolation:isolate; display:grid;
  grid-template-columns:minmax(340px,34%) minmax(0,1fr) auto;
  grid-template-rows:clamp(43px,3.9vw,59px) minmax(72px,1fr);
  width:100%; max-width:none; height:clamp(136px,9.45vw,164px);
  gap:0; margin:0; padding:0 16px 0 0;
  border:1px solid var(--atlas-bronze); border-radius:21px;
  background:linear-gradient(180deg,#2b2b2e,#17181b 43%,#111315 100%);
  box-shadow:inset 0 0 0 2px #ddc6ac20,inset 0 2px 6px #0009,0 5px 12px #0009;
}
.site-header .atlas-map {
  position:absolute; z-index:-2; left:31%; top:2px; right:2px;
  width:calc(69% - 2px); height:calc(clamp(43px,3.9vw,59px) - 2px);
  border-radius:0 18px 0 0; overflow:hidden; pointer-events:none;
  opacity:.85; border-bottom:1px solid #bb97785c;
}
.site-header .atlas-plaque {
  position:absolute; z-index:-1; inset:0 auto 0 0; width:36.7%; height:100%;
  overflow:visible; pointer-events:none; filter:drop-shadow(7px 3px 7px #000b);
}
.site-header .atlas-filament {
  position:absolute; z-index:-2; inset:auto 10px 5px 30%; width:calc(70% - 20px); height:70px;
  overflow:visible; pointer-events:none;
}
body[data-page] .site-header .nav-wrap .brand {
  grid-column:1; grid-row:1/3; width:100%; max-width:none; height:100%;
  padding:10px 15% 10px 6%; display:flex; align-items:center; justify-content:flex-start;
}
body[data-page] .site-header .nav-wrap .brand img {
  width:100%; height:auto; max-height:128px; object-fit:contain;
  object-position:left center; opacity:1; mix-blend-mode:lighten;
  mask-image:linear-gradient(90deg,transparent,#000 2%,#000 98%,transparent),linear-gradient(0deg,transparent,#000 7%,#000 94%,transparent);
  mask-composite:intersect;
}
body[data-page] .site-header .desktop-nav {
  grid-column:2; grid-row:2; display:flex; justify-content:space-evenly;
  align-items:center; gap:clamp(13px,1.2vw,26px); margin:0;
  min-width:0; padding:0 clamp(15px,1.4vw,30px) 5px clamp(20px,2vw,40px);
}
body[data-page] .site-header .desktop-nav a {
  position:relative; flex:none; color:#ece6dc; padding:22px 0;
  font-size:var(--type-nav); font-family:GeoText,Arial,sans-serif;
  font-weight:500; letter-spacing:.02em; white-space:nowrap;
}
body[data-page] .site-header .desktop-nav a:hover {color:#e1c3a1}
body[data-page] .site-header .desktop-nav a[aria-current=page] {color:#fff4e5}
body[data-page] .site-header .desktop-nav a[aria-current=page]::after {
  content:""; position:absolute; inset:auto 0 9px; height:1px;
  background:#d0aa84; box-shadow:0 0 5px #c29b7145;
}
body[data-page] .site-header .desktop-nav a[aria-current=page]::before {
  content:""; position:absolute; left:calc(50% - 3px); bottom:6px;
  width:7px; height:7px; border-radius:50%;
  background:radial-gradient(circle at 35% 25%,#f8e8cf,#ba8d68 68%,#7e5740);
  box-shadow:0 0 6px #c69d7455;
}
body[data-page] .site-header .contact-cta {
  display:inline-flex; grid-column:3; grid-row:2; align-self:center;
  justify-content:center; gap:10px; min-height:50px; margin:0 0 6px;
  padding:7px 17px 7px 9px; border-radius:26px 11px 11px 26px;
  border:1px solid #ce6876; color:#f7ecdf;
  background:linear-gradient(155deg,#a31d38,#7c102a 55%,#4f0b1b);
  box-shadow:inset 0 1px 0 #e7a7a12e,0 3px 10px #0008;
  font-family:GeoBrand,Arial,sans-serif; font-size:13px; font-weight:600;
}
body[data-page] .site-header .contact-emblem {
  width:32px; height:32px; border:1px solid #dec5a9; color:#f0dfc7;
  background:#590c20; box-shadow:inset 0 0 0 2px #ffffff08;
}
body[data-page] .site-header .contact-cta-label {font-size:13px}
body[data-page] .site-header .menu-toggle {display:none}
body[data-page] .site-header :is(a,button):focus-visible {outline:2px solid #f0d5ac;outline-offset:4px}
body[data-page] .site-header .mobile-nav {
  margin:7px 0 0; padding:12px 20px; border:1px solid #bb97786b;
  border-radius:12px; background:linear-gradient(130deg,#29292c,#17191b);
  max-height:calc(100svh - 135px); overflow-y:auto; box-shadow:0 12px 20px #0005;
}
body[data-page] .site-header .mobile-nav[hidden] {display:none}
@media(min-width:1280px) {body[data-page] .site-header .mobile-nav {display:none}}
@media(max-width:1279px) {
  body[data-page] .site-header .nav-wrap {
    grid-template-columns:minmax(0,1fr) auto 56px; grid-template-rows:29px 84px;
    height:115px; padding-right:11px; border-radius:17px;
  }
  .site-header .atlas-map {left:2px;top:2px;width:calc(100% - 4px);height:28px;border-radius:14px 14px 0 0}
  .site-header .atlas-plaque {top:29px;height:calc(100% - 29px);width:70%;max-width:660px}
  .site-header .atlas-filament {left:45%;width:calc(55% - 20px);height:61px}
  body[data-page] .site-header .nav-wrap .brand {
    grid-row:2; padding:8px 18px; width:clamp(270px,43vw,490px); max-width:100%;
  }
  body[data-page] .site-header .nav-wrap .brand img {max-height:72px}
  body[data-page] .site-header .desktop-nav {display:none}
  body[data-page] .site-header .contact-cta {grid-column:2;grid-row:2;margin:0 12px 0 0}
  body[data-page] .site-header .menu-toggle {
    grid-column:3;grid-row:2; display:flex;flex-direction:column;justify-content:center;
    align-items:center;gap:7px; width:44px;height:44px;padding:10px;margin:0;
    border-radius:8px;border:1px solid #bb977859;color:#eee3d4;background:#202124;
  }
  body[data-page] .site-header .menu-toggle span {width:22px;height:2px;margin:0;background:#e8d5bd}
}
@media(max-width:640px) {
  body[data-page] .site-header {padding:6px}
  body[data-page] .site-header .nav-wrap {
    height:100px;grid-template-rows:25px 73px;
    grid-template-columns:minmax(0,1fr) 48px 48px;padding-right:5px;border-radius:15px;
  }
  .site-header .atlas-map {height:23px;border-radius:12px 12px 0 0}
  .site-header .atlas-plaque {top:24px;height:calc(100% - 24px);width:76%}
  body[data-page] .site-header .nav-wrap .brand {
    width:100%;padding:8px 14px 8px 9px;
  }
  body[data-page] .site-header .nav-wrap .brand img {max-height:60px}
  body[data-page] .site-header .contact-cta {width:40px;min-height:42px;padding:3px;margin:0;border-radius:12px}
  body[data-page] .site-header .contact-emblem {width:30px;height:30px}
  body[data-page] .site-header .contact-cta-label {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  body[data-page] .site-header .menu-toggle {width:42px;height:42px}
}
/* Approved Flush Top: keep the existing plaque and logo at full height;
   only the desktop navigation beside them gets a shorter frame. */
@media (min-width:1280px) and (hover:hover) and (pointer:fine) {
  body[data-page] .site-header {
    --gx-logo-plaque-height:clamp(136px,9.45vw,164px);
    --gx-flush-rail-height:82px;
    --gx-flush-atlas-height:19px;
    box-shadow:none;
    pointer-events:none;
  }
  body[data-page]:not([data-page="index"]) .site-header {
    /* Keep headings on inner pages clear of the overhanging brand plaque. */
    margin-bottom:calc(var(--gx-logo-plaque-height) - var(--gx-flush-rail-height));
  }
  body[data-page] .site-header .nav-wrap {
    height:var(--gx-flush-rail-height);
    grid-template-rows:var(--gx-flush-atlas-height) minmax(0,1fr);
    border-color:transparent;
    background:none;
    box-shadow:none;
  }
  body[data-page] .site-header .nav-wrap::before {
    content:"";
    position:absolute;z-index:-3;inset:-1px -1px -1px 30%;
    border:1px solid var(--atlas-bronze);
    border-radius:0 21px 21px 0;
    background:linear-gradient(180deg,#2b2b2e,#17181b 29%,#111315);
    box-shadow:inset 0 0 0 1px #ddc6ac20,0 4px 10px #0007;
  }
  .site-header .atlas-map {height:var(--gx-flush-atlas-height)}
  .site-header .atlas-plaque {
    height:var(--gx-logo-plaque-height);
    filter:drop-shadow(3px 4px 5px #0009);
  }
  .site-header .atlas-filament {height:48px}
  body[data-page] .site-header .nav-wrap .brand {
    height:var(--gx-logo-plaque-height);
    align-self:start;
    pointer-events:auto;
  }
  body[data-page] .site-header .desktop-nav a {
    padding-block:14px;
    pointer-events:auto;
  }
  body[data-page] .site-header .contact-cta {pointer-events:auto}
}
@media print {body[data-page] .site-header {display:none}}
