/* =========================================================
   Сүхбаатар дүүргийн ИТХ дахь МАН-ын бүлэг — шинэ загвар
   Цагаан суурь · Улаан (гол) · Цэнхэр (туслах)
   ========================================================= */
:root {
  --red: #D7192E;
  --red-d: #A9101F;
  --red-l: #FFE9EC;
  --navy: #1A2A72;
  --navy-d: #0F1A4D;
  --blue: #2449C9;
  --blue-l: #EAF0FF;
  --ink: #0E1630;
  --muted: #4A5370;
  --line: #DCE1EE;
  --bg: #FFFFFF;
  --soft: #F4F6FB;
  --ok: #0C7A43; --ok-l: #E2F5EA;
  --warn: #9A5B00; --warn-l: #FFF2D9;
  --stop: #6B7280; --stop-l: #EEF0F3;
  --r: 22px;
  --sh: 0 10px 30px rgba(15, 26, 77, .10);
  --fs: clamp(17px, .45vw + 13.5px, 22px);
  --wrap: 1320px;
  --font: "Montserrat", "Segoe UI", "Noto Sans", Arial, sans-serif;
  --key: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 13H12V1H3V9H8V5' fill='none' stroke='%23ffffff' stroke-opacity='.18' stroke-width='2'/%3E%3Cpath d='M14 13H26V1H17V9H22V5' fill='none' stroke='%23ffffff' stroke-opacity='.18' stroke-width='2'/%3E%3C/svg%3E");
  --key-red: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14' viewBox='0 0 28 14'%3E%3Cpath d='M0 13H12V1H3V9H8V5' fill='none' stroke='%23D7192E' stroke-width='2'/%3E%3Cpath d='M14 13H26V1H17V9H22V5' fill='none' stroke='%23D7192E' stroke-width='2'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { font-size: var(--fs); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); line-height: 1.5; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: var(--blue); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 4px solid #FFB000; outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--ink); color: #fff; padding: .6rem 1rem; }
.skip:focus { left: 1rem; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px); }

