/* Horsepower Converter. Everything is rooted on #hpc so it beats the theme's .entry-content / .tg-content rules without !important. */
/* The tool is the page: the featured image stays for og:image and schema, hidden here so the tool starts high. */
body:has(#hpc) .tg-arthero, body:has(#hpc) .tg-ribbon { display: none; }
#hpc {
	--ink: #0f0f12; --ink2: #17171c; --ink3: #202127; --red: #e11d2a; --amber: #ffb020; --green: #35c46b; --cyan: #5fd0ff;
	--line: rgba(255,255,255,.13); --line2: rgba(255,255,255,.07); --text: #f3f1ec; --soft: #b5b3ae; --mute: #8c8c92;
	--disp: var(--font-display, Oswald, 'Arial Narrow', sans-serif); --body: var(--font-body, Spectral, Georgia, serif);
	--ease: cubic-bezier(.16,1,.3,1); --spring: cubic-bezier(.34,1.45,.5,1);
	position: relative; isolation: isolate; overflow: hidden;
	margin: 20px 0 32px; padding: 18px 24px 20px;
	border-radius: 2px; border-top: 3px solid var(--red); color: var(--text);
	background: radial-gradient(760px 340px at 96% -6%, rgba(225,29,42,.15), transparent 62%), linear-gradient(160deg, var(--ink2), var(--ink));
	font-family: var(--body); font-size: 16px; line-height: 1.45; container-type: inline-size;
}
#hpc *, #hpc *::before, #hpc *::after { box-sizing: border-box; }
#hpc div, #hpc span, #hpc label, #hpc li, #hpc summary, #hpc small { font-size: inherit; line-height: inherit; color: inherit; }
#hpc ul { margin: 0; padding: 0; list-style: none; }
#hpc li { margin: 0; padding: 0; list-style: none; }
#hpc li::marker { content: ''; } #hpc li::before { content: none; }
#hpc button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; margin: 0; padding: 0; border-radius: 2px; text-transform: none; letter-spacing: normal; box-shadow: none; }
#hpc input { margin: 0; font: inherit; color: inherit; box-shadow: none; }
#hpc label { margin: 0; display: inline; font-weight: inherit; }
#hpc details, #hpc summary { margin: 0; padding: 0; border: 0; background: none; }
#hpc summary { list-style: none; cursor: pointer; }
#hpc summary::-webkit-details-marker { display: none; }
#hpc button:focus-visible, #hpc input:focus-visible, #hpc summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
#hpc b { font-weight: 600; color: var(--text); }
#hpc svg { display: block; }
#hpc .hpc-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
#hpc [hidden] { display: none !important; }

/* tab and direction state: the root's data attributes decide, no script needed for the server render */
#hpc[data-tab=units] [data-pane=torque], #hpc[data-tab=units] [data-pane=wheel],
#hpc[data-tab=torque] [data-pane=units], #hpc[data-tab=torque] [data-pane=wheel],
#hpc[data-tab=wheel] [data-pane=units], #hpc[data-tab=wheel] [data-pane=torque],
#hpc[data-td=tp] [data-notd~=tp], #hpc[data-td=pt] [data-notd~=pt],
#hpc[data-wd=wc] [data-nowd~=wc], #hpc[data-wd=cw] [data-nowd~=cw],
#hpc[data-dl=ev] [data-nodl~=ev] { display: none; }

/* head */
#hpc .hpc-head { margin-bottom: 14px; }
#hpc .hpc-title { font: 600 28px/1.1 var(--disp); letter-spacing: .02em; text-transform: uppercase; color: #fff; }
#hpc .hpc-lede { margin-top: 4px; font: 400 16px/1.4 var(--body); color: var(--soft); }

/* tabs: one big segmented control */
#hpc .hpc-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; padding: 4px; margin-bottom: 14px; border: 1px solid var(--line); background: rgba(0,0,0,.38); }
#hpc .hpc-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 66px; padding: 10px 8px; text-align: center; color: var(--soft); transition: background .25s, color .25s, transform .15s; }
#hpc .hpc-tabs button:hover { color: #fff; background: rgba(255,255,255,.05); }
#hpc .hpc-tabs button:active { transform: scale(.98); }
#hpc .hpc-tabs button[aria-selected=true] { background: var(--red); color: #fff; box-shadow: 0 4px 18px rgba(225,29,42,.35); }
#hpc .hpc-tt { font: 600 19px/1.1 var(--disp); letter-spacing: .06em; text-transform: uppercase; color: inherit; }
#hpc .hpc-ts { font: 400 13px/1.25 var(--body); color: inherit; opacity: .82; }

