/* RTN v1.8: identity strip and colour harmony; original layouts and logos retained. */
body.rtn-identity-v18 {
  --rtn-v18-bg: #f6f6f0;
  --rtn-v18-surface: #ffffff;
  --rtn-v18-text: #132b2a;
  --rtn-v18-green: #164b3d;
  --rtn-v18-green-soft: #eaf1eb;
  --rtn-v18-orange: #b74e27;
  --rtn-v18-border: #d9e2dc;
  color: var(--rtn-v18-text);
  background-color: var(--rtn-v18-bg);
}

/* A separate row; no logo, navigation-row dimensions or type metrics change. */
.rtn-identity-v18 .rtn-institutional-strip {
  width: 100%;
  color: #f7faf7;
  background: var(--rtn-v18-green);
  font: 500 12px/1.2 Arial, Helvetica, sans-serif;
  letter-spacing: .025em;
  text-align: left;
}
.rtn-identity-v18 .rtn-institutional-strip > .rtn-identity-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 36px;
  padding-top: 6px;
  padding-bottom: 6px;
  box-sizing: border-box;
}
.rtn-identity-v18 .rtn-institutional-strip > .container {
  padding-left: 17px;
  padding-right: 17px;
}
.rtn-identity-v18 .rtn-niger-flag {
  display: block;
  flex: 0 0 28px;
  width: 28px;
  height: 24px;
  border: 1px solid rgba(255,255,255,.35);
  box-sizing: border-box;
}
.rtn-identity-v18 .rtn-institutional-name {
  font: inherit;
  color: inherit;
  text-transform: none;
  overflow-wrap: anywhere;
}

/* Existing fixed headers use CSS body offsets, not automatic height measurement. */
body.rtn-identity-v18--portal,
body.rtn-identity-v18--institutionnel { padding-top: 124px; }
.rtn-identity-v18--portal > header,
.rtn-identity-v18--institutionnel > header {
  background-color: var(--rtn-v18-surface);
  box-shadow: 0 4px 18px rgba(19,43,42,.06);
}
.rtn-identity-v18--institutionnel > header.bg-light {
  background-color: var(--rtn-v18-surface) !important;
}
.rtn-identity-v18--portal > header.hide,
.rtn-identity-v18--institutionnel > header.hide { transform: translateY(-100%); }
.rtn-identity-v18--portal > header .menu > li > a,
.rtn-identity-v18--institutionnel > header .menu > li > a {
  color: var(--rtn-v18-green);
}
.rtn-identity-v18--portal > header .menu > li > a:hover,
.rtn-identity-v18--institutionnel > header .menu > li > a:hover {
  color: var(--rtn-v18-orange);
}
.rtn-identity-v18--portal > header .sub-menu li a:hover,
.rtn-identity-v18--institutionnel > header .sub-menu li a:hover {
  background-color: var(--rtn-v18-green-soft);
  color: var(--rtn-v18-green);
}
.rtn-identity-v18--portal > header .live {
  background-color: var(--rtn-v18-orange);
  color: #fff;
}
.rtn-identity-v18--portal > header .live i { color: #fff; }
.rtn-identity-v18--portal > header .live:hover { background-color: #973d1c; }
.rtn-identity-v18--portal .main-slider .slider-card { border-radius: 10px; }
.rtn-identity-v18--portal .live-slider-content {
  background-image: none;
  background-color: var(--rtn-v18-green);
}
.rtn-identity-v18--portal .store-item-1 { background-color: var(--rtn-v18-green-soft); }
.rtn-identity-v18--portal .store-item-2 { background-color: #f6ece4; }
.rtn-identity-v18--portal .store-item-1 .app-title,
.rtn-identity-v18--portal .store-item-2 .app-title,
.rtn-identity-v18--institutionnel .head-title {
  color: var(--rtn-v18-green);
}
.rtn-identity-v18--institutionnel .news-img { border-radius: 10px; }
.rtn-identity-v18--institutionnel .news-title:hover { color: var(--rtn-v18-orange); }

/* News keeps its existing header row, logo dimensions, columns and typography. */
.rtn-identity-v18--news .rtn-institutional-strip > .rtn-identity-inner {
  width: calc(100% - 50px);
  max-width: 1126px;
  margin-right: auto;
  margin-left: auto;
}
.rtn-identity-v18--news #masthead { background-color: var(--rtn-v18-surface); }
.rtn-identity-v18--news .javapaper-nav .current-menu-item > a,
.rtn-identity-v18--news .javapaper-nav .current-menu-ancestor > a,
.rtn-identity-v18--news .javapaper-nav .current_page_item > a,
.rtn-identity-v18--news .javapaper-nav .current_page_ancestor > a {
  color: var(--rtn-v18-orange);
}
.rtn-identity-v18--news .javapaper-nav li a:hover {
  background-color: var(--rtn-v18-green-soft);
  color: var(--rtn-v18-green);
}
.rtn-identity-v18--news .slick-dots button {
  background-color: var(--rtn-v18-green);
  color: #fff;
}
.rtn-identity-v18--news .slick-dots .slick-active button {
  background-color: var(--rtn-v18-surface);
  color: var(--rtn-v18-green);
}
.rtn-identity-v18--news .slick-dots button:hover {
  background-color: var(--rtn-v18-orange);
  color: #fff;
}
.rtn-identity-v18 :where(a,button,input,select,textarea):focus-visible {
  outline: 3px solid var(--rtn-v18-orange);
  outline-offset: 3px;
}
@media screen and (max-width: 1199px) {
  body.rtn-identity-v18--institutionnel { padding-top: 116px; }
}
@media screen and (max-width: 992px) {
  .rtn-identity-v18--news .rtn-institutional-strip > .rtn-identity-inner {
    width: calc(100% - 20px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .rtn-identity-v18--portal > header,
  .rtn-identity-v18--institutionnel > header { transition: none; }
}
