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

.insight-card h3 a {
  color: var(--ink);
  text-decoration: none;
}

.insight-card h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.insight-cover,
.insight-thumb {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.insight-cover {
  border-radius: 14px;
}

.insight-article {
  display: grid;
  gap: clamp(28px, 5vw, 58px);
}

.insight-article .content {
  width: 100%;
}

.chart-options {
  display: none;
  min-width: 0;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}

.chart-options legend {
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 700;
}

.chart-options > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chart-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid #ccd5f3;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.chart-options label:focus-within {
  outline: 2px solid var(--blue-dark);
  outline-offset: 2px;
}

.chart-options input {
  margin: 0;
  accent-color: var(--blue-dark);
}

.chart-panel {
  padding: clamp(14px, 3vw, 26px);
  border: 1px solid #dce3fa;
  border-radius: 10px;
  background: #fff;
}

.chart-panel + .chart-panel {
  margin-top: 12px;
}

.chart-panel h3 {
  margin: 0 0 15px;
  font-size: clamp(19px, 2.8vw, 26px);
}

.chart-bars {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.data-chart .bar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 5px 12px;
  margin: 0;
  color: var(--ink);
  font-size: 15px;
}

.bar-row strong {
  color: var(--blue-dark);
  font-size: 17px;
  font-variant-numeric: tabular-nums;
}

.bar-track {
  grid-column: 1 / -1;
  display: block;
  height: 11px;
  overflow: hidden;
  border-radius: 12px;
  background: #e2e8fb;
}

.bar-track > span {
  display: block;
  width: var(--bar-width);
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}

.bar-row[data-group="regional"] .bar-track > span,
.bar-row[data-group="audio"] .bar-track > span {
  background: #146f68;
}

.chart-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.chart-source {
  margin: 16px 0 0;
  font-size: 13px;
}

.pitch-branches {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pitch-branches > li {
  padding: clamp(15px, 2.5vw, 26px);
  border: 1px solid #dce3fa;
  border-top: 4px solid var(--blue);
  border-radius: 10px;
  background: #fff;
}

.pitch-branches > li:nth-child(2) {
  border-top-color: #146f68;
}

.pitch-trigger {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 700;
}

.pitch-branches h3 {
  margin-bottom: 7px;
  font-size: clamp(20px, 2.9vw, 28px);
}

.pitch-branches p {
  margin: 0;
  color: var(--muted);
}

@supports selector(:has(*)) {
  .chart-options {
    display: block;
  }

  .chart-options label:has(input:checked) {
    border-color: #a5b3f7;
    background: #e8edff;
    color: var(--blue-dark);
  }

  .proposal-chart:has(input[value="media"]:checked) [data-metric]:not([data-metric="media"]),
  .proposal-chart:has(input[value="impressions"]:checked) [data-metric]:not([data-metric="impressions"]),
  .proposal-chart:has(input[value="cpm"]:checked) [data-metric]:not([data-metric="cpm"]),
  .reach-chart:has(input[value="video"]:checked) [data-group="audio"],
  .reach-chart:has(input[value="audio"]:checked) [data-group="video"] {
    display: none;
  }

  .chart-panel + .chart-panel {
    margin-top: 0;
  }
}

@media (max-width: 590px) {
  .pitch-branches {
    grid-template-columns: minmax(0, 1fr);
  }
}
