/* Cost of Owning a Car Calculator. Everything is rooted on #ccc 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(#ccc) .tg-arthero, body:has(#ccc) .tg-ribbon { display: none; }
#ccc {
	--ink: #0f0f12; --ink2: #17171c; --ink3: #202127; --ink4: #17181d; --red: #e11d2a; --amber: #ffb020; --green: #35c46b;
	--line: rgba(255,255,255,.13); --line2: rgba(255,255,255,.07); --text: #f3f1ec; --soft: #b5b3ae; --mute: #9a9aa2;
	--disp: var(--font-display, Oswald, 'Arial Narrow', sans-serif); --body: var(--font-body, Spectral, Georgia, serif);
	--ease: cubic-bezier(.16,1,.3,1); --pay: #e8e6e0;
	/* one colour per cost line, in the validated categorical order (dataviz dark steps) */
	--c-dep: #3987e5; --c-fuel: #d95926; --c-ins: #199e70; --c-mnt: #c98500; --c-tire: #d55181; --c-fin: #84a31c; --c-fee: #9085e9; --c-park: #e66767;
	position: relative; isolation: isolate; overflow: hidden;
	margin: 20px 0 32px; padding: 14px 16px 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;
}
#ccc *, #ccc *::before, #ccc *::after { box-sizing: border-box; }
#ccc div, #ccc span, #ccc label, #ccc li, #ccc summary, #ccc dt, #ccc dd, #ccc output, #ccc th, #ccc td { font-size: inherit; line-height: inherit; color: inherit; }
#ccc ul, #ccc ol { margin: 0; padding: 0; list-style: none; }
#ccc li { margin: 0; padding: 0; list-style: none; }
#ccc li::marker { content: ''; } #ccc li::before { content: none; }
#ccc 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; text-shadow: none; }
#ccc button:disabled { cursor: not-allowed; }
#ccc input, #ccc select { margin: 0; font: inherit; color: inherit; box-shadow: none; }
#ccc label { margin: 0; display: inline; font-weight: inherit; }
#ccc dl, #ccc dt, #ccc dd, #ccc output { margin: 0; padding: 0; font-weight: inherit; }
#ccc a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; border: 0; box-shadow: none; background: none; }
#ccc a:hover { color: #ffd27a; }
#ccc b { font-weight: 600; color: inherit; }
#ccc i { font-style: normal; }
#ccc svg { display: block; }
#ccc [hidden] { display: none !important; }
#ccc table { margin: 0; width: 100%; border: 0; border-collapse: collapse; background: none; }
#ccc th, #ccc td { border: 0; background: none; padding: 8px 10px; }
#ccc button:focus-visible, #ccc input:focus-visible, #ccc select:focus-visible, #ccc summary:focus-visible, #ccc a:focus-visible, #ccc [role=tab]:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }
#ccc .ccc-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#ccc .ccc-ic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* shared bits */
#ccc .ccc-card { margin: 0 0 14px; padding: 16px; background: var(--ink3); border: 1px solid var(--line2); animation: ccc-up .6s var(--ease) backwards; animation-delay: calc(var(--d, 0) * 80ms); }
#ccc .ccc-h { font: 500 20px/1.15 var(--disp); letter-spacing: .06em; text-transform: uppercase; color: #fff; }
#ccc .ccc-h2 { margin: 18px 0 10px; font: 500 14px/1.2 var(--disp); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
#ccc .ccc-sub { margin-top: 4px; font: 400 15px/1.4 var(--body); color: var(--soft); }
#ccc .ccc-lb { display: block; margin: 0 0 5px; font: 500 13px/1.2 var(--disp); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
#ccc .ccc-note { margin-top: 5px; font: 400 14px/1.4 var(--body); color: var(--mute); }
#ccc .ccc-note:empty { display: none; }
#ccc .ccc-rst { display: inline; padding: 0; font: inherit; color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }
#ccc .ccc-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 14px; border: 1px solid var(--line); background: rgba(255,255,255,.04); font: 500 14px/1.1 var(--disp); letter-spacing: .08em; text-transform: uppercase; color: var(--text); transition: border-color .2s, background .2s, transform .2s var(--ease); }
#ccc .ccc-btn .ccc-ic { width: 18px; height: 18px; }
#ccc .ccc-btn:hover { border-color: var(--red); background: rgba(225,29,42,.16); transform: translateY(-2px); }
#ccc .ccc-btn-g { border-color: rgba(255,176,32,.55); }
#ccc .ccc-btn-q { min-height: 40px; }
#ccc .ccc-link { padding: 0; min-height: 0; font: 500 13px/1.3 var(--disp); letter-spacing: .08em; text-transform: uppercase; color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
#ccc .ccc-badge { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; background: var(--red); color: #fff; font: 600 15px/1 var(--disp); letter-spacing: .02em; }
#ccc .ccc-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 6px 12px; border: 1px solid var(--line); background: rgba(255,255,255,.05); font: 400 15px/1.3 var(--body); color: var(--soft); animation: ccc-pop .45s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 70ms); }
#ccc .ccc-chip b { font: 500 20px/1 var(--disp); letter-spacing: .02em; color: #fff; }
#ccc .ccc-chip-sw { border-color: rgba(255,176,32,.5); color: var(--text); }

