:root {
  --bj-ink: #1b2a4a;
  --bj-ink-soft: #2c3f66;
  --bj-paper: #f3efe6;
  --bj-card: #fffcf7;
  --bj-line: #d9d0c3;
  --bj-rust: #c45c26;
  --bj-text: #1c1915;
  --bj-muted: #5c564c;
  --bj-ok: #2f6f4e;
  --bj-warn: #8a5a12;
  --bj-danger: #8b2e2e;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body.bj-html {
  margin: 0;
  background: var(--bj-paper);
  color: var(--bj-text);
  font-family: "Noto Sans Devanagari", "Nirmala UI", "Segoe UI", system-ui, sans-serif;
  line-height: 1.5;
}

a {
  color: var(--bj-ink-soft);
}

.bj-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.bj-header {
  background: var(--bj-ink);
  color: #f4f1ea;
  position: sticky;
  top: 0;
  z-index: 20;
}

.bj-header a {
  color: inherit;
  text-decoration: none;
}

.bj-header__inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.4rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bj-header__inner > div,
.bj-header .region-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: 100%;
  flex-wrap: wrap;
}

.site-branding,
.block-system-branding-block {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.site-logo img,
.block-system-branding-block img {
  width: 36px;
  height: 36px;
  display: block;
}

.site-name {
  font-size: 1rem;
}

.site-slogan {
  display: block;
  font-size: 0.7rem;
  font-weight: 400;
  opacity: 0.75;
}

.bj-nav-toggle {
  display: none;
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 6px;
  padding: 0.25rem 0.5rem;
}

.bj-header nav ul,
.region-header .menu,
.block-menu ul.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.bj-header nav a,
.region-header .menu a {
  display: block;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  font-size: 0.875rem;
}

.bj-header nav a:hover,
.bj-header nav a.is-active,
.region-header .menu a:hover,
.region-header .menu a.is-active {
  background: rgba(255, 255, 255, 0.12);
}

#block-bahirjee-main-menu {
  margin-left: auto;
}

#block-bahirjee-account-menu {
  margin-left: 0.25rem;
  padding-left: 0.5rem;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.bj-main {
  flex: 1;
  max-width: 1120px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.bj-highlighted {
  max-width: 1120px;
  margin: 1rem auto 0;
  padding: 0 1.25rem;
}

.bj-footer {
  border-top: 1px solid var(--bj-line);
  padding: 1rem 1.25rem 1.5rem;
  color: var(--bj-muted);
  font-size: 0.85rem;
  text-align: center;
}

.page-title {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.bj-desk h1,
.bj-queue h1 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
}

.bj-lede {
  margin: 0 0 1.5rem;
  color: var(--bj-muted);
}

.bj-identity {
  background: var(--bj-card);
  border: 1px solid var(--bj-line);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.bj-identity strong {
  display: block;
  font-size: 1.1rem;
}

.bj-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
}

.bj-chip {
  background: #ece5d8;
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
  font-size: 0.8rem;
}

.bj-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.bj-stat {
  background: var(--bj-card);
  border: 1px solid var(--bj-line);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
}

.bj-stat:hover {
  border-color: var(--bj-ink);
}

.bj-stat em {
  font-style: normal;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--bj-ink);
  display: block;
}

.bj-panel {
  background: var(--bj-card);
  border: 1px solid var(--bj-line);
  border-radius: 12px;
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.bj-panel__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--bj-line);
}

.bj-panel__head h2 {
  margin: 0;
  font-size: 1.05rem;
}

.bj-panel__head a {
  font-size: 0.85rem;
}

.bj-empty {
  padding: 1.1rem;
  color: var(--bj-muted);
}

.bj-table {
  width: 100%;
  border-collapse: collapse;
}

.bj-table th,
.bj-table td {
  text-align: left;
  padding: 0.7rem 1.1rem;
  border-bottom: 1px solid var(--bj-line);
  vertical-align: top;
}

