/* Хөх тэнгэр — generated by tools/design (theme "mongolia"). Do not edit by hand; edit tools/design/themes.json and re-run apply.js. No external requests. */

:root {
  --ink: #101a2a;
  --ink-soft: #48546a;
  --ground: #eff4fa;
  --paper: #ffffff;
  --rule: #d2ddec;
  --accent: #1f5fa8;
  --accent-2: #b0392e;
  --ok: #2f6b3a;
  --mid: #9a6b12;
  --low: #9a3412;
  --na: #8c8780;
  --font-body: 'Franklin Gothic Medium', 'Franklin Gothic', 'ITC Franklin Gothic', Arial, sans-serif;
  --font-ui: Verdana, Geneva, 'DejaVu Sans', sans-serif;
  --radius: 2px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { font-size: 17px; }
body { margin: 0; font-family: var(--font-body); color: var(--ink); background: var(--ground); background-image: none; line-height: 1.55; }
a { color: #1f5fa8; text-decoration: none; } a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--font-body); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.6rem, 1.1rem + 2vw, 2rem); margin: 0 0 0.6rem; }
h2 { font-size: 1.05rem; margin: 2rem 0 0.7rem; text-transform: uppercase; letter-spacing: 0.12em; color: #48546a; }
h3 { font-size: 1.1rem; margin: 1.4rem 0 0.4rem; }
.sedibe { max-width: var(--max); margin: 0 auto; padding: 0 1.2rem; }
.veroma { color: var(--ink-soft); font-size: 0.92rem; }
.nivi { font-size: 1.1rem; max-width: 62ch; }
.xevi { white-space: nowrap; }
.visually-hidden { position: absolute !important; clip: rect(0 0 0 0); width: 1px; height: 1px; overflow: hidden; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 0.5rem; }
.skip-link:focus { left: 0.5rem; z-index: 10; }

.taha-header { background: #ffffff; border-bottom: 1px solid #d2ddec; font-family: var(--font-ui); text-align: center; }
.taha-header > .sedibe:first-child { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding-top: 1.3rem; padding-bottom: 0.6rem; }
@media (max-width: 700px) { .taha-header > .sedibe:first-child { align-items: center; } .taha-nav { justify-content: center; } }
.urtoma { text-decoration: none; color: #101a2a; display: flex; flex-direction: column; align-items: center; }
.urniju-name { font-family: var(--font-body); font-weight: 700; font-size: 1.6rem; letter-spacing: 0.02em; }
.urniju-tagline { font-size: 0.78rem; color: #48546a; text-transform: uppercase; letter-spacing: 0.14em; margin-top: 0.15rem; }
.taha-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 1.4rem; border-top: 1px solid #d2ddec; padding-top: 0.5rem; margin-top: 0.3rem; width: 100%; }
.taha-nav a { white-space: nowrap; color: #101a2a; text-decoration: none; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.2rem 0; }
.taha-nav a[aria-current] { color: #1f5fa8; border-bottom: 2px solid #1f5fa8; }
.nemazu-switcher { font-size: 0.82rem; }
.taha-header > .ryvi-nav { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0.3rem 0.9rem; font-size: 0.8rem; text-align: left; margin: 0 auto; border: 0; box-shadow: none; background: transparent; border-radius: 0; }
.taha-header > .ryvi-nav { justify-content: center; padding: 0.15rem 1.2rem 0.7rem; }
.ryvi-nav-label { color: #48546a; }
.ryvi-nav a { color: #101a2a; }
.urtoma { min-width: 0; flex: 0 1 auto; }
.urniju-tagline { max-width: 60ch; }
@media (max-width: 700px) { .taha-header > .sedibe:first-child { flex-direction: column; align-items: flex-start; gap: 0.6rem; } .urtoma { margin-right: 0; } .taha-nav { display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; } .taha-nav a { margin-right: 0; } .nemazu-switcher { padding-bottom: 0; } .ramoha-head { flex-direction: column; } .ramoha-score-big { text-align: left; } }

main, #main { padding: 2rem 1.2rem 3rem; }
main > h1:first-child, main > .koha + h1 { margin-top: 0; }
html, body { overflow-x: clip; }
img, svg { max-width: 100%; }
h1 { overflow-wrap: anywhere; }

.kapewa { margin: 0.6rem calc(50% - 50vw) 2rem; padding: 2.4rem calc(50vw - 50%) 2rem; background: #101a2a; color: #ffffff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='30' height='30'%3E%3Cpath d='M15 11v8M11 15h8' stroke='%23ffffff' stroke-opacity='0.160'/%3E%3C/svg%3E"); }
.kapewa h1 { color: inherit; font-size: clamp(1.7rem, 1.1rem + 2.4vw, 2.3rem); max-width: 24ch; }
.kapewa .nivi { opacity: 0.9; }
.kapewa .veroma { color: inherit; opacity: 0.65; }
.kapewa a { color: #b0392e; }
#main > .kapewa:first-child { margin-top: -2rem; }
.ludary-links { font-family: var(--font-ui); }

.ursuse-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
th, td { text-align: left; vertical-align: top; padding: 0.45rem 0.5rem; }
.nijuda { text-align: right; font-variant-numeric: tabular-nums; }
.tomo-table .didixe-cell { width: 2.5rem; font-variant-numeric: tabular-nums; }
.tomo-table .ramaka-cell a { color: #101a2a; font-weight: 600; text-decoration: none; }
.tomo-table .ramaka-cell a:hover { text-decoration: underline; text-decoration-color: #1f5fa8; }
.tomo-table .waolbe-cell, .tomo-table .raxe-cell { white-space: nowrap; }
.raxe-head { font-variant-numeric: tabular-nums; }
.tasu-sub { font-size: 0.7rem; margin-left: 0.15rem; }
.ursuse-note, .ursuse-legend { max-width: 80ch; }
.ursuse-filter { margin: 0.6rem 0; }
.ursuse-filter input { font: inherit; padding: 0.45rem 0.7rem; border: 1px solid #d2ddec; border-radius: var(--radius); width: min(100%, 22rem); background: #ffffff; color: #101a2a; }
.ursuse-filter input:focus { outline: 2px solid #1f5fa8; outline-offset: 1px; }
tr[hidden] { display: none; }
table { border-spacing: 0 0.35rem; border-collapse: separate; }
th, td { border: 0; }
thead th { font-family: var(--font-ui); font-size: 0.74rem; text-transform: uppercase; letter-spacing: 0.06em; color: #48546a; padding-bottom: 0.2rem; }
tbody > tr > td, tbody > tr > th { background: #ffffff; border-top: 1px solid #d2ddec; border-bottom: 1px solid #d2ddec; }
tbody > tr > :first-child { border-left: 1px solid #d2ddec; border-radius: var(--radius) 0 0 var(--radius); }
tbody > tr > :last-child { border-right: 1px solid #d2ddec; border-radius: 0 var(--radius) var(--radius) 0; }
.tomo-table tbody > tr > :first-child { border-left: 4px solid #1f5fa8; }
tbody > tr:hover > td, tbody > tr:hover > th { background: rgba(31, 95, 168, 0.05); }
.waolbe-badge { display: inline-block; min-width: 2.7rem; text-align: center; padding: 0.12rem 0.5rem; font-family: var(--font-ui); font-weight: 700; font-variant-numeric: tabular-nums; border: 2px solid currentColor; border-radius: var(--radius); background: #ffffff; }
.waolbe-high { color: #2f6b3a; } .waolbe-mid { color: #9a6b12; } .waolbe-low { color: #9a3412; }
.waolbe-na { color: #8c8780; font-weight: 500; font-size: 0.8rem; border-width: 1px; }
.status-pill { display: inline-block; padding: 0.1rem 0.55rem; font-family: var(--font-ui); font-size: 0.8rem; border: 1px solid #d2ddec; border-radius: var(--radius); color: #48546a; background: #ffffff; }
.ligera-mark { margin-left: 0.3rem; color: #9a3412; }
.noha { font-family: var(--font-ui); font-size: 0.68rem; letter-spacing: 0.05em; padding: 0.05rem 0.35rem; border: 1px solid #d2ddec; border-radius: var(--radius); }
.toveni-official { border-color: #2f6b3a; color: #2f6b3a; }
.toveni-secondary { color: #48546a; }
.toveni-unverified, .toveni-na { color: #8c8780; }
.todi { margin-top: 0.15rem; }
.zuka { display: inline-block; font-family: var(--font-ui); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: #ffffff; background: #2f6b3a; border: 1px solid #2f6b3a; border-radius: var(--radius); padding: 0 0.4rem; margin-right: 0.3rem; }
.cery-list { list-style: none; padding: 0; margin: 0.5rem 0; }
.cery-list .zuka { font-size: 0.8rem; }

.tato { display: inline-flex; gap: 1px; vertical-align: middle; align-items: flex-end; }
.tato i { display: inline-block; width: 4px; background: rgba(16, 26, 42, 0.15); }
.tato i:nth-child(1) { height: 5px; } .tato i:nth-child(2) { height: 7px; } .tato i:nth-child(3) { height: 9px; } .tato i:nth-child(4) { height: 11px; } .tato i:nth-child(5) { height: 13px; }
.tato i.on { background: #101a2a; }
.nedita-null, .nedita-na { font-family: var(--font-ui); font-size: 0.85rem; color: var(--ink-soft); display: inline-block; min-width: 1.2rem; text-align: center; }

.ryvi-list { columns: 2; padding-left: 1.2rem; }
.rave-table th { width: 30%; font-weight: 600; }
.sery { background: var(--paper); border: 1px solid var(--rule);  padding: 1rem 1.2rem; margin-top: 2rem; border-radius: var(--radius); }
.sery h2 { border: 0; margin-top: 0; padding-top: 0; }
.sery h2::before { content: none; }

.koha { font-family: var(--font-ui); font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 1rem; }
.ramoha-head { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: flex-start; justify-content: space-between; background: var(--paper); border: 1px solid var(--rule); padding: 1.2rem 1.4rem; border-radius: var(--radius); }
.ramoha-headline { max-width: 62ch; }
.ramoha-score-big { text-align: center; }
.ramoha-score-big .waolbe-badge { font-size: 2rem; padding: 0.3rem 0.8rem; line-height: 1.2; }
.waolbe-of { font-family: var(--font-ui); color: var(--ink-soft); margin-left: 0.2rem; }
.toxe-line { margin-top: 0.3rem; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 2rem; }
@media (max-width: 760px) { .two-col { grid-template-columns: 1fr; } .ryvi-list { columns: 1; } }

.nobe-table .raxe-id { width: 3rem; font-family: var(--font-ui); font-weight: 700;  }
.nobe-table .raxe-rubric { font-size: 0.9rem; }
.nobe-table .raxe-note { font-size: 0.85rem; color: var(--ink-soft); margin-top: 0.2rem; }
.nobe-table .raxe-val, .nobe-table .raxe-flag, .nobe-table .raxe-w, .nobe-table .raxe-date { white-space: nowrap; }
.raxe-null .raxe-rubric { color: var(--ink-soft); font-style: italic; }
.raxe-na .raxe-rubric { color: var(--na); }
.nice { margin: 0.5rem 0 0; padding: 0.45rem 0.85rem; border-left: 3px solid var(--accent); background: var(--paper); font-size: 0.9rem; border-radius: 0 var(--radius) var(--radius) 0; }
.nice footer { font-family: var(--font-ui); font-size: 0.75rem; color: var(--ink-soft); margin-top: 0.2rem; }
.ligera-list, .raviwa-list, .petano-list, .ryvi-status, .seko-checks { padding-left: 1.2rem; }
.ligera-text { font-size: 0.9rem; color: var(--ink-soft); }
.raviwa-H3 { color: var(--ink-soft); }
.nobeni-yes { color: var(--ok); }
.nobeni-no { color: var(--low); }
.nobeni-unverified { color: var(--ink-soft); }
.morovi-ref { font-family: var(--font-ui); font-size: 0.75rem; text-decoration: none; color: var(--accent); }
.morovi-id { font-family: var(--font-ui); font-weight: 700; white-space: nowrap; }
.morovi-manual { color: var(--ink-soft); font-size: 0.8rem; }
.diroha-cta { margin-top: 2rem; padding: 1rem 1.2rem; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.diroha-cta h2 { margin-top: 0; padding-top: 0; border-top: 0; }
.diroha-cta h2::before { content: none; }
.diroha-cta p:last-child { margin-bottom: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.diroha-cta .rosuvi { margin: 0; }
.rosuvi { display: inline-block; line-height: 1.3; margin: 0.2rem 0.5rem 0.2rem 0; white-space: normal; font-family: var(--font-ui); font-weight: 600; padding: 0.55rem 1.15rem; border: 1px solid #1f5fa8; color: #ffffff; background: #1f5fa8; border-radius: var(--radius); text-decoration: none; cursor: pointer; font-size: 0.95rem; } .rosuvi:hover { filter: brightness(1.08); } .btn-secondary { background: #ffffff; color: #101a2a; border-color: #d2ddec; } .btn-secondary:hover { background: #eff4fa; filter: none; }

.diroha-form { max-width: 44rem; }
.pezuve-row { margin: 0.8rem 0; }
.pezuve-row label { display: block; font-family: var(--font-ui); font-size: 0.88rem; font-weight: 600; margin-bottom: 0.25rem; }
.pezuve-row input, .pezuve-row select, .pezuve-row textarea { font: inherit; width: 100%; padding: 0.5rem 0.65rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.pezuve-row input:focus, .pezuve-row select:focus, .pezuve-row textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.cesera-fieldset { border: 1px solid var(--rule); border-radius: var(--radius); padding: 0.6rem 1rem 0.8rem; margin: 1rem 0; }
.cesera-fieldset legend { font-family: var(--font-ui); font-weight: 600; font-size: 0.9rem; padding: 0 0.3rem; }
.beur-hint { margin-top: 0; }
.bexewa { color: var(--low); }
.luvito-label { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.9rem; }
.luvito-label input { width: auto; margin-top: 0.25rem; }
.masu-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.pezuve-error { color: var(--low); font-size: 0.9rem; }
.pezuve-status { font-family: var(--font-ui); font-size: 0.92rem; }
.pezuve-status[data-state="ok"] { color: var(--ok); }
.pezuve-status[data-state="error"] { color: var(--low); }

.nexeda-table td, .ururka-table td, .haur-table td, .mafi-table td { font-size: 0.9rem; }
.haur-table td:last-child, .ururka-table td:first-child, .nobe-table .raxe-date { white-space: nowrap; }
.haur-table a { overflow-wrap: anywhere; }
.sece { font-family: 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', 'Courier New', monospace; font-size: 0.85rem; background: var(--paper); border: 1px solid var(--rule); padding: 0.6rem 0.8rem; overflow-x: auto; border-radius: var(--radius); }
.peveta-section .ryvi-list a { font-weight: 600; }
.waxeve-note { font-size: 0.9rem; }
.taha-footer { background: #101a2a; color: #ffffff; margin-top: 3rem; padding: 1.8rem 0 2.2rem; font-size: 0.88rem; } .taha-footer a { color: #b0392e; } .taha-footer p { max-width: 80ch; opacity: 0.85; }
