/* WhySigh Self-Check (assets/bigcheck.js). Class prefix bc-. Builds on site.css variables and the sc-* look in tools/tools.css
   (sc-card, sc-opt, sc-prog, sc-back). Colours come only from site variables, so dark mode follows the site. */
.bc-app{max-width:760px;scroll-margin-top:84px}
.bc-app.bc-wide{max-width:none}
.bc-card{position:relative}
.bc-card :focus-visible,.bc-ov :focus-visible{outline:3px solid var(--sage);outline-offset:2px;border-radius:8px}
.bc-card h2:focus,.bc-ov h2:focus{outline:none}
.bc-card h2:focus-visible{outline:3px solid var(--sage);outline-offset:4px}
.bc-sr{position:absolute!important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}

/* top bar: Back (left) and "Need help now?" (right) — same place on every screen */
.bc-bar{display:flex;justify-content:space-between;align-items:center;gap:10px;min-height:44px;margin:-6px 0 4px}
.bc-back{min-height:44px;min-width:44px}
.bc-back-ph{display:block;min-height:44px}
.bc-helpbtn{min-height:44px;padding:0 16px;border-radius:999px;border:1px solid transparent;background:var(--warn-soft);color:var(--warn);font:700 15px var(--sans);cursor:pointer;margin-left:auto}
.bc-helpbtn:hover{border-color:var(--warn)}
.bc-prog{margin:6px 0 18px}

.bc-h{font:500 clamp(24px,3.4vw,30px)/1.25 var(--serif);margin:4px 0 12px}
.bc-card p{max-width:40em}
.bc-mod{font-size:14px;font-weight:600;letter-spacing:.04em;color:var(--sage);margin:0 0 6px}
.bc-mod span{color:var(--muted);font-weight:500}
.bc-stem.sc-stem{margin:0 0 8px;font:400 17px/1.45 var(--sans);color:var(--muted)}
.bc-item{margin-bottom:18px}
.bc-opts .sc-opt{min-height:56px;line-height:1.35}
.bc-otext{flex:1}
.bc-opts kbd{font:600 12px var(--sans);color:var(--muted);border:1px solid var(--line);border-radius:6px;padding:1px 6px;flex:none}
@media (hover:none){.bc-opts kbd{display:none}}
.bc-foot{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;margin-top:16px}
.bc-linkbtn{background:none;border:0;color:var(--sage);font:600 17px var(--sans);cursor:pointer;min-height:44px;padding:0 6px;text-decoration:underline;text-underline-offset:3px}
.bc-skip{padding:0 4px}
.bc-next{margin-left:auto}
.bc-actions{margin-top:20px}
.bc-actions .btn,.bc-ovbtns .btn,.bc-keep .btn,.bc-pro .btn{min-height:48px}
.bc-err{color:var(--warn);font-weight:600;min-height:1.2em;margin-top:8px}
.bc-err:empty{margin:0;min-height:0}
.bc-crisisline{background:var(--warn-soft);border-radius:12px;padding:10px 14px;font-size:16px}
.bc-crisisline a{color:var(--warn);font-weight:700}
.bc-histnote{color:var(--sage);font-weight:600;font-size:16px}
.bc-intro{background:linear-gradient(160deg,var(--sage-soft),var(--surface) 60%)}