/* top strip */
#ccc .ccc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; }
#ccc .ccc-brand { display: flex; align-items: center; gap: 12px; font: 500 14px/1 var(--disp); letter-spacing: .14em; text-transform: uppercase; color: var(--soft); }
#ccc .ccc-road { position: relative; display: block; width: 64px; height: 34px; overflow: hidden; }
#ccc .ccc-road::after { content: ''; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: repeating-linear-gradient(90deg, rgba(255,255,255,.5) 0 10px, transparent 10px 24px); }
#ccc .ccc-roadcar { position: absolute; left: 10px; bottom: 5px; width: 44px; height: 26px; color: #fff; stroke-width: 1.9; }
#ccc.is-calc .ccc-road::after { animation: ccc-road .5s linear infinite; }
#ccc.is-calc .ccc-roadcar { animation: ccc-bob .5s ease-in-out infinite; }
#ccc .ccc-calc { display: flex; align-items: center; gap: 8px; font: 500 12px/1 var(--disp); letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
#ccc .ccc-calc i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); transition: background .3s; }
#ccc.is-calc .ccc-calc i { background: var(--amber); animation: ccc-pulse .6s ease-in-out infinite; }

/* quick inputs */
#ccc .ccc-q { position: relative; z-index: 5; --d: 1; }
#ccc .ccc-carbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; }
#ccc .ccc-carbar:has(.ccc-cars[hidden]) { justify-content: flex-end; }
#ccc .ccc-cars { display: flex; flex-wrap: wrap; gap: 6px; }
#ccc .ccc-ct { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; max-width: 100%; padding: 5px 12px 5px 6px; border: 1px solid var(--line); background: rgba(0,0,0,.3); font: 500 14px/1.2 var(--disp); letter-spacing: .04em; color: var(--soft); transition: border-color .2s, background .2s; }
#ccc .ccc-ct .ccc-badge { background: #4a4b53; transition: background .2s; }
#ccc .ccc-ct[aria-pressed=true] { border-color: var(--red); color: #fff; background: rgba(225,29,42,.16); }
#ccc .ccc-ct[aria-pressed=true] .ccc-badge { background: var(--red); }
#ccc .ccc-ct-n { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; text-align: left; max-width: 28ch; }
#ccc .ccc-qh { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin-bottom: 10px; }
#ccc .ccc-qh .ccc-lb { margin: 0; font-size: 15px; color: #fff; }
#ccc .ccc-tabs, #ccc .ccc-sg2 { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line); background: rgba(0,0,0,.35); max-width: 100%; }
#ccc .ccc-tabs button, #ccc .ccc-sg2 button { min-height: 38px; padding: 8px 14px; font: 500 14px/1.1 var(--disp); letter-spacing: .06em; text-transform: uppercase; color: var(--soft); transition: background .2s, color .2s; }
#ccc .ccc-tabs button:hover:not(:disabled), #ccc .ccc-sg2 button:hover:not(:disabled) { color: #fff; }
#ccc .ccc-tabs button[aria-selected=true], #ccc .ccc-sg2 button[aria-pressed=true] { background: var(--red); color: #fff; }
#ccc .ccc-sg2 button:disabled { opacity: .35; }
#ccc .ccc-tabs button, #ccc .ccc-sg2 button { white-space: nowrap; }
#ccc .ccc-pts { display: flex; width: 100%; max-width: 440px; }
#ccc .ccc-pts button { flex: 1 1 0; padding: 8px 4px; }
#ccc .ccc-types { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
#ccc .ccc-type { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; min-height: 92px; padding: 10px 6px 9px; border: 1px solid var(--line2); background: #0a0b0d; font: 500 12.5px/1.15 var(--disp); letter-spacing: .07em; text-transform: uppercase; text-align: center; color: var(--soft); animation: ccc-pop .5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 40ms + .2s); transition: border-color .2s, background .2s, transform .25s var(--ease), color .2s; }
#ccc .ccc-type .ccc-ic { width: 62px; height: 36px; stroke-width: 1.7; transition: transform .35s var(--ease); }
#ccc .ccc-type:hover { border-color: rgba(255,255,255,.3); color: #fff; transform: translateY(-2px); }
#ccc .ccc-type:hover .ccc-ic { transform: translateX(2px); }
#ccc .ccc-type[aria-pressed=true] .ccc-ic { animation: ccc-nudge .55s var(--ease); }
#ccc .ccc-type[aria-pressed=true] { border-color: var(--red); background: rgba(225,29,42,.15); color: #fff; box-shadow: inset 0 -3px 0 var(--red); }
#ccc .ccc-ptrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
#ccc .ccc-ptrow .ccc-lb { margin: 0; }
#ccc .ccc-cbs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
#ccc .ccc-cb-box { position: relative; }
#ccc .ccc-cb input { width: 100%; height: 46px; padding: 0 36px 0 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 2px; background: #08090a; color: #fff; font: 500 17px/1 var(--disp); letter-spacing: .03em; outline: 0; transition: border-color .2s, box-shadow .2s; }
#ccc .ccc-cb input::placeholder { color: #6a6b73; opacity: 1; }
#ccc .ccc-cb input:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,29,42,.25); outline: 0; }
#ccc .ccc-cb input:disabled { opacity: .45; cursor: not-allowed; }
#ccc .ccc-cb-x { position: absolute; right: 2px; top: 2px; width: 38px; height: 42px; display: grid; place-items: center; color: var(--soft); }
#ccc .ccc-cb-x .ccc-ic { width: 16px; height: 16px; }
#ccc .ccc-cb-x:hover { color: #fff; }
#ccc .ccc-cb ul { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 3px); max-height: 264px; overflow: auto; background: #0b0b0e; border: 1px solid var(--red); box-shadow: 0 14px 32px rgba(0,0,0,.55); }
#ccc .ccc-cb li { padding: 11px 12px; font: 400 16px/1.25 var(--body); cursor: pointer; border-top: 1px solid var(--line2); }
#ccc .ccc-cb li:first-child { border-top: 0; }
#ccc .ccc-cb li small { display: block; margin-top: 2px; font: 400 13px/1.2 var(--body); color: var(--mute); }
#ccc .ccc-cb li[aria-selected=true], #ccc .ccc-cb li:hover { background: rgba(225,29,42,.22); }
#ccc .ccc-cb li.ccc-none { cursor: default; color: var(--mute); }
#ccc .ccc-xchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
#ccc .ccc-xchips .ccc-chip { font: 500 13px/1.3 var(--disp); letter-spacing: .05em; text-transform: uppercase; padding: 5px 10px; }
#ccc .ccc-xchips .ccc-chip b { font-size: 14px; color: var(--amber); font-weight: 500; }
#ccc .ccc-q2 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line2); }
#ccc .ccc-sel { position: relative; }
#ccc .ccc-sel select { width: 100%; height: 46px; padding: 0 38px 0 12px; border: 1px solid rgba(255,255,255,.22); border-radius: 2px; background: #08090a; color: #fff; font: 500 17px/1 var(--disp); letter-spacing: .03em; -webkit-appearance: none; appearance: none; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
#ccc .ccc-sel select:focus { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,29,42,.25); outline: 0; }
#ccc .ccc-sel option { background: #0b0b0e; color: #fff; }
#ccc .ccc-sel .ccc-ic { position: absolute; right: 12px; top: 14px; width: 18px; height: 18px; color: var(--soft); pointer-events: none; }
#ccc .ccc-lbrow { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 5px; }
#ccc .ccc-lbrow .ccc-lb { margin: 0; }
#ccc .ccc-mval { font: 500 22px/1 var(--disp); letter-spacing: .03em; color: #fff; }
#ccc .ccc-slw { position: relative; padding: 12px 0 6px; }
#ccc .ccc-range { display: block; width: 100%; height: 24px; margin: 0; padding: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; --p: 50%; }
#ccc .ccc-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)); }
#ccc .ccc-range::-moz-range-track { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--red) var(--p), rgba(255,255,255,.16) var(--p)); }
#ccc .ccc-range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border: 2px solid #fff; border-radius: 50%; background: var(--red); box-shadow: 0 2px 8px rgba(0,0,0,.5); transition: transform .15s; }
#ccc .ccc-range::-moz-range-thumb { width: 20px; height: 20px; border: 2px solid #fff; border-radius: 50%; background: var(--red); }
#ccc .ccc-range:active::-webkit-slider-thumb { transform: scale(1.18); }
#ccc .ccc-tick { position: absolute; top: 15px; left: calc(12px + (100% - 24px) * var(--f, .3)); width: 2px; height: 18px; margin-left: -1px; background: var(--amber); pointer-events: none; transition: left .5s var(--ease); }
#ccc .ccc-tick::after { content: 'average'; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); font: 500 11px/1 var(--disp); letter-spacing: .1em; text-transform: uppercase; color: var(--amber); }
#ccc .ccc-minote { margin-top: 16px; }

