/* Header and footer share the public product design tokens. */
.card-link-chevron {
  display: block;
  inline-size: 1rem;
  block-size: 1rem;
  color: var(--teal);
}

[dir="rtl"] .card-link-chevron { transform: scaleX(-1); }
.customer-portal-help .card { max-inline-size: 48rem; }
.customer-portal-help h2 { margin-block-start: 0; }
.customer-portal-help .button { margin-block-start: 1rem; }
.demo-recording video {
  display: block;
  inline-size: min(100%, 61rem);
  block-size: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-panel);
  background: var(--paper);
}
.demo-recording > p:last-child, .gallery-recording-link { margin-block: 1rem 0; }
.product-top {
  z-index: 20;
  background: var(--paper);
  box-shadow: 0 3px 18px rgb(11 33 56 / 5%);
}

.product-top .header {
  --header-height: 74px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: var(--header-height);
  padding-block: 0;
  gap: 14px;
}

.product-top .brand,
.product-footer .brand {
  padding: 0;
  border-radius: 8px;
  background: transparent;
}

.product-top .brand img,
.product-footer .brand img {
  width: 150px;
  height: auto;
}

:root[data-theme="dark"] .product-top .brand,
:root[data-theme="dark"] .product-footer .brand {
  padding: 5px 6px;
  background: #fff;
}

.product-top #nav {
  grid-column: 2;
  grid-row: 1;
  min-width: 0;
  display: flex;
  justify-content: space-between;
  gap: 9px;
  border: 0;
  padding: 0;
}

.product-top #site-nav {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
}

.product-top #site-nav > a,
.product-top #site-nav > details > summary,
.product-top .chrome-utility > a {
  min-height: 44px;
  padding: 8px 6px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  color: var(--text);
  font-size: .86rem;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
  white-space: nowrap;
}

.product-top #site-nav > a:hover,
.product-top #site-nav > details > summary:hover,
.product-top #site-nav > details[open] > summary,
.product-top .chrome-utility > a:hover {
  color: var(--teal);
  background: var(--soft);
}

.product-top #site-nav > .chrome-nav-home {
  display: none;
}

.product-top #site-nav > a[aria-current="page"]:not(.chrome-nav-home),
.product-top #site-nav > .chrome-group-current > summary,
.product-top .chrome-utility a[aria-current="page"] {
  color: var(--teal);
}

.product-top #nav summary::after {
  width: 6px;
  height: 6px;
  flex: 0 0 6px;
  margin: 0 1px 2px 1px;
}

.product-top #nav details > div {
  z-index: 1;
  inset: calc(100% + 4px) auto auto 0;
  display: grid;
  width: max-content;
  min-width: 14rem;
  max-width: min(24rem, calc(100vw - 36px));
  gap: 2px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 16px 38px rgb(11 33 56 / 12%);
}

.product-top #nav details:not([open]) > div {
  display: none;
}

.product-top #nav details > div a {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 10px;
  border-radius: 7px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.product-top #nav details > div a:hover,
.product-top #nav details > div a[aria-current="page"] {
  background: var(--soft);
  color: var(--teal);
}

.product-top #nav #site-nav > details:nth-last-of-type(-n+2) > div {
  inset-inline: auto 0;
}

.product-top .chrome-utility {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 9px;
}

.product-top .chrome-account-icon,
.product-top .chrome-demo-icon {
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
  margin-inline-start: 4px;
}

.product-top .chrome-account-icon {
  display: none;
}

.product-top .theme {
  display: inline-flex;
  align-items: center;
}

.product-top .theme select {
  min-height: 44px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--paper);
  color: var(--text);
  font-size: .81rem;
  font-weight: 700;
}

.product-top .chrome-theme-caption {
  display: none;
}

.product-top .head-actions {
  grid-column: 3;
  grid-row: 1;
  width: auto;
  margin: 0;
}

.product-top .chrome-demo-button {
  min-height: 44px;
  padding: 8px 12px;
  font-size: .85rem;
  line-height: 1.3;
  white-space: nowrap;
}

.product-top .menu-toggle {
  display: none;
}

.product-footer {
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.product-footer .footer {
  display: grid;
  grid-template-columns: minmax(12rem, .92fr) minmax(0, 2fr);
  gap: clamp(1.25rem, 5vw, 5.5rem);
  padding-block: clamp(2.5rem, 5.2vw, 4.5rem) 2.6rem;
}

.product-footer .brand img {
  width: 174px;
}

.product-footer .chrome-footer-brand > p:not(.footer-contact) {
  max-width: 25ch;
  margin-block: 1rem 1.1rem;
  font-size: .92rem;
  line-height: 1.6;
}

.product-footer .footer-contact a {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  color: var(--text);
  overflow-wrap: anywhere;
  font-size: .885rem;
  line-height: 1.4;
  text-decoration: none;
}

.product-footer .chrome-contact-icon {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  color: var(--teal);
}

.product-footer .chrome-footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: start;
  gap: 1rem clamp(.9rem, 3vw, 2.5rem);
}