/* cards + labels */
#hpc .hpc-card { padding: 18px 18px 16px; background: var(--ink3); border: 1px solid var(--line2); min-width: 0; }
#hpc .hpc-h { font: 500 16px/1.2 var(--disp); letter-spacing: .1em; text-transform: uppercase; color: #fff; }
#hpc .hpc-lab { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; margin-bottom: 6px; font: 500 14px/1.2 var(--disp); letter-spacing: .09em; text-transform: uppercase; color: #fff; }
#hpc .hpc-un { color: var(--mute); font-size: 13px; letter-spacing: .06em; text-transform: none; font-family: var(--body); letter-spacing: 0; }
#hpc .hpc-hint { margin-top: 5px; font: 400 14px/1.35 var(--body); color: var(--mute); }
#hpc .hpc-tag { flex: none; padding: 2px 6px; border: 1px solid rgba(255,176,32,.45); border-radius: 2px; font: 500 11px/1.2 var(--disp); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
#hpc .hpc-srow.is-ed .hpc-tag { display: none; }
#hpc .hpc-reset { margin-left: auto; min-height: 38px; padding: 6px 4px; font: 500 14px/1.2 var(--disp); letter-spacing: .06em; text-transform: uppercase; color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
#hpc .hpc-reset:hover { color: #fff; }
#hpc .hpc-in { display: grid; gap: 12px; }
#hpc .hpc-in .hpc-lab, #hpc .hpc-dt .hpc-lab { margin-bottom: 0; }
#hpc .hpc-blk { display: grid; gap: 12px; }
#hpc .hpc-dt { display: grid; gap: 12px; }
#hpc .hpc-pane > * + * { margin-top: 12px; }
#hpc .hpc-pane > .hpc-grid { margin-top: 10px; }
#hpc .hpc-sect + .hpc-grid { margin-top: 6px; }

/* the big number box */
#hpc .hpc-big { display: flex; align-items: center; gap: 10px; height: 72px; padding: 0 16px; border: 1px solid rgba(255,255,255,.22); background: #08090a; transition: border-color .2s, box-shadow .2s; }
#hpc .hpc-big:focus-within, #hpc .hpc-carbox input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,29,42,.25); }
#hpc .hpc-big input { flex: 1 1 auto; min-width: 0; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; color: #fff; font: 600 40px/1 var(--disp); letter-spacing: .01em; outline: 0; -moz-appearance: textfield; appearance: textfield; }
#hpc input[type=number]::-webkit-outer-spin-button, #hpc input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#hpc .hpc-bigu { flex: none; font: 500 22px/1 var(--disp); letter-spacing: .03em; color: var(--soft); white-space: nowrap; }

/* chips + segmented direction toggle */
#hpc .hpc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
#hpc .hpc-chips button { flex: 1 1 auto; min-height: 48px; min-width: 48px; padding: 10px 16px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font: 500 17px/1.1 var(--disp); letter-spacing: .04em; color: var(--soft); transition: background .2s, border-color .2s, color .2s, transform .15s; }
#hpc .hpc-chips button:hover { border-color: var(--red); color: #fff; }
#hpc .hpc-chips button:active { transform: scale(.97); }
#hpc .hpc-chips button[aria-pressed=true] { background: var(--red); border-color: var(--red); color: #fff; }
#hpc .hpc-seg button { min-height: 54px; font-size: 18px; }
#hpc .hpc-chipnote { margin-top: -4px; font: 400 13px/1.35 var(--body); color: var(--mute); }
#hpc .hpc-more summary { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 2px; font: 500 15px/1.2 var(--disp); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); }
#hpc .hpc-more summary::after { content: ''; width: 8px; height: 8px; margin: 0 0 3px 4px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .3s var(--ease); }
#hpc .hpc-more[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
#hpc .hpc-more summary:hover { color: #fff; }
#hpc .hpc-more[open] .hpc-moreb { animation: hpc-up .4s var(--ease) backwards; }
#hpc .hpc-moreb { padding-top: 6px; }