/* hero */
#ccc .ccc-hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 0 -16px 14px; padding: 22px 16px 22px 18px; border-left: 5px solid var(--red); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: linear-gradient(120deg, rgba(225,29,42,.2), rgba(225,29,42,0) 60%), #0b0b0e; animation: ccc-up .65s var(--ease) backwards; animation-delay: .16s; }
#ccc .ccc-kick { margin-bottom: 2px; font: 500 14px/1.3 var(--disp); letter-spacing: .12em; text-transform: uppercase; color: var(--soft); }
#ccc .ccc-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font: 600 clamp(58px, 17cqw, 104px)/1 var(--disp); letter-spacing: .01em; color: #fff; font-variant-numeric: tabular-nums; }
#ccc .ccc-per { font: 500 24px/1 var(--disp); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
#ccc .ccc-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
#ccc .ccc-hero .ccc-n { font-variant-numeric: tabular-nums; }
#ccc .ccc-hero-r { display: grid; gap: 20px; align-content: center; }
#ccc .ccc-bt { margin-bottom: 10px; font: 400 15px/1.4 var(--body); color: var(--text); }
#ccc .ccc-bar { position: relative; height: 10px; margin: 0 7px; background: linear-gradient(90deg, rgba(53,196,107,.55), rgba(255,255,255,.16) 50%, rgba(225,29,42,.6)); border-radius: 2px; }
#ccc .ccc-bavg { position: absolute; top: -7px; bottom: -7px; width: 2px; margin-left: -1px; background: #fff; }
#ccc .ccc-byou { position: absolute; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 3px solid #0b0b0e; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 2px var(--amber), 0 4px 12px rgba(0,0,0,.5); transition: left .8s var(--ease); }
#ccc .ccc-bl { position: relative; display: flex; justify-content: space-between; margin-top: 12px; font: 500 12px/1 var(--disp); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
#ccc .ccc-bmid { position: absolute; left: 50%; transform: translateX(-50%); color: var(--soft); }
#ccc .ccc-sp { display: flex; height: 16px; background: rgba(255,255,255,.06); overflow: hidden; }
#ccc .ccc-sp i { display: block; height: 100%; transition: width .8s var(--ease); animation: ccc-wipe 1s var(--ease) backwards .3s; }
#ccc .ccc-sp-pay { background: var(--pay); }
#ccc .ccc-sp-lose { background: var(--c-dep); box-shadow: inset 2px 0 0 #0b0b0e; }
#ccc .ccc-spl { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font: 400 15px/1.3 var(--body); color: var(--soft); }
#ccc .ccc-spl b { color: #fff; font: 500 17px/1 var(--disp); letter-spacing: .02em; }
#ccc .ccc-sw { display: inline-block; width: 12px; height: 12px; margin-right: 7px; vertical-align: -1px; }
#ccc .ccc-sw-pay { background: var(--pay); } #ccc .ccc-sw-lose { background: var(--c-dep); }

