/* ============================================================
   BNRM Redesign (v4) — front-end overlay
   Maps the Khatam / Moroccan-arch redesign onto the existing
   Flask + Bootstrap-3 templates. Loaded after bnrm-bundle.css
   so its rules win.
   ============================================================ */

:root {
  --font-heading: 'DM Sans', "Helvetica Neue", Arial, sans-serif;
  --font-body: 'Source Serif 4', Georgia, "Times New Roman", serif;
  --navy: #1B2A4A;
  --navy-deep: #0A131F;
  --teal: #1B4B6B;
  --teal-bright: #2A7B9B;
  --gold: #C4841D;
  --gold-soft: rgba(196,132,29,.1);
  --terracotta: #8B5E3C;
  --bg: #FFFCF9;
  --text: #2C3040;
  --text-light: #7A7D8B;
  --line: rgba(27,42,74,.08);
  --line-soft: rgba(27,42,74,.04);
}

/* --- typographic baseline ------------------------------------ */
body.collection,
body.portal {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
body.collection h1, body.collection h2, body.collection h3,
body.collection h4, body.collection h5, body.collection h6,
body.portal h1, body.portal h2, body.portal h3,
body.portal h4, body.portal h5, body.portal h6 {
  font-family: var(--font-heading);
  letter-spacing: -.01em;
}

/* Tifinagh font kept for future Amazigh content */
:lang(ar) { font-family: var(--font-body); }

::selection { background: rgba(196,132,29,.25); }

/* --- scroll progress bar ------------------------------------- */
.bnrm-scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 3px;
  z-index: 999;
  pointer-events: none;
}
.bnrm-scroll-progress__bar {
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--terracotta));
  width: 0%;
  transition: width .1s linear;
}

/* ============================================================
   HEADER
   ============================================================ */
body.collection > header,
body.portal > header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,252,249,.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  transition: background .35s ease, border-color .35s ease;
}
body.collection > header.is-on-hero,
body.portal > header.is-on-hero {
  background: transparent;
  border-bottom-color: transparent;
}
body.collection > header > .container,
body.portal > header > .container {
  max-width: 1280px;
  width: 100%;
}
body.collection > header .topFunction,
body.portal > header .topFunction {
  display: flex;
  align-items: center;
  height: 68px;
  margin: 0;
  padding: 0;
}
body.collection > header .mainNav,
body.portal > header .mainNav {
  flex: 0 0 auto;
  width: auto !important;
  margin: 0;
  padding: 0;
  float: none;
}
body.collection > header .brandLogo,
body.portal > header .brandLogo {
  flex: 1 1 auto;
  width: auto !important;
  min-width: 0;
  margin: 0;
  padding: 0 24px;
  float: none;
}
body.collection > header .brandLogo h1,
body.portal > header .brandLogo h1 {
  margin: 0;
}
body.collection > header .brandLogo .logo-svg-legenda,
body.portal > header .brandLogo .logo-svg-legenda {
  display: flex;
  align-items: center;
  gap: 14px;
}
body.collection > header .brandLogo a,
body.portal > header .brandLogo a {
  background: none !important;
  height: auto !important;
  padding: 0 !important;
  display: flex !important;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
body.collection > header .brandLogo .bnrm-mark,
body.portal > header .brandLogo .bnrm-mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
body.collection > header .brandLogo .bnrm-wordmark,
body.portal > header .brandLogo .bnrm-wordmark {
  display: flex;
  flex-direction: column;
  text-align: start;
}
body.collection > header .brandLogo .bnrm-wordmark__name,
body.portal > header .brandLogo .bnrm-wordmark__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: var(--navy);
  letter-spacing: -.01em;
  line-height: 1;
}
body.collection > header .brandLogo .bnrm-wordmark__sub,
body.portal > header .brandLogo .bnrm-wordmark__sub {
  font-family: var(--font-heading);
  font-size: 10px;
  color: var(--text-light);
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-top: 3px;
}
body.collection > header .language,
body.portal > header .language {
  flex: 0 0 auto;
  width: auto !important;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  float: none;
}
body.collection > header .language a,
body.portal > header .language a {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--text-light);
  padding: 6px 10px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: none !important;
  text-indent: 0 !important;
  width: auto !important;
  height: auto !important;
  text-transform: uppercase;
  transition: color .2s, background .2s, border-color .2s;
}
body.collection > header .language a:hover,
body.portal > header .language a:hover {
  color: var(--navy);
  background: rgba(27,42,74,.04);
  border-color: var(--line);
}

