.hero-referral {
  display: block;
  grid-column: 1 / -1;
  margin: 16px 0 0;
}

.hero-referral summary {
  display: inline-flex;
  max-inline-size: 100%;
  min-block-size: 40px;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid #40594f;
  border-radius: 10px;
  background: #1a2825;
  color: #e3efe9;
  font-size: .875rem;
  text-align: start;
  list-style: none;
  cursor: pointer;
}

.hero-referral summary::-webkit-details-marker { display: none; }
.hero-referral summary:hover { background: #233831; }
.hero-referral summary:focus-visible { outline: 2px solid #bcebd5; outline-offset: 3px; }
.hero-referral .site-icon { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.hero-referral .site-icon, .hero-referral strong { color: var(--mint, #bcebd5); }

.hero-referral summary::after {
  content: "";
  width: 6px;
  height: 6px;
  flex: none;
  margin: 0 2px 3px 4px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.hero-referral[open] summary::after { margin-block: 3px 0; transform: rotate(225deg); }

.hero-referral p {
  max-width: 38ch;
  margin: 10px auto 0;
  color: #b7c7c3;
  font-size: .875rem;
  line-height: 1.6;
}

[data-home-design="studio"] .hero-referral p,
[data-home-design="terminal"] .hero-referral p,
[data-home-design="market"] .hero-referral p { margin-inline-start: 0; }

.hero-referral p a { color: var(--mint); text-decoration: underline; text-underline-offset: 3px; }
.referral-nav-link { white-space: nowrap; }

.referral-section {
  scroll-margin-top: 90px;
  border-top: 1px solid var(--line);
  padding-top: clamp(24px, 4vw, 48px);
  margin-block: clamp(36px, 5vw, 64px);
}

.referral-section h2 { font-size: clamp(1.65rem, 3vw, 2.5rem); line-height: 1.15; }
.referral-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.referral-option { display: grid; grid-template-columns: 104px minmax(0, 1fr); align-items: center; gap: clamp(12px, 2vw, 22px); padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.referral-art { display: grid; place-items: center; min-height: 92px; border-radius: 8px; }
.referral-art svg { width: 88px; height: auto; }
.referral-art-vip { background: #262720; }
.referral-art-partner { background: #1b2c29; }
.referral-option h3 { margin: 0 0 6px; font-size: clamp(1.05rem, 1.6vw, 1.3rem); }
.referral-option p, .referral-path { color: var(--muted); line-height: 1.55; }
.referral-path { margin-top: 14px; }

@media (min-width: 821px) and (max-width: 1080px) {
  .masthead .product-nav { gap: 14px; }
}

@media (max-width: 620px) {
  .referral-options { grid-template-columns: 1fr; }
}