/* breakdown */
#ccc .ccc-two { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
#ccc .ccc-two > .ccc-card { margin-bottom: 0; }
#ccc .ccc-bd { --d: 3; } #ccc .ccc-keep { --d: 4; } #ccc .ccc-ft { --d: 5; } #ccc .ccc-cmp { --d: 6; }
#ccc .ccc-stack { height: 36px; margin: 14px 0 12px; background: rgba(255,255,255,.06); overflow: hidden; }
#ccc .ccc-stack-in { display: flex; height: 100%; animation: ccc-wipe 1.1s var(--ease) backwards .3s; }
#ccc .ccc-sg { display: block; flex: none; min-width: 0; height: 100%; background: var(--c); transition: width .8s var(--ease); cursor: default; }
#ccc .ccc-sg + .ccc-sg { box-shadow: inset 2px 0 0 var(--ink3); }
#ccc .ccc-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; }
#ccc .ccc-lg { display: inline-flex; align-items: center; gap: 7px; font: 400 14px/1.2 var(--body); color: var(--soft); }
#ccc .ccc-lg i { width: 12px; height: 12px; background: var(--c); flex: none; }
#ccc .ccc-rank { display: grid; gap: 8px; }
#ccc .ccc-row { position: relative; animation: ccc-up .55s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 60ms + .35s); }
#ccc .ccc-rank.is-moved .ccc-row { animation: none; }
#ccc .ccc-rb { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; column-gap: 12px; row-gap: 9px; align-items: center; width: 100%; padding: 12px 46px 12px 12px; text-align: left; background: var(--ink4); border: 1px solid var(--line2); border-left: 3px solid var(--c); transition: border-color .2s, background .2s, transform .25s var(--ease); }
#ccc .ccc-rb:hover { background: #1d1e24; border-color: rgba(255,255,255,.22); border-left-color: var(--c); transform: translateY(-1px); }
#ccc .ccc-ri { grid-row: 1 / 3; align-self: start; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: var(--c); background: color-mix(in srgb, var(--c) 20%, transparent); }
#ccc .ccc-ri .ccc-ic { width: 22px; height: 22px; }
#ccc .ccc-rt { display: contents; }
#ccc .ccc-rl { grid-column: 2; grid-row: 1; min-width: 0; display: block; font: 500 17px/1.2 var(--disp); letter-spacing: .04em; text-transform: uppercase; color: #fff; }
#ccc .ccc-rs { grid-column: 2 / 4; grid-row: 2; display: block; margin-top: -4px; font: 400 14px/1.35 var(--body); color: var(--soft); }
#ccc .ccc-rv2 { grid-column: 3; grid-row: 1; display: block; text-align: right; white-space: nowrap; }
#ccc .ccc-rv2 b { display: block; font: 500 22px/1.1 var(--disp); letter-spacing: .02em; color: #fff; }
#ccc .ccc-rv2 small { display: block; font: 400 13px/1.3 var(--body); color: var(--mute); }
#ccc .ccc-rbar { grid-column: 2 / 4; grid-row: 3; display: block; height: 6px; background: rgba(255,255,255,.07); overflow: hidden; }
#ccc .ccc-rbar i { display: block; height: 100%; background: var(--c); transition: width .8s var(--ease); transform-origin: left; animation: ccc-grow 1s var(--ease) backwards .5s; }
#ccc .ccc-tipb { position: absolute; right: 6px; top: 8px; display: grid; place-items: center; width: 32px; height: 32px; color: var(--mute); }
#ccc .ccc-tipb .ccc-ic { width: 20px; height: 20px; }
#ccc .ccc-tipb:hover, #ccc .ccc-tipb[aria-expanded=true] { color: #fff; }
#ccc .ccc-tip { position: absolute; z-index: 30; right: 6px; top: 44px; width: min(320px, calc(100% - 12px)); padding: 10px 12px; background: #0b0b0e; border: 1px solid var(--red); box-shadow: 0 14px 30px rgba(0,0,0,.6); font: 400 14px/1.4 var(--body); color: var(--text); animation: ccc-pop .25s var(--ease); }

