/* Jimfund presentation of the Problemspace employee-uplift model. */
    * { box-sizing: border-box; }

    body {
      max-width: 820px;
      margin: 64px auto;
      padding: 0 20px;
      color: var(--text);
      background: var(--panel);
      font-size: 17px;
      line-height: 1.5;
    }

    header { margin-bottom: 48px; }
    header img { display: block; width: 260px; max-width: 100%; }

    h1 {
      margin: 0 0 18px;
      font-size: 2.2rem;
      font-weight: normal;
      line-height: 1.1;
    }

    h2 {
      margin: 0 0 20px;
      font-size: 1.35rem;
      font-weight: normal;
      line-height: 1.2;
    }

    p { margin: 0 0 18px; }
    small { color: var(--muted); }
    a { color: inherit; text-underline-offset: .15em; }

    .deck {
      max-width: 680px;
      margin-bottom: 32px;
      color: var(--muted);
    }

    .assumption {
      margin: 0 0 34px;
      padding: 16px 18px;
      border-left: 3px solid var(--text);
      background: var(--panel-2);
    }

    .assumption p:last-child { margin-bottom: 0; }

    input,
    button { font: inherit; }

    input[type="number"],
    input[type="date"] {
      padding: 5px 7px;
      border: 1px solid var(--line-strong);
      border-radius: 2px;
      background: var(--panel);
      color: var(--text);
    }

    input[type="number"] { width: 92px; }
    .readout input[type="number"] { width: 145px; max-width: 100%; font: inherit; }
    input[type="date"] { width: 154px; }

    button {
      padding: 6px 10px;
      border: 1px solid var(--line-strong);
      border-radius: 2px;
      background: var(--panel);
      color: var(--text);
      cursor: pointer;
    }

    button:hover { background: var(--panel-2); }

    button[aria-pressed="true"] {
      border-color: var(--text);
      background: var(--text);
      color: var(--panel);
    }

    button:disabled { cursor: default; opacity: 1; }

    hr {
      margin: 38px 0;
      border: 0;
      border-top: 1px solid var(--line);
    }

    .base-controls {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 0 34px;
    }

    .control { margin: 0 0 20px; }
    .control label { display: block; margin-bottom: 5px; }
    .control small { display: block; margin-top: 4px; line-height: 1.35; }

    .mode-controls { margin: 4px 0 24px; }
    .mode-controls small { display: block; margin-top: 6px; }

    #paper-decomposition-controls[aria-disabled="true"] { opacity: .55; }

    .anchor-row {
      display: grid;
      grid-template-columns: minmax(118px, 1fr) 154px 94px;
      align-items: end;
      gap: 12px;
      margin-bottom: 14px;
    }

    .anchor-name { padding-bottom: 6px; }
    .anchor-row label { color: var(--muted); font-size: .8rem; }
    .anchor-row label span { display: block; margin-bottom: 4px; }

    .difficulty-anchor {
      margin: 0 0 18px;
      padding: 14px 16px 16px;
      border: 1px solid var(--line);
    }

    .difficulty-anchor-title { margin-bottom: 10px; }

    .confidence-grid {
      display: grid;
      grid-template-columns: minmax(130px, 1fr) repeat(3, 100px);
      align-items: center;
      gap: 8px 10px;
    }

    .confidence-grid label { color: var(--muted); font-size: .86rem; }
    .confidence-grid input { width: 100%; min-width: 0; }

    .confidence-heading {
      color: var(--muted);
      font-size: .75rem;
      text-align: center;
    }

    .parameter-ci-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      align-items: center;
      gap: 7px 9px;
    }

    .parameter-ci-grid input { width: 100%; min-width: 0; }

    #assumptions-controls[data-confidence-enabled="false"] .ci-only,
    #assumptions-controls[data-confidence-enabled="false"] .ci-lower-heading,
    #assumptions-controls[data-confidence-enabled="false"] .ci-upper-heading,
    #assumptions-controls[data-confidence-enabled="false"] input[id$="-low"],
    #assumptions-controls[data-confidence-enabled="false"] input[id$="-high"] {
      display: none;
    }

    #assumptions-controls[data-confidence-enabled="false"] .parameter-ci-grid {
      grid-template-columns: minmax(0, 1fr);
    }

    #assumptions-controls[data-confidence-enabled="false"] .confidence-grid {
      grid-template-columns: minmax(130px, 1fr) 100px;
    }

    .uplift-anchors {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 16px;
      margin-bottom: 14px;
    }

    .uplift-anchor-card {
      min-width: 0;
      padding: 14px 16px 16px;
      border: 1px solid var(--line);
    }

    .uplift-anchor-header {
      display: flex;
      justify-content: space-between;
      align-items: end;
      gap: 12px;
      margin-bottom: 13px;
    }

    .uplift-anchor-header label,
    .uplift-value-label {
      color: var(--muted);
      font-size: .86rem;
    }

    .uplift-anchor-header label span,
    .uplift-value-label { display: block; margin-bottom: 4px; }

    .readouts {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      margin: 27px 0;
      border-top: 1px solid var(--line);
      border-bottom: 1px solid var(--line);
    }

    .readout {
      min-width: 0;
      padding: 14px 18px 15px 0;
      border-bottom: 1px solid var(--line);
    }

    .readout:nth-child(even) {
      padding-left: 18px;
      border-left: 1px solid var(--line);
    }

    .readout:nth-last-child(-n + 2) { border-bottom: 0; }
    .readout:nth-last-child(2):nth-child(even) { border-bottom: 1px solid var(--line); }
    .readout:last-child:nth-child(odd) { grid-column: 1 / -1; padding-left: 0; border-left: 0; }

    .readout dt {
      margin: 0 0 4px;
      color: var(--muted);
      font-size: .8rem;
    }

    .readout dd { margin: 0; }
    .readout strong { font-size: 1.23rem; font-weight: normal; }
    .muted { color: var(--muted); }

    #chart {
      display: block;
      width: 100%;
      height: auto;
      margin-top: 24px;
    }

    #date-scrubber { width: 100%; }

    .formula {
      overflow-x: auto;
      margin: 18px 0;
      padding: 15px 17px;
      background: var(--panel-2);
      font-family: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
      font-size: .86rem;
      line-height: 1.6;
      white-space: nowrap;
    }

    @media (max-width: 600px) {
      body { margin: 36px auto; padding: 0 14px; font-size: 16px; }
      header { margin-bottom: 36px; }
      .base-controls, .readouts { grid-template-columns: 1fr; }
      .anchor-row { grid-template-columns: minmax(0, 1.55fr) minmax(0, .8fr); gap: 8px 12px; }
      .anchor-name { grid-column: 1 / -1; padding-bottom: 0; }
      .anchor-row input { width: 100%; min-width: 0; }
      .difficulty-anchor { padding: 12px 10px 14px; }
      .confidence-grid {
        grid-template-columns: minmax(92px, 1.25fr) repeat(3, minmax(0, 1fr));
        gap: 7px 6px;
      }
      .confidence-grid input { padding-left: 5px; padding-right: 5px; }
      .parameter-ci-grid { gap: 7px 6px; }
      .parameter-ci-grid input { padding-left: 5px; padding-right: 5px; }
      .uplift-anchors { grid-template-columns: 1fr; }
      .uplift-anchor-card { padding: 12px 10px 14px; }
      .readout, .readout:nth-child(even) {
        padding: 12px 0;
        border-left: 0;
        border-bottom: 1px solid var(--line);
      }
      .readout:nth-last-child(2) { border-bottom: 1px solid var(--line); }
      .readout:last-child { border-bottom: 0; }
      .readout:last-child:nth-child(odd) { grid-column: auto; }
    }