.bj-table th {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bj-muted);
}

.bj-table tr:last-child td {
  border-bottom: 0;
}

.bj-badge {
  display: inline-block;
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.75rem;
  background: #ece5d8;
  white-space: nowrap;
}

.bj-badge--draft,
.bj-badge--returned_for_correction {
  background: #f3e0c8;
  color: var(--bj-warn);
}

.bj-badge--submitted,
.bj-badge--local_review,
.bj-badge--unit_review,
.bj-badge--dc_review,
.bj-badge--hq_branch_review {
  background: #d9e4f5;
  color: var(--bj-ink);
}

.bj-badge--approved_for_publication,
.bj-badge--published {
  background: #d5eadc;
  color: var(--bj-ok);
}

.bj-badge--rejected,
.bj-badge--archived {
  background: #f3d6d6;
  color: var(--bj-danger);
}

.bj-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin: 0 0 1.25rem;
}

.bj-btn {
  display: inline-block;
  background: var(--bj-ink);
  color: #fff !important;
  text-decoration: none;
  padding: 0.5rem 0.9rem;
  border-radius: 8px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}

.bj-btn--ghost {
  background: transparent;
  color: var(--bj-ink) !important;
  border: 1px solid var(--bj-line);
}

.bj-report__header {
  margin-bottom: 1rem;
}

.bj-kicker {
  color: var(--bj-muted);
  margin-left: 0.5rem;
  font-size: 0.9rem;
}

.bj-report__body .field {
  margin-bottom: 0.9rem;
}

.bj-report__body .field__label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--bj-muted);
}

.bj-document {
  max-width: 900px;
  background: var(--bj-card);
  border: 1px solid var(--bj-line);
  border-radius: 14px;
  overflow: hidden;
}

.bj-document__header {
  padding: 1.5rem 1.5rem 1.25rem;
  border-bottom: 1px solid var(--bj-line);
  background: linear-gradient(135deg, #f8f3e9, var(--bj-card));
}

.bj-document__type {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--bj-rust);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bj-document__header h1 {
  margin: 0;
  color: var(--bj-ink);
  font-size: clamp(1.65rem, 4vw, 2.25rem);
  line-height: 1.2;
}

.bj-document__workflow {
  margin: 0 0 0.8rem;
}

.bj-document__meta,
.bj-document__audience,
.bj-document__footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.85rem 1.25rem;
  padding: 1.1rem 1.5rem;
}

.bj-document__meta {
  background: #f8f4ec;
  border-bottom: 1px solid var(--bj-line);
}

.bj-document__meta .field,
.bj-document__audience .field,
.bj-document__footer .field {
  margin: 0;
}

.bj-document__meta .field__label,
.bj-document__audience .field__label,
.bj-document__footer .field__label {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--bj-muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bj-document__meta .field__item,
.bj-document__audience .field__item,
.bj-document__footer .field__item {
  font-weight: 600;
}

.bj-document__body {
  padding: 1.5rem;
  font-size: 1.02rem;
}

.bj-document__body > :first-child {
  margin-top: 0;
}

.bj-document__body > :last-child {
  margin-bottom: 0;
}

.bj-document__section {
  border-top: 1px solid var(--bj-line);
}

.bj-document__section h2 {
  margin: 0;
  padding: 1rem 1.5rem 0;
  color: var(--bj-ink);
  font-size: 1rem;
}

.bj-document__section .field {
  margin-bottom: 0;
}

.bj-document__footer {
  border-top: 1px solid var(--bj-line);
}

.bj-document__actions {
  padding: 0 1.5rem 1.5rem;
}

.bj-document__actions .links {
  margin: 0;
}

form .form-item {
  margin-bottom: 1rem;
}

.bj-content-form {
  max-width: 900px;
  padding: clamp(1rem, 3vw, 1.75rem) !important;
  box-shadow: 0 8px 24px rgba(27, 42, 74, 0.06);
}

.bj-content-form > .form-item-title-0 {
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--bj-line);
}

