/* ───────── Layout Grid ───────── */
.comp-grid {
  display: grid;
  grid-template-columns: 260px 1fr 260px;
  gap: 40px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

/* ───────── Side Columns ───────── */
.comp-col {
  text-align: center;
}
.comp-heading {
  font: bold 26px/1.1 sans-serif;
  margin-bottom: 20px;
}
.comp-heading.blue {
  color: #125199;
}
.comp-heading.pink {
  color: #8e44ad;
}

/* ───────── Buttons ───────── */
.btn-blue,
.btn-pink {
  width: 220px;
  padding: 16px 12px;
  margin: 12px 0;
  border-radius: 12px;
  border: 2px solid #003;
  font: 16px/1.2 sans-serif;
  color: #fff;
  cursor: pointer;
}
.btn-blue {
  background: #2980d9;
}
.btn-pink {
  background: #d2529d;
}
.btn-pink.btn-active
{
  background: #d2529d;
  transform: scale(1.03);
  position: relative;  
}
.btn-pink.btn-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid #ffd700;
  border-radius: 12px;
  animation: pulse 1.4s infinite;
}
.btn-blue.btn-active {
  background: #1f6ec1;
  transform: scale(1.03);
  position: relative;
}
.btn-blue.btn-active::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid #ffd700;
  border-radius: 12px;
  animation: pulse 1.4s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}

/* ───────── Center Chart Section ───────── */
.comp-center {
  width: 100%;
  height: 100%;
  padding: 20px;
  border: 1px solid #ccc;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
}

.intro-text {
  max-width: 100%;
  font: 18px/1.4 sans-serif;
  text-align: left;
}

.summary-text {
  font: 16px/1.6 sans-serif;
  margin-bottom: 20px;
  padding: 10px 15px;
  background: #f9f9f9;
  border-left: 4px solid #2980d9;
}

/* ───────── Chart Layout ───────── */
.chart-flex {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: translateY(25px);
  transition: all 0.4s ease;
}
.chart-flex.show {
  opacity: 1;
  transform: translateY(0);
}

.chart-slot {
  flex: 1 1 0;
  min-width: 0;
}

.option-box {
  flex: 0 0 222px;
  padding: 12px 16px;
  border: 1px solid #000;
  background: #fff;
  line-height: 1.4;
  font: 16px sans-serif;
}
.option-box {
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 20px;
  font: 16px/1.5 'Segoe UI', sans-serif;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.05);
}

.option-box .opt-head {
  font-weight: bold;
  font-size: 18px;
  color: #333;
  margin-bottom: 16px;
  display: block;
}

.option-box label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  cursor: pointer;
  font-size: 15px;
  color: #222;
  transition: color 0.2s ease;
}

.option-box label:hover {
  color: #1f6ec1;
}

.option-box input[type="radio"] {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #aaa;
  border-radius: 50%;
  position: relative;
  cursor: pointer;
  outline: none;
  transition: border 0.2s ease;
}

.option-box input[type="radio"]:checked {
  border-color: #1f6ec1;
}

.option-box input[type="radio"]:checked::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 10px;
  height: 10px;
  background-color: #1f6ec1;
  border-radius: 50%;
}
/* bias special colours (optional tweak) */
.chart-slot canvas[id="bias-canvas"] + .chartjs-size-monitor,
canvas#bias-canvas{ background:#fafafa }