/* mainMenu trigger ("hamburger") */
body.collection > header .mainNav .menu,
body.portal > header .mainNav .menu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  color: var(--navy);
  background: rgba(27,42,74,.04);
  text-indent: -9999em;
  position: relative;
  cursor: pointer;
}
body.collection > header .mainNav .menu::before,
body.portal > header .mainNav .menu::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 18px;
  height: 14px;
  background-image:
    linear-gradient(to bottom,
      currentColor 0, currentColor 2px,
      transparent 2px, transparent 6px,
      currentColor 6px, currentColor 8px,
      transparent 8px, transparent 12px,
      currentColor 12px, currentColor 14px);
  text-indent: 0;
}
body.collection > header .mainNav .menu:hover,
body.portal > header .mainNav .menu:hover {
  background: rgba(196,132,29,.12);
  color: var(--gold);
}
body.collection > header .mainNav .mainMenu,
body.portal > header .mainNav .mainMenu {
  display: none;
}

/* ============================================================
   ALERT BANNER (above header)
   ============================================================ */
body.collection .alert-warning,
body.portal .alert-warning {
  background: linear-gradient(90deg, rgba(196,132,29,.08), rgba(196,132,29,.02));
  border-bottom: 1px solid rgba(196,132,29,.15);
  color: var(--text);
  font-family: var(--font-heading);
  font-size: 13px;
  padding: 8px 16px !important;
}

/* ============================================================
   SIDE-NAV DRAWER
   ============================================================ */
.bnrm-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,19,31,.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity .4s ease;
}
.bnrm-drawer-backdrop.is-open { opacity: 1; pointer-events: auto; }

.bnrm-drawer {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 360px;
  max-width: 90vw;
  z-index: 201;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: rgba(255,255,255,.7);
  transform: translateX(-100%);
  transition: transform .45s cubic-bezier(.4,0,.2,1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-heading);
}
[dir="rtl"] .bnrm-drawer {
  left: auto; right: 0;
  transform: translateX(100%);
}
.bnrm-drawer.is-open { transform: translateX(0); }

.bnrm-drawer__header {
  position: relative;
  z-index: 1;
  padding: 24px 24px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.bnrm-drawer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bnrm-drawer__name {
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.01em;
}
.bnrm-drawer__sub {
  color: rgba(255,255,255,.35);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-top: 2px;
}
.bnrm-drawer__close {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  color: rgba(255,255,255,.6);
  border-radius: 10px;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.bnrm-drawer__close:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.bnrm-drawer__rule {
  margin: 0 24px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), rgba(196,132,29,.1), transparent);
}
.bnrm-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 16px;
}
.bnrm-drawer__section { margin-bottom: 24px; }
.bnrm-drawer__section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 8px;
  margin: 0 0 8px;
  font-size: 10px;
  font-weight: 700;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: .1em;
}
.bnrm-drawer__section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(196,132,29,.1);
}
.bnrm-drawer__link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,.7);
  text-decoration: none;
  border-radius: 10px;
  border-left: 2px solid transparent;
  transition: background .25s, color .25s, transform .25s, border-color .25s;
}
[dir="rtl"] .bnrm-drawer__link {
  border-left: none;
  border-right: 2px solid transparent;
}
.bnrm-drawer__link:hover,
.bnrm-drawer__link:focus {
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.06);
  border-left-color: var(--gold);
  transform: translateX(4px);
}
[dir="rtl"] .bnrm-drawer__link:hover,
[dir="rtl"] .bnrm-drawer__link:focus {
  border-right-color: var(--gold);
  transform: translateX(-4px);
}
.bnrm-drawer__icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.4);
}
.bnrm-drawer__link:hover .bnrm-drawer__icon {
  background: rgba(196,132,29,.15);
  color: var(--gold);
}
.bnrm-drawer__footer {
  position: relative;
  z-index: 1;
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255,255,255,.06);
}
.bnrm-drawer__cta {
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.bnrm-drawer__copy {
  margin-top: 12px;
  font-size: 11px;
  color: rgba(255,255,255,.2);
}

/* ============================================================
   HOMEPAGE — HERO
   ============================================================ */
.bnrm-hero {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy-deep) 0%, #13233A 30%, #1B3A5C 70%, var(--teal) 100%);
  color: #fff;
  display: flex;
  align-items: center;
  padding: 80px 32px 100px;
  margin-top: -68px; /* slot under sticky header */
}
.bnrm-hero__pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.bnrm-hero__topline {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent 10%, var(--gold), transparent 90%);
}
.bnrm-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-top: 68px;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 80px;
  align-items: center;
}
.bnrm-hero__star-tr,
.bnrm-hero__star-bl {
  position: absolute;
  pointer-events: none;
  transition: transform .4s ease-out;
}
.bnrm-hero__star-tr { top: 5%; right: -2%; }
.bnrm-hero__star-bl { bottom: 8%; left: 3%; }

