/* The Hours-Back Calculator (hours-back.main.html + hours-back.js). Mobile first; the .hp root is the container. */
.hp #hb section{padding-block:56px}
.hp .hb-sec-h{display:flex;flex-direction:column;gap:14px;margin-bottom:28px;max-width:760px}
.hp .hb-sec-h .h2{font-size:clamp(36px,5cqw,56px);line-height:.94}
.hp .hb-sec-h .lead{font-size:19px;line-height:1.5}
.hp .hb-fine{margin:0;font-family:var(--f-mono);font-size:13.5px;line-height:1.5;color:var(--ink2)}
.hp .hb-link{background:none;border:0;padding:6px 0;font-family:var(--f-mono);font-size:14.5px;color:var(--ink2);cursor:pointer;text-decoration:underline;text-decoration-color:transparent;text-underline-offset:4px}
.hp .hb-link:hover{color:var(--ink);text-decoration-color:currentColor}

/* ---------------------------------------------------------------- the hero */
.hp #hb .hb-hero{padding-block:44px 40px}
.hp .hb-hero-in{display:flex;flex-direction:column;gap:20px;max-width:calc(1000px + var(--mx) * 2)}
.hp .hb-hero .h1{font-size:clamp(46px,6.4cqw,84px);line-height:.9}
.hp .hb-hero .lead{font-size:20px;max-width:680px}