.product-footer .chrome-footer-column h2 {
  margin: 0 0 .75rem;
  color: var(--text);
  font-size: .94rem;
  line-height: 1.3;
  letter-spacing: -.01em;
}

.product-footer .chrome-footer-column ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-footer nav a {
  display: inline-block;
  padding: 2px 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.product-footer a:hover,
.product-footer nav a[aria-current="page"] {
  color: var(--teal);
  text-decoration: underline;
}

.product-footer .chrome-footer-baseline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .5rem 1rem;
  padding-block: 1.05rem 1.2rem;
  border-top: 1px solid var(--line);
}

.product-footer .chrome-footer-baseline small {
  color: var(--muted);
  font-size: .78rem;
  white-space: nowrap;
}

.product-footer .chrome-footer-baseline nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: .15rem .95rem;
}

.product-footer .chrome-footer-baseline a {
  font-size: .78rem;
}

@media (max-width: 1279px) {
  .product-top .header {
    --header-height: 68px;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 7px;
  }

  .product-top .brand img {
    width: clamp(120px, 23vw, 150px);
  }

  .product-top .menu-toggle {
    grid-column: 2;
    grid-row: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    gap: 6px;
    padding: 6px 8px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--paper);
    color: var(--text);
    font-size: .84rem;
    font-weight: 750;
  }

  .product-top .menu-toggle:hover,
  .product-top .menu-toggle[aria-expanded="true"] {
    background: var(--soft);
    color: var(--teal);
  }

  .product-top .chrome-hamburger {
    position: relative;
    width: 15px;
    height: 11px;
    border-block: 1.5px solid currentColor;
  }

  .product-top .chrome-hamburger::before {
    position: absolute;
    inset: calc(50% - .75px) 0 auto;
    height: 1.5px;
    content: "";
    background: currentColor;
  }

  .product-top .menu-toggle[aria-expanded="true"] .chrome-hamburger {
    border-color: transparent;
  }

  .product-top .menu-toggle[aria-expanded="true"] .chrome-hamburger::before {
    transform: rotate(45deg);
  }

  .product-top .menu-toggle[aria-expanded="true"] .chrome-hamburger::after {
    position: absolute;
    inset: calc(50% - .75px) 0 auto;
    height: 1.5px;
    content: "";
    background: currentColor;
    transform: rotate(-45deg);
  }

  .product-top #nav {
    position: absolute;
    inset: 100% 0 auto;
    display: none;
    max-height: min(75vh, calc(100dvh - var(--header-height)));
    padding: 10px max(16px, calc((100% - 1260px) / 2)) 16px;
    overflow: auto;
    overscroll-behavior: contain;
    background: var(--paper);
    border: 1px solid var(--line);
    border-width: 0 0 1px;
    box-shadow: 0 20px 42px rgb(11 33 56 / 16%);
  }

  .product-top #nav[data-open] {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    align-content: start;
    justify-content: stretch;
    gap: 12px;
  }

  .product-top #nav #site-nav {
    display: grid;
    gap: 2px;
    align-items: stretch;
  }

  .product-top #site-nav > a,
  .product-top #site-nav > .chrome-nav-home,
  .product-top #site-nav > details > summary {
    display: flex;
    justify-content: space-between;
    width: 100%;
    min-height: 44px;
    padding-inline: 10px;
    font-size: .94rem;
    white-space: normal;
  }

  .product-top #site-nav > a[aria-current="page"] {
    color: var(--teal);
    background: var(--soft);
  }

  .product-top #nav #site-nav > details > div {
    position: static;
    width: auto;
    min-width: 0;
    max-width: none;
    margin: 0 0 4px 10px;
    padding: 4px 5px;
    box-shadow: none;
  }

  .product-top #nav #site-nav > details:not([open]) > div {
    display: none;
  }

  .product-top #nav details > div > a {
    min-height: 44px;
  }

  .product-top .chrome-utility {
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 8px 4px 0;
    border-top: 1px solid var(--line);
  }

  .product-top .chrome-utility > a {
    font-size: .93rem;
  }

  .product-top .chrome-account-icon,
  .product-top .chrome-theme-caption {
    display: inline-block;
  }

  .product-top .chrome-theme-caption {
    margin-inline-end: 6px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
  }
}

@media (max-width: 690px) {
  .product-footer .footer {
    grid-template-columns: 1fr;
    gap: 1.6rem;
  }

  .product-footer .chrome-footer-baseline {
    flex-direction: column;
  }

  .product-footer .chrome-footer-baseline nav {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .product-top .chrome-demo-icon {
    display: none;
  }

  .product-top .head-actions .chrome-demo-button {
    padding-inline: 9px;
  }

  .product-top .theme select {
    font-size: 1rem;
  }
}

@media (max-width: 380px) {
  .product-top .brand img {
    width: 110px;
  }

  .product-footer .chrome-footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