/* form controls (native inputs, large targets) */
.bc-check,.bc-radio{display:flex;align-items:flex-start;gap:12px;min-height:48px;padding:12px 16px;border:2px solid var(--line);border-radius:16px;background:var(--bg);cursor:pointer;font-size:17px;line-height:1.4}
.bc-check:hover,.bc-radio:hover{border-color:var(--sage)}
.bc-check:has(input:checked),.bc-radio:has(input:checked){border-color:var(--sage);background:var(--sage-soft)}
.bc-check input,.bc-radio input{width:22px;height:22px;margin-top:1px;accent-color:var(--sage);flex:none}
.bc-check:focus-within,.bc-radio:focus-within{outline:3px solid var(--sage);outline-offset:2px}
.bc-check input:focus-visible,.bc-radio input:focus-visible{outline:none}
.bc-intro .bc-check{margin-top:18px}
.bc-field{border:0;margin:18px 0 0;padding:0;min-width:0}
.bc-flabel{display:block;font-weight:700;font-size:17px;margin-bottom:6px;padding:0}
.bc-hint{font-size:15px;color:var(--muted);margin:-2px 0 8px}
.bc-select{font:inherit;font-size:17px;min-height:48px;min-width:220px;max-width:100%;padding:8px 12px;border:2px solid var(--line);border-radius:12px;background:var(--bg);color:var(--ink)}
.bc-select:focus-visible{outline:3px solid var(--sage);outline-offset:2px}
.bc-radios{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
@media (max-width:620px){.bc-radios{grid-template-columns:1fr}}

/* choose-your-depth list */
.bc-chlist{list-style:none;display:grid;gap:10px;margin-top:14px;padding:0}
.bc-chlabel b{font-size:18px}
.bc-chlabel .muted{display:block;font-size:15px}
.bc-variants{border:0;padding:10px 0 2px 16px;margin:0;display:grid;gap:8px}
.bc-variants legend{font-size:15px;font-weight:600;color:var(--muted);padding:0;margin-bottom:6px}
.bc-variants[hidden]{display:none}
.bc-warnnote p{margin:0}

/* overlays: safety interrupt and "Need help now?" */
.bc-ov{position:fixed;inset:0;z-index:200;background:var(--surface);overflow-y:auto;display:none;-webkit-overflow-scrolling:touch}
.bc-ov.on{display:block}
.bc-ovin{max-width:640px;margin:0 auto;padding:40px 20px 48px}
.bc-ovh{font:500 clamp(28px,5vw,38px)/1.2 var(--serif);margin:0 0 12px;color:var(--ink)}
.bc-ovp{font-size:18px;margin:10px 0}
.bc-ovp a{color:var(--warn);font-weight:700}
.bc-ovbtns{margin-top:22px}
html.bc-noscroll,html.bc-noscroll body{overflow:hidden}
.bc-lines{list-style:none;padding:0;margin:14px 0;display:grid;gap:10px}
.bc-line{background:var(--bg);border:1px solid var(--line);border-radius:16px;padding:14px 16px;display:grid;gap:4px}
.bc-line b{font-size:18px}
.bc-line span{font-size:16px;color:var(--muted)}
.bc-callrow{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
.bc-call{min-height:44px;font-size:16px;padding:10px 18px}
.bc-lines.compact .bc-line{padding:12px 14px}
.bc-usnote{font-size:15px;color:var(--muted)}
.bc-usnote a{color:var(--warn);font-weight:700}

/* report */
.bc-report{padding:28px}
.bc-banner{display:inline-block;font-size:14px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--warn);background:var(--warn-soft);border-radius:999px;padding:6px 14px;margin:2px 0 10px}
.bc-meta{color:var(--muted);font-size:16px;margin-top:-6px}
.bc-intro2{margin:14px 0 8px}
.bc-support{margin:16px 0}
.bc-support h3{margin:0 0 6px;color:var(--warn)}
.bc-teen,.bc-preg{margin:14px 0}
.bc-tablewrap{margin-top:12px;overflow-x:auto}
.bc-table{width:100%;border-collapse:collapse;font-size:16px;line-height:1.45}
.bc-table thead th{text-align:left;font-size:13px;letter-spacing:.08em;text-transform:uppercase;color:var(--muted);font-weight:700;padding:10px 12px;border-bottom:2px solid var(--line)}
.bc-table td,.bc-table tbody th{padding:14px 12px;border-bottom:1px solid var(--line);vertical-align:top;text-align:left;font-weight:400}
.bc-table tbody th{width:19%}
.bc-res thead th:nth-child(2){width:8.6em}.bc-res thead th:nth-child(3){width:7.4em}.bc-res thead th:nth-child(4){width:9em}
.bc-area{display:block;font-weight:700}
.bc-inst{display:block;font-size:14px;color:var(--muted)}
.bc-band{display:block;font-size:14px;color:var(--muted)}
.bc-say{display:block}
.bc-pop,.bc-note{display:block;font-size:14px;margin-top:6px;color:var(--ink)}
.bc-pop{color:var(--muted)}
.bc-learn{display:inline-flex;align-items:center;min-height:44px;font-weight:600;color:var(--sage);font-size:15px}
.bc-flag{display:inline-block;font-size:14px;font-weight:700;padding:4px 10px;border-radius:999px;white-space:nowrap;background:var(--line);color:var(--muted)}
.bc-flag.f-high,.bc-flag.f-low{background:var(--warn-soft);color:var(--warn)}
.bc-flag.f-mild{background:var(--gold-soft);color:var(--gold)}
.bc-flag.f-ok{background:var(--sage-soft);color:var(--sage)}
.bc-flag.f-goodhigh{background:var(--sage-soft);color:var(--sage);border:1px solid var(--sage)}
.bc-flag.f-context{background:var(--lav-soft);color:var(--lav)}
.bc-row.r-high td:first-of-type b,.bc-row.r-low td:first-of-type b{color:var(--warn)}
.bc-iarow td{padding:4px 12px 18px;border-bottom:1px solid var(--line)}
.bc-ia{background:var(--bg);border-radius:16px;padding:16px 18px}
.bc-ia h3{margin:0 0 10px;font-size:17px}
.bc-iagrid{display:grid;grid-template-columns:repeat(20,14px);gap:5px;margin-bottom:10px}
.bc-iagrid span,.bc-ialeg i{width:14px;height:14px;border-radius:50%;background:var(--line);display:block}
.bc-iagrid span.on,.bc-ialeg i.on{background:var(--lav)}
.bc-iagrid span.rng,.bc-ialeg i.rng{background:var(--lav-soft);box-shadow:inset 0 0 0 2px var(--lav)}
.bc-ialeg{display:flex;flex-wrap:wrap;gap:6px 16px;font-size:14px;color:var(--muted);margin:0 0 8px}
.bc-ialeg span{display:inline-flex;align-items:center;gap:6px}
.bc-ialeg i{display:inline-block}
.bc-ia p{font-size:16px}
.bc-sec{margin-top:30px;padding-top:20px;border-top:1px solid var(--line)}
.bc-sec h3{margin:0 0 8px;font:500 24px/1.25 var(--serif)}
.bc-sec h4{margin:16px 0 4px;font-size:17px}
.bc-scale{list-style:none;padding:0;margin:12px 0;display:grid;grid-template-columns:repeat(3,1fr);gap:0;border:2px solid var(--line);border-radius:14px;overflow:hidden}
.bc-scale li{text-align:center;padding:12px 8px;font-size:16px;color:var(--muted);background:var(--bg)}
.bc-scale li+li{border-left:1px solid var(--line)}
.bc-scale li.on{font-weight:700;color:var(--ink);background:var(--lav-soft);box-shadow:inset 0 -4px 0 var(--lav)}
.bc-fgrid{margin-top:10px}
.bc-fgrid h4{margin-top:4px}
.bc-keep{margin-top:18px;padding:16px 18px;border:1px dashed var(--line);border-radius:16px}
.bc-keep p{margin:8px 0 0}
.bc-status{color:var(--sage);font-weight:600}
.bc-status:empty{display:none}
.bc-cmpt td,.bc-cmpt th{padding:10px 12px}
.bc-covert{font-size:15px}
.bc-covert tbody th{width:auto}
.bc-about h2{margin-bottom:8px}
.bc-sources ul{padding-left:0}
.bc-sources li{margin:8px 0 8px 18px;font-size:14px;line-height:1.5}
.bc-printfoot{display:none}
@media (prefers-color-scheme:dark){.bc-app .btn.primary,.bc-ov .btn.primary{color:#15171c}.bc-ov .btn.warn,.bc-app .btn.warn{color:#15171c}}

/* phones: one column, table rows become cards */
@media (max-width:700px){
  .bc-report{padding:18px 14px}
  .bc-res thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .bc-res,.bc-res tbody,.bc-res tr,.bc-res td,.bc-res tbody th{display:block;width:auto}
  .bc-res tr.bc-row{border:1px solid var(--line);border-radius:16px;padding:4px 14px 6px;margin-top:12px;background:var(--bg)}
  .bc-res tbody th{width:auto;border-bottom:1px solid var(--line);padding:10px 0 8px}
  .bc-res td{border-bottom:0;padding:7px 0;display:grid;grid-template-columns:7.4em 1fr;gap:10px;align-items:start}
  .bc-res td::before{content:attr(data-label);font-size:13px;font-weight:700;color:var(--muted);letter-spacing:.03em;padding-top:2px}
  .bc-res td:last-child{display:block}
  .bc-res td:last-child::before{display:block;margin-bottom:2px}
  .bc-res tr.bc-iarow{margin-top:8px}
  .bc-res tr.bc-iarow td{display:block;padding:0}
  .bc-res tr.bc-iarow td::before{content:none}
  .bc-iagrid{grid-template-columns:repeat(10,14px);gap:6px}
  .bc-covert th,.bc-covert td{padding:8px 6px;font-size:14px}
  .bc-covert thead th{font-size:11px;letter-spacing:.02em}
  .bc-covert{table-layout:fixed}
  .bc-covert th:last-child,.bc-covert td:last-child{width:3.6em;text-align:right}
  .bc-covert td,.bc-covert th{overflow-wrap:anywhere}
  .bc-cmpt td,.bc-cmpt th{padding:8px 6px;font-size:14px}
  .bc-scale li{font-size:14px;padding:10px 4px}
  .bc-helpbtn{font-size:14px;padding:0 12px}
}
@media (max-width:520px){.bc-card.sc-card{padding:18px 16px}.bc-foot .bc-next{width:100%;justify-content:center}.bc-actions .btn{flex:1 1 auto;justify-content:center}}
@media (prefers-reduced-motion:reduce){.bc-app *{transition:none!important;animation:none!important}}

/* print / save as PDF: the report only */
@media print{
  .phead,.tk-faq,.bc-related,.bc-about,.bc-bar,.bc-prog,.noprint,.bc-learn,.bc-ov,.bc-support .bc-callrow{display:none!important}
  .bc-app{max-width:none}
  .bc-card.sc-card{border:0;padding:0;background:none}
  .bc-table{font-size:12px}
  .bc-pop,.bc-note,.bc-band,.bc-inst{font-size:11px}
  .bc-table tr{break-inside:avoid}
  .bc-flag,.bc-iagrid span,.bc-ialeg i,.bc-scale li,.bc-banner{-webkit-print-color-adjust:exact;print-color-adjust:exact}
  .bc-sec{break-inside:avoid-page}
  .bc-printfoot{display:block;font-size:12px;color:#444;margin-top:16px}
  section{padding:0}
}
@media (min-width:701px){.bc-res td:nth-child(3) .bc-cell,.bc-res td:nth-child(2) .bc-cell b{white-space:nowrap}}
.bc-sample{background:#fff3d6;color:#7a4b00;border:2px dashed #d9a441;font-size:1rem;letter-spacing:0;text-transform:none}
.bc-smpnote{margin-top:8px}
