/* ==========================================================================
   tsenzura.css — page styles for the digital restrictions page.
   Layered after tokens / base / layout / components.
   Mobile-first; tested down to 320px (iPhone SE).
   ========================================================================== */

/* HERO ---------------------------------------------------------------- */
.tsenzura-hero {
  padding: 60px 0 40px;
  border-top: none;
}
@media (min-width: 720px) {
  .tsenzura-hero { padding: 96px 0 60px; }
}

.tsenzura-hero h1.display {
  font-family: 'Unbounded', sans-serif;
  font-weight: 900;
  font-size: clamp(40px, 9vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 32px;
  max-width: 1100px;
  word-break: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}
.tsenzura-hero h1 em {
  font-style: italic;
  font-family: 'Lora', serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.tsenzura-hero h1 .accent {
  color: var(--accent);
}

.tsenzura-kicker {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: baseline;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  padding: 22px 24px;
  margin: 8px 0 28px;
}
.tsenzura-kicker-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: clamp(18px, 3vw, 30px);
  color: var(--ink);
  white-space: nowrap;
}
.tsenzura-kicker-num.alert { color: var(--accent); }
.tsenzura-kicker-arrow {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 400;
  font-size: clamp(20px, 3vw, 30px);
  color: var(--ink-faded);
}
.tsenzura-kicker-text {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  flex: 1 1 280px;
}

.tsenzura-deck {
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 36px;
}
.tsenzura-deck strong { color: var(--ink); }

.tsenzura-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.tsenzura-meta-item {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
}

/* HERO BIG NUMBERS ---------------------------------------------------- */
.tsenzura-big-numbers {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 32px 0 12px;
}
@media (max-width: 900px) {
  .tsenzura-big-numbers { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 380px) {
  .tsenzura-big-numbers { grid-template-columns: 1fr; gap: 10px; }
}
.tsenzura-big-number {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tsenzura-big-number-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 600;
  font-size: clamp(22px, 3vw, 36px);
  letter-spacing: -0.02em;
  color: var(--ink);
  word-break: break-word;
  overflow-wrap: break-word;
}
.tsenzura-big-number-num.alert { color: var(--accent); }
.tsenzura-big-number-num.warn { color: var(--gold); }
.tsenzura-big-number-num.green { color: var(--green); }
.tsenzura-big-number-label {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.45;
}
.tsenzura-big-number-source {
  font-size: 10px;
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink-faded);
  margin-top: auto;
  padding-top: 4px;
}

/* TOC CARDS ----------------------------------------------------------- */
.tsenzura-toc {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 36px;
}
@media (max-width: 900px) { .tsenzura-toc { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .tsenzura-toc { grid-template-columns: 1fr; } }
.tsenzura-toc-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s var(--ease-out), border-color 0.18s var(--ease-out);
}
.tsenzura-toc-card:hover {
  transform: translateY(-2px);
  border-color: var(--ink-soft);
}
.tsenzura-toc-card-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--ink-faded);
}
.tsenzura-toc-card-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  line-height: 1.3;
}

/* MAIN CONTRADICTION CARD -------------------------------------------- */
.contradiction-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 24px;
}
@media (max-width: 720px) { .contradiction-hero { grid-template-columns: 1fr; } }
.contradiction-half {
  padding: 28px 24px;
  background: var(--bg-card);
}
.contradiction-half + .contradiction-half {
  border-left: 1px solid var(--line);
}
@media (max-width: 720px) {
  .contradiction-half + .contradiction-half {
    border-left: none;
    border-top: 1px solid var(--line);
  }
}
.contradiction-half.declared {
  background: var(--bg-paper);
}
.contradiction-half.actual {
  background: var(--bg-card);
}
.contradiction-half-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.contradiction-half.actual .contradiction-half-label { color: var(--accent); }
.contradiction-half-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  line-height: 1.2;
}
.contradiction-half ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.contradiction-half li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.contradiction-half li::before {
  content: '·';
  position: absolute;
  left: 8px;
  color: var(--ink-faded);
  font-weight: 700;
}
.contradiction-half.actual li::before { color: var(--accent); }

