/* CoralDC precision UI fixes — 24 August 2026
   Loaded after main.min.css so these interaction and geometry contracts
   remain stable regardless of earlier redesign layers. */

/* Header state: white on the home hero, dark after scroll. */
.site-header .brand {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  transform-origin: left center;
  transition: transform 220ms var(--ease-x), filter 220ms ease;
}

.site-header .brand .responsive-media {
  display: inline-flex;
  width: fit-content;
  flex: 0 0 auto;
}

.site-header .brand-logo {
  width: 208px;
  height: 56px;
  object-fit: contain;
  object-position: left center;
  opacity: 1;
  filter: none !important;
  transition: width 220ms var(--ease-x), height 220ms var(--ease-x), filter 220ms ease;
}

:root[data-theme] .site-header.is-scrolled .brand {
  transform: none;
  background: transparent;
  box-shadow: none;
}

:root[data-theme] .site-header.is-scrolled .brand-logo {
  width: 176px;
  height: 48px;
  opacity: 1;
  filter: none !important;
}

.site-header .brand::before,
.site-header .brand::after {
  display: none !important;
}

.site-footer .brand::before,
.site-footer .brand::after,
.mobile-menu .brand::before,
.mobile-menu .brand::after {
  display: none !important;
}

body[data-page="home"] .site-header:not(.is-scrolled) .brand-logo {
  filter: brightness(0) invert(1) !important;
}

body:not([data-page="home"]) .site-header .brand-logo,
:root[data-theme] .site-header.is-scrolled .brand-logo,
.site-footer .brand-logo,
.mobile-menu .brand-logo {
  opacity: 1 !important;
  filter: brightness(0) saturate(100%) !important;
}

body[data-page="home"] .site-header:not(.is-scrolled) .nav-link,
body[data-page="home"] .site-header:not(.is-scrolled) .nav-caret {
  color: rgba(255,255,255,.94);
}

:root[data-theme] .site-header.is-scrolled .nav-link,
:root[data-theme] .site-header.is-scrolled .nav-caret,
body:not([data-page="home"]) .site-header .nav-link,
body:not([data-page="home"]) .site-header .nav-caret {
  color: #2c3a48;
}

:root[data-theme] .site-header.is-scrolled .nav-link:hover,
:root[data-theme] .site-header.is-scrolled .nav-link:focus-visible,
:root[data-theme] .site-header.is-scrolled .nav-item.is-open .nav-link {
  color: #0b1015;
}

/* A measured institutional CTA: fixed vertical rhythm, equal optical padding,
   and explicit contrast in every interaction state. */
.site-header .btn-header {
  box-sizing: border-box;
  min-width: 232px;
  min-height: 46px;
  height: 46px;
  padding: 0 20px;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  color: #0b1015;
  font-family: var(--font-body);
  font-size: .84rem;
  font-weight: 650;
  letter-spacing: 0;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  box-shadow: inset 0 1px rgba(255,255,255,.95), 0 8px 22px rgba(34,75,110,.13);
}

.site-header .btn-header:hover,
.site-header .btn-header:focus-visible {
  border-color: #0b1015;
  background: #0b1015;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: inset 0 1px rgba(255,255,255,.10), 0 12px 28px rgba(11,16,21,.22);
}

/* Corporate/contact destination capsules. */
.contact-location-card .contact-entity-link,
.corporate-entity-card .contact-entity-link {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 64px;
  margin-top: 24px;
  padding: 9px 10px 9px 20px;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 999px;
  background: rgba(255,255,255,.86);
  color: #0b1015;
  box-shadow: inset 0 1px rgba(255,255,255,.86), 0 12px 30px rgba(34,75,110,.10);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  transition: transform 200ms ease, background 200ms ease, color 200ms ease,
              box-shadow 200ms ease, border-color 200ms ease;
}

.contact-location-card .contact-entity-domain,
.contact-location-card .contact-entity-link:visited .contact-entity-domain,
.corporate-entity-card .contact-entity-domain,
.corporate-entity-card .contact-entity-link:visited .contact-entity-domain {
  color: #0b1015;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.2;
  transition: color 200ms ease;
}

.contact-location-card .contact-entity-link-arrow,
.corporate-entity-card .contact-entity-link-arrow {
  width: 44px;
  height: 44px;
  border: 1px solid #0b1015;
  background: #0b1015;
  color: #fff;
}

.contact-location-card .contact-entity-link:hover,
.contact-location-card .contact-entity-link:focus-visible,
.corporate-entity-card .contact-entity-link:hover,
.corporate-entity-card .contact-entity-link:focus-visible {
  border-color: rgba(255,255,255,.98);
  background: rgba(255,255,255,.96);
  color: #0b1015;
  transform: translateY(-2px);
  box-shadow: inset 0 1px rgba(255,255,255,.95), 0 16px 36px rgba(34,75,110,.16);
}

.contact-location-card .contact-entity-link:hover .contact-entity-domain,
.contact-location-card .contact-entity-link:focus-visible .contact-entity-domain,
.corporate-entity-card .contact-entity-link:hover .contact-entity-domain,
.corporate-entity-card .contact-entity-link:focus-visible .contact-entity-domain {
  color: #0b1015;
}

.contact-location-card .contact-entity-link:hover .contact-entity-link-arrow,
.contact-location-card .contact-entity-link:focus-visible .contact-entity-link-arrow,
.corporate-entity-card .contact-entity-link:hover .contact-entity-link-arrow,
.corporate-entity-card .contact-entity-link:focus-visible .contact-entity-link-arrow {
  border-color: var(--coral);
  background: var(--coral);
  color: #fff;
  transform: translate(2px, -2px);
}

/* Protected contact controls and their revealed values never inherit a
   low-contrast foreground from card or link interaction states. */
.protected-contact-button,
.protected-contact-button:visited {
  color: #384654;
}

.protected-contact-button:hover,
.protected-contact-button:focus-visible,
.protected-contact.is-revealed .protected-contact-button {
  color: #0b1015;
}

.protected-contact-value,
.protected-contact-value a,
.protected-contact-value a:visited {
  color: #0b1015;
}

.protected-contact-value a:hover,
.protected-contact-value a:focus-visible {
  color: #a03a2a;
}

@media (max-width: 1180px) {
  .site-header .btn-header {
    min-width: 210px;
    padding-inline: 17px;
    font-size: .79rem;
  }
}

@media (max-width: 760px) {
  .site-header .brand {
    padding: 4px 7px;
    border-radius: 12px;
  }

  .site-header .brand-logo {
    width: 150px;
    height: 42px;
  }

  :root[data-theme] .site-header.is-scrolled .brand {
    padding: 3px 6px;
    border-radius: 10px;
  }

  :root[data-theme] .site-header.is-scrolled .brand-logo {
    width: 132px;
    height: 37px;
  }

  .contact-location-card .contact-entity-link,
  .corporate-entity-card .contact-entity-link {
    min-height: 58px;
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 12px;
    padding: 8px 9px 8px 17px;
  }

  .contact-location-card .contact-entity-link-arrow,
  .corporate-entity-card .contact-entity-link-arrow {
    width: 40px;
    height: 40px;
  }
}
