/* /host/calculator/: one full screen. The left panel is what a host changes, the right side is the statement
   they get, the same statement as the /host/community/ example. */
#lc27{--hc-edge:max(clamp(32px,6vw,88px),calc((100vw - 1280px)/2))}
#lc27 .hc{--hc-line:#ffffff24;--hc-dim:#a9b8c4;--hc-good:#4fd1b5;--hc-bad:#ff8a7a;--hc-panel:#16283b;--hc-field:#0e1f30;--hc-pad:32px;box-sizing:border-box;display:grid;grid-template-columns:400px minmax(0,1fr);grid-template-rows:auto auto auto;column-gap:clamp(48px,6vw,88px);align-content:center;min-height:100svh;padding:128px var(--hc-edge) 48px;background:var(--navy);color:#fff}
#lc27 .hc *{box-sizing:border-box}
#lc27 .hc:before{content:"";grid-column:1;grid-row:1/4;background:var(--hc-panel);border-top:4px solid var(--product-accent)}
#lc27 .hc-back{display:inline-flex;align-items:center;gap:10px;font-size:.9rem;font-weight:600;color:#dbe3e9;text-decoration:none}
#lc27 .hc-back .lc-chevron{width:12px;height:12px;color:var(--product-accent)}
#lc27 .hc-back:hover{color:#fff}
#lc27 .hc-title{margin:0;font-size:.75rem;font-weight:700;letter-spacing:.12em;text-transform:uppercase;color:var(--hc-dim)}

/* What a host changes */
#lc27 .hc-head{grid-column:1;grid-row:1;padding:var(--hc-pad) var(--hc-pad) 24px}
#lc27 .hc-head .eyebrow{margin:0 0 10px;color:var(--product-accent)}
#lc27 .hc-head h1{margin:0;color:#fff;font-size:2.1rem;line-height:1.05;letter-spacing:-.04em}
#lc27 .hc-form{grid-column:1;grid-row:2;display:flex;flex-direction:column;gap:20px;min-width:0;margin:0;padding:0 var(--hc-pad)}
#lc27 .hc-field{display:grid;gap:8px;min-width:0;margin:0;padding:0;border:0}
#lc27 .hc-field legend,#lc27 .hc-label{padding:0;font-size:.85rem;font-weight:600;color:#e6ecf0}
#lc27 .hc-field legend{margin-bottom:8px}
#lc27 .hc-label{display:flex;align-items:center;justify-content:space-between;gap:16px}
#lc27 .hc-label.hc-stack{display:grid;gap:8px}
#lc27 .hc-seg{display:grid;grid-template-columns:repeat(5,1fr);gap:1px;background:#ffffff40;border:1px solid #ffffff40}
#lc27 .hc-seg label{position:relative;display:block;margin:0;cursor:pointer}
#lc27 .hc-seg input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
#lc27 .hc-seg span{display:grid;place-items:center;min-height:42px;background:var(--hc-field);font-weight:600;font-variant-numeric:tabular-nums;transition:background .15s,color .15s}
#lc27 .hc-seg input:checked+span{background:var(--product-accent);color:var(--navy)}
#lc27 .hc-seg input:focus-visible+span{outline:2px solid #fff;outline-offset:-3px}
#lc27 .hc-money,#lc27 .hc-count{position:relative;display:block;width:116px}
#lc27 .hc-stack .hc-money{width:100%}
#lc27 .hc-money:before{content:"$";position:absolute;left:12px;top:50%;transform:translateY(-50%);color:var(--hc-dim);font-weight:600}
#lc27 .hc input[type=number]{width:100%;height:42px;margin:0;padding:8px 12px;border:1px solid #ffffff40;border-radius:0;background:var(--hc-field);font:inherit;font-weight:600;font-variant-numeric:tabular-nums;color:#fff;text-align:right;-moz-appearance:textfield;appearance:textfield}
#lc27 .hc-money input[type=number]{padding-left:26px}
#lc27 .hc input[type=number]::-webkit-inner-spin-button,#lc27 .hc input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
#lc27 .hc input[type=number]:focus{outline:2px solid var(--product-accent);outline-offset:-1px}
#lc27 .hc input[type=range]{width:100%;height:24px;margin:0;accent-color:var(--product-accent);cursor:pointer}
#lc27 .hc-pair{display:grid;grid-template-columns:1fr 1fr;align-items:end;gap:12px}

/* Next step, at the bottom of the panel */
#lc27 .hc-foot{grid-column:1;grid-row:3;display:grid;gap:12px;padding:28px var(--hc-pad) var(--hc-pad)}
#lc27 .hc-foot p{margin:0;font-size:.8rem;color:var(--hc-dim)}
#lc27 .hc-foot p a{color:inherit;text-decoration:underline;text-underline-offset:3px}
#lc27 .hc-foot .btn{min-height:48px;padding:12px 20px;gap:20px;background:var(--product-accent)}
#lc27 .hc-foot .btn:hover{background:color-mix(in srgb,var(--product-accent) 85%,#fff)}

