/* The Bookrunners tab (rh-bookrunners.js). Tokens only, so dark mode follows dark.css; the few fixed shades have
   dark overrides at the bottom. Sized like the stock view: the line takes the chart's place and the slider the
   ranges', so title, number, line, slider and both cards end on the first screen at 2000x913. */

/* ------------------------------------------------------------------ the line */
.bk-chart { position: relative; margin-top: 18px; height: clamp(220px, 34vh, 360px); color: var(--act); cursor: crosshair; touch-action: pan-y; }
.bk-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.bk-line { fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; filter: drop-shadow(0 0 5px color-mix(in srgb, currentColor 40%, transparent)); }
.bk-grid { stroke: var(--line); stroke-width: 1; }
.bk-kink { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 2 4; }
.bk-scrub { stroke: var(--text-3); stroke-width: 1; opacity: 0; }
.bk-chart.scrubbing .bk-scrub { opacity: 1; }
.bk-y { position: absolute; right: 0; transform: translateY(-120%); font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; pointer-events: none; }
.bk-x { position: absolute; bottom: -20px; font-size: 12px; color: var(--text-3); white-space: nowrap; pointer-events: none; }
.bk-x-k { transform: translateX(8px); color: var(--text-2); }
.bk-x-end { transform: translateX(-100%); }
.bk-when { position: absolute; top: -18px; transform: translateX(-50%); font-size: 12px; color: var(--text-3); white-space: nowrap; opacity: 0; pointer-events: none; }
.bk-chart.scrubbing .bk-when { opacity: 1; }
.bk-dot { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: currentColor; border: 2px solid var(--surface); box-shadow: 0 0 0 6px color-mix(in srgb, currentColor 16%, transparent), 0 1px 3px rgba(0, 0, 0, .2); opacity: 0; pointer-events: none; transition: opacity .15s; }
.bk-chart.scrubbing .bk-dot { opacity: 1; }

/* ------------------------------------------------------------------ the slider */
.bk-slider { margin-top: 32px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.bk-slider-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.bk-slider-top label { font-size: 14px; font-weight: 600; color: var(--ink); }
.bk-slider-top b { font: 600 17px var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.bk-slider input[type="range"] { --p: 50%; display: block; width: 100%; height: 26px; margin: 6px 0 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.bk-slider input[type="range"]:focus { outline: 0; }
.bk-slider input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--act) 0 var(--p), var(--line-2) var(--p) 100%); }
.bk-slider input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-2); }
.bk-slider input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--act); }
.bk-slider input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--surface); border: 2px solid var(--act); box-shadow: 0 2px 8px -2px rgba(13, 13, 15, .35); transition: transform .15s, box-shadow .15s; }
.bk-slider input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--surface); border: 2px solid var(--act); box-shadow: 0 2px 8px -2px rgba(13, 13, 15, .35); }
.bk-slider input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.08); }
.bk-slider input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px color-mix(in srgb, var(--act) 22%, transparent); }
.bk-slider input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px color-mix(in srgb, var(--act) 22%, transparent); }
.bk-ticks { display: flex; justify-content: space-between; margin-top: 2px; font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; }

.bk-note { margin-top: 12px; font-size: 13px; line-height: 1.55; color: var(--text-3); max-width: 62em; }

/* ------------------------------------------------------------------ what counts */
.bk-surfs { margin-top: 4px; }
.bk-surf { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; align-items: center; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.bk-surf b { font-weight: 650; }
.bk-surf > span:not(.bk-pill) { color: var(--text-2); font-size: 15px; line-height: 1.5; }
.bk-pill { justify-self: end; padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--act) 12%, transparent); color: var(--act-ink); font-size: 13px; font-weight: 650; white-space: nowrap; }
.bk-pill.off { background: var(--sunk); color: var(--text-3); }