/* CONTRADICTION MATRIX (18 rows) ------------------------------------ */
.cmatrix-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0;
}
.cmatrix-chip {
  padding: 6px 14px;
  border-radius: 100px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.cmatrix-chip:hover { border-color: var(--ink-soft); }
.cmatrix-chip.active {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.cmatrix-table {
  display: grid;
  grid-template-columns: 36px 1.2fr 1.2fr 1fr;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
}
.cmatrix-head {
  display: contents;
}
.cmatrix-head > div {
  padding: 14px 16px;
  background: var(--bg-paper);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.cmatrix-row {
  display: contents;
  cursor: pointer;
}
.cmatrix-row > div {
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  background: var(--bg-card);
  transition: background 0.18s;
}
.cmatrix-row:hover > div {
  background: var(--bg-paper);
}
.cmatrix-row > div:first-child {
  font-family: 'JetBrains Mono', monospace;
  color: var(--ink-faded);
  font-size: 12px;
}
.cmatrix-row > div:nth-child(2) {
  font-weight: 600;
  color: var(--ink);
}
.cmatrix-row > div:last-child {
  color: var(--accent);
  font-style: italic;
}
@media (max-width: 720px) {
  .cmatrix-table { grid-template-columns: 28px 1fr; }
  .cmatrix-head > div:nth-child(3),
  .cmatrix-head > div:nth-child(4),
  .cmatrix-row > div:nth-child(3),
  .cmatrix-row > div:nth-child(4) { display: none; }
  .cmatrix-row > div:nth-child(2) {
    grid-column: 2;
  }
  .cmatrix-row::after {
    content: 'Подробнее →';
    grid-column: 2;
    font-size: 11px;
    color: var(--ink-faded);
    padding: 0 16px 12px;
    border-bottom: 1px solid var(--line-soft);
  }
}

/* VPN ASYMMETRY ------------------------------------------------------- */
.vpn-asym {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}
@media (max-width: 720px) { .vpn-asym { grid-template-columns: 1fr; } }
.vpn-col {
  padding: 24px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.vpn-col.civic {
  background: rgba(185, 28, 28, 0.04);
  border-color: rgba(185, 28, 28, 0.25);
}
.vpn-col.corp {
  background: rgba(21, 128, 61, 0.04);
  border-color: rgba(21, 128, 61, 0.25);
}
.vpn-col-tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.vpn-col.civic .vpn-col-tag {
  background: var(--accent);
  color: white;
}
.vpn-col.corp .vpn-col-tag {
  background: var(--green);
  color: white;
}
.vpn-col-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 18px;
  line-height: 1.2;
}
.vpn-col-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}
.vpn-col.civic .vpn-col-num { color: var(--accent); }
.vpn-col.corp .vpn-col-num { color: var(--green); }
.vpn-col-num-label {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 14px;
}
.vpn-col ul {
  list-style: none;
  padding: 0;
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.vpn-col li {
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink-soft);
  padding-left: 18px;
  position: relative;
}
.vpn-col li::before {
  content: '·';
  position: absolute;
  left: 6px;
  font-weight: 700;
}
.vpn-col.civic li::before { color: var(--accent); }
.vpn-col.corp li::before { color: var(--green); }

.vpn-formula {
  margin-top: 20px;
  padding: 18px 22px;
  background: var(--bg-dark);
  color: var(--bg);
  border-radius: 6px;
  font-style: italic;
  font-family: 'Lora', serif;
  font-size: 16px;
  line-height: 1.55;
}

/* THREAT MATRIX ------------------------------------------------------- */
.threat-matrix-wrap {
  margin-top: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg-card);
}
.threat-matrix-scroll-hint {
  display: none;
  font-size: 11px;
  color: var(--ink-faded);
  padding: 6px 12px 0;
  font-style: italic;
}
@media (max-width: 720px) { .threat-matrix-scroll-hint { display: block; } }

.threat-matrix {
  display: grid;
  grid-template-columns: 220px repeat(4, 1fr);
  min-width: 700px;
  position: relative;
}
.tm-cell {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line-soft);
  border-right: 1px solid var(--line-soft);
  font-size: 12px;
  line-height: 1.4;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  cursor: default;
  position: relative;
  transition: filter 0.18s;
}
.tm-cell:last-child { border-right: none; }
.tm-row:last-of-type .tm-cell { border-bottom: none; }
.tm-head .tm-cell {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--bg-paper);
  color: var(--ink-muted);
  min-height: 56px;
}
.tm-row {
  display: contents;
}
.tm-rowlabel {
  font-weight: 600;
  font-size: 13px;
  color: var(--ink);
  background: var(--bg-paper);
  text-align: left;
  justify-content: flex-start;
  padding-left: 16px;
  line-height: 1.3;
}
.tm-cell.closes {
  background: rgba(21, 128, 61, 0.16);
  color: var(--green);
  font-weight: 700;
}
.tm-cell.partial {
  background: rgba(180, 83, 9, 0.15);
  color: var(--gold);
  font-weight: 700;
}
.tm-cell.no {
  background: rgba(185, 28, 28, 0.12);
  color: var(--accent);
  font-weight: 700;
}
.tm-cell.side {
  background:
    repeating-linear-gradient(
      45deg,
      rgba(107, 103, 96, 0.08) 0,
      rgba(107, 103, 96, 0.08) 6px,
      rgba(107, 103, 96, 0.16) 6px,
      rgba(107, 103, 96, 0.16) 12px
    );
  color: var(--ink-soft);
  font-weight: 600;
  font-style: italic;
}
.tm-cell[role="button"] { cursor: pointer; }
.tm-cell.closes:hover, .tm-cell.partial:hover, .tm-cell.no:hover, .tm-cell.side:hover {
  filter: brightness(0.95);
}
.tm-cell[role="button"]:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -2px;
}

