/* ============================================================
   THE PIVOT — shared page-local styles (W3)
   Leans on design-system.css. Only Pivot-specific pieces live here.
   Reused DS components: .folio .fig .field .state .loading-rule
   .cta .cta2 .kicker .deck .mono .depts
   Red budget preserved: red = links, accents, one data series.
   Shared by the hub and (via /pivot/pivot.css) all four tool pages.
   ============================================================ */

.pv-h { font-family:var(--font-display); font-weight:700; font-size:44px; line-height:1; letter-spacing:-.025em; margin-top:8px; }
.masthead h1 a { color:inherit; }
.masthead h1 a span { color:var(--red); }
/* Tool-page leads (skills/values/energy/stories) share .pv-lead but are a plain
   single column — give their headline the full measure so it does not cap mid-row. */
.pv-lead { margin-top:36px; }
.pv-lead .pv-h { max-width:1100px; }
.pv-lead > .deck { max-width:840px; }

/* Hub lead only (has .pv-lead-main): two-column — headline earns the left measure
   (one line at 1240); a live progress aside fills the right. Collapses at 820. */
.pv-lead:has(.pv-lead-main) { display:grid; grid-template-columns:1fr 300px; gap:56px; align-items:start; }
.pv-lead-main { min-width:0; max-width:820px; }
.pv-lead-main .deck { max-width:720px; }
.pv-lead-aside { border-left:1px solid var(--hair); padding-left:36px; }
.pv-lead-aside .pla-label { font-family:var(--font-body); font-weight:700; font-size:11px; letter-spacing:.16em; text-transform:uppercase; border-bottom:3px solid var(--rule); padding-bottom:8px; margin-bottom:2px; display:block; }
.pla-count { padding:14px 0 10px; }
.pla-count b { font-family:var(--font-display); font-weight:700; font-size:34px; letter-spacing:-.02em; line-height:1; font-variant-numeric:tabular-nums; }
.pla-count.is-live b { color:var(--red); }
.pla-count span { font-size:13px; color:var(--ink2); line-height:1.4; display:block; margin-top:5px; }
.pla-next { border-top:1px solid var(--hair2); padding-top:12px; }
.pla-next .pla-next-k { font-family:var(--font-mono); font-size:9px; letter-spacing:.1em; text-transform:uppercase; color:var(--mut); display:block; margin-bottom:5px; }
.pla-next a { font-family:var(--font-body); font-weight:600; font-size:14px; color:var(--ink); border-bottom:2px solid var(--red); padding-bottom:2px; }
.pla-next a:hover { color:var(--red); }
.pla-note { font-size:9px; letter-spacing:.06em; text-transform:uppercase; color:var(--faint); margin-top:16px; line-height:1.6; }

/* ---------- HUB: tools ledger (design-system .depts pattern) ---------- */
.pv-tools { margin-top:28px; border-top:1px solid var(--rule); }
.pv-tool { display:grid; grid-template-columns:70px 220px 1fr 150px; gap:24px; align-items:baseline; padding:20px 0; border-bottom:1px solid var(--hair2); color:inherit; }
.pv-tool:hover { background:var(--paper2); }
.pv-tool:last-child { border-bottom:1px solid var(--rule); }
.pv-tool .pv-dn { font-family:var(--font-display); font-weight:700; font-size:20px; color:var(--red); }
.pv-tool .pv-name b { font-family:var(--font-display); font-weight:700; font-size:17px; letter-spacing:-.01em; display:block; }
.pv-tool .pv-name small { font-size:12.5px; color:var(--mut); }
.pv-tool p { font-size:14px; color:var(--ink2); line-height:1.55; }
.pv-tool .pv-status { font-family:var(--font-mono); font-size:10px; letter-spacing:.06em; text-transform:uppercase; text-align:right; }
.pv-tool .pv-status.is-none { color:var(--faint); }
.pv-tool .pv-status.is-progress { color:var(--ink2); }
.pv-tool .pv-status.is-done { color:var(--red); }
.pv-tool .pv-status .pv-status-sub { display:block; font-size:9px; color:var(--faint); margin-top:3px; letter-spacing:.05em; }
.pv-tools-note { font-size:12.5px; color:var(--mut); line-height:1.55; margin-top:16px; }
.pv-tools-note a { border-bottom:1px solid var(--red); color:var(--ink2); }
.pv-tools-note a:hover { color:var(--red); }

/* ---------- HUB: repositioning summary card ---------- */
.pv-summary { margin-top:28px; }
.pv-summary .fig-body { display:block; padding:30px 34px; }
.pv-sum-empty { }
.pv-sum-empty h3 { font-family:var(--font-display); font-weight:700; font-size:24px; letter-spacing:-.015em; margin-bottom:12px; }
.pv-sum-empty p { font-size:15.5px; color:var(--ink2); line-height:1.6; max-width:640px; }
.pv-sum-empty .ctarow { margin-top:22px; }

