/* Basic demo styles for static assets */

/* The font declaration moved to static/css/fonts.css, which every template loading this file
   also loads. It used to be duplicated here because the content reader does not load
   omm-base.css — that duplication is what fonts.css exists to end. */

/* Content reader uses the brand font for body text (not Bootstrap's
   system-ui default). Loaded after bootstrap.min.css, so this wins.
   Bold (<strong>) resolves to a real 700 instance of the variable face. */
body {
  font-family: var(--omm-font-stack);
}

:root {
  --brand: #0d6efd;
}

.brand-accent {
  color: var(--brand);
}

/* Critical backgrounds moved out of inline styles to avoid CSP nonce issues */
.bg-image {
  min-height: 100vh; /* ensure full viewport coverage */
  height: auto;
  /* A ROLE-named file behind a SETTING (BRAND_AUTH_BG_PATH), never a company-branded filename.
     The image is ommerc's own sign-in background and ships as the non-blank default the
     setting points at — artwork the project owns ships, artwork it only licences does not.
     The literal below is that default and the var() fallback, so a page which does not emit the
     token still renders the shipped image rather than nothing. */
  background: var(--omm-auth-bg, url('/static/img/auth-bg.jpg')) no-repeat center center;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.logo {
  /* BRAND_LOGO_PATH. Same rule as the auth background above: logo.png is ommerc's own mark
     (the bar, block and circle), so it ships as the non-blank default the setting points at,
     and the literal here is both that default and the var() fallback. */
  background: var(--omm-brand-logo, url('/static/img/logo.png')) no-repeat 50% 50%;
  width: 100%;
  height: 42px;
  background-size: contain;
}

/* Flash message auto-dismiss */
.flash-progress {
  height: 3px;
  background-color: rgba(0,0,0,0.15);
  border-radius: 0 0 4px 4px;
  margin-top: 0.5rem;
  transition: width 0.1s linear;
}

.flash-dismissed {
  opacity: 0;
  transition: opacity 0.3s ease-out;
}
