:root {
  --heading: #222;
  --body: #333;
  --secondary: #6b6b6b;
  --support: #555;
  --line: #e0e0e0;
  --blue: #326ab6;
  --link: #24578f;
  --green: #54b570;
  --green-deep: #2f7d4a;
  --paper: #fff;
  --tint: #f5f7fa;
  --head-bg: #eef2f8;
  --head-ann: #c9d6e8;
  --head-border: #333;
  --new-bg: #dde7f3;
  --new-border: #5b7db1;
  --redo-border: #7b6fc0;
  --redo-line: #c9c2e6;
  --tbd: #fff1a8;
  --sidebar: 14rem;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --heading: #eef1f5;
    --body: #d5dae0;
    --secondary: #a4acb6;
    --support: #b7bec7;
    --line: #30363e;
    --blue: #86ade6;
    --link: #9cbdeb;
    --green: #6cc487;
    --green-deep: #86d7a0;
    --paper: #14171b;
    --tint: #191d22;
    --head-bg: #1f2834;
    --head-ann: #2b3a4f;
    --head-border: #8d96a2;
    --new-bg: #22324a;
    --new-border: #7194cc;
    --redo-border: #a196e0;
    --redo-line: #4d4775;
    --tbd: #5c4b00;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font: 15px/1.5 "Avenir Next", Avenir, "Helvetica Neue", Helvetica, Arial, sans-serif;
}
a { color: var(--link); text-decoration: none; }
a:hover, button:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 30; background: var(--paper); padding: 8px; }

.index {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar);
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: 28px 18px 32px 22px;
  background: var(--paper);
  font-size: 13px;
  line-height: 1.45;
  z-index: 20;
}
.index .brand { color: var(--heading); font-weight: 600; margin: 0 0 2px; }
.index h2 { font-size: inherit; font-weight: 600; line-height: inherit; margin: 18px 0 6px; }
.index h2 a { color: var(--blue); }
.index ul { list-style: none; padding: 0; margin: 0; }
.index li a { color: var(--body); display: block; padding: 3px 0 3px 10px; border-left: 2px solid transparent; }
.index li a:hover, .index li a:focus-visible { border-color: var(--line); }

main { margin-left: var(--sidebar); padding: 0 40px 64px 44px; }
header.top { padding: 28px 0 4px; }
h1 { color: var(--heading); font-size: 28px; font-weight: 600; line-height: 1.2; margin: 0; }
main > section { margin-top: 40px; }
h2 { color: var(--blue); font-size: 22px; line-height: 28px; font-weight: 600; margin: 0; }
button { font: inherit; color: inherit; background: transparent; border: 0; padding: 0; cursor: pointer; text-align: left; }
.topbar { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 28px; padding-top: 12px; }
.tools-bar { position: sticky; top: 0; z-index: 10; background: var(--paper); }
.topbar select {
  font: inherit;
  color: var(--heading);
  background: var(--paper);
  border: 1.5px solid var(--green);
  border-radius: 6px;
  min-height: 40px;
  padding: 6px 28px 6px 10px;
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--green-deep) 50%), linear-gradient(135deg, var(--green-deep) 50%, transparent 50%);
  background-position: calc(100% - 15px) 17px, calc(100% - 10px) 17px;
  background-size: 5px 5px;
  background-repeat: no-repeat;
}
.topbar label:not(.sr-only) { margin-right: 16px; }
#how-body, #program-body, #tools { padding: 24px 0 0 24px; }
#programs, #tools-top { scroll-margin-top: 20px; }

.defs { display: grid; grid-template-columns: max-content minmax(0, 760px); gap: 20px 32px; margin: 0; line-height: 1.5; }
.defs dt { color: var(--heading); font-weight: 600; }
.defs dd { margin: 0; }
.roles { border-collapse: collapse; width: max-content; max-width: calc(100vw - var(--sidebar) - 360px); }
.roles th, .roles td { text-align: left; font-weight: 400; padding: 0 28px 2px 0; vertical-align: top; line-height: 22px; }
.roles th:last-child, .roles td:last-child { padding-right: 0; }
.roles thead th { font-weight: 600; color: var(--heading); }
.plain { list-style: none; padding: 0; margin: 0; }
.plain li { line-height: 22px; margin-bottom: 2px; }
.loop-wrap { max-width: 720px; }
.loop-wrap svg { width: 100%; height: auto; display: block; }
.track { fill: none; stroke-width: 4; }
.node { fill: var(--paper); stroke-width: 2; }
.node-num { fill: var(--heading); font-weight: 600; }
.lbl { fill: var(--heading); }
.loop-note { margin: 4px 0 0; font-size: 13px; color: var(--secondary); }
.tbd { background: var(--tbd); color: var(--body); padding: 1px 4px; border-radius: 2px; }
.tbd-bg { fill: var(--tbd); }