/* ---------- Header ---------- */
.topbar { height: 8px; background: linear-gradient(90deg, var(--red) 0 70%, var(--navy) 70%); }
.site-header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.hdr { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; min-height: 84px; padding-top: .4rem; padding-bottom: .4rem; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: inherit; flex: none; }
.brand .logo { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--line); }
.brand .logo-ph { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-l); color: var(--navy); font-weight: 800; flex: none; }
.brand .t { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand .t { gap: .2rem; }
.brand .t small, .brand .t b { white-space: nowrap; text-transform: uppercase; }
.brand .t small { font-size: clamp(.6rem, 1vw, .78rem); font-weight: 700; color: var(--red); letter-spacing: .1em; }
.brand .t b { font-size: clamp(.82rem, 1.3vw, .98rem); font-weight: 900; color: var(--navy); letter-spacing: .02em; }
.nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; }
.nav a { text-decoration: none; color: var(--navy); font-weight: 700; padding: .5rem .8rem; border-radius: 999px; font-size: .84rem; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { background: var(--soft); }
.nav a.active { background: var(--navy); color: #fff; }
.nav .admin { color: var(--muted); font-weight: 600; }
.present-btn { border: 2px solid var(--navy); background: #fff; color: var(--navy); font-weight: 800; border-radius: 999px; padding: .4rem .9rem; min-height: 44px; cursor: pointer; font-size: .78rem; white-space: nowrap; }
.site-header .wrap { max-width: 1560px; }
@media (max-width: 1499px) { .present-btn .lbl { display: none; } .present-btn { font-size: 1.1rem; padding: .3rem .8rem; } }
.present-btn[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.demo { background: var(--warn-l); color: #5A3600; text-align: center; font-size: .78rem; padding: .4rem 1rem; }

main { outline: none; min-height: 60vh; padding-bottom: 3rem; }
.loading { text-align: center; color: var(--muted); padding: 4rem 0; }

/* ---------- Buttons, chips, badges ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 2px solid transparent; border-radius: 14px; padding: .65rem 1.3rem; min-height: 52px; font-weight: 800; cursor: pointer; text-decoration: none; transition: transform .1s, background .15s; }
.btn:active { transform: translateY(1px); }
.btn-red { background: var(--red); color: #fff; } .btn-red:hover { background: var(--red-d); }
.btn-navy { background: var(--navy); color: #fff; } .btn-navy:hover { background: var(--navy-d); }
.btn-line { background: #fff; color: var(--navy); border-color: var(--navy); } .btn-line:hover { background: var(--soft); }
.btn-sm { min-height: 42px; padding: .35rem .9rem; font-size: .82rem; border-radius: 12px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.chip { border: 2px solid var(--line); background: #fff; color: var(--navy); font-weight: 800; border-radius: 999px; padding: .4rem 1.1rem; min-height: 46px; cursor: pointer; font-size: .88rem; }
.chip .n { display: inline-block; min-width: 1.6em; padding: 0 .35em; margin-left: .35rem; border-radius: 999px; background: var(--soft); font-size: .78rem; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip[aria-pressed="true"] .n { background: rgba(255,255,255,.2); }
.badge { display: inline-flex; align-items: center; gap: .3rem; border-radius: 999px; padding: .15rem .7rem; font-weight: 800; font-size: .74rem; white-space: nowrap; }
.b-done { background: var(--ok-l); color: var(--ok); }
.b-prog { background: var(--warn-l); color: var(--warn); }
.b-stop { background: var(--stop-l); color: var(--stop); }
.b-plan { background: var(--blue-l); color: var(--blue); }
.b-new { background: var(--red-l); color: var(--red); }
.src { display: inline-flex; align-items: center; gap: .35rem; font-weight: 800; font-size: .74rem; border-radius: 8px; padding: .15rem .55rem; }
.src-Улс { background: #FFF0E0; color: #8A4A00; }
.src-Нийслэл { background: var(--blue-l); color: var(--blue); }
.src-Дүүрэг { background: var(--red-l); color: var(--red-d); }
.src-Бусад { background: var(--soft); color: var(--muted); }
.missing { display: inline-block; background: var(--warn-l); color: #6B3E00; border: 2px dashed #E7B964; border-radius: 8px; padding: 0 .5rem; font-weight: 700; font-size: .9em; }

/* ---------- Headings ---------- */
.h-sec { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 2.6rem 0 1.1rem; }
.h-sec h2 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 2.1rem); font-weight: 900; color: var(--navy); letter-spacing: -.01em; position: relative; padding-bottom: .5rem; }
.h-sec h2::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 6px; border-radius: 6px; background: var(--red); }
.h-sec p { margin: 0; color: var(--muted); font-size: .88rem; }

/* ---------- Hero ---------- */
.hero { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--key) repeat; opacity: .5; }
.hero::after { content: ""; position: absolute; right: -10%; top: -40%; width: 60%; height: 180%; background: radial-gradient(circle at center, rgba(215,25,46,.45), transparent 60%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(20px, 3vw, 48px); padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(28px, 4vw, 56px); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; color: #FFD5DA; }
.eyebrow::before { content: ""; width: 34px; height: 4px; border-radius: 4px; background: var(--red); }
.hero h1 { margin: .5rem 0 1rem; font-size: clamp(1.9rem, 4.2vw, 3.6rem); line-height: 1.05; font-weight: 900; letter-spacing: -.02em; }
.datepill { display: inline-flex; align-items: center; gap: .6rem; background: var(--red); color: #fff; border-radius: 999px; padding: .5rem 1.3rem; font-weight: 900; font-size: 1.15rem; box-shadow: 0 8px 24px rgba(215,25,46,.35); }
.sched { margin-top: 1.3rem; display: grid; gap: .55rem; }
.sched-row { display: grid; grid-template-columns: 5.2rem 1fr auto; gap: .9rem; align-items: center; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 16px; padding: .65rem 1rem; text-decoration: none; color: #fff; }
.sched-row:hover { background: rgba(255,255,255,.14); }
.sched-row .tm { font-weight: 900; font-size: 1.25rem; color: #fff; }
.sched-row .wd { font-weight: 800; }
.sched-row .pl { font-size: .85rem; color: #C9D3FF; }
.sched-row.now { background: #fff; color: var(--navy); }
.sched-row.now .tm { color: var(--red); } .sched-row.now .pl { color: var(--muted); }
.cta {
  text-align: left; width: 100%; color: var(--navy); background: #fff; border-radius: 28px; padding: clamp(20px, 2.6vw, 32px);
  box-shadow: 0 14px 0 var(--red), 0 30px 60px rgba(0,0,0,.35); display: grid; gap: .3rem; position: relative;
}
.cta .k { font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--red); }
.cta .m { font-size: clamp(1.9rem, 3.8vw, 3.1rem); font-weight: 900; line-height: 1; letter-spacing: -.02em; }
.cta .s { color: var(--muted); font-size: .88rem; margin-bottom: .5rem; }
.cta-opts { display: grid; gap: .55rem; }
.cta-opt { display: grid; grid-template-columns: 2.6rem 1fr auto; grid-template-rows: auto auto; align-items: center; gap: 0 .8rem; text-align: left; border: 2px solid var(--line); background: var(--soft); border-radius: 16px; padding: .6rem .9rem; cursor: pointer; min-height: 64px; transition: border-color .12s, transform .1s, background .12s; }
.cta-opt:hover, .cta-opt:focus-visible { border-color: var(--red); background: #fff; transform: translateX(3px); }
.cta-opt b { grid-row: 1 / span 2; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 900; }
.cta-opt span { font-weight: 900; color: var(--navy); font-size: .98rem; }
.cta-opt small { grid-column: 2; color: var(--muted); font-size: .78rem; }
.cta-opt i { grid-column: 3; grid-row: 1 / span 2; font-style: normal; width: 40px; height: 40px; border-radius: 50%; background: var(--red); color: #fff; display: grid; place-items: center; font-weight: 900; }
.cta-opt.now { border-color: var(--red); background: var(--red-l); }
.cta-opt.now b { background: var(--red); animation: beat 2.2s ease-in-out infinite; }
@keyframes beat { 0%, 100% { box-shadow: 0 0 0 0 rgba(215,25,46,.5); } 50% { box-shadow: 0 0 0 12px rgba(215,25,46,0); } }
@media (prefers-reduced-motion: reduce) { .cta-opt.now b { animation: none; } html { scroll-behavior: auto; } }
.sched-row .go-s { margin-left: .4rem; color: #FFD5DA; }
.att-sub { margin: -.4rem 0 1rem; font-weight: 800; color: var(--navy); background: var(--blue-l); border-radius: 12px; padding: .5rem .8rem; }
.cta-note { margin-top: 1.6rem; color: #C9D3FF; font-size: .82rem; }

/* ---------- Rep strip ---------- */
.repstrip { display: grid; grid-template-columns: repeat(6, 1fr); gap: 1.2rem .8rem; padding: .4rem 0 .6rem; }
.repdot { text-decoration: none; color: var(--ink); text-align: center; display: flex; flex-direction: column; align-items: center; gap: .3rem; min-width: 0; }
.repdot .ph { width: 110px; height: 110px; flex: none; border-radius: 50%; object-fit: cover; object-position: center 20%; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--red); background: var(--soft); margin-bottom: .3rem; }
.repdot span.ph { display: grid; place-items: center; font-weight: 900; color: var(--navy); }
.repdot b { font-size: .74rem; line-height: 1.2; max-width: 100%; overflow-wrap: anywhere; }
.repdot small { font-size: .68rem; color: var(--red); font-weight: 800; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.stat { background: var(--soft); border-radius: var(--r); padding: 1.1rem 1.3rem; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: var(--navy); }
.stat.red::before { background: var(--red); }
.stat .v { font-size: clamp(1.5rem, 2.8vw, 2.4rem); font-weight: 900; color: var(--navy); line-height: 1.05; }
.stat.red .v { color: var(--red); }
.stat .l { font-size: .8rem; color: var(--muted); font-weight: 700; margin-top: .2rem; }
.srcbars { display: grid; gap: .55rem; margin-top: 1.1rem; }
.srcbar { display: grid; grid-template-columns: 9rem 1fr 7.5rem; gap: .8rem; align-items: center; font-size: .85rem; }
.srcbar .tr { height: 14px; background: var(--soft); border-radius: 8px; overflow: hidden; }
.srcbar .fl { height: 100%; background: var(--navy); border-radius: 8px; }
.srcbar .am { text-align: right; font-weight: 800; }

/* ---------- Ward picker ---------- */
.session { margin-bottom: 1.6rem; }
.session-h { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-bottom: .7rem; font-weight: 800; color: var(--navy); }
.session-h .tm { background: var(--red); color: #fff; border-radius: 10px; padding: .1rem .6rem; font-weight: 900; }
.session-h .pl { color: var(--muted); font-weight: 600; font-size: .85rem; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.wtile { position: relative; display: grid; gap: .35rem; align-content: start; text-decoration: none; color: var(--ink); background: #fff; border: 2px solid var(--line); border-radius: var(--r); padding: 1rem 1.1rem 1.1rem; min-height: 170px; transition: transform .12s, box-shadow .12s, border-color .12s; overflow: hidden; }
.wtile:hover, .wtile:focus-visible { transform: translateY(-3px); box-shadow: var(--sh); border-color: var(--navy); }
.wtile .no { font-size: 2.9rem; font-weight: 900; line-height: .95; color: var(--navy); letter-spacing: -.03em; }
.wtile .no small { font-size: .8rem; font-weight: 800; color: var(--ink); margin-left: .25rem; letter-spacing: 0; }
.wtile .tp { font-size: .72rem; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: .06em; }
.wtile .meta { font-size: .78rem; color: var(--muted); }
.wtile .faces { display: flex; margin-top: auto; padding-top: .4rem; }
.wtile .faces img, .wtile .faces span { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 3px solid #fff; margin-left: -8px; background: var(--soft); }
.wtile .faces > :first-child { margin-left: 0; }
.wtile .faces span { display: grid; place-items: center; font-size: .65rem; color: var(--muted); font-weight: 800; }
.wtile::after { content: "→"; position: absolute; right: 14px; top: 12px; color: var(--line); font-size: 1.4rem; font-weight: 900; transition: color .12s; }
.wtile:hover::after { color: var(--red); }

/* ---------- Ward page ---------- */
.whead { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.whead::before { content: ""; position: absolute; inset: 0; background: var(--key) repeat; opacity: .45; }
.whead .wrap { position: relative; padding-top: 1.4rem; padding-bottom: 1.8rem; }
.back { color: #C9D3FF; text-decoration: none; font-weight: 700; font-size: .88rem; display: inline-flex; min-height: 40px; align-items: center; }
.back:hover { color: #fff; }
.whead-grid { display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 3vw, 40px); align-items: center; }
.bignum { font-size: clamp(4.5rem, 12vw, 9rem); font-weight: 900; line-height: .85; letter-spacing: -.05em; }
.bignum small { display: block; font-size: .2em; letter-spacing: .02em; font-weight: 800; color: #FFD5DA; margin-top: .4rem; }
.wreps { display: flex; flex-wrap: wrap; gap: 1rem; }
.wrep { display: flex; align-items: center; gap: .9rem; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 20px; padding: .6rem 1.2rem .6rem .6rem; text-decoration: none; color: #fff; }
.wrep img, .wrep .ini { width: clamp(76px, 8vw, 110px); height: clamp(76px, 8vw, 110px); border-radius: 50%; object-fit: cover; object-position: center 20%; border: 4px solid #fff; background: #fff; }
.wrep.gov { background: rgba(215,25,46,.22); border-color: rgba(255,255,255,.25); }
.wrep.gov img { object-position: center 25%; }
.wrep .ini { display: grid; place-items: center; color: var(--navy); font-weight: 900; font-size: 1.6rem; }
.wrep small { display: block; color: #C9D3FF; font-size: .74rem; font-weight: 700; }
.wrep b { font-size: clamp(1.1rem, 2vw, 1.55rem); font-weight: 900; }
.wtype { display: inline-block; margin-top: .9rem; background: var(--red); color: #fff; font-weight: 800; font-size: .78rem; border-radius: 999px; padding: .2rem .9rem; }
.wstats { display: grid; grid-template-columns: repeat(6, 1fr); gap: .8rem; margin-top: -1.2rem; position: relative; z-index: 2; }
.wstat { background: #fff; border-radius: 18px; box-shadow: var(--sh); padding: .9rem 1rem; }
.wstat .v { font-size: clamp(1.25rem, 2.2vw, 1.8rem); font-weight: 900; color: var(--navy); line-height: 1.1; }
.wstat .l { font-size: .74rem; color: var(--muted); font-weight: 700; }

.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin: 2rem 0 1.2rem; padding: .35rem; background: var(--soft); border-radius: 18px; }
.tab { flex: 1 1 auto; border: 0; background: transparent; border-radius: 14px; padding: .75rem 1rem; font-weight: 800; color: var(--muted); cursor: pointer; min-height: 52px; font-size: .92rem; }
.tab[aria-selected="true"] { background: #fff; color: var(--red); box-shadow: 0 4px 14px rgba(15,26,77,.1); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.sumrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 1.2rem; }
.sumrow .stat { padding: .85rem 1.1rem; }
.sumrow .stat .v { font-size: clamp(1.3rem, 2.4vw, 1.9rem); }

.plist { display: grid; gap: .8rem; }
.prow { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1.2rem; background: #fff; border: 2px solid var(--line); border-radius: 18px; padding: 1rem 1.2rem; border-left: 8px solid var(--navy); }
.prow.Дүүрэг { border-left-color: var(--red); } .prow.Улс { border-left-color: #E08A1E; } .prow.Бусад { border-left-color: var(--stop); }
.prow h3 { margin: 0; font-size: 1rem; line-height: 1.3; color: var(--ink); font-weight: 800; }
.prow .tags { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .45rem; font-size: .78rem; color: var(--muted); }
.prow .amt { text-align: right; }
.prow .amt b { display: block; font-size: 1.2rem; font-weight: 900; color: var(--navy); white-space: nowrap; }
.prow .amt small { font-size: .72rem; color: var(--muted); }
.prog { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: .8rem; align-items: center; }
.prog .tr { height: 12px; background: var(--soft); border-radius: 8px; overflow: hidden; }
.prog .fl { height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--navy), var(--blue)); }
.prog .fl.full { background: var(--ok); }
.prog .pc { font-weight: 900; color: var(--navy); font-size: .9rem; min-width: 3.2rem; text-align: right; }
.more { text-align: center; margin-top: 1rem; }
.empty { text-align: center; padding: 2.4rem 1rem; border: 3px dashed var(--line); border-radius: var(--r); color: var(--muted); background: var(--soft); }
.empty p { margin: .5rem 0 0; }
.note { font-size: .78rem; color: var(--muted); margin-top: 1rem; line-height: 1.45; }

/* Budget */
.legend { display: flex; gap: 1.4rem; flex-wrap: wrap; font-weight: 800; margin-bottom: 1rem; }
.legend i { display: inline-block; width: 1em; height: 1em; border-radius: 4px; margin-right: .4rem; vertical-align: -.12em; }
.bgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.bcard { border: 2px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.3rem; background: #fff; }
.bcard.total { grid-column: 1 / -1; background: var(--navy); color: #fff; border-color: var(--navy); }
.bcard h3 { margin: 0 0 .8rem; display: flex; justify-content: space-between; gap: .8rem; flex-wrap: wrap; align-items: center; font-size: 1.05rem; font-weight: 900; color: var(--navy); }
.bcard.total h3 { color: #fff; }
.brow { display: grid; grid-template-columns: 3.4rem 1fr 7.5rem; gap: .8rem; align-items: center; margin: .45rem 0; font-weight: 800; }
.btr { height: 30px; background: var(--soft); border-radius: 9px; overflow: hidden; }
.bcard.total .btr { background: rgba(255,255,255,.12); }
.bfl { height: 100%; border-radius: 9px; min-width: 4px; transition: width .6s; }
.bfl.y26 { background: var(--blue); } .bfl.y27 { background: var(--red); }
.bcard.total .bfl.y26 { background: #9DB3FF; } .bcard.total .bfl.y27 { background: #FF7B8B; }
.brow .a { text-align: right; white-space: nowrap; }
.delta { font-weight: 900; padding: .15rem .7rem; border-radius: 999px; font-size: .88rem; }
.up { background: var(--ok-l); color: var(--ok); } .down { background: var(--red-l); color: var(--red); } .eq { background: var(--soft); color: var(--muted); }

/* Issues */
.igrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1rem; }
.icard { background: #fff; border: 2px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.3rem; }
.icard h3 { margin: 0 0 .6rem; font-size: 1rem; font-weight: 900; color: var(--navy); display: flex; align-items: center; gap: .6rem; }
.icard h3 span { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-l); font-size: 1.1rem; }
.icard ul { margin: 0; padding-left: 1.1rem; display: grid; gap: .35rem; font-size: .9rem; }
.icard li::marker { color: var(--red); }

/* Suggestions */
.sbox { margin-top: 3rem; background: var(--soft); border-radius: 30px; padding: clamp(18px, 3vw, 38px); }
.sbox .h-sec { margin-top: 0; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fgrid .full { grid-column: 1 / -1; }
.field { display: grid; gap: .3rem; }
.field label { font-weight: 800; font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; min-height: 56px; padding: .6rem .9rem; border: 2px solid #A9B1C6; border-radius: 14px; background: #fff; }
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid rgba(26,42,114,.2); }
.field .err, .cerr { color: var(--red); font-weight: 700; font-size: .8rem; min-height: 1em; }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--red); }
.consent { display: flex; gap: .8rem; align-items: flex-start; font-weight: 700; cursor: pointer; padding: .9rem; border-radius: 14px; background: #fff; border: 2px solid var(--line); }
.consent input { width: 30px; height: 30px; flex: none; accent-color: var(--red); margin: 0; }
.factions { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: 1rem; }
.slist { display: grid; gap: .9rem; margin-top: 1.4rem; }
.sugg { background: #fff; border-radius: 18px; padding: 1rem 1.2rem; border: 2px solid var(--line); }
.sugg .meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; align-items: center; font-size: .82rem; color: var(--muted); }
.sugg .meta b { color: var(--ink); font-size: .98rem; }
.sugg .txt { margin: .6rem 0; white-space: pre-wrap; word-break: break-word; }
.sugg .ctrl { display: flex; flex-wrap: wrap; gap: .7rem 1.3rem; align-items: center; border-top: 1px dashed var(--line); padding-top: .8rem; font-size: .88rem; }
.sugg .ctrl label.chk { display: flex; align-items: center; gap: .5rem; font-weight: 800; cursor: pointer; }
.sugg .ctrl input[type=checkbox] { width: 26px; height: 26px; accent-color: var(--red); }
.sugg .ctrl select { min-height: 44px; border: 2px solid #A9B1C6; border-radius: 10px; padding: .3rem .6rem; background: #fff; max-width: 100%; }
.sugg .hint { width: 100%; font-size: .74rem; color: var(--muted); }

/* Reps page */
.rgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.2rem; }
.rcard { background: #fff; border-radius: 26px; overflow: hidden; box-shadow: var(--sh); display: flex; flex-direction: column; }
.rcard .ph { aspect-ratio: 942 / 803; width: 100%; object-fit: cover; object-position: center 25%; background: var(--soft); }
.rcard .ph-ini { aspect-ratio: 942 / 803; display: grid; place-items: center; background: var(--blue-l); color: var(--navy); font-size: 3rem; font-weight: 900; }
.rcard .bd { padding: 1rem 1.2rem 1.2rem; display: grid; gap: .45rem; border-top: 6px solid var(--red); }
.rcard .no { font-size: .74rem; font-weight: 800; color: var(--red); letter-spacing: .08em; text-transform: uppercase; }
.rcard h3 { margin: 0; font-size: 1.25rem; font-weight: 900; color: var(--navy); }
.rcard .ws { display: flex; gap: .4rem; flex-wrap: wrap; }
.rcard .ws a { text-decoration: none; background: var(--navy); color: #fff; border-radius: 999px; padding: .2rem .8rem; font-weight: 800; font-size: .8rem; }
.rcard .ct { font-size: .7rem; display: grid; gap: .2rem; min-width: 0; }
.rcard .ct span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Chair tag & committees */
.chairtag { display: inline-block; background: var(--red); color: #fff; font-size: .62rem; font-weight: 900; border-radius: 999px; padding: .1rem .55rem; margin-top: -.75rem; position: relative; z-index: 1; letter-spacing: .03em; }
.rcard .chairtag { margin: 0; justify-self: start; font-size: .74rem; padding: .2rem .8rem; }
.rcard .cm .cm-chair { background: var(--red-l); color: var(--red-d); }
.rcard .bio { margin: 0; font-size: .84rem; color: var(--muted); }
.rcard .bd > .btn { justify-self: start; margin-top: .3rem; }

/* Council */
/* Удирдлага (Засаг даргын орлогч, Зөвлөлийн гишүүд) — төлөөлөгчийн карттай ижил хэв маяг */
.lead-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; max-width: 980px; }
@media (max-width: 560px) {
  .lead-row { gap: .5rem; }
  .lead-row .rcard .bd { padding: .6rem .5rem .7rem; }
  .lead-row .rcard .no { font-size: .56rem; letter-spacing: .02em; }
  .lead-row .rcard h3 { font-size: .8rem; }
}

/* QR */
.qr-box { display: grid; grid-template-columns: auto 1fr; gap: 1.4rem; align-items: center; background: var(--soft); border-radius: 24px; padding: clamp(16px, 2.4vw, 26px); }
.qr-img { background: #fff; border-radius: 16px; padding: 12px; width: 220px; height: 220px; display: grid; place-items: center; }
.qr-img svg, .qr-img img { width: 100%; height: 100%; }
.qr-box h3 { margin: 0 0 .3rem; color: var(--navy); font-weight: 900; font-size: 1.3rem; }
.qr-box p { margin: .2rem 0; }
.qr-url { font-size: .78rem; color: var(--muted); word-break: break-all; }
.qr-big { display: grid; justify-items: center; gap: 1rem; text-align: center; }
.qr-big .qr-img { width: min(70vh, 80vw); height: min(70vh, 80vw); }
@media (max-width: 700px) { .qr-box { grid-template-columns: 1fr; justify-items: center; text-align: center; } }

/* 2027 саналын жагсаалт (нуусан) */
.prop-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin: 2.2rem 0 .8rem; padding: .9rem 1.1rem; border-radius: 18px; background: var(--blue-l); }
.prop-head h3 { margin: 0; color: var(--navy); font-weight: 900; font-size: 1.1rem; }
.prop-head p { margin: .2rem 0 0; font-size: .8rem; color: var(--muted); }
.eye { display: inline-flex; align-items: center; gap: .5rem; border: 2px solid var(--navy); background: #fff; color: var(--navy); border-radius: 999px; padding: .4rem 1rem; font-weight: 800; cursor: pointer; min-height: 46px; }
.eye svg { width: 24px; height: 24px; }
.eye[aria-pressed="true"] { background: var(--navy); color: #fff; }
.prow.prop { border-left-color: var(--blue); }
.prow .masked { letter-spacing: .2em; color: var(--muted); }
.prow .who { font-size: .76rem; color: var(--muted); }

/* Саналын хариу */
.reply { margin: .5rem 0 .2rem; background: var(--ok-l); border-left: 5px solid var(--ok); border-radius: 12px; padding: .6rem .9rem; }
.reply b { color: var(--ok); font-size: .82rem; }
.reply p { margin: .2rem 0 0; white-space: pre-wrap; }

/* Staff */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.staff { display: flex; gap: 1rem; align-items: center; background: #fff; border-radius: 24px; padding: 1rem 1.2rem; box-shadow: var(--sh); }
.staff .sph { width: 96px; height: 96px; border-radius: 50%; overflow: hidden; flex: none; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--line); }
.staff .sph svg, .staff .sph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.staff h3 { margin: 0; color: var(--navy); font-weight: 900; }
.staff .no { font-size: .72rem; font-weight: 800; color: var(--red); text-transform: uppercase; letter-spacing: .08em; }
.staff .ct { font-size: .84rem; display: grid; gap: .15rem; margin-top: .3rem; word-break: break-word; }

/* Meeting page */
.mhead { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(16px, 3vw, 40px); align-items: center; }
.mtitle { margin: 0; font-size: clamp(1.6rem, 3.4vw, 2.8rem); font-weight: 900; }
.mmeta { margin: .3rem 0 .8rem; color: #C9D3FF; font-weight: 700; }
.mtabs { display: flex; gap: .4rem; flex-wrap: wrap; }
.mtabs a { color: #fff; text-decoration: none; border: 2px solid rgba(255,255,255,.3); border-radius: 999px; padding: .3rem .9rem; font-weight: 800; font-size: .84rem; }
.mtabs a.on { background: #fff; color: var(--navy); border-color: #fff; }
.mbtn { font-size: 1.05rem; box-shadow: 0 6px 0 var(--red-d); }
.cnt-total { display: inline-flex; align-items: baseline; gap: .6rem; background: var(--red); color: #fff; border-radius: 18px; padding: .6rem 1.4rem; margin-bottom: 1rem; }
.cnt-total b { font-size: 2.4rem; font-weight: 900; line-height: 1; }
.cnt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .6rem; }
.cnt { display: grid; grid-template-columns: 5.5rem 1fr 2.6rem; align-items: center; gap: .6rem; background: var(--soft); border-radius: 14px; padding: .6rem .9rem; text-decoration: none; color: var(--ink); font-weight: 800; }
.cnt .cb { height: 12px; background: #fff; border-radius: 8px; overflow: hidden; }
.cnt .cb i { display: block; height: 100%; background: var(--navy); border-radius: 8px; min-width: 2px; }
.cnt b { text-align: right; font-size: 1.2rem; color: var(--navy); }

/* Attendance matrix */
.mx-legend { display: flex; gap: .5rem 1.2rem; flex-wrap: wrap; font-size: .82rem; font-weight: 800; margin-bottom: .7rem; align-items: center; }
.mx-legend span { padding: .1rem .5rem; border-radius: 8px; }
.att-p { background: var(--ok-l); color: var(--ok); }
.att-e { background: var(--warn-l); color: var(--warn); }
.att-a { background: var(--red-l); color: var(--red); }
.mx table { font-size: .85rem; }
.mx th, .mx td { text-align: center; padding: .4rem .5rem; }
.mx .mx-n { text-align: left; position: sticky; left: 0; background: #fff; z-index: 1; min-width: 150px; }
.mx thead .mx-n { background: var(--navy); }
.mx tbody .mx-n, .mx tfoot .mx-n { color: var(--ink); font-weight: 800; position: sticky; }
.mx tfoot .mx-n { background: var(--blue-l); color: var(--navy); }
.twrap.mx { max-height: none; }
.mx tr:nth-child(even) .mx-n { background: var(--soft); }
.mx .mx-h span { display: block; font-weight: 900; }
.mx .mx-h small { display: block; font-size: .62rem; opacity: .8; font-weight: 700; }
.mx .mx-c { font-weight: 900; font-size: 1rem; }
.mx .mx-c button { width: 36px; height: 32px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-weight: 900; font-size: 1rem; color: inherit; }
.mx .mx-c button:hover { outline: 2px solid var(--navy); }
.mx .mx-0 { color: #B6BCCB; }
.mx .mx-t { font-weight: 700; white-space: nowrap; }
.mx .mx-t small { color: var(--muted); margin-left: .2rem; }
.mx tfoot th, .mx tfoot td { background: var(--blue-l); border-top: 2px solid var(--navy); }
.gal-d { font-weight: 700; color: var(--muted); font-size: .85rem; }

/* Posts */
.posts { display: grid; gap: 1rem; }
.post { display: grid; grid-template-columns: 260px 1fr; background: #fff; border-radius: 22px; overflow: hidden; box-shadow: var(--sh); }
.post:not(:has(img)) { grid-template-columns: 1fr; }
.post img { width: 100%; height: 100%; object-fit: cover; min-height: 180px; }
.post .pb { padding: 1.1rem 1.3rem; display: grid; gap: .4rem; align-content: start; }
.post h3 { margin: 0; color: var(--navy); font-weight: 900; }
.post .date { font-size: .8rem; color: var(--muted); font-weight: 700; }
.post .acts { display: flex; gap: .5rem; }
.btn.del { color: var(--red); border-color: var(--red); }

/* Admin */
.adm { display: grid; grid-template-columns: 260px 1fr; gap: 1.4rem; margin-top: 2rem; align-items: start; }
.adm-side { background: var(--navy); color: #fff; border-radius: 24px; padding: 1rem; display: grid; gap: .8rem; position: sticky; top: 100px; }
.adm-me { display: flex; gap: .7rem; align-items: center; padding: .4rem; }
.adm-me img, .adm-me .ini { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 3px solid #fff; background: #fff; color: var(--navy); display: grid; place-items: center; font-weight: 900; flex: none; }
.adm-me b { display: block; font-size: .95rem; }
.role { display: inline-block; font-size: .68rem; font-weight: 900; border-radius: 999px; padding: .05rem .6rem; margin-top: .2rem; }
.role-admin { background: var(--red); color: #fff; }
.role-moderator { background: #FFD5DA; color: var(--red-d); }
.role-editor { background: #C9D3FF; color: var(--navy); }
.adm-side nav { display: grid; gap: .2rem; }
.adm-side nav button { display: flex; gap: .6rem; align-items: center; text-align: left; border: 0; background: transparent; color: #DCE3FF; border-radius: 12px; padding: .6rem .7rem; cursor: pointer; font-weight: 700; font-size: .88rem; min-height: 44px; }
.adm-side nav button:hover { background: rgba(255,255,255,.1); color: #fff; }
.adm-side nav button.on { background: #fff; color: var(--navy); }
.adm-side > .btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.adm-main { background: #fff; border: 2px solid var(--line); border-radius: 24px; padding: clamp(16px, 2.4vw, 28px); min-width: 0; }
.adm-main h2 { margin-top: 0; color: var(--navy); font-weight: 900; }
.adm-h3 { color: var(--navy); margin: 1.6rem 0 .6rem; }
.adm-sess { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .8rem; }
.adm-sess .stat { text-decoration: none; color: inherit; }
.adm-main td select { min-height: 40px; border: 2px solid #A9B1C6; border-radius: 10px; padding: .2rem .5rem; background: #fff; }
@media (max-width: 900px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: static; }
  .adm-side nav { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .mhead { grid-template-columns: 1fr; }
  .post { grid-template-columns: 1fr; }
}
.rcard .cm { display: grid; gap: .3rem; }
.rcard .cm small { font-size: .7rem; color: var(--muted); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.rcard .cm span { background: var(--blue-l); color: var(--navy); border-radius: 10px; padding: .25rem .6rem; font-size: .78rem; font-weight: 700; }

/* Program */
.prog-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 1.2rem; align-items: start; }
.prog-info { display: grid; gap: .8rem; }
.pi { background: var(--soft); border-radius: 18px; padding: .9rem 1.1rem; }
.pi b { color: var(--navy); font-weight: 900; font-size: .9rem; }
.pi p { margin: .25rem 0 0; font-size: .88rem; }
.pi.follow { background: var(--red-l); color: var(--red-d); font-weight: 800; font-size: .88rem; }
.topics { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.topics span { background: #fff; border: 2px solid var(--line); border-radius: 999px; padding: .2rem .7rem; font-size: .78rem; font-weight: 700; }
.agenda { max-height: none; }
.agenda th small { display: block; font-weight: 600; opacity: .8; font-size: .7rem; }
.agenda td.tm { font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.agenda td.cur, .agenda th.cur { background: var(--blue-l) !important; color: var(--navy); }
.agenda th.cur { background: var(--red) !important; color: #fff; }
.agenda td.act { white-space: normal; font-weight: 600; min-width: 260px; }
.agenda tr.now td { background: #FFF2D9 !important; }

/* Group report */
.grp { margin-bottom: 2rem; }
.grp-hero { display: grid; grid-template-columns: 1fr; gap: 1.2rem; align-items: center; background: var(--navy); color: #fff; border-radius: 28px; padding: clamp(18px, 3vw, 34px); position: relative; overflow: hidden; }
.grp-hero::before { content: ""; position: absolute; inset: 0; background: var(--key) repeat; opacity: .45; }
.grp-hero > * { position: relative; }
.grp-hero h2 { margin: .4rem 0; font-size: clamp(1.4rem, 3vw, 2.3rem); font-weight: 900; }
.grp-hero .mission { margin: 0; font-size: 1.1rem; font-weight: 800; color: #FFD5DA; }
.grp-hero .chair { display: flex; gap: 1rem; align-items: center; background: rgba(255,255,255,.1); border-radius: 20px; padding: .8rem; }
.grp-hero .chair img, .grp-hero .chair .ini { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 4px solid #fff; flex: none; }
.grp-hero .chair small { display: block; color: #FFD5DA; font-weight: 800; font-size: .74rem; text-transform: uppercase; }
.grp-hero .chair b { display: block; font-size: 1.15rem; }
.grp-hero .chair span { font-size: .78rem; color: #C9D3FF; }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 1rem; }
.role { background: var(--soft); border-radius: 20px; padding: 1rem 1.2rem; }
.role span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--red); color: #fff; font-weight: 900; margin-bottom: .4rem; }
.role b { display: block; color: var(--navy); font-weight: 900; }
.role p { margin: .3rem 0 0; font-size: .86rem; color: var(--muted); }
.att { display: inline-block; width: 60px; height: 10px; background: var(--soft); border-radius: 6px; overflow: hidden; vertical-align: middle; margin-right: .5rem; }
.att span { display: block; height: 100%; background: var(--navy); }
.hl { background: var(--red-l); border-radius: 16px; padding: .9rem 1.1rem; font-weight: 700; color: var(--red-d); margin-top: 1rem; }
.gal-h { margin: 1.2rem 0 .6rem; font-size: 1rem; color: var(--navy); font-weight: 900; }
.gal { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .6rem; }
.gal-i { border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: zoom-in; background: var(--soft); aspect-ratio: 4 / 3; }
.gal-i img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s; }
.gal-i:hover img { transform: scale(1.05); }
.lb { width: 100%; max-height: 70vh; object-fit: contain; border-radius: 14px; background: var(--soft); }

/* Reports */
.rpgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.rp { background: #fff; border: 2px solid var(--line); border-top: 8px solid var(--navy); border-radius: var(--r); padding: 1.1rem 1.3rem; display: flex; flex-direction: column; gap: .5rem; }
.rp.group { border-top-color: var(--red); }
.rp h3 { margin: 0; font-size: 1.05rem; color: var(--navy); font-weight: 900; }
.rp .date { font-size: .8rem; color: var(--muted); font-weight: 700; }
.rp p { margin: 0; font-size: .9rem; }
.rp .acts { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: auto; padding-top: .4rem; }
.full-text { white-space: pre-wrap; max-height: 60vh; overflow: auto; }

/* Admin */
.panel { background: #fff; border: 2px solid var(--line); border-radius: 24px; padding: clamp(16px, 2.5vw, 28px); margin-bottom: 1.4rem; }
.panel h2 { margin-top: 0; color: var(--navy); font-weight: 900; }
.toolbar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: end; margin-bottom: 1rem; }
.toolbar .field { min-width: 180px; }
.twrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; max-height: 60vh; }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { padding: .55rem .8rem; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { background: var(--navy); color: #fff; position: sticky; top: 0; }
tr:nth-child(even) td { background: var(--soft); }
.login { max-width: 520px; margin: 2rem auto; }

/* Modal, toast */
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal-bg { position: absolute; inset: 0; background: rgba(10,16,48,.7); backdrop-filter: blur(2px); }
.modal-box { position: relative; background: #fff; border-radius: 28px; width: min(720px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: clamp(20px, 3vw, 36px); box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.modal-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 10px; background: linear-gradient(90deg, var(--red) 0 70%, var(--navy) 70%); }
.modal-box h2 { margin: .3rem 3rem 1rem 0; color: var(--navy); font-weight: 900; font-size: clamp(1.35rem, 2.6vw, 1.9rem); }
.modal-x { position: absolute; right: 14px; top: 18px; width: 50px; height: 50px; border-radius: 50%; border: 0; background: var(--soft); font-size: 1.9rem; line-height: 1; cursor: pointer; }
.modal-x:hover { background: var(--red-l); color: var(--red); }
.thanks { text-align: center; padding: 1rem 0; }
.thanks .ok { width: 110px; height: 110px; border-radius: 50%; background: var(--ok-l); color: var(--ok); display: grid; place-items: center; font-size: 4rem; margin: 0 auto 1rem; font-weight: 900; }
.thanks h3 { font-size: 1.8rem; margin: 0 0 .4rem; color: var(--ok); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%); z-index: 70; background: var(--ink); color: #fff; padding: .9rem 1.4rem; border-radius: 14px; font-weight: 800; transition: transform .25s; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }
.toast.err { background: var(--red); }

/* Footer */
.foot { background: var(--navy-d); color: #C9D3FF; font-size: .8rem; }
.foot .wrap { padding-top: 1.4rem; padding-bottom: 1.4rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot::before { content: ""; display: block; height: 14px; background: var(--key-red) repeat-x left center / 28px 14px; background-color: #fff; }

/* Presentation mode */
body.present { --fs: clamp(21px, .85vw + 11px, 30px); }
body.present .nav .admin, body.present .demo { display: none; }
body.present .site-header { position: static; }

/* Responsive */
@media (max-width: 1060px) {
  .hdr { flex-wrap: wrap; padding: .6rem 0; }
  .nav { order: 3; width: 100%; margin-left: 0; overflow-x: auto; }
  .present-btn { margin-left: auto; }
  .hero .wrap { grid-template-columns: 1fr; }
  .wstats { grid-template-columns: repeat(3, 1fr); }
  .repstrip { grid-template-columns: repeat(4, 1fr); }
  .prog-grid, .grp-hero { grid-template-columns: 1fr; }
  .roles { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .brand .logo, .brand .logo-ph { width: 48px; height: 48px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .repstrip { grid-template-columns: repeat(3, 1fr); }
  .repdot .ph { width: 94px; height: 94px; }
  .sumrow { grid-template-columns: 1fr; }
  .bgrid { grid-template-columns: 1fr; }
  .fgrid { grid-template-columns: 1fr; }
  .whead-grid { grid-template-columns: 1fr; }
  .wstats { grid-template-columns: repeat(2, 1fr); }
  .wgrid { grid-template-columns: repeat(2, 1fr); gap: .7rem; }
  .wtile { min-height: 150px; padding: .8rem; }
  .wtile .no { font-size: 2.3rem; }
  .prow { grid-template-columns: 1fr; }
  .prow .amt { text-align: left; }
  .srcbar { grid-template-columns: 6rem 1fr; }
  .srcbar .am { grid-column: 2; text-align: left; }
  .brow { grid-template-columns: 3rem 1fr; }
  .brow .a { grid-column: 2; text-align: left; }
  .sched-row { grid-template-columns: 4.2rem 1fr; }
  .sched-row .pl { grid-column: 2; }
  .tab { flex: 1 1 45%; }
  .present-btn .lbl { display: none; }
}
@media print { .site-header, .sbox form, .foot, .cta { display: none; } }
