/* BitBats price calculator (owner 2026-11-18). Uses ../styles.css tokens; one colour per cost, the same everywhere. */
.c-vat{background:#7fb2ff}.c-ingredients{background:#f5b83d}.c-box{background:#b8895a}.c-staff{background:#ff8a4d}
.c-rent{background:#b48cff}.c-utilities{background:#4fc9d6}.c-card{background:#9aa3ad}.c-delivery{background:#ff6b9a}
.c-remains{background:#3ddc97}

.calc-top .wrap{display:flex;align-items:center;height:72px}
.calc-hero{padding:8px 0 56px}
.calc-hero h1{font-size:clamp(30px,5vw,54px);line-height:1.12;letter-spacing:-.02em;margin:14px 0 12px}
.tag{display:inline-block;font-size:11px;font-weight:600;color:var(--warn);border:1px solid rgba(245,184,61,.45);border-radius:999px;padding:1px 8px;margin-right:4px;vertical-align:1px;white-space:nowrap}

.calc-grid{display:grid;grid-template-columns:minmax(220px,340px) 1fr;gap:32px;align-items:center;margin-top:24px}
.pizza-wrap{margin:0;max-width:340px;width:100%;justify-self:center}
#pizza{width:100%;height:auto;display:block;filter:drop-shadow(0 18px 40px rgba(255,120,60,.18));transition:filter .2s var(--ease)}
#pizza.loss{filter:drop-shadow(0 0 0 transparent) drop-shadow(0 0 18px rgba(255,107,107,.55))}
#pizza path{transition:d .2s var(--ease)}

.slider{display:block;margin:0 0 22px}
.slider-head{display:flex;justify-content:space-between;align-items:baseline;gap:12px;font-weight:600}
.slider-head output{font-size:22px;color:var(--dawn)}
.slider input[type=range]{width:100%;height:44px;accent-color:var(--ignite);margin:6px 0 0}
.result{margin-top:8px;padding:18px 20px;border:1px solid var(--line-strong);border-radius:var(--r);background:var(--panel)}
.result-line{margin:0;font-size:20px;font-weight:600}
.result-line b{font-size:30px;margin-left:6px}
.gain{color:var(--go)}.loss,.loss b,tr.loss td{color:var(--stop)!important}
.result-month{margin:6px 0 0;color:var(--muted)}

.calc-bar-wrap{margin-top:28px}
.calc-bar{position:relative;display:flex;height:42px;border-radius:var(--r-sm);overflow:hidden;background:var(--panel-2);border:1px solid var(--line)}
.calc-bar .seg{display:flex;align-items:center;justify-content:center;min-width:0;overflow:hidden;white-space:nowrap;font-family:var(--mono);font-size:12px;font-weight:700;color:#05070a;transition:width .2s var(--ease)}
.price-mark{position:absolute;top:-4px;bottom:-4px;width:3px;margin-left:-1px;background:var(--stop);box-shadow:0 0 8px var(--stop)}
.loss-note{color:var(--stop)}
.legend{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-wrap:wrap;gap:6px 16px;font-size:13px;color:var(--muted)}
.legend li{display:flex;align-items:center;gap:6px}
.legend i,.calc-table i{display:inline-block;width:10px;height:10px;border-radius:3px;flex:none}
.calc-table i{margin-right:8px;vertical-align:0}

.calc-ten h2{font-size:18px;margin:0 0 12px}
.ten{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:6px 18px}
.ten b{color:var(--text);margin-right:4px}
.ten li.loss b{color:var(--stop)}

.calc-sec h2{margin:0 0 16px}
.table-wrap{overflow-x:auto}
.calc-table{width:100%;border-collapse:collapse;font-size:14px}
.calc-table th,.calc-table td{padding:10px 8px;border-bottom:1px solid var(--line);text-align:right;vertical-align:top}
.calc-table th:first-child,.calc-table td:first-child{text-align:left}
.calc-table th{color:var(--muted);font-weight:600}
.row-price td{font-weight:700}
.row-sub td{color:var(--muted);font-size:13px}
.row-sub td:first-child{padding-left:32px}
.row-total td{font-weight:700;color:var(--go);border-bottom:0}

.calc-inputs summary{cursor:pointer;font-weight:700}
.calc-inputs h3{font-size:15px;margin:20px 0 8px}
.ing-head,.ing{display:grid;grid-template-columns:1.6fr .8fr .8fr .6fr;gap:8px;align-items:center}
.ing-head{font-size:12px;color:var(--dim)}
.ing{margin:6px 0}
.ing input[type=number],.fields input[type=number]{font:inherit;width:100%;background:var(--panel-2);color:var(--text);border:1px solid var(--line-strong);border-radius:8px;padding:8px 10px;min-height:40px}
.ing input[type=checkbox],.fields input[type=checkbox]{width:22px;height:22px;accent-color:var(--ignite)}
.fields{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:12px 18px}
.fields label{display:flex;flex-direction:column;gap:6px;font-size:14px}
.fields label.check{flex-direction:row;align-items:center;gap:10px}
.button.ghost{background:transparent;border:1px solid var(--line-strong);color:var(--text);margin-top:16px}
.calc-cta{display:flex;flex-wrap:wrap;align-items:center;gap:16px;justify-content:space-between}
.calc-cta .lead{margin:0}
.calc-disclaimer{margin-top:24px;max-width:none}

@media (max-width:760px){
  .wrap{width:calc(100% - 32px)}
  .calc-grid{grid-template-columns:1fr;gap:18px}
  .pizza-wrap{max-width:240px}
  .ing-head{grid-template-columns:1fr 1fr 108px;font-size:10px;line-height:1.3}
  .ing-head>span:first-child{display:none}
  .ing{grid-template-columns:1fr 1fr 108px;grid-template-areas:"name name name" "qty price inv"}
  .ing>span{grid-area:name}
  .ing input[type=checkbox]{justify-self:center}
  .calc-table{font-size:13px}
  .calc-table th,.calc-table td{padding:8px 4px}
  .row-sub td:first-child{padding-left:18px}
}
@media (prefers-reduced-motion:reduce){.calc-bar .seg,#pizza,#pizza path{transition:none}}
.fields label .tag{align-self:flex-start}
.fields input[type=checkbox],.ing input[type=checkbox]{flex:none}

/* the receipt (owner 2026-11-18: the chart pizza was hard to follow; a receipt is read at once) */
.receipt{max-width:640px;margin:28px 0 0;background:#f7f2e6;color:#1d1b16;border-radius:6px;padding:22px 24px 18px;
  box-shadow:0 18px 50px rgba(0,0,0,.45);font-size:15px;position:relative}
.receipt::before,.receipt::after{content:"";position:absolute;left:0;right:0;height:10px;
  background:radial-gradient(circle at 6px -2px,transparent 6px,#f7f2e6 6.5px) 0 0/12px 10px repeat-x}
.receipt::before{top:-9px;transform:scaleY(-1)}
.receipt::after{bottom:-9px}
.receipt-head{display:flex;justify-content:space-between;align-items:baseline;font-weight:700;font-size:17px;
  padding-bottom:12px;border-bottom:1px dashed rgba(0,0,0,.28)}
.receipt-head b{font-size:20px}
.receipt-lines{list-style:none;margin:12px 0;padding:0;display:grid;gap:10px}
.receipt-lines li{display:grid;grid-template-columns:1fr auto;grid-template-areas:"name amount" "bar bar";gap:4px 12px;align-items:baseline}
.receipt-lines li>span{grid-area:name}.receipt-lines li>b{grid-area:amount}
.receipt-lines .rbar{grid-area:bar}
.receipt-lines .rbar{display:block;height:8px;border-radius:4px;min-width:3px;transition:width .2s var(--ease);background-clip:padding-box}
.receipt-lines li{padding-bottom:2px}
.receipt-lines b{text-align:right;font-weight:700}
.receipt-total{border-top:1px dashed rgba(0,0,0,.28);padding-top:12px}
.receipt .result-line{font-size:18px;font-weight:700;display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:0}
.receipt .result-line b{font-size:30px;margin:0}
.receipt .gain{color:#16784c}.receipt .loss,.receipt .loss b{color:#c0392b!important}
.receipt .result-month{margin:4px 0 0;color:#5c574c;display:flex;justify-content:space-between}
.receipt .result-month b{color:#1d1b16}
.receipt .result-month b.loss{color:#c0392b}
.calc-notes{margin-top:22px;max-width:760px}
.calc-notes .note{margin-top:8px}
@media (max-width:760px){
  .receipt{padding:18px 16px 14px;font-size:14px}
  .receipt .result-line b{font-size:26px}
  .pizza-wrap{max-width:200px}
}

/* the course (owner 2026-11-18): the main site's green course look */
.calc-course{max-width:760px;margin:22px 0 0}
.calc-course-card{margin-top:16px}