/* car search */
#hpc .hpc-carbox { position: relative; }
#hpc .hpc-carbox input { display: block; width: 100%; height: 50px; padding: 0 14px; border: 1px solid rgba(255,255,255,.22); border-radius: 0; background: #08090a; color: #fff; font: 400 17px/1 var(--body); outline: 0; transition: border-color .2s, box-shadow .2s; }
#hpc .hpc-carbox input::placeholder { color: var(--mute); }
#hpc .hpc-sug { position: absolute; z-index: 8; left: 0; right: 0; top: 100%; margin-top: 2px; max-height: 320px; overflow-y: auto; border: 1px solid var(--line); background: #0b0b0e; box-shadow: 0 12px 30px rgba(0,0,0,.55); }
#hpc .hpc-sug li { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-height: 48px; padding: 6px 14px; cursor: pointer; border-top: 1px solid var(--line2); font: 400 16px/1.25 var(--body); color: var(--text); }
#hpc .hpc-sug li:first-child { border-top: 0; }
#hpc .hpc-sug li small { font: 400 13px/1.2 var(--body); color: var(--mute); }
#hpc .hpc-sug li:hover, #hpc .hpc-sug li.is-act { background: rgba(225,29,42,.22); }
#hpc .hpc-sug li[aria-disabled=true] { cursor: default; color: var(--mute); }
#hpc .hpc-sug li[aria-disabled=true]:hover { background: none; }

/* sliders */
#hpc .hpc-sctl { display: grid; grid-template-columns: 188px minmax(0, 1fr); align-items: center; gap: 18px; }
#hpc .hpc-step { display: flex; align-items: stretch; border: 1px solid rgba(255,255,255,.22); background: #08090a; transition: border-color .2s, box-shadow .2s; }
#hpc .hpc-step:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,29,42,.25); }
#hpc .hpc-step button { flex: none; width: 48px; height: 52px; font: 400 26px/1 var(--disp); color: var(--soft); transition: background .15s, color .15s; }
#hpc .hpc-step button:hover { background: rgba(225,29,42,.25); color: #fff; }
#hpc .hpc-step button:active { background: var(--red); color: #fff; }
#hpc .hpc-step input { flex: 1 1 auto; min-width: 0; width: 100%; height: 52px; padding: 0; border: 0; background: transparent; color: #fff; text-align: center; font: 600 26px/1 var(--disp); letter-spacing: .02em; outline: 0; -moz-appearance: textfield; appearance: textfield; }
#hpc .hpc-range { display: block; width: 100%; height: 36px; margin: 0; padding: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; --p: 50%; touch-action: pan-y; }
#hpc .hpc-range::-webkit-slider-runnable-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--red) var(--p), rgba(255,255,255,.16) var(--p)); }
#hpc .hpc-range::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--red) var(--p), rgba(255,255,255,.16) var(--p)); }
#hpc .hpc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -11px; border: 3px solid #fff; border-radius: 50%; background: var(--red); box-shadow: 0 2px 8px rgba(0,0,0,.5); transition: transform .15s; }
#hpc .hpc-range::-moz-range-thumb { width: 22px; height: 22px; border: 3px solid #fff; border-radius: 50%; background: var(--red); }
#hpc .hpc-range:active::-webkit-slider-thumb { transform: scale(1.15); }
#hpc .hpc-rng { margin-top: -4px; font: 400 14px/1.35 var(--body); color: var(--soft); }

/* result headline */
#hpc .hpc-verdict { padding: 16px 18px; border-left: 5px solid var(--red); background: linear-gradient(90deg, color-mix(in srgb, var(--red) 14%, #0b0b0e), #0b0b0e 85%); }
#hpc .hpc-vtop { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 8px; }
#hpc .hpc-vh { font: 500 34px/1.15 var(--disp); letter-spacing: .01em; color: #fff; overflow-wrap: anywhere; }
#hpc .hpc-vs { margin-top: 6px; font: 400 17px/1.4 var(--body); color: var(--soft); }
#hpc .hpc-swap { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04); font: 500 14px/1.1 var(--disp); letter-spacing: .06em; text-transform: uppercase; color: var(--text); transition: border-color .15s, background .15s, transform .15s; }
#hpc .hpc-swap:hover { border-color: var(--red); background: rgba(225,29,42,.18); }
#hpc .hpc-swap:active { transform: scale(.96); }
#hpc .hpc-swap span { font-size: 20px; line-height: 1; }
#hpc .hpc-toast { font: 500 14px/1 var(--disp); letter-spacing: .06em; text-transform: uppercase; color: var(--green); opacity: 0; transition: opacity .3s; }
#hpc .hpc-toast.is-on { opacity: 1; }
#hpc .hpc-sect { padding-top: 6px; }
#hpc .hpc-sect .hpc-hint { margin-top: 2px; }