.bnrm-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: rgba(196,132,29,.1);
  border: 1px solid rgba(196,132,29,.2);
  border-radius: 24px;
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.bnrm-hero__badge::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
}
.bnrm-hero__badge-text {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
}
.bnrm-hero__title {
  font-family: var(--font-heading);
  font-size: 56px;
  font-weight: 800;
  color: #fff;
  line-height: 1.06;
  letter-spacing: -.035em;
  margin: 0 0 24px;
  white-space: pre-line;
}
.bnrm-hero__sub {
  font-family: var(--font-body);
  font-size: 17px;
  color: rgba(255,255,255,.55);
  line-height: 1.8;
  margin: 0 0 40px;
  max-width: 500px;
}
.bnrm-hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
}
.bnrm-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: 10px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s;
}
.bnrm-btn--primary {
  background: var(--gold);
  color: #fff;
  box-shadow: 0 4px 24px rgba(196,132,29,.35);
}
.bnrm-btn--primary:hover,
.bnrm-btn--primary:focus {
  background: #b3771a;
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 28px rgba(196,132,29,.45);
}
.bnrm-btn--ghost {
  padding: 16px 28px;
  background: rgba(255,255,255,.06);
  color: rgba(255,255,255,.85);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.bnrm-btn--ghost:hover,
.bnrm-btn--ghost:focus {
  background: rgba(255,255,255,.12);
  color: #fff;
  text-decoration: none;
}

.bnrm-hero__indicators {
  display: flex;
  gap: 10px;
  margin-top: 52px;
}
.bnrm-hero__dot {
  width: 12px; height: 12px;
  border-radius: 6px;
  border: none;
  background: rgba(255,255,255,.12);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  padding: 0;
  transition: width .5s cubic-bezier(.4,0,.2,1), background .3s;
}
.bnrm-hero__dot.is-active {
  width: 36px;
  background: var(--gold);
}
.bnrm-hero__dot.is-active::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--gold), var(--terracotta));
  animation: bnrm-slide-progress 7s linear;
  transform-origin: left center;
}
@keyframes bnrm-slide-progress {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@keyframes bnrm-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.bnrm-hero__title.is-animating,
.bnrm-hero__badge.is-animating { animation: bnrm-fade-up .7s cubic-bezier(.4,0,.2,1); }
.bnrm-hero__sub.is-animating { animation: bnrm-fade-up .7s cubic-bezier(.4,0,.2,1) .15s both; }

/* hero RHS arch + stats */
.bnrm-hero__arch-wrap {
  display: flex;
  justify-content: center;
}
.bnrm-arch {
  position: relative;
  width: 360px;
  height: 440px;
}
.bnrm-arch__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.bnrm-arch__content {
  position: absolute;
  top: 100px;
  left: 50px;
  right: 50px;
  bottom: 30px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.bnrm-arch__star { margin-bottom: 16px; }
.bnrm-arch__stats {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.bnrm-arch__stat-num {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 800;
  color: #fff;
}
.bnrm-arch__stat-label {
  font-family: var(--font-heading);
  font-size: 12px;
  color: rgba(255,255,255,.45);
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ============================================================
   HOMEPAGE — SEARCH BAR
   ============================================================ */
.bnrm-search-wrap {
  padding: 0 32px;
  margin-top: -32px;
  position: relative;
  z-index: 3;
}
.bnrm-search {
  max-width: 860px;
  margin: 0 auto;
  display: flex;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(27,42,74,.12);
  overflow: hidden;
  align-items: stretch;
}
.bnrm-search__input {
  flex: 1;
  border: none;
  outline: none;
  padding: 16px 24px;
  font-size: 16px;
  font-family: var(--font-body);
  color: var(--text);
  background: transparent;
  resize: none;
  min-height: 56px;
}
.bnrm-search__select {
  border: none;
  border-left: 1px solid var(--line);
  padding: 0 16px;
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--text-light);
  background: transparent;
  cursor: pointer;
  outline: none;
}
[dir="rtl"] .bnrm-search__select {
  border-left: none;
  border-right: 1px solid var(--line);
}
.bnrm-search__btn {
  border: none;
  background: var(--gold);
  color: #fff;
  padding: 0 28px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  transition: background .2s;
}
.bnrm-search__btn:hover { background: #b3771a; }

/* ============================================================
   GENERIC SECTION + HEADINGS (used across home)
   ============================================================ */
.bnrm-section {
  padding: 72px 32px 56px;
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
}
.bnrm-section--wide {
  max-width: none;
  padding: 60px 32px;
  position: relative;
  overflow: hidden;
}
.bnrm-section__head { margin-bottom: 32px; }
.bnrm-section__title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 6px;
}
.bnrm-section__sub {
  font-size: 15px;
  color: var(--text-light);
  margin: 0;
}
.bnrm-section__head-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 36px;
  gap: 24px;
  flex-wrap: wrap;
}
.bnrm-link-arrow {
  font-family: var(--font-heading);
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.bnrm-link-arrow:hover {
  color: #b3771a;
  text-decoration: none;
}

/* ============================================================
   HOMEPAGE — ALPHA / THEMATIC ENTRY CARDS
   ============================================================ */
.bnrm-entry-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.bnrm-entry-card {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 28px;
  background: #fff;
  border: 1px solid rgba(27,42,74,.06);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.bnrm-entry-card:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-4px);
  box-shadow: 0 10px 30px rgba(27,42,74,.1);
  border-color: rgba(196,132,29,.2);
}
.bnrm-entry-card__ico {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.bnrm-entry-card__ico--teal { background: linear-gradient(135deg, rgba(27,75,107,.15), rgba(27,75,107,.05)); color: var(--teal); }
.bnrm-entry-card__ico--terra { background: linear-gradient(135deg, rgba(139,94,60,.15), rgba(139,94,60,.05)); color: var(--terracotta); }
.bnrm-entry-card__title {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 4px;
}
.bnrm-entry-card__desc {
  font-size: 14px;
  color: var(--text-light);
  margin: 0;
  line-height: 1.5;
}
.bnrm-entry-card__arrow {
  margin-left: auto;
  color: var(--gold);
  flex-shrink: 0;
}
[dir="rtl"] .bnrm-entry-card__arrow {
  margin-left: 0;
  margin-right: auto;
  transform: scaleX(-1);
}

/* ============================================================
   HOMEPAGE — ADOAH / NETWORK STAR
   ============================================================ */
.bnrm-network {
  position: relative;
  padding: 72px 32px;
  overflow: hidden;
}
.bnrm-network__inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.bnrm-network__head {
  text-align: center;
  margin-bottom: 48px;
}
.bnrm-network__star {
  position: relative;
  width: 520px;
  max-width: 100%;
  height: 520px;
  margin: 0 auto;
}
.bnrm-network__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.bnrm-network__hub {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--navy), #243656);
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 4px 20px rgba(27,42,74,.25);
  transition: box-shadow .4s;
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
}
.bnrm-network__hub::before {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  border: 1.5px solid rgba(196,132,29,.3);
}
.bnrm-network__hub:hover {
  box-shadow: 0 0 0 6px rgba(196,132,29,.15), 0 8px 32px rgba(27,42,74,.3);
}
.bnrm-network__node {
  position: absolute;
  width: 100px;
  height: 80px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(27,75,107,.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  z-index: 2;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  transform: translate(-50%, -50%);
  transition: transform .35s cubic-bezier(.4,0,.2,1), box-shadow .35s, background .35s, border-color .35s;
  box-shadow: 0 2px 8px rgba(27,42,74,.06);
}
.bnrm-network__node:hover {
  text-decoration: none;
  background: linear-gradient(135deg, var(--gold), var(--terracotta));
  border-color: transparent;
  color: #fff;
  transform: translate(-50%, -50%) scale(1.08);
  box-shadow: 0 8px 24px rgba(196,132,29,.25);
}
.bnrm-network__node-icon {
  color: var(--teal);
  opacity: .55;
  transition: color .3s, opacity .3s;
}
.bnrm-network__node:hover .bnrm-network__node-icon {
  color: #fff;
  opacity: 1;
}
.bnrm-network__node-label {
  font-family: var(--font-heading);
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
  line-height: 1.3;
  color: var(--navy);
  white-space: pre-line;
}
.bnrm-network__node:hover .bnrm-network__node-label { color: #fff; }

/* ============================================================
   HOMEPAGE — NEWS CARDS
   ============================================================ */
.bnrm-news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.bnrm-news-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(27,42,74,.05);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform .25s, box-shadow .25s;
}
.bnrm-news-card:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(27,42,74,.12);
}
.bnrm-news-card__media {
  height: 190px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bnrm-news-card__media--c1 { background: linear-gradient(135deg, var(--teal), var(--teal-bright)); }
.bnrm-news-card__media--c2 { background: linear-gradient(135deg, var(--gold), var(--terracotta)); }
.bnrm-news-card__media--c3 { background: linear-gradient(135deg, var(--navy-deep), var(--teal)); }
.bnrm-news-card__media--c4 { background: linear-gradient(135deg, var(--terracotta), var(--gold)); }
.bnrm-news-card__media--c5 { background: linear-gradient(135deg, var(--teal), var(--navy-deep)); }
.bnrm-news-card__media--c6 { background: linear-gradient(135deg, var(--teal-bright), var(--teal)); }
.bnrm-news-card__media-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}
.bnrm-news-card__media-pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: .35;
}
.bnrm-news-card__star {
  position: relative;
  z-index: 3;
  opacity: .35;
}
.bnrm-news-card__category {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  padding: 5px 14px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .04em;
}
[dir="rtl"] .bnrm-news-card__category { left: auto; right: 14px; }
.bnrm-news-card__body {
  padding: 22px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}
.bnrm-news-card__date {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
}
.bnrm-news-card__title {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 18px;
  line-height: 1.5;
  flex: 1 1 auto;
}
.bnrm-news-card__more {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ============================================================
   HOMEPAGE — COUNTER BAND
   ============================================================ */
.bnrm-counters {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 60px 32px;
}
.bnrm-counters__pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .14;
}
.bnrm-counters__grid {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.bnrm-counter { text-align: center; }
.bnrm-counter__num {
  font-family: var(--font-heading);
  font-size: 42px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.bnrm-counter__label {
  font-family: var(--font-heading);
  font-size: 14px;
  color: rgba(255,255,255,.6);
  margin-top: 6px;
}

/* ============================================================
   HOMEPAGE — RESOURCES
   ============================================================ */
.bnrm-resources {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.bnrm-resource {
  display: block;
  padding: 28px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid rgba(27,42,74,.05);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.bnrm-resource:hover {
  text-decoration: none;
  color: inherit;
  transform: translateY(-4px);
  box-shadow: 0 12px 36px rgba(27,42,74,.1);
  border-color: rgba(196,132,29,.2);
}
.bnrm-resource__ico {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 18px;
  background: linear-gradient(135deg, rgba(27,75,107,.1), rgba(27,75,107,.03));
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bnrm-resource__ico--gold {
  background: linear-gradient(135deg, rgba(196,132,29,.15), rgba(196,132,29,.04));
  color: var(--gold);
}
.bnrm-resource__ico--terra {
  background: linear-gradient(135deg, rgba(139,94,60,.15), rgba(139,94,60,.04));
  color: var(--terracotta);
}
.bnrm-resource__ico--navy {
  background: linear-gradient(135deg, rgba(27,42,74,.12), rgba(27,42,74,.03));
  color: var(--navy);
}
.bnrm-resource__title {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 8px;
}
.bnrm-resource__desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.65;
  margin: 0 0 16px;
}
.bnrm-resource__tag {
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 700;
  color: var(--terracotta);
  text-transform: uppercase;
  letter-spacing: .05em;
}

/* ============================================================
   ALPHA / THEMATIC LIST PAGES
   ============================================================ */
.bnrm-page-banner {
  position: relative;
  padding: 56px 32px 44px;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy) 60%, var(--teal));
  overflow: hidden;
  color: #fff;
  margin-top: -68px;
  padding-top: 124px;
}
.bnrm-page-banner__pattern {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: .12;
}
.bnrm-page-banner__star {
  position: absolute;
  right: 40px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
[dir="rtl"] .bnrm-page-banner__star { right: auto; left: 40px; }
.bnrm-page-banner__inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.bnrm-crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  font-size: 13px;
}
.bnrm-crumbs a {
  color: rgba(255,255,255,.55);
  text-decoration: none;
  transition: color .2s;
}
.bnrm-crumbs a:hover { color: var(--gold); }
.bnrm-crumbs__sep { color: rgba(255,255,255,.25); }
.bnrm-crumbs__current { color: rgba(255,255,255,.85); }
.bnrm-page-banner__title {
  font-family: var(--font-heading);
  font-size: 40px;
  font-weight: 800;
  color: #fff;
  margin: 0;
  letter-spacing: -.02em;
}
.bnrm-page-banner__sub {
  font-size: 16px;
  color: rgba(255,255,255,.55);
  margin: 6px 0 0;
}

.bnrm-list-wrap {
  padding: 32px 32px 80px;
  max-width: 1280px;
  margin: 0 auto;
}
.bnrm-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid rgba(27,42,74,.08);
  margin-bottom: 28px;
}
.bnrm-tabs__tab {
  padding: 14px 24px;
  border: none;
  background: none;
  cursor: pointer;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-light);
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s, border-color .2s;
}
.bnrm-tabs__tab:hover {
  color: var(--navy);
  text-decoration: none;
}
.bnrm-tabs__tab.is-active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.bnrm-filterbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.bnrm-pillgroup {
  display: inline-flex;
  gap: 4px;
  background: rgba(27,42,74,.04);
  border-radius: 8px;
  padding: 3px;
}
.bnrm-pill {
  display: inline-flex;
  align-items: center;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  color: var(--text-light);
  text-decoration: none;
  transition: all .2s;
}
.bnrm-pill:hover {
  color: var(--navy);
  text-decoration: none;
}
.bnrm-pill.is-active {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}
.bnrm-search-mini {
  position: relative;
  flex: 0 1 320px;
  min-width: 240px;
}
.bnrm-search-mini__input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid rgba(27,42,74,.12);
  border-radius: 8px;
  font-size: 13px;
  font-family: var(--font-body);
  outline: none;
  background: #fff;
  box-sizing: border-box;
  color: var(--text);
}
[dir="rtl"] .bnrm-search-mini__input { padding: 10px 38px 10px 14px; }
.bnrm-search-mini__input:focus { border-color: var(--gold); }
.bnrm-search-mini__icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
  display: flex;
}
[dir="rtl"] .bnrm-search-mini__icon { left: auto; right: 12px; }

