/* Canonical ATLANTIS Inscription v1. Geometry belongs to brand/atlantis/*.svg.
   This file changes identity slots only; tenant action, Education and clinic colours stay scoped. */
img.atlantis-wordmark {
  display: block; width: 296px; max-width: 100%; height: auto;
  object-fit: contain; border: 0; border-radius: 0; box-shadow: none;
  font: 600 24px/1.4 Georgia, serif; letter-spacing: .08em;
}
.atlantis-wordmark-picture { display: block; max-width: 100%; }
.atlantis-wordmark--navy { color: #082b3b; background: #fff; }
.atlantis-wordmark--gold, .atlantis-wordmark--white { color: #d7bc7a; background: #082b3b; }
.atlantis-platform-fallback { font: 600 24px/1.4 Georgia, serif; overflow-wrap: anywhere; }
.portal-navigation .portal-logo {
  flex-direction: column; gap: 16px; width: 100%; min-height: 0;
  padding: 16px 8px 24px; background: #fff; border-radius: 4px;
}
.portal-navigation .portal-logo img.atlantis-wordmark { width: 184px; height: auto; max-width: 100%; }
.atlantis-brand .atlantis-brand__name { margin-bottom: .6rem; }
.atlantis-brand .atlantis-brand__name .atlantis-wordmark { width: 440px; max-width: 100%; height: auto; }
.login-ocean-page .login-ocean-brand {
  width: min(100%, 370px); height: auto; display: flex;
  flex-direction: column; align-items: flex-start; gap: 18px;
}
.login-ocean-page .login-ocean-brand img.login-ocean-logo { width: 340px; max-width: 100%; height: auto; padding: 0; background: transparent; }
.login-ocean-page .login-ocean-brand::after { display: none; }
.trident-error__identity .atlantis-wordmark { width: 260px; height: auto; flex: 0 1 260px; }
.setup-guide .setup-guide__brand { flex-wrap: wrap; }
.setup-guide__identity { display: flex; gap: 24px; align-items: center; width: 100%; }
.setup-guide__identity .atlantis-wordmark { width: 260px; height: auto; }
.trident-landing .site-header .brand { gap: 12px; }
.trident-landing .brand img.atlantis-wordmark { width: 208px; height: auto; }
.trident-landing .brand-disc { width: 80%; height: auto; aspect-ratio: auto; background: transparent; border-radius: 0; box-shadow: none; }
.trident-landing .brand-disc img.atlantis-wordmark { width: 100%; height: auto; }
.atlantis-brand .atlantis-wordmark, .trident-landing .brand-disc .atlantis-wordmark { background: transparent; }
.theatre-premiere .theatre-premiere__brand img.atlantis-wordmark { width: 200px; max-width: 100%; height: auto; background: transparent; margin: 0 auto 10px; }
@media (max-width: 1099px) {
  .portal-navigation .portal-logo { width: min(100%, 210px); padding: 10px 6px; gap: 10px; }
  .portal-navigation .portal-logo img.atlantis-wordmark { width: 184px; height: auto; }
}
@media (max-width: 760px) {
  .login-ocean-page .login-ocean-welcome { display: block; }
  .login-ocean-page .login-ocean-brand { width: 100%; margin-bottom: 20px; }
  .login-ocean-page .login-ocean-brand img.login-ocean-logo { width: 296px; height: auto; }
  .login-ocean-page .login-ocean-kicker { margin: 0 0 8px; }
  .trident-landing .site-header { gap: 12px; }
  .trident-landing .site-header .brand { gap: 8px; }
  .trident-landing .brand img.atlantis-wordmark { width: 160px; height: auto; }
  .setup-guide__identity { flex-wrap: wrap; gap: 16px; }
}
@media (forced-colors: active) {
  img.atlantis-wordmark { forced-color-adjust: none; color: #082b3b !important; background: #fff !important; }
  .atlantis-platform-fallback { color: CanvasText; }
}
@media print {
  img.atlantis-wordmark { color: #082b3b !important; background: #fff !important; }
}

/* V2: the organisation logo is a small, transparent footer mark in document flow. */
.atlantis-footer-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; width: 100%; min-width: 0; margin-top: 10px; }
.atlantis-footer-row .portal-copyright { margin: 0; flex: 1 1 auto; min-width: 0; }
.atlantis-footer-identity { display: block; flex: 0 0 auto; max-width: 100%; line-height: 1.2; }
img.atlantis-footer-logo { display: block; width: 40px; height: auto; max-width: 40px; flex: 0 0 40px; object-fit: contain; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; filter: none; }
/* Horizontal official Trident lockup; other configured organisation marks keep their original size. */
img.atlantis-footer-logo.atlantis-footer-logo--horizontal { width: 200px; max-width: min(200px, 100%); flex: 0 0 auto; height: auto; }
.atlantis-footer-identity .portal-brand-fallback { font: 400 11px/1.4 Arial, sans-serif; max-width: 100px; overflow-wrap: anywhere; }
.atlantis-document-footer { margin-top: 20px; }
.trident-landing .atlantis-site-footer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 24px; align-items: end; }
.trident-landing .atlantis-site-footer > .portal-copyright-identity { grid-column: 1; grid-row: 1 / 3; }
.trident-landing .atlantis-footer-actions { grid-column: 2; grid-row: 1; }
.trident-landing .atlantis-footer-corner { grid-column: 2; grid-row: 2; justify-self: end; }
.trident-landing .atlantis-footer-corner img { width: 40px; height: auto; background: transparent; }
@media (max-width: 760px) {
  .trident-landing .atlantis-site-footer { grid-template-columns: minmax(0, 1fr); }
  .trident-landing .atlantis-site-footer > .portal-copyright-identity { grid-column: 1; grid-row: 1; }
  .trident-landing .atlantis-footer-actions { grid-column: 1; grid-row: 2; }
  .trident-landing .atlantis-footer-corner { grid-column: 1; grid-row: 3; justify-self: end; }
}
@media print { .atlantis-footer-row { break-inside: avoid; } img.atlantis-footer-logo { background: transparent; } }

/* Reserve footer space only while the actual floating assistant widget is rendered. */
.portal-workspace:has(.nerida[data-nerida="widget"]) .foot { padding-bottom: 96px; }

/* Keep the wider endorsement separate from copyright on narrow screens. */
@media (max-width: 600px) {
  .atlantis-footer-row:has(.atlantis-footer-logo--horizontal) { flex-direction: column; align-items: flex-end; gap: 12px; }
  .atlantis-footer-row:has(.atlantis-footer-logo--horizontal) .portal-copyright { align-self: stretch; width: 100%; }
}
.trident-landing .atlantis-footer-corner img.atlantis-footer-logo--horizontal { width: 200px; max-width: 100%; height: auto; }

/* Uppercase display titles are explicit opt-ins. Keep body/UI text, names,
   tenant identities and print unchanged. Font fidelity is still unverified,
   so existing font families, sizes and colors are deliberately preserved. */
@media screen {
  body.portal-workspace main.wrap h1[data-atlantis-title],
  body.portal-workspace.login-ocean-page .login-ocean-headline[data-atlantis-title] {
    text-transform: uppercase;
    letter-spacing: .045em;
  }
}


/* Preserve the official blue/gold Trident artwork: there is no supplied white
   variant. A small light backing restores contrast on dark screen surfaces.
   Only the recognised horizontal Trident mark is affected; tenant marks retain
   their configured source, fallback and presentation. Light and print unchanged. */
@media screen and (forced-colors: none) {
  html[data-screen-mode="dark"] img.atlantis-footer-logo.atlantis-footer-logo--horizontal,
  html:not([data-screen-mode="light"]) body:is([data-theme="navy"], [data-theme="teal"], [data-theme="high-contrast"]) img.atlantis-footer-logo.atlantis-footer-logo--horizontal {
    box-sizing: border-box; padding: .4rem .65rem; border-radius: .35rem;
    background: #fffdf9; filter: none;
  }
}
