.hero-search {
  --fc-line: var(--gesso-divider);
  --fc-muted: var(--gesso-fg-muted);
  padding-block: clamp(60px, 10svh, 112px) clamp(54px, 9svh, 100px);
  border-bottom: 1px solid var(--gesso-divider);
}

.hero-search-inner {
  max-width: 1360px;
  text-align: center;
}

.hero-search .eyebrow { font-size: 12px; }

.hero-search h1 {
  margin: 18px 0 clamp(30px, 3.6vw, 52px);
  font-family: var(--font-display);
  font-size: clamp(32px, 6.1vw, 92px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.015em;
  text-wrap: balance;
}

html[lang|="en"] .hero-search h1 { font-size: clamp(30px, 5.35vw, 80px); }
.hero-search h1 em { color: var(--gesso-fg-muted); font-style: normal; }
.hero-search h1 .dot { color: var(--gesso-accent); }

.hero-search .fc-composer,
.hero-search-suggestions,
.hero-search-context {
  width: min(100%, 1080px);
  margin-inline: auto;
}

.hero-search .fc-composer {
  min-height: clamp(64px, 5.4vw, 82px);
  padding-inline-start: clamp(12px, 1.7vw, 26px);
  text-align: start;
}
.hero-search .fc-composer textarea { font-size: clamp(16px, 1.25vw, 18px); }
.hero-search .fc-composer-submit {
  min-height: clamp(44px, 3.75vw, 56px);
  padding-inline: clamp(16px, 1.65vw, 24px);
  font-size: clamp(13px, 1.05vw, 15px);
  white-space: nowrap;
}
.hero-search :where(button, a):focus-visible {
  outline: 2px solid var(--gesso-accent);
  outline-offset: 3px;
}

.hero-search-suggestions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
  margin-top: 16px;
  color: var(--gesso-fg-muted);
  font-size: 13px;
}

.hero-search-suggestions > span { margin-inline-end: 4px; }
.hero-search-term {
  min-height: 40px;
  padding: 7px 12px;
  border: 1px solid var(--gesso-divider);
  border-radius: var(--radius-sm);
  background: var(--gesso-surface);
  color: var(--gesso-fg);
  font-size: inherit;
  line-height: 1.35;
}
.hero-search-term:hover:not(:disabled) {
  border-color: var(--gesso-fg-faint);
  background: var(--gesso-canvas);
}
.hero-search-term:disabled { opacity: .6; cursor: default; }

.hero-search-context {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 22px;
  padding: 18px 0 0;
  margin-top: clamp(24px, 2.8vw, 40px);
  border-top: 1px solid var(--gesso-divider);
  color: var(--gesso-fg-muted);
  font-size: 13px;
  list-style: none;
}
.hero-search-context li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.hero-search-context li::before {
  content: '';
  width: 4px;
  height: 4px;
  background: var(--gesso-fg-faint);
}
.hero-search-status,
.hero-search-noscript { margin-top: 12px; font-size: 13px; }
.hero-search-status a,
.hero-search-noscript a { text-decoration: underline; }

@media (max-width: 640px) {
  .hero-search { padding-block: clamp(46px, 10vw, 60px) clamp(40px, 9vw, 54px); }
  .hero-search-inner { padding-inline: clamp(16px, 5vw, 20px); }
  .hero-search .eyebrow { font-size: 11px; }
  .hero-search h1:not(:lang(zh)) br { display: none; }
  .hero-search h1:lang(ko) { word-break: keep-all; }
  .hero-search .fc-composer-submit { padding-inline: 10px; font-size: 12px; }
  .hero-search-suggestions { gap: 6px; font-size: 12px; }
  .hero-search-suggestions > span { flex: 0 0 100%; }
  .hero-search-term { padding-inline: 10px; }
  .hero-search-context { column-gap: 12px; font-size: 12px; }
  #view-hero ~ footer .foot-col a { overflow-wrap: anywhere; }
  #view-hero ~ footer .foot-bottom { flex-wrap: wrap; gap: 8px 16px; }
}
