@font-face {
  font-family: Onest;
  src: url("Onest.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  color-scheme: light;
  --paper: #fcfcfd;
  --paper-2: #f1f2f4;
  --ink: #1a1b1f;
  --ink-2: #5d5f66;
  --ink-3: #6b6d74;
  --accent: #006b80;
  --flag-blue-rgb: 0 171 194;
  --flag-blue: rgb(var(--flag-blue-rgb));
  --flag-gold: #ffec2d;
  --gold-ink: #866900;
  --rule: rgba(26, 27, 31, .22);
  --rule-soft: rgba(26, 27, 31, .09);
  --grid: rgba(26, 27, 31, .06);
  font: 14px/1.45 Onest, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { position: relative; margin: 0; background: var(--paper); color: var(--ink); }
body::before { content: ""; display: block; height: 3px; background: var(--flag-blue); }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button, select, summary { cursor: pointer; }
a { color: var(--accent); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button:disabled { color: var(--ink-3); opacity: .6; cursor: default; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shell { width: 92%; max-width: 1440px; margin-inline: auto; }
.masthead { display: flex; align-items: center; gap: 28px; min-height: 80px; padding: 18px 0; border-bottom: 1px solid var(--ink); }
.wordmark { flex: 0 0 217px; border-right: 1px solid var(--rule); padding-right: 28px; text-decoration: none; color: var(--ink-3); }
.wordmark img { display: block; width: 188px; max-width: 100%; height: auto; }
.wordmark span { display: block; font-size: 11px; letter-spacing: .02em; margin-top: 3px; }
.masthead-title { position: relative; padding-right: 56px; }
.masthead h1 { font-size: 22px; font-weight: 600; line-height: 1.06; letter-spacing: -.03em; }
.masthead h1 span { font-weight: 500; color: var(--ink-2); }
.shanyrak { position: absolute; right: 0; top: 50%; width: 38px; height: 38px; transform: translateY(-50%); }
.tagline, .kpi > span, .section-heading p, .panel-heading p { color: var(--ink-3); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.tagline { margin-top: 4px; }
.report-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 16px; margin-left: auto; }
.report-link { color: var(--ink-2); text-decoration: none; font-size: 13px; font-weight: 500; }
.report-link:hover { color: var(--accent); }
.ornament-band { height: 20px; margin-top: 4px; background: url("ornament-band.svg") center / 44px 20px repeat-x; opacity: .8; }
.ornament-band--footer { margin-top: 56px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 4px; padding: 18px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.kpi { border-left: 1px solid var(--rule-soft); padding: 0 18px; }
.kpi:first-child { padding-left: 0; border-left: 0; }
.kpi > span { display: block; }
.kpi strong { display: block; font-size: 36px; line-height: 1; font-weight: 500; font-variant-numeric: tabular-nums; margin-top: 6px; white-space: nowrap; }
.controls { display: grid; grid-template-columns: 2fr repeat(3, 1fr) 1.24fr auto; align-items: stretch; gap: 8px; margin-top: 24px; }
.filters { display: contents; }
.control-actions { display: flex; gap: 8px; }
.controls > input, .control-button, .sort-label select, .filter summary {
  min-width: 0; min-height: 40px; padding: 9px 12px; border: 1px solid var(--rule); background: transparent; font-size: 13px; line-height: 20px;
}
.controls > input::placeholder { color: var(--ink-3); opacity: 1; }
.control-button { white-space: nowrap; padding-inline: 14px; }
.control-button:hover:not(:disabled), .filter summary:hover, .filter[open] summary, .sort-label select:hover { border-color: var(--ink); }
.sort-label { display: block; position: relative; min-width: 0; }
.sort-label select { display: block; appearance: none; width: 100%; height: 40px; padding-right: 25px; }
.sort-label::after, .filter summary::after { content: ""; border: 3px solid transparent; border-bottom: 0; border-top-color: var(--ink-3); pointer-events: none; }
.sort-label::after { position: absolute; right: 12px; top: 19px; }
.filter { position: relative; min-width: 0; }
.filter summary { display: flex; align-items: center; justify-content: space-between; gap: 5px; list-style: none; }
.filter summary::-webkit-details-marker { display: none; }
.filter summary span { margin-left: auto; color: var(--accent); font-weight: 600; }
.dropdown { position: absolute; z-index: 5; left: 0; top: calc(100% + 5px); width: min(260px, 74vw); background: var(--paper); border: 1px solid var(--rule); box-shadow: 0 4px 14px var(--grid); padding: 10px; }
.dropdown input[type=search] { width: 100%; padding: 6px 8px; border: 1px solid var(--rule); background: transparent; }
.dropdown-actions { display: flex; gap: 10px; }
.dropdown-actions button { border: 0; padding: 5px 0; background: transparent; color: var(--ink-3); font-size: 12px; }
.dropdown-actions button:hover { color: var(--accent); }
.option-list { max-height: 235px; overflow: auto; }
.option-list label { display: flex; gap: 7px; align-items: start; padding: 5px 2px; font-size: 13px; cursor: pointer; }
.option-list label:hover { background: var(--paper-2); }
.option-list input { accent-color: var(--accent); }
.analytics { margin-top: 28px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-bottom: 1px solid var(--ink); padding-bottom: 10px; }
.section-heading > div:first-child { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 14px; }
.section-heading h2, .callout h2 { font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.text-button { border: 0; padding: 0; background: none; font-size: 11px; color: var(--ink-2); white-space: nowrap; }
.text-button:hover, .text-button[aria-pressed=true] { color: var(--accent); text-decoration: underline; }
.yearly-scroll, .heatmap, .table-scroll { overflow-x: auto; }
.yearly-scroll { margin-top: 18px; }
.year-bars { display: grid; grid-template-columns: repeat(var(--year-count), minmax(52px, 1fr)); gap: 4px; height: 150px; align-items: end; }
.year-bucket { display: flex; flex-direction: column; align-items: center; justify-content: end; gap: 4px; height: 100%; background: none; border: 0; padding: 0; color: var(--ink-2); font-size: 11px; letter-spacing: .03em; }
.year-bucket:hover, .year-bucket[aria-pressed=true] { background: var(--grid); }
.bar-area { display: flex; align-items: center; flex-direction: column; gap: 4px; }
.bar-area b { font-weight: 600; color: var(--ink); }
.bar-area i { width: 56px; max-width: 7vw; height: var(--bar-height); border: 1px solid var(--accent); background: repeating-linear-gradient(-45deg, rgb(var(--flag-blue-rgb) / .63) 0 1.5px, transparent 1.5px 7px); }
.year-bucket[data-current=true] .bar-area i { border-color: var(--gold-ink); background: repeating-linear-gradient(-45deg, rgb(255 236 45 / .8) 0 2px, transparent 2px 7px); }
.year-bucket[data-current=true] .year-extra { color: var(--ink-3); font-size: 9px; text-transform: lowercase; }
.bar-year { margin-top: 2px; }
.year-extra { height: 10px; line-height: 10px; }
.chart-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px; margin-top: 36px; }
.chart { position: relative; min-width: 0; border-top: 1px solid var(--ink); padding-top: 16px; }
.chart::before {
  content: ""; position: absolute; top: -7px; right: 0; width: 24px; height: 14px; padding-inline: 6px; box-sizing: content-box;
  background: var(--paper) url("horn.svg") center / 24px 14px no-repeat;
}
.panel-heading { margin-bottom: 13px; }
.panel-heading h3 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.panel-heading p { margin-top: 3px; }
.heat-table { border-collapse: separate; border-spacing: 1px; width: 100%; font-size: 11px; }
.heat-table th { color: var(--ink-2); font-size: 11px; font-weight: 400; text-align: center; height: 26px; }
.heat-table th[scope=row] { text-align: left; padding: 4px 8px; color: var(--ink-2); font-size: 12px; min-width: 134px; }
.heat-tile { width: 100%; padding: 3px 4px; min-width: 25px; min-height: 26px; border: 0; background: var(--paper-2); color: var(--text, var(--ink)); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.heat-tile[data-count] { background: rgb(var(--flag-blue-rgb) / var(--heat-strength)); }
.heat-tile:hover { box-shadow: inset 0 0 0 1px var(--accent); }
.buyers { display: grid; }
.buyer-row { display: grid; grid-template-columns: 20px minmax(0, 1fr) 50px; align-items: center; gap: 8px; padding: 3px 0 4px; min-height: 39px; background: transparent; border: 0; border-bottom: 1px solid var(--rule-soft); text-align: left; font-size: 12px; }
.buyer-row:hover, .buyer-row[aria-pressed=true] { background: var(--grid); }
.buyer-rank { color: var(--ink-3); font-variant-numeric: tabular-nums; font-size: 11px; }
.buyer-main { min-width: 0; display: grid; gap: 2px; }
.buyer-main span { text-overflow: ellipsis; overflow: hidden; white-space: nowrap; font-weight: 500; }
.buyer-main i { position: relative; display: block; background: var(--grid); height: 6px; }
.buyer-main i::after { content: ""; display: block; height: 100%; width: var(--width); background: var(--flag-blue); }
.buyer-row:first-child .buyer-main i::after { border-right: 4px solid var(--flag-gold); }
.buyer-row b { text-align: right; font-size: 11px; font-weight: 600; }
.registry { margin-top: 36px; }
#status-filter .filter summary { min-height: 27px; padding: 2px 7px; font-size: 11px; }
#status-filter .dropdown { left: auto; right: 0; }
.table-scroll { margin-top: 16px; }
.deal-table { width: 100%; min-width: 905px; table-layout: fixed; border-collapse: collapse; text-align: left; font-size: 12px; }
.date-col { width: 7%; }
.company-col { width: 16%; }
.party-col { width: 15%; }
.sector-col { width: 10%; }
.type-col { width: 11%; }
.amount-col { width: 12%; }
.stake-col { width: 6%; }
.source-col { width: 8%; }
.deal-table th { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .03em; color: var(--ink-2); border-bottom: 1px solid var(--ink); }
.deal-table th, .deal-table td { padding: 9px 8px; vertical-align: top; }
.deal-table td { border-bottom: 1px solid var(--rule-soft); color: var(--ink-2); overflow-wrap: break-word; }
.deal-table tbody tr:hover { background: var(--grid); }
.deal-table tbody tr[data-id] { cursor: pointer; }
.deal-table th button { border: 0; padding: 0; background: none; text-transform: inherit; letter-spacing: inherit; }
.deal-table td:nth-child(1), .deal-table td:nth-child(7), .deal-table td:nth-child(8) { font-variant-numeric: tabular-nums; }
.deal-table td:nth-child(1) { white-space: nowrap; }
.deal-table td:nth-child(7) { color: var(--ink); }
.deal-table td:nth-child(8), .deal-table th:nth-child(8) { text-align: right; }
.deal-table td:nth-child(5) { color: var(--ink-3); }
.deal-button { background: none; border: 0; padding: 0; text-align: left; color: var(--ink); font-weight: 600; }
.deal-button:hover { color: var(--accent); }
.source:hover { text-decoration-color: currentColor; }
.source { color: var(--accent); font-size: 11px; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 2px; }
.status, .deal-type { display: inline-block; padding: 1px 5px; border: 1px solid var(--rule); line-height: 1.25; font-size: 11px; color: var(--ink-2); }
.deal-type { color: var(--ink); border-color: var(--ink); font-weight: 500; }
.deal-type.rumor { border-style: dashed; }
.deal-type.negotiation, .deal-type.other { border-color: var(--rule); color: var(--ink-2); }
.deal-type.investment { border-color: var(--accent); }
.status.active, .status.denied { border-style: dashed; }
.row-status { margin-top: 3px; }
.empty { padding: 20px 8px; color: var(--ink-3); }
.pagination { display: flex; justify-content: center; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 22px; color: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.pagination > div { display: flex; align-items: center; gap: 5px; }
.pagination button { width: 31px; height: 29px; border: 1px solid var(--rule); background: transparent; }
.pagination button[aria-current=page] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pagination button:not(:disabled):hover { border-color: var(--ink); }
#page-info { margin-left: 8px; }
.callout { position: relative; overflow: hidden; display: grid; grid-template-columns: 3fr 1fr; align-items: center; column-gap: 22px; margin-top: 56px; padding: 28px 0 30px; border-top: 1px solid var(--ink); }
.callout > div, .callout > a { position: relative; z-index: 1; }
.callout .callout-label { margin-bottom: 6px; color: var(--gold-ink); font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; }
.callout-sun { position: absolute; right: -36px; top: 50%; width: 230px; height: 230px; transform: translateY(-50%); opacity: .4; pointer-events: none; }
.callout p { max-width: 465px; margin-top: 7px; color: var(--ink-2); }
.callout a { text-decoration: none; font-size: 14px; }
.callout a:hover { text-decoration: underline; }
.footer { display: flex; justify-content: space-between; gap: 12px; margin-top: 4px; padding: 20px 0 32px; border-top: 1px solid var(--rule); color: var(--ink-3); font-size: 12px; }
.footer a { color: var(--ink-2); text-decoration: none; }
.footer [lang=kk] { color: var(--gold-ink); }
.callout + * { margin: 0; }
dialog { margin: 0 0 0 auto; width: min(560px, 100%); height: 100%; max-height: 100%; border: 0; border-left: 1px solid var(--rule); padding: 26px; color: var(--ink); background: var(--paper) url("ornament-band.svg") 0 18px / 44px 20px repeat-x; }
dialog::backdrop { background: rgba(26,27,31,.24); }
.dialog-header { display: flex; align-items: center; justify-content: flex-end; margin-top: 20px; }
.close-button { background: var(--paper) !important; }
.close-button { border: 1px solid var(--rule); background: none; height: 32px; width: 32px; font-size: 22px; line-height: 1; }
dialog h2 { margin: 12px 0; font-size: 22px; font-weight: 600; overflow-wrap: break-word; }
dialog dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 12px; margin: 0 0 16px; padding: 14px 0; border-block: 1px solid var(--rule); font-size: 13px; }
dialog dt { color: var(--ink-2); }
dialog dd { margin: 0; overflow-wrap: break-word; }
#detail-description p { margin-bottom: 10px; }
#detail-source { margin-top: 12px; font-size: 13px; }
.cards { display: none; }
.deal-card { padding: 14px 0; border-bottom: 1px solid var(--rule-soft); cursor: pointer; }
.deal-card .card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 6px; }
.deal-card .card-name { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-size: 16px; font-weight: 600; letter-spacing: -.02em; text-align: left; overflow-wrap: break-word; cursor: pointer; }
.deal-card:hover .card-name { color: var(--accent); }
.deal-card .card-head .deal-type { flex: none; }
.deal-card .card-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; color: var(--ink-3); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.deal-card .card-row { margin-top: 4px; color: var(--ink-2); font-size: 13px; overflow-wrap: break-word; }
.deal-card .card-row .lbl { margin-right: 6px; color: var(--ink-3); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; }
.deal-card .row-status { margin-top: 6px; }
@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 12px 0; }
  .kpi:nth-child(odd) { border-left: 0; padding-left: 0; }
  .deal-table { display: none; }
  .cards { display: block; }
  .table-scroll { margin-top: 4px; overflow: visible; }
}
@media (max-width: 1050px) {
  .controls { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .controls > input { grid-column: span 2; }
  .control-actions { grid-column: span 2; justify-content: flex-end; }
  #filters .filter:nth-child(2) .dropdown { left: auto; right: 0; }
  .chart-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 18px; }
}
@media (max-width: 740px) {
  .masthead { flex-wrap: wrap; gap: 12px 18px; }
  .wordmark { flex-basis: auto; border-right: 0; padding-right: 0; }
  .wordmark img { width: 155px; }
  .masthead-title { flex: 1 0 54%; padding-right: 39px; }
  .shanyrak { width: 30px; height: 30px; }
  .callout-sun { right: 0; width: 180px; height: 180px; opacity: .22; }
  .masthead h1 { font-size: 19px; }
  .report-links { justify-content: flex-start; margin-left: 0; }
  .kpi { padding-inline: 9px; }
  .kpi strong { font-size: clamp(17px, 4.7vw, 30px); }
  .chart-grid { grid-template-columns: 1fr; }
  .footer { flex-wrap: wrap; }
}
@media (max-width: 500px) {
  .shell { width: calc(100% - 30px); }
  .masthead-title { flex-basis: 100%; }
  .kpis { grid-template-columns: repeat(2, 1fr); gap: 12px 0; }
  .kpi:nth-child(odd) { border-left: 0; padding-left: 0; }
  .kpi strong { font-size: 27px; }
  .controls { grid-template-columns: minmax(0, 1fr); }
  .controls > input, .control-button, .sort-label select, .filter summary { min-height: 44px; }
  .control-actions { gap: 8px; }
  .control-actions button { flex: 1; min-width: 0; }
  .section-heading { align-items: start; flex-wrap: wrap; }
  .callout { grid-template-columns: 1fr; row-gap: 12px; }
  .report-link { display: inline-flex; align-items: center; min-height: 44px; }
  .pagination button { width: 44px; height: 44px; }
  .pagination { margin-bottom: 8px; }
}

@media (max-width: 600px) {
  dialog { padding: 20px; }
  dialog dl { grid-template-columns: minmax(0, 1fr); gap: 0; }
  dialog dt { margin-top: 10px; color: var(--ink-3); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
  dialog dt:first-child { margin-top: 0; }
  dialog dd { margin-top: 2px; font-size: 15px; }
}
