/* Designer Builder V2: tools, home and form styles. Tool JS renders hb-* class names, styled here. */

/* tool pages: a single column, question then answer on a night band */
.fb-tool-head{background:var(--fb-night);color:#F1F2EE;padding:2.6rem var(--fb-pad) 2.4rem}
.fb-tool-head>*{max-width:60rem;margin-left:auto;margin-right:auto}
.fb-tool-head h1{color:#fff;font-size:clamp(2.6rem,7vw,5.6rem)}
.fb-tool-head .fb-lede{color:#D6D8D2}
.fb-tool-head .fb-tag{color:var(--fb-tally);font-weight:600;margin-bottom:.8rem}
.fb-tool-head .fb-small{color:var(--fb-mute);font-size:.9rem;margin:0}
.fb-tool-head .hb-btn-row{margin-top:1.2rem}
.hb-ws{max-width:calc(60rem + 2*var(--fb-pad));margin:0 auto;padding:2rem var(--fb-pad) 3rem}
.hb-ws-grid{display:block}
.hb-panel{background:var(--fb-day-2);border-radius:18px;padding:clamp(1.1rem,3vw,1.8rem)}
.hb-panel h2{margin-top:0;font-size:2rem}
#hb-ps-form{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 1.4rem}
#hb-ps-form>h2,#hb-ps-form>#hb-ps-weights,#hb-ps-form>.hb-btn-row{grid-column:1/-1}
#hb-rc-out,#hb-ps-out{margin-top:1.6rem}
.hb-noscript{background:var(--fb-night);color:#fff;border-radius:14px;padding:1rem 1.2rem;margin-bottom:1.4rem}
.hb-noscript a{color:var(--fb-tally)}
.hb-how{margin-top:3rem;max-width:var(--fb-col)}
.hb-how h2{margin-top:0}
.hb-plain{max-width:var(--fb-col)}

/* fields */
.hb-field{display:flex;flex-direction:column;gap:.3rem;margin:0 0 1rem}
.hb-field>span:first-child{font-weight:600;font-size:.95rem}
.hb-field small{color:var(--fb-ink-2);font-size:.84rem}
.hb-input,.hb-select{font:inherit;font-size:1.05rem;min-height:2.9rem;padding:.55rem .8rem;border:1.5px solid #B9BCB4;border-radius:10px;background:#fff;color:var(--fb-ink);width:100%}
.hb-input:focus,.hb-select:focus{border-color:var(--fb-ink);outline:3px solid var(--fb-tally);outline-offset:0}
.hb-money{position:relative;display:block}
.hb-money::before{content:"£";position:absolute;left:.8rem;top:50%;transform:translateY(-50%);color:var(--fb-ink-2);pointer-events:none}
.hb-money .hb-input{padding-left:1.7rem}
.hb-stage-pcts{display:grid;grid-template-columns:repeat(auto-fill,minmax(5.5rem,1fr));gap:.5rem;margin-bottom:1rem}
.hb-error{color:#A63A17;font-weight:600;font-size:.92rem;margin:.4rem 0 0}

/* buttons: rounded, tally on night */
.hb-btn-row{display:flex;flex-wrap:wrap;gap:.6rem;margin:1rem 0}
.hb-btn{font:600 1rem var(--fb-text);background:var(--fb-night);color:var(--fb-tally);border:0;border-radius:99px;padding:.75rem 1.4rem;cursor:pointer;display:inline-block;text-decoration:none}
.hb-btn:hover{background:#000;color:#fff}
.hb-btn-quiet{background:transparent;color:var(--fb-ink);box-shadow:inset 0 0 0 1.5px var(--fb-ink)}
.hb-btn-quiet:hover{background:var(--fb-ink);color:#fff}
.fb-tool-head .hb-btn{background:var(--fb-tally);color:var(--fb-night)}
.fb-tool-head .hb-btn-quiet{background:transparent;color:#fff;box-shadow:inset 0 0 0 1.5px #fff}

/* route chooser questions */
.hb-q{border:0;margin:0 0 1.6rem;padding:0}
.hb-q legend{font-family:var(--fb-title);font-weight:700;text-transform:uppercase;font-size:1.45rem;line-height:1.05;margin-bottom:.6rem;padding:0}
.hb-q legend small{display:block;font-family:var(--fb-text);text-transform:none;font-weight:400;font-size:.9rem;color:var(--fb-ink-2);margin-top:.25rem}
.hb-opt{display:flex;gap:.7rem;align-items:flex-start;background:#fff;border-radius:12px;padding:.75rem .9rem;margin:.4rem 0;cursor:pointer;border:1.5px solid transparent}
.hb-opt:hover{border-color:#B9BCB4}
.hb-opt input{margin-top:.3rem;accent-color:var(--fb-olive);width:1.1rem;height:1.1rem;flex:none}
.hb-opt:has(input:checked){border-color:var(--fb-ink);box-shadow:inset 4px 0 0 var(--fb-tally)}

/* results, on night */
.hb-result{background:var(--fb-night);color:#E9EAE5;border-radius:18px;padding:clamp(1.2rem,3vw,2rem)}
.hb-result h2{color:var(--fb-tally);font-size:1.6rem;margin-top:0}
.hb-result h3{color:#fff;font-size:1.3rem}
.hb-result a{color:var(--fb-tally)}
.hb-result-big{font-family:var(--fb-title);font-weight:800;text-transform:uppercase;font-size:clamp(2.2rem,5vw,3.4rem);line-height:.95;color:#fff;margin:.2rem 0 .7rem}
.hb-scorebar{display:grid;grid-template-columns:11rem 1fr 2.4rem;gap:.7rem;align-items:center;font-size:.92rem;margin:.45rem 0}
.hb-scorebar div{height:10px;background:var(--fb-night-3);border-radius:99px;overflow:hidden}
.hb-scorebar div i{display:block;height:100%;background:var(--fb-tally);border-radius:99px}
.hb-flag{display:inline-block;font-size:.8rem;font-weight:700;padding:.12rem .55rem;border-radius:99px;background:#E7E9E2;color:var(--fb-ink)}
.hb-flag-high{background:#F6D4C6;color:#8A2A0E}
.hb-flag-mid{background:#F4E7B4;color:#5E4600}
.hb-flag-ok{background:#DCEBB2;color:#2E3A05}

/* schedule table inside result */
.hb-result .hb-table-wrap{background:var(--fb-night-2)}
.hb-result .hb-table thead th{background:#000}
.hb-result .hb-table tbody tr:nth-child(even){background:rgba(255,255,255,.04)}
.hb-sched{font-size:.9rem}
.hb-sched td{white-space:nowrap}
.hb-sched tfoot td,.hb-sched tfoot th{font-weight:700;border-top:2px solid var(--fb-tally);padding:.65rem 1rem}

/* quote comparison */
.fb-tool-qc .hb-ws{max-width:calc(80rem + 2*var(--fb-pad))}
.hb-quotes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}
.hb-quote{background:var(--fb-day-2);border:0;border-radius:18px;padding:1.1rem 1.1rem .6rem;min-width:0;margin:0}
.hb-quote legend{font-family:var(--fb-title);font-weight:800;text-transform:uppercase;font-size:1.5rem;background:var(--fb-night);color:var(--fb-tally);border-radius:99px;padding:.15rem .9rem;margin-bottom:.4rem}
.hb-quote .hb-field{margin-bottom:.55rem}
.hb-quote .hb-field>span{font-size:.86rem}
.hb-quote .hb-input,.hb-quote .hb-select{font-size:1rem;min-height:2.6rem;padding:.45rem .65rem}
.hb-quote .hb-money .hb-input{padding-left:1.55rem}
.hb-qtabs{display:none}
.hb-compare-out{margin-top:2rem;display:grid;gap:1.4rem}
.hb-qcards{display:grid;grid-template-columns:repeat(auto-fit,minmax(15rem,1fr));gap:1rem}
.hb-qcard{background:var(--fb-night);color:#E9EAE5;border-radius:18px;padding:1.1rem 1.2rem}
.hb-qcard h3{margin:0 0 .3rem;color:#fff;font-size:1.5rem;display:flex;justify-content:space-between;gap:.5rem;flex-wrap:wrap;align-items:center}
.hb-qcard dl{display:grid;grid-template-columns:1fr auto;gap:.3rem .8rem;margin:.5rem 0 .7rem;font-size:.93rem}
.hb-qcard dt{color:#B4B7AF}
.hb-qcard dd{margin:0;text-align:right;font-variant-numeric:tabular-nums;font-weight:600}
.hb-qcard ul{margin:.3rem 0 0;padding-left:1.1rem;font-size:.9rem}
.hb-chart{background:var(--fb-day-2);border-radius:18px;padding:1.2rem}
.hb-chart svg text{font-family:var(--fb-text)}
.hb-legend{display:flex;flex-wrap:wrap;gap:.35rem 1rem;font-size:.86rem;margin-top:.6rem;list-style:none;padding:0}
.hb-legend li{display:flex;align-items:center;gap:.35rem;margin:0}
.hb-legend i{width:12px;height:12px;display:inline-block;border-radius:3px}

/* checklist */
.hb-checklist{counter-reset:cq;list-style:none;padding:0!important;margin:0}
.hb-checklist li{display:grid;grid-template-columns:1.6rem 1fr;gap:.8rem;padding:.8rem 0;border-bottom:1px solid rgba(23,24,26,.12);break-inside:avoid;margin:0}
.hb-checklist li::before{content:"";width:1.35rem;height:1.35rem;border:2px solid var(--fb-ink);border-radius:6px;background:#fff;margin-top:.15rem}
.hb-checklist li span b{display:block}
.hb-checklist li span em{display:block;font-style:normal;font-size:.92rem;color:var(--fb-ink-2)}
.hb-sheet-block{background:var(--fb-day-2);border-radius:18px;padding:1.2rem 1.3rem;margin:0 0 1.4rem}
.hb-sheet-block h2{margin-top:0;font-size:1.9rem}
.hb-answer-lines{display:grid;grid-template-columns:repeat(3,1fr);gap:.4rem;margin-top:.4rem}
.hb-answer-lines span{border-bottom:1px solid var(--fb-ink-2);height:1.6rem;font-size:.75rem;color:var(--fb-ink-2)}
.fb-check-wrap{max-width:calc(var(--fb-col) + 2*var(--fb-pad));margin:0 auto;padding:2rem var(--fb-pad) 3rem}

/* home */
.fb-opening{position:relative;background:#000;color:#fff;min-height:min(90vh,860px);display:flex;align-items:flex-end}
.fb-opening .fb-film{position:absolute;inset:0}
.fb-opening .fb-film::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,0,0,.05) 35%,rgba(0,0,0,.7) 100%)}
.fb-opening-text{position:relative;z-index:2;width:100%;max-width:96rem;margin:0 auto;padding:0 var(--fb-pad) 3rem;text-align:center}
.fb-opening-text h1{color:#fff;margin:0 auto .3em;max-width:12ch}
.fb-opening-text p{max-width:42rem;margin:0 auto 1.2rem;color:#E6E7E2;font-size:1.15rem}
.fb-opening-text .fb-cta{display:inline-flex;gap:.7rem;flex-wrap:wrap;justify-content:center}
.fb-opening-text .fb-cta a{border-radius:99px;padding:.75rem 1.4rem;font-weight:600;text-decoration:none}
.fb-cta .fb-go{background:var(--fb-tally);color:var(--fb-night)}
.fb-cta .fb-alt{color:#fff;box-shadow:inset 0 0 0 1.5px #fff}
.fb-cta .fb-alt:hover{color:var(--fb-tally);box-shadow:inset 0 0 0 1.5px var(--fb-tally)}
.fb-strip{background:var(--fb-night);color:#E8E9E4;padding:2.2rem var(--fb-pad) 2.6rem}
.fb-strip-inner{max-width:96rem;margin:0 auto}
.fb-strip-head{display:flex;justify-content:space-between;gap:1rem;align-items:baseline;flex-wrap:wrap;margin-bottom:1rem}
.fb-strip-head h2{color:#fff;margin:0;font-size:clamp(1.8rem,3.4vw,2.6rem)}
.fb-strip-head p{margin:0;color:var(--fb-mute);font-size:.95rem}
.fb-strip ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:.7rem;position:relative}
.fb-strip li{margin:0}
.fb-strip a{display:block;color:inherit;text-decoration:none}
.fb-strip img{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:8px;transition:transform .3s}
.fb-strip a:hover img{transform:translateY(-4px)}
.fb-strip .fb-ep{display:flex;justify-content:space-between;font-size:.8rem;color:var(--fb-tally);margin:.55rem 0 .2rem;font-weight:600}
.fb-strip .fb-ep span{color:var(--fb-mute);font-weight:400}
.fb-strip b{display:block;font-family:var(--fb-title);font-weight:700;text-transform:uppercase;font-size:1.3rem;line-height:1}
.fb-strip small{display:block;color:#A9ACA4;font-size:.84rem;margin-top:.3rem;line-height:1.35}
.fb-strip .fb-track{height:3px;background:var(--fb-night-3);border-radius:3px;margin:1.3rem 0 0;position:relative}
.fb-strip .fb-track i{position:absolute;left:0;top:0;bottom:0;width:14.3%;background:var(--fb-tally);border-radius:3px}
.fb-day{max-width:calc(68rem + 2*var(--fb-pad));margin:0 auto;padding:4rem var(--fb-pad)}
.fb-day h2{margin-top:0}
.fb-split{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:clamp(1.6rem,4vw,3.4rem);align-items:center}
.fb-split img{border-radius:14px;width:100%;aspect-ratio:4/5;object-fit:cover}
.fb-quick{background:var(--fb-night);color:#E9EAE5;border-radius:22px;padding:clamp(1.3rem,3vw,2.2rem);display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:1.6rem;align-items:center}
.fb-quick h2{color:#fff;margin:0 0 .4rem}
.fb-quick p{color:#C9CCC4}
.fb-quick .hb-field>span:first-child{color:#fff}
.fb-quick a{color:var(--fb-tally)}
#hb-qk-out{font-size:1.05rem;color:#fff;margin:.8rem 0 0}
#hb-qk-out strong{color:var(--fb-tally)}
.hb-meter{height:10px;border-radius:99px;background:linear-gradient(90deg,#7C9A2C 0 33%,#C9A93A 33% 50%,#C8572F 50%);position:relative;margin:1rem 0 .35rem}
.hb-meter i{position:absolute;top:-6px;bottom:-6px;width:4px;border-radius:2px;background:#fff;left:0;transition:left .3s}
.hb-meter-scale{display:flex;justify-content:space-between;font-size:.8rem;color:var(--fb-mute)}
.fb-tools3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:1.6rem}
.fb-tools3 a{display:flex;flex-direction:column;background:var(--fb-day-2);border-radius:18px;overflow:hidden;color:var(--fb-ink);text-decoration:none}
.fb-tools3 img{aspect-ratio:16/9;object-fit:cover;width:100%}
.fb-tools3 span{padding:1rem 1.1rem 1.2rem;display:block}
.fb-tools3 b{display:block;font-family:var(--fb-title);font-weight:800;text-transform:uppercase;font-size:1.6rem;line-height:1}
.fb-tools3 em{font-style:normal;display:block;margin-top:.4rem;font-size:.95rem;color:var(--fb-ink-2)}
.fb-tools3 strong{display:inline-block;margin-top:.7rem;color:var(--fb-olive)}
.fb-tools3 a:hover{background:#fff}
.fb-night{background:var(--fb-night);color:#E3E4DF}
.fb-night h2,.fb-night h3{color:#fff}
.fb-night a{color:var(--fb-tally)}
.fb-explainers{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1.2rem}
.fb-explainers .fb-yt{margin:0;background:var(--fb-night-2)}
.fb-order{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;list-style:none;padding:0!important;counter-reset:o}
.fb-order li{counter-increment:o;background:var(--fb-day-2);border-radius:16px;padding:1rem 1.1rem;margin:0}
.fb-order li::before{content:"Step " counter(o);display:block;color:var(--fb-olive);font-weight:700;font-size:.85rem;margin-bottom:.2rem}

@media (max-width:1100px){
  .fb-strip ol{grid-template-columns:repeat(4,minmax(0,1fr))}
  .fb-strip .fb-track{display:none}
  .hb-quotes{grid-template-columns:1fr}
  .hb-qtabs{display:flex;gap:.4rem;position:sticky;top:3.6rem;z-index:5;background:var(--fb-day);padding:.5rem 0;margin-bottom:.6rem}
  .hb-qtabs button{flex:1;font:600 1rem var(--fb-text);padding:.6rem;border:0;border-radius:99px;background:var(--fb-day-2);color:var(--fb-ink);cursor:pointer}
  .hb-qtabs button[aria-selected=true]{background:var(--fb-night);color:var(--fb-tally)}
  .hb-quotes.hb-tabbed .hb-quote{display:none}
  .hb-quotes.hb-tabbed .hb-quote.hb-on{display:block}
}
@media (max-width:800px){
  .fb-split,.fb-quick,.fb-explainers{grid-template-columns:1fr}
  .fb-split img{aspect-ratio:16/10}
  .fb-tools3,.fb-order{grid-template-columns:1fr}
  #hb-ps-form{grid-template-columns:1fr}
}
@media (max-width:700px){
  .fb-strip{padding-left:0;padding-right:0}
  .fb-strip-head{padding:0 var(--fb-pad)}
  .fb-strip ol{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;padding:0 var(--fb-pad) .6rem;gap:.8rem}
  .fb-strip li{flex:0 0 62%;scroll-snap-align:start}
  .fb-opening{min-height:86vh}
  .hb-scorebar{grid-template-columns:7.5rem 1fr 2.2rem}
  .hb-answer-lines{grid-template-columns:1fr}
  .hb-sched td,.hb-sched th{white-space:normal}
}
@media print{
  .hb-panel,.hb-result,.hb-qcard,.hb-chart,.hb-sheet-block,.hb-quote{background:#fff!important;color:#000!important;border:1px solid #000;break-inside:avoid}
  .hb-result h2,.hb-result h3,.hb-result-big,.hb-qcard h3,.hb-quote legend{color:#000!important;background:#fff!important}
  .hb-quotes{grid-template-columns:repeat(3,1fr)!important}
  .hb-quotes.hb-tabbed .hb-quote{display:block!important}
  .hb-quote select,.hb-quote input{appearance:none;-webkit-appearance:none;font-size:8.5pt;padding:2px 3px;min-height:0;width:100%;background:#fff}
  .fb-tool-head{background:#fff;color:#000;padding:0}
  .fb-tool-head h1{color:#000}
  .fb-tool-head .fb-lede{color:#000}
  .hb-checklist li::before{border:1px solid #000}
  .hb-table thead th{background:#fff!important;color:#000!important;border-bottom:2px solid #000}
}

/* V2 QA fixes: legibility, mobile pacing, form polish */
.fb-brand small{font-size:.82rem;color:#C3C6BE}
.fb-links{font-size:1.02rem}
.fb-pause{font-size:.9rem}
.fb-subtitle span{font-size:1.05rem}
.fb-strip small{font-size:.92rem;color:#C0C3BB}
.fb-strip .fb-ep{font-size:.88rem}
.fb-strip b{font-size:1.45rem}
.fb-chapter-no{font-size:1.02rem}
.fb-dateline{font-size:.98rem;color:#B9BCB4}
.fb-opening-text p{font-size:1.22rem}
.hb-field small{font-size:.9rem}
.hb-select{appearance:none;-webkit-appearance:none;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2317181A' stroke-width='2'/%3E%3C/svg%3E") no-repeat right .8rem center/12px 8px;padding-right:2.4rem}
.hb-quote label:has(input[type=checkbox]),label.hb-check{display:flex;flex-direction:row;align-items:center;gap:.6rem;min-height:44px;cursor:pointer}
.hb-quote input[type=checkbox]{width:1.25rem;height:1.25rem;accent-color:var(--fb-olive);flex:none;margin:0}
@media (max-width:700px){
  .fb-opening{min-height:74svh}
  .fb-film-hero{height:44svh;min-height:240px}
  .fb-subtitle{display:none}
  .fb-title{padding-top:1.8rem}
  .fb-title h1{font-size:clamp(2.5rem,11vw,3.4rem)}
  .fb-film-band{height:52vw}
}
/* V2 QA round 2: shared left edge for title and reading column; pixel caps on heroes */
.fb-title{padding-left:max(var(--fb-pad),calc((100% - var(--fb-col))/2));padding-right:var(--fb-pad)}
.fb-title>*{margin-left:0!important;margin-right:0;max-width:var(--fb-col)}
.fb-title h1{max-width:min(16ch,60rem)}
.fb-film-hero{max-height:640px}
.fb-opening{min-height:min(88vh,780px)}
.hb-sched{font-size:.98rem}
@media (max-width:700px){
  .fb-opening{min-height:0;height:min(74svh,600px)}
  .fb-film-hero{height:min(44svh,300px);min-height:220px}
}