/* keep it longer */
#ccc .ccc-keeph { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
#ccc .ccc-kstep { display: inline-flex; align-items: stretch; border: 1px solid rgba(255,255,255,.22); background: #08090a; }
#ccc .ccc-kstep button { width: 40px; height: 40px; font: 400 24px/1 var(--disp); color: var(--soft); transition: background .15s, color .15s; }
#ccc .ccc-kstep button:hover { background: rgba(225,29,42,.28); color: #fff; }
#ccc .ccc-kv { min-width: 96px; padding: 0 8px; font: 500 15px/1 var(--disp); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); }
#ccc .ccc-kv b { margin-right: 5px; font: 500 22px/1 var(--disp); color: #fff; }
#ccc .ccc-kv { display: flex; align-items: center; justify-content: center; }
#ccc .ccc-chartbox { position: relative; aspect-ratio: 640 / 270; margin: 12px 0 4px; }
#ccc .ccc-chart { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: pan-y; user-select: none; -webkit-user-select: none; overflow: visible; }
#ccc .ccc-gl { stroke: rgba(255,255,255,.09); stroke-width: 1; }
#ccc .ccc-ax { stroke: rgba(255,255,255,.3); stroke-width: 1; }
#ccc .ccc-gt { fill: var(--mute); font: 500 12px var(--disp); letter-spacing: .05em; }
#ccc .ccc-gt-u { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
#ccc .ccc-line { fill: none; stroke: var(--text); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; stroke-dasharray: 1; }
#ccc .ccc-dot { fill: var(--ink3); stroke: var(--text); stroke-width: 1.6; }
#ccc .ccc-sw-l { stroke: var(--amber); stroke-width: 1.5; stroke-dasharray: 4 4; }
#ccc .ccc-sw-c { fill: none; stroke: var(--amber); stroke-width: 2.2; }
#ccc .ccc-sw-t { fill: var(--amber); font: 500 12px var(--disp); letter-spacing: .1em; text-transform: uppercase; paint-order: stroke; stroke: var(--ink3); stroke-width: 4px; stroke-linejoin: round; }
#ccc .ccc-hd { cursor: grab; outline: none; }
#ccc .ccc-hd:active { cursor: grabbing; }
#ccc .ccc-hd-r { fill: rgba(225,29,42,.22); stroke: transparent; stroke-width: 2.5; transition: stroke .2s; }
#ccc .ccc-hd-c { fill: var(--red); stroke: #fff; stroke-width: 2.5; }
#ccc .ccc-hd:focus-visible .ccc-hd-r { stroke: var(--amber); }
#ccc .ccc-hd-t { fill: #fff; font: 600 15px var(--disp); letter-spacing: .03em; paint-order: stroke; stroke: var(--ink3); stroke-width: 5px; stroke-linejoin: round; }
#ccc .ccc-kt { margin-top: 10px; font: 400 17px/1.4 var(--body); color: var(--text); }
#ccc .ccc-kn { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
#ccc .ccc-ks { margin-top: 10px; font: 400 14px/1.4 var(--body); color: var(--mute); }
#ccc .ccc-ks:empty { display: none; }

