/* Wager Cards — end-of-deck report and the Sources drawer. */

.wc-report-inner {
  max-width: 1000px; margin: 0 auto;
  padding: 34px 32px 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.wc-report-head, .wc-tiles, .wc-closing, .wc-next, .wc-report-actions { grid-column: 1 / -1; }
.wc-report-head h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.08;
}
.wc-panel-eyebrow {
  margin: 0 0 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue);
}

.wc-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.wc-tile {
  position: relative; overflow: hidden;
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--soft-line);
}
.wc-tile::after {
  content: ""; position: absolute; right: -40px; top: -40px; width: 150px; height: 150px; border-radius: 50%;
  opacity: 0.5;
}
.wc-tile--points::after { background: radial-gradient(circle, var(--amber-soft), transparent 70%); }
.wc-tile--cal::after { background: radial-gradient(circle, rgba(0, 94, 162, 0.12), transparent 70%); }
.wc-tile-label { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.wc-tile--points .wc-tile-label { color: var(--amber-ink); }
.wc-tile--cal .wc-tile-label { color: var(--blue); }
.wc-big {
  margin: 4px 0 6px;
  font-size: clamp(44px, 6vw, 64px); font-weight: 700; letter-spacing: -0.045em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.wc-tile-read { margin: 0 0 6px; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.wc-tile-fine { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }

.wc-panel {
  padding: 22px 24px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--soft-line);
}
.wc-panel h3 { margin: 0 0 10px; font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.25; }
.wc-panel p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.6; color: #3a3a3c; }
.wc-panel .wc-panel-eyebrow { margin: 0 0 8px; font-size: 12px; line-height: 1.4; color: var(--blue); }
.wc-fine { font-size: 12.5px !important; line-height: 1.5 !important; color: var(--muted) !important; }

/* chart */
.wc-chart { display: block; width: 100%; max-width: 440px; height: auto; margin: 4px auto 6px; font-family: var(--font); }
.ch-grid { stroke: var(--soft-line); stroke-width: 1; }
.ch-axis { stroke: var(--line); stroke-width: 1; }
.ch-tick { font-size: 10.5px; fill: var(--muted); }
.ch-title { font-size: 11px; font-weight: 600; fill: var(--muted); }
.ch-diag { stroke: var(--faint); stroke-width: 1.3; stroke-dasharray: 4 4; }
.ch-over { fill: rgba(179, 38, 30, 0.05); }
.ch-under { fill: rgba(0, 94, 162, 0.06); }
.ch-line { fill: none; stroke: var(--blue); stroke-width: 2; stroke-linejoin: round; opacity: 0.6; }
.ch-dot { fill: var(--blue); stroke: #fff; stroke-width: 2; }
.ch-dotlabel { font-size: 11px; font-weight: 700; fill: var(--ink); }
.wc-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 16px; margin: 0 0 10px !important; font-size: 12px !important; color: var(--muted) !important; }
.wc-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wc-legend i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; }
.wc-legend .lg-diag { height: 0; border-top: 1.5px dashed var(--faint); border-radius: 0; }
.wc-legend .lg-under { background: rgba(0, 94, 162, 0.14); }
.wc-legend .lg-over { background: rgba(179, 38, 30, 0.12); }
.wc-buckets { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 5px; }
.wc-buckets li { font-size: 14px; line-height: 1.45; color: #3a3a3c; }
.wc-buckets span { color: var(--muted); }
.wc-empty { color: var(--muted) !important; }

/* model comparison */
.wc-ece-head { margin-top: 14px !important; font-weight: 600; font-size: 13.5px !important; color: var(--ink) !important; }
.wc-ece-head span { font-weight: 400; color: var(--muted); }
.wc-ece { display: grid; gap: 8px; margin-bottom: 10px; }
.wc-ece-row { display: grid; grid-template-columns: 150px 1fr 48px; align-items: center; gap: 10px; font-size: 13px; }
.wc-ece-label { color: #3a3a3c; }
.wc-ece-row.is-you .wc-ece-label { font-weight: 700; color: var(--ink); }
.wc-ece-track { height: 10px; border-radius: 99px; background: var(--alt); overflow: hidden; }
.wc-ece-bar { display: block; height: 100%; border-radius: inherit; background: #8e8e93; }
.wc-ece-row.is-you .wc-ece-bar { background: var(--blue); }
.wc-ece-value { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }

/* loopholes */
.wc-loopholes { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.wc-loophole { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.wc-loophole-mark {
  width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px dashed var(--line);
}
.wc-loophole.is-found .wc-loophole-mark {
  border: 1.5px solid #8e8e93;
  background: linear-gradient(135deg, #f4f4f6 0%, #c7c7cc 45%, #f9f9fb 55%, #a1a1a6 100%);
}
.wc-loophole-name { margin: 0 !important; font-size: 14.5px !important; font-weight: 700; color: var(--ink) !important; }
.wc-loophole:not(.is-found) .wc-loophole-name { color: var(--faint) !important; }
.wc-loophole-text { margin: 0 !important; font-size: 13.5px !important; color: var(--muted) !important; }

.wc-revisit { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.wc-revisit li {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px; background: var(--alt);
  font-size: 13px; font-weight: 500;
}
.wc-revisit li span { font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }

/* closing question */
.wc-closing {
  padding: 30px 32px;
  border-radius: 22px;
  background: var(--ink);
  color: #fff;
}
.wc-closing .wc-panel-eyebrow { color: #9cc3e6; }
.wc-closing h3 {
  margin: 0 0 12px;
  font-family: var(--serif); font-size: clamp(24px, 3vw, 32px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.15;
}
.wc-closing p { margin: 0; max-width: 70ch; font-size: 15.5px; line-height: 1.65; color: rgba(255, 255, 255, 0.82); }

.wc-report-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* where next: the challenge and two related explainers */
.wc-next > .wc-btn { height: auto; min-height: 44px; margin: 4px 0 16px; padding: 10px 20px; text-align: center; line-height: 1.3; }
.wc-challenge { padding: 10px 14px; border-radius: 12px; font-size: 14px !important; }
.wc-challenge.is-met { background: var(--right-soft); color: var(--right) !important; }
.wc-challenge.is-missed { background: var(--wrong-soft); color: var(--wrong) !important; }
.wc-challenge.is-open { background: var(--alt); }
.wc-next-links { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wc-next-links li { padding: 14px 16px; border-radius: 14px; border: 1px solid var(--soft-line); background: var(--alt); }
.wc-next-links a { display: inline-block; margin-bottom: 4px; font-size: 15px; font-weight: 700; color: var(--blue); text-decoration: none; }
.wc-next-links a:hover { text-decoration: underline; }
.wc-next-links span { display: block; font-size: 13.5px; line-height: 1.5; color: #3a3a3c; }

/* sources drawer */
.wc-sources-body h3 {
  margin: 14px 0 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue);
}
.wc-sources { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; }
.wc-sources li { font-size: 13.5px; line-height: 1.45; }
.wc-sources a { color: var(--ink); font-weight: 600; text-decoration: none; }
.wc-sources a:hover { color: var(--blue); text-decoration: underline; }
.wc-sources span { display: block; color: var(--muted); font-size: 12.5px; }
.wc-sources-body .wc-fine { margin-top: 16px; }

@media (max-width: 899px) {
  .wc-report-inner { grid-template-columns: 1fr; padding: 20px 14px 32px; gap: 12px; }
  .wc-tiles { grid-template-columns: 1fr; gap: 12px; }
  .wc-tile, .wc-panel { padding: 18px; }
  .wc-big { font-size: 46px; }
  .wc-ece-row { grid-template-columns: 112px 1fr 44px; font-size: 12px; }
  .wc-closing { padding: 22px 20px; }
  .wc-next-links { grid-template-columns: 1fr; }
}