.pv-sum-grid { display:grid; grid-template-columns:1fr 1fr; gap:0; }
.pv-sum-block { border-left:1px solid var(--hair); padding:4px 26px 8px; }
.pv-sum-block:first-child { border-left:none; padding-left:0; }
.pv-sum-block h4 { font-family:var(--font-body); font-weight:700; font-size:12px; letter-spacing:.1em; text-transform:uppercase; border-bottom:2px solid var(--rule); padding-bottom:7px; margin-bottom:12px; }
.pv-sum-row { padding:9px 0; border-bottom:1px solid var(--hair2); }
.pv-sum-row:last-child { border-bottom:none; }
.pv-sum-row .pv-sum-k { font-family:var(--font-mono); font-size:9.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--mut); display:block; margin-bottom:3px; }
.pv-sum-row .pv-sum-v { font-size:15px; color:var(--ink); line-height:1.45; }
.pv-sum-row .pv-sum-v b { font-family:var(--font-display); font-weight:700; }
.pv-sum-tasklist { list-style:none; margin:0; padding:0; }
.pv-sum-tasklist li { font-size:13.5px; color:var(--ink2); line-height:1.4; padding:4px 0; padding-left:14px; position:relative; }
.pv-sum-tasklist li::before { content:"·"; position:absolute; left:2px; color:var(--red); font-weight:700; }
.pv-sum-prompt { font-size:13.5px; color:var(--mut); line-height:1.5; }
.pv-sum-prompt a { font-style:normal; font-family:var(--font-body); font-weight:600; font-size:12.5px; border-bottom:2px solid var(--red); padding-bottom:1px; }
.pv-sum-foot { border-top:1px solid var(--hair); margin-top:22px; padding-top:14px; font-size:13.5px; color:var(--ink2); line-height:1.6; }
.pv-sum-foot b { font-style:normal; }
.pv-sum-cta { margin-top:16px; }

/* ---------- shared tool chrome ---------- */
.pv-progress { display:flex; gap:0; margin-top:24px; border:1px solid var(--hair); }
.pv-progress .pv-step { flex:1; text-align:center; padding:10px 8px; font-family:var(--font-mono); font-size:9.5px; letter-spacing:.08em; text-transform:uppercase; color:var(--faint); border-left:1px solid var(--hair); }
.pv-progress .pv-step:first-child { border-left:none; }
.pv-progress .pv-step.is-active { color:var(--ink); background:var(--paper2); box-shadow:inset 0 -3px 0 var(--red); }
.pv-progress .pv-step.is-done { color:var(--mut); }

.pv-btnrow { margin-top:30px; display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.pv-back { background:none; border:none; cursor:pointer; padding:0; font-family:var(--font-body); font-weight:600; font-size:13px; color:var(--mut); }
.pv-back:hover { color:var(--red); }

.pv-restart { margin-top:24px; }

/* AI coaching block (progressive enhancement) */
.pv-coach { margin-top:28px; }
.pv-coach-fail { font-size:15px; color:var(--ink2); line-height:1.55; border-left:2px solid var(--hair); padding-left:16px; }
.pv-coach-card { border:1px solid var(--hair); padding:22px 24px; }
.pv-coach-card + .pv-coach-card { margin-top:14px; }
.pv-coach-label { font-family:var(--font-mono); font-size:10px; letter-spacing:.08em; text-transform:uppercase; color:var(--mut); margin-bottom:8px; }
.pv-coach-card h4 { font-family:var(--font-display); font-weight:700; font-size:18px; letter-spacing:-.01em; margin-bottom:10px; }
.pv-coach-card p { font-size:15px; color:var(--ink2); line-height:1.6; margin-bottom:8px; }
.pv-coach-card p b { font-family:var(--font-body); font-weight:700; color:var(--ink); }
.pv-coach-list { list-style:none; margin:6px 0 0; padding:0; }
.pv-coach-list li { font-size:15px; color:var(--ink2); line-height:1.55; padding:6px 0 6px 16px; position:relative; }
.pv-coach-list li::before { content:"→"; position:absolute; left:0; color:var(--red); }

.pv-modal-note { border:1px solid var(--hair); border-top:3px solid var(--red); padding:16px 18px; margin-top:24px; display:flex; flex-direction:column; gap:6px; }
.pv-modal-note .pv-mn-label { font-family:var(--font-mono); font-size:9.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--mut); }
.pv-modal-note p { font-size:14px; color:var(--ink2); line-height:1.5; }
.pv-modal-note .pv-btnrow { margin-top:10px; }

/* ---------- RESPONSIVE ---------- */
@media (max-width:820px){
  .pv-lead:has(.pv-lead-main) { grid-template-columns:1fr; gap:0; }
  .pv-lead-main { max-width:none; }
  .pv-lead-aside { border-left:none; padding-left:0; border-top:1px solid var(--rule); margin-top:32px; padding-top:24px; }
  .pv-sum-grid { grid-template-columns:1fr; }
  .pv-sum-block { border-left:none; padding-left:0; padding-right:0; border-top:1px solid var(--hair2); padding-top:18px; margin-top:6px; }
  .pv-sum-block:first-child { border-top:none; }
  .pv-tool { grid-template-columns:44px 1fr; }
  .pv-tool p, .pv-tool .pv-status { grid-column:2; text-align:left; }
  .pv-tool .pv-status { text-align:left; }
  .pv-h { font-size:34px; }
}
@media (max-width:640px){
  .pv-h { font-size:28px; }
  .pv-progress { flex-wrap:wrap; }
  .pv-progress .pv-step { flex:1 1 40%; }
}
@media (max-width:400px){
  .pv-h { font-size:24px; }
}
