/* Offer Ready: Behavioral studio. Tokens only, so light and dark follow the theme. */
.bh { min-width: 0; }
.bh > * { min-width: 0; }
.bh-lede { max-width: 66ch; margin-bottom: var(--s-6); }
.bh-sec { margin-top: var(--s-10); }
.bh-sec:first-child { margin-top: 0; }
.bh-sec > .section-title + * { margin-top: var(--s-3); }
.bh h3 { font-size: var(--text-md); }
.bh ul, .bh ol { padding: 0; margin: 0; }

/* Tabs: links, scrollable on their own on a phone */
.bh-tabs { display: flex; gap: var(--s-1); border-bottom: 1px solid var(--line); margin: var(--s-6) 0 var(--s-8); overflow-x: auto; scrollbar-width: thin; }
.bh-tabs a { padding: var(--s-3) var(--s-4); color: var(--ink-2); font-weight: 600; font-size: var(--text-sm); text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.bh-tabs a:hover { color: var(--ink); }
.bh-tabs a[aria-current="page"] { color: var(--accent-text); border-bottom-color: var(--accent); }
.bh-seg { max-width: 100%; overflow-x: auto; margin: var(--s-3) 0 var(--s-5); }
.bh-row { display: flex; align-items: center; justify-content: space-between; gap: var(--s-3); flex-wrap: wrap; }

/* Method */
.bh-star { list-style: none; display: grid; gap: var(--s-4); }
.bh-star li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--s-4); align-items: start; padding-bottom: var(--s-4); border-bottom: 1px solid var(--line); }
.bh-star-k { display: grid; place-items: center; width: 44px; height: 44px; border: 1.5px solid var(--ink); border-radius: var(--r-1); font: 820 var(--text-xl)/1 var(--font-ui); font-stretch: var(--stretch-bib); }
.bh-star p { color: var(--ink-2); max-width: 66ch; margin-top: var(--s-1); }
.bh-q { font-family: var(--font-read); font-size: var(--text-md); margin-bottom: var(--s-4); }
.bh-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.bh-ans { padding: var(--s-4); border: 1px solid var(--line); border-radius: var(--r-2); border-top-width: 3px; background: var(--surface); }
.bh-ans h3 { display: flex; align-items: center; gap: var(--s-2); margin-bottom: var(--s-2); font-size: var(--text-sm); text-transform: uppercase; letter-spacing: 0.06em; }
.bh-ans p { font-size: var(--text-base); line-height: 1.6; overflow-wrap: anywhere; }
.bh-weak { border-top-color: var(--hard); } .bh-weak h3 { color: var(--hard); }
.bh-strong { border-top-color: var(--ok); } .bh-strong h3 { color: var(--ok); }
.bh-why { margin-top: var(--s-4); color: var(--ink-2); max-width: 70ch; }
.bh-tips { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: var(--s-5) var(--s-8); margin-bottom: var(--s-6); }
.bh-tips p { color: var(--ink-2); margin-top: var(--s-1); }

/* Story bank */
.bh-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: var(--s-2); }
.bh-cell { padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); min-width: 0; }
.bh-cell h3 { font-size: var(--text-sm); }
.bh-cell-n { font-weight: 700; color: var(--ok); margin-top: var(--s-1); font-size: var(--text-sm); }
.bh-cell-s { color: var(--ink-2); font-size: var(--text-xs); overflow-wrap: anywhere; }
.bh-cell.is-gap { background: var(--hard-soft); border-color: color-mix(in srgb, var(--hard) 45%, var(--line)); border-style: dashed; }
.bh-cell.is-gap .bh-cell-n { color: var(--hard); }
.bh-studio { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: var(--s-8); margin-top: var(--s-10); align-items: start; }
.bh-studio > * { min-width: 0; }
.bh-list { list-style: none; display: grid; gap: var(--s-1); margin-top: var(--s-3); }
.bh-item { display: grid; gap: 2px; width: 100%; text-align: left; padding: var(--s-3); border: 1px solid var(--line); border-radius: var(--r-2); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; overflow-wrap: anywhere; }
.bh-item:hover { background: var(--surface-2); }
.bh-item[aria-current="true"] { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); background: var(--accent-wash); }
.bh-item span { font-size: var(--text-xs); }
.bh-edit { display: grid; gap: var(--s-4); }
.bh-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4); }
.bh-comps, .bh-link, .bh-rubric { border: 0; padding: 0; margin: 0; min-width: 0; display: grid; gap: var(--s-2); }
#bh-checks, .bh-link { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: var(--s-1) var(--s-4); }
.bh-link legend, .bh-comps legend { grid-column: 1 / -1; margin-bottom: var(--s-1); }
.bh-check { display: flex; align-items: flex-start; gap: var(--s-2); padding: var(--s-1) 0; cursor: pointer; font-size: var(--text-sm); min-height: 28px; }
.bh-check input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--accent); }
.bh-check em { font-style: normal; font-size: var(--text-2xs); padding: 1px 6px; border-radius: var(--r-1); background: var(--warn-soft); color: var(--warn); margin-left: var(--s-1); }
.bh-check:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 1px; border-radius: var(--r-1); }

