/* TapNow public site: free tools, guides and the resources hub. Loaded after site.css on those pages only. */

.tool,.guide,.rhub{position:relative;z-index:3;background:#fff;color:var(--ink);padding-block:calc(var(--r) + clamp(2.5rem,5vw,4rem)) clamp(4rem,8vw,6.5rem)}
.rhub+.rhub{z-index:4;background:var(--mist)}
.phead .crumbs{display:flex;flex-wrap:wrap;gap:.3rem .6rem;margin-bottom:1.1rem;font-size:.875rem;font-weight:600}
.phead .crumbs a{text-decoration:underline;text-underline-offset:.25em;text-decoration-thickness:1.5px}
.phead .crumbs span[aria-hidden]{opacity:.5}
.phead h1.tt{font-size:clamp(2.4rem,6.2vw,4.9rem);max-width:14em;line-height:.92}
.phead:has(h1.tt){padding-top:clamp(7rem,13vh,9rem)}

/* ------- tool layout ------- */
.tgrid{display:grid;grid-template-columns:minmax(0,.92fr) minmax(0,1.08fr);gap:clamp(1.5rem,4vw,3.5rem);align-items:start}
.tpanel{background:var(--mist);border-radius:2rem;padding:clamp(1.2rem,3vw,2rem);box-shadow:0 0 0 1.5px var(--ink) inset}
.tpanel h2{font-size:clamp(1.5rem,2.6vw,2rem);line-height:1;margin-bottom:1.2rem;letter-spacing:-.03em}
.fld{display:grid;gap:.45rem;margin-bottom:1.15rem}
.fld>label,.fld>.lbl{font-weight:600;font-size:.95rem}
.fld small{color:var(--mute);font-size:.85rem;line-height:1.4}
.fld input[type=text],.fld input[type=number],.fld input[type=url],.fld select{width:100%;min-height:3rem;padding:0 1rem;border:0;border-radius:1rem;background:#fff;color:var(--ink);font:inherit;font-size:1rem;box-shadow:0 0 0 1.5px var(--ink) inset;-webkit-appearance:none;appearance:none}
.fld select{background-image:linear-gradient(45deg,transparent 50%,var(--ink) 50%),linear-gradient(135deg,var(--ink) 50%,transparent 50%);background-position:calc(100% - 1.3rem) 52%,calc(100% - .95rem) 52%;background-size:.4rem .4rem;background-repeat:no-repeat;padding-right:2.4rem}
.fld input:focus-visible,.fld select:focus-visible{outline:3px solid var(--tomato);outline-offset:2px}
.fld input[aria-invalid=true]{box-shadow:0 0 0 2.5px var(--tomato) inset}
.fld .err{color:#b3260d;font-weight:600;font-size:.875rem;min-height:1.2em}
.fld input[type=range]{width:100%;accent-color:var(--violet);min-height:2.75rem}
.fld .rv{display:flex;justify-content:space-between;align-items:baseline;gap:1rem}
.fld .rv b{font:700 1.15rem/1 var(--display);letter-spacing:-.02em}
.two{display:grid;grid-template-columns:1fr 1fr;gap:0 1rem}
.two .fld{grid-template-rows:auto auto 1fr;align-content:start}
.sws{display:flex;flex-wrap:wrap;gap:.55rem}
.sws label{position:relative;display:block;width:2.9rem;height:2.9rem;border-radius:50%;cursor:pointer;box-shadow:0 0 0 1.5px rgba(21,17,43,.25) inset}
.sws input{position:absolute;inset:0;opacity:0;margin:0;cursor:pointer}
.sws label span{position:absolute;inset:0;border-radius:50%;background:var(--c)}
.sws label:has(input:checked){box-shadow:0 0 0 3px var(--mist),0 0 0 5px var(--ink)}
.sws label:has(input:focus-visible){outline:3px solid var(--tomato);outline-offset:3px}
.sws .nm{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.segs{display:flex;flex-wrap:wrap;gap:.5rem}
.segs label{position:relative;cursor:pointer}
.segs input{position:absolute;opacity:0;inset:0;margin:0;cursor:pointer}
.segs span{display:inline-flex;align-items:center;min-height:2.9rem;padding:0 1.1rem;border-radius:99px;background:#fff;font-weight:600;font-size:.95rem;box-shadow:0 0 0 1.5px var(--ink) inset;transition:background-color .2s,color .2s}
.segs input:checked+span{background:var(--ink);color:#fff}
.segs input:focus-visible+span{outline:3px solid var(--tomato);outline-offset:2px}
.tnote{margin-top:1.4rem;color:var(--mute);font-size:.9rem;line-height:1.5;max-width:42em}
.tnote a,.guide a:not(.btn),.rcard .more{text-decoration:underline;text-underline-offset:.25em;text-decoration-thickness:1.5px}

/* ------- calculator results ------- */
.res{display:grid;gap:1rem}
.big-n{padding:clamp(1.3rem,3vw,2rem);border-radius:2rem;background:var(--ink);color:#fff}
.big-n small{display:block;color:var(--mute-d);font-size:.95rem;margin-bottom:.4rem}
.big-n b{display:block;font:800 clamp(3rem,8vw,5.4rem)/.9 var(--display);font-stretch:88%;letter-spacing:-.05em;color:var(--butter)}
.big-n p{margin-top:.8rem;color:var(--mute-d);font-size:1.02rem;max-width:30em}
.mini-n{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:.8rem}
.mini-n div{padding:1rem 1.1rem;border-radius:1.5rem;background:var(--mist);box-shadow:0 0 0 1.5px var(--ink) inset}
.mini-n small{display:block;color:var(--mute);font-size:.85rem;margin-bottom:.25rem}
.mini-n b{font:700 1.5rem/1.05 var(--display);letter-spacing:-.03em}
.mini-n .pos b{color:#0b6b3a}.mini-n .neg b{color:#b3260d}
@media (max-width:40em){.mini-n{grid-template-columns:1fr}}
.assume{padding:1rem 1.2rem;border-radius:1.5rem;background:var(--lilac);font-size:.95rem;line-height:1.5}
.assume b{font-weight:700}

/* ------- printable things ------- */
.pv{display:grid;gap:1rem;justify-items:start}
.pv .actions{display:flex;flex-wrap:wrap;gap:.7rem}
.stampcard{--c:#15112B;position:relative;width:90mm;height:54mm;box-sizing:border-box;padding:4mm 5mm 3.5mm;background:#fff;color:#15112B;border:.35mm dashed rgba(21,17,43,.45);display:flex;flex-direction:column;font-family:var(--body);-webkit-print-color-adjust:exact;print-color-adjust:exact;overflow:hidden}
.stampcard .sc-top{display:flex;justify-content:space-between;align-items:baseline;gap:3mm;margin:-4mm -5mm 0;padding:3mm 5mm 2.4mm;background:var(--c);color:#fff}
.stampcard .sc-name{font:800 4.6mm/1.05 var(--display);letter-spacing:-.02em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.stampcard .sc-tag{font-size:2.5mm;opacity:.9;white-space:nowrap}
.stampcard .sc-dots{display:grid;grid-template-columns:repeat(var(--cols,5),1fr);gap:1.8mm 2mm;margin:3mm auto 0;width:100%;flex:1;align-content:center}
.stampcard .sc-dots i{display:grid;place-items:center;aspect-ratio:1;max-height:9mm;justify-self:center;width:100%;max-width:9mm;border:.45mm solid var(--c);border-radius:50%;font:700 2.6mm/1 var(--body);font-style:normal;color:var(--c)}
.stampcard.sq .sc-dots i{border-radius:1.6mm}
.stampcard.many .sc-dots i{max-width:7.6mm;max-height:7.6mm}
.stampcard .sc-dots i:last-child{background:var(--c);color:#fff;font-size:2.1mm}
.stampcard .sc-foot{display:flex;justify-content:space-between;gap:3mm;font-size:2.7mm;font-weight:700;margin-top:1.6mm;color:#15112B}
.stampcard .sc-foot span:last-child{font-weight:500;opacity:.7;white-space:nowrap}
.sheet{display:grid;grid-template-columns:repeat(2,90mm);grid-auto-rows:54mm;width:180mm;margin:0;justify-content:center}
.sheetwrap{display:none}
.pcard{display:block;transform-origin:0 0}

.poster{--c:#15112B;width:148mm;height:210mm;box-sizing:border-box;background:#fff;color:#15112B;display:flex;flex-direction:column;align-items:center;text-align:center;padding:12mm 12mm 10mm;border:1.5mm solid var(--c);font-family:var(--body);-webkit-print-color-adjust:exact;print-color-adjust:exact;overflow:hidden}
.poster.a4{width:210mm;height:297mm;padding:16mm 16mm 12mm;border-width:2mm}
.poster .po-shop{font:700 5mm/1 var(--body);letter-spacing:.14em;text-transform:uppercase;color:var(--c)}
.poster h3{font:800 17mm/.95 var(--display);font-stretch:88%;letter-spacing:-.04em;margin:6mm 0 4mm;overflow-wrap:anywhere}
.poster.a4 h3{font-size:24mm}
.poster .po-sub{font-size:6mm;line-height:1.3;max-width:110mm;font-weight:500}
.poster.a4 .po-sub{font-size:7.5mm;max-width:150mm}
.poster .po-qr{margin:8mm auto 6mm;width:86mm;height:86mm;padding:4mm;border:1.4mm solid var(--c);border-radius:8mm;background:#fff;display:grid;place-items:center}
.poster.a4 .po-qr{width:118mm;height:118mm}
.poster .po-qr img,.poster .po-qr canvas{width:100%!important;height:100%!important;display:block;image-rendering:pixelated}
.poster .po-steps{display:flex;gap:5mm;margin-top:auto;font-size:4.4mm;font-weight:600}
.poster.a4 .po-steps{font-size:5.4mm}
.poster .po-steps span{display:flex;align-items:center;gap:2mm}
.poster .po-steps b{display:inline-grid;place-items:center;width:7mm;height:7mm;border-radius:50%;background:var(--c);color:#fff;font-size:3.6mm}
.poster .po-stars{color:var(--c);font-size:9mm;letter-spacing:2mm;margin-top:5mm;line-height:1}
.postwrap{max-width:100%;overflow:hidden}
.poster-fit{transform-origin:0 0}
details.how{margin-top:.4rem;padding:1rem 1.2rem;border-radius:1.4rem;background:#fff;box-shadow:0 0 0 1.5px var(--ink) inset}
details.how summary{cursor:pointer;font-weight:700}
details.how ol{margin:.8rem 0 0 1.2rem;list-style:decimal;display:grid;gap:.4rem;font-size:.95rem}

/* ------- printing: only the thing the visitor made ------- */
@page{margin:8mm}
@media print{
  html,body{background:#fff!important;color:#000}
  .nav,.skip,.prog,.stickycta,.phead,.tpanel,.cta,footer,.tnote,.pv .actions,.noprint,.res,.assume,svg[aria-hidden]{display:none!important}
  .tool{padding:0!important;margin:0!important;border-radius:0!important;background:none!important}
  .tgrid{display:block}
  .pv{display:block}
  .pcard,.postwrap{display:none!important}
  .sheetwrap{display:block!important}
  .sheet{margin:0 auto}
  body.print-poster .sheetwrap{display:none!important}
  body.print-poster .postwrap{display:block!important;overflow:visible}
  body.print-poster .poster-fit{transform:none!important;width:auto!important;height:auto!important}
  .poster{border-radius:0}
}

/* ------- guides ------- */
.gwrap{max-width:46rem;margin-inline:auto;font-size:1.125rem;line-height:1.65}
.gwrap>*+*{margin-top:1.15rem}
.gwrap h2{font-size:clamp(1.8rem,3.6vw,2.6rem);line-height:1;letter-spacing:-.035em;margin-top:2.8rem;text-wrap:balance}
.gwrap h3{font-size:1.35rem;margin-top:1.8rem;letter-spacing:-.02em}
.gwrap ul,.gwrap ol{display:grid;gap:.55rem;padding-left:1.3rem}
.gwrap ul{list-style:disc}.gwrap ol{list-style:decimal}
.gwrap li::marker{color:var(--tomato);font-weight:700}
.gwrap strong{font-weight:700}
.gwrap .byline{color:var(--mute);font-size:.95rem}
.gwrap .callout{padding:1.2rem 1.4rem;border-radius:1.6rem;background:var(--butter);font-weight:500;font-size:1.05rem}
.gwrap .callout b{font-weight:800}
.gwrap table{width:100%;border-collapse:collapse;font-size:1rem}
.gwrap th,.gwrap td{text-align:left;vertical-align:top;padding:.7rem .8rem;border-top:1.5px solid var(--line)}
.gwrap th{font:700 .85rem/1.2 var(--body);letter-spacing:.06em;text-transform:uppercase;color:var(--mute);border-top:0;border-bottom:2px solid var(--ink)}
.tablewrap{overflow-x:auto;-webkit-overflow-scrolling:touch}
.gwrap .try{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:1.6rem}
.related{max-width:46rem;margin:3.2rem auto 0;padding-top:2rem;border-top:2px solid var(--ink)}
.related h2{font-size:1.5rem;letter-spacing:-.03em;margin:0 0 1rem}
.related ul{display:grid;gap:.6rem}
.related a{display:flex;justify-content:space-between;gap:1rem;padding:1rem 1.2rem;border-radius:1.4rem;background:var(--mist);font-weight:600;box-shadow:0 0 0 1.5px var(--line) inset;transition:transform .35s var(--out)}
@media (hover:hover){.related a:hover{transform:translateX(.3rem)}}

/* ------- resources hub ------- */
.rhub h2{font-size:clamp(2rem,5vw,3.6rem);margin-bottom:.7rem}
.rhub .lede{color:var(--mute);margin-bottom:clamp(1.6rem,3vw,2.4rem)}
.rcards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(.8rem,1.6vw,1.3rem)}
.rcard{position:relative;display:flex;flex-direction:column;gap:.7rem;min-height:15rem;padding:1.6rem;border-radius:2rem;background:var(--c,var(--butter));color:var(--ink);transition:transform .45s var(--out);box-shadow:0 0 0 1.5px var(--ink) inset}
.rcard .k{font:600 .8125rem/1 var(--body);letter-spacing:.12em;text-transform:uppercase}
.rcard h3{font-size:1.65rem}
.rcard p{font-size:1rem;color:rgba(21,17,43,.8)}
.rcard .more{margin-top:auto;font-weight:700}
@media (hover:hover){.rcard:hover{transform:translateY(-.4rem) rotate(-.5deg)}}
@media (max-width:60em){.rcards{grid-template-columns:1fr 1fr}}
@media (max-width:40em){.rcards{grid-template-columns:1fr}.rcard{min-height:0}}

@media (max-width:60em){.tgrid{grid-template-columns:1fr}.two{grid-template-columns:1fr}}

.phead .crumbs{gap:0 .6rem;align-items:center}
.phead .crumbs a{display:inline-flex;align-items:center;min-height:2.75rem}
details.how summary{padding:.65rem 0;min-height:2.75rem;display:flex;align-items:center}
