/* Shared heading hierarchy for all authenticated portal pages. */
body.novi-portal-page {
  --portal-heading-color: #edfaff;
  --portal-heading-font: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif;
}
html[data-theme="light"] body.novi-portal-page {
  --portal-heading-color: #1c2d3b;
}
body.novi-portal-page h1 {
  font-family: var(--portal-heading-font) !important;
  font-size: 30px !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -.6px !important;
  text-transform: none !important;
  color: var(--portal-heading-color) !important;
  margin: 0 0 12px !important;
  overflow-wrap: anywhere;
}
body.novi-portal-page h1 span {
  color: inherit !important;
  font: inherit !important;
  letter-spacing: inherit !important;
}
body.novi-portal-page h1 > img,
body.novi-portal-page h1 > svg {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  flex: 0 0 32px !important;
  object-fit: contain;
}
body.novi-portal-page h1:has(> img),
body.novi-portal-page h1:has(> svg) {
  gap: 10px !important;
  align-items: center;
}
body.novi-portal-page h2 {
  font-family: var(--portal-heading-font) !important;
  font-size: 18px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: -.2px !important;
  text-transform: none !important;
  color: var(--portal-heading-color) !important;
  margin: 0 0 12px !important;
  overflow-wrap: anywhere;
}
body.novi-portal-page h3 {
  font-family: var(--portal-heading-font) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--portal-heading-color) !important;
  margin: 0 0 10px !important;
  overflow-wrap: anywhere;
}
/* Row containers own their spacing so icons and adjacent controls stay centered. */
body.novi-portal-page :is(.card-title, .module-heading, .module-head, .portal-toolbar) > h2 {
  margin: 0 !important;
}
@media (max-width: 680px) {
  body.novi-portal-page h1 {
    font-size: 26px !important;
    letter-spacing: -.5px !important;
  }
  body.novi-portal-page h2 { font-size: 17px !important; }
  body.novi-portal-page h1 > img,
  body.novi-portal-page h1 > svg {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    flex-basis: 28px !important;
  }
}

/* Override older per-page light-theme colors, including nested title spans. */
html[data-theme="light"] body.novi-portal-page:not(.portal-shell-body) :is(h1, h2, h3, h1 span, h2 span, h3 span) {
  color: #1c2d3b !important;
}
