/* Keep Prices at the exact center of the three-link navigation. */
html:root body header nav[aria-label="Main navigation"] {
  display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;column-gap:24px;row-gap:0;width:420px;max-width:100%;
}
html:root body header nav[aria-label="Main navigation"] > a {
  display:inline-flex !important;align-items:center;justify-content:center;
  min-height:48px;padding:7px 0;white-space:nowrap !important;
  overflow-wrap:normal;gap:5px;
}
html:root body header nav[aria-label="Main navigation"] > a:first-child {justify-self:start;}
html:root body header nav[aria-label="Main navigation"] > a:nth-child(2) {justify-self:center;}
html:root body header nav[aria-label="Main navigation"] > a:last-child {justify-self:end;}
html:root body header nav[aria-label="Main navigation"] .keepsake-heart {flex-shrink:0;width:1.2em;height:1.2em;}
@media(max-width:760px) {
  html:root body header nav[aria-label="Main navigation"] {width:100%;column-gap:8px;font-size:clamp(16px,4.3vw,18px);}
}

/* Match the brand row to the page's content gutter. */
header .brand-language-group > .brand {
  margin-left:0;
  transform:translateX(-5px);
  padding-left:0;
  justify-content:flex-start;
  text-align:left;
}
@media(min-width:1000px) {
  .simple-home header .nav {
    width:100%;
    max-width:1314px;
    padding-left:32px;
    padding-right:32px;
  }
}
@media(max-width:760px) {
  .simple-home header .nav {
    padding-left:20px;
    padding-right:20px;
  }
}

/* Give the brand a slightly stronger, more readable presence. */
html body header .brand-language-group > .brand {
  font-size:35px;
  align-items:center;
  gap:2px;
}
html body header .brand-language-group > .brand img {
  width:60px;
  height:60px;
}
html body header .brand-language-group > .brand small {
  font-size:12px;
  letter-spacing:.2em;
}
@media(max-width:760px) {
  html body header .brand-language-group > .brand {
    font-size:clamp(24px,6.8vw,31px);
    gap:2px;
  }
  html body header .brand-language-group > .brand img {
    width:48px;
    height:48px;
  }
  html body header .brand-language-group > .brand small {
    font-size:11px;
    letter-spacing:.1em;
  }
}

@media(max-width:360px) {
  html body header .brand-language-group > .brand {font-size:22px;gap:2px;}
  html body header .brand-language-group > .brand img {width:44px;height:44px;}
  html body header .brand-language-group > .brand small {font-size:9px;}
}

/* Home header: the restoration studio's gold orbit animation, scaled to the brand. */
.home-brand-aura{position:relative;margin-right:5px;display:grid;place-items:center;width:60px;height:60px;flex:0 0 60px;background:radial-gradient(circle,#b28c3230,transparent 68%)}
.home-brand-core{display:grid;place-items:center;width:70%;height:70%;border:1px solid #bd965156;border-radius:50%;background:#000;box-shadow:0 0 12px #d0a64a20;overflow:hidden}
html body header .brand .home-brand-core img{display:block;width:calc(100% + 3px);height:calc(100% + 3px);max-width:none;object-fit:contain}
.home-brand-orbit{position:absolute;inset:0;border:1px solid #d0ad642e;border-radius:50%;border-top:2px solid #ecd598;border-right-color:#b68a44;animation:home-memory-orbit 7s linear infinite}
.home-brand-orbit:after{content:"";position:absolute;top:12.5%;right:12.5%;width:3px;height:3px;border-radius:50%;background:#ffe7ad;box-shadow:0 0 5px 1px #c99d4b9c}
.home-brand-orbit-inner{inset:9%;opacity:.65;animation-duration:11s;animation-direction:reverse;border-top-width:1px}
.home-brand-orbit-inner:after{width:2px;height:2px}
@keyframes home-memory-orbit{to{transform:rotate(360deg)}}
@media(max-width:760px){.home-brand-aura{width:48px;height:48px;flex-basis:48px}}
@media(max-width:360px){.home-brand-aura{width:44px;height:44px;flex-basis:44px}}
@media(prefers-reduced-motion:reduce){.home-brand-orbit{animation:none}}

/* Print navigation adapts to its link count and keeps the language row separate. */
html:root body.simple-home header nav[aria-label="Main navigation"]{display:flex;flex-wrap:wrap;justify-content:space-between;width:520px;gap:6px 18px}
html:root body.photo-print-shop header{flex-wrap:wrap}
html:root body.photo-print-shop header nav[aria-label="Main navigation"]{display:flex;flex-wrap:wrap;width:auto;gap:8px 24px}
@media(max-width:760px){html:root body.simple-home header nav[aria-label="Main navigation"]{width:100%;gap:4px 12px}html:root body.simple-home header nav[aria-label="Main navigation"]>a{white-space:normal!important}}

/* Keep all four home links together so the restore button sits higher on phones. */
@media(max-width:760px){
  html:root body.simple-home header .nav{padding-left:16px;padding-right:16px}
  html:root body.simple-home header nav[aria-label="Main navigation"]{flex-wrap:nowrap;width:100%;gap:6px;font-size:clamp(14px,3.8vw,16px);overflow-x:auto}
  html:root body.simple-home header nav[aria-label="Main navigation"]>a{flex:0 0 auto;white-space:nowrap!important;gap:3px;min-height:48px}
  html:root body.simple-home header nav[aria-label="Main navigation"] .keepsake-heart{width:1em;height:1em}
}
