footer {
  padding-bottom: 28px;
}

dialog {
  overflow-x: hidden;
}

.region-flow,
.region-flow ol {
  min-width: 0;
  max-width: 100%;
}

.catalog-gateway {
  padding: 100px clamp(28px, 6vw, 96px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: clamp(50px, 9vw, 140px);
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.catalog-gateway h2,
.catalog-hero h1 {
  margin: 0;
  font-size: clamp(42px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -.055em;
}

.catalog-gateway h2 em,
.catalog-hero h1 em {
  font-family: Georgia, serif;
  font-weight: 400;
}

.gateway-copy > p,
.catalog-hero > p:last-child {
  color: var(--muted);
  line-height: 1.75;
}

.gateway-copy ul {
  list-style: none;
  margin: 26px 0 30px;
  padding: 16px 0;
  border-block: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font: 10px var(--mono);
  text-transform: uppercase;
}

.catalog-hero {
  padding: 90px clamp(28px, 6vw, 96px) 70px;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 60px;
  align-items: end;
  border-bottom: 1px solid var(--line);
}

.catalog-hero .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -20px;
}

.catalog-hero > p:last-child {
  max-width: 520px;
  margin: 0;
}

.catalog-workspace {
  padding-top: 42px;
}

.facet-row {
  display: flex;
  align-items: end;
  gap: 10px;
  margin: -10px 0 30px;
  padding: 14px 0;
  border-block: 1px solid var(--line);
}

.facet-row label {
  display: grid;
  gap: 6px;
  min-width: 170px;
  color: var(--muted);
  font: 9px var(--mono);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.facet-row select,
.facet-row button {
  width: 100%;
  min-width: 0;
  min-height: 38px;
  padding: 8px 32px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: 11px var(--sans);
}

.facet-row button {
  margin-left: auto;
  padding-inline: 14px;
  cursor: pointer;
}

@media (max-width: 700px) {
  .catalog-gateway,
  .catalog-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    padding-block: 70px;
  }

  .catalog-hero .eyebrow {
    margin-bottom: 0;
  }

  .catalog-workspace {
    padding-top: 20px;
  }

  .facet-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .facet-row label {
    min-width: 0;
  }

  .facet-row button {
    margin-left: 0;
  }
}

.friend-links {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 38px;
  padding-top: 16px;
  border-top: 1px solid #151a1714;
  color: #737a74;
  font: 9px var(--mono);
  letter-spacing: .05em;
}

.friend-links span {
  margin-right: auto;
  color: #969b96;
}

.friend-links a {
  opacity: .68;
  transition: opacity .2s;
}

.friend-links a:hover,
.friend-links a:focus {
  opacity: 1;
  text-decoration: underline;
}

@media (max-width: 700px) {
  .hero-copy {
    min-width: 0;
  }

  .hero-stats {
    width: 100%;
  }

  .hero-stats div {
    min-width: 0;
    flex: 1;
    padding-inline: 12px;
  }

  .connect > *,
  .terminal {
    min-width: 0;
    max-width: 100%;
  }

  .friend-links {
    justify-content: flex-start;
    margin-top: 6px;
  }

  .friend-links span {
    flex-basis: 100%;
    margin-bottom: 4px;
  }
}
/* Locale control shared by the landing page and catalog. */
.top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.language-toggle {
  min-width: 46px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  font: 600 11px var(--mono);
  cursor: pointer;
}

.language-toggle:hover,
.language-toggle:focus-visible {
  border-color: var(--ink);
  background: var(--acid);
}

/* Only the first eyebrow span is the decorative rule. i18n wraps its text in a
   second span, which must retain its natural width. */
.eyebrow > span:not(:first-child) {
  width: auto;
  height: auto;
  background: transparent;
  box-shadow: none;
}
