/* Modern header/footer for old-site pages (content/site-chrome.php). Hides the old theme header/footer on those pages. */
body.mrf-chrome-on { zoom: 1 !important; background: #f4f7f9; }
body.mrf-chrome-on .super_container > .header, body.mrf-chrome-on .header, body.mrf-chrome-on .page_menu,
body.mrf-chrome-on .footer, body.mrf-chrome-on .copyright, body.mrf-chrome-on .newsletter,
body.mrf-chrome-on .top_bar, body.mrf-chrome-on .header_main, body.mrf-chrome-on .main_nav { display: none !important; } /* the old markup is mis-nested: these end up outside <header> */
.mrf-chrome { --c-ink: #0f172a; --c-muted: #64748b; --c-line: #e3e8f0; --c-brand: #0b6b78; --c-brand-soft: #e6f4f5; font-family: "Inter", "Rubik", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: var(--c-ink); }
.mrf-chrome *, .mrf-chrome *::before, .mrf-chrome *::after { box-sizing: border-box; }
.mrf-chrome a { color: inherit; text-decoration: none; }
.mrf-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.mrf-top { background: #0b2534; color: #cbd5e1; font-size: 13px; }
.mrf-top .mrf-wrap { display: flex; gap: 18px; align-items: center; height: 36px; overflow-x: auto; white-space: nowrap; }
.mrf-top i { color: #5eead4; margin-right: 4px; }
.mrf-top a { color: #fff; }
.mrf-top .mrf-sp { margin-left: auto; }
.mrf-hdr { position: sticky; top: 0; z-index: 1035; background: rgba(255,255,255,.94); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--c-line); }
.mrf-hdr .mrf-wrap { display: flex; align-items: center; gap: 18px; height: 68px; }
.mrf-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -.3px; flex: none; color: var(--c-ink) !important; }
.mrf-logo img { width: 38px; height: 38px; object-fit: contain; }
.mrf-logo small { display: block; font-size: 10.5px; font-weight: 700; color: var(--c-muted); letter-spacing: .4px; }
.mrf-menu { display: flex; gap: 4px; margin-left: 12px; }
.mrf-nav { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: #334155 !important; }
.mrf-nav:hover { background: #f1f5f9; }
.mrf-nav.on { background: var(--c-brand-soft); color: var(--c-brand) !important; }
.mrf-nav i { font-size: 14px; opacity: .8; }
.mrf-actions { margin-left: auto; display: flex; gap: 6px; }
.mrf-btn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--c-line); font-weight: 600; font-size: 14px; background: #fff; }
.mrf-btn:hover { border-color: var(--c-brand); }
.mrf-cart b { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--c-brand); color: #fff; font-size: 11px; display: flex; align-items: center; justify-content: center; }
.mrf-foot { background: #fff; border-top: 1px solid var(--c-line); padding: 36px 0 20px; font-size: 14px; }
.mrf-cart b[hidden] { display: none; }
.mrf-cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 24px; }
.mrf-foot h4 { margin: 0 0 10px; font-size: 14px; font-weight: 700; }
.mrf-foot p { color: var(--c-muted); max-width: 340px; margin: 12px 0 0; }
.mrf-foot .mrf-cols a:not(.mrf-logo) { display: block; color: var(--c-muted); padding: 3px 0; }
.mrf-foot .mrf-cols a:not(.mrf-logo):hover { color: var(--c-brand); }
.mrf-copy { border-top: 1px solid var(--c-line); margin-top: 24px; padding-top: 16px; color: var(--c-muted); font-size: 13px; }
@media (max-width: 900px) {
  .mrf-menu .mrf-nav span { display: none; }
  .mrf-menu .mrf-nav.on span { display: inline; }
  .mrf-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .mrf-hide-sm { display: none; }
  .mrf-hdr .mrf-wrap { flex-wrap: wrap; height: auto; padding-top: 10px; padding-bottom: 8px; gap: 8px; }
  .mrf-menu { order: 3; flex-basis: 100%; margin: 0; overflow-x: auto; }
  .mrf-menu .mrf-nav span { display: inline; }
  .mrf-actions .mrf-btn span { display: none; }
  .mrf-cols { grid-template-columns: 1fr; }
}

/* No wrapping inside menu pills; the menu scrolls sideways on narrow phones. */
.mrf-nav { white-space: nowrap; flex: none; }
.mrf-menu { scrollbar-width: none; }
.mrf-menu::-webkit-scrollbar { display: none; }
@media (max-width: 600px) { .mrf-nav { height: 34px; padding: 0 11px; font-size: 13px; } .mrf-logo { font-size: 17px; } .mrf-logo img { width: 32px; height: 32px; } }
.mrf-foot .mrf-social { display: flex; gap: 8px; margin-top: 12px; }
.mrf-chrome.mrf-foot .mrf-cols .mrf-social a { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0; padding: 0; border-radius: 50%; background: #eef2f7; color: #334155; font-size: 16px; }
.mrf-chrome.mrf-foot .mrf-cols .mrf-social a:hover { background: #2563eb; color: #fff; }

/* Language button and right-to-left (home page, js/home-i18n.js) */
.mrf-chrome .mrf-btn { width: auto; margin: 0; background: #fff; color: #334155; font-family: inherit; cursor: pointer; }
.mrf-chrome .mrf-lang span { display: inline; }
.mrf-lang { font: inherit; }
.mrf-lang em { font-style: normal; }
.mrf-top[dir="rtl"] .mrf-sp { margin-left: 0; margin-right: auto; }
.mrf-top[dir="rtl"] i { margin-right: 0; margin-left: 4px; }
.mrf-hdr[dir="rtl"] .mrf-menu { margin-left: 0; margin-right: 12px; }
.mrf-hdr[dir="rtl"] .mrf-actions { margin-left: 0; margin-right: auto; }
@media (max-width: 600px) { .mrf-hdr[dir="rtl"] .mrf-menu { margin-right: 0; } }
html[dir="rtl"] .mrf-top .mrf-sp { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .mrf-top i { margin-right: 0; margin-left: 4px; }
html[dir="rtl"] .mrf-hdr .mrf-menu { margin-left: 0; margin-right: 12px; }
html[dir="rtl"] .mrf-hdr .mrf-actions { margin-left: 0; margin-right: auto; }
@media (max-width: 600px) { html[dir="rtl"] .mrf-hdr .mrf-menu { margin-right: 0; } }
.mrf-avatar { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; flex: none; }