.tm-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--ink-muted);
}
.tm-legend-swatch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.tm-legend-swatch span {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1px solid rgba(0,0,0,0.08);
}

/* WHITELIST + LIST FLIP ---------------------------------------------- */
.list-flip {
  display: grid;
  grid-template-columns: 1fr 60px 1fr;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
}
@media (max-width: 720px) {
  .list-flip {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .list-flip-arrow { transform: rotate(90deg); justify-self: center; }
}
.list-flip-block {
  text-align: center;
  padding: 24px 18px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.list-flip-block.open {
  background: rgba(21, 128, 61, 0.06);
  border-color: rgba(21, 128, 61, 0.25);
}
.list-flip-block.closed {
  background: rgba(185, 28, 28, 0.06);
  border-color: rgba(185, 28, 28, 0.25);
}
.list-flip-shape {
  width: 100px;
  height: 100px;
  margin: 8px auto 14px;
  position: relative;
}
.list-flip-shape svg { width: 100%; height: 100%; }
.list-flip-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
  line-height: 1.3;
}
.list-flip-formula {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.list-flip-arrow {
  font-size: 32px;
  color: var(--ink-faded);
  font-family: 'JetBrains Mono', monospace;
  text-align: center;
}

/* SHUTDOWN COST CALC ------------------------------------------------- */
.calc-block {
  margin-top: 28px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 720px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
.calc-control label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.calc-control label .calc-val {
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
}
.calc-control input[type="range"] {
  width: 100%;
  margin: 4px 0;
  accent-color: var(--ink);
}
.calc-control select {
  font-family: inherit;
  font-size: 13px;
  padding: 8px 10px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
}
/* Scoped under .calc-block — `.calc-output` is also used by the
   scenario calculator on vybory.html with very different styling
   (dark background). Without the scope this rule wins by source order
   and breaks the elections-page calculator. */
.calc-block .calc-output {
  background: var(--bg-paper);
  padding: 22px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.calc-out-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line-soft);
}
.calc-out-line:last-child { border-bottom: none; }
.calc-out-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 18px;
  color: var(--ink);
}
.calc-out-num.alert { color: var(--accent); }
.calc-out-foot {
  font-size: 11px;
  font-style: italic;
  color: var(--ink-faded);
  margin-top: 6px;
  line-height: 1.4;
}

/* SELECTIVITY CARDS -------------------------------------------------- */
.selectivity-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}
@media (max-width: 720px) { .selectivity-grid { grid-template-columns: 1fr; } }
.selectivity-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.selectivity-card-level {
  display: flex;
  align-items: center;
  gap: 10px;
}
.selectivity-card-num {
  width: 36px;
  height: 36px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Unbounded', sans-serif;
  font-weight: 800;
  font-size: 16px;
}
.selectivity-card-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 17px;
  line-height: 1.2;
  flex: 1;
}
.selectivity-card-summary {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.selectivity-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.selectivity-card-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  padding: 3px 8px;
  background: var(--bg-paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink-faded);
}