/* fine-tune */
#ccc .ccc-ft { padding-bottom: 6px; }
#ccc .ccc-fth { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
#ccc .ccc-grp { border-top: 1px solid var(--line2); }
#ccc .ccc-gh { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 10px 6px; text-align: left; transition: background .2s; }
#ccc .ccc-gh:hover { background: rgba(255,255,255,.035); }
#ccc .ccc-gic { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: rgba(255,255,255,.07); color: var(--text); }
#ccc .ccc-gic .ccc-ic { width: 20px; height: 20px; }
#ccc .ccc-gn { flex: none; font: 500 17px/1.2 var(--disp); letter-spacing: .06em; text-transform: uppercase; color: #fff; }
#ccc .ccc-gs { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 14px/1.3 var(--body); color: var(--mute); text-align: right; }
#ccc .ccc-chev { width: 20px; height: 20px; color: var(--soft); transition: transform .4s var(--ease); }
#ccc .ccc-grp.is-open .ccc-chev { transform: rotate(180deg); }
#ccc .ccc-grp.is-open .ccc-gic { background: var(--red); }
#ccc .ccc-gb { display: grid; grid-template-rows: 0fr; visibility: hidden; transition: grid-template-rows .45s var(--ease), visibility 0s .45s; }
#ccc .ccc-grp.is-open > .ccc-gb { grid-template-rows: 1fr; visibility: visible; transition-delay: 0s; }
#ccc .ccc-gbi { min-height: 0; overflow: hidden; }
#ccc .ccc-fg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px 22px; padding: 8px 6px 20px; }
#ccc .ccc-f { min-width: 0; }
#ccc .ccc-in { display: flex; align-items: center; border: 1px solid rgba(255,255,255,.22); background: #08090a; transition: border-color .2s, box-shadow .2s; }
#ccc .ccc-in:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(225,29,42,.25); }
#ccc .ccc-in input { flex: 1 1 auto; min-width: 0; width: 100%; height: 46px; padding: 0 10px; border: 0; background: transparent; color: #fff; font: 500 20px/1 var(--disp); letter-spacing: .03em; outline: 0; -moz-appearance: textfield; appearance: textfield; }
#ccc .ccc-in input::placeholder { color: #70717a; opacity: 1; font-size: 17px; }
#ccc .ccc-in input::-webkit-outer-spin-button, #ccc .ccc-in input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#ccc .ccc-pre { padding-left: 12px; font: 500 18px/1 var(--disp); color: var(--mute); }
#ccc .ccc-pre + input { padding-left: 4px; }
#ccc .ccc-suf { padding-right: 12px; font: 500 13px/1 var(--disp); letter-spacing: .1em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
#ccc .ccc-rg { display: flex; align-items: center; gap: 14px; }
#ccc .ccc-rg .ccc-range { flex: 1 1 auto; }
#ccc .ccc-rv { flex: none; min-width: 64px; text-align: right; font: 500 20px/1 var(--disp); color: #fff; }
#ccc .ccc-f .ccc-sg2 { display: flex; }
#ccc .ccc-f .ccc-sg2 button { flex: 1 1 0; }
#ccc .ccc-fees { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 8px 6px 20px; }
#ccc .ccc-fees > .ccc-note { grid-column: 1 / -1; margin: 0; }
#ccc .ccc-fb { padding: 12px 14px; background: var(--ink4); border: 1px solid var(--line2); }
#ccc .ccc-fbh { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font: 500 14px/1.2 var(--disp); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); }
#ccc .ccc-fbh b { font: 500 22px/1 var(--disp); color: #fff; }
#ccc .ccc-dl { display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line2); font: 400 15px/1.3 var(--body); }
#ccc .ccc-dl dt { color: var(--soft); } #ccc .ccc-dl dd { text-align: right; color: #fff; font-variant-numeric: tabular-nums; }

/* compare */
#ccc .ccc-cmp-t { margin: 6px 0 14px; font: 400 16px/1.4 var(--body); color: var(--soft); }
#ccc .ccc-presets { display: flex; flex-wrap: wrap; gap: 8px; }
#ccc .ccc-cmp-b { margin-top: 18px; }
#ccc .ccc-cards { margin-top: 6px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
#ccc .ccc-cc { padding: 12px; background: var(--ink4); border: 1px solid var(--line2); border-top: 3px solid #4a4b53; transition: border-color .25s; animation: ccc-pop .5s var(--ease) backwards; }
#ccc .ccc-cc.is-act { border-top-color: var(--red); }
#ccc .ccc-cc-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
#ccc .ccc-cc-n { flex: 1 1 auto; min-width: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font: 500 16px/1.2 var(--disp); letter-spacing: .04em; text-transform: uppercase; color: #fff; }
#ccc .ccc-xb { display: grid; place-items: center; width: 34px; height: 34px; color: var(--soft); border: 1px solid var(--line2); transition: background .2s, color .2s; }
#ccc .ccc-xb .ccc-ic { width: 16px; height: 16px; }
#ccc .ccc-xb:hover { background: rgba(225,29,42,.3); color: #fff; }
#ccc .ccc-cc-g { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
#ccc .ccc-cc-l { display: block; min-width: 0; }
#ccc .ccc-cc .ccc-sel select { height: 42px; font-size: 15px; }
#ccc .ccc-cc .ccc-sel .ccc-ic { top: 12px; }
#ccc .ccc-cc .ccc-in input { height: 42px; font-size: 18px; }
#ccc .ccc-cc .ccc-sg2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
#ccc .ccc-cc .ccc-sg2:has(button:nth-child(3):not([hidden])):not(:has(button:nth-child(5):not([hidden]))) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#ccc .ccc-cc .ccc-sg2 button { padding: 7px 4px; font-size: 13px; letter-spacing: .03em; }
#ccc .ccc-cc .ccc-cc-l:nth-child(3) .ccc-sg2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#ccc .ccc-cc-f { display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line2); }
#ccc .ccc-cc-y { font: 500 18px/1 var(--disp); color: #fff; }
#ccc .ccc-cols { display: flex; gap: 10px; margin: 34px 0 6px; }
#ccc .ccc-col { flex: 1 1 0; min-width: 0; display: grid; grid-template-rows: 250px auto auto; }
#ccc .ccc-cb2 { position: relative; align-self: end; width: 100%; max-width: 150px; margin: 0 auto; height: 100%; transition: height .8s var(--ease); }
#ccc .ccc-cv { position: absolute; left: -20px; right: -20px; bottom: 100%; margin-bottom: 6px; text-align: center; font: 500 20px/1 var(--disp); letter-spacing: .02em; color: #fff; white-space: nowrap; }
#ccc .ccc-cs { display: flex; flex-direction: column-reverse; gap: 2px; height: 100%; transform-origin: bottom; animation: ccc-rise .9s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 100ms + .1s); }
#ccc .ccc-cseg { display: block; flex: 1 1 0; min-height: 0; background: var(--c); transition: flex-grow .8s var(--ease); cursor: default; }
#ccc .ccc-cs .ccc-cseg:first-child { border-radius: 0 0 2px 2px; }
#ccc .ccc-cl { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; font: 500 13px/1.2 var(--disp); letter-spacing: .04em; text-transform: uppercase; color: var(--text); text-align: left; }
#ccc .ccc-cl .ccc-badge { width: 24px; height: 24px; font-size: 13px; }
#ccc .ccc-cn { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; }
#ccc .ccc-cd { margin-top: 6px; text-align: center; font: 500 15px/1.2 var(--disp); letter-spacing: .05em; text-transform: uppercase; color: var(--soft); }
#ccc .ccc-col.is-best .ccc-cd { color: var(--green); }
#ccc .ccc-cmp-b .ccc-legend { justify-content: center; margin-top: 14px; }
#ccc .ccc-headline { margin-top: 18px; padding: 16px 16px 16px 18px; border-left: 5px solid var(--green); background: linear-gradient(90deg, rgba(53,196,107,.14), rgba(53,196,107,0) 80%), #0b0b0e; font: 500 clamp(19px, 4.6cqw, 26px)/1.25 var(--disp); letter-spacing: .02em; color: #fff; }
#ccc .ccc-be { margin-top: 10px; font: 400 16px/1.45 var(--body); color: var(--soft); }