.bnrm-area-select {
  display: inline-block;
  margin: 0 0 20px;
}
.bnrm-area-select select {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid rgba(27,42,74,.12);
  border-radius: 10px;
  padding: 10px 38px 10px 14px;
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--navy);
  background: #fff
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237A7D8B' stroke-width='2' stroke-linecap='round'><polyline points='6 9 12 15 18 9'/></svg>")
    right 12px center / 14px no-repeat;
  outline: none;
}
[dir="rtl"] .bnrm-area-select select {
  padding: 10px 14px 10px 38px;
  background-position: left 12px center;
}

.bnrm-letter-rail {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin: 20px 0;
  padding: 14px 0;
}
.bnrm-letter-rail__btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--navy);
  background: rgba(27,75,107,.05);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background .2s, color .2s, transform .2s;
}
.bnrm-letter-rail__btn:hover,
.bnrm-letter-rail__btn:focus {
  background: var(--gold);
  color: #fff;
  text-decoration: none;
  transform: translateY(-2px);
}

.bnrm-letter-block { margin-bottom: 12px; }
.bnrm-letter-block__head {
  position: sticky;
  top: 68px;
  background: var(--bg);
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 0 10px;
}
.bnrm-letter-block__chip {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy), var(--teal));
}
.bnrm-letter-block__rule {
  flex: 1;
  height: 1px;
  background: rgba(27,42,74,.06);
}
.bnrm-letter-block__count {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--text-light);
}