/* ---------------------------------------------------------------- the calculator */
.hp .hb-form{display:flex;flex-direction:column;gap:34px;max-width:860px}
.hp .hb-fs{border:0;margin:0;padding:0;min-width:0}
.hp .hb-leg{display:grid;grid-template-columns:auto minmax(0,1fr);gap:14px;padding:0;margin:0 0 16px;width:100%}
.hp .hb-leg>.num{font-family:var(--f-mono);font-size:15px;line-height:1.7;color:var(--acc)}
.hp .hb-leg b{display:block;font-stretch:86%;font-weight:760;font-size:27px;line-height:1.12;letter-spacing:-.005em}
.hp .hb-sub{display:block;margin-top:5px;font-size:17px;line-height:1.45;color:var(--ink2)}
.hp .hb-jobs{display:flex;flex-direction:column;gap:9px}
.hp .hb-job{background:#fff;border-radius:var(--rad-card,10px);box-shadow:inset 0 0 0 1.5px var(--line);transition:box-shadow .15s}
.hp .hb-job.on{box-shadow:inset 0 0 0 2px var(--ink)}
.hp .hb-pick{position:relative;display:grid;grid-template-columns:22px minmax(0,1fr) auto;gap:12px;align-items:center;padding:14px 16px;cursor:pointer}
.hp .hb-pick input{position:absolute;left:16px;width:22px;height:22px;margin:0;opacity:0;cursor:pointer}
.hp .bx{width:22px;height:22px;display:block;background:#fff;box-shadow:inset 0 0 0 1.5px var(--ink2)}
.hp .hb-pick .bx{border-radius:5px}
.hp .hb-pick input:checked+.bx{box-shadow:none;background:var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M6 11.5l3.4 3.4L16.2 7.6' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat}
.hp .hb-pick input:focus-visible+.bx,.hp .hb-o input:focus-visible+.bx{outline:2px solid var(--ink);outline-offset:3px}
.hp .hb-pick .nm{font-size:17.5px;font-weight:650;line-height:1.25;min-width:0}
.hp .hb-pick .hint{font-family:var(--f-mono);font-size:13px;line-height:1.3;color:var(--ink2);text-align:right}
.hp .hb-job.on .hint{display:none}
.hp .hb-set{display:grid;grid-template-columns:minmax(0,.75fr) minmax(0,1.4fr);gap:10px 12px;padding:0 16px 14px;align-items:end}
.hp .hb-f{display:flex;flex-direction:column;gap:5px;min-width:0}
.hp .hb-f.wide{grid-column:1/-1}
.hp .hb-team{background:#fff;border-radius:var(--rad-card,10px);box-shadow:inset 0 0 0 1.5px var(--line);padding:18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hp .hb-f-s{font-size:14px;line-height:1.35;color:var(--ink2)}
.hp .hb-team-n{grid-column:1/-1}
.hp .hb-team-n:empty{display:none}
.hp .hb-f label{font-size:14px;font-weight:650}
.hp .hb-f input,.hp .hb-f select{width:100%;height:46px;background:#fff;color:var(--ink);border:0;border-radius:var(--rad,6px);padding:0 12px;font-size:16px;box-shadow:inset 0 0 0 1.5px rgba(29,74,110,.6)}
.hp .hb-f input:focus-visible,.hp .hb-f select:focus-visible{outline:2px solid var(--ink);outline-offset:1px}
.hp .hb-yr{grid-column:1/-1;margin:0;font-family:var(--f-mono);font-size:13.5px;color:var(--ink2)}
.hp .hb-share{background:#fff;border-radius:var(--rad-card,10px);box-shadow:inset 0 0 0 1.5px var(--line);padding:18px 18px 16px;display:flex;flex-direction:column;gap:10px}
.hp .hb-share-r{display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.hp .hb-share-r label{font-size:16px;font-weight:650}
.hp .hb-share-r output{font-stretch:70%;font-weight:850;font-size:34px;line-height:1}
.hp .hb-share-r output b{font-weight:inherit}
.hp #hb-pct{width:100%;height:30px;margin:0;accent-color:#1d4a6e;cursor:pointer}
.hp .hb-note{margin:0;font-size:15.5px;line-height:1.45;color:var(--ink2)}
.hp .hb-go{display:flex;flex-wrap:wrap;gap:12px 22px;align-items:center}
.hp .hb-go .btn{border:0;cursor:pointer;font-family:inherit}
.hp .hb-msg{flex-basis:100%;margin:0;font-size:16px;font-weight:600;color:#a0332e}
.hp .hb-msg:empty{display:none}

/* ---------------------------------------------------------------- the result */
.hp .hb-res-in{display:grid;grid-template-columns:minmax(0,1fr);gap:28px;align-items:end}
.hp .hb-res-t{display:flex;flex-direction:column;gap:16px;min-width:0}
.hp .hb-res .h1{font-size:clamp(48px,7cqw,92px);line-height:.92;outline:0}
.hp .hb-res .lead{font-size:20px}
.hp .hb-stats{margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;min-width:0}
.hp .hb-stats div{box-shadow:inset 0 0 0 1.5px var(--lineD);border-radius:var(--rad-card,10px);padding:16px}
.hp .hb-stats dt{color:var(--ink2D);font-size:11px;letter-spacing:.16em}
.hp .hb-stats dd{margin:8px 0 0;font-stretch:80%;font-weight:800;font-size:24px;line-height:1.05;color:#fff}
.hp .hb-stats .hb-dd-s{margin-top:5px;font-family:var(--f-mono);font-stretch:100%;font-weight:400;font-size:12.5px;line-height:1.3;color:var(--ink2D)}

.hp .hb-break-in{display:grid;grid-template-columns:minmax(0,1fr);gap:26px;align-items:start}
.hp .hb-break-l{min-width:0}
.hp .hb-table{width:100%;border-collapse:collapse;font-size:16.5px;line-height:1.3;margin-bottom:12px}
.hp .hb-table th,.hp .hb-table td{padding:11px 0;border-top:1px solid var(--line);text-align:right;font-weight:400}
.hp .hb-table thead th{border-top:0;font-family:var(--f-mono);font-size:12.5px;color:var(--ink2);vertical-align:bottom}
.hp .hb-table th:first-child{text-align:left;padding-right:10px}
.hp .hb-table td,.hp .hb-table thead th+th{width:82px;padding-left:8px}
.hp .hb-table tbody th{font-weight:600}
.hp .hb-table td:last-child{font-weight:750}
.hp .hb-table tfoot th,.hp .hb-table tfoot td{font-weight:750;border-top:2px solid var(--ink)}
.hp .hb-tag{display:inline-block;margin-left:8px;font-family:var(--f-mono);font-size:12px;font-weight:400;color:#2c6b3f;background:var(--tint);border-radius:99px;padding:1px 8px;white-space:nowrap}
.hp .hb-first{display:flex;flex-direction:column;gap:10px;align-items:flex-start;background:var(--card,#fff);border-radius:var(--rad-card,10px);box-shadow:var(--card-sh);padding:22px;min-width:0}
.hp .hb-first .wc{color:var(--acc)}
.hp .hb-first h3{margin:0;font-stretch:80%;font-weight:800;text-transform:uppercase;font-size:26px;line-height:1.05}
.hp .hb-first p{margin:0;font-size:16.5px;line-height:1.5;color:var(--ink2)}
.hp .hb-first .tl{font-size:15px}

.hp .hb-mean-in{display:grid;grid-template-columns:minmax(0,1fr);gap:18px;align-items:start}
.hp .hb-places{border:0;margin:0;padding:0;min-width:0;display:flex;flex-direction:column;gap:9px}
.hp .hb-o{position:relative;display:grid;grid-template-columns:22px minmax(0,1fr);gap:12px;align-items:center;background:#fff;box-shadow:inset 0 0 0 1.5px var(--line);border-radius:var(--rad-card,10px);padding:13px 16px;font-size:17px;line-height:1.3;font-weight:600;cursor:pointer}
.hp .hb-o input{position:absolute;left:16px;width:22px;height:22px;margin:0;opacity:0;cursor:pointer}
.hp .hb-o .bx{border-radius:50%}
.hp .hb-o input:checked+.bx{box-shadow:inset 0 0 0 6px var(--ink)}
.hp .hb-o:has(input:checked){box-shadow:inset 0 0 0 2px var(--ink)}
.hp .hb-place{display:flex;flex-direction:column;gap:10px;align-items:flex-start;background:var(--card,#fff);border-radius:var(--rad-card,10px);box-shadow:var(--card-sh);padding:24px 22px;min-width:0}
.hp .hb-place p{margin:0;font-size:16.5px;line-height:1.5}
.hp .hb-place .hb-place-n{font-stretch:80%;font-weight:800;text-transform:uppercase;font-size:27px;line-height:1.05}
.hp .hb-place .hb-place-q{font-size:18px;font-weight:600}
.hp .hb-place .tl{font-size:15px}
.hp .hb-share-row{display:flex;flex-wrap:wrap;gap:8px 22px;align-items:center;margin-top:28px}
.hp .hb-share-row .btn{border:0;cursor:pointer;font-family:inherit}

.hp .hb-tale-g{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.hp .hb-tale{display:flex;flex-direction:column;gap:10px;align-items:flex-start;background:var(--card,#fff);border-radius:var(--rad-card,10px);box-shadow:var(--card-sh);padding:22px;min-width:0}
.hp .hb-tale p{margin:0;font-size:16.5px;line-height:1.5}
.hp .hb-tale .hb-tale-n{font-stretch:70%;font-weight:850;text-transform:uppercase;font-size:34px;line-height:1}
.hp .hb-tale .tl{margin-top:auto;font-size:15px}

/* ---------------------------------------------------------------- the sign-up, copied from prompts.css so this page doesn't load it */
.hp .lib-form{display:flex;flex-direction:column;gap:12px;max-width:560px}
.hp .lib-hp{position:absolute;left:-9999px;opacity:0;height:0;width:0}
.hp .lib-fields{display:grid;grid-template-columns:minmax(0,1fr);gap:12px}
.hp .lib-f{display:flex;flex-direction:column;gap:5px;min-width:0}
.hp .lib-f label{font-size:13.5px;font-weight:650}
.hp .lib-f input{width:100%;background:#fff;color:var(--ink);border:0;border-radius:var(--rad,6px);padding:14px;font-size:16px;box-shadow:inset 0 0 0 1.5px rgba(29,74,110,.2)}
.hp .lib-f input::placeholder{color:#587387}
.hp .lib-f input:focus-visible{outline:2px solid #fff;outline-offset:2px}
.hp .lib-go{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center}
.hp .lib-go .btn{cursor:pointer;border:0;font-family:inherit}
.hp .lib-go .btn[disabled]{opacity:.7;cursor:progress}
.hp .lib-back{font-size:15px;font-weight:600;text-decoration:underline;text-decoration-thickness:1.5px;text-underline-offset:4px}
.hp .lib-msg{margin:0;font-size:15px;line-height:1.4}
.hp .lib-msg:empty{display:none}
.hp .lib-member{display:flex;flex-wrap:wrap;gap:12px 20px;align-items:center}
.hp .lib-hi{margin:0;font-size:18px;font-weight:650}
.hp .hb-next .pf-foot{margin:0;font-family:var(--f-mono);font-size:13px;color:var(--ink2D)}
.hp .hb-next .pf-foot a{text-decoration:underline;text-underline-offset:3px}
@container (min-width:560px){.hp .lib-fields{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}}
.hp .hb-next-in{display:grid;grid-template-columns:minmax(0,1fr);gap:30px;align-items:center}
.hp .hb-next-t{display:flex;flex-direction:column;gap:16px;min-width:0}
.hp .hb-next .h2{font-size:clamp(36px,5cqw,56px);line-height:.94}
.hp .hb-next .lead{font-size:19px;line-height:1.5}
.hp .hb-keep{margin:0;font-family:var(--f-mono);font-size:13.5px;line-height:1.5;color:var(--ink2D)}
.hp .hb-next-f{min-width:0}

/* ---------------------------------------------------------------- wider screens */
@container (min-width:640px){
  .hp .hb-set{grid-template-columns:150px 220px minmax(0,1fr)}
  .hp .hb-yr{grid-column:auto;align-self:center;padding-top:20px;text-align:right}
  .hp .hb-table{font-size:17.5px}
  .hp .hb-table td,.hp .hb-table thead th+th{width:110px}
}
@container (min-width:900px){
  .hp #hb section{padding-block:80px}
  .hp #hb .hb-hero{padding-block:72px 56px}
  .hp .hb-res-in{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:56px}
  .hp .hb-stats{grid-template-columns:minmax(0,1fr)}
  .hp .hb-team{grid-template-columns:minmax(0,1fr)}
  .hp .hb-break-in{grid-template-columns:minmax(0,1fr) 340px;gap:48px}
  .hp .hb-mean-in{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:32px}
  .hp .hb-tale-g{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
  .hp .hb-next-in{grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:72px}
}
@media (prefers-reduced-motion:reduce){.hp .hb-job{transition:none}}