/* actions, table, footer */
#ccc .ccc-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 4px 0 14px; }
#ccc .ccc-toast { margin-left: 4px; font: 500 14px/1 var(--disp); letter-spacing: .08em; text-transform: uppercase; color: var(--green); opacity: 0; transition: opacity .3s; }
#ccc .ccc-toast.is-on { opacity: 1; }
/* Theme .tg-content table rules paint tables white with light even rows; neutralize inside the tool. */
#ccc table { width: auto; margin: 0; border: 0; border-radius: 0; overflow: visible; background: transparent; border-collapse: collapse; font-size: inherit; }
#ccc table tr, #ccc table tbody tr:nth-child(even), #ccc table thead th { background: transparent; }
#ccc table th, #ccc table td { padding: 8px 10px; }
#ccc .ccc-tbl-w { min-width: 0; max-width: 100%; overflow: hidden; margin-bottom: 14px; border: 1px solid var(--line2); background: var(--ink4); }
#ccc .ccc-tbl-w summary { display: flex; align-items: center; min-height: 48px; padding: 8px 14px; cursor: pointer; font: 500 14px/1.3 var(--disp); letter-spacing: .1em; text-transform: uppercase; color: var(--soft); list-style: none; }
#ccc .ccc-tbl-w summary::-webkit-details-marker { display: none; }
#ccc .ccc-tbl-w summary::before { content: '+'; display: inline-block; width: 20px; color: var(--red); font-size: 18px; }
#ccc .ccc-tbl-w[open] summary::before { content: '\2212'; }
#ccc .ccc-tbl-s { max-width: 100%; overflow-x: auto; padding: 0 6px 10px; }
#ccc .ccc-tbl { min-width: 720px; font: 400 14px/1.3 var(--body); font-variant-numeric: tabular-nums; }
#ccc .ccc-tbl th { font: 500 12px/1.2 var(--disp); letter-spacing: .08em; text-transform: uppercase; color: var(--soft); text-align: right; border-bottom: 1px solid var(--line); }
#ccc .ccc-tbl td, #ccc .ccc-tbl tbody th { text-align: right; border-bottom: 1px solid var(--line2); color: var(--text); }
#ccc .ccc-tbl th:first-child { text-align: left; }
#ccc .ccc-foot { display: grid; gap: 4px; font: 400 14px/1.45 var(--body); color: var(--mute); }
#ccc .ccc-foot span:empty { display: none; }
#ccc .ccc-ns { padding: 8px 0; font-size: 14px; color: var(--mute); }
#ccc .ccc-pop { position: absolute; z-index: 40; max-width: 80%; padding: 6px 10px; background: #0b0b0e; border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(0,0,0,.5); pointer-events: none; font: 500 13px/1.3 var(--disp); letter-spacing: .05em; color: #fff; white-space: nowrap; }