/* journal table-driven rows -> redesigned card rows */
table.table-journal-list {
  width: 100%;
  border-collapse: collapse;
  background: transparent;
  border: none;
  margin: 0;
}
table.table-journal-list > thead { display: none; }
table.table-journal-list > tbody > tr {
  display: flex;
  flex-direction: column;
  border: none;
  background: transparent;
  margin: 0;
}
table.table-journal-list > tbody > tr > td {
  border: none;
  padding: 0;
  display: block;
}
table.table-journal-list > tbody > tr > td.actions {
  display: none;
}
table.table-journal-list .journalTitle {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
}
table.table-journal-list .collectionLink {
  display: block;
  padding: 14px 18px;
  margin-bottom: 4px;
  border-radius: 12px;
  border-left: 3px solid transparent;
  background: transparent;
  text-decoration: none;
  color: inherit;
  transition: background .25s, border-color .25s, transform .25s, box-shadow .25s;
}
table.table-journal-list .collectionLink:hover {
  background: rgba(27,75,107,.04);
  border-left-color: var(--gold);
  transform: translateX(4px);
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(27,42,74,.05);
}
[dir="rtl"] table.table-journal-list .collectionLink {
  border-left: none;
  border-right: 3px solid transparent;
}
[dir="rtl"] table.table-journal-list .collectionLink:hover {
  border-right-color: var(--gold);
  transform: translateX(-4px);
}
table.table-journal-list .collectionLink.disabled .journalTitle {
  color: var(--text-light);
  text-decoration: line-through;
  opacity: .8;
}
table.table-journal-list .journalIssues,
table.table-journal-list .last-issue-legend,
table.table-journal-list .journalPreviousTitle {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-light);
}

