/* Keep the voice graphic centered when the tour's mobile styles load. */
#root .product-tour-page .tour-transition > .tour-voice-flow-shell {
  align-content: center;
}

#root .product-tour-page .tour-transition .tour-voice-flow-art {
  transform: none;
}

/* The desktop belt starts two pixels inside its viewport. Fit whole cards
   between those insets when the belt is at rest. */
@media (min-width: 641px) {
  @container (min-width: 640px) {
    #heddy-connect .heddy-connect-gallery {
      --connect-gap: clamp(.85rem, 1.35vw, 1.25rem);
      column-gap: var(--connect-gap);
      grid-auto-columns: calc((100cqw - 4px - var(--connect-gap)) / 2);
    }
  }

  @container (min-width: 990px) {
    #heddy-connect .heddy-connect-gallery {
      grid-auto-columns: calc((100cqw - 4px - 2 * var(--connect-gap)) / 3);
    }
  }

  @container (min-width: 1340px) {
    #heddy-connect .heddy-connect-gallery {
      grid-auto-columns: calc((100cqw - 4px - 3 * var(--connect-gap)) / 4);
    }
  }
}

html[data-heddy-legal][data-website-appearance="woodland"] #root > div {
  --foreground: var(--earth-ink);
  --muted-foreground: var(--earth-copy);
  --background: var(--earth-panel);
  --muted: var(--earth-inset);
  --border: var(--earth-edge-soft);
  --primary: var(--earth-action);
  --primary-foreground: #fff8ef;
  color: var(--foreground);
}

html[data-heddy-legal][data-website-appearance="woodland"] #root main :is(h1, h2, h3, th, td) {
  color: var(--earth-ink);
}

html[data-heddy-legal][data-website-appearance="woodland"] #root main thead {
  background-color: var(--earth-inset);
}

html[data-heddy-legal] #root main [class*="text-muted-foreground/"] {
  color: var(--muted-foreground);
}

html[data-heddy-legal] #root :is(header, footer) .container,
html[data-heddy-legal] #root main.container {
  margin-inline: auto;
}

html[data-heddy-legal] #root main.container {
  box-sizing: border-box;
  inline-size: 100%;
  max-inline-size: 48rem;
}

/* iPhone Safari extends the opaque edge of a fixed or sticky header into the status area. */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 767px) {
    html[data-website-appearance="woodland"] {
      --public-header-edge: #fdf6ea;
    }

    html[data-website-appearance="dark"] {
      --public-header-edge: #191919;
    }

    html[data-website-appearance] #root header:is(.landing-page-header, .sticky) {
      background: var(--public-header-edge);
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }
  }
}

@media (max-width: 767px) {
  html[data-heddy-legal] #root :is(header, main, footer) .container,
  html[data-heddy-legal] #root main.container {
    min-width: 0;
    max-width: 100%;
    padding-inline: max(1rem, env(safe-area-inset-left, 0px)) max(1rem, env(safe-area-inset-right, 0px));
  }

  html[data-heddy-legal] #root header .container {
    gap: 0.375rem;
  }

  html[data-heddy-legal] #root header .container > a:first-child {
    flex: none;
    gap: 0.375rem;
  }

  html[data-heddy-legal] #root header .landing-appearance {
    margin-inline: 0 auto;
  }

  html[data-heddy-legal] #root header .landing-appearance button {
    inline-size: 2rem;
  }

  html[data-heddy-legal] #root header .container > a:last-child :is(button, span) {
    white-space: normal;
  }

  html[data-heddy-legal] #root header .container > a:last-child button {
    padding-inline: 0.25rem;
    line-height: 1.15;
  }

  html[data-heddy-legal] #root header .container > a:last-child {
    min-width: 0;
  }

  html[data-heddy-legal] #root main :is(h1, h2, h3, p, li, td, th, a) {
    overflow-wrap: anywhere;
  }

  html[data-heddy-legal] #root main table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
  }

  html[data-heddy-legal] #root main :is(th, td) {
    padding-inline: 0.5rem;
    hyphens: auto;
  }
}
