.site-header .brand .header-logo-frame:has(> img[src*="isais-logo-v403"]),
.site-footer .footer-lockup .footer-logo-frame:has(> img[src*="isais-logo-v403"]) {
  aspect-ratio: auto;
}

html body .site-header .brand .header-logo-frame > .brand-wordmark[src*="isais-logo-v403"],
html body .site-footer .footer-logo-frame > .footer-logo[src*="isais-logo-v403"] {
  position: static;
  width: 100% !important;
  inline-size: 100% !important;
  height: auto !important;
  block-size: auto !important;
}

html body .site-footer .footer-logo[src*="isais-logo-v403"] {
  filter: brightness(0) invert(1) !important;
}

.isais-journal-cover > span {
  background-image: url('/assets/images/isais-logo-v403.png?v=baskervville-sutil-20261120');
  filter: brightness(0) invert(1);
}

/* Shared mixed hues keep adjacent coloured surfaces continuous. */
:root {
  --isais-surface-deep: linear-gradient(90deg, #193c3e 0%, #1a3c41 36%, #1b3b44 68%, #193d40 100%);
  --isais-surface-soft: linear-gradient(110deg, #eef3f1 0%, #f0f3f3 48%, #edf1f4 100%);
}

html body :is(.section-ink, .section-petrol, .cta-band) {
  background: var(--isais-surface-deep) !important;
}

html body.publisher-public main .isais-cta-section.section-ink {
  background:
    radial-gradient(ellipse 95% 90% at 12% 0%, rgb(73 125 111 / 20%), transparent 85%),
    radial-gradient(ellipse 85% 85% at 90% 0%, rgb(82 115 139 / 16%), transparent 85%),
    var(--isais-surface-deep) !important;
}

html body .site-footer {
  background:
    radial-gradient(ellipse 85% 85% at 88% 100%, rgb(73 125 111 / 12%), transparent 85%),
    radial-gradient(ellipse 90% 85% at 10% 100%, rgb(82 115 139 / 10%), transparent 85%),
    var(--isais-surface-deep) !important;
}

html body.publisher-public [data-r344-release][data-volume-band-v360] {
  background: var(--isais-surface-soft) !important;
}

html body [data-meeting-lobby] > [data-instant-arrival394],
html body [data-meeting-lobby] > [data-instant-arrival394] span {
  color: #f2fbf6 !important;
}

html body [data-meeting-lobby] > [data-instant-arrival394] {
  margin: 0 0 14px;
  font-size: .875rem;
  line-height: 1.55;
}

html body .c402-product {
  --c402-text-block: 42px;
  --c402-letter-height: calc(var(--c402-text-block) / 1.61803398875);
  --c402-caption-height: calc(var(--c402-text-block) * .315);
  /* The camera's visible body occupies 915 of its 1024 source pixels. */
  --c402-icon-height: calc(var(--c402-text-block) * 1.25 * 1024 / 915);
  align-items: center;
  gap: calc(var(--c402-text-block) / 4.2360679775);
}

html body .c402-product > img.c402-camera,
html body .site-header [data-c402-brand] .c402-product > img.c402-camera {
  flex: none;
  width: auto !important;
  height: var(--c402-icon-height) !important;
  margin-top: 0;
  transform: translateY(-2.4%);
}

html body .c402-product > span {
  height: var(--c402-text-block);
  justify-content: space-between;
}

html body .c402-product > span:not(:has(.c402-conferences)) {
  justify-content: center;
}

html body .c402-product img.c402-wordmark,
html body .site-header [data-c402-brand] .c402-product img.c402-wordmark {
  width: auto !important;
  height: var(--c402-letter-height) !important;
}

html body .c402-product .c402-conferences,
html body .site-header [data-c402-brand] .c402-product .c402-conferences {
  margin: 0 !important;
  font-size: var(--c402-caption-height) !important;
  line-height: 1 !important;
  letter-spacing: .035em !important;
}

html body .site-header [data-c402-brand] .c402-product {
  --c402-text-block: 24px;
}

html body :is(.ud-sidebar-brand, .account-side-brand) > img.c402-replaced-mark {
  flex: 0 0 28px;
  width: 28px;
  height: 24px;
  object-fit: contain;
}

@media (min-width: 761px) {
  .site-header .brand .header-logo-frame:has(> img[src*="isais-logo-v403"]) {
    width: 166px;
  }

  html body .site-header [data-c402-brand] .c402-product {
    --c402-text-block: 34px;
  }
}

@media (min-width: 761px) and (max-width: 800px) {
  html body:has(.m373.landing.m374-compact) .site-header [data-c402-brand] {
    margin-inline-start: 5px;
  }
}

/* Staff tools share the mobile row, so the mark must fit its own flex item. */
@media (max-width: 700px) {
  html body .site-header:is(.has-platform-faults, [data-assisted-controls]) .header-inner > [data-c402-brand] {
    flex: 1 1 114px !important;
    min-width: 0 !important;
    max-width: 114px !important;
    container-type: inline-size;
  }

  html body .site-header:is(.has-platform-faults, [data-assisted-controls]) [data-c402-brand] .header-logo-frame {
    width: 100% !important;
  }

  html body .site-header:is(.has-platform-faults, [data-assisted-controls]) [data-c402-brand] .c402-product {
    --c402-text-block: min(21.6px, 18.95cqi);
    display: inline-flex;
    width: max-content;
  }

  html body .site-header:is(.has-platform-faults, [data-assisted-controls]) [data-c402-brand] .c402-product > .c402-camera {
    width: auto !important;
    height: var(--c402-icon-height) !important;
  }

  html body .site-header:is(.has-platform-faults, [data-assisted-controls]) [data-c402-brand] .c402-product .c402-wordmark {
    width: auto !important;
    height: var(--c402-letter-height) !important;
  }

  html body .site-header:is(.has-platform-faults, [data-assisted-controls]) .header-inner:has(> [data-c402-brand]) :is(.pf-trigger, .at-trigger, .header-actions > .header-control, .menu-button) {
    box-sizing: border-box;
    flex: 0 0 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    max-width: 30px !important;
  }
}

@media (max-width: 350px) {
  html body .site-header:is(.has-platform-faults, [data-assisted-controls]) .header-inner:has(> [data-c402-brand]) {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    grid-template-areas: "brand primary menu" "actions actions actions" !important;
  }
}

/* Keep the auditorium visible when the site navigation is open. */
body.nav-open:has(:is([data-meeting-room], [data-webinar-room]))::after {
  background: rgb(5 47 42 / 10%);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body.nav-open:has(:is([data-meeting-room], [data-webinar-room])) .site-header #site-nav[data-site-nav] {
  box-sizing: border-box;
  max-height: calc(100vh - var(--mobile-nav-top, 5.25rem) - .75rem) !important;
  max-height: calc(100dvh - var(--mobile-nav-top, 5.25rem) - max(.75rem, env(safe-area-inset-bottom))) !important;
  box-shadow: 0 .8rem 2.25rem rgb(5 47 42 / 16%) !important;
}