.rlegend { margin: 0 0 8px; display: flex; gap: 6px; }
.rwrap { overflow-x: auto; padding-bottom: 8px; max-width: 100%; }
.rgrid { display: grid; width: max-content; column-gap: 6px; align-items: stretch; }
.rgrid.coaching { grid-template-columns: 96px repeat(14, 160px); }
.rgrid.roundtable { grid-template-columns: 96px 140px repeat(12, 150px); }
.rhead { padding-bottom: 4px; }
.yend { margin-right: 6px; }
.rh { height: 100%; border: 1.5px solid var(--head-border); background: var(--head-bg); font-weight: 600; font-size: 13px; text-align: center; padding: 5px 4px; color: var(--heading); line-height: 1.25; }
.rh.annual { background: var(--head-ann); }
.rh small { display: block; font-size: inherit; font-weight: 400; color: var(--support); }
.rh a, .chart-links a, .rb a { text-decoration: underline; text-underline-offset: 2px; }
.rsys { align-content: start; color: var(--heading); padding: 5px 4px 4px 0; font-size: 13px; line-height: 1.25; font-weight: 600; border-top: 1px solid var(--line); position: sticky; left: 0; z-index: 1; background: var(--paper); }
.rcell { border-top: 1px solid var(--line); padding: 4px 0 2px; min-height: 26px; display: flex; flex-direction: column; gap: 1px; }
.rcell.alt { background: var(--tint); }
.rgrid:has(.rowtog[aria-expanded="false"]) .rcell:not(:has(> :not([hidden]))) { min-height: 0; padding-block: 0; }
.rnone { text-align: center; color: var(--secondary); font-size: 13px; }
.k, .rb { display: block; font-size: 13px; line-height: 1.25; padding: 1px 5px; border: 1px solid transparent; color: var(--body); }
.k.new, .rb.new { background: var(--new-bg); border-color: var(--new-border); }
.k.redo, .rb.redo { border-color: var(--redo-line); border-left: 3px solid var(--redo-border); }
.k.seen, .rb.seen { color: var(--support); }
a.rb { text-decoration: underline; text-underline-offset: 2px; }
a.rb:hover { border-color: var(--blue); }
.k::before, .rb::before { content: ""; display: inline-block; width: 11px; height: 11px; margin-right: 4px; vertical-align: -1px; border-radius: 2px; }
.k.new::before, .rb.new::before { background: var(--new-border); clip-path: polygon(0 100%, 0 70%, 70% 0, 100% 30%, 30% 100%); }
.k.redo::before, .rb.redo::before { border: 2px solid var(--redo-border); border-radius: 50%; width: 7px; height: 7px; }
.k.seen::before, .rb.seen::before { border: 2px solid var(--secondary); border-radius: 50%; width: 9px; height: 5px; vertical-align: 1px; }
.chart-links { padding: 0 5px 3px; display: flex; flex-wrap: wrap; gap: 2px 7px; font-size: 13px; line-height: 1.25; }

.tool { scroll-margin-top: 64px; }
.tool + .tool { margin-top: 20px; }
.tool:has(> .tool-body:not([hidden])) + .tool { margin-top: 28px; }
.tool h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin: 0; color: var(--blue); font-size: 15px; font-weight: 600; line-height: 24px; }
.system { color: var(--secondary); font-size: 13px; font-weight: 400; }
.mat-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 4px 0 0; }
.mat { font-size: 13px; line-height: 20px; }
button.mat { color: var(--link); }
button.mat[aria-expanded="true"] { text-decoration: underline; }
.mat-items { list-style: none; margin: 4px 0 6px; padding: 0 0 0 24px; font-size: 13px; }
.mat-items li { margin: 2px 0; }
.artifact { margin: 12px 0 0 24px; }
