/* Shared geometry for the three product shells. Use the same dimensions even
   when a product chooses a different root font size for its page content. */
body > header.pv8-public-header.pv8-suite-header {
  --suite-ink: #152d33;
  --suite-muted: #405557;
  --suite-line: #c9d5d4;
  --suite-paper: #fff;
  --suite-wash: #edf3f2;
  --suite-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --suite-gap: clamp(14px, 1.65vw, 27px);
  --suite-inset: max(clamp(16px, 2.4vw, 48px), calc((100% - 1472px) / 2));
  box-sizing: border-box;
  position: sticky;
  z-index: 1000;
  top: 0;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  width: 100%;
  height: var(--chapter-header, 72px);
  min-height: 0;
  padding: 0 var(--suite-inset);
  gap: var(--suite-gap);
  margin: 0;
  background: var(--suite-paper);
  color: var(--suite-ink);
  border: 0;
  border-bottom: 1px solid var(--suite-line);
  box-shadow: none;
  font: 16px/1.25 var(--suite-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html:has(> body > header.pv8-suite-header) { --landing-header: 72px; }
body > header.pv8-suite-header .pv8-brand-link {
  display: inline-flex;
  position: static;
  align-items: center;
  justify-content: start;
  flex: none;
  color: var(--suite-ink);
  width: 60px;
  height: 44px;
  padding: 0;
  transform: none;
}
.pv8-suite-header .pv8-brand-link img { display: block; width: 100%; height: auto; }
.pv8-suite-header .pv8-products {
  position: relative;
  display: block;
  flex: none;
  margin: 0;
  padding: 0;
  font: 700 16px/1.1 var(--suite-font);
  letter-spacing: -.025em;
}
.pv8-suite-header .pv8-product-tabs {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--suite-line);
  border-radius: 10px;
  padding: 3px;
  background: var(--suite-wash);
}
.pv8-suite-header .pv8-products a,
.pv8-suite-header .pv8-product-picker > summary {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin: 0;
  border: 0;
  border-radius: 6px;
  padding: 6px 13px;
  background: transparent;
  color: var(--suite-ink);
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
  white-space: nowrap;
}
.pv8-suite-header .pv8-products a:hover { background: #dce8e6; color: var(--suite-ink); text-decoration: none; }
.pv8-suite-header .pv8-products a[aria-current],
.pv8-suite-header .pv8-product-picker > summary { background: var(--suite-ink); color: white; }
.pv8-suite-header .pv8-product-picker { display: none; }
.pv8-suite-header :is(a, button, summary):focus-visible { outline: 3px solid #2477b2; outline-offset: 2px; }

.pv8-suite-header .pv8-product-options,
.pv8-suite-header .pv8-suite-menu[open] > nav {
  position: absolute;
  top: calc(100% + 6px);
  z-index: 2;
  display: grid;
  gap: 2px;
  min-width: 160px;
  padding: 6px;
  max-height: 76vh;
  overflow-y: auto;
  border: 1px solid var(--suite-line);
  border-radius: 9px;
  background: white;
  box-shadow: 0 8px 20px #152d331a;
}
.pv8-suite-header .pv8-product-options { left: 0; }
.pv8-suite-header .pv8-product-options a { justify-content: flex-start; }
.pv8-suite-header .pv8-suite-menu { position: relative; margin-left: auto; }
.pv8-suite-header .pv8-suite-menu > summary { padding: 12px; cursor: pointer; }
body > header.pv8-suite-header .pv8-suite-menu[open] > .landing-nav {
  right: 0;
  width: min(16rem, calc(100vw - 32px));
  grid-template-columns: minmax(0, 1fr);
}
body > header.pv8-suite-header .pv8-suite-menu[open] > .landing-nav > :is(a, button),
body > header.pv8-suite-header .pv8-suite-menu[open] .landing-login > summary {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 44px;
  max-width: none;
}
.pv8-suite-header .pv8-suite-menu:not([open]) > nav,
.pv8-suite-header .pv8-product-picker:not([open]) > .pv8-product-options { display: none; }
.pv8-suite-header .pv8-product-picker > summary::after {
  content: ""; width: 6px; height: 6px; margin-left: 7px;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.pv8-suite-header .pv8-product-picker[open] > summary::after { transform: translateY(2px) rotate(225deg); }
.pv8-suite-header summary::-webkit-details-marker { display: none; }

body > header.pv8-public-header.pv8-suite-header > .landing-nav {
  display: flex; flex: 1; flex-wrap: nowrap; align-items: center;
  margin: 0; padding: 0; gap: clamp(12px, 1.4vw, 22px);
}
body > header.pv8-public-header.pv8-suite-header > .landing-nav > :is(.landing-login, .suite-signin) { margin-inline-start: auto; }
body > header.pv8-public-header.pv8-suite-header > .landing-nav > a,
body > header.pv8-public-header.pv8-suite-header .landing-login > summary {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0; border: 0; background: transparent;
  color: var(--suite-muted); font: 500 15px/1.25 var(--suite-font);
  letter-spacing: normal; white-space: nowrap; text-decoration: none;
}
body > header.pv8-suite-header.pv8-public-header .landing-nav > .landing-register,
body[data-mobile-public-nav] > header.pv8-suite-header.pv8-public-header .landing-mobile-register {
  border: 1px solid var(--suite-line); border-radius: 7px; background: white; box-shadow: none;
  padding: 0 14px; min-height: 44px; color: var(--suite-ink);
  font: 600 15px/1.25 var(--suite-font); letter-spacing: normal; white-space: nowrap; text-decoration: none;
}
body > header.pv8-suite-header .landing-nav > :is(a,button):hover { color: var(--suite-ink); text-decoration: underline; }
body > header.pv8-public-header.pv8-suite-header #pv8LangToggle {
  box-sizing: border-box; flex: none; margin: 0;
  width: 100px; min-width: 0; max-width: 100px; height: 44px; padding: 0 8px; border: 1px solid var(--suite-line);
  border-radius: 7px; background: white; color: var(--suite-ink); font: 500 15px/1.25 var(--suite-font);
}
/* The workspace theme enforces its own picker dimensions on Next. */
@media (min-width: 62.001em) {
  body > header.pv8-public-header.pv8-suite-header #pv8LangToggle {
    min-width: 100px !important;
    width: 100px !important;
    font-size: 15px !important;
  }
}
html.saved-project-brief body > header.pv8-suite-header { display: none; }
@media (max-width: 62em) {
  /* Resize applies CSS before the media-query listener moves the links into the drawer. */
  body[data-mobile-public-nav] > header.pv8-public-header.pv8-suite-header > .landing-nav {
    display: none;
  }
  body > header.pv8-public-header.pv8-suite-header {
    --suite-gap: 8px; --suite-inset: 16px;
    gap: var(--suite-gap); padding: 0 var(--suite-inset);
  }
}
@media (max-width: 51em) {
  html:has(> body > header.pv8-suite-header) { --landing-header: 64px; }
  body > header.pv8-public-header.pv8-suite-header { height: 64px; }
  .pv8-suite-header .pv8-product-tabs { display: none; }
  .pv8-suite-header .pv8-product-picker { display: block; }
  .pv8-suite-header .pv8-product-picker > summary { min-width: 80px; }
}
@media (max-width: 28em) {
  body > header.pv8-public-header.pv8-suite-header { --suite-gap: 5px; --suite-inset: 10px; }
  body > header.pv8-suite-header .pv8-brand-link { width: 45px; }
}
@media (max-width: 23em) {
  body > header.pv8-public-header.pv8-suite-header { --suite-gap: 3px; --suite-inset: 6px; }
  body[data-mobile-public-nav] > header.pv8-public-header.pv8-suite-header .landing-mobile-register { padding: 0 5px; font-size: 13px; }
  body[data-mobile-public-nav] > header.pv8-suite-header .landing-language { flex-basis: 44px; }
}

/* The three public landings share the viewport below the product switcher.
   A minimum lets expanded notices, translated text and forms grow naturally. */
html:has(> body[data-product-landing]) {
  --chapter-header: 72px;
  --chapter-height: calc(100svh - var(--chapter-header));
  scroll-padding-block-start: var(--chapter-header);
}
[data-product-landing] header.pv8-suite-header { --suite-height: var(--chapter-header); }
@media (max-width: 51em) {
  html:has(> body[data-product-landing]) { --chapter-header: 64px; }
}
body[data-product-landing] main [data-product-chapter] {
  box-sizing: border-box;
  min-block-size: var(--chapter-height);
  align-content: center;
  scroll-margin-block-start: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
[data-product-landing] footer { scroll-snap-align: end; }
/* Fragment navigation can focus a whole section. Keep focus rings on its controls. */
body[data-product-landing] section:is(#how-it-works, #pricing, #signup):target { outline: none; }
@media (min-height: 451px) and (prefers-reduced-motion: no-preference) {
  html:has(> body[data-product-landing]):root { scroll-snap-type: y mandatory; }
}
/* The form, report and account views have their own focus/scroll destinations. */
html.saved-project-brief:root,
html:has(> body[data-product-landing]):root:has(
  .pv8-screen-result, #brief-followup:not([hidden]),
  #connection-brief:not([hidden]), #buyer-study[open], #connection-routes[open], #accountPanel[aria-hidden="false"],
  :is(#forgotPanel, #verifyPanel)[style*="display: block"],
  #signal-signup:target, .notice-list[open], .filter-group[open], .calendar-tools[open], #pc-detail:not([hidden])
) { scroll-snap-type: none; }