/* Questions */
.bh-filters { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 320px) auto; gap: var(--s-4); align-items: end; margin-bottom: var(--s-6); }
.bh-only { align-self: end; padding-bottom: 8px; }
.bh-group { margin-top: var(--s-6); }
.bh-group-h { font-size: var(--text-lg); padding-bottom: var(--s-2); border-bottom: 1px solid var(--line-strong); }
.bh-q-item { border-bottom: 1px solid var(--line); }
.bh-q-item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); padding: var(--s-3) 0; cursor: pointer; list-style: none; }
.bh-q-item summary::-webkit-details-marker { display: none; }
.bh-q-item summary::before { content: ""; flex: none; width: 7px; height: 7px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(-45deg); transition: transform var(--dur-1) var(--ease-out); }
.bh-q-item[open] summary::before { transform: rotate(45deg); }
.bh-q-text { flex: 1; min-width: 0; font-weight: 550; overflow-wrap: anywhere; }
.bh-badge { flex: none; }
.bh-q-body { display: grid; gap: var(--s-4); padding: 0 0 var(--s-5) var(--s-5); }
.bh-dl { display: grid; gap: var(--s-3); }
.bh-dl dt { font-weight: 700; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-2); }
.bh-dl dd { margin: var(--s-1) 0 0; max-width: 70ch; overflow-wrap: anywhere; }
.bh-alp { margin-top: var(--s-6); padding-top: var(--s-4); border-top: 1px solid var(--line); scroll-margin-top: calc(var(--top-h) + var(--s-4)); }
.bh-alp > p { margin: var(--s-1) 0 var(--s-2); max-width: 70ch; }
.bh-alp h3 .num { margin-right: var(--s-1); }

/* Practice */
.bh-practice { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s-10); align-items: start; }
.bh-practice > * { min-width: 0; }
.bh-stage { display: grid; gap: var(--s-4); padding: var(--s-6); border: 1px solid var(--line-strong); border-radius: var(--r-3); background: var(--surface); }
.bh-chip-row { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.bh-prompt { font-size: var(--text-xl); font-family: var(--font-read); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.bh-prompt:focus { outline: none; }
.bh-time { font: 700 clamp(3rem, 12vw, 5rem)/1 var(--font-mono); font-stretch: var(--stretch-mono); font-variant-numeric: tabular-nums; }
.bh-time[data-over="true"] { color: var(--hard); }
.bh-progress { height: 6px; background: var(--surface-3); border-radius: 3px; overflow: hidden; }
.bh-progress > div { height: 100%; width: 0; background: var(--accent); }
.bh-hint { color: var(--ink-2); }
.bh-hint summary { cursor: pointer; font-weight: 600; font-size: var(--text-sm); }
.bh-hint p { margin-top: var(--s-2); max-width: 66ch; }
.bh-score { font-weight: 700; font-size: var(--text-lg); }
.bh-side { display: grid; gap: var(--s-3); }
.bh-side-h { font-size: var(--text-md); margin-top: var(--s-4); }
.bh-trend { display: flex; align-items: flex-end; gap: 4px; height: 96px; border-bottom: 1px solid var(--line-strong); }
.bh-bar { flex: 1; max-width: 28px; height: var(--h); min-height: 4px; background: var(--accent); border-radius: 2px 2px 0 0; position: relative; }
.bh-bar i { position: absolute; top: -16px; left: 0; right: 0; text-align: center; font-style: normal; font-size: var(--text-2xs); color: var(--ink-2); }

/* Ask them */
.bh-note { color: var(--ink-2); max-width: 66ch; margin-bottom: var(--s-4); }
.bh-asks { list-style: none; display: grid; gap: var(--s-5); }
.bh-asks li { padding-bottom: var(--s-5); border-bottom: 1px solid var(--line); }
.bh-asks h3 { font-family: var(--font-read); font-weight: 600; margin-bottom: var(--s-2); overflow-wrap: anywhere; }
.bh-asks .bh-dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-6); }
.bh-good { color: var(--ok) !important; } .bh-red { color: var(--hard) !important; }

@media (max-width: 899px) {
  .bh-studio, .bh-practice { grid-template-columns: minmax(0, 1fr); gap: var(--s-6); }
  .bh-filters { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .bh-pair, .bh-two, .bh-asks .bh-dl { grid-template-columns: minmax(0, 1fr); }
  .bh-stage { padding: var(--s-4); }
  .bh-q-body { padding-left: 0; }
  .bh-star li { grid-template-columns: 40px minmax(0, 1fr); gap: var(--s-3); }
  .bh-star-k { width: 38px; height: 38px; }
  .bh-q-item summary { align-items: flex-start; flex-wrap: wrap; }
  .bh-q-text { flex-basis: calc(100% - 30px); }
  .bh-badge { margin-left: 23px; }
}