/* DIGITAL TIMELINE --------------------------------------------------- */
.dtimeline {
  margin-top: 24px;
  position: relative;
  padding-left: 24px;
  border-left: 2px solid var(--line);
}
.dtimeline-item {
  position: relative;
  padding: 10px 14px 18px 24px;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s var(--ease-out);
  border-radius: 6px;
}
.dtimeline-item:hover {
  background: var(--bg-paper);
  transform: translateX(2px);
}
.dtimeline-item:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  background: var(--bg-paper);
}
.dtimeline-item::after {
  content: 'Подробнее →';
  position: absolute;
  right: 14px;
  top: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 10px;
  color: var(--ink-faded);
  opacity: 0;
  transition: opacity 0.15s;
}
.dtimeline-item:hover::after,
.dtimeline-item:focus-visible::after { opacity: 1; }
.dtimeline-item::before {
  content: '';
  position: absolute;
  left: -7px;
  top: 14px;
  width: 12px;
  height: 12px;
  background: var(--ink);
  border: 2px solid var(--bg);
  border-radius: 50%;
}
.dtimeline-item.law::before { background: var(--accent); }
.dtimeline-item.tech::before { background: var(--gold); }
.dtimeline-item.event::before { background: var(--ink); }
.dtimeline-item.statement::before { background: var(--green); }
.dtimeline-date {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--ink-faded);
}
.dtimeline-title {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
  margin: 4px 0 4px;
  line-height: 1.4;
}
.dtimeline-summary {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.5;
}

/* MESSENGER COMPARISON ----------------------------------------------- */
.msgr-bars {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-top: 24px;
}
.msgr-row {
  display: grid;
  grid-template-columns: 110px 1fr 90px;
  gap: 14px;
  align-items: center;
}
@media (max-width: 720px) { .msgr-row { grid-template-columns: 90px 1fr 80px; } }
.msgr-name {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 14px;
}
.msgr-name.whatsapp { color: #25D366; }
.msgr-name.telegram { color: #229ED9; }
.msgr-name.max { color: var(--accent); }
.msgr-bar-track {
  position: relative;
  height: 36px;
  background: var(--bg-paper);
  border-radius: 4px;
  overflow: hidden;
}
.msgr-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s var(--ease-out);
}
.msgr-bar-fill.whatsapp { background: #25D366; }
.msgr-bar-fill.telegram { background: #229ED9; }
.msgr-bar-fill.max { background: var(--accent); }
.msgr-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  text-align: right;
}
.msgr-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin: 22px 0 6px;
}

/* CHARTS WRAPPER ----------------------------------------------------- */
.chart-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 22px;
  margin-top: 24px;
}
.chart-block-title {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
  line-height: 1.3;
}
.chart-block-deck {
  font-size: 13px;
  color: var(--ink-muted);
  margin-bottom: 16px;
  line-height: 1.5;
}
.chart-canvas {
  position: relative;
  height: 320px;
  width: 100%;
}
.chart-canvas.tall { height: 380px; }
.chart-canvas.short { height: 220px; }

/* AUDIENCE FLOW (sankey-lite) ---------------------------------------- */
.flow-wrap {
  margin-top: 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.flow-svg {
  width: 100%;
  min-width: 600px;
  height: 360px;
}

/* FREEDOM ON NET ----------------------------------------------------- */
.fon-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}
.fon-grid .chart-canvas { height: 460px; }
@media (max-width: 900px) {
  .fon-grid { grid-template-columns: 1fr; }
  .fon-grid .chart-canvas { height: 320px; }
}
.fon-leaderboard {
  background: var(--bg-paper);
  border-radius: 6px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.fon-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  font-size: 13px;
  padding: 5px 0;
}
.fon-row.hi { color: var(--green); font-weight: 600; }
.fon-row.mid { color: var(--gold); }
.fon-row.lo { color: var(--accent); font-weight: 600; }
.fon-row.ru { background: var(--bg-card); padding: 8px 10px; border-radius: 4px; border: 1px solid var(--line); }
.fon-mini {
  width: 60px;
  height: 6px;
  border-radius: 3px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}