/* Phones only: the answer stays in view while the inputs are changed */
#lc27 .hc-bar{display:none}

/* The statement */
#lc27 .hc-detail{grid-column:2;grid-row:1/4;display:flex;flex-direction:column;gap:28px;min-width:0}
#lc27 .hc-ledger{display:flex;flex:1;flex-direction:column;margin:0}
#lc27 .hc-ledger .hc-title{margin-bottom:10px}
#lc27 .hc-row{display:flex;flex:1 1 auto;justify-content:space-between;align-items:center;gap:24px;padding:13px 0;border-bottom:1px solid var(--hc-line);font-size:1.15rem}
#lc27 .hc-row b{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
#lc27 .hc-row b.is-out{color:var(--hc-bad)}
#lc27 .hc-total{padding:16px 0 8px;border-bottom:0;font-size:1.6rem;font-weight:600}
#lc27 .hc-big{font-size:clamp(3rem,5.4vw,4.4rem);line-height:1;font-weight:700;letter-spacing:-.04em;font-variant-numeric:tabular-nums;color:var(--hc-good)}
#lc27 .hc-total.is-short .hc-big{color:var(--hc-bad)}
#lc27 .hc-note{margin:0;font-size:.95rem;color:var(--hc-dim)}
#lc27 .hc-prices-block{display:grid;gap:12px}
#lc27 .hc-prices{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
#lc27 .hc-price{display:grid;gap:1px;min-width:0;padding:12px 16px;border:1px solid var(--hc-line);border-radius:0;background:#ffffff0a;font:inherit;color:#fff;text-align:left;cursor:pointer;transition:background .15s,border-color .15s}
#lc27 .hc-price:hover{background:#ffffff14}
#lc27 .hc-price:focus-visible{outline:2px solid #fff;outline-offset:2px}
#lc27 .hc-price.is-on{border-color:var(--product-accent);background:color-mix(in srgb,var(--product-accent) 16%,transparent)}
#lc27 .hc-price b{font-size:1.15rem;letter-spacing:-.02em}
#lc27 .hc-price span{font-size:.78rem;color:var(--hc-dim)}
#lc27 .hc-price strong{margin-top:4px;font-size:1.05rem;font-weight:600;font-variant-numeric:tabular-nums;color:var(--hc-good)}
#lc27 .hc-price strong.is-short{color:var(--hc-bad)}

/* Short laptop screens: everything still fits without scrolling */
@media (min-width:1001px) and (max-height:800px){
  #lc27 .hc{--hc-pad:22px;padding-top:112px;padding-bottom:28px}
  #lc27 .hc-head{padding-bottom:14px}
  #lc27 .hc-head h1{font-size:2rem}
  #lc27 .hc-form{gap:12px}
  #lc27 .hc-field{gap:4px}
  #lc27 .hc-field legend{margin-bottom:4px}
  #lc27 .hc-seg span{min-height:38px}
  #lc27 .hc input[type=number]{height:38px}
  #lc27 .hc input[type=range]{height:20px}
  #lc27 .hc-foot{gap:8px;padding-top:14px}
  #lc27 .hc-foot .btn{min-height:44px;padding-block:10px}
  #lc27 .hc-detail{gap:16px}
  #lc27 .hc-row{padding:10px 0;font-size:1.05rem}
  #lc27 .hc-total{padding-top:12px}
  #lc27 .hc-big{font-size:3rem}
}
@media (max-width:1000px){
  #lc27 .hc{display:block;min-height:0;padding:100px 24px 0}
  #lc27 .hc:before{display:none}
  #lc27 .hc-head{padding:0 0 18px}
  #lc27 .hc-bar{position:sticky;top:0;z-index:5;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 -24px;padding:12px 24px;background:var(--navy);border-block:1px solid var(--hc-line)}
  #lc27 .hc-bar p{margin:0}
  #lc27 .hc-bar-keep{font-size:1.7rem;line-height:1.1;font-weight:700;letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--hc-good)}
  #lc27 .hc-bar.is-short .hc-bar-keep{color:var(--hc-bad)}
  #lc27 .hc-bar .hc-note{max-width:170px;font-size:.78rem;text-align:right}
  #lc27 .hc-form{margin:0 -24px;padding:24px;background:var(--hc-panel)}
  #lc27 .hc-detail{padding:32px 0}
  #lc27 .hc-row{font-size:1.02rem}
  #lc27 .hc-total{font-size:1.25rem}
  #lc27 .hc-big{font-size:2.6rem}
  #lc27 .hc-prices{grid-template-columns:1fr 1fr}
  #lc27 .hc-foot{margin:0 -24px;padding:24px;background:var(--hc-panel)}
}
@media (prefers-reduced-motion:reduce){#lc27 .hc-price,#lc27 .hc-seg span{transition:none}}