/* the thematic accordion (Bootstrap panels remapped) */
.collectionList .panel-group { display: flex; flex-direction: column; gap: 8px; }
.collectionList .panel-group > tr { display: block; }
.collectionList .panel-group > tr > td.td-thematic { display: block; padding: 0; border: none; }
.collectionList .panel {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(27,42,74,.05);
  overflow: hidden;
  transition: border-color .35s, box-shadow .35s, border-radius .35s;
}
.collectionList .panel:has(.panel-collapse.in),
.collectionList .panel.is-open {
  border-color: rgba(196,132,29,.3);
  box-shadow: 0 6px 28px rgba(196,132,29,.1);
  border-radius: 18px;
}
.collectionList .panel-heading {
  background: transparent;
  border: none;
  padding: 0;
}
.collectionList .panel-title { font-size: inherit; line-height: inherit; margin: 0; }
.collectionList .panel-title > a {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  background: transparent;
  position: relative;
  text-align: start;
}
.collectionList .panel-title > a::before {
  content: "";
  width: 5px;
  height: 40px;
  border-radius: 3px;
  background: var(--gold);
  opacity: .25;
  transition: opacity .3s;
  flex-shrink: 0;
}
.collectionList .panel:has(.panel-collapse.in) .panel-title > a::before,
.collectionList .panel.is-open .panel-title > a::before {
  opacity: 1;
}
.collectionList .panel-title > a::after {
  content: "";
  margin-left: auto;
  width: 14px;
  height: 14px;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237A7D8B' stroke-width='2' stroke-linecap='round'><polyline points='9 18 15 12 9 6'/></svg>");
  background-size: contain;
  background-repeat: no-repeat;
  flex-shrink: 0;
  transition: transform .35s;
}
[dir="rtl"] .collectionList .panel-title > a::after {
  margin-left: 0;
  margin-right: auto;
  transform: rotate(180deg);
}
.collectionList .panel:has(.panel-collapse.in) .panel-title > a::after,
.collectionList .panel.is-open .panel-title > a::after {
  transform: rotate(90deg);
}
[dir="rtl"] .collectionList .panel:has(.panel-collapse.in) .panel-title > a::after,
[dir="rtl"] .collectionList .panel.is-open .panel-title > a::after {
  transform: rotate(90deg);
}
.collectionList .panel-title > a > .panel-title-text { flex: 1; }
.collectionList .panel-title > a > .panel-title-count {
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-soft);
  padding: 5px 14px;
  border-radius: 16px;
}
.collectionList .panel-body {
  padding: 0 24px 16px 66px;
  border-top: 1px solid rgba(27,42,74,.04);
}
[dir="rtl"] .collectionList .panel-body { padding: 0 66px 16px 24px; }