/* result cards */
#hpc .hpc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
#hpc .hpc-grid.hpc-g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
#hpc .hpc-grid.hpc-g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#hpc .hpc-c { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding: 10px 12px 12px; background: var(--ink3); border: 1px solid var(--line2); border-top: 2px solid var(--line); transition: border-color .3s, background .3s; animation: hpc-up .5s var(--ease) backwards; }
#hpc .hpc-c.is-to { border-color: var(--red); background: linear-gradient(180deg, rgba(225,29,42,.16), var(--ink3) 70%); }
#hpc .hpc-pick, #hpc .hpc-pk { display: block; width: 100%; min-height: 46px; text-align: left; padding: 2px 0; }
#hpc .hpc-pick b, #hpc .hpc-pk b { display: block; font: 600 17px/1.15 var(--disp); letter-spacing: .03em; color: #fff; }
#hpc .hpc-pick small, #hpc .hpc-pk small { display: block; font: 400 13px/1.25 var(--body); color: var(--mute); }
#hpc .hpc-pick { position: relative; padding-right: 20px; transition: background .15s; }
#hpc .hpc-pick::after { content: ''; position: absolute; right: 2px; top: 6px; width: 12px; height: 12px; border: 2px solid var(--mute); border-radius: 50%; transition: border-color .2s, background .2s; }
#hpc .hpc-pick:hover::after { border-color: var(--amber); }
#hpc .hpc-pick[aria-pressed=true]::after { border-color: var(--red); background: radial-gradient(circle, var(--red) 0 38%, transparent 42%); }
#hpc .hpc-cv { margin-top: auto; }
#hpc .hpc-n { font: 600 30px/1.05 var(--disp); letter-spacing: .01em; color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#hpc .hpc-copy { min-height: 38px; width: 100%; padding: 6px 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); font: 500 13px/1.1 var(--disp); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); transition: border-color .15s, background .15s, color .15s; }
#hpc .hpc-copy:hover { border-color: var(--red); color: #fff; }
#hpc .hpc-copy.is-done { border-color: var(--green); color: var(--green); }

/* gauge */
#hpc .hpc-gw { max-width: 460px; margin: 10px auto 0; }
#hpc .hpc-gsvg { width: 100%; height: auto; overflow: visible; }
#hpc .g-track { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 14; stroke-linecap: round; }
#hpc .g-val { fill: none; stroke: url(#hpc-g-arc); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 1; transition: stroke-dashoffset 1s var(--ease); animation: hpc-fill 1.3s var(--ease) .25s backwards; }
#hpc .g-tick { stroke: rgba(255,255,255,.35); stroke-width: 1.5; }
#hpc .g-lbl { fill: var(--mute); font: 500 11px var(--disp); letter-spacing: .03em; text-anchor: middle; }
#hpc .g-needle { transform: rotate(var(--a, -90deg)); transform-origin: 160px 150px; transition: transform 1s var(--spring); animation: hpc-sweep 1.5s var(--spring) .25s backwards; }
#hpc .g-nd { fill: #fff; }
#hpc .g-hub { fill: var(--ink3); stroke: #fff; stroke-width: 3; }
#hpc .hpc-gread { margin-top: -2px; text-align: center; font: 400 20px/1 var(--disp); color: var(--mute); }
#hpc .hpc-gread .hpc-n { font-size: 42px; }
#hpc .hpc-cap { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line2); text-align: center; font: 400 18px/1.4 var(--body); color: var(--text); }
#hpc .hpc-capn { margin-top: 4px; text-align: center; font: 400 14px/1.4 var(--body); color: var(--amber); }
#hpc .hpc-capn:empty { display: none; }

