/* Shared masthead and colophon. The language links remain visible at every size. */
.masthead {
  color: #292824;
  background: #faf8f3;
  border-block-end: 1px solid #d9d5cb;
}
.masthead .bar {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand primary languages";
  min-height: 72px;
  padding-block: 8px;
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
}
.masthead .brand {
  grid-area: brand;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: #242623;
}
.masthead .brand img { width: 78px; height: auto; object-fit: contain; }
.masthead .brand b { font-weight: 620; }
.masthead .brand small { color: #655e56; }
.masthead .brand span { align-content: center; }
.masthead .brand small[lang="zh-CN"] {
  font: 500 .8rem/1.45 "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: .12em;
}
.masthead .primary-nav {
  grid-area: primary;
  display: flex;
  justify-content: flex-end;
  align-items: baseline;
  column-gap: clamp(16px, 2.25vw, 34px);
  row-gap: 0;
  flex-wrap: wrap;
  margin: 0;
}
.masthead .primary-nav a {
  display: inline-block;
  position: relative;
  padding: .4rem 0;
  color: #494640;
  border: 0;
  border-radius: 0;
  background: none;
  font-size: .94rem;
  font-weight: 500;
  text-decoration: none;
}
html[lang="bo"] .masthead .primary-nav a {
  font-size: 1.02rem;
  line-height: 1.85;
  letter-spacing: normal;
}
.masthead .primary-nav a:is(:hover, [aria-current="page"]) { color: #822f2b; }
.masthead .primary-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  inset: auto 0 .12rem;
  height: 1px;
  background: currentColor;
}
.masthead .language-switch {
  grid-area: languages;
  display: flex;
  align-items: baseline;
  justify-self: end;
  gap: 0;
  padding: 0 0 0 clamp(10px, 1.35vw, 22px);
  border: 0;
  border-inline-start: 1px solid #d3cdc1;
  border-radius: 0;
  background: none;
}
.masthead .language-switch a {
  min-width: 44px;
  min-height: 44px;
  padding: 1px 5px;
  border-radius: 0;
  background: none;
  color: #635f57;
}
.masthead .language-switch a[aria-current="true"] {
  color: #822f2b;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: .38rem;
}
.masthead .menu-toggle { display: none; }
.masthead :focus-visible, .colophon a:focus-visible {
  outline: 2px solid #9b3c32;
  outline-offset: 2px;
}
.colophon {
  border-block-start: 1px solid #d3cdc1;
  background: #eeeae2;
  color: #393832;
}
.colophon .foot {
  display: flex;
  gap: 14px 30px;
  justify-content: space-between;
  align-items: center;
  padding-block: clamp(24px, 3vw, 40px);
}
.colophon .foot strong { display: block; font-weight: 500; }
.colophon .foot small { display: block; color: #625f58; font-size: .85rem; }
.colophon .foot-links { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 22px; }
.colophon .foot-links a { color: #514c44; padding-block: 4px; }
.colophon .foot-links a:hover { color: #822f2b; }

@media (max-width: 62rem) {
  .masthead .bar {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "brand languages toggle" "primary primary primary";
    gap: 0 10px;
    min-height: 62px;
    padding-block: 6px;
  }
  .masthead .brand img { width: clamp(50px, 15vw, 64px); }
  .masthead .brand { gap: 6px; }
  .masthead .brand b { font-size: 1.1rem; }
  .masthead .brand small { font-size: .78rem; }
  .masthead .language-switch { border: 0; padding: 0; }
  .masthead .primary-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr));
    gap: 0 16px;
    align-items: stretch;
    padding-block: 4px 8px;
    border-block-start: 1px solid #d9d5cb;
    margin-top: 5px;
  }
  .masthead .primary-nav a {
    display: flex;
    align-items: center;
    width: fit-content;
    max-width: 100%;
    min-height: 44px;
  }
  .masthead[data-menu-ready] .menu-toggle {
    grid-area: toggle;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #cfc8bd;
    border-radius: 50%;
    background: transparent;
    color: #393832;
    cursor: pointer;
  }
  .masthead .menu-toggle span { width: 16px; height: 1.5px; background: currentColor; }
  .masthead .menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .masthead .menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .masthead[data-menu-ready] .menu-toggle[aria-expanded="false"] + nav { display: none; }
}
@media (max-width: 36rem) {
  .colophon .foot { align-items: start; flex-direction: column; }
}
@media print {
  .masthead .menu-toggle, .masthead .primary-nav, .masthead .language-switch,
  .colophon .foot-links { display: none !important; }
}

.colophon .icp-record {
  display: block;
  width: 100%;
  text-align: center;
  color: #49443d;
  text-underline-offset: .2em;
}
.product-prices { padding-block: clamp(1.5rem, 4vw, 3rem); }
.product-prices table {
  width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums;
}
.product-prices th, .product-prices td {
  text-align: start; padding: .65rem .55rem; border-bottom: 1px solid #d6d0c5;
  vertical-align: top; overflow-wrap: break-word;
}
.product-prices thead { background: #eeece6; }
.product-prices tbody td:nth-child(2) { color: #174e47; font-weight: 650; }
.product-prices p { max-width: 68ch; }
html[lang="bo"] .product-prices { line-height: 1.9; }
@media(max-width: 34rem) {
  .product-prices td, .product-prices th { padding: .5rem .25rem; font-size: .95rem; }
}
