:root {
  --cw-public-frame: 1320px;
  --cw-public-gutter: clamp(16px, 3vw, 32px);
  scroll-padding-top: 24px;
}

.site-header {
  position: relative;
  top: auto;
  background: var(--paper);
  color: var(--ink);
  border-bottom-color: var(--border);
  backdrop-filter: none;
}

.site-header .nav-shell,
.container,
.section-shell {
  width: min(var(--cw-public-frame), calc(100% - 2 * var(--cw-public-gutter)));
}

.site-header .nav-shell {
  height: auto;
  min-height: 84px;
  gap: clamp(12px, 2vw, 30px);
}

.site-header :is(.main-navigation > a, .nav-group > summary, .nav-account, .nav-search) {
  color: var(--ink);
}

.site-header :is(.main-navigation > a, .nav-group > summary, .nav-account):hover {
  color: var(--blue);
}

.site-header :is(.main-navigation.open, .nav-group-links) {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--border);
}

.site-header .nav-group-links :is(a, small, strong) { color: inherit; }
.site-header .menu-toggle { border-color: var(--border); }
.site-header .menu-toggle > span { background: var(--ink); }

.marketing-hero.home-hero { padding-block: clamp(44px, 5.5vw, 88px) 42px; }

.home-hero .home-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 4vw, 60px);
}

.home-hero .home-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: start;
  column-gap: clamp(30px, 6vw, 108px);
}

.home-hero .home-hero-copy > .eyebrow { grid-column: 1 / -1; }
.home-hero .home-hero-copy > h1 { grid-area: 2 / 1 / 5; }
.home-hero .home-hero-copy > :is(.hero-lead, .hero-actions, .hero-small) { grid-column: 2; }
.home-hero .home-hero-copy > .hero-lead { margin-top: 4px; }

.home-hero .home-hero-art {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.home-hero-art .product-shot { margin: 0; }
.home-hero-art .product-shot img { width: 100%; }
.home-hero .home-hero-art :is(.home-hero-art-heading, .home-hero-art-title, .home-hero-steps),
.product-shot > figcaption { display: none !important; }

@media (max-width: 950px) {
  .site-header .nav-shell { min-height: 74px; }
  .site-header .main-navigation.open { top: 100%; }
  .home-hero .home-hero-copy { display: block; }
  .home-hero .home-hero-copy > .hero-lead { margin-top: 18px; }
}

@media (max-width: 390px) {
  .site-header .nav-shell { gap: 8px; }
}

@media (min-width: 901px) {
  .site-header .nav-shell,
  main .container,
  main .section-shell,
  .cw-feature-page .container,
  .site-footer .container {
    box-sizing: border-box;
    width: calc(100% - 2 * clamp(32px, 2.5vw, 48px));
    max-width: none;
    margin-inline: auto;
  }

  .marketing-hero .home-hero-layout:has(.product-shot),
  .cw-feature-hero .home-hero-layout:has(.product-shot) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: clamp(40px, 4vw, 88px);
  }

  .home-hero .home-hero-copy {
    display: block;
  }

  .home-hero .home-hero-copy > .hero-lead {
    margin-block-start: 1.2rem;
  }
}

@media (max-width: 900px) {
  .marketing-hero .home-hero-layout,
  .cw-feature-hero .home-hero-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  main .gallery-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .25rem;
    overflow: visible;
  }

  main .gallery-tabs > button,
  main .gallery-tabs > button:first-child {
    min-width: 0;
    min-height: 44px;
    padding: .625rem .5rem;
    text-align: center;
    white-space: normal;
  }
}

:is(.marketing-hero, .cw-feature-hero) .home-hero-art {
  min-width: 0;
  width: 100%;
  max-width: none;
  margin: 0;
}

:root {
  --cw-screenshot-max-height: min(72svh, 780px);
  --cw-screenshot-dialog-gutter: clamp(.5rem, 1.5vw, 1.5rem);
}

main .product-shot .shot-open {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
}

main .product-shot .shot-open img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: var(--cw-screenshot-max-height);
  aspect-ratio: auto;
  object-fit: contain;
}

main .home-hero-art .product-shot .shot-open {
  margin-inline-start: 0;
}

.screenshot-dialog[open] {
  box-sizing: border-box;
  width: fit-content;
  max-width: calc(100% - 2 * var(--cw-screenshot-dialog-gutter));
  max-height: calc(100dvh - 2 * var(--cw-screenshot-dialog-gutter));
  padding: clamp(.625rem, 1.5vw, 1rem);
}

.screenshot-dialog .lightbox-toolbar {
  gap: .75rem;
  margin-block-end: .625rem;
}

.screenshot-dialog .lightbox-toolbar p {
  max-width: 60ch;
  margin: 0;
  overflow-wrap: anywhere;
}

.screenshot-dialog .lightbox-toolbar button {
  width: 44px;
  height: 44px;
}

.screenshot-dialog > img {
  display: block;
  max-height: max(6rem, calc(100dvh - 10rem));
}

.screenshot-dialog > a {
  margin-block-start: .625rem;
}

.manual-article .article-section > :is(p, ol, ul, .article-note),
.legal-page .article-section > :is(p, ol, ul, .article-note) {
  max-inline-size: 72ch;
}