/* torque chart */
#hpc .hpc-chart { position: relative; height: 300px; margin-top: 8px; }
#hpc .hpc-chart svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#hpc .c-grid { stroke: rgba(255,255,255,.09); stroke-width: 1; fill: none; }
#hpc .c-axis { stroke: rgba(255,255,255,.3); stroke-width: 1.2; fill: none; }
#hpc .c-tx { fill: var(--mute); font: 500 12px var(--disp); letter-spacing: .05em; }
#hpc .c-tx.c-end { text-anchor: end; } #hpc .c-tx.c-mid { text-anchor: middle; }
#hpc .c-ln { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; animation: hpc-draw 1.3s var(--ease) .15s backwards; }
#hpc .c-ln-tq { stroke: var(--red); } #hpc .c-ln-hp { stroke: var(--cyan); }
#hpc .c-ar-tq { fill: url(#hpc-g-tq); stroke: none; } #hpc .c-ar-hp { fill: url(#hpc-g-hp); stroke: none; }
#hpc .c-lbl { font: 600 13px var(--disp); letter-spacing: .06em; text-transform: uppercase; paint-order: stroke; stroke: #202127; stroke-width: 4px; stroke-linejoin: round; }
#hpc .c-lbl-tq { fill: #ff6a73; } #hpc .c-lbl-hp { fill: var(--cyan); text-anchor: end; }
#hpc .c-you { stroke: rgba(255,255,255,.55); stroke-width: 1.2; stroke-dasharray: 2 4; }
#hpc .c-dot-tq { fill: var(--red); stroke: #fff; stroke-width: 2.5; } #hpc .c-dot-hp { fill: var(--cyan); stroke: #fff; stroke-width: 2.5; }
#hpc .c-x-line { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 5 4; }
#hpc .c-x-dot { fill: var(--amber); stroke: #0b0b0e; stroke-width: 2.5; }
#hpc .c-pill { fill: #0b0b0e; stroke: var(--amber); stroke-width: 1.2; }
#hpc .c-pt { fill: var(--amber); font: 600 12px var(--disp); letter-spacing: .05em; text-transform: uppercase; text-anchor: middle; }
#hpc .hpc-key { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 8px; font: 500 13px/1.2 var(--disp); letter-spacing: .07em; text-transform: uppercase; color: var(--soft); }
#hpc .hpc-key i { display: inline-block; width: 18px; height: 4px; margin-right: 7px; vertical-align: middle; border-radius: 2px; }
#hpc .hpc-k-tq { background: var(--red); } #hpc .hpc-k-hp { background: var(--cyan); } #hpc .hpc-k-x { background: var(--amber); }
#hpc .hpc-key i.hpc-k-you { height: 10px; width: 10px; border-radius: 50%; background: #fff; }
#hpc .hpc-expl { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line2); font: 400 18px/1.45 var(--body); color: var(--text); }
#hpc .hpc-expl2 { margin-top: 6px; font: 400 16px/1.45 var(--body); color: var(--soft); }

/* wheel -> crank */
#hpc .hpc-mis { padding: 12px 16px; border-left: 4px solid var(--amber); background: rgba(255,176,32,.07); font: 400 16px/1.45 var(--body); color: var(--text); }
#hpc .hpc-fl { margin-top: 14px; }
#hpc .hpc-fnodes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; text-align: center; }
#hpc .hpc-fnode { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 1px; min-width: 0; animation: hpc-up .6s var(--ease) backwards; }
#hpc .hpc-fnode:nth-child(2) { animation-delay: .1s; } #hpc .hpc-fnode:nth-child(3) { animation-delay: .2s; } #hpc .hpc-fnode:nth-child(4) { animation-delay: .3s; }
#hpc .hpc-fv { font: 600 24px/1.1 var(--disp); letter-spacing: .01em; color: #fff; font-variant-numeric: tabular-nums; }
#hpc .hpc-fv0 { visibility: hidden; }
#hpc .hpc-fl-l { font: 500 13px/1.2 var(--disp); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
#hpc .hpc-fnode small { font: 400 12px/1.2 var(--body); color: var(--mute); }
#hpc .hpc-fbarw { height: 110px; margin: 10px 12.5% 0; animation: hpc-reveal 1.1s var(--ease) .2s backwards; }
#hpc .hpc-fbar { height: 100%; background: linear-gradient(90deg, #e11d2a, #ff5a3c 55%, #ffb020); transition: clip-path .8s var(--ease); }
#hpc .hpc-fnote { margin-top: 12px; font: 400 15px/1.4 var(--body); color: var(--soft); }

