/* Community services share one destination and coordinated focus/hover states. */
.site-header .header-inner {
  grid-template-columns: minmax(180px, 220px) minmax(0, 1fr);
  gap: 32px;
  padding-block: 16px;
}
.community-hub {
  --community-blue: #216fae;
  --community-ink: #34465a;
  --community-muted: #586b80;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #e2eaf5;
  border-radius: 20px;
  background: linear-gradient(115deg, #fbfdff, #f1f6fd);
}
.community-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  min-width: 0;
}
.community-benefit {
  display: grid;
  align-content: center;
  gap: 5px;
  min-width: 0;
  min-height: 60px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--community-ink);
  transition: background-color .2s, border-color .2s, box-shadow .2s;
}
.community-benefit-heading { display: flex; align-items: center; gap: 7px; }
.community-benefit strong { font-size: 14px; font-weight: 700; line-height: 1.4; }
.community-benefit small { font-size: 12px; line-height: 1.5; color: var(--community-muted); }
.community-benefit [data-icon] { color: var(--community-blue); }
.community-benefit [data-icon] svg { width: 18px; height: 18px; }
.community-benefit[data-community-benefit="gift"] [data-icon] { color: #b34f85; }
.community-benefit[data-community-benefit="guide"] [data-icon] { color: #a56b18; }
.community-benefit:hover,
.community-benefit:focus-visible,
.community-benefit.is-linked {
  border-color: #c8ddef;
  background: #fff;
  box-shadow: 0 4px 12px #23699d0a;
}
.community-benefit:focus-visible { outline: 2px solid var(--community-blue); outline-offset: 2px; }
#communityHub #supportLink {
  display: flex !important;
  align-items: center;
  grid-column: auto;
  width: 166px;
  min-height: 60px;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 13px;
  color: #fff !important;
  background: #216fae !important;
}
#communityHub #supportLink > .community-join-copy {
  display: flex !important;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  font-size: 15px;
  white-space: nowrap;
}
#communityHub #supportLink .community-join-copy small {
  display: block;
  color: #e4f2ff !important;
  font-size: 10px;
  letter-spacing: .03em;
}
#communityHub #supportLink > [data-icon="qq"] {
  width: 32px;
  height: 36px;
  border-radius: 9px;
  background: #fff;
}
#communityHub #supportLink > [data-icon="qq"] svg { width: 23px; height: 29px; }
#communityHub #supportLink .support-arrow { display: flex; margin-left: auto; color: #fff !important; }
#communityHub #supportLink .support-arrow svg { width: 15px; height: 15px; margin-left: 0; }
#communityHub #supportLink.is-linked { --qq-border-angle: 250deg; background: #185f99 !important; }
#communityHub #supportLink.is-linked::before { opacity: .85; }
.community-hub:has(#supportLink:hover) .community-benefit,
.community-hub:has(#supportLink:focus-visible) .community-benefit { border-color: #c8ddef; background: #fff; }

@media (max-width: 1100px) {
  .site-header .header-inner { grid-template-columns: 190px minmax(0, 1fr); gap: 20px; }
  .community-hub { gap: 10px; padding: 8px; }
  .community-benefit { padding-inline: 8px; }
  .community-benefit strong { font-size: 13px; }
  .community-benefit small { font-size: 11px; }
}
@media (max-width: 960px) {
  .site-header .header-inner { grid-template-columns: minmax(0, 1fr) auto; gap: 12px; padding-block: 14px; }
  .site-header .brand { grid-column: 1; grid-row: 1; }
  .community-hub { display: contents; }
  .community-benefits {
    grid-column: 1 / -1;
    grid-row: 2;
    padding: 6px;
    border: 1px solid #e2eaf5;
    border-radius: 16px;
    background: #f4f8fd;
  }
  #communityHub #supportLink { grid-column: 2; grid-row: 1; width: 158px; min-height: 54px; }
  .community-benefit { padding: 8px 12px; }
  .community-benefit strong { font-size: 14px; }
  .community-benefit small { font-size: 12px; }
}
@media (max-width: 600px) {
  .site-header .header-inner { gap: 10px; padding-block: 12px; }
  .community-benefits { gap: 3px; padding: 5px; }
  .community-benefit { min-height: 66px; padding: 8px 5px; gap: 5px; }
  .community-benefit-heading { gap: 4px; }
  .community-benefit strong { font-size: 13px; }
  .community-benefit small { font-size: 11px; overflow-wrap: anywhere; }
  .community-benefit [data-icon] svg { width: 15px; height: 15px; }
  #communityHub #supportLink { width: 144px; min-height: 50px; padding: 8px 10px; gap: 8px; }
  #communityHub #supportLink > .community-join-copy { font-size: 14px; }
  #communityHub #supportLink .support-arrow { display: none; }
}
@media (max-width: 350px) {
  #communityHub #supportLink { width: 132px; }
  .community-benefit strong { font-size: 12px; }
  .community-benefit small { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .community-benefit { transition: none; }
  #communityHub #supportLink.is-linked { --qq-border-angle: 70deg; }
}