/* motion */
@keyframes ccc-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ccc-pop { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
@keyframes ccc-wipe { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes ccc-grow { from { transform: scaleX(0); } to { transform: none; } }
@keyframes ccc-rise { from { transform: scaleY(0); } to { transform: none; } }
@keyframes ccc-nudge { from { transform: translateX(-7px); } to { transform: none; } }
@keyframes ccc-road { to { background-position-x: -24px; } }
@keyframes ccc-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }
@keyframes ccc-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
#ccc .ccc-road::after { background-size: 24px 2px; }
#ccc .ccc-big { animation: ccc-up .7s var(--ease) backwards .22s; }
#ccc .ccc-chips .ccc-chip:nth-child(1) { --i: 4; } #ccc .ccc-chips .ccc-chip:nth-child(2) { --i: 5; } #ccc .ccc-chips .ccc-chip:nth-child(3) { --i: 6; }

@container (min-width: 620px) {
	#ccc .ccc-cbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
	#ccc .ccc-q2 { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px; }
	#ccc .ccc-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; padding: 26px 24px 26px 24px; }
	#ccc .ccc-fg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#ccc .ccc-fees { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	#ccc .ccc-cards { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
	#ccc .ccc-card { padding: 20px; }
	#ccc .ccc-ft { padding-bottom: 8px; }
}
@container (min-width: 960px) {
	#ccc .ccc-two { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
	#ccc .ccc-keep { position: sticky; top: 12px; }
	#ccc { padding: 18px 24px 24px; }
	#ccc .ccc-hero { margin-left: -24px; margin-right: -24px; padding: 30px 32px; }
}
@container (max-width: 420px) {
	#ccc .ccc-tabs button { padding: 8px 10px; font-size: 13px; }
	#ccc .ccc-chartbox { aspect-ratio: 330 / 300; }
	#ccc .ccc-rb { padding-right: 40px; }
	#ccc .ccc-rv2 b { font-size: 20px; }
	#ccc .ccc-gn { font-size: 16px; }
	#ccc .ccc-gs { display: none; }
	#ccc .ccc-cols { gap: 6px; }
	#ccc .ccc-cl { flex-direction: column; gap: 4px; text-align: center; }
	#ccc .ccc-cv { font-size: 17px; left: -10px; right: -10px; }
}

@media (prefers-reduced-motion: reduce) {
	#ccc *, #ccc *::before, #ccc *::after { animation: none !important; transition: none !important; }
}

@media print {
	body:has(#ccc) * { box-shadow: none; }
	#ccc { overflow: visible; margin: 0; padding: 0; border-top: 0; background: #fff; color: #111; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	#ccc .ccc-q, #ccc .ccc-acts, #ccc .ccc-presets, #ccc .ccc-carbar, #ccc .ccc-tipb, #ccc .ccc-tip, #ccc .ccc-top, #ccc .ccc-kstep, #ccc .ccc-fth .ccc-btn, #ccc .ccc-xb, #ccc .ccc-link, #ccc .ccc-tbl-w summary, #ccc .ccc-chev, #ccc .ccc-pop, #ccc .ccc-cc-g, #ccc .ccc-cmp-t { display: none; }
	#ccc .ccc-card, #ccc .ccc-hero, #ccc .ccc-headline, #ccc .ccc-fb, #ccc .ccc-cc, #ccc .ccc-tbl-w, #ccc .ccc-rb { background: #fff; border: 1px solid #bbb; animation: none; }
	#ccc .ccc-hero { border-left: 5px solid #111; margin: 0 0 12px; padding: 14px; }
	#ccc *, #ccc .ccc-big, #ccc .ccc-h, #ccc .ccc-rl, #ccc .ccc-rv2 b, #ccc .ccc-gn, #ccc .ccc-lb { color: #111; }
	#ccc .ccc-soft, #ccc .ccc-rs, #ccc .ccc-note, #ccc .ccc-gs, #ccc .ccc-foot, #ccc .ccc-kick, #ccc .ccc-bt, #ccc .ccc-kt, #ccc .ccc-spl { color: #333; }
	#ccc .ccc-two { display: block; }
	#ccc .ccc-two > .ccc-card, #ccc .ccc-card { break-inside: avoid; margin-bottom: 10px; }
	#ccc .ccc-gb { grid-template-rows: 1fr; visibility: visible; }
	#ccc .ccc-fg input, #ccc .ccc-fg select { color: #111; }
	#ccc .ccc-line { stroke: #111; } #ccc .ccc-gt, #ccc .ccc-hd-t { fill: #111; stroke: none; } #ccc .ccc-dot { fill: #fff; stroke: #111; } #ccc .ccc-gl { stroke: #ddd; } #ccc .ccc-ax { stroke: #888; }
	#ccc .ccc-hd-c { fill: #111; } #ccc .ccc-hd-r { display: none; }
	#ccc .ccc-sw-t { fill: #7a5200; stroke: none; }
	#ccc .ccc-tbl-s { overflow: visible; } #ccc .ccc-tbl { min-width: 0; font-size: 11px; }
	#ccc .ccc-tbl th, #ccc .ccc-tbl td { color: #111; border-bottom: 1px solid #ccc; padding: 4px 5px; }
	#ccc .ccc-ri, #ccc .ccc-rbar, #ccc .ccc-stack { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	#ccc .ccc-cs, #ccc .ccc-stack-in { animation: none; }
}

/* Phones: let the tool run edge to edge (the theme's article gutter is --pad) and drop one level of padding,
   so the chips and numbers get the width instead of nested boxes. */
@media (max-width: 520px) {
	#ccc { padding: 12px 10px 16px; }
	.tg-content #ccc { margin-left: calc(-1 * var(--pad, 20px)); margin-right: calc(-1 * var(--pad, 20px)); }
	#ccc .ccc-card { padding: 12px; }
	#ccc .ccc-hero { margin-left: -10px; margin-right: -10px; padding-left: 12px; padding-right: 10px; }
}
