/* Car Gift Finder. Rooted on #cgf so it beats the theme's .tg-content a/img/ul rules with no !important. */
#cgf {
	--ink: #0f0f12; --ink2: #1a1a1f; --red: #e11d2a; --amber: #ffb020; --green: #35c46b;
	--line: rgba(255,255,255,.13); --text: #f3f1ec; --soft: #b5b3ae;
	--disp: var(--font-display, Oswald, 'Arial Narrow', sans-serif); --ui: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
	position: relative; isolation: isolate; overflow: hidden;
	display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px 32px;
	min-height: 500px; margin: 28px 0 32px; padding: 32px;
	border-radius: 2px; border-top: 3px solid var(--red); color: var(--text);
	background: radial-gradient(700px 360px at 92% -10%, rgba(225,29,42,.16), transparent 62%), linear-gradient(160deg, var(--ink2), var(--ink));
	font-family: var(--ui); font-size: 16px; line-height: 1.45;
}
#cgf *, #cgf *::before, #cgf *::after { box-sizing: border-box; }
#cgf p { margin: 0; font-size: inherit; line-height: inherit; color: inherit; }
#cgf ul { margin: 0; padding: 0; list-style: none; }
#cgf li { margin: 0; padding: 0; font-size: inherit; line-height: inherit; list-style: none; }
#cgf li::marker { content: ''; }
#cgf li::before { content: none; }
#cgf img { display: block; width: 100%; max-width: 100%; height: auto; margin: 0; border-radius: 0; box-shadow: none; }
#cgf a { text-decoration: none; border: 0; }
#cgf button { appearance: none; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; margin: 0; }
#cgf button:focus-visible, #cgf a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#cgf .cgf-question:focus, #cgf .cgf-name:focus { outline: none; }

