/* IBS гэрэл/бараан горимын шилжүүлэгч + бараан горимын нөхөлт (2026-09-19) */
.ibs-theme-btn{display:inline-grid;place-items:center;width:40px;height:40px;flex:none;padding:0;border-radius:4px;border:1px solid var(--c-line);background:transparent;color:var(--c-text-primary);cursor:pointer;transition:background-color var(--t-fast,.15s) ease-out,border-color var(--t-fast,.15s) ease-out}
.ibs-theme-btn:hover{background:var(--c-bg-hover);border-color:var(--c-line-strong)}
.ibs-theme-btn:focus-visible{outline:2px solid var(--c-focus-outer);outline-offset:2px}
.ibs-theme-btn svg{display:block}
/* Туузан дахь товч зөвхөн утсан дээр: зүүн талд, цэсний товчтой тэгш хэмтэй */
.ibs-theme-btn--band{display:none}
@media (max-width:959px){
  .ibs-theme-btn--tabs{display:none}
  .ibs-theme-btn--band{display:inline-grid;position:absolute;left:var(--sp-6);top:50%;transform:translateY(-50%);width:44px;height:44px}
}

/* ── Бараан горим: нүүрний hero болон зарын карт (чулуун дэвсгэрийн бараан хувилбар) ── */
:root[data-theme=dark] section[style*="--c-bg-inverse"]{background:#18231F!important;color:#F6F3EC!important}
:root[data-theme=dark] section[style*="--c-bg-inverse"]>[aria-hidden]{background-image:linear-gradient(to right,rgba(246,243,236,.05) 1px,transparent 1px),linear-gradient(to bottom,rgba(246,243,236,.05) 1px,transparent 1px)!important}
:root[data-theme=dark] section[style*="--c-bg-inverse"] .t-label[style*="--g-brass-300"]{color:#9CC4B7!important}
:root[data-theme=dark] section[style*="--c-bg-inverse"] h1{color:#F6F3EC}
:root[data-theme=dark] section[style*="--c-bg-inverse"] [style*="255, 255, 255"],:root[data-theme=dark] section[style*="--c-bg-inverse"] [style*="255,255,255"]{color:#D2CCBF!important}
:root[data-theme=dark] section[style*="--c-bg-inverse"] strong{color:#F6F3EC!important}
:root[data-theme=dark] section[style*="--c-bg-inverse"] .btn-lg{background:#C8603B!important;color:#FFFFFF!important}
:root[data-theme=dark] section[style*="--c-bg-inverse"] .btn-lg:hover{background:#D66E48!important}
:root[data-theme=dark] section[style*="--c-bg-inverse"] a.t-sm{color:#F6F3EC!important}
:root[data-theme=dark] section[style*="--c-bg-inverse"] .hero-fact{background:#15201C;border-color:#2C3A35;box-shadow:none}
:root[data-theme=dark] section[style*="--c-bg-inverse"] .hero-fact .t-label,:root[data-theme=dark] section[style*="--c-bg-inverse"] .hero-fact [style*="255, 255, 255"],:root[data-theme=dark] section[style*="--c-bg-inverse"] .hero-fact [style*="255,255,255"]{color:#A7A396!important}
:root[data-theme=dark] section[style*="--c-bg-inverse"] .hero-fact-top{color:#F6F3EC}
:root[data-theme=dark] section[style*="--c-bg-inverse"] .hero-fact-rule{background:#27342F}
:root[data-theme=dark] section[style*="--c-bg-inverse"] .hero-fact-big{color:#9CC4B7}
:root[data-theme=dark] section[style*="--c-bg-inverse"] .hero-fact-note{color:#D2CCBF!important}
:root[data-theme=dark] section[style*="--c-bg-inverse"] .hero-fact-link{color:#E0876A}
:root[data-theme=dark] .card-link .media{--c-bg-inverse:#15201C;--c-text-inverse:#A7A396;--g-brass-300:#9CC4B7}
:root[data-theme=dark] .ibs-head__band{box-shadow:inset 0 -1px 0 #27342F}
@media (prefers-color-scheme:dark){
  :root:not([data-theme=light]) section[style*="--c-bg-inverse"]{background:#18231F!important;color:#F6F3EC!important}
  :root:not([data-theme=light]) section[style*="--c-bg-inverse"]>[aria-hidden]{background-image:linear-gradient(to right,rgba(246,243,236,.05) 1px,transparent 1px),linear-gradient(to bottom,rgba(246,243,236,.05) 1px,transparent 1px)!important}
  :root:not([data-theme=light]) section[style*="--c-bg-inverse"] .t-label[style*="--g-brass-300"]{color:#9CC4B7!important}
  :root:not([data-theme=light]) section[style*="--c-bg-inverse"] h1{color:#F6F3EC}
  :root:not([data-theme=light]) section[style*="--c-bg-inverse"] [style*="255, 255, 255"],:root:not([data-theme=light]) section[style*="--c-bg-inverse"] [style*="255,255,255"]{color:#D2CCBF!important}
  :root:not([data-theme=light]) section[style*="--c-bg-inverse"] strong{color:#F6F3EC!important}
  :root:not([data-theme=light]) section[style*="--c-bg-inverse"] .btn-lg{background:#C8603B!important;color:#FFFFFF!important}
  :root:not([data-theme=light]) section[style*="--c-bg-inverse"] .btn-lg:hover{background:#D66E48!important}
  :root:not([data-theme=light]) section[style*="--c-bg-inverse"] a.t-sm{color:#F6F3EC!important}
  :root:not([data-theme=light]) section[style*="--c-bg-inverse"] .hero-fact{background:#15201C;border-color:#2C3A35;box-shadow:none}
  :root:not([data-theme=light]) section[style*="--c-bg-inverse"] .hero-fact .t-label,:root:not([data-theme=light]) section[style*="--c-bg-inverse"] .hero-fact [style*="255, 255, 255"],:root:not([data-theme=light]) section[style*="--c-bg-inverse"] .hero-fact [style*="255,255,255"]{color:#A7A396!important}
  :root:not([data-theme=light]) section[style*="--c-bg-inverse"] .hero-fact-top{color:#F6F3EC}
  :root:not([data-theme=light]) section[style*="--c-bg-inverse"] .hero-fact-rule{background:#27342F}
  :root:not([data-theme=light]) section[style*="--c-bg-inverse"] .hero-fact-big{color:#9CC4B7}
  :root:not([data-theme=light]) section[style*="--c-bg-inverse"] .hero-fact-note{color:#D2CCBF!important}
  :root:not([data-theme=light]) section[style*="--c-bg-inverse"] .hero-fact-link{color:#E0876A}
  :root:not([data-theme=light]) .card-link .media{--c-bg-inverse:#15201C;--c-text-inverse:#A7A396;--g-brass-300:#9CC4B7}
  :root:not([data-theme=light]) .ibs-head__band{box-shadow:inset 0 -1px 0 #27342F}
}