#hpc .hpc-note, #hpc .hpc-ns { margin-top: 14px; font: 400 14px/1.4 var(--body); color: var(--mute); }

/* entrance: CSS only, backwards fill, ends fully visible. A pane replays it each time it is shown. */
#hpc .hpc-head, #hpc .hpc-tabs { animation: hpc-up .6s var(--ease) backwards; }
#hpc .hpc-tabs { animation-delay: .06s; }
#hpc .hpc-pane > * { animation: hpc-up .55s var(--ease) backwards; }
#hpc .hpc-pane > :nth-child(2) { animation-delay: .05s; } #hpc .hpc-pane > :nth-child(3) { animation-delay: .1s; } #hpc .hpc-pane > :nth-child(4) { animation-delay: .15s; }
#hpc .hpc-pane > :nth-child(5) { animation-delay: .2s; } #hpc .hpc-pane > :nth-child(6) { animation-delay: .25s; } #hpc .hpc-pane > :nth-child(7) { animation-delay: .3s; }
#hpc .hpc-pane > :nth-child(n+8) { animation-delay: .34s; }
#hpc .hpc-grid > .hpc-c:nth-child(2) { animation-delay: .06s; } #hpc .hpc-grid > .hpc-c:nth-child(3) { animation-delay: .12s; } #hpc .hpc-grid > .hpc-c:nth-child(4) { animation-delay: .18s; }
#hpc .hpc-grid > .hpc-c:nth-child(5) { animation-delay: .24s; } #hpc .hpc-grid > .hpc-c:nth-child(n+6) { animation-delay: .3s; }
@keyframes hpc-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes hpc-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes hpc-fill { from { stroke-dashoffset: 1; } }
@keyframes hpc-sweep { from { transform: rotate(-90deg); } }
@keyframes hpc-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

@container (max-width: 640px) {
	#hpc .hpc-sctl { grid-template-columns: minmax(0, 1fr); gap: 6px; }
	#hpc .hpc-step { max-width: 240px; }
	#hpc .hpc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#hpc .hpc-vh { font-size: 28px; }
}
@container (max-width: 520px) {
	#hpc .hpc-title { font-size: 24px; }
	#hpc .hpc-vh { font-size: 24px; }
	#hpc .hpc-big { height: 64px; padding: 0 12px; }
	#hpc .hpc-big input { font-size: 34px; }
	#hpc .hpc-chart { height: 260px; }
	#hpc .hpc-chips button { padding: 10px 10px; font-size: 16px; }
	#hpc .hpc-seg button { font-size: 16px; }
	#hpc .hpc-card { padding-left: 14px; padding-right: 14px; }
	#hpc .hpc-tt { font-size: 15px; letter-spacing: .01em; white-space: nowrap; }
	#hpc .hpc-ts { font-size: 12px; }
	#hpc .hpc-tabs button { padding: 8px 2px; }
	#hpc .hpc-grid.hpc-g3 .hpc-n { font-size: 24px; }
	#hpc .hpc-grid.hpc-g3 .hpc-c { padding: 8px 8px 10px; }
	#hpc .hpc-grid.hpc-g3 .hpc-pk small { font-size: 12px; }
	#hpc .hpc-fv { font-size: 17px; }
	#hpc .hpc-fl-l { font-size: 11px; letter-spacing: .04em; }
	#hpc .hpc-gread .hpc-n { font-size: 36px; }
	#hpc .hpc-cap { font-size: 17px; }
}
/* phones: the tool runs edge to edge (the theme's article gutter is --pad) and drops one level of padding */
@media (max-width: 560px) {
	body:has(#hpc) .tg-arthead__standfirst { display: none; }
	#hpc { padding: 14px 10px 16px; }
	.tg-content #hpc { margin-left: calc(-1 * var(--pad, 20px)); margin-right: calc(-1 * var(--pad, 20px)); }
}
@media (prefers-reduced-motion: reduce) {
	#hpc *, #hpc *::before, #hpc *::after { animation: none !important; transition: none !important; }
}
