:root {
  --app-route-surface: #f7f5ef;
  background: var(--app-route-surface);
}

html,
body,
#root {
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--app-route-surface);
}

.app-route-error {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  box-sizing: border-box;
  width: min(420px, calc(100vw - 32px));
  padding: 16px;
  border: 1px solid rgb(0 0 0 / 18%);
  border-radius: 8px;
  color: #1a1611;
  background: #fffdf8;
  box-shadow: 0 12px 40px rgb(0 0 0 / 20%);
  font: 500 14px/1.45 Inter, Arial, sans-serif;
}

.app-route-error p {
  margin: 0 0 12px;
}

.app-route-error div {
  display: flex;
  gap: 12px;
  align-items: center;
}

.app-route-error button,
.app-route-error a {
  border: 1px solid currentColor;
  border-radius: 999px;
  padding: 7px 12px;
  color: inherit;
  background: transparent;
  font: inherit;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.app-route-error button {
  color: #fff;
  background: #1a1611;
}

.app-route-fatal {
  box-sizing: border-box;
  width: min(640px, calc(100vw - 32px));
  margin: clamp(48px, 12vh, 120px) auto;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgb(0 0 0 / 18%);
  border-radius: 12px;
  color: #1a1611;
  background: #fffdf8;
  box-shadow: 0 12px 40px rgb(0 0 0 / 20%);
  font: 500 16px/1.5 Inter, Arial, sans-serif;
}

.app-route-fatal h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.05;
}

.app-route-fatal p {
  margin: 0 0 20px;
}

.app-route-fatal button,
.app-route-fatal a {
  display: inline-block;
  margin: 0 12px 0 0;
  border: 1px solid #1a1611;
  border-radius: 999px;
  padding: 9px 14px;
  color: #1a1611;
  background: transparent;
  font: inherit;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
}

.app-route-fatal button {
  color: #fff;
  background: #1a1611;
}

body.editorial-studio,
body.updated-veris {
  --app-route-surface: #101418;
}

body.editorial-studio {
  --app-route-surface: #0e0b08;
}

body.citrus-site {
  --app-route-surface: #ffefd1;
}

body.updated-citrus {
  --app-route-surface: #fff6e8;
}

body.dss-authoritative {
  --app-route-surface: #f1f4f4;
}

body.theme-cense {
  --app-route-surface: #f6f4fb;
}

body.theme-integrated-or {
  --app-route-surface: #eef5f3;
}

body.theme-veris {
  --app-route-surface: #f5f7fd;
}

body.theme-movendi {
  --app-route-surface: #ffffff;
}

html:has(body.editorial-studio) {
  background: #0e0b08;
}

html:has(body.updated-veris) {
  background: #101418;
}

html:has(body.citrus-site) {
  background: #ffefd1;
}

html:has(body.updated-citrus) {
  background: #fff6e8;
}

html:has(body.dss-authoritative) {
  background: #f1f4f4;
}

@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 180ms;
  animation-timing-function: ease-out;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation-duration: 1ms;
  }
}
