/* PPC Playbook: readable lessons, accessible tables and release cards. */
.playbook-head { max-width: 1040px; }
.playbook-head h1 { max-width: 18ch; }
.playbook-back { display: block; width: fit-content; margin-bottom: 16px; color: var(--volt); }
.playbook-answer { max-width: 65ch; color: var(--on-dark); font-size: 1.05rem; }
.playbook-meta { margin-top: 24px; color: var(--muted-dark); font-size: .9rem; }
.playbook-article { max-width: 820px; }
.playbook-article > section + section { margin-top: 52px; }
.playbook-article h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.12; }
.playbook-article h3 { margin-top: 24px; }
.playbook-article p { max-width: none; }
.playbook-article blockquote { margin: 20px 0; padding-left: 22px; border-left: 3px solid var(--teal-ink); font-size: 1.15rem; }
.playbook-table-wrap { max-width: 100%; overflow-x: auto; margin: 28px 0; border: 1px solid var(--rule); border-radius: var(--radius); }
.playbook-table { width: 100%; min-width: 480px; border-collapse: collapse; font-size: .95rem; }
.playbook-table caption { text-align: left; padding: 18px; font-weight: 600; background: var(--paper); }
.playbook-table th, .playbook-table td { border: 1px solid var(--rule); padding: 12px 16px; text-align: right; white-space: nowrap; }
.playbook-table th:first-child { text-align: left; white-space: normal; }
.playbook-table thead th { background: var(--night-2); color: var(--on-dark); }
.playbook-table tbody th { font-weight: 500; }
.playbook-table tbody tr:nth-child(even) { background: var(--paper); }
.playbook-formula { margin: 28px 0; padding: 24px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.playbook-formula h3 { margin-top: 0; }
.playbook-formula p { font-size: .98rem; overflow-wrap: anywhere; margin-bottom: .55em; }
.playbook-formula p:last-child { margin-bottom: 0; }
.playbook-exercise { padding-left: 24px; }
.playbook-exercise li { padding-left: 4px; margin-bottom: 16px; }
.playbook-next, .playbook-conversation { border-top: 1px solid var(--rule); padding-top: 36px; }
.playbook-source { margin-top: 44px; font-size: .88rem; color: var(--muted); }
.playbook-lessons { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); list-style: none; padding: 0; margin: 0; gap: 24px; }
.playbook-lesson { min-width: 0; padding: 28px; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); }
.playbook-lesson--live { border-color: var(--teal-ink); background: var(--white); grid-column: 1 / -1; }
.playbook-lesson--next { grid-column: 1 / -1; }
.playbook-group + .playbook-group, .playbook-group + .playbook-lessons--next { margin-top: 48px; }
.playbook-group > h3 { font-size: 1.2rem; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.playbook-lesson h4 { font-family: var(--display); font-size: 1.45rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1.18; color: var(--ink); margin: 0 0 0.45em; }
.playbook-lesson h4 a { color: var(--ink); text-decoration: none; }
.playbook-lesson h4 a:hover { color: var(--teal-ink); text-decoration: underline; }
.playbook-tool { margin-top: 20px; font-size: .95rem; color: var(--muted); }
.playbook-status { font-size: .875rem; color: var(--muted); }
.playbook-follow { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); font-size: .95rem; color: var(--ink); }
.playbook-follow a { color: var(--teal-ink); }
.playbook-practice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 52px; }
.playbook-practice > div { min-width: 0; }
.playbook-practice h3 { margin-bottom: 18px; }
.playbook-practice p + h3 { margin-top: 36px; }
@media (max-width: 760px) {
  .playbook-lessons, .playbook-practice { grid-template-columns: 1fr; }
  .playbook-lesson { padding: 24px 20px; }
  .playbook-article > section + section { margin-top: 40px; }
  .playbook-formula { padding: 20px 16px; }
  .playbook-head h1 { max-width: 18ch; }
}


