/* Three trust products. Surfaces, radii and colours follow the shared prototype shell (style.css, page.css). */
.trust-kpis{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:24px}
.trust-kpis>div{background:#fff;color:#142139;border:1px solid #d5e0ee;border-radius:4px;padding:24px;display:flex;flex-direction:column;gap:8px}
.trust-kpis small{order:-1;font-size:12px;color:#5d708b}
.trust-kpis strong{font-size:32px;line-height:1.2;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.trust-kpis span{font-size:12px;color:#637792}
.trust-split{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:24px;align-items:start}
.trust-choice{display:grid;grid-template-columns:20px minmax(0,1fr) auto;gap:16px;padding:16px 16px;margin:0 -16px;border-top:1px solid #e2e9f2;align-items:start;cursor:pointer;border-radius:4px}
.trust-choice:hover{background:#f6f9fe}
.trust-choice:has(input:checked){background:#eef3ff;box-shadow:inset 3px 0 0 #2456ed}
.trust-choice input{margin-top:3px;width:18px;height:18px;min-height:18px;accent-color:#2456ed}
.trust-choice small{display:block;margin-top:8px;line-height:1.6;color:#5d708b}
.trust-choice strong{font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}
.trust-filters{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.trust-filters select,.trust-access select{width:100%;min-height:44px;padding:11px 12px;background:#fff;border:1px solid #bdcce0;border-radius:5px;font:inherit;color:#142139}
.trust-firms,.trust-scenarios{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:24px 0}
.trust-scenarios{grid-template-columns:repeat(3,minmax(0,1fr))}
.trust-firm{border:1px solid #d5e0ee;background:#fff;border-radius:4px;padding:24px;display:flex;flex-direction:column;align-items:flex-start;min-width:0}
.trust-firm:has([aria-pressed="true"]){border-color:#2456ed;box-shadow:inset 0 3px 0 #2456ed}
.trust-firm h3{margin:8px 0 16px;font-size:24px;line-height:1.25}
.trust-firm .actions{margin-top:auto;padding-top:16px;flex-wrap:wrap}
.trust-panel dl,.trust-firm dl{width:100%;display:grid;grid-template-columns:136px minmax(0,1fr);gap:8px 16px;font-size:14px;margin:16px 0}
.trust-panel dt,.trust-firm dt{color:#5d708b}
.trust-panel dd,.trust-firm dd{margin:0;font-variant-numeric:tabular-nums}
.trust-proof{display:inline-block;border-radius:4px;padding:4px 8px;font-size:12px;font-weight:650;background:#e9effa;color:#2c4c7b;line-height:1.5}
.trust-proof.customer{background:#def3e9;color:#146346}
.trust-proof.open{background:#eaf1ff;color:#1e4bc1}
.trust-proof.declared{background:#f1f2f4;color:#4e5b6b}
.trust-result-count{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:24px;padding-top:16px;border-top:1px solid #e2e9f2;font-size:14px}
.trust-network-layout{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(256px,1fr);gap:24px;align-items:start}
.trust-map-wrap{overflow-x:auto;background:#f7f9fd;border:1px solid #e2e9f2;border-radius:4px}
.trust-map{display:block;width:100%;min-width:720px;height:auto}
.trust-map text{font-family:inherit;font-size:17px;fill:#233851;font-weight:600}
.trust-map text.on{fill:#10233f;font-weight:750}
.trust-map .trust-sector{font-size:13px;font-weight:750;letter-spacing:.08em;paint-order:stroke;stroke:#f7f9fd;stroke-width:6px}
.trust-map [role="button"]{cursor:pointer}
.trust-map [role="button"]:focus{outline:none}
.trust-map [role="button"]:focus .dot{stroke:#10233f;stroke-width:5}
.trust-map [role="button"]:focus line:first-child{stroke:#10233f}
.trust-map [role="button"]:hover .dot{stroke-width:6}
.trust-legend{display:flex;flex-wrap:wrap;gap:8px 20px;margin:16px 0 0;font-size:12px;color:#435874}
.trust-legend span{display:inline-flex;align-items:center;gap:8px}
.trust-legend i{width:12px;height:12px;border-radius:50%;flex:none}
.trust-edge-detail{border-top:1px solid #d5deeb;padding-top:16px;margin-top:16px}
.trust-access{display:flex;gap:16px;margin:16px 0 24px}
.trust-access .field{min-width:192px;margin:0}
.trust-concentration{height:56px;display:flex;border-radius:4px;overflow:hidden;background:#2456ed;margin:16px 0 24px;color:#fff;font-size:14px;font-weight:650}
.trust-concentration span{display:flex;justify-content:center;align-items:center;padding:0 8px;text-align:center}
.trust-concentration span+span{background:#8ca8f1;color:#10233f}
.trust-panel #trust-feedback{color:#a12a31;font-weight:600;margin-top:16px}
.trust-panel #trust-feedback:empty{display:none}
.trust-panel p,.trust-panel li{line-height:1.7}
.trust-panel [aria-pressed="true"]{border-color:#2456ed;background:#e8effc;color:#1e4bc1}
@media (min-width:1200px){.trust-firms{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:1000px){.trust-network-layout{grid-template-columns:1fr}.trust-scenarios{grid-template-columns:1fr}.trust-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){
  .trust-kpis,.trust-split,.trust-firms{grid-template-columns:1fr}
  .trust-kpis{gap:12px}
  .trust-kpis>div{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 16px;padding:16px}
  .trust-kpis small{order:0;grid-column:1}
  .trust-kpis strong{grid-column:2;grid-row:1/3;font-size:24px;text-align:right}
  .trust-kpis span{grid-column:1}
  .trust-filters{grid-template-columns:1fr}
  .trust-choice{grid-template-columns:20px minmax(0,1fr)}
  .trust-choice strong{grid-column:2}
  .trust-access{flex-direction:column}
  .trust-access .field{min-width:0}
  .trust-result-count{align-items:flex-start;flex-direction:column}
  .trust-panel dl,.trust-firm dl{grid-template-columns:1fr;gap:4px}
  .trust-panel dd,.trust-firm dd{margin-bottom:8px}
  .trust-firm{padding:24px 16px}
  .trust-map-wrap:after{content:"Карту можно прокручивать вбок. Нажмите узел или линию.";display:block;font-size:12px;padding:12px;color:#52667f}
  .trust-concentration{font-size:12px}
}

/* Functional additions to the reviewed visual system. */
.trust-example-heading{border-left:4px solid #2456ed;background:#eef3fc;padding:24px;margin-bottom:24px}
.trust-example-heading h2{font-size:24px;line-height:1.35;margin:10px 0}
.trust-example-heading p{margin-bottom:0;line-height:1.65}
.trust-mobile-connections{display:none}
@media(max-width:760px){
.trust-example-heading{padding:20px 16px}.trust-example-heading h2{font-size:21px}
.trust-mobile-connections{display:block;margin-top:24px}
.trust-mobile-connections select{width:100%;max-width:100%;padding:12px;border:1px solid #becbdb;background:#fff;border-radius:4px;font:inherit}
.trust-mobile-connections ul{padding:0;list-style:none;margin:20px 0 0}
.trust-mobile-connections li+li{margin-top:8px}
.trust-mobile-connections li button{width:100%;text-align:left;white-space:normal;display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:16px;background:#fff;border:1px solid #dce4ef;border-radius:4px}
.trust-mobile-connections li button small{color:#5d6d82;line-height:1.5}
.trust-mobile-connections li button[aria-pressed=true]{border-color:#2456ed;background:#eef3fc}
.trust-map-wrap:after{content:"Карту можно прокручивать вбок или выбрать компанию и связь в списке ниже."}
}

/* Outer label columns stay clear of the ellipse and each other. */
.trust-map .trust-node-label{font-weight:650}
.trust-map .trust-node-label.on{font-weight:650}
.trust-map .trust-label-guide{fill:none;stroke:#dde4ee;stroke-width:1;stroke-dasharray:1 4;stroke-linecap:round;pointer-events:none}
