.vis-hero .hero-actions {
  flex-wrap: wrap;
}

.vis-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 0 8px;
  border-bottom: 1px solid var(--line);
}

.vis-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-bottom: 3px solid transparent;
  color: var(--muted);
  font-size: 15px;
  font-weight: 620;
}

.vis-tabs a:hover,
.vis-tabs a[aria-selected="true"] {
  color: var(--ink);
}

.vis-tabs a[aria-selected="true"] {
  border-bottom-color: #FF6B00;
}

#brand-logo[hidden],
#juzup[hidden],
#hepaiya[hidden],
#qiaohetao[hidden] {
  display: none;
}

.juzup-profile {
  --juzup-accent: #FFAB7A;
  --juzup-art: #FFF7EA;
  --juzup-art-border: #EAE2D6;
  padding-block: clamp(32px, 5vw, 66px) clamp(56px, 7vw, 96px);
  scroll-margin-top: 76px;
}

html[data-theme="light"] .juzup-profile {
  --juzup-accent: #9D360C;
}

.hepaiya-profile {
  --juzup-accent: #9be2d2;
  --juzup-art: #fff6e5;
  --juzup-art-border: #e4ddd0;
}

html[data-theme="light"] .hepaiya-profile {
  --juzup-accent: #17685f;
}

.hepaiya-profile .juzup-mark {
  background: var(--juzup-art);
}

.hepaiya-profile .juzup-hero-copy {
  display: grid;
  align-content: center;
}

.vis-tabs a[href="#hepaiya"][aria-selected="true"] {
  border-bottom-color: #17796d;
}

.qiaohetao-profile {
  --juzup-accent: #ffe873;
  --juzup-art: #fdf5e8;
  --juzup-art-border: #e4d5c4;
  --qiaohetao-espresso: #482b1e;
  --qiaohetao-terracotta: #b44b29;
  --qiaohetao-honey: #ffe873;
}

html[data-theme="light"] .qiaohetao-profile {
  --juzup-accent: #b44b29;
}

.qiaohetao-profile .juzup-card--logo .juzup-card-image {
  background: var(--juzup-art);
}

.qiaohetao-profile .juzup-hero-copy {
  display: grid;
  align-content: center;
}

.qiaohetao-profile .juzup-card--logo .qiaohetao-logo-dark {
  background: #241713;
  padding: 14px;
}

.qiaohetao-profile .juzup-card--logo .qiaohetao-logo-terracotta {
  background: var(--qiaohetao-honey);
  padding: 14px;
}

/* The swatches also carry the .juzup-card class, whose panel background would
   otherwise win on source order and flatten every colour chip to one tone.
   The doubled class keeps these rules above .juzup-card on specificity. */
.juzup-card.qiaohetao-swatch {
  display: grid;
  align-content: end;
  min-height: 92px;
  gap: 4px;
  color: var(--qiaohetao-espresso);
  background: var(--juzup-art);
  font-weight: 620;
}

.juzup-card.qiaohetao-swatch--espresso {
  color: var(--juzup-art);
  background: var(--qiaohetao-espresso);
}

.juzup-card.qiaohetao-swatch--terracotta {
  color: var(--juzup-art);
  background: var(--qiaohetao-terracotta);
}

.juzup-card.qiaohetao-swatch--honey {
  background: var(--qiaohetao-honey);
}

.vis-tabs a[href="#qiaohetao"][aria-selected="true"] {
  border-bottom-color: var(--cyan);
}

.juzup-profile [id^="juzup-"],
.hepaiya-profile [id^="hepaiya-"],
.qiaohetao-profile [id^="qiaohetao-"] {
  scroll-margin-top: 86px;
}

.juzup-profile :where(h2, h3, h4, p, blockquote, figure, dl, dd) {
  margin: 0;
}

.juzup-profile-head {
  margin-bottom: clamp(20px, 3vw, 34px);
}

.juzup-profile-head h2 {
  color: var(--ink);
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.15;
  letter-spacing: -.04em;
}

.juzup-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(14px, 2.5vw, 30px);
}

.juzup-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: clamp(14px, 3vw, 44px);
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--juzup-art-border);
}

.juzup-mark > img {
  display: block;
  width: 100%;
  max-width: 456px;
  height: auto;
}