/* ------------------------------------------------------------------ the one call */
.bk-code { margin-top: 6px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--sunk); }
.bk-code-head { display: flex; align-items: center; gap: 14px; padding: 8px 10px 8px 8px; border-bottom: 1px solid var(--line); background: var(--surface); }
.bk-tabs { display: flex; gap: 2px; }
.bk-tabs button { padding: 7px 12px; border: 0; border-radius: 8px; background: none; font: 600 14px var(--ui); color: var(--text-3); cursor: pointer; }
.bk-tabs button:hover { color: var(--ink); }
.bk-tabs button[aria-selected="true"] { background: var(--sunk); color: var(--ink); }
.bk-sig { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 13px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-3); }
.bk-copy { flex: none; height: 32px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font: 600 13px var(--ui); color: var(--ink); cursor: pointer; }
.bk-copy:hover { border-color: var(--ink); }
.bk-code pre { margin: 0; max-height: 340px; overflow: auto; padding: 16px 18px; font: 500 13px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text-2); white-space: pre; tab-size: 2; }

/* ------------------------------------------------------------------ the founding board */
.bk-board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 4px; }
.bk-seat { display: grid; align-content: start; gap: 6px; padding: 18px 20px; border: 1px dashed var(--line-2); border-radius: 16px; }
.bk-seat.on { border: 1px solid var(--line); background: var(--surface); box-shadow: 0 12px 30px -24px rgba(13, 13, 15, .35); }
.bk-seat-n { font: 600 13px var(--display); color: var(--text-3); font-variant-numeric: tabular-nums; }
.bk-seat b { font: 600 20px/1.2 var(--display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.bk-seat:not(.on) b { color: var(--text-3); }
.bk-seat small { font-size: 13px; color: var(--text-3); line-height: 1.45; }
.bk-seat .bk-pill { justify-self: start; }

/* ------------------------------------------------------------------ the card: pick a code */
/* pro.css lays .panel-head out as a row with a rule under it; this card's head is a title over a line of text. */
.bk-head { display: block; border-bottom: 0; padding: 20px 22px 0; }
.bk-field { display: block; margin-top: 12px; }
.bk-field span { display: block; font-size: 14px; font-weight: 600; color: var(--ink); }
.bk-field input { width: 100%; height: 46px; margin-top: 8px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); font: 600 16px var(--ui); color: var(--ink); outline: 0; transition: border-color .15s, box-shadow .15s; }
.bk-field input:focus { border-color: var(--act); box-shadow: 0 0 0 3px color-mix(in srgb, var(--act) 16%, transparent); }
.bk-hint { margin: 8px 0 4px; font-size: 13px; color: var(--text-3); line-height: 1.45; }
.bk-hint.bad { color: var(--down); }
.bk-hint.good { color: var(--up); }
.bk-get .orow b { font-size: 14px; }
.bk-link { max-width: 62%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--act-ink); }
.bk-get .pill-btn.block { margin-top: 16px; }
.bk-review { display: none; }
.bk-get.reviewing .bk-draft { display: none; }
.bk-get.reviewing .bk-review { display: block; animation: bk-sheet .35s cubic-bezier(.2, .7, .1, 1); }
.bk-next { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--text-3); text-align: center; }
.bk-sum { margin: 14px 0 4px; font-size: 15px; color: var(--text-2); line-height: 1.55; overflow-wrap: anywhere; }
.bk-sum b { color: var(--ink); }
.bk-edit { display: block; margin: 10px auto 0; border: 0; background: none; font: 600 14px var(--ui); color: var(--text-3); cursor: pointer; }
.bk-edit:hover { color: var(--ink); }
.bk-contract { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.bk-contract > span { font-size: 14px; font-weight: 600; }
.bk-contract small { display: block; margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--text-3); }
.bk-addr { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); font: 500 13px ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--ink); cursor: pointer; }
.bk-addr:hover { border-color: var(--ink); }
.bk-addr svg { color: var(--text-3); }
.bk-get .fine { margin-top: 12px; }
@keyframes bk-sheet { from { opacity: 0; transform: translateY(8px); } }