/* Gauge */
#cgf .cgf-gauge { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; }
#cgf .cgf-tach { width: 100%; max-width: 190px; height: auto; display: block; }
.cgf-tach-face { fill: #111114; stroke: rgba(255,255,255,.16); stroke-width: 2; }
.cgf-tach-tick { stroke: #e9e7e2; stroke-width: 3; stroke-linecap: round; fill: none; }
.cgf-tach-tick.is-red { stroke: var(--red); }
.cgf-tach-red { stroke: var(--red); stroke-width: 7; fill: none; opacity: .9; }
.cgf-tach-num { fill: #e9e7e2; font-family: var(--disp); font-size: 15px; }
.cgf-tach-num.is-red { fill: #ff5a63; }
.cgf-tach-step { fill: var(--soft); font-family: var(--disp); font-size: 16px; letter-spacing: .08em; }
.cgf-needle { fill: var(--red); transform-origin: 100px 104px; transition: transform .6s linear(0,.16 6%,.56 14%,.92 23%,1.09 31%,1.13 37%,1.08 48%,.99 62%,1); }
.cgf-tach-hub { fill: #2a2a30; stroke: rgba(255,255,255,.3); stroke-width: 1.5; }
.cgf-leds { display: flex; gap: 8px; }
.cgf-leds i { width: 13px; height: 13px; border-radius: 50%; background: #2c2c33; transition: background .2s, box-shadow .2s; }
.cgf-leds i.is-on { background: var(--green); box-shadow: 0 0 10px rgba(53,196,107,.7); }
.cgf-leds i.is-amber { background: var(--amber); box-shadow: 0 0 10px rgba(255,176,32,.7); }
.cgf-leds i.is-red { background: var(--red); box-shadow: 0 0 10px rgba(225,29,42,.8); }
#cgf[data-state="finding"] .cgf-tach { animation: cgf-shake .12s linear infinite; }
@keyframes cgf-shake { 50% { transform: translateX(1px) rotate(.4deg); } }

/* Screens */
.cgf-stage { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.cgf-screen { width: 100%; }
#cgf .cgf-eyebrow { font-family: var(--disp); font-size: 14px; letter-spacing: .12em; text-transform: uppercase; color: #ff5a63; margin-bottom: 10px; }
#cgf .cgf-title { font-family: var(--disp); font-size: clamp(30px, 4.4vw, 42px); font-weight: 600; line-height: 1.12; color: #fff; margin-bottom: 14px; text-wrap: balance; }
#cgf .cgf-lede { font-size: 18px; color: var(--soft); margin-bottom: 24px; max-width: 44ch; }
#cgf .cgf-meta { font-size: 14px; color: var(--soft); margin-top: 12px; }
#cgf .cgf-start, #cgf a.cgf-cta { display: inline-block; padding: 14px 30px; border-radius: 2px; font-family: var(--disp); font-size: 17px; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--red); transition: background .15s, transform .15s; }
#cgf .cgf-start:hover, #cgf a.cgf-cta:hover { background: #b8151f; color: #fff; transform: translateY(-1px); }
#cgf .cgf-start:disabled { opacity: .6; cursor: default; }

.cgf-qtop { display: flex; align-items: center; justify-content: space-between; min-height: 36px; margin-bottom: 8px; }
#cgf .cgf-back { display: inline-flex; align-items: center; gap: 2px; min-height: 36px; padding: 0 10px 0 0; color: var(--soft); font-size: 15px; }
#cgf .cgf-back:hover { color: #fff; }
.cgf-count { font-size: 14px; color: var(--soft); }
#cgf .cgf-question { font-family: var(--disp); font-size: clamp(25px, 3.4vw, 32px); font-weight: 500; line-height: 1.18; color: #fff; margin-bottom: 4px; text-wrap: balance; }
#cgf .cgf-hint { color: var(--soft); margin-bottom: 18px; }
.cgf-ico { width: 24px; height: 24px; flex: none; display: block; }

.cgf-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#cgf .cgf-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 11px 13px; text-align: left; border-radius: 2px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, box-shadow .15s; }
#cgf .cgf-opt.is-wide { grid-column: 1 / -1; min-height: 54px; }
@media (hover: hover) { #cgf .cgf-opt:hover { background: rgba(255,255,255,.11); box-shadow: inset 0 0 0 2px var(--red); } }
#cgf .cgf-opt[aria-pressed="true"] { background: rgba(225,29,42,.2); box-shadow: inset 0 0 0 2px var(--red); }
.cgf-opt-ico { display: grid; place-items: center; width: 38px; height: 38px; flex: none; color: #ff7a82; background: rgba(255,255,255,.07); border-radius: 2px; }
.cgf-opt-text { display: flex; flex-direction: column; min-width: 0; }
.cgf-opt-label { font-weight: 600; color: #fff; line-height: 1.24; }
.cgf-opt-sub { font-size: 14px; color: var(--soft); line-height: 1.25; margin-top: 2px; }

/* Result */
#cgf[data-state="result"] { grid-template-columns: minmax(0, 1fr); min-height: 0; }
#cgf[data-state="result"] .cgf-gauge { display: none; }
#cgf[data-state="result"] .cgf-stage { justify-content: flex-start; }
.cgf-top { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
#cgf .cgf-top-img { background: #fff; padding: 12px; border-radius: 2px; }
#cgf .cgf-top-img img { aspect-ratio: 1; object-fit: contain; }
#cgf .cgf-imglink { display: block; }
#cgf .cgf-name { font-family: var(--disp); font-size: clamp(24px, 3vw, 29px); font-weight: 500; line-height: 1.16; color: #fff; margin-bottom: 8px; }
#cgf .cgf-why-text { margin-bottom: 10px; color: var(--text); }
#cgf .cgf-why li { display: flex; gap: 8px; margin-bottom: 6px; align-items: flex-start; color: var(--text); }
#cgf .cgf-why .cgf-ico { width: 18px; height: 18px; margin-top: 3px; color: var(--green); }
#cgf .cgf-note { font-size: 15px; color: #ffd28a; margin-top: 8px; }
#cgf .cgf-note b { font-weight: 700; }
#cgf a.cgf-cta { margin-top: 14px; }
#cgf .cgf-also { font-family: var(--disp); font-size: 18px; color: #fff; margin: 26px 0 10px; }
.cgf-alts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.cgf-alt { display: flex; gap: 11px; padding: 10px; border-radius: 2px; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--line); }
#cgf .cgf-alt-img { display: block; flex: none; width: 56px; height: 56px; padding: 4px; background: #fff; border-radius: 2px; }
#cgf .cgf-alt-img img { width: 100%; height: 100%; object-fit: contain; }
#cgf .cgf-alt-name { font-weight: 600; color: #fff; line-height: 1.2; font-size: 15px; }
#cgf .cgf-alt-best { font-size: 13px; color: var(--soft); margin: 2px 0 4px; line-height: 1.3; }
#cgf a.cgf-alt-link { font-size: 14px; font-weight: 600; color: #ff7a82; white-space: nowrap; }
.cgf-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 18px; }
#cgf .cgf-again { font-weight: 600; color: #fff; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
#cgf p.cgf-disclosure { font-size: 12px; color: var(--soft); border: 0; padding: 0; margin: 0; }
.cgf-noscript { grid-column: 1 / -1; color: var(--soft); }

@media (max-width: 760px) {
	.cgf-alts { grid-template-columns: minmax(0, 1fr); }
	.cgf-top { grid-template-columns: 180px minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 640px) {
	#cgf { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 620px; margin-left: 0; margin-right: 0; padding: 16px; gap: 4px; }
	#cgf .cgf-gauge { flex-direction: row; justify-content: flex-start; gap: 12px; }
	#cgf .cgf-tach { width: 62px; }
	.cgf-tach-num, .cgf-tach-step { display: none; }
	#cgf .cgf-leds { flex: 1; }
	#cgf .cgf-leds i { flex: 1; height: 6px; border-radius: 2px; width: auto; }
	#cgf .cgf-stage { justify-content: flex-start; padding-top: 8px; }
	#cgf[data-state="intro"] { min-height: 0; }
	.cgf-options { grid-template-columns: minmax(0, 1fr); gap: 8px; }
	#cgf .cgf-opt { min-height: 56px; padding: 8px 11px; }
	.cgf-opt-ico { width: 34px; height: 34px; }
	.cgf-top { grid-template-columns: minmax(0, 1fr); }
	#cgf .cgf-top-img { max-width: 220px; }
	#cgf a.cgf-cta { display: block; text-align: center; }
	#cgf[data-state="result"] { grid-template-rows: auto; }
}
@media (prefers-reduced-motion: reduce) {
	.cgf-needle { transition: none; }
	#cgf[data-state="finding"] .cgf-tach { animation: none; }
}

/* Static article cards and disclosure, outside #cgf */
.tg-content .cgf-card { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 22px; align-items: start; margin: 26px 0; padding: 22px; background: #fff; border: 1px solid #e7e1d6; border-radius: 2px; }
.tg-content .cgf-card img { display: block; width: 100%; height: 200px; object-fit: contain; margin: 0; border-radius: 2px; box-shadow: none; }
.tg-content .cgf-card p { margin: 0 0 8px; font-size: 17px; line-height: 1.58; }
.tg-content .cgf-card p.cgf-card-label { font-family: var(--font-display, Oswald, sans-serif); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #e11d2a; margin-bottom: 6px; }
.tg-content .cgf-card h3.cgf-card-name { margin: 0 0 8px; font-size: 22px; line-height: 1.22; }
.tg-content .cgf-card p.cgf-card-note { font-size: 15px; color: #6b6b72; }
.tg-content .cgf-card p.cgf-card-facts { font-size: 14px; color: #6b6b72; margin-bottom: 12px; }
.tg-content .cgf-card a.cgf-card-cta { display: inline-block; padding: 11px 18px; background: #e11d2a; color: #fff; text-decoration: none; font-family: var(--font-display, Oswald, sans-serif); font-size: 14px; letter-spacing: .08em; text-transform: uppercase; border-radius: 2px; }
.tg-content .cgf-card a.cgf-card-cta:hover { background: #b8151f; color: #fff; }
.tg-content p.cgf-disclosure { font-size: 15px; color: #6b6b72; border-left: 3px solid #e11d2a; padding: 4px 0 4px 14px; margin: 0 0 22px; }
@media (max-width: 640px) {
	.tg-content .cgf-card { grid-template-columns: 1fr; gap: 12px; padding: 16px; }
	.tg-content .cgf-card img { height: 200px; }
}
.tg-single .tg-article__body > .tg-content > p.cgf-disclosure::first-letter { float: none; font: inherit; color: inherit; padding: 0; }
