/* Shared SuruX chrome. Near-black bar, landing type size, outlined Talk to us. */
:root {
  --chrome-night: #020913;
  --chrome-copy: #bed8ed;
  --chrome-cyan: #70dfff;
  --chrome-line: #355269;
  --chrome-gutter: clamp(24px, 5vw, 80px);
  --global-bar-height: 72px;
  --sub-bar-height: 46px;
  --chrome-height: calc(var(--global-bar-height) + var(--sub-bar-height));
}

html { scroll-padding-top: var(--chrome-height); }

.site-header,
.page-subbar,
.site-footer {
  color-scheme: dark;
  font-family: Atkinson, Manrope, sans-serif;
  font-size: 16px;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.4;
}

.site-header {
  border-bottom: 1px solid transparent;
  position: sticky;
  top: 0;
  z-index: 12;
  height: var(--global-bar-height);
  background: var(--chrome-night);
  color: #e7f4ff;
}

.global-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  box-sizing: border-box;
  width: min(1360px, calc(100% - 2 * var(--chrome-gutter)));
  height: 100%;
  margin-inline: auto;
  min-width: 0;
}

.chrome-lockup {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  width: 132px;
  min-height: 44px;
  padding-block: 8px;
  color: inherit;
  text-decoration: none;
}

.chrome-lockup img {
  width: 132px;
  height: auto;
}

.global-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 32px);
  min-width: 0;
}

.global-nav a,
.chrome-menu nav a,
.footer-nav a,
.page-subbar a {
  color: var(--chrome-copy);
  font-size: 16px;
  text-decoration: none;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}

.global-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  white-space: nowrap;
}

.global-nav a:hover,
.chrome-menu nav a:hover,
.footer-nav a:hover,
.page-subbar a:hover {
  color: var(--chrome-cyan);
  text-decoration: underline;
}

.global-nav a[aria-current="page"],
.chrome-menu nav a[aria-current="page"] {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--chrome-cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 10px;
}

.chrome-menu { display: none; }

.chrome-talk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  gap: 25px;
  min-height: 44px;
  margin-left: 0;
  padding: 11px 17px;
  border: 1px solid #536678;
  border-radius: 2px;
  color: #fff;
  background: transparent;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
  text-decoration: none;
  text-underline-offset: 5px;
  white-space: nowrap;
}

.chrome-talk:hover {
  border-color: var(--chrome-cyan);
  color: #fff;
  background: #102b40;
  text-decoration: none;
}

.chrome-talk span {
  display: flex;
  line-height: 0;
}

.chrome-talk svg {
  display: block;
  width: 22px;
  height: 22px;
  min-width: 22px;
  flex-shrink: 0;
  vertical-align: top;
}

.page-subbar {
  position: sticky;
  top: var(--global-bar-height);
  z-index: 11;
  height: var(--sub-bar-height);
  max-width: 100%;
  border-top: 1px solid #163044;
  /* Transparent normally; forced colours draw it, so content never vanishes under the bars unseen. */
  border-bottom: 1px solid transparent;
  background: var(--chrome-night);
  color: #e7f4ff;
}

.subbar-scroll {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  width: min(1360px, calc(100% - 2 * var(--chrome-gutter)));
  height: 100%;
  margin-inline: auto;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.subbar-scroll::-webkit-scrollbar { display: none; }

.subbar-label {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  margin-right: 18px;
  color: #fff;
  font-weight: 650;
  font-size: 16px;
  letter-spacing: -.02em;
  white-space: nowrap;
}

.subbar-label img {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.page-subbar a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 8px;
  font-size: 16px;
  white-space: nowrap;
}

.subbar-dot {
  width: 3px;
  height: 3px;
  flex: 0 0 3px;
  border-radius: 50%;
  background: #5d7c90;
}

.page-subbar a[aria-current="location"] {
  color: #fff;
  text-decoration: underline;
  text-decoration-color: var(--chrome-cyan);
  text-decoration-thickness: 2px;
  text-underline-offset: 7px;
}

.site-footer {
  background: var(--chrome-night);
  color: var(--chrome-copy);
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 28px;
  box-sizing: border-box;
  width: min(1360px, calc(100% - 2 * var(--chrome-gutter)));
  margin-inline: auto;
  padding: 24px 0 32px;
  min-width: 0;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  min-width: 0;
  max-width: 100%;
}

.footer-nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: 8px;
}