.bj-content-form .form-item > label,
.bj-content-form .fieldset__legend,
.bj-content-form legend {
  color: var(--bj-ink);
  font-weight: 700;
}

.bj-content-form .description {
  max-width: 40rem;
  margin-top: 0.35rem;
  color: var(--bj-muted);
  font-size: 0.875rem;
}

.bj-content-form fieldset {
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px solid var(--bj-line);
  border-radius: 8px;
}

.bj-content-form .form-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 1.5rem -0.25rem -0.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--bj-line);
}

.field--name-field-target-hq-branches .form-checkboxes,
.field--name-field-report-category .form-checkboxes,
.field--name-field-target-designations .form-checkboxes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 0.35rem 1rem;
  padding: 0.6rem 0;
}

.field--name-field-tags input.form-autocomplete {
  max-width: 100%;
}

.field--widget-text-textarea-with-summary textarea,
.field--name-body textarea,
.field--name-field-instructions textarea,
.field--name-field-source-details textarea {
  min-height: 12rem;
  max-width: 100%;
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="date"],
textarea,
select {
  width: 100%;
  max-width: 40rem;
  padding: 0.45rem 0.6rem;
  border: 1px solid var(--bj-line);
  border-radius: 6px;
  font: inherit;
  background: #fff;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
input[type="date"]:focus,
textarea:focus,
select:focus {
  outline: 3px solid rgba(44, 63, 102, 0.22);
  outline-offset: 1px;
  border-color: var(--bj-ink-soft);
}

.button,
.button--primary {
  background: var(--bj-ink);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 0.5rem 0.9rem;
}

.bj-shell--login {
  justify-content: center;
  background:
    radial-gradient(circle at top left, #31476f 0, transparent 42%),
    var(--bj-ink);
}

.bj-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.bj-login__card {
  width: 100%;
  max-width: 26rem;
  background: var(--bj-card);
  border-radius: 16px;
  padding: 1.75rem 1.5rem 1.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.22);
}

.bj-login__brand {
  text-align: center;
  margin-bottom: 1.25rem;
}

.bj-login__brand h1 {
  margin: 0.5rem 0 0.15rem;
}

.bj-login__brand p {
  margin: 0;
  color: var(--bj-muted);
}

.bj-login-form .form-item-name,
.bj-login-form .form-item-pass {
  margin-bottom: 0.85rem;
}

.messages {
  padding: 0.7rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.path-user .user-form,
.path-node .node-form {
  background: var(--bj-card);
  border: 1px solid var(--bj-line);
  border-radius: 12px;
  padding: 1.25rem;
}

@media (max-width: 720px) {
  .bj-nav-toggle {
    display: inline-block;
  }

  .bj-header__inner > div > nav,
  .region-header .block-menu {
    display: none;
    width: 100%;
  }

  body.bj-nav-open .bj-header__inner > div > nav,
  body.bj-nav-open .region-header .block-menu {
    display: block;
  }

  .bj-header nav ul,
  .region-header .menu {
    flex-direction: column;
    padding: 0.25rem 0 0.4rem;
  }

  #block-bahirjee-main-menu,
  #block-bahirjee-account-menu {
    margin-left: 0;
    padding-left: 0;
    border-left: 0;
  }

  .bj-table th:nth-child(n + 3),
  .bj-table td:nth-child(n + 3) {
    display: none;
  }

  .bj-document__header,
  .bj-document__body {
    padding: 1.1rem;
  }

  .bj-document__meta,
  .bj-document__audience,
  .bj-document__footer {
    grid-template-columns: 1fr;
    padding: 1rem 1.1rem;
  }

  .bj-document__section h2,
  .bj-document__actions {
    padding-left: 1.1rem;
    padding-right: 1.1rem;
  }
}
