/* WP-D: тоглолт / лиг / баг / хайлт / лигүүдийн жагсаалт */

/* тоглолтын хуудасны харагдах H1 (SEO-4) */
.mh1 { font: 700 15px/1.3 var(--font-head); color: var(--muted); margin: 0 0 10px; letter-spacing: 0; }
.hero-meta a, .hero h2 a { color: inherit; }
.hero h2 a:hover, .tbl td.l a:hover { color: var(--accent-ink); text-decoration: underline; }

/* завсраас өмнөх ("манай санд байгаа өмнөх") мөрүүд */
.mlist li.gapdiv, .tlist li.gapdiv { font-size: 11px; color: var(--muted); padding: 8px 0 4px; letter-spacing: .02em; }
.mlist li.old, .tlist li.old { opacity: .62; }

/* статистикийн хүснэгт (F8) */
.stt td { text-align: center; padding-left: 6px; }
.stt td small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); }
.stt tr:first-child td { font-size: 12px; font-weight: 600; line-height: 1.2; vertical-align: bottom; }

/* багийн хуудас */
.thead h1 small { font: 600 14px var(--font); color: var(--muted); }
.thead p a { color: var(--accent-ink); }
.tform { margin: 6px 0 0; display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.tlist { list-style: none; margin: 0; padding: 0; }
.tlist li + li { border-top: 1px solid var(--line); }
.tlist a { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; align-items: center; }
.tlist .d { color: var(--muted); font-size: 12px; }
.tlist .d small { display: block; }
.tlist .tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tlist .tt small { display: block; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.tlist .me { font-weight: 700; }
.tlist .r { white-space: nowrap; text-align: right; }
.tlist .r i { font-style: normal; display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px;
             border-radius: 5px; font-size: 11px; font-weight: 700; color: #fff; }
.tlist .r .f-W { background: var(--good); } .tlist .r .f-D { background: #8a8494; } .tlist .r .f-L { background: var(--bad); }
.tlist .pk { font-weight: 700; color: var(--accent-ink); }
.tlist .na { color: var(--muted); font-size: 12px; }
.tlist .live { color: var(--bad); }
.tlist .ok { color: var(--good); font-weight: 800; }
.tlist .bad { color: var(--bad); font-weight: 800; }

/* хайлт */
.dsearch { display: flex; gap: 8px; margin: 0 0 16px; }
.dsearch input { flex: 1; min-width: 0; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line);
                 background: var(--surface); color: var(--text); font: 500 15px var(--font); }
.dsearch input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.slist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 2px 14px; }
.slist a { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 8px; padding: 7px 0; align-items: center; }
.slist a img { grid-row: span 2; }
.slist a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.slist a small { grid-column: 2; color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* лигийн хуудас: тойрог → өдөр */
.lround .dhead { padding: 6px 14px; font-size: 12px; font-weight: 600; color: var(--muted);
                 background: var(--surface-2, rgba(255, 255, 255, .03)); border-top: 1px solid var(--line); }
.dnote { background: var(--accent-soft); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; font-size: 13px; margin: 0 0 12px; }
.subh { font: 700 16px var(--font-head); margin: 18px 0 10px; }
.card .tbl + h3 { margin-top: 18px; }

/* лигүүдийн жагсаалт (F11) */
.lgfilter { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.lgfilter input { flex: 1; min-width: 0; max-width: 420px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line);
                  background: var(--surface); color: var(--text); font: 500 14px var(--font); }
.lgtop .llist { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 0 14px; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; align-items: start; }
.cty { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; }
.cty > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; padding: 10px 0; }
.cty > summary::-webkit-details-marker { display: none; }
.cty > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .15s; }
.cty[open] > summary::after { transform: rotate(180deg); }
.cty > summary small, .llist small { color: var(--accent-ink); font-size: 11px; white-space: nowrap; }
.cty .llist { list-style: none; margin: 0 0 8px; padding: 0; }
.cty .llist li, .lgtop .llist li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 5px 0; font-size: 14px; }
.lgtop .llist a { display: inline-flex; align-items: center; gap: 8px; }
.cty .minor { margin: 0 0 8px; }
.cty .minor > summary { cursor: pointer; font-size: 12px; color: var(--muted); padding: 4px 0; }
.cty [hidden], .cgrid [hidden] { display: none !important; }

@media (max-width: 720px) {
  .tlist a { grid-template-columns: 58px minmax(0, 1fr) auto; gap: 8px; }
  .stt th { font-size: 12px; }
}
