@font-face {
  font-family: "Golos Text";
  src: url("./fonts/GolosText[wght].ttf") format("truetype-variations");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "PT Mono";
  src: url("./fonts/PTMono-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #fafaf8;
  --panel: #ffffff;
  --text: #1f242a;
  --secondary: #5b636b;
  --muted: #8a9199;
  --line: #e6e8e7;
  --line-soft: #eef0ef;
  --near: #2b4a75;
  --mid: #1e6e62;
  --far: #6b6880;
  --accent: #a96b12;
  --footer: #16212c;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 14px/1.5 "Golos Text", system-ui, sans-serif;
}

button, input { font: inherit; }
button { color: inherit; }
.mono, .summary-number { font-family: "PT Mono", ui-monospace, monospace; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 10px 28px;
  background: rgba(250, 250, 248, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  min-width: 214px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.brand__mark {
  width: 27px;
  height: 27px;
  display: inline-grid;
  place-items: center;
}

.brand__mark svg { width: 27px; height: 27px; overflow: visible; display: block; }
.brand__mark circle { fill: none; stroke: #c9cdcf; stroke-width: 1; }
.brand__mark circle:nth-child(2) { stroke: #e2e5e4; stroke-width: .8; }
.brand__sweep { transform-origin: 14px 14px; animation: rdSweep 4s linear infinite; }
.brand__sweep path { fill: rgba(43, 74, 117, .12); }
.brand__sweep line { stroke: rgba(43, 74, 117, .55); stroke-width: 1; }
.brand__blip { stroke: 0; opacity: 0; animation: rdLogoBlip 4s linear infinite; }
.brand__blip.b1 { fill: var(--near); animation-delay: -2.56s; }
.brand__blip.b2 { fill: var(--mid); animation-delay: -1.22s; }
.brand__blip.b3 { fill: var(--far); animation-delay: -3.78s; }
.brand__title { display: block; font-weight: 600; font-size: 16.5px; line-height: 1.1; }
.brand__subtitle { display: block; color: var(--muted); font-size: 10.5px; line-height: 1.2; margin-top: 2px; }

.topbar__right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.issue-date { color: #4a525a; font-size: 12px; white-space: nowrap; }

.segments {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.segment {
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-left: 1px solid var(--line);
  background: #fff;
  cursor: pointer;
}

.segment:first-child { border-left: 0; }
.segment.is-active { background: var(--text); color: var(--bg); }

.search {
  width: 236px;
  height: 32px;
  display: flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: #fff;
  color: var(--muted);
}

.search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.page {
  max-width: 1400px;
  margin: 0 auto;
  padding: 18px 28px 48px;
}

.filters {
  display: grid;
  gap: 8px;
  padding: 10px 0 16px;
  border-bottom: 1px solid var(--line);
}

.filter-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.filter-label { width: 62px; color: var(--muted); font-size: 11px; }
.chipline { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.divider { width: 1px; height: 22px; margin: 0 4px; background: var(--line); }

.chip {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 0 9px;
  cursor: pointer;
}

.chip:hover { background: rgba(31, 36, 41, .05); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip-near.is-active { background: var(--near); border-color: var(--near); }
.chip-mid.is-active { background: var(--mid); border-color: var(--mid); }
.chip-far.is-active { background: var(--far); border-color: var(--far); }

.reset, .link-button {
  border: 0;
  background: transparent;
  color: var(--near);
  cursor: pointer;
  padding: 0;
}

.reset:hover, .link-button:hover { color: #1b3355; text-decoration: underline; }
.active-filter { padding-left: 69px; color: var(--secondary); font-size: 12px; }

.summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin: 24px 0 32px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.summary-grid > div {
  min-width: 0;
  min-height: 88px;
  padding: 14px 16px;
  border-left: 1px solid var(--line-soft);
}

.summary-grid > div:first-child { border-left: 0; }
.summary-label { display: block; color: var(--muted); font-size: 11px; }
.summary-number { display: block; margin-top: 5px; font-size: 25px; line-height: 1.15; }
.summary-grid small { display: block; margin-top: 3px; color: var(--muted); font-size: 11px; }
.perimeters { color: var(--text); }
.near-text { color: var(--near); }
.mid-text { color: var(--mid); }
.far-text { color: var(--far); }

.sparkline {
  height: 42px;
  display: flex;
  align-items: end;
  gap: 3px;
  padding-top: 8px;
}

.sparkline span {
  flex: 1;
  min-width: 2px;
  border-radius: 2px 2px 0 0;
  background: #d5dad9;
}

.sparkline .is-last { background: var(--near); }

.today {
  display: grid;
  grid-template-columns: 1fr 298px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 36px;
  padding: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
}

h1, h2 {
  margin: 0 0 14px;
  font-size: 17px;
  line-height: 1.25;
  font-weight: 600;
}

.theses { display: grid; gap: 10px; }
.thesis {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.thesis:first-child { border-top: 0; padding-top: 0; }
.thesis__num { color: var(--near); font-family: "PT Mono", monospace; font-size: 12px; }
.thesis strong { font-weight: 600; }

.radar-panel {
  min-height: 268px;
  display: grid;
  grid-template-rows: auto 1fr;
  border-left: 1px solid var(--line-soft);
  padding-left: 16px;
  overflow: visible;
}

.radar-viz {
  min-height: 228px;
  display: grid;
  place-items: center;
  overflow: visible;
}
.radar-widget {
  width: 100%;
  display: grid;
  place-items: center;
  overflow: visible;
}
.radar-svg {
  width: 100%;
  display: block;
  overflow: visible;
}
.radar-svg text { font-family: "Golos Text", sans-serif; fill: var(--muted); }
.radar-num { font-family: "PT Mono", monospace !important; fill: var(--text) !important; }
.radar-caption { fill: var(--muted); }
.radar-sonar { max-width: 240px; }
.radar-share { max-width: 212px; }
.radar-ring { max-width: 260px; }
.sonar-sweep { transform-origin: 120px 120px; animation: rdSweep 8s linear infinite; }
.sonar-blip {
  opacity: .8;
  transform-box: fill-box;
  transform-origin: center;
  animation: rdBlip 8s linear infinite;
}
.share-track { fill: none; stroke: #e9ebea; stroke-width: 10; }
.share-mark { stroke: #b3b9be; stroke-width: 1.5; }
.share-arc {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: var(--arc) var(--gap);
}
.share-arc-near { animation: rdArc1 1s ease-out .1s backwards; }
.share-arc-mid { animation: rdArc2 1s ease-out .25s backwards; }
.share-arc-far { animation: rdArc3 1s ease-out .4s backwards; }
.radar-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  text-align: center;
}
.radar-center .radar-num { font-size: 21px; line-height: 1.1; }
.radar-center .radar-caption { color: var(--muted); font-size: 9.5px; }
.radar-center__split {
  display: flex;
  gap: 6px;
  margin-top: 2px;
  font-size: 10px;
}
.ring-highlight {
  transform-origin: 150px 150px;
  transition: transform .55s cubic-bezier(.4, 0, .2, 1);
}
.ring-label {
  fill: #9aa1a8;
  font-family: "PT Mono", ui-monospace, monospace !important;
}

.columns {
  display: grid;
  grid-template-columns: 1.07fr 1fr 1fr;
  gap: 16px;
  align-items: start;
  margin-bottom: 38px;
}

.column {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.column-near { background: rgba(43, 74, 117, .032); border-color: rgba(43, 74, 117, .25); }
.column__head {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  padding: 14px 15px;
  border-bottom: 1px solid var(--line-soft);
}

.perimeter-glyph svg { width: 42px; height: 42px; }
.perimeter-glyph circle { fill: none; stroke: currentColor; stroke-width: 1.4; opacity: .25; }
.perimeter-glyph .is-on { opacity: 1; stroke-width: 2; }
.column__title { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; }
.column__desc { margin-top: 6px; color: var(--muted); font-size: 12px; }
.cards { display: grid; gap: 9px; padding: 12px; }
.column__foot { padding: 10px 12px 13px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line-soft); }

.card {
  border: 1px solid #e4e7e6;
  border-radius: 7px;
  background: #fff;
  padding: 12px;
}

.card:hover { border-color: currentColor; }
.card__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 11px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: currentColor; }
.card h3 { margin: 8px 0 6px; font-size: 14.5px; line-height: 1.3; font-weight: 600; }
.card p { margin: 0 0 9px; color: #4a525a; font-size: 13px; }
.takeaway { padding: 9px; border-radius: 5px; background: rgba(43, 74, 117, .06); }
.takeaway__label {
  display: block;
  margin-bottom: 5px;
  font-size: 10px;
  font-weight: 600;
  color: currentColor;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.tags { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 9px; }
.tag { padding: 2px 6px; border-radius: 5px; background: rgba(31, 36, 41, .05); font-size: 11px; color: #4a525a; }
.tag-warm { color: var(--accent); background: rgba(169, 107, 18, .08); }
.source-link { display: inline-block; margin-top: 9px; color: var(--near); text-decoration: none; font-size: 12px; }
.source-link:hover { color: #1b3355; text-decoration: underline; }
.empty { min-height: 120px; display: grid; place-items: center; color: var(--muted); font-size: 12.5px; text-align: center; }

.trend-section {
  margin-bottom: 38px;
}

.section-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin: 0 0 14px;
}

.section-heading h2 { margin: 0; }
.section-note { margin-left: auto; color: var(--muted); font-size: 11.5px; }

.trend-grid {
  display: grid;
  grid-template-columns: 1.85fr 1fr;
  gap: 16px;
}

.panel {
  min-width: 0;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel-wide { grid-row: auto; }
.panel-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.panel-heading h2 { margin: 0; font-size: 13.5px; }
.trend-legend {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--secondary);
  font-size: 11px;
  white-space: nowrap;
}
.trend-legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend-dot { width: 7px; height: 7px; display: inline-block; border-radius: 2px; }
.legend-line { color: var(--muted); }
.trend-bars { min-width: 0; min-height: 212px; overflow: visible; }
.trend-svg {
  width: 100%;
  min-height: 212px;
  display: block;
  overflow: visible;
}
.trend-gridline { stroke: #e8ebe9; stroke-width: 1; }
.trend-band { fill: #f4f5f3; }
.trend-axis-label {
  fill: var(--muted);
  font: 10px "PT Mono", ui-monospace, monospace;
}
.trend-x-label {
  fill: var(--muted);
  font: 10px "PT Mono", ui-monospace, monospace;
}
.trend-bar rect { shape-rendering: geometricPrecision; }
.trend-line {
  fill: none;
  stroke: rgba(31, 36, 41, .46);
  stroke-width: 1.35;
  stroke-dasharray: 3.2 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.near { background: var(--near); }
.mid { background: var(--mid); }
.far { background: var(--far); }

.heatmap {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 5px;
}

.heatmap span { aspect-ratio: 1; border-radius: 4px; }
.bar-list { display: grid; gap: 9px; }
.bar-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(120px, 190px) 1fr 42px;
  gap: 10px;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  font-size: 12px;
  cursor: pointer;
}

.bar-track { height: 7px; background: #e4e7e6; border-radius: 99px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: #3d4a5c; }
.bar-warm { background: #ad7420; }
.source-row {
  display: grid;
  grid-template-columns: minmax(120px, 190px) 1fr 52px;
  gap: 10px;
  align-items: center;
  font-size: 12px;
}
.source-row__name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.source-track {
  position: relative;
  height: 8px;
  border-radius: 99px;
  background: #eef0ef;
  overflow: hidden;
}
.source-collected,
.source-included {
  position: absolute;
  inset-block: 0;
  left: 0;
  border-radius: inherit;
}
.source-collected { background: #d5dad9; }
.source-included { background: var(--near); }
.source-row__count {
  color: var(--secondary);
  font-size: 10.5px;
  text-align: right;
}
.source-note {
  margin: 3px 0 0;
  padding-top: 9px;
  border-top: 1px solid var(--line-soft);
  color: var(--secondary);
  font-size: 12px;
  line-height: 1.45;
}

.timeline-section, .rubricator-section {
  margin-bottom: 38px;
}

.timeline {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 92px 1fr 232px;
  gap: 16px;
  padding: 15px;
  border-top: 1px solid var(--line-soft);
}

.timeline-row:first-child { border-top: 0; }
.timeline-date small { display: block; color: var(--muted); margin-top: 2px; }
.timeline-main p { margin: 0 0 9px; color: var(--secondary); }
.timeline-materials { display: grid; gap: 5px; }
.timeline-materials span { display: flex; gap: 7px; align-items: baseline; font-size: 13px; }
.timeline-materials i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; }
.timeline-materials em { color: var(--muted); font-style: normal; }
.timeline-more,
.timeline-sources {
  margin-top: 7px;
  color: var(--muted);
  font-size: 12px;
}
.timeline-sources {
  padding-top: 7px;
  border-top: 1px solid var(--line-soft);
}
.timeline-side { display: grid; gap: 7px; align-content: start; justify-items: end; }
.mini-stack { width: 120px; height: 8px; display: flex; overflow: hidden; border-radius: 99px; background: var(--line-soft); }
.mini-stack i { min-width: 3px; }
.timeline-toggle {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}
.timeline-toggle span {
  display: inline-block;
  transition: transform .2s ease;
}
.timeline-toggle.is-open span { transform: rotate(180deg); }

.rubricator {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.rubric-cell {
  min-height: 96px;
  display: grid;
  align-content: space-between;
  gap: 10px;
  padding: 13px;
  border: 0;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.rubric-cell.is-active { background: rgba(43, 74, 117, .12); }
.rubric-cell strong { font-weight: 600; }
.rubric-cell span { display: flex; justify-content: space-between; color: var(--muted); }
.rubric-cell i { font-style: normal; color: var(--near); }
.rubric-help { color: var(--secondary); cursor: default; }

.footer {
  position: relative;
  overflow: hidden;
  background: var(--footer);
  color: #aebac5;
  padding: 38px 28px 20px;
}

.footer::after {
  content: "";
  position: absolute;
  right: -90px;
  top: -60px;
  width: 320px;
  height: 320px;
  border: 1px solid rgba(174, 186, 197, .18);
  border-radius: 50%;
  box-shadow: inset 0 0 0 56px transparent, 0 0 0 56px rgba(174, 186, 197, .04), 0 0 0 112px rgba(174, 186, 197, .03);
}

.footer__inner {
  position: relative;
  z-index: 1;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}

.footer h2 { color: #fff; }
.footer p { max-width: 720px; margin: 0 0 12px; }
.footer-sources { display: grid; gap: 8px; }
.footer-sources span { display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid rgba(174, 186, 197, .14); padding-bottom: 7px; }
.footer-sources b { font-weight: 400; }
.footer-sources i { font-style: normal; color: #fff; }
.footer__bottom { position: relative; z-index: 1; max-width: 1400px; margin: 28px auto 0; color: #7f8b97; font-size: 12px; }

.skeleton {
  height: 22px;
  margin: 14px;
  border-radius: 6px;
  background: linear-gradient(90deg, #eef0ef, #f7f8f6, #eef0ef);
  background-size: 200% 100%;
  animation: pulse 1.1s infinite linear;
}

.skeleton.small { width: 70%; height: 16px; }
.skeleton.card-skel { height: 118px; margin-top: 10px; }
.api-error { padding: 12px 28px; background: #fff3f0; border-bottom: 1px solid #e6b8ad; color: #7a1d0f; }

@keyframes rdSweep { to { transform: rotate(360deg); } }
@keyframes rdBlip {
  0%, 100% { opacity: .8; transform: scale(1); }
  2.5% { opacity: 1; transform: scale(1.65); }
  9% { opacity: .8; transform: scale(1); }
}
@keyframes rdArc1 { from { stroke-dashoffset: var(--arc); } }
@keyframes rdArc2 { from { stroke-dashoffset: var(--arc); } }
@keyframes rdArc3 { from { stroke-dashoffset: var(--arc); } }
@keyframes rdLogoBlip {
  0%, 100% { opacity: 0; }
  5% { opacity: 1; }
  12% { opacity: 0; }
}
@keyframes pulse { to { background-position: -200% 0; } }

@media (max-width: 1100px) {
  .summary-grid { grid-template-columns: repeat(3, 1fr); }
  .columns, .trend-grid { grid-template-columns: 1fr; }
  .panel-wide { grid-row: auto; }
  .rubricator { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .topbar { align-items: flex-start; flex-direction: column; gap: 8px; padding: 10px 16px; }
  .brand { min-width: 170px; }
  .topbar__right { width: 100%; justify-content: flex-start; }
  .issue-date { white-space: normal; }
  .page { padding: 14px 16px 38px; }
  .summary-grid { grid-template-columns: repeat(2, 1fr); }
  .summary-grid > div:nth-child(odd) { border-left: 0; }
  .today { grid-template-columns: 1fr; }
  .radar-panel { border-left: 0; border-top: 1px solid var(--line-soft); padding: 14px 0 0; }
  .timeline-row { grid-template-columns: 1fr; }
  .timeline-side { justify-items: start; }
  .rubricator { grid-template-columns: 1fr; }
  .search { width: 100%; }
  .footer__inner { grid-template-columns: 1fr; }
  .section-heading, .panel-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .section-note, .trend-legend { margin-left: 0; }
  .trend-legend { flex-wrap: wrap; white-space: normal; }
  .trend-svg { min-width: 620px; }
  .trend-bars { overflow-x: auto; overflow-y: hidden; padding-bottom: 4px; }
  .source-row { grid-template-columns: minmax(0, 1fr) 1fr 46px; }
}

@media (prefers-reduced-motion: reduce) {
  [data-anim] { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto !important; }
}