.fon-mini-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--ink);
}
.fon-row.hi .fon-mini-fill { background: var(--green); }
.fon-row.mid .fon-mini-fill { background: var(--gold); }
.fon-row.lo .fon-mini-fill { background: var(--accent); }
.fon-num {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  width: 36px;
  text-align: right;
}

/* REGULATION COMPARE TABLE ------------------------------------------- */
.regtbl {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
  font-size: 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}
.regtbl th, .regtbl td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  background: var(--bg-card);
}
.regtbl th {
  background: var(--bg-paper);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.regtbl tr:last-child td { border-bottom: none; }
/* Семантика по столбцу: для гарантий (judicial, appeal) "Есть" = хорошо (зелёный),
   "Нет" = плохо (красный); для риска (userCrim, block) — наоборот. */
.regtbl td[data-pol="good"] .yes { color: var(--green); font-weight: 700; }
.regtbl td[data-pol="good"] .no { color: var(--accent); font-weight: 700; }
.regtbl td[data-pol="bad"]  .yes { color: var(--accent); font-weight: 700; }
.regtbl td[data-pol="bad"]  .no { color: var(--green); font-weight: 700; }
.regtbl .na { color: var(--ink-faded); font-weight: 600; }
/* Wrapper для горизонтального скролла на узких экранах. */
.regtbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 720px) {
  .regtbl { min-width: 720px; }
}

/* QUOTE BLOCKS ------------------------------------------------------- */
.dquote {
  border-left: 3px solid var(--ink);
  padding: 10px 0 10px 18px;
  margin: 18px 0;
  font-family: 'Lora', serif;
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.dquote-author {
  display: block;
  margin-top: 8px;
  font-family: 'Manrope', sans-serif;
  font-style: normal;
  font-size: 12px;
  color: var(--ink-faded);
}
.dquote-author a { color: inherit; text-decoration: underline dotted; }

/* SOURCES ACCORDION -------------------------------------------------- */
.dsources {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 720px) { .dsources { grid-template-columns: 1fr; } }
.dsources-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.dsources-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.dsources-list a {
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 4px 0;
  line-height: 1.4;
}
.dsources-list a:hover { color: var(--accent); text-decoration: underline; }

/* INTRO / DISCLAIMER ------------------------------------------------- */
.tsenzura-disclaimer {
  background: rgba(180, 83, 9, 0.06);
  border: 1px solid rgba(180, 83, 9, 0.2);
  border-radius: 6px;
  padding: 18px 22px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 32px 0;
}
.tsenzura-disclaimer strong { color: var(--gold); }

/* FINAL VERDICT ------------------------------------------------------ */
.verdict-block {
  background: var(--bg-dark);
  color: var(--bg);
  padding: 36px 32px;
  border-radius: 6px;
  margin-top: 32px;
}
.verdict-block h3 {
  font-family: 'Unbounded', sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2.4vw, 28px);
  letter-spacing: -0.01em;
  margin: 0 0 16px;
  color: var(--bg);
  line-height: 1.2;
}
.verdict-block p {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(247, 242, 225, 0.85);
}
.verdict-block ol {
  margin: 16px 0 0;
  padding-left: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.verdict-block li {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(247, 242, 225, 0.78);
}

/* PRINT -------------------------------------------------------------- */
@media print {
  /* Прячем интерактив, фильтры и калькулятор — они не имеют смысла на бумаге.
     Графики (chart-canvas) оставляем: Chart.js рисует их в canvas, и они
     попадают на печать растровым изображением. */
  .tsenzura-toc, .cmatrix-filters, .tm-legend, .calc-block { display: none !important; }
  .chart-block { break-inside: avoid; page-break-inside: avoid; }
  .threat-matrix-wrap { overflow: visible; }
  .threat-matrix { min-width: 0; }
}

/* REDUCED MOTION ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .msgr-bar-fill { transition: none !important; }
  .tsenzura-toc-card { transition: none !important; }
}
