/* Layout: стиль aqqqulaq.com (как «Жас пирамидасы»): небо-канвас под стеклянными панелями; пульт даты сверху управляет составом, картой и людьми.
   Темы сайта: «Аспан» (sky, тёмная, по умолчанию) и «Су» (water, светлая). В артефакте светлая тема зрителя = Су. */
:root {
  color-scheme: dark;
  --bg: #04060c; --ink: #e3e7f0; --ink-2: #c5cfdf; --muted: #9baac2;
  --glass: #17212d83; --solid: #142031f5; --control: #10192a;
  --line: rgba(255,255,255,.16); --line-2: rgba(255,255,255,.26);
  --accent: #81bceb; --accent-soft: #81bceb1f; --selected: #e4ecff; --selected-ink: #132037;
  --gold: #e9c27b; --gold-ink: #1b1406;
  --band-a: #81bceb1c; --band-b: #81bceb38; --band-ink: #d9e8f8;
  --face-bg: #1c2838; --shadow: 0 24px 65px #0005, 0 4px 12px #0003; --pop: 0 14px 60px #0006;
  --radius-surface: 24px; --radius-control: 14px; --radius-segment: 18px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: light) { :root:not([data-theme]):not([data-look="sky"]) {
  color-scheme: light;
  --bg: #c3e9e9; --ink: #173c4a; --ink-2: #21495a; --muted: #3a5d69;
  --glass: #effafac4; --solid: #f1fafbf5; --control: #f3ffffb8;
  --line: rgba(23,60,74,.18); --line-2: rgba(23,60,74,.3);
  --accent: #286f9e; --accent-soft: #286f9e1a; --selected: #245e6b; --selected-ink: #ffffff;
  --gold: #e3a62b; --gold-ink: #1b1406;
  --band-a: #245e6b17; --band-b: #245e6b30; --band-ink: #173c4a;
  --face-bg: #d3ebeb; --shadow: 0 24px 65px #22616c26, 0 4px 12px #22616c12; --pop: 0 14px 60px #17384b26; } }
:root[data-theme="water"], :root[data-theme="light"]:not([data-look="sky"]), :root[data-look="water"] {
  color-scheme: light;
  --bg: #c3e9e9; --ink: #173c4a; --ink-2: #21495a; --muted: #3a5d69;
  --glass: #effafac4; --solid: #f1fafbf5; --control: #f3ffffb8;
  --line: rgba(23,60,74,.18); --line-2: rgba(23,60,74,.3);
  --accent: #286f9e; --accent-soft: #286f9e1a; --selected: #245e6b; --selected-ink: #ffffff;
  --gold: #e3a62b; --gold-ink: #1b1406;
  --band-a: #245e6b17; --band-b: #245e6b30; --band-ink: #173c4a;
  --face-bg: #d3ebeb; --shadow: 0 24px 65px #22616c26, 0 4px 12px #22616c12; --pop: 0 14px 60px #17384b26; }
:root[data-look="sky"] { color-scheme: dark; }

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); min-width: 280px; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
#sky { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 62% 42%, #0a1020 0%, #060a13 37%, #04060c 80%); }
.isWater #sky { background: radial-gradient(ellipse at 23% -12%, #f3fffaee, transparent 58%), linear-gradient(165deg, #d7f2ec 0%, #b1e2e3 42%, #80c3d1 100%); }
.shell { position: relative; z-index: 1; max-width: 1240px; margin: 0 auto; padding: 24px max(32px, env(safe-area-inset-right, 0px)) 56px max(32px, env(safe-area-inset-left, 0px)); }
button { font: inherit; color: inherit; cursor: pointer; touch-action: manipulation; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* шапка как на сайте */
.siteHead { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.siteHead .header-brand { margin-right: auto; }
.siteHead .back-link { font-size: 13px; color: var(--muted); text-decoration: none; min-height: 44px; display: flex; align-items: center; }
.siteHead .back-link:hover { color: var(--ink); }
.wordmark { font-size: 24px; font-weight: 650; letter-spacing: -1px; text-decoration: none; margin-right: auto; min-height: 44px; display: flex; align-items: center; }
.seg { display: flex; padding: 4px; gap: 3px; border: 1px solid var(--line); background: var(--glass); border-radius: 99px; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 1px 0 #ffffff12; }
.seg button { border: 0; background: transparent; border-radius: 99px; min-height: 40px; padding: 8px 14px; font-size: 13px; color: var(--muted); white-space: nowrap; }
/* анимация переключения только после первой отрисовки: при загрузке не мигает вкладка по умолчанию */
body.ready .seg button { transition: background .18s, color .18s; }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--selected); color: var(--selected-ink); box-shadow: 0 1px 5px #00000012, inset 0 1px 0 #ffffff38; }
.themes button { width: 44px; min-width: 44px; padding: 9px; display: grid; place-items: center; }
.themes svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; }

.titleRow { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 18px; }
.titleRow h1 { margin: 0; font-size: clamp(26px, 3.2vw, 38px); line-height: 1.15; font-weight: 500; letter-spacing: -.04em; text-wrap: balance; }
.titleRow p { margin: 0; color: var(--muted); font-size: 14px; }
#tabs { width: fit-content; margin-bottom: 16px; }
#tabs button { min-height: 44px; padding: 10px 20px; }

.glass { position: relative; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(22px) saturate(1.15); -webkit-backdrop-filter: blur(22px) saturate(1.15); border-radius: var(--radius-surface); padding: 22px; box-shadow: inset 0 1px 0 #ffffff10; min-width: 0; }
.glass h2 { margin: 0 0 14px; font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }

/* пульт даты */
.scrub { padding: 18px 22px 12px; margin-bottom: 16px; }
@media (min-width: 900px) and (min-height: 760px) { .scrub { position: sticky; top: calc(10px + env(safe-area-inset-top, 0px)); z-index: 20; background: var(--solid); } }
.dateRow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; }
.when { min-width: 0; flex: 1 1 300px; }
.when .d { font-size: 30px; font-weight: 500; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.when .pm { color: var(--muted); font-size: 14px; margin-top: 4px; }
.ctrls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.btn { border: 1px solid var(--line); background: var(--control); border-radius: var(--radius-control); min-height: 44px; padding: 0 14px; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--ink); }
.btn:hover { border-color: var(--line-2); }
.btn.primary { background: var(--selected); border-color: transparent; color: var(--selected-ink); }
.btn[disabled] { opacity: .4; cursor: default; }
input[type="date"], .search, select { min-height: 44px; border: 1px solid var(--line); background: var(--control); color: var(--ink); border-radius: var(--radius-control); padding: 0 12px; font: inherit; font-size: 14px; }
select option { background: var(--solid); color: var(--ink); }
.tl { position: relative; margin-top: 12px; touch-action: pan-y; }
.tl svg { display: block; width: 100%; overflow: visible; cursor: pointer; user-select: none; -webkit-user-select: none; }
.tl .band text { font-size: 11px; font-weight: 550; fill: var(--band-ink); pointer-events: none; }
.tl .axis text { font-size: 10.5px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.tl .axis line { stroke: var(--line); }
.hint { color: var(--muted); font-size: 12px; margin: 4px 0 0; }

.tip { position: fixed; z-index: 900; pointer-events: none; background: var(--solid); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-control); padding: 10px 14px; font-size: 12.5px; line-height: 1.6; box-shadow: var(--pop); max-width: 280px; backdrop-filter: blur(24px); }
.tip b { display: block; font-size: 14px; font-weight: 550; }
.tip span { color: var(--muted); display: block; }

/* состав */
.view[hidden] { display: none !important; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 16px; align-items: start; }
@media (max-width: 1000px) { .grid { grid-template-columns: minmax(0, 1fr); } }
.lead { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-bottom: 16px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.pmCard { display: flex; align-items: center; gap: 18px; text-align: left; border: 0; background: none; padding: 6px 28px 6px 12px; border-radius: 18px; }
.pmCard:hover { background: var(--accent-soft); }
.pmCard .ph { width: 92px; height: 92px; }
.pmCard .nm { font-size: 24px; font-weight: 550; letter-spacing: -.03em; line-height: 1.15; }
.pmCard .rl { color: var(--accent); font-weight: 500; font-size: 13px; letter-spacing: .02em; }
.pmCard .tn { color: var(--muted); font-size: 13px; margin-top: 2px; }
.deps { display: grid; justify-content: center; gap: 6px 4px; width: 100%; }
.deps .card { width: auto; }
.deps .card .ph { width: 64px; height: 64px; }
.blocks { display: grid; gap: 18px; }
.block h3 { margin: 0 0 8px; font-size: 13px; font-weight: 500; color: var(--muted); display: flex; align-items: baseline; gap: 8px; letter-spacing: .01em; }
.block h3 small { color: var(--muted); opacity: .7; font-size: 12px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 2px; }
.card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 8px 4px; border: 0; background: none; border-radius: 16px; min-width: 0; }
.card:hover { background: var(--accent-soft); }
.card .ph { width: 56px; height: 56px; }
.card .nm { font-weight: 600; font-size: 14px; line-height: 1.2; overflow-wrap: anywhere; }
.card .fn { font-weight: 400; color: var(--muted); font-size: 12px; display: block; }
.card .rl { color: var(--ink-2); font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; flex: 1 0 auto; }
/* срок в должности прижат к низу: в одном ряду строки «в должности …» на одной линии */
.card .tn { margin-top: auto; }
.card .tn { color: var(--muted); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.new { position: absolute; top: 6px; right: 8px; background: var(--gold); color: var(--gold-ink); font-size: 10.5px; font-weight: 600; padding: 2px 7px; border-radius: 99px; letter-spacing: .02em; }
.ph { display: block; flex: none; border-radius: 50%; background-color: var(--face-bg); background-repeat: no-repeat; box-shadow: 0 0 0 2px var(--line); }
.ph.new-ring { box-shadow: 0 0 0 2px var(--gold); }
.ph.none { background-image: none !important; position: relative; overflow: hidden; }
.ph.none::before { content: ""; position: absolute; left: 30%; top: 18%; width: 40%; height: 40%; border-radius: 50%; background: var(--muted); opacity: .4; }
.ph.none::after { content: ""; position: absolute; left: 14%; top: 62%; width: 72%; height: 60%; border-radius: 50% 50% 0 0; background: var(--muted); opacity: .4; }

.side { display: grid; gap: 16px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; }
.stat .v { font-size: 28px; font-weight: 500; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .k { color: var(--muted); font-size: 12.5px; line-height: 1.35; margin-top: 2px; }
.ev { display: grid; gap: 16px; }
.evDay { display: grid; gap: 8px; }
.evDay > button { justify-self: start; border: 0; background: none; padding: 0; font-weight: 550; font-size: 13px; color: var(--accent); min-height: 36px; text-align: left; }
.evDay.cur > button { color: var(--ink); }
.evDay .cur-note { color: var(--muted); font-weight: 400; }
.mile { font-size: 12.5px; color: var(--ink-2); background: var(--accent-soft); border-radius: 12px; padding: 7px 10px; }
.swap { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.swap .r { grid-column: 1 / -1; font-size: 12px; color: var(--muted); }
.col { display: grid; gap: 4px; }
.who { display: flex; align-items: center; gap: 8px; min-width: 0; border: 0; background: none; padding: 3px; border-radius: 10px; text-align: left; }
.who:hover { background: var(--accent-soft); }
.who .ph { width: 30px; height: 30px; box-shadow: none; }
.who span { font-size: 13px; font-weight: 550; line-height: 1.2; overflow-wrap: anywhere; }
.who.out span { color: var(--muted); font-weight: 400; text-decoration: line-through; text-decoration-color: var(--line-2); }
.arrow { color: var(--muted); font-size: 14px; }
.blank { color: var(--muted); font-size: 12.5px; }

/* карта ведомств */
.mapTools p { margin: 0 0 14px; color: var(--muted); font-size: 13.5px; line-height: 1.6; max-width: 860px; }
.scrollX { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.gantt text { font-size: 11px; }
.gantt .fam { font-size: 12.5px; font-weight: 500; fill: var(--ink-2); }
.gantt .seg { cursor: pointer; }
.gantt .seg rect.bar { stroke: var(--line-2); stroke-width: 1; transition: stroke .12s, filter .12s; }
/* наведение: контур и чуть ярче, имя остаётся видно */
.gantt .seg:hover rect.bar, .gantt .seg:focus-visible rect.bar { stroke: var(--accent); stroke-width: 1.5; filter: brightness(1.35); }
.gantt .seg:focus { outline: none; }
.gantt .seg.now rect.bar { stroke: var(--accent); stroke-opacity: .6; }
.gantt .famBtn { cursor: pointer; outline: none; }
.gantt .famBtn:hover .fam, .gantt .famBtn:focus-visible .fam { fill: var(--accent); }
.gantt .famBtn:focus-visible rect { stroke: var(--accent); stroke-width: 2; }
.tl .ylab { font-size: 10px; fill: var(--muted); }
.tl .ygrid { stroke: var(--line); stroke-dasharray: 2 3; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@keyframes flashCard { 0%, 100% { box-shadow: none; } 20%, 70% { box-shadow: 0 0 0 3px var(--gold); } }
.card.flash, .pmCard.flash { animation: flashCard 2.2s ease-in-out; background: var(--accent-soft); }
@media (min-width: 900px) and (min-height: 760px) { html { scroll-padding-top: 250px; } }
.gantt .seg text { fill: var(--band-ink); font-weight: 550; pointer-events: none; }
.gantt .seg text.ini { fill: var(--muted); font-weight: 500; font-size: 10.5px; }
.gantt .rowBand { fill: var(--accent-soft); opacity: .45; }
.mapTools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 12px; }
.mapTools p { margin: 0 !important; flex: 1 1 420px; }
.zoom button { min-height: 36px; padding: 6px 14px; }
.tapHint { display: flex; align-items: center; gap: 8px; margin: -4px 0 14px; font-size: 13px; color: var(--ink-2); }
.tapDot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 4px var(--accent-soft); }
@media (prefers-reduced-motion: no-preference) { .tapDot { animation: tapPulse 1.8s ease-in-out infinite; } }
@keyframes tapPulse { 50% { box-shadow: 0 0 0 7px transparent; } }
.card::after, .pmCard::after { content: "›"; position: absolute; right: 8px; bottom: 6px; font-size: 16px; line-height: 1; color: var(--accent); opacity: 0; transition: opacity .15s; }
.pmCard { position: relative; }
.pmCard::after { top: 50%; bottom: auto; transform: translateY(-50%); }
.card:hover::after, .card:focus-visible::after, .pmCard:hover::after, .pmCard:focus-visible::after { opacity: 1; }
.chev { color: var(--muted); font-size: 16px; margin-left: 2px; }
tbody tr:hover .chev { color: var(--accent); }
.gantt .grid line { stroke: var(--line); }
.gantt .grid text { fill: var(--muted); font-variant-numeric: tabular-nums; }
.ganttWrap { display: flex; }
.ganttWrap .labels { flex: none; }
.ganttWrap .scrollX { flex: 1 1 auto; min-width: 0; }
.swipe { display: none; color: var(--muted); font-size: 12px; margin: 0 0 8px; }

/* люди */
.peopleTools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.search { flex: 1 1 240px; min-width: 0; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr { cursor: pointer; }
tbody tr:hover { background: var(--accent-soft); }
td.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.pcell { display: flex; align-items: center; gap: 10px; min-width: 190px; }
.pcell .ph { width: 36px; height: 36px; box-shadow: none; }
.pcell b { display: block; font-weight: 600; }
.posts { color: var(--ink-2); font-size: 12.5px; min-width: 200px; }
.bar { display: flex; align-items: center; gap: 8px; min-width: 150px; }
.bar i { display: block; height: 6px; border-radius: 0 3px 3px 0; background: var(--accent); }
.postsInline, .thShort, .tShort { display: none; }
.thBtn { border: 0; background: none; padding: 4px 0; font: inherit; font-size: 12px; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; }
.thBtn:hover, th[aria-sort="ascending"] .thBtn, th[aria-sort="descending"] .thBtn { color: var(--ink); }
.thBtn .arr { color: var(--accent); }
.onlyNow[aria-pressed="true"] { background: var(--selected); color: var(--selected-ink); border-color: transparent; }
.metric { display: block; font-size: 12px; color: var(--accent); margin-top: 2px; }
@media (max-width: 700px) { .tLong { display: none; } .tShort { display: inline; } }

/* карточка человека */
.veil { position: fixed; inset: 0; background: #030a16b8; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); z-index: 60; }
.isWater .veil { background: #17384b40; }
.drawer { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(470px, 100%); background: var(--solid); backdrop-filter: blur(24px); border-left: 1px solid var(--line); overflow-y: auto; padding: env(safe-area-inset-top, 0px) max(22px, env(safe-area-inset-right, 0px)) calc(28px + env(safe-area-inset-bottom, 0px)) 22px; box-shadow: var(--pop); }
.drawer .xbar { position: sticky; top: 0; z-index: 2; display: flex; justify-content: flex-end; align-items: center; gap: 8px; padding: 10px 0 6px; background: linear-gradient(var(--solid) 75%, transparent); }
.dLangs { display: flex; margin-right: auto; }
.dLangs .languages { display: flex; gap: 2px; }
.dLangs > .languages, .dLangs:not(:has(.languages)) { padding: 3px; border: 1px solid var(--line); border-radius: 99px; background: var(--control); gap: 2px; }
.dLangs a, .dLangs button { display: inline-flex; align-items: center; min-height: 38px; padding: 4px 12px; border: 0; border-radius: 99px; background: none; color: var(--muted); font-size: 12.5px; text-decoration: none; }
.dLangs [aria-current="true"], .dLangs [aria-pressed="true"] { background: var(--selected); color: var(--selected-ink); }
.drawer .x { margin-top: 0; width: 44px; height: 44px; padding: 0; border-radius: 50%; font-size: 18px; background: var(--solid); }
.drawer .head { display: flex; gap: 16px; align-items: center; margin: 4px 0 16px; }
.drawer .head .ph { width: 96px; height: 96px; }
.drawer h2 { margin: 0; font-size: 22px; font-weight: 550; letter-spacing: -.03em; line-height: 1.15; }
.drawer h3 { margin: 22px 0 8px; font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.drawer .sum { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
.bioText { margin: 0; font-size: 15px; line-height: 1.65; max-width: 62ch; text-wrap: pretty; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 5px 14px; margin: 12px 0 0; font-size: 13.5px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.links { display: flex; flex-wrap: wrap; gap: 6px; font-size: 12.5px; margin-top: 8px; }
.links a { display: inline-flex; align-items: center; min-height: 40px; padding: 4px 12px; border: 1px solid var(--line); border-radius: 99px; text-decoration: none; color: var(--ink); background: var(--control); }
.links a:hover { border-color: var(--line-2); }
.life { margin: 6px 0 4px; }
.life svg { display: block; width: 100%; }
.postList { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.postList li { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.postList .t { font-weight: 550; font-size: 14px; }
.postList .d { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.postList button { grid-row: 1 / span 2; grid-column: 2; align-self: center; min-height: 36px; font-size: 12.5px; }
.credit { color: var(--muted); font-size: 12px; margin-top: 16px; overflow-wrap: anywhere; line-height: 1.7; }
.credit a { text-decoration: underline; text-underline-offset: 3px; }

.foot { color: var(--muted); font-size: 12px; line-height: 1.7; margin-top: 18px; padding: 16px 22px; }
.foot p { max-width: 900px; margin: 0 0 6px; }
.mbar { display: none; }

@media (max-width: 700px) {
  body { font-size: 14.5px; padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  body.noBar { padding-bottom: env(safe-area-inset-bottom, 0px); }
  .shell { padding: 14px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px)); }
  .siteHead { gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
  .wordmark { font-size: 22px; }
  .seg button { padding: 8px 10px; font-size: 12.5px; }
  .themes button { width: 40px; min-width: 40px; padding: 8px; }
  .langs button { padding: 8px 9px; }
  .titleRow { margin-bottom: 12px; }
  /* на телефоне место под данные: дата и премьер есть в нижней панели, длинное пояснение карты заменено короткой строкой */
  .when .pm, .mapTools p { display: none; }
  .titleRow p { font-size: 12px; }
  .card { box-shadow: inset 0 0 0 1px var(--line); }
  .card .rl, .card .fn { font-size: 12px; }
  .mapTools { margin-bottom: 8px; }
  .zoom { width: 100%; }
  .zoom button { flex: 1 1 0; }
  .tapHint { font-size: 12.5px; margin-bottom: 10px; }
  .card::after, .pmCard::after { opacity: .7; }
  .titleRow h1 { font-size: 26px; }
  .titleRow p { font-size: 12px; }
  #tabs { width: 100%; }
  #tabs button { flex: 1 1 auto; padding: 8px 6px; font-size: 13px; }
  .glass { padding: 14px 12px; border-radius: 20px; }
  .scrub { padding: 14px 14px 10px; }
  .when .d { font-size: 24px; }
  .when .pm { font-size: 13px; }
  .ctrls { width: 100%; flex-wrap: nowrap; }
  #prev, #next { display: none !important; }
  .ctrls .btn .lbl { display: none; }
  #today .lbl { display: inline; }
  .ctrls .btn { min-width: 44px; padding: 0 12px; }
  #datePick { flex: 1 1 auto; min-width: 0; font-size: 16px; }
  .hint { display: block; font-size: 11.5px; }
  .grid, .side { gap: 12px; }
  .pmCard { gap: 12px; padding: 4px; }
  .pmCard .ph { width: 76px; height: 76px; }
  .pmCard .nm { font-size: 19px; }
  .deps { gap: 2px; }
  .deps .card { width: auto; }
  .deps .card .ph { width: 60px; height: 60px; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
  .card { padding: 8px 2px; }
  .card .ph { width: 52px; height: 52px; }
  .card .nm { font-size: 13px; }
  .card .rl, .card .fn { font-size: 11.5px; }
  .card .tn { font-size: 11px; }
  .new { top: 4px; right: 4px; }
  .stat .v { font-size: 24px; }
  .swipe { display: block; }
  #peopleTable { table-layout: fixed; }
  #peopleTable th:nth-child(2), #peopleTable td:nth-child(2), #peopleTable th:nth-child(3), #peopleTable td:nth-child(3) { display: none; }
  #peopleTable th:nth-child(4), #peopleTable td:nth-child(4) { width: 92px; white-space: normal; text-align: right; }
  .thLong { display: none; } .thShort { display: inline; }
  .postsInline { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--ink-2); font-size: 12px; line-height: 1.35; margin-top: 2px; }
  .pcell { min-width: 0; align-items: flex-start; }
  .pcell .ph { width: 40px; height: 40px; }
  .pcell b { overflow-wrap: anywhere; }
  .bar { min-width: 0; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right; font-size: 12.5px; }
  .bar i { max-width: 70px; }
  td { padding: 10px 4px; }
  .peopleTools select { flex: 1 1 100%; min-width: 0; max-width: 100%; width: 100%; font-size: 16px; }
  .search { font-size: 16px; }
  .mbar { display: flex; position: fixed; z-index: 25; left: 0; right: 0; bottom: 0; align-items: center; gap: 8px;
    background: var(--solid); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border-top: 1px solid var(--line); box-shadow: var(--pop);
    padding: 8px max(12px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(12px, env(safe-area-inset-left, 0px)); }
  .mbar[hidden] { display: none; }
  .mbar .btn { width: 52px; height: 48px; font-size: 22px; padding: 0; flex: none; border-radius: 16px; }
  .mbar .mid { flex: 1 1 auto; min-width: 0; text-align: center; border: 0; background: none; padding: 2px; }
  .mbar .mid b { display: block; font-size: 15px; font-weight: 550; font-variant-numeric: tabular-nums; }
  .mbar .mid span { display: block; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .drawer { padding-left: 16px; padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  .drawer .head .ph { width: 76px; height: 76px; }
  .drawer h2 { font-size: 20px; }
  .foot { padding: 12px 4px; }
}
@media (max-width: 380px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .langs button { padding: 8px 7px; } }
@media (prefers-reduced-motion: no-preference) { .card, .who, .pmCard { transition: background .15s; } }
/* «Download» and «Share» (dashboards/shared/share.css) at the right end of the date line */
.when { position: relative; padding-right: 96px; }
.govShare { position: absolute; top: -6px; right: 0; }

/* «Download» and «Share» icons of the aqqqulaq.com dashboards (share.js), like Our World in Data: two quiet icons, a short menu
   next to them that never leaves the screen, the embed code in a panel. Uses the site's tokens with fallbacks:
   --ink, --muted, --line, --accent, --surface/--solid. Prices and the parliament carry the same rules in their own CSS. */
.shareBox { position: relative; }
.shareBar { display: flex; align-items: center; justify-content: flex-end; gap: 2px; min-height: 44px; }
.shareAnchor { position: relative; }
.shareIcon { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 12px;
  background: none; color: var(--muted, #9baac2); cursor: pointer; padding: 0; }
.shareIcon[aria-expanded="true"] { background: var(--control, rgba(127,127,127,.14)); border-color: var(--line, rgba(127,127,127,.3)); color: var(--ink, inherit); }
@media (hover: hover) { .shareIcon:hover { color: var(--ink, inherit); background: var(--control, rgba(127,127,127,.14)); } }
.shareMenu { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 60; min-width: 230px; max-width: min(300px, calc(100vw - 40px)); padding: 6px;
  background: var(--solid, var(--surface, #0f1828)); border: 1px solid var(--line, rgba(127,127,127,.3)); border-radius: 14px; box-shadow: 0 18px 40px rgba(0,0,0,.35); }
.shareBox.down .shareMenu { bottom: auto; top: calc(100% + 6px); }
.shareMenuHead { margin: 4px 10px 6px; font-size: 12.5px; font-weight: 600; color: var(--muted, #9baac2); }
.shareItem { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: none;
  color: var(--ink, inherit); font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.shareItem svg { flex: none; color: var(--muted, #9baac2); }
@media (hover: hover) { .shareItem:hover { background: var(--control, rgba(127,127,127,.14)); } }
.shareItem:focus-visible, .shareIcon:focus-visible { outline: 2px solid var(--accent, #81bceb); outline-offset: 1px; }
.shareStatus { position: absolute; right: 0; bottom: calc(100% + 4px); z-index: 61; padding: 5px 10px; border-radius: 10px; background: var(--solid, var(--surface, #0f1828));
  border: 1px solid var(--line, rgba(127,127,127,.3)); font-size: 13px; color: var(--ink, inherit); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.shareStatus.on { opacity: 1; }
.shareBox.down .shareStatus { bottom: auto; top: calc(100% + 4px); }
.shareEmbed { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line, rgba(127,127,127,.3)); border-radius: 14px; background: var(--solid, var(--surface, #0f1828));
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; width: min(520px, calc(100vw - 40px)); }
.shareEmbedHead { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.shareHint { margin: 0; font-size: 13px; color: var(--muted, #9baac2); }
.shareClose { flex: none; width: 44px; height: 44px; margin: -10px -10px 0 0; border: 0; background: none; color: var(--muted, #9baac2); font-size: 22px; cursor: pointer; }
.shareEmbed textarea { width: 100%; min-height: 96px; resize: vertical; border: 1px solid var(--line, rgba(127,127,127,.3)); background: transparent; color: var(--ink, inherit);
  box-sizing: border-box; border-radius: 10px; padding: 10px 12px; font: 12.5px/1.45 ui-monospace, SFMono-Regular, Consolas, monospace; }
.shareTools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.shareCopy { min-height: 44px; padding: 0 16px; border: 1px solid var(--line, rgba(127,127,127,.3)); border-radius: 12px; background: var(--selected, transparent);
  color: var(--selected-ink, var(--ink, inherit)); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.shareManual { width: 100%; margin-top: 8px; min-height: 44px; font-size: 16px; box-sizing: border-box; }
@media (pointer: coarse) { .shareItem.wide { display: none; } }
