/* Keep the public site in its intended light presentation, even when the
   operating system or browser requests automatic darkening. */
:root {
  color-scheme: light;
  color-scheme: only light;
  --paper: #fff;
}

html,
body,
.site-shell {
  background: #fff;
}

body {
  color: var(--ink);
}

/* Header and primary navigation */
.site-header {
  background: rgb(255 255 255 / 97%);
  border-bottom-color: #d6e0e9;
  box-shadow: 0 6px 24px rgb(16 16 70 / 7%);
}

.header-inner {
  align-items: center;
  gap: 18px;
  width: min(1720px, calc(100% - 24px));
  min-height: 126px;
  padding-block: 9px;
}

.brand {
  flex: 0 0 auto;
  padding-block: 6px;
}

.brand-logo {
  width: clamp(330px, 31.5vw, 429px);
  max-height: 96px;
  background: #fff;
  filter: none;
  mix-blend-mode: normal;
  opacity: 1;
}

.desktop-nav {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  min-height: 78px;
  padding: 6px;
  background: #fff;
  border-color: #cbd8e4;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgb(16 16 70 / 7%);
}

.desktop-nav a {
  flex: 0 0 auto;
  min-height: 64px;
  width: auto;
  padding: 11px clamp(6px, .65vw, 12px);
  color: var(--ink);
  background: transparent;
  border-radius: 11px;
  text-align: center;
  white-space: nowrap;
  font-size: clamp(.82rem, .78vw, .92rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .005em;
  transition: color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.desktop-nav a:first-child {
  margin-left: 10px;
}

.desktop-nav a::before {
  right: 16px;
  bottom: 5px;
  left: 16px;
  height: 3px;
  background: var(--blue-dark);
}

.desktop-nav a::after {
  display: none;
}

.desktop-nav a + a {
  box-shadow: none;
}

.desktop-nav a:hover,
.desktop-nav a:focus-visible {
  color: var(--blue-dark);
  background: #eef8fe;
  outline: none;
  transform: translateY(-1px);
}

.desktop-nav a:focus-visible {
  box-shadow: 0 0 0 3px rgb(113 188 238 / 42%);
}

.desktop-nav a.portal-link {
  flex: 0 0 auto;
  min-height: 64px;
  margin-left: 0;
  padding-inline: clamp(6px, .65vw, 12px);
  background: linear-gradient(180deg, #167c9f, #0e5f7d);
  border-radius: 11px;
  box-shadow: 0 7px 16px rgb(14 95 125 / 20%);
  font-size: clamp(.82rem, .78vw, .92rem);
  letter-spacing: .01em;
}

.desktop-nav a + a.portal-link,
.desktop-nav a.portal-link + a {
  box-shadow: 0 7px 16px rgb(14 95 125 / 20%);
}

.desktop-nav a.portal-link:hover,
.desktop-nav a.portal-link:focus-visible {
  background: linear-gradient(180deg, #2189ad, #126886);
  box-shadow: 0 9px 19px rgb(14 95 125 / 27%);
}

.header-actions {
  gap: 8px;
}

.round-action,
.header-cta {
  width: 58px;
  height: 58px;
  font-size: 1.35rem;
  border-color: #101046;
  box-shadow: 0 6px 14px rgb(16 16 70 / 14%);
}

.round-action:focus-visible,
.header-cta:focus-visible {
  outline: 3px solid rgb(113 188 238 / 55%);
  outline-offset: 2px;
}

/* Compact navigation */
@media (width <= 1120px) {
  .header-inner {
    min-height: 108px;
    padding-block: 8px;
  }

  .brand-logo {
    width: min(74vw, 380px);
    max-height: 88px;
  }

  .desktop-nav,
  .header-actions {
    display: none;
  }

  .mobile-menu {
    display: block;
    margin-left: auto;
  }

  .mobile-menu summary {
    width: 56px;
    height: 56px;
    background: linear-gradient(180deg, #20206b, #101046);
    border-color: #101046;
    border-radius: 13px;
    box-shadow: 0 6px 14px rgb(16 16 70 / 16%);
  }

  .mobile-menu-icon {
    gap: 5px;
    width: 28px;
    height: 20px;
  }

  .mobile-menu-icon span {
    height: 3px;
  }

  .mobile-menu summary:focus-visible {
    outline: 3px solid rgb(113 188 238 / 55%);
    outline-offset: 2px;
  }

  .mobile-menu nav {
    padding: 8px;
    background: #fff;
    border-color: #d1dde7;
    border-radius: 14px;
    box-shadow: 0 18px 44px rgb(16 16 70 / 18%);
  }

  .mobile-menu nav a {
    color: var(--ink);
    border-radius: 8px;
    font-size: .98rem;
    font-weight: 700;
    transition: color .18s ease, background-color .18s ease;
  }

  .mobile-menu nav a + a {
    border-top: 1px solid #e5ebf0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
  }

  .mobile-menu nav a:hover,
  .mobile-menu nav a:focus-visible {
    color: var(--blue-dark);
    background: #eef8fe;
    outline: none;
  }

  .mobile-menu nav a[href*="imagestodata.shop"] {
    margin-top: 7px;
    color: #fff;
    background: linear-gradient(180deg, #167c9f, #0e5f7d);
    border-top: 0;
    text-align: center;
  }

  .mobile-menu nav a[href*="imagestodata.shop"]:hover,
  .mobile-menu nav a[href*="imagestodata.shop"]:focus-visible {
    color: #fff;
    background: linear-gradient(180deg, #2189ad, #126886);
  }
}

@media (width <= 760px) {
  .site-header {
    border-bottom-color: #d6e0e9;
  }

  .header-inner {
    min-height: 88px;
    padding-block: 6px;
  }

  .brand-logo {
    width: min(76vw, 340px);
    max-height: 76px;
  }

  .mobile-menu summary {
    width: 48px;
    height: 48px;
    border-radius: 11px;
  }

  .mobile-menu-icon {
    width: 24px;
    height: 18px;
  }
}
