/* Al Mayan Rev40: intentional bilingual wordmark line breaks and night text contrast. */
/* The English official name must never orphan the word "Company". */
html[lang="en"] .site-nav .navbar-brand .brand-txt,
html[lang="en"] .footer .rev15-company-wordmark {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  text-align: left;
  direction: ltr;
}
html[lang="en"] .site-nav .navbar-brand .brand-name,
html[lang="en"] .site-nav .navbar-brand .brand-tagline {
  display: block;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  letter-spacing: 0 !important;
  text-transform: none;
}
html[lang="en"] .site-nav .navbar-brand .brand-name {
  font-family: 'Manrope', Arial, sans-serif !important;
  font-size: clamp(.97rem, 1.15vw, 1.11rem) !important;
  font-weight: 800 !important;
  line-height: 1.22 !important;
  color: #fff !important;
}
html[lang="en"] .site-nav .navbar-brand .brand-tagline {
  font-family: 'Manrope', Arial, sans-serif !important;
  font-size: clamp(.7rem, .86vw, .82rem) !important;
  font-weight: 650 !important;
  line-height: 1.3 !important;
  color: #ebf4e9 !important;
}
html[lang="en"] .footer .rev15-company-wordmark strong,
html[lang="en"] .footer .rev15-company-wordmark small {
  display: block;
  white-space: nowrap;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
}
html[lang="en"] .footer .rev15-company-wordmark strong {
  font-family: 'Manrope', Arial, sans-serif !important;
  font-weight: 800 !important;
  font-size: clamp(1.1rem, 1.75vw, 1.5rem) !important;
  color: #fff !important;
}
html[lang="en"] .footer .rev15-company-wordmark small {
  font-family: 'Manrope', Arial, sans-serif !important;
  font-size: clamp(.77rem, 1vw, .94rem) !important;
  font-weight: 650 !important;
  color: #eaf6ec !important;
}
/* Fit the name on compact phones without pushing the basket or menu buttons off-screen. */
@media (max-width: 480px) {
  html[lang="en"] .site-nav .navbar-brand { min-width: 0 !important; }
  html[lang="en"] .site-nav .navbar-brand .brand-name { font-size: .86rem !important; }
  html[lang="en"] .site-nav .navbar-brand .brand-tagline { font-size: .65rem !important; }
  html[lang="en"] .footer .rev15-footer-brand-lockup { gap: 9px; }
  html[lang="en"] .footer .rev15-company-wordmark strong { font-size: 1.04rem !important; }
  html[lang="en"] .footer .rev15-company-wordmark small { font-size: .76rem !important; }
}
/* The Rev12 theme deliberately uses a pale body for family cards even in Night mode.
   Rev14/35 incorrectly forced pale text onto it. Match text to the ACTUAL surface. */
html[data-theme="dark"] .sec .cat-card,
html[data-theme="dark"] .sec-cat .cat-card {
  background: #f6f9f4 !important;
  border-color: rgba(17,65,41,.16) !important;
}
html[data-theme="dark"] .sec .cat-card .cat-card__body,
html[data-theme="dark"] .sec-cat .cat-card .cat-card__body {
  background: #f6f9f4 !important;
  color: #1b392b !important;
}
html[data-theme="dark"] .sec .cat-card .cat-card__body :is(h3,h3 span,.cat-card__title),
html[data-theme="dark"] .sec-cat .cat-card .cat-card__body :is(h3,h3 span,.cat-card__title) {
  color: #173d2b !important;
}
html[data-theme="dark"] .sec .cat-card .cat-card__body :is(p,p span,.cat-card__meta,.cat-card__meta span),
html[data-theme="dark"] .sec-cat .cat-card .cat-card__body :is(p,p span,.cat-card__meta,.cat-card__meta span) {
  color: #3f5a4a !important;
}
html[data-theme="dark"] .sec .cat-card .cat-card__meta b,
html[data-theme="dark"] .sec-cat .cat-card .cat-card__meta b {
  color: #1e6948 !important;
}
html[data-theme="dark"] .sec .cat-card :is(.cat-card__go,.cat-card__go i),
html[data-theme="dark"] .sec-cat .cat-card :is(.cat-card__go,.cat-card__go i) {
  color: #1e6145 !important;
}
/* Footer is a dark-green surface in both modes; its copy and icons must stay light. */
html[data-theme="dark"] .footer :is(.footer-brand p,.footer-links a,.footer-bottom,.footer-bottom span),
html[data-theme="dark"] .footer .rev15-company-wordmark small {
  color: #e4f0e6 !important;
  opacity: 1 !important;
}
html[data-theme="dark"] .footer :is(h6,.footer h6,.rev15-company-wordmark strong) {
  color: #ffffff !important;
}
html[data-theme="dark"] .footer :is(.footer-social a,.footer-social a i,.footer-links i) {
  color: #d7eee0 !important;
  opacity: 1 !important;
}
html[data-theme="dark"] .footer .footer-social a {
  background: rgba(255,255,255,.10) !important;
  border-color: rgba(235,250,239,.32) !important;
}
html[data-theme="dark"] .footer .footer-social a:hover {
  background: #28714f !important;
  color: #fff !important;
}
