/* Week 8: measure, then climb. RL environments, AI eval, benchmarking, hill climbing and recursive self-improvement.
   A survey-map theme on top of week 5's base (loaded from /week-5/week.css and /week-6/week.css): graph paper,
   a ridge line under each title, and one colour per part, from the orange of week 6's scoreboard up to violet. */
:root { --pink: #2b8a3e; --pink-soft: #e3f4e6; --link: #2b6cb0; --grid: rgba(43, 138, 62, 0.06); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --pink: #69db7c; --pink-soft: #173222; --link: #8ec5ff; --grid: rgba(105, 219, 124, 0.07); }
}
:root[data-theme="dark"] { --pink: #69db7c; --pink-soft: #173222; --link: #8ec5ff; --grid: rgba(105, 219, 124, 0.07); }
.btn { color: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn:not(.quiet) { color: #0e1220; } }
:root[data-theme="dark"] .btn:not(.quiet) { color: #0e1220; }

/* Slides: graph paper, since every slide is about a score */
.deck-stage section.w5.w8 {
  --s-bg: #f7f6f1;
  --s-grid: rgba(22, 26, 35, 0.04);
  --s-acc: #2b8a3e;
  --s-acc-soft: #e3f4e6;
  --s-led: #69db7c;
  background-image:
    linear-gradient(var(--s-grid) 2px, transparent 2px),
    linear-gradient(90deg, var(--s-grid) 2px, transparent 2px);
  background-size: 60px 60px;
}
/* Under each title, a ridge that climbs to the right (week 5 drew a heartbeat here) */
.deck-stage section.w5.w8 h2::after {
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 36'%3E%3Cpath d='M2 32 L44 26 L70 30 L104 16 L128 21 L166 5 L186 9 L218 3' fill='none' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 36'%3E%3Cpath d='M2 32 L44 26 L70 30 L104 16 L128 21 L166 5 L186 9 L218 3' fill='none' stroke='black' stroke-width='5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat;
}
.deck-stage section.w5.w8.dark {
  --s-bg: #0d1512;
  --s-ink: #eef4ee;
  --s-ink2: #a8b8ad;
  --s-line: #2a3a31;
  --s-card: #14201a;
  background-image: radial-gradient(ellipse at 85% 0%, #1c3a2a 0%, transparent 60%);
  background-size: auto;
}
.w5.w8.dark .kicker { color: #8ce99a; }
.deck-frame .fx-progress { background: linear-gradient(90deg, #ff922b, #2f9e44 55%, #7048e8); }

/* One colour per part */
.deck-stage section.w5.w8.part-env { --s-acc: #d9480f; --s-acc-soft: #fff0e6; --s-led: #ff922b; }
.deck-stage section.w5.w8.part-eval { --s-acc: #1971c2; --s-acc-soft: #e2effb; --s-led: #4dabf7; }
.deck-stage section.w5.w8.part-bench { --s-acc: #0c8599; --s-acc-soft: #e0f4f7; --s-led: #3bc9db; }
.deck-stage section.w5.w8.part-climb { --s-acc: #2b8a3e; --s-acc-soft: #e3f4e6; --s-led: #69db7c; }
.deck-stage section.w5.w8.part-rsi { --s-acc: #7048e8; --s-acc-soft: #efeafe; --s-led: #b197fc; }
.w5 .pill.teal { background: #0c8599; color: #fff; border-color: #0c8599; }
.w5 .card.teal { border-color: #0c8599; box-shadow: inset 0 10px 0 #0c8599; padding-top: 36px; }
.w5 .pill.part { background: var(--s-acc); color: #fff; border-color: var(--s-acc); }
.w5 .card.part { border-color: var(--s-acc); box-shadow: inset 0 10px 0 var(--s-acc); padding-top: 36px; }
/* A term and what it means for an agent, side by side */
.w5 .tbl td.term { font-family: "IBM Plex Mono", monospace; font-weight: 600; color: var(--s-acc); white-space: nowrap; }

/* The overview page has five part cards (week 6's .part-cards.five) in the part colours */
.part-cards.w8 li:nth-child(1) .num { color: #d9480f; }
.part-cards.w8 li:nth-child(2) .num { color: #1971c2; }
.part-cards.w8 li:nth-child(3) .num { color: #0c8599; }
.part-cards.w8 li:nth-child(4) .num { color: #2b8a3e; }
.part-cards.w8 li:nth-child(5) .num { color: #7048e8; }

/* Reading page: a long quotation */
.reading blockquote { margin: 10px 0 16px; padding: 4px 0 4px 18px; border-left: 4px solid var(--pink); color: var(--ink-2); }