/* Shared site tokens and the same instrument styling as the projection and portfolio. */
:root { color-scheme: dark; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  max-width: none; margin: 0; padding: 0;
  background: linear-gradient(rgba(213, 221, 230, .06) 1px, transparent 1px), var(--bg);
  background-size: 100% 4px;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 15px; line-height: 1.6;
}
.horizon-shell { width: min(1120px, calc(100% - 28px)); }
.site-header { margin-bottom: 24px; }
h1 { max-width: 950px; margin-bottom: 10px; color: var(--accent-strong); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; }
h2, .model-kicker, .difficulty-anchor-title, .uplift-anchor-header > div {
  color: var(--accent-strong); font-family: "IBM Plex Mono", monospace;
  font-size: .76rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
}
h2 { margin-bottom: 20px; line-height: 1.5; }
.model-kicker { margin-bottom: 9px; color: var(--muted); font-size: .68rem; }
.deck { max-width: 800px; margin-bottom: 24px; color: var(--muted); }
.projection-panel, #assumptions-controls { padding: 22px; border: 1px solid var(--line); background: var(--panel); }
.projection-panel { position: relative; margin-bottom: 24px; }
.projection-panel > h2 { padding-right: 300px; margin: 3px 0 20px; }
.range-controls { position: absolute; top: 18px; right: 22px; display: flex; align-items: center; gap: 6px; color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: .72rem; }
button { min-height: 32px; padding: 5px 10px; border-radius: 0; font-family: "IBM Plex Mono", monospace; font-size: .72rem; font-weight: 400; letter-spacing: .03em; color: var(--muted); }
button:hover { border-color: var(--accent); color: var(--accent-strong); }
button[aria-pressed="true"] { border-color: var(--accent); background: var(--panel-2); color: var(--accent-strong); }
button:focus-visible, input:focus-visible { outline: 1px solid var(--signal); outline-offset: 3px; }
input[type="number"], input[type="date"] { min-height: 34px; border-radius: 0; background: var(--bg); color: var(--text); font-family: "IBM Plex Mono", monospace; font-size: .8rem; font-variant-numeric: tabular-nums; }
input[type="range"] { accent-color: var(--accent); cursor: pointer; }
.chart-wrap { width: 100%; overflow-x: auto; }
#chart { min-width: 620px; margin-top: 0; font-family: "IBM Plex Mono", monospace; }
.chart-caption { margin: 0 0 16px; font-family: "IBM Plex Mono", monospace; font-size: .78rem; line-height: 1.5; }
.date-controls { padding: 14px 16px; background: var(--panel-2); border: 1px solid var(--line); }
.date-controls label { margin-right: 12px; font-family: "IBM Plex Mono", monospace; font-size: .75rem; color: var(--accent-strong); }
#date-scrubber { display: block; margin: 14px 0 9px; }
.projection-panel > .muted { max-width: 800px; margin-bottom: 8px; font-size: .8rem; }
#target-status:empty { display: none; }
#target-status { color: var(--accent-strong); font-size: .85rem; }
.readouts { margin: 18px 0 0; }
.readout { padding: 17px 18px 17px 0; }
.readout dt { font-family: "IBM Plex Mono", monospace; font-size: .65rem; text-transform: uppercase; letter-spacing: .07em; }
.readout strong { color: var(--accent-strong); font-family: "IBM Plex Mono", monospace; font-weight: 500; }
.readout .muted { font-size: .78rem; }
.readout input[type="number"] { width: 170px; font: inherit; font-size: 1rem; }
.assumption { margin: 0 0 24px; padding: 16px 20px; border-left: 2px solid var(--accent); background: var(--panel); font-size: .88rem; }
#assumptions-controls { margin-top: 24px; }
.base-controls { gap: 0 28px; }
.mode-controls { padding: 14px 0; border-top: 1px solid var(--line); font-size: .85rem; }
.mode-controls button { margin: 3px 0 3px 5px; }
.control > label { color: var(--text); font-size: .9rem; }
.control small, .mode-controls small { font-size: .78rem; }
.confidence-heading { font-family: "IBM Plex Mono", monospace; font-size: .65rem; }
.difficulty-anchor, .uplift-anchor-card { background: var(--panel-2); }
.uplift-anchor-header { flex-wrap: wrap; }
section[aria-labelledby="method-title"] { max-width: 800px; margin: 0 auto; }
section[aria-labelledby="method-title"] > p { color: var(--article-text); }
section[aria-labelledby="method-title"] a { color: var(--accent); text-decoration: underline; }
.formula { border: 1px solid var(--line); color: var(--accent-strong); }
.model-footer { display: flex; justify-content: space-between; gap: 16px; margin-top: 36px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--muted); font-family: "IBM Plex Mono", monospace; font-size: .65rem; text-transform: uppercase; letter-spacing: .1em; }
@media (max-width: 700px) {
  .projection-panel, #assumptions-controls { padding: 16px 12px; }
  .projection-panel > h2 { padding-right: 0; margin-bottom: 12px; }
  .range-controls { position: static; flex-wrap: wrap; margin-bottom: 12px; }
  .base-controls, .uplift-anchors { grid-template-columns: 1fr; }
  .site-header__inner { gap: 14px; }
  .site-header__meta { gap: 8px 12px; font-size: .6rem; letter-spacing: .06em; }
  .brand { font-size: .8rem; }
  .date-controls { padding: 12px; }
}
@media (max-width: 600px) {
  .readout, .readout:nth-child(even) { padding: 14px 0; }
  .model-footer { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