.footer-nav a svg {
  display: block;
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
}

.site-header :focus-visible,
.page-subbar :focus-visible,
.site-footer :focus-visible {
  outline: 3px solid var(--chrome-cyan);
  outline-offset: 3px;
}

.page-subbar a:focus-visible {
  outline-offset: -3px;
}

.skip-link:focus {
  z-index: 40;
}

@media (max-width: 768px) {
  .global-nav { display: none; }

  .chrome-menu {
    display: block;
    position: static;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .chrome-menu summary {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding-inline: 4px;
    color: var(--chrome-copy);
    font-size: 16px;
    list-style: none;
    cursor: pointer;
    white-space: nowrap;
  }

  .chrome-menu summary::marker { content: ''; }

  .chrome-menu summary::-webkit-details-marker { display: none; }

  .menu-mark {
    width: 18px;
    height: 10px;
    border-block: 1px solid var(--chrome-copy);
  }

  .chrome-menu[open] .menu-mark {
    height: 1px;
    border-bottom: 0;
  }

  .chrome-menu[open] nav {
    position: absolute;
    z-index: 2;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    padding: 4px var(--chrome-gutter) 12px;
    border-bottom: 1px solid var(--chrome-line);
    background: #061624;
    box-shadow: 0 14px 25px #020b1340;
  }

  .chrome-menu nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
  }

  .chrome-lockup,
  .chrome-lockup img { width: 108px; }

  .chrome-talk {
    gap: 8px;
    padding: 8px 10px;
  }

  .chrome-talk svg {
    width: 16px;
    height: 16px;
    min-width: 16px;
  }

  .page-subbar {
    overflow: hidden;
  }

  .subbar-scroll {
    width: 100%;
    max-width: none;
    padding-inline: var(--chrome-gutter);
    scroll-padding-inline: 20px;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
    mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent);
  }

  .subbar-label { margin-right: 8px; }

  .page-subbar a { padding-inline: 10px; }
}

@media (max-width: 380px) {
  .global-bar { gap: 4px; }

  .global-bar .chrome-lockup,
  .global-bar .chrome-lockup img { width: 88px; }

  .chrome-menu summary { gap: 4px; padding: 0; font-size: 16px; }

  .chrome-talk {
    gap: 4px;
    padding: 6px 7px;
    font-size: 16px;
  }

  .chrome-talk svg {
    width: 14px;
    height: 14px;
    min-width: 14px;
  }
}

/* Phones: every section link stays visible (wrapped), and only the global bar stays pinned, so the chrome never
   covers a fifth of the screen while reading. */
@media (max-width: 768px) {
  :root { --chrome-height: var(--global-bar-height); }

  .page-subbar {
    position: static;
    top: auto;
    height: auto;
    overflow: visible;
  }

  .subbar-scroll {
    height: auto;
    flex-wrap: wrap;
    align-content: center;
    overflow: visible;
    mask-image: none;
    -webkit-mask-image: none;
  }

  .subbar-dot { display: none; }
}

@media (max-height: 500px) {
  :root { --chrome-height: var(--global-bar-height); }

  .page-subbar {
    position: static;
    top: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-header *,
  .page-subbar *,
  .site-footer * {
    transition: none;
    animation: none;
  }
}

@media (forced-colors: active) {
  .site-header,
  .page-subbar,
  .site-footer,
  .chrome-menu[open] nav {
    border-color: CanvasText;
    background: Canvas;
    color: CanvasText;
  }

  .chrome-talk {
    border: 1px solid ButtonText;
    background: Canvas;
    color: ButtonText;
  }

  .global-nav a,
  .chrome-menu nav a,
  .chrome-menu summary,
  .footer-nav a,
  .page-subbar a,
  .subbar-label {
    color: CanvasText;
  }

  .global-nav a[aria-current="page"],
  .chrome-menu nav a[aria-current="page"],
  .page-subbar a[aria-current="location"] {
    color: Highlight;
    text-decoration-color: Highlight;
  }

  .menu-mark { border-color: CanvasText; }

  .subbar-dot { background: CanvasText; }

  .subbar-scroll {
    mask-image: none;
    -webkit-mask-image: none;
  }

  .chrome-lockup img,
  .subbar-label img { forced-color-adjust: none; }

  .site-header :focus-visible,
  .page-subbar :focus-visible,
  .site-footer :focus-visible {
    outline-color: Highlight;
  }
}
