.hua-foreign-circle-home,
.hua-foreign-circle-page,
.hua-foreign-circle-page * {
  box-sizing: border-box;
}

.hua-home > .hua-foreign-circle-home {
  margin-block: 30px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--hua-marketplace-border, #dfe4ec);
  border-left: 5px solid var(--hua-marketplace-red, #d9232e);
  border-radius: 22px;
  background: var(--hua-marketplace-surface, #fff);
  box-shadow: 0 14px 36px rgba(18, 58, 112, .07);
}

.hua-foreign-circle-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

/* This is a section heading, not the inherited fixed mobile site header. */
.hua-foreign-circle-home > .hua-foreign-circle-heading {
  position: static;
  inset: auto;
  z-index: auto;
  float: none;
  clear: none;
  width: auto;
  height: auto;
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
}

.hua-foreign-circle-heading > div,
.hua-foreign-circle-copy,
.hua-foreign-circle-hero-copy,
.hua-foreign-circle-scope > div {
  min-width: 0;
}

.hua-foreign-circle-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: var(--hua-marketplace-red, #d9232e);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .03em;
}

.hua-foreign-circle-heading h2,
.hua-foreign-circle-hero h1 {
  margin: 0;
  color: var(--hua-marketplace-text, #101828);
  font-weight: 850;
  letter-spacing: -.025em;
  overflow-wrap: anywhere;
}

.hua-foreign-circle-heading h2 {
  font-size: clamp(24px, 2vw, 32px);
  line-height: 1.2;
}

.hua-foreign-circle-heading p,
.hua-foreign-circle-hero-copy > p,
.hua-foreign-circle-scope p {
  margin: 8px 0 0;
  color: var(--hua-marketplace-muted, #667085);
  line-height: 1.65;
  overflow-wrap: anywhere;
}

.hua-foreign-circle-heading > a {
  display: inline-flex;
  min-height: 48px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 16px;
  border-radius: 12px;
  color: var(--hua-marketplace-blue, #123a70);
  font-weight: 800;
  text-decoration: none;
}

.hua-foreign-circle-heading > a:hover {
  background: #f1f5fb;
}

.hua-foreign-circle-heading > a .hua-icon,
.hua-foreign-circle-action .hua-icon,
.hua-foreign-circle-breadcrumb .hua-icon {
  width: 18px;
  height: 18px;
}

.hua-foreign-circle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.hua-foreign-circle-grid-landing {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.hua-foreign-circle-card {
  --hua-circle-accent: var(--hua-marketplace-blue, #123a70);
  display: grid;
  min-width: 0;
  min-height: 144px;
  grid-template-columns: 46px minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 10px 12px;
  padding: 18px;
  border: 1px solid var(--hua-marketplace-border, #dfe4ec);
  border-bottom: 3px solid var(--hua-circle-accent);
  border-radius: 16px;
  background: #fff;
  color: var(--hua-marketplace-text, #101828);
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.hua-foreign-circle-card.hua-tone-red {
  --hua-circle-accent: var(--hua-marketplace-red, #d9232e);
}

.hua-foreign-circle-card:hover {
  border-color: color-mix(in srgb, var(--hua-circle-accent) 42%, #dfe4ec);
  box-shadow: 0 12px 26px rgba(16, 24, 40, .1);
  transform: translateY(-2px);
}

.hua-foreign-circle-card:focus-visible,
.hua-foreign-circle-heading > a:focus-visible,
.hua-foreign-circle-breadcrumb a:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--hua-marketplace-blue, #123a70) 32%, transparent);
  outline-offset: 3px;
}

.hua-foreign-circle-icon {
  display: inline-flex;
  width: 46px;
  height: 46px;
  grid-row: 1 / span 2;
  align-items: center;
  justify-content: center;
  border-radius: 13px;
  background: color-mix(in srgb, var(--hua-circle-accent) 10%, white);
  color: var(--hua-circle-accent);
}

.hua-foreign-circle-icon .hua-icon {
  width: 25px;
  height: 25px;
}

.hua-foreign-circle-copy {
  display: block;
}

.hua-foreign-circle-copy strong {
  display: block;
  color: var(--hua-marketplace-text, #101828);
  font-size: 16px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.hua-foreign-circle-copy small {
  display: -webkit-box;
  margin-top: 6px;
  overflow: hidden;
  color: var(--hua-marketplace-muted, #667085);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.hua-foreign-circle-action {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  color: var(--hua-circle-accent);
  font-size: 13px;
  font-weight: 800;
}

.hua-foreign-circle-page {
  min-width: 0;
  padding: 20px 0 56px;
  background: var(--hua-marketplace-canvas, #f7f8fa);
}

.hua-foreign-circle-breadcrumb {
  display: flex;
  min-width: 0;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  color: var(--hua-marketplace-muted, #667085);
  font-size: 14px;
}

.hua-foreign-circle-breadcrumb a {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  color: var(--hua-marketplace-blue, #123a70);
  font-weight: 750;
  text-decoration: none;
}

.hua-foreign-circle-breadcrumb span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hua-foreign-circle-hero {
  position: relative;
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  gap: 24px;
  padding: clamp(24px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid var(--hua-marketplace-border, #dfe4ec);
  border-top: 5px solid var(--hua-marketplace-red, #d9232e);
  border-bottom: 5px solid var(--hua-marketplace-blue, #123a70);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(18, 58, 112, .08);
}

.hua-foreign-circle-hero h1 {
  max-width: 760px;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
}

.hua-foreign-circle-hero-copy > p {
  max-width: 720px;
  font-size: 17px;
}

.hua-foreign-circle-scope {
  display: flex;
  min-width: 0;
  align-self: end;
  gap: 14px;
  padding: 18px;
  border: 1px solid #d6e0ee;
  border-radius: 16px;
  background: #f5f8fc;
}

.hua-foreign-circle-scope > .hua-icon {
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  color: var(--hua-marketplace-blue, #123a70);
}

.hua-foreign-circle-scope strong {
  display: block;
  color: var(--hua-marketplace-blue, #123a70);
  font-size: 16px;
}

.hua-foreign-circle-scope p {
  font-size: 14px;
}

.hua-foreign-circle-directory {
  min-width: 0;
  margin-top: 22px;
}

.hua-foreign-circle-grid-landing .hua-foreign-circle-card {
  min-height: 168px;
  padding: 22px;
}

.hua-foreign-circle-grid-landing .hua-foreign-circle-copy strong {
  font-size: 18px;
}

@media (max-width: 980px) {
  .hua-foreign-circle-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hua-foreign-circle-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hua-home > .hua-foreign-circle-home {
    width: auto;
    margin: 20px 14px;
    padding: 18px 14px;
    border-radius: 18px;
  }

  .hua-foreign-circle-heading {
    display: block;
    margin-bottom: 14px;
  }

  .hua-foreign-circle-heading > a {
    width: 100%;
    margin-top: 10px;
    justify-content: space-between;
    background: #f1f5fb;
  }

  .hua-foreign-circle-grid,
  .hua-foreign-circle-grid-landing {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }

  .hua-foreign-circle-card,
  .hua-foreign-circle-grid-landing .hua-foreign-circle-card {
    min-height: 124px;
    grid-template-columns: 44px minmax(0, 1fr) 24px;
    grid-template-rows: auto;
    align-items: center;
    gap: 10px;
    padding: 14px;
  }

  .hua-foreign-circle-icon {
    width: 44px;
    height: 44px;
    grid-row: auto;
  }

  .hua-foreign-circle-copy small {
    -webkit-line-clamp: 2;
  }

  .hua-foreign-circle-action {
    min-width: 24px;
    justify-content: center;
  }

  .hua-foreign-circle-action span {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .hua-foreign-circle-page {
    width: 100%;
    overflow-x: clip;
    padding: 8px 0 calc(92px + env(safe-area-inset-bottom));
  }

  .hua-foreign-circle-breadcrumb,
  .hua-foreign-circle-hero,
  .hua-foreign-circle-directory {
    width: auto;
    margin-inline: 14px;
  }

  .hua-foreign-circle-hero {
    padding: 22px 18px;
    border-radius: 18px;
  }

  .hua-foreign-circle-hero h1 {
    font-size: clamp(30px, 10vw, 42px);
  }

  .hua-foreign-circle-hero-copy > p {
    font-size: 15px;
  }

  .hua-foreign-circle-scope {
    padding: 14px;
  }

  .hua-foreign-circle-directory {
    margin-top: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hua-foreign-circle-card {
    transition: none;
  }

  .hua-foreign-circle-card:hover {
    transform: none;
  }
}
