.tz-languages {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 1px;
  padding: 2px;
  border: 1px solid #666;
  background: #161617;
  color: #f8f5ef;
  white-space: nowrap;
}

.tz-languages a {
  display: grid;
  min-width: 34px;
  min-height: 35px;
  place-items: center;
  padding: 0 4px;
  color: inherit;
  font: 750 .72rem/1 system-ui, sans-serif;
  letter-spacing: .04em;
  text-decoration: none;
}

.tz-languages a[aria-current] {
  color: #181818;
  background: #f8f5ef;
  box-shadow: inset 0 -2px #e5353b;
}

.tz-languages a:focus-visible,
.tz-print-preview summary:focus-visible {
  outline: 2px solid #ff535d;
  outline-offset: 2px;
}

.mast .tz-languages {
  width: auto;
  margin-inline-start: auto;
  gap: 1px;
}

.mast .tz-languages a {
  min-height: 35px;
  padding: 0 4px;
  justify-content: center;
  text-decoration: none;
}

.tz-word-type {
  display: inline-block;
  margin-inline-end: .55em;
  color: #f6f0e8;
  font-size: .82em;
}

.tz-word-example {
  margin: -.2rem 0 1.2rem;
  color: #cbc6bf;
  font-size: .93rem;
  font-style: italic;
  line-height: 1.5;
}

.tz-print-preview {
  margin: .75rem 0 1rem;
}

.tz-print-preview summary {
  display: list-item;
  min-height: 44px;
  align-content: center;
  padding: .5rem .75rem;
  color: #f8f5ef;
  border: 1px solid #636264;
  cursor: pointer;
  font-weight: 650;
}

.tz-print-preview img {
  display: block;
  width: 100%;
  height: auto;
  margin-top: .4rem;
}

@media (max-width: 1100px) {
  .site-header .header-actions {
    gap: .55rem;
  }
}

@media (max-width: 470px) {
  .site-header {
    gap: .4rem;
    padding-inline: .65rem;
  }

  .site-header .logo {
    min-width: 0;
  }

  .site-header .logo img {
    width: clamp(70px, 28vw, 135px);
    height: auto;
  }

  .site-header .header-actions {
    gap: .35rem;
  }

  .site-header .mobile-nav summary {
    min-height: 40px;
    display: flex;
    align-items: center;
    gap: .25rem;
    padding-inline: .4rem;
    letter-spacing: .03em;
  }
}


/* Give the brand more room while reserving a separate controls column. */
@media(max-width:580px){
 .site-header{padding-inline:10px;gap:10px}
 .site-header .logo{flex:1 1 auto;min-width:0}
 .site-header .logo img{width:166px;max-width:100%;height:auto}
 .site-header .header-actions{flex:0 0 auto;gap:3px}
 .site-header .saved-nav{min-width:30px;gap:2px}
 .site-header .shop-cart-nav{min-width:46px;padding:8px 4px;gap:2px}
 .site-header .shop-cart-nav strong{min-width:16px}
 .site-header .tz-languages{padding:1px}
 .site-header .tz-languages a{min-width:27px;min-height:40px;padding:0 2px}
 .site-header .mobile-nav summary{min-width:34px;min-height:44px;padding-inline:4px}
}

/* Shared header control geometry. */
.site-header .shop-cart-nav,
.site-header .tz-languages,
.site-header .mobile-nav summary{
 box-sizing:border-box;height:44px;min-height:44px;
 border:1px solid #666;background:#161617;border-radius:0;
 align-items:center;justify-content:center;
}
.site-header .shop-cart-nav{padding-block:0}
.site-header .tz-languages{padding:2px}
.site-header .tz-languages a{height:38px;min-height:38px}
.site-header .mobile-nav summary{padding-block:0;line-height:1}
.site-header .saved-nav{margin-inline-end:5px}
@media(max-width:580px){
 .site-header .header-actions{gap:2px}
 .site-header .saved-nav{margin-inline-end:4px}
 .site-header .tz-languages{padding:1px}
 .site-header .tz-languages a{height:40px;min-height:40px}
}
/* Optical alignment with the bag icon; counter remains centered. */
.site-header .saved-nav > svg{transform:translateY(2px)}