/* ------------------------------------------------------------------ narrow screens */
@media (max-width: 640px) {
  .bk-chart { height: 200px; }
  .bk-surf { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; }
  .bk-surf > span:not(.bk-pill) { grid-column: 1 / -1; grid-row: 2; }
  .bk-board { grid-template-columns: minmax(0, 1fr); }
  .bk-sig { display: none; }
  .bk-code-head { justify-content: space-between; }
  .bk-x-k { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .bk-get.reviewing .bk-review { animation: none; }
}

/* ------------------------------------------------------------------ dark */
:root[data-theme="dark"] .bk-seat.on { box-shadow: 0 18px 36px -24px rgba(0, 0, 0, .8); }
:root[data-theme="dark"] .bk-slider input[type="range"]::-webkit-slider-thumb { box-shadow: 0 2px 10px -2px rgba(0, 0, 0, .8); }
:root[data-theme="dark"] .bk-code { background: #0E0E10; }
:root[data-theme="dark"] .bk-tabs button[aria-selected="true"] { background: var(--sunk); }

/* The opening: what the program is before what it pays (2026-10-20).
   A plain promise, one paragraph on the deal, the two ways in, and what the
   bookrunner's users get; then how it works in three steps, who it is for, and the calculator under its own heading. */
.bk-intro { padding: 8px 0 4px; }
.bk-kicker { font-size: 15px; font-weight: 650; color: var(--act-ink); }
.bk-h1 { max-width: 23ch; text-wrap: balance; margin-top: 10px; font: 650 clamp(38px, 3.6vw, 56px)/1.04 var(--display); font-stretch: 100%; letter-spacing: -.03em; }
.bk-lede { max-width: 58ch; margin-top: 16px; font-size: 17px; line-height: 1.55; color: var(--text-2); }
.bk-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 22px; }
.bk-ctas .pill-btn { height: 46px; padding: 0 24px; font-size: 16px; }
.bk-more { font-weight: 650; font-size: 15px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 2px; transition: border-color .15s, color .15s; }
.bk-more:hover { color: var(--act-ink); border-color: var(--act); }
.bk-gets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 28px 0 0; padding: 18px 0 0; list-style: none; border-top: 1px solid var(--line); }
.bk-gets li { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.bk-gets b { display: block; margin-bottom: 2px; font-weight: 650; color: var(--ink); }

.bk-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: none; }
.bk-steps li { position: relative; display: grid; align-content: start; gap: 6px; padding: 20px 22px 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.bk-steps li::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--sunset); opacity: .9; }
.bk-n { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 8px; border-radius: 50%; background: color-mix(in srgb, var(--act) 12%, transparent); color: var(--act-ink); font: 700 14px var(--ui); }
.bk-steps b { font-size: 17px; font-weight: 650; letter-spacing: -.01em; }
.bk-steps span:not(.bk-n) { font-size: 14px; line-height: 1.55; color: var(--text-2); }

.bk-who { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 4px; }
.bk-who div { display: grid; gap: 6px; align-content: start; padding: 18px 20px 18px 0; border-bottom: 1px solid var(--line); }
.bk-who div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.bk-who b { font-size: 15px; font-weight: 650; }
.bk-who span { font-size: 14px; line-height: 1.5; color: var(--text-2); }
.bk-who a { color: var(--act-ink); font-weight: 600; text-decoration: none; }
.bk-who a:hover { text-decoration: underline; }

.bk-calc-k { margin-top: 18px; font-size: 14px; color: var(--text-2); }
.bk-calc .big { margin-top: 2px; }
#bk-int-h, #bk-how-h { scroll-margin-top: 96px; }

@media (max-width: 1100px) {
  .bk-who { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bk-who div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
  .bk-gets, .bk-steps { grid-template-columns: minmax(0, 1fr); }
  .bk-gets { gap: 12px; }
  .bk-lede { font-size: 16px; }
}
@media (max-width: 520px) {
  .bk-who { grid-template-columns: minmax(0, 1fr); }
  .bk-who div + div { padding-left: 0; border-left: 0; }
}
