/* Хосын нийцэл — classic загвар (site.css-ийн хувьсагчдыг ашиглана) */
.mt { padding: 44px 0 72px; }
.mt-wrap { max-width: 920px; }
.mt-h1 { margin-top: 14px; }
.mt-lead { margin-top: 16px; max-width: 640px; }
.mt-note { margin-top: 14px; font-size: 13.5px; line-height: 1.6; color: var(--soft); }
.mt .err { margin: 10px 0 0; font-size: 14px; color: #b3261e; }

/* ---------- Маягт ---------- */
.mt-form { margin-top: 36px; }
.mt-people-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mt-person { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); min-width: 0; }
.mt-person legend { padding: 0 6px; font: 600 18px var(--serif); }
.mt-person legend span { display: inline-grid; place-items: center; width: 24px; height: 24px; margin-right: 6px; border: 1px solid var(--gold); border-radius: 50%; font: 500 13px var(--serif); color: var(--gold); }
.mt-form label { display: block; margin-top: 14px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.mt-form label small { font-weight: 400; color: var(--soft); }
.mt-form input, .mt-form select { display: block; width: 100%; margin-top: 6px; height: 46px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: #fff; color: var(--ink); font: 400 15.5px var(--sans); }
.mt-form input:focus, .mt-form select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31, 26, 23, .08); }
.mt-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mt-bottom { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.mt-get { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); }
.mt-get-h { font: 600 12px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
.mt-get ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; color: var(--muted); }
.mt-get li { display: grid; grid-template-columns: 20px 1fr; }
.mt-get li::before { content: "✓"; color: var(--accent); font-weight: 700; }
.mt-pay { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.mt-pay .mt-mail { margin-top: 0; }
.btn.mt-go { margin-top: 16px; min-height: 50px; font-size: 16px; }
@media (max-width: 760px) {
  .mt-people-form, .mt-bottom { grid-template-columns: 1fr; }
}

/* ---------- Тайлал ---------- */
.mt-top { padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.mt-names { margin-top: 12px; word-break: break-word; }
.mt-names em { font-style: italic; color: var(--accent); }
.mt-dates { margin-top: 12px; font-size: 14px; color: var(--muted); }
.mt-sec { padding: 48px 0 8px; }
.mt-sec + .mt-sec { border-top: 1px solid var(--line); }
.mt-sec .sec-head { margin-bottom: 26px; }
.mt-subh { margin: 34px 0 14px; }

.mt-summary { display: grid; grid-template-columns: 220px 1fr; gap: 36px; align-items: center; }
.mt-gauge { position: relative; width: 210px; height: 210px; }
.mt-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mt-gauge circle { fill: none; stroke-width: 5; }
.mt-gauge .bg { stroke: var(--line); }
.mt-gauge .fg { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transition: stroke-dashoffset 1.6s cubic-bezier(.2,.8,.2,1); }
.mt-go .mt-gauge .fg { stroke-dashoffset: calc(100 - var(--p)); }
.mt-pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.mt-pct b { font: 600 60px var(--serif); }
.mt-pct span { margin: 18px 0 0 2px; font: 500 22px var(--serif); color: var(--soft); }
.mt-verdict { font-size: 24px; }
.mt-vtext { margin-top: 8px; color: var(--muted); }
.mt-scores { width: 100%; margin-top: 18px; border-collapse: collapse; }
.mt-scores th, .mt-scores td { padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.mt-scores th { width: 110px; text-align: left; font-weight: 500; color: var(--muted); }
.mt-scores td:last-child { width: 52px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.mt-scores i { display: block; height: 4px; margin: 0 14px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; }
.mt-scores i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: var(--ink); transition: width 1.4s .3s cubic-bezier(.2,.8,.2,1); }
.mt-go .mt-scores i::after { width: var(--w); }
@media (max-width: 640px) {
  .mt-summary { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 20px; }
  .mt-scores th { text-align: left; }
}

/* төрөлхийн зурхай */
.mt-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.mt-chart { padding: 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); min-width: 0; }
.mt-chart-n { font: 600 22px var(--serif); text-align: center; margin-bottom: 14px; }
.mt-chart.p1 .mt-chart-n { color: var(--gold); }
.mt-chart.p2 .mt-chart-n { color: var(--accent); }
.mt-b3 { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.mt-b3 > div { padding: 14px 4px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.mt-b3 > div + div { border-left: 1px solid var(--line-2); }
.mt-b3 i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #efe7da; font-style: normal; font-size: 19px; }
.mt-b3 small { font: 500 11px var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--soft); }
.mt-b3 b { font: 600 16px var(--serif); }
.mt-b3 em { font-style: normal; font-size: 12px; color: var(--soft); font-variant-numeric: tabular-nums; }
.mt-traits { margin: 16px 0 0; font-size: 14px; line-height: 1.6; }
.mt-traits dt { font-weight: 600; margin-top: 10px; }
.mt-traits dd { margin: 2px 0 0; color: var(--muted); }
.mt-planets { width: 100%; margin-top: 16px; border-collapse: collapse; font-size: 13.5px; }
.mt-planets th { padding: 8px 0; text-align: left; font: 600 11px var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); border-bottom: 1px solid var(--line-2); }
.mt-planets td { padding: 7px 0; border-bottom: 1px solid var(--line); }
.mt-planets td:last-child, .mt-planets th:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
@media (max-width: 760px) { .mt-charts { grid-template-columns: 1fr; } }

.mt-wheel-wrap { margin: 18px 0 0; padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.mt-wheel { display: block; width: 100%; max-width: 420px; margin: 0 auto; }
.mt-wheel .w-o { fill: #f6f0e6; stroke: var(--ink); stroke-width: 1.4; }
.mt-wheel .w-i { fill: #fffdf9; stroke: var(--line-2); stroke-width: .8; }
.mt-wheel .w-c { fill: none; stroke: var(--line-2); stroke-width: .6; stroke-dasharray: 3 3; }
.mt-wheel .w-l { stroke: var(--line-2); stroke-width: .8; }
.mt-wheel .w-s { font-size: 12px; fill: var(--ink); text-anchor: middle; dominant-baseline: central; }
.mt-wheel .w-a { stroke-width: 1; opacity: .7; }
.mt-wheel .w-a.soft { stroke: #2f6db5; } .mt-wheel .w-a.hard { stroke: #b3261e; }
.mt-wheel .w-p circle { fill: #fff; stroke-width: 1.3; }
.mt-wheel .w-p.p1 circle { stroke: var(--gold); } .mt-wheel .w-p.p2 circle { stroke: var(--accent); }
.mt-wheel .w-p text { font-size: 11px; text-anchor: middle; dominant-baseline: central; fill: var(--ink); font-weight: 600; }
.mt-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 16px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.mt-legend .p1 { color: var(--gold); } .mt-legend .p2 { color: var(--accent); } .mt-legend .soft { color: #2f6db5; } .mt-legend .hard { color: #b3261e; }

/* жагсаалт */
.mt-list { border-top: 1px solid var(--line-2); }
.mt-item { padding: 18px 0; border-bottom: 1px solid var(--line); }
.mt-item-h { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.mt-item h4 { margin: 0; font: 600 18px var(--serif); }
.mt-rate { flex: none; color: var(--gold); font-size: 14px; letter-spacing: 1px; }
.mt-rate b { margin-left: 4px; color: var(--ink); font-weight: 600; letter-spacing: 0; }
.mt-item-s { margin-top: 2px; font-size: 13px; color: var(--soft); }
.mt-item p:last-child { margin-top: 6px; font-size: 15px; line-height: 1.7; color: #3a332d; }

.mt-compare { width: 100%; margin-bottom: 26px; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 14.5px; }
.mt-compare th, .mt-compare td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); }
.mt-compare thead th { font: 600 11.5px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); background: #f6f1e8; }
.mt-compare tbody th { font-weight: 600; width: 90px; }
.mt-compare td:last-child, .mt-compare thead th:last-child { text-align: right; font-weight: 600; }
.mt-compare tr:last-child th, .mt-compare tr:last-child td { border-bottom: 0; }
.mt-persons { margin-top: 18px; display: grid; gap: 8px; font-size: 14.5px; color: var(--muted); }
.mt-persons b { color: var(--ink); }

.mt-advice { margin: 0; padding: 0; list-style: none; counter-reset: a; border-top: 1px solid var(--line-2); }
.mt-advice li { counter-increment: a; display: grid; grid-template-columns: 40px 1fr; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 15.5px; line-height: 1.7; }
.mt-advice li::before { content: counter(a, decimal-leading-zero); font: 500 15px var(--serif); color: var(--gold); padding-top: 2px; }

.mt-share { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.mt-cross { margin-top: 18px; font-size: 15px; color: var(--muted); }
@media (max-width: 560px) { .mt-share .btn { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) { .mt-gauge .fg, .mt-scores i::after, .mt-bar i { transition: none; } }

/* Агуулгын цэс */
.mt-toc { position: sticky; top: 0; z-index: 5; display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 8px; padding: 12px 16px; background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); scrollbar-width: none; }
.mt-toc::-webkit-scrollbar { display: none; }
.mt-toc a { flex: none; padding: 7px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13.5px; color: var(--ink); text-decoration: none; white-space: nowrap; transition: border-color .2s, color .2s; }
.mt-toc a:hover { border-color: var(--accent); color: var(--accent); }
.mt-result .mt-sec { scroll-margin-top: 70px; }

/* Оноон зурвас */
.mt-bar { height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; }
.mt-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--gold), var(--accent)); transition: width 1.4s .3s cubic-bezier(.2,.8,.2,1); }
.mt-go .mt-bar i { width: var(--w); }

/* 7 салбар */
.mt-areas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.mt-area { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.mt-area-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.mt-area-i { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, var(--gold) 12%, transparent); font-size: 17px; }
.mt-area-h h3 { flex: 1; font: 600 17px var(--serif); margin: 0; }
.mt-area-h b { font: 600 18px var(--serif); color: var(--accent); font-variant-numeric: tabular-nums; }
.mt-area p { margin: 12px 0 0; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.mt-area:last-child:nth-child(odd) { grid-column: 1 / -1; }

/* Хүчтэй тал / сорилт */
.mt-pc { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mt-pc-col { padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); border-top: 3px solid #2f6db5; }
.mt-pc-col.hard { border-top-color: #b3261e; }
.mt-pc-col h3 { margin: 0 0 6px; font-size: 18px; }
.mt-pc-col.good h3 { color: #2f6db5; } .mt-pc-col.hard h3 { color: #b3261e; }
.mt-pc-col ul { list-style: none; margin: 0; padding: 0; }
.mt-pc-col li { padding: 12px 0; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.mt-pc-col li:first-child { border-top: 0; }
.mt-pc-col li b { display: block; margin-bottom: 3px; color: var(--ink); font-weight: 600; }
.mt-pc-col li b span { color: var(--soft); }

/* Махбодын тэнцвэр */
.mt-el { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: color-mix(in srgb, var(--gold) 7%, transparent); }
.mt-el-h { margin: 0 0 10px; font-size: 13.5px; color: var(--muted); }
.mt-el-h b { color: var(--ink); }
.mt-el-row { display: grid; grid-template-columns: 82px 1fr 40px; align-items: center; gap: 10px; margin: 6px 0; font-size: 13.5px; }
.mt-el-row em { font-style: normal; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.mt-el-row.el-fire .mt-bar i { background: #d9643a; } .mt-el-row.el-earth .mt-bar i { background: #6f8f4e; }
.mt-el-row.el-air .mt-bar i { background: #6aa3c9; } .mt-el-row.el-water .mt-bar i { background: #3d6fa8; }
.mt-el-t { margin: 10px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--muted); }

/* Гариг бүрийн тайлбар */
.mt-ptext { margin: 18px 0 0; }
.mt-ptext dt { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; padding-top: 12px; margin-top: 12px; border-top: 1px solid var(--line); font-weight: 600; font-size: 14.5px; }
.mt-ptext dt:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.mt-ptext dt .g { display: inline-grid; place-items: center; min-width: 24px; color: var(--gold); font-weight: 500; }
.mt-chart.p2 .mt-ptext dt .g { color: var(--accent); }
.mt-ptext dt em { margin-left: auto; font: 400 12.5px var(--sans); color: var(--soft); font-variant-numeric: tabular-nums; }
.mt-ptext dd { margin: 4px 0 0 30px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* Бүх аспект */
.mt-asp { margin-top: 18px; border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); }
.mt-asp summary { cursor: pointer; padding: 14px 18px; font-weight: 600; font-size: 14.5px; list-style: none; }
.mt-asp summary::after { content: "+"; float: right; color: var(--gold); font-size: 18px; line-height: 1; }
.mt-asp[open] summary::after { content: "−"; }
.mt-asp-t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mt-asp-t th { padding: 8px 18px; text-align: left; font: 600 11px var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); border-top: 1px solid var(--line); }
.mt-asp-t td { padding: 8px 18px; border-top: 1px solid var(--line); }
.mt-asp-t td:last-child, .mt-asp-t th:last-child { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.mt-asp-t td i { display: inline-block; width: 8px; height: 8px; margin-right: 7px; border-radius: 50%; background: #2f6db5; }
.mt-asp-t tr.hard td i { background: #b3261e; }

@media (max-width: 760px) {
  .mt-areas, .mt-pc { grid-template-columns: 1fr; }
  .mt-asp-t th, .mt-asp-t td { padding: 8px 10px; }
  .mt-ptext dd { margin-left: 0; }
}
