/* Operator comparison pages. Loaded after whitepaper.css. Each operator sets its colour with --c. */
.wp .op { color: var(--c); }
.wp a.op { text-decoration-color: color-mix(in srgb, var(--c) 40%, transparent); }
.wp .dim-label { display: block; color: var(--dim); font-size: 15px; margin-top: 2px; }
.wp .note { font-size: 14px; color: var(--dim); }

/* Operator toggle */
.wp .op-toggle { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 20px; }
.wp .op-toggle button { font: inherit; font-size: 14px; font-weight: 600; color: var(--text); background: transparent; border: 1px solid #3a3a6a; border-radius: 6px; padding: 7px 14px; cursor: pointer; }
.wp .op-toggle button::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c, transparent); margin-right: 7px; vertical-align: 0; }
.wp .op-toggle button[data-op="all"]::before { display: none; }
.wp .op-toggle button[aria-pressed="true"] { color: #fff; border-color: var(--c, #fff); background: rgba(255,255,255,.05); }

/* Radar and score table */
.wp .scores-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.wp .radar { width: 100%; height: auto; display: block; }
.wp .radar .poly { transition: opacity .2s, fill-opacity .2s; fill-opacity: .1; }
.wp .radar .poly.is-dim { opacity: .12; }
.wp .radar .poly.is-on { fill-opacity: .25; }
.wp table.scores td:not(:first-child), .wp table.scores th:not(:first-child) { text-align: center; }
.wp table.scores .is-dim { opacity: .3; }
.wp table.scores .is-on { color: #fff; font-weight: 700; }

/* Deep dive */
.wp details.dive { border: 1px solid var(--line); border-radius: 6px; margin-bottom: 12px; background: var(--panel); }
.wp details.dive > summary { cursor: pointer; list-style: none; padding: 18px 22px; display: flex; justify-content: space-between; gap: 16px; }
.wp details.dive > summary::-webkit-details-marker { display: none; }
.wp details.dive > summary::after { content: '+'; color: var(--accent); font-size: 22px; line-height: 1; }
.wp details.dive[open] > summary::after { content: '–'; }
.wp details.dive > summary strong { display: block; font-size: 18px; }
.wp .dive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; padding: 4px 22px 18px; }
.wp .dive-grid > div { border-left: 2px solid var(--c); padding: 4px 0 4px 16px; margin-bottom: 18px; font-size: 15px; line-height: 1.6; }
.wp .dive-grid h4 { margin: 0 0 8px; font-size: 15px; color: var(--c); }
.wp .dive-grid ul { padding-left: 18px; margin-bottom: 10px; }
.wp .dive-grid li { margin-bottom: 4px; }
.wp .dive-grid p { margin: 0; color: #fff; font-size: 15px; }

/* Timeline */
.wp .timeline { margin: 8px 0 24px; }
.wp .tl-row { display: grid; grid-template-columns: 150px 1fr; align-items: center; gap: 12px; padding: 8px 0; }
.wp .tl-name { font-size: 14px; font-weight: 600; color: var(--c); }
.wp .tl-track { position: relative; height: 10px; background: rgba(255,255,255,.04); border-radius: 5px; }
.wp .tl-bar { position: absolute; top: 0; bottom: 0; border-radius: 5px; background: var(--c); opacity: .35; }
.wp .tl-dot { position: absolute; top: 50%; width: 14px; height: 14px; margin: -7px 0 0 -7px; padding: 0; border-radius: 50%; background: var(--c); border: 2px solid #0c0c24; cursor: pointer; transition: transform .15s; }
.wp .tl-dot::after { content: ''; position: absolute; inset: -8px; }
.wp .tl-dot:hover, .wp .tl-dot:focus-visible, .wp .tl-dot[aria-pressed="true"] { transform: scale(1.35); outline: none; box-shadow: 0 0 0 2px var(--c); }
.wp .tl-row.is-past .tl-bar, .wp .tl-row.is-past .tl-name { opacity: .6; }
.wp .tl-detail { min-height: 3.4em; margin: 18px 0 0; padding: 14px 18px; background: var(--panel); border: 1px solid var(--line); border-left: 3px solid var(--c, var(--line)); border-radius: 6px; font-size: 15px; color: var(--dim); }
.wp .tl-detail strong { color: var(--c); margin-right: 8px; }
.wp .tl-axis { display: grid; grid-template-columns: 150px 1fr; gap: 12px; font-size: 12px; color: var(--dim); }
.wp .tl-axis div { position: relative; height: 18px; }
.wp .tl-axis div span { position: absolute; transform: translateX(-50%); }

/* Velocity bars */
.wp .meter { height: 8px; background: rgba(255,255,255,.05); border-radius: 4px; min-width: 120px; }
.wp .meter span { display: block; height: 100%; border-radius: 4px; background: var(--c); }

/* Health signals */
.wp .signals { font-size: 14px; margin: -6px 0 18px; }
.wp .signals .good { color: var(--accent); }
.wp .signals .ok { color: #ffbd2e; }
.wp .signals .bad { color: #ff7a7a; }
.wp .verdict-label { font-size: 14px; font-weight: 600; color: var(--dim); margin-left: 8px; }

/* Priority picker */
.wp .priorities { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 8px 0 20px; }
.wp .priorities button { font: inherit; text-align: left; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; cursor: pointer; }
.wp .priorities button strong { display: block; font-size: 15px; }
.wp .priorities button span { display: block; font-size: 13px; color: var(--dim); line-height: 1.45; margin-top: 2px; }
.wp .priorities button[aria-pressed="true"] { border-color: var(--accent); background: rgba(0,255,157,.06); }
.wp .priorities button:disabled { opacity: .4; cursor: not-allowed; }
.wp .picker-status { font-size: 14px; color: var(--dim); }
.wp .picker-results ol { padding-left: 22px; }
.wp .picker-results li { margin-bottom: 14px; }
.wp .picker-results li strong { color: var(--c); }
.wp .picker-results .match { color: #fff; font-weight: 600; margin-left: 6px; }
.wp .picker-results .why { display: block; font-size: 14px; color: var(--dim); }
.wp .link-button { font: inherit; font-size: 14px; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 800px) {
  .wp .scores-layout, .wp .dive-grid,   .wp .priorities { grid-template-columns: 1fr 1fr; }
  .wp .tl-row, .wp .tl-axis { grid-template-columns: 96px 1fr; }
  .wp .tl-axis div span:nth-child(even) { display: none; }
}
