/* Header and hero shared by Text Lab and World Time & Weather. */
.tool-hero-page .site-header.site-header--v2 {
  width: min(1440px, calc(100% - 64px));
  max-width: none;
  padding-inline: 0;
  font-family: var(--font-family-title);
}

.tool-hero-page .site-header::before {
  background: transparent;
}

.tool-hero-page .site-header .search {
  width: 340px;
  height: 42px;
  background: color-mix(in srgb, var(--color-surface) 88%, transparent);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--color-text) 10%, transparent);
}

.tool-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  min-height: 0;
  margin-bottom: 0;
  padding: 20px 0 0;
}

.tool-hero::before {
  position: absolute;
  z-index: -2;
  top: calc(-1 * var(--common-header-height) - 4px);
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  background:
    radial-gradient(
      ellipse at 78% 15%,
      color-mix(in srgb, var(--color-primary) 11%, transparent),
      transparent 65%
    ),
    linear-gradient(115deg, var(--color-surface), var(--color-background));
  content: '';
  pointer-events: none;
}

.tool-hero::after {
  position: absolute;
  z-index: 0;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--color-surface));
  content: '';
  pointer-events: none;
}

.tool-hero-waves {
  position: absolute;
  z-index: -1;
  bottom: 0;
  left: calc(50% - 50vw);
  width: 100vw;
  height: 155px;
  pointer-events: none;
}

.tool-wave-back {
  fill: color-mix(in srgb, var(--color-primary) 7%, transparent);
}

.tool-wave-front {
  fill: color-mix(in srgb, var(--color-primary) 10%, transparent);
}

.tool-hero-art {
  position: absolute;
  right: clamp(64px, 10vw, 180px);
  bottom: -8px;
  width: clamp(320px, 29vw, 480px);
  height: 224px;
  object-fit: contain;
  pointer-events: none;
}

.tool-hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 62%;
}

.tool-hero-actions {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  margin-top: 14px;
  font-family: var(--font-family-title);
}

.tool-hero-features {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tool-hero-features li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--color-muted) 9%, var(--color-surface));
  color: var(--color-text);
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
}

.tool-hero-features svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tool-hero h1 {
  color: var(--color-text);
}

.tool-hero [data-page-title-part='description'] {
  color: color-mix(in srgb, var(--color-text) 20%, var(--color-muted));
}

@media (prefers-color-scheme: dark) {
  .tool-hero-art {
    opacity: 0.75;
  }
}

@media (max-width: 768px) {
  .tool-hero-page .site-header.site-header--v2 {
    width: calc(100% - 28px);
  }

  .tool-hero-page .site-header .brand {
    left: 0;
    width: min(24vw, 112px);
  }

  .tool-hero-page .site-header .tagline {
    left: calc(min(24vw, 112px) + 12px);
  }

  .tool-hero-page .site-header .menu {
    right: 0;
  }

  .tool-hero {
    align-items: stretch;
    gap: 0;
    min-height: 0;
    margin-top: -4px;
    margin-bottom: 4px;
    padding: 0 16px 4px;
  }

  .tool-hero::before {
    top: calc(-1 * var(--common-header-height));
  }

  .tool-hero-copy {
    width: 100%;
    max-width: none;
  }

  .tool-hero-art {
    right: 24px;
    bottom: 0;
    width: 190px;
    height: 150px;
    opacity: 0.2;
  }

  .tool-hero-waves {
    height: 120px;
  }

  .tool-hero [data-page-title-part='description'] {
    display: none;
  }

  .tool-hero-features {
    gap: 4px;
  }

  .tool-hero-actions {
    gap: 6px;
    margin-top: 10px;
  }

  .tool-hero-features li {
    gap: 4px;
    padding-inline: 6px;
    font-size: clamp(10px, 2.7vw, 12px);
  }

  .tool-hero-features svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
  }

  .tool-hero-features .feature-desktop {
    display: none;
  }
}

@media (max-width: 1024px) {
  .tool-hero-page .site-header.site-header--compact-mobile {
    width: calc(100% - 32px);
    height: 56px;
    padding: 0;
    gap: 0;
    background: transparent;
  }

  .tool-hero-page .site-header--compact-mobile .brand {
    position: static;
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 6px;
    width: auto;
    max-width: none;
    height: auto;
  }

  .tool-hero-page .site-header--compact-mobile .brand picture,
  .tool-hero-page .site-header--compact-mobile .brand img {
    display: block;
    width: 23px;
    height: 23px;
  }

  .tool-hero-page .site-header--compact-mobile .brand strong {
    display: block;
    color: #00a9e8;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: -0.045em;
    line-height: 1.2;
  }

  .tool-hero-page .site-header--compact-mobile .tagline,
  .tool-hero-page .site-header--compact-mobile .search {
    display: none;
  }
}
