/*
 * Nepal Business Monitor colours for the editor admin.
 * Wagtail builds its whole palette from these base values (see the site's
 * tokens in web/src/app/globals.css): navy for the sidebar, brand red for
 * buttons, links and highlights. Works in both light and dark mode.
 */
:root,
.w-theme-light,
.w-theme-dark {
  /* --navy-dark #12304F */
  --w-color-primary-hue: 210.5;
  --w-color-primary-saturation: 62.9%;
  --w-color-primary-lightness: 19%;
  /* --brand #B8232F */
  --w-color-secondary-hue: 355.2;
  --w-color-secondary-saturation: 68%;
  --w-color-secondary-lightness: 42.9%;
  /* --navy #1E4A7A for keyboard focus rings */
  --w-color-focus: #1e4a7a;
}

/* Red / navy stripe from the site's masthead, along the top of the sidebar. */
.sidebar::before {
  content: "";
  display: block;
  height: 4px;
  flex: none;
  background: linear-gradient(90deg, #b8232f 0 50%, #1e4a7a 50% 100%);
}

.nbm-logo { display: block; width: 56px; max-width: 100%; height: auto; aspect-ratio: 1; border-radius: 6px; }

/* Sign-in page */
.nbm-wordmark { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-top: 2rem; text-align: center; }
.nbm-wordmark__ne { font-size: 14px; font-weight: 600; color: #b8232f; }
.nbm-wordmark__en { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--w-color-text-label); }
.nbm-wordmark__bar { width: 120px; height: 4px; margin-top: 6px; background: linear-gradient(90deg, #b8232f 0 50%, #1e4a7a 50% 100%); }

/* House admin pages (market update, editor guide) */
.nbm-admin-page { max-width: 60rem; padding-bottom: 4rem; }
.nbm-guide h2 { margin-top: 2.25rem; }
.nbm-guide li { margin-bottom: 0.4rem; line-height: 1.5; }
.nbm-guide ol, .nbm-guide ul { padding-left: 1.4rem; }
.nbm-guide ol { list-style: decimal; }
.nbm-guide ul { list-style: disc; }