.juzup-hero > :not(.juzup-mark) {
  min-width: 0;
  padding: clamp(20px, 3vw, 34px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.juzup-hero p + p {
  margin-top: 8px;
}

.juzup-hero .juzup-slogan {
  color: var(--ink);
  font-size: clamp(20px, 3.2vw, 33px);
  font-weight: 700;
  line-height: 1.36;
}

.juzup-hero .juzup-translation {
  font-weight: 650;
}

.juzup-hero .juzup-slogan-note {
  color: var(--muted);
  font-size: 14px;
}

.juzup-hero .juzup-spirit {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-weight: 650;
}

html[lang="en"] .juzup-hero .juzup-translation {
  display: none;
}

.juzup-section {
  margin-top: clamp(36px, 6vw, 78px);
  padding-top: clamp(22px, 4vw, 38px);
  border-top: 1px solid var(--line);
}

.juzup-section-header {
  margin-bottom: 20px;
}

.juzup-section-header h3 {
  color: var(--ink);
  font-size: clamp(24px, 3.4vw, 38px);
  line-height: 1.26;
  letter-spacing: -.03em;
}

.juzup-section-header p {
  max-width: 70ch;
  margin-top: 8px;
  color: var(--muted);
}

.juzup-grid {
  display: grid;
  gap: 14px;
}

.juzup-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.juzup-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.juzup-card {
  min-width: 0;
  overflow-wrap: anywhere;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--panel);
}

.juzup-card-image img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: var(--juzup-art);
  border-radius: 8px;
}

.qiaohetao-mascot-image {
  display: block;
  border-radius: 8px;
}

.juzup-card--logo .juzup-card-image {
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.juzup-card--logo .juzup-card-image img {
  background: transparent;
}

.juzup-scale-list {
  margin-top: 14px;
}

.juzup-scale-list .juzup-card-image {
  display: grid;
  min-height: 88px;
  place-items: center;
}

.juzup-scale-list img[width="24"] { width: 24px; }
.juzup-scale-list img[width="72"] { width: 72px; }
.juzup-scale-list img[width="120"] { width: 120px; }
.juzup-scale-list img[width="240"] { width: 240px; max-width: 100%; }

.juzup-card figcaption {
  margin-top: 10px;
}

.juzup-card h4 {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.4;
  font-weight: 680;
}

.juzup-card p {
  margin-top: 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.juzup-asset-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin-top: 17px;
}

.juzup-profile .juzup-asset-links a {
  color: var(--juzup-accent);
  text-underline-offset: .22em;
  text-decoration: underline;
  font-weight: 620;
}

.juzup-motion {
  margin-top: 20px;
}

.juzup-motion summary {
  display: inline-flex;
  cursor: pointer;
  list-style: none;
}

.juzup-motion summary::-webkit-details-marker {
  display: none;
}

.juzup-motion[open] summary span {
  transform: rotate(180deg);
}

.juzup-motion img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
}

@media (max-width: 880px) {
  .juzup-grid--four {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .vis-tabs a {
    padding-inline: 14px;
  }

  .juzup-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .juzup-grid {
    gap: 10px;
  }

  .juzup-card {
    padding: 10px;
  }

  .juzup-card h4 {
    font-size: 15px;
  }

  .juzup-card p {
    font-size: 13px;
  }
}

@media (max-width: 400px) {
  .vis-tabs {
    gap: 0 4px;
  }

  .vis-tabs a {
    padding-inline: 8px;
    font-size: 13px;
  }

  .juzup-grid--three {
    grid-template-columns: minmax(0, 1fr);
  }

  [aria-labelledby="juzup-mascot"] .juzup-grid,
  [aria-labelledby="hepaiya-mascot"] .juzup-grid,
  [aria-labelledby="qiaohetao-mascot"] .juzup-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 490px) {
  .juzup-scale-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .juzup-scale-list > :last-child {
    grid-column: 1 / -1;
  }
}

.qiaohetao-profile .juzup-mark { background:var(--qiaohetao-honey); }
.qiaohetao-profile .juzup-scale-list .juzup-card-image { background:#fff3be; }
.qiaohetao-profile img[src$="qiaohetao-approved-lockup.svg"] {
  content:url("assets/qiaohetao-nav-transparent-light.svg");
}
.qiaohetao-profile .qiaohetao-logo-dark img {
  content:url("assets/qiaohetao-nav-transparent-dark.svg");
}
.qiaohetao-profile img[src$="qiaohetao-approved-symbol.svg"] {
  content:url("assets/qiaohetao-transparent-symbol.svg");
}
