/* /fractional-revops-cost/ only (2026-11-11): an editorial reference page built around one ruler.
   Loads after data.css. Maple = the market, purple = Outblox, grey = everything else. */

/* Opener: statement, then a deck with the answer and three quiet facts */
.pr-open .statement > span { display: block; }
.pr-deck { margin-top: 28px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 15rem); gap: clamp(28px, 6vw, 96px); align-items: end; }
.pr-deck .lede { margin: 0; max-width: 54ch; font-size: clamp(1.12rem, 1.45vw, 1.3rem); line-height: 1.55; color: var(--text-primary); opacity: .92; }
.pr-facts { margin: 0; display: grid; gap: 14px; border-left: 1px solid var(--line); padding-left: 22px; }
.pr-facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; }
.pr-facts dt { color: var(--text-secondary); font-size: .9rem; }
.pr-facts dd { margin: 0; font: 800 1.5rem/1 "Big Shoulders", sans-serif; font-variation-settings: "opsz" 72; color: var(--text-primary); }
.pr-open .updated { display: block; margin-top: 22px; }

/* Section kicker: one plain heading per section, small, so the ruler and the numbers carry the page */
.pr-kick { margin: 0 0 22px; font: 700 1.05rem/1.3 "Bricolage Grotesque", sans-serif; color: var(--text-primary); }

/* The ruler */
.pr-ruler { margin-top: clamp(72px, 11vh, 120px); }
.ruler { margin: 0; --gut: 0px; }
.r-ticks { position: relative; height: 22px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.r-ticks span { position: absolute; left: calc(var(--x) * 1%); bottom: 6px; transform: translateX(-50%); font: 500 .74rem/1 "JetBrains Mono", monospace; color: var(--text-muted); }
.r-ticks span:first-child { transform: none; }
.r-field { position: relative; }
.r-zone { position: absolute; top: 0; bottom: 0; left: calc(var(--a) * 1%); width: calc((var(--b) - var(--a)) * 1%); background: rgba(207, 167, 116, .07); }
.r-med { position: absolute; top: 0; bottom: 0; left: calc(var(--x) * 1%); border-left: 1px dashed rgba(207, 167, 116, .7); }
.r-rows { list-style: none; margin: 0; padding: 10px 0; position: relative; }
.rr { position: relative; height: 26px; }
.rr-track { position: absolute; inset: 0; }
.rr-bar { position: absolute; top: 12px; left: calc(var(--lo) * 1%); width: calc((var(--hi) - var(--lo)) * 1%); height: 2px; background: rgba(207, 167, 116, .55); }
.rr-bar::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--maple); }
.rr-bar::after { content: ""; position: absolute; right: -2px; top: -1px; width: 4px; height: 4px; border-radius: 50%; background: var(--maple); }
.rr-lab { position: absolute; top: 4px; white-space: nowrap; font-size: .86rem; line-height: 1.2; color: var(--text-primary); z-index: 1; }
.rr-lab em { font-style: normal; color: var(--text-muted); margin-left: 6px; font-variant-numeric: tabular-nums; }
.rr.side-r .rr-lab { left: calc(var(--hi) * 1% + 14px); }
.rr.side-l .rr-lab { right: calc(100% - var(--lo) * 1% + 14px); }
.rr.mine .rr-bar { background: none; }
.rr.mine .rr-bar::before { width: 12px; height: 12px; left: -6px; top: -5px; background: var(--purple-bright); box-shadow: 0 0 0 4px rgba(139, 92, 246, .22); }
.rr.mine .rr-bar::after { display: none; }
.rr.mine .rr-lab, .rr.mine .rr-lab em { color: var(--purple-bright); font-weight: 600; }
.r-notes { position: relative; height: 40px; border-top: 1px solid var(--line); margin-top: 4px; }
.r-notes span { position: absolute; top: 10px; font-size: .8rem; color: var(--maple); white-space: nowrap; }
.r-notes .n-zone { left: calc(var(--a) * 1%); }
.r-notes .n-med { top: 26px; left: calc(var(--x) * 1%); padding-left: 6px; border-left: 1px dashed rgba(207, 167, 116, .7); }
.ruler figcaption { margin-top: 14px; max-width: 64ch; font-size: .84rem; line-height: 1.5; color: var(--text-muted); }

/* The spread: the hourly figure on the left, the reading notes on the right */
.pr-spread { margin-top: clamp(80px, 12vh, 128px); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 6vw, 104px); align-items: start; }
.pr-hour { border-top: 2px solid var(--maple); padding-top: 22px; }
.pr-eq { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; font-size: 1rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.pr-eq .op { color: var(--maple); font-weight: 600; }
.pr-eq span:last-child { color: var(--text-primary); font-weight: 600; }
.pr-big { margin: 18px 0 0; font: 900 clamp(5.5rem, 13vw, 11rem)/.82 "Big Shoulders", sans-serif; font-variation-settings: "opsz" 72; color: var(--maple); letter-spacing: -.01em; }
.pr-cap { margin: 18px 0 0; max-width: 40ch; color: var(--text-secondary); line-height: 1.55; }
.pr-cap .mine { color: var(--purple-bright); font-weight: 600; }
.pr-body { border-top: 1px solid var(--line); padding-top: 22px; }
.pr-body p { margin: 0 0 16px; max-width: 58ch; color: var(--text-secondary); line-height: 1.65; }
.pr-body p strong { color: var(--text-primary); }

.pr-calc { margin-top: clamp(80px, 12vh, 128px); }

/* Phones: the ruler keeps its scale; each name sits on its own line above its bar */
@media (max-width: 760px) {
  .pr-deck { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .pr-facts { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 16px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pr-facts div { flex-direction: column-reverse; align-items: flex-start; gap: 4px; }
  .rr { height: auto; padding: 4px 0 6px; }
  .rr-lab, .rr.side-r .rr-lab, .rr.side-l .rr-lab { position: static; display: block; font-size: .82rem; white-space: normal; }
  .rr-track { position: relative; display: block; height: 10px; }
  .rr-bar { top: 4px; }
  .r-ticks span:nth-child(even) { display: none; }
  .r-notes { height: auto; padding-top: 10px; }
  .r-notes span, .r-notes .n-med { position: static; display: block; border-left: 0; padding-left: 0; margin-bottom: 4px; white-space: normal; }
  .pr-spread { grid-template-columns: minmax(0, 1fr); }
}

/* 2026-11-12: the ruler became one simple line (Bryce: far too complicated for a typical viewer) */
.pr-simple { max-width: 980px; margin-top: 28px; }
.pr-simple figcaption { margin-top: 14px; max-width: 60ch; }
.pr-simple-key { display: none; margin: 14px 0 0; gap: 6px 18px; flex-wrap: wrap; font-size: .95rem; color: var(--text-secondary); }
.pr-simple-key b { color: var(--text-primary); font-weight: 600; }
.pr-simple-key .mine, .pr-simple-key .mine b { color: var(--purple-bright); }
@media (max-width: 640px) {
  .pr-simple svg text { display: none; }
  .pr-simple-key { display: flex; }
}