.collectionList .panel-body table {
  width: 100%;
  border: none;
  background: transparent;
}
.collectionList .panel-body table thead { display: none; }
.collectionList .panel-body table tr { display: block; }
.collectionList .panel-body table td { display: block; border: none; padding: 0; }

/* total info row */
.collectionListSearch { margin: 0 0 20px; }
.collectionListTotalInfo {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--text-light);
  display: inline-block;
  margin-left: 6px;
}
.bnrm-list-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0 12px;
}
.bnrm-list-tools__title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: .04em;
}
.bnrm-list-tools__downloads {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--text-light);
}
.bnrm-list-tools__downloads a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(27,75,107,.05);
  color: var(--teal);
  text-decoration: none;
  transition: background .2s, color .2s;
}
.bnrm-list-tools__downloads a:hover {
  background: var(--gold);
  color: #fff;
}

/* ============================================================
   FOOTER
   ============================================================ */
body.collection > footer,
body.portal > footer {
  background: var(--navy);
  color: rgba(255,255,255,.7);
  position: relative;
  overflow: hidden;
  margin-top: 60px;
}
body.collection > footer::before,
body.portal > footer::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'><polygon points='40,8 48,32 72,40 48,48 40,72 32,48 8,40 32,32' fill='none' stroke='%23ffffff' stroke-width='.4' opacity='.18'/></svg>");
  background-size: 80px 80px;
  opacity: .35;
  pointer-events: none;
}
body.collection > footer .collectionSignature,
body.portal > footer .collectionSignature {
  background: transparent;
  position: relative;
  z-index: 1;
  padding: 56px 32px 32px;
}
body.collection > footer .collectionSignature .container,
body.portal > footer .collectionSignature .container {
  max-width: 1280px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 40px;
  width: 100%;
}
body.collection > footer .collectionSignature .container > div,
body.portal > footer .collectionSignature .container > div {
  width: auto;
  float: none;
  padding: 0;
}
body.collection > footer .logo-svg-footer,
body.portal > footer .logo-svg-footer {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 16px;
  color: #fff;
  background: none !important;
  width: auto !important;
  height: auto !important;
}
body.collection > footer .logo-svg-footer::before,
body.portal > footer .logo-svg-footer::before {
  content: "";
  width: 28px;
  height: 28px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'><polygon points='18,2 21,12 31,5 24,15 34,18 24,21 31,31 21,24 18,34 15,24 5,31 12,21 2,18 12,15 5,5 15,12' fill='rgba(255,255,255,.3)'/><circle cx='18' cy='18' r='5' fill='%23C4841D'/></svg>") center / contain no-repeat;
}
body.collection > footer strong,
body.portal > footer strong { color: #fff; font-family: var(--font-heading); }
body.collection > footer .partners,
body.portal > footer .partners {
  background: transparent;
  padding: 16px 32px;
  position: relative;
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  text-align: center;
}
body.collection > footer .partners img,
body.portal > footer .partners img { max-height: 38px; margin: 4px 12px; opacity: .85; }
body.collection > footer .collectionLicense,
body.portal > footer .collectionLicense {
  position: relative;
  z-index: 1;
  padding: 20px 32px 32px;
  text-align: center;
}
body.collection > footer .collectionLicense a,
body.portal > footer .collectionLicense a {
  color: rgba(255,255,255,.6);
  font-family: var(--font-heading);
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
body.collection > footer .collectionLicense a:hover,
body.portal > footer .collectionLicense a:hover { color: var(--gold); }

/* ============================================================
   "BREAD" / level menu trim-down on inner pages
   ============================================================ */
section.bread {
  display: none;
}

/* ============================================================
   ABOUT PAGE — basic typography
   ============================================================ */
body.collection .pageContent {
  max-width: 860px;
  margin: 40px auto;
  padding: 0 24px;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
}
body.collection .pageContent h1,
body.collection .pageContent h2 {
  font-family: var(--font-heading);
  color: var(--navy);
}

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
.bnrm-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity .8s cubic-bezier(.4,0,.2,1), transform .8s cubic-bezier(.4,0,.2,1);
}
.bnrm-reveal.is-visible {
  opacity: 1;
  transform: none;
}
.bnrm-reveal--left  { transform: translateX(40px); }
.bnrm-reveal--right { transform: translateX(-40px); }
.bnrm-reveal--scale { transform: scale(.92); }
.bnrm-reveal.is-visible.bnrm-reveal--left,
.bnrm-reveal.is-visible.bnrm-reveal--right,
.bnrm-reveal.is-visible.bnrm-reveal--scale { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .bnrm-reveal,
  .bnrm-reveal--left,
  .bnrm-reveal--right,
  .bnrm-reveal--scale { opacity: 1; transform: none; transition: none; }
  .bnrm-hero__title.is-animating,
  .bnrm-hero__sub.is-animating,
  .bnrm-hero__badge.is-animating { animation: none; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .bnrm-hero__inner { grid-template-columns: 1fr; gap: 48px; }
  .bnrm-hero__arch-wrap { order: -1; }
  .bnrm-hero__title { font-size: 44px; }
  .bnrm-news-grid { grid-template-columns: repeat(2, 1fr); }
  .bnrm-resources { grid-template-columns: repeat(2, 1fr); }
  .bnrm-counters__grid { grid-template-columns: repeat(2, 1fr); gap: 36px; }
  body.collection > footer .collectionSignature .container,
  body.portal > footer .collectionSignature .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .bnrm-hero { padding: 60px 20px 80px; }
  .bnrm-hero__title { font-size: 36px; }
  .bnrm-hero__sub { font-size: 15px; }
  .bnrm-section { padding: 56px 20px 40px; }
  .bnrm-entry-grid { grid-template-columns: 1fr; }
  .bnrm-news-grid { grid-template-columns: 1fr; }
  .bnrm-resources { grid-template-columns: 1fr; }
  .bnrm-counters__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .bnrm-counter__num { font-size: 34px; }
  .bnrm-network__star { width: 320px; height: 320px; }
  .bnrm-network__node { width: 80px; height: 64px; }
  .bnrm-network__node-label { font-size: 9.5px; }
  .bnrm-page-banner { padding: 90px 20px 32px; }
  .bnrm-page-banner__title { font-size: 30px; }
  .bnrm-page-banner__star { display: none; }
  .bnrm-list-wrap { padding: 24px 20px 60px; }
  .bnrm-tabs__tab { padding: 12px 16px; font-size: 13px; }
  body.collection > header .topFunction,
  body.portal > header .topFunction { height: 60px; }
  body.collection > header .brandLogo .bnrm-wordmark__sub,
  body.portal > header .brandLogo .bnrm-wordmark__sub { display: none; }
  body.collection > footer .collectionSignature .container,
  body.portal > footer .collectionSignature .container { grid-template-columns: 1fr; gap: 28px; }
  .bnrm-search { flex-direction: column; }
  .bnrm-search__select { border-left: none; border-top: 1px solid var(--line); }
  .bnrm-search__btn { padding: 14px; justify-content: center; }
}

/* ============================================================
   RTL fixes
   ============================================================ */
[dir="rtl"] .bnrm-hero__sub,
[dir="rtl"] .bnrm-hero__title { text-align: right; }
[dir="rtl"] .bnrm-section__title,
[dir="rtl"] .bnrm-section__sub { text-align: right; }
[dir="rtl"] .bnrm-entry-card__arrow svg { transform: scaleX(-1); }
[dir="rtl"] .bnrm-link-arrow svg,
[dir="rtl"] .bnrm-news-card__more svg,
[dir="rtl"] .bnrm-btn svg { transform: scaleX(-1); }
[dir="rtl"] .bnrm-letter-block__head { text-align: right; }
