/* Align Editions — compact customer icon actions */

/* Stable three-zone header: logo left / navigation + search centred / customer icons right.
   This prevents a narrower icon cluster from pulling the main navigation to the left. */
.site-header{
  display:grid;
  grid-template-columns:minmax(96px,1fr) auto minmax(96px,1fr);
  align-items:center;
  justify-content:stretch;
}
.brand-mark{justify-self:start}
.header-centre{
  grid-column:2;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:20px;
  min-width:0;
}
.header-actions{
  grid-column:3;
  justify-self:end;
  margin-left:0!important;
}

.header-icon-actions{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
}

.header-icon-link{
  position:relative;
  width:40px;
  height:40px;
  display:grid;
  place-items:center;
  color:var(--theme-nav-text,var(--green));
  border:1px solid transparent;
  border-radius:50%;
  transition:color .2s ease,border-color .2s ease,background .2s ease,transform .2s ease;
}

.header-icon-link svg{
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.65;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.header-icon-link:hover,
.header-icon-link:focus-visible{
  color:var(--gold);
  border-color:rgba(194,157,94,.34);
  background:rgba(194,157,94,.055);
  transform:translateY(-1px);
  outline:none;
}

.header-icon-count{
  position:absolute;
  top:-2px;
  right:-3px;
  min-width:18px;
  height:18px;
  padding:0 5px;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:var(--gold);
  color:var(--deep);
  border:2px solid var(--theme-header-bg,var(--paper));
  font-size:9px;
  line-height:1;
  font-weight:800;
  letter-spacing:0;
}

.header-icon-link::after{
  content:attr(data-label);
  position:absolute;
  z-index:80;
  right:50%;
  top:calc(100% + 9px);
  transform:translate(50%,-4px);
  padding:6px 8px;
  background:var(--deep);
  color:#fff;
  font-size:9px;
  font-weight:700;
  line-height:1;
  letter-spacing:.08em;
  text-transform:uppercase;
  white-space:nowrap;
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .16s ease,transform .16s ease,visibility .16s ease;
}

.header-icon-link:hover::after,
.header-icon-link:focus-visible::after{
  opacity:1;
  visibility:visible;
  transform:translate(50%,0);
}

.header-actions{
  gap:10px;
}

@media(max-width:1280px){
  .site-header{grid-template-columns:minmax(74px,1fr) auto minmax(110px,1fr)}
  .header-centre{gap:14px}
}

@media(max-width:920px){
  .site-header{grid-template-columns:auto 1fr auto}
  .header-centre{grid-column:2}
}

@media(max-width:1120px){
  .header-icon-actions{gap:4px}
  .header-icon-link{width:37px;height:37px}
  .header-icon-link svg{width:20px;height:20px}
}

@media(max-width:780px){
  .site-header{gap:10px}
  .header-actions{gap:6px}
  .header-icon-actions{gap:2px}
  .header-icon-link{width:34px;height:34px}
  .header-icon-link svg{width:19px;height:19px}
  .header-icon-count{
    min-width:16px;
    height:16px;
    padding:0 4px;
    top:-2px;
    right:-3px;
    font-size:8px;
  }
  .header-icon-link::after{display:none}
  .menu-toggle{
    margin-left:3px;
    padding:8px 0 8px 6px;
  }
}

@media(max-width:430px){
  .header-icon-link{width:31px;height:31px}
  .header-icon-link svg{width:18px;height:18px}
}
