/* Shared responsive baseline for the static site. */
html {
  overflow-x: hidden;
  text-size-adjust: 100%;
}

body {
  min-width: 0;
  overflow-x: hidden;
}

img,
svg,
video,
canvas,
iframe {
  max-width: 100%;
}

#dc-root,
#dc-root > .sc-host {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: clip;
}

#dc-root [style*="max-width:1200px"],
#dc-root [style*="max-width:1280px"] {
  width: 100%;
}

#dc-root [style*="display:grid"] > *,
#dc-root [style*="display:flex"] > * {
  min-width: 0;
}

#dc-root h1,
#dc-root h2,
#dc-root h3,
#dc-root p,
#dc-root a,
#dc-root span {
  overflow-wrap: break-word;
}

@media (max-width: 700px) {
  /* Keep the brand, call to action, and navigation usable without a hamburger. */
  #dc-root header > div {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 12px 14px !important;
    padding: 16px 18px !important;
  }

  #dc-root header > div > a:first-child {
    min-width: 0;
  }

  #dc-root header > div > nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 8px 14px !important;
    margin-left: 0 !important;
    font-size: 11px !important;
  }

  #dc-root header > div > a:last-child {
    grid-column: 2;
    grid-row: 1;
    justify-self: end;
    font-size: 10px !important;
    padding: 9px 12px !important;
  }

  /* Replace fixed desktop gutters with a compact, fluid gutter. */
  #dc-root [style*="padding:0 40px"],
  #dc-root [style*="padding:0 40px 46px"],
  #dc-root [style*="padding:56px 40px"],
  #dc-root [style*="padding:64px 40px"],
  #dc-root [style*="padding:72px 40px"],
  #dc-root [style*="padding:84px 40px"],
  #dc-root [style*="padding:108px 40px"] {
    padding-left: clamp(18px, 5vw, 28px) !important;
    padding-right: clamp(18px, 5vw, 28px) !important;
  }

  #dc-root [style*="padding:20px 40px"] {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  /* Collapse every content grid at phone width. The desktop rules remain
     inline so wider screens keep their intended editorial layout. */
  #dc-root [style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
  }

  #dc-root [style*="width:300px"] {
    width: 100% !important;
    max-width: 300px;
  }

  #dc-root [style*="height:460px"],
  #dc-root [style*="height:420px"],
  #dc-root [style*="height:400px"] {
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 3;
  }

  #dc-root section[data-screen-label*="Hero"] {
    min-height: 460px !important;
  }

  #dc-root section[data-screen-label="Home / Hero"] {
    min-height: 600px !important;
  }

  #dc-root section[data-screen-label="Gallery / Header"] {
    min-height: 540px !important;
  }

  #dc-root [style*="display:flex"][style*="align-items"] {
    flex-wrap: wrap;
  }

  #dc-root [style*="white-space:nowrap"] {
    white-space: normal !important;
  }

  #dc-root aside[style*="position:sticky"] {
    position: static !important;
  }

  #dc-root h1 {
    font-size: clamp(34px, 11vw, 52px) !important;
  }

  #dc-root h2 {
    font-size: clamp(25px, 8vw, 34px) !important;
  }

  #dc-root h3 {
    font-size: clamp(17px, 5vw, 22px) !important;
  }

  #dc-root blockquote {
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 18px !important;
  }

  #dc-root figure {
    width: 100%;
  }

  #dc-root image-slot {
    display: block;
    width: 100%;
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}