/* Kit signup: native POST, no third-party script on page load. */
.playbook-signup { margin-top: 32px; padding: clamp(20px, 4vw, 32px); border: 1px solid var(--ink); border-top: 4px solid var(--teal-ink); border-radius: 12px; background: var(--night-2, #132e3b); color: #fff; }
.playbook-signup h2 { color: #fff; font-size: clamp(24px, 3vw, 32px); margin: 0 0 12px; }
.playbook-signup p, .playbook-signup label { color: #fff; }
.playbook-signup .kicker { color: var(--volt); margin: 0 0 12px; }
.playbook-newsletter .playbook-signup { margin-top: 0; }
.playbook-signup label { display: block; margin: 20px 0 8px; font-size: 16px; }
.playbook-signup-fields { display: flex; gap: 12px; flex-wrap: wrap; }
.playbook-signup input { flex: 1 1 220px; min-width: 0; width: 100%; padding: 14px; border: 2px solid #fff; border-radius: 6px; background: #fff; color: #132e3b; font: inherit; }
.playbook-signup input::placeholder { color: #52626a; }
.playbook-signup .btn { flex: 0 0 auto; margin: 0; }
.playbook-signup .playbook-signup-note { font-size: 14px; line-height: 1.6; margin: 16px 0 0; }
.playbook-signup a { color: #fff; text-decoration: underline; }
.playbook-signup :focus-visible { outline: 3px solid #60dfd0; outline-offset: 4px; }
@media (max-width: 500px) { .playbook-signup-fields .btn { width: 100%; justify-content: center; } }

/* Lesson views: radio tabs over shared inputs. Without :has(), every view shows in order. */
.lesson-views { margin: 32px 0; padding: clamp(18px, 3vw, 28px); border: 1px solid var(--rule); border-radius: var(--radius); background: var(--white); }
.lesson-views > figcaption { font-family: var(--display); font-size: 1.3rem; font-weight: 600; color: var(--ink); margin: 0 0 14px; }
.lesson-view-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; border: 0; min-width: 0; }
.lesson-view-tabs legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lesson-view-tabs input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.lesson-view-tabs label { padding: 10px 16px; border: 1px solid var(--ink); border-radius: 999px; font-size: 0.95rem; font-weight: 600; color: var(--ink); background: var(--white); cursor: pointer; }
.lesson-view-tabs input:checked + label { background: var(--ink); color: var(--white); }
.lesson-view-tabs input:focus-visible + label { outline: 3px solid var(--teal-ink); outline-offset: 3px; }
.lesson-view + .lesson-view { margin-top: 32px; }
.lesson-view h3 { margin: 0 0 8px; font-size: 1.05rem; }
.lesson-view-note { margin: 14px 0 0; font-size: 0.95rem; color: var(--muted); }
.lesson-view-source { margin: 22px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 0.9rem; color: var(--muted); }
@supports selector(:has(*)) {
  .lesson-view { display: none; }
  .lesson-view + .lesson-view { margin-top: 0; }
  .lesson-views:has(input:nth-of-type(1):checked) .lesson-view:nth-of-type(1),
  .lesson-views:has(input:nth-of-type(2):checked) .lesson-view:nth-of-type(2),
  .lesson-views:has(input:nth-of-type(3):checked) .lesson-view:nth-of-type(3),
  .lesson-views:has(input:nth-of-type(4):checked) .lesson-view:nth-of-type(4) { display: block; }
}
.hbar--lesson { --nw: 190px; --pad: 110px; }
.hbar-name small { display: block; font-size: 0.875rem; font-weight: 400; color: var(--muted); }
.hbar-ref--plan { border-left-color: var(--teal-ink); }
.hbar-ref--plan span { color: var(--teal-ink); }
/* Diverging bars: gains right of zero, losses left; labels sit right of zero so they never leave the track. */
.dbar { --nw: 190px; padding-top: 8px; }
.dbar-row { display: grid; grid-template-columns: var(--nw) 1fr; align-items: center; padding: 9px 0; }
.dbar-track { position: relative; height: 22px; }
.dbar-zero { position: absolute; left: 50%; top: -9px; bottom: -9px; border-left: 2px solid var(--ink); }
.dbar-fill { position: absolute; top: 0; height: 100%; }
.dbar-fill.gain { left: 50%; background: var(--teal-ink); border-radius: 0 4px 4px 0; }
.dbar-fill.loss { right: 50%; background: var(--loss); border-radius: 4px 0 0 4px; }
.dbar-track b { position: absolute; top: 50%; transform: translateY(-50%); font: 600 0.875rem var(--mono); white-space: nowrap; background: var(--white); padding: 1px 5px; border-radius: 3px; }
.dbar-track b.gain { color: var(--teal-ink); }
.dbar-track b.loss { color: var(--loss-ink); }
.dbar-axis { position: relative; height: 24px; margin: 6px 0 0 var(--nw); border-top: 1px solid var(--rule); }
.dbar-axis span { position: absolute; top: 6px; transform: translateX(-50%); font: 400 0.875rem var(--mono); color: var(--muted); }
@media (max-width: 760px) {
  .hbar--lesson { --nw: 0px; --pad: 90px; }
  .hbar--lesson .hbar-axis .minor { display: none; }
  .dbar { --nw: 0px; }
  .dbar-row { grid-template-columns: 1fr; gap: 6px; }
}
