/*
 * The Black Friday profit calculator (`[profit-calculator]`, src/Editorial/ProfitCalculator.php).
 *
 * Every rule sits under .gv-pc, so nothing here reaches the theme, and the calculator states its own margins and
 * type sizes, so the article's rich-text rules (headings, paragraphs, lists) do not restyle it. That is what the
 * doubled `.gv-pc.gv-pc` is for: the theme's `.element-text.element-text--rte h3` is (0,2,1) and would beat a plain
 * `.gv-pc .gv-pc__h` (0,2,0) whichever sheet loads last. Colours and fonts
 * are the child theme's --gv-* tokens; the fallbacks are GVWS's values, for a page that has none.
 */
.gv-pc {
	--pc-accent: var(--gv-accent, #ff8b00);
	--pc-accent-ink: var(--gv-accent-ink, #111);
	--pc-bad: var(--gv-sale, #ba4444);
	--pc-ink: #111;
	--pc-soft: #595959;
	--pc-line: #dcdcdc;
	--pc-panel: #f5f5f5;
	--pc-head: var(--gv-font-head, Oswald, "Arial Narrow", sans-serif);
	container-type: inline-size;
	margin: 40px 0;
	color: var(--pc-ink);
	font-family: var(--gv-font-body, inherit);
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}
.gv-pc *, .gv-pc *::before, .gv-pc *::after { box-sizing: border-box; }
.gv-pc.gv-pc .gv-pc__title { margin: 0 0 8px; font-family: var(--pc-head); font-size: clamp(28px, 4vw, 38px); font-weight: 600; line-height: 1.1; text-transform: none; color: var(--pc-ink); }
.gv-pc.gv-pc .gv-pc__lede { margin: 0 0 24px; max-width: 64ch; color: var(--pc-soft); }
.gv-pc__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 20px; align-items: start; }
/* By the width of the article column it sits in, not the window: the same tag works in a narrow body and a wide one. */
@container (max-width: 720px) { .gv-pc__grid { grid-template-columns: minmax(0, 1fr); } }
.gv-pc__panel { display: flex; flex-direction: column; gap: 18px; min-width: 0; padding: 24px; background: var(--pc-panel); border: 1px solid var(--pc-panel); }
.gv-pc__panel--out { background: #fff; border-color: var(--pc-line); }
@container (max-width: 440px) { .gv-pc__panel { padding: 18px 16px; } }
.gv-pc.gv-pc .gv-pc__h { margin: 0; font-family: var(--pc-head); font-size: 22px; font-weight: 600; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; color: var(--pc-ink); }

.gv-pc__field { display: flex; flex-direction: column; gap: 6px; }
.gv-pc.gv-pc .gv-pc__label { margin: 0; font-size: 15px; font-weight: 500; color: var(--pc-ink); }
.gv-pc.gv-pc .gv-pc__hint { margin: 0; font-size: 13px; line-height: 1.4; color: var(--pc-soft); }
.gv-pc__input { display: flex; align-items: center; background: #fff; border: 1px solid #bdbdbd; }
.gv-pc__input:focus-within { border-color: var(--pc-ink); box-shadow: 0 0 0 2px var(--pc-accent); }
.gv-pc__input span { padding: 0 12px; font-weight: 500; color: var(--pc-soft); }
.gv-pc__input span:first-child { padding-right: 2px; }
.gv-pc.gv-pc .gv-pc__input input { flex: 1; width: 100%; min-width: 0; height: 46px; margin: 0; padding: 0 12px 0 4px; border: 0; border-radius: 0; background: transparent; box-shadow: none; color: var(--pc-ink); font: inherit; font-size: 18px; font-variant-numeric: tabular-nums; }
.gv-pc.gv-pc .gv-pc__input input:first-child { padding-left: 12px; }
.gv-pc.gv-pc .gv-pc__input input:focus { outline: none; }

.gv-pc__disc { display: flex; align-items: center; gap: 14px; }
/* The slider draws its own track and thumb: the theme resets `appearance` on inputs, which leaves a bare thumb. */
.gv-pc.gv-pc .gv-pc__disc input[type="range"] { flex: 1; min-width: 0; height: 28px; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; -webkit-appearance: none; appearance: none; cursor: pointer; }
.gv-pc__disc input[type="range"]::-webkit-slider-runnable-track { height: 6px; background: #c9c9c9; border-radius: 3px; }
.gv-pc__disc input[type="range"]::-moz-range-track { height: 6px; background: #c9c9c9; border-radius: 3px; }
.gv-pc__disc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; margin-top: -9px; border: 2px solid #fff; border-radius: 50%; background: var(--pc-accent); box-shadow: 0 0 0 1px var(--pc-ink); }
.gv-pc__disc input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border: 2px solid #fff; border-radius: 50%; background: var(--pc-accent); box-shadow: 0 0 0 1px var(--pc-ink); }
.gv-pc.gv-pc .gv-pc__disc output { min-width: 3.2ch; text-align: right; font-family: var(--pc-head); font-size: 30px; font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.gv-pc__quick { display: flex; flex-wrap: wrap; gap: 6px; }
.gv-pc.gv-pc .gv-pc__quick button { min-width: 52px; min-height: 36px; margin: 0; padding: 6px 12px; border: 1px solid #bdbdbd; border-radius: 0; background: #fff; color: var(--pc-ink); font: inherit; font-size: 14px; font-weight: 500; line-height: 1.2; cursor: pointer; }
.gv-pc.gv-pc .gv-pc__quick button:hover { border-color: var(--pc-ink); }
.gv-pc.gv-pc .gv-pc__quick button[aria-pressed="true"] { background: var(--pc-accent); border-color: var(--pc-accent); color: var(--pc-accent-ink); }
.gv-pc button:focus-visible, .gv-pc summary:focus-visible, .gv-pc input[type="range"]:focus-visible { outline: 2px solid var(--pc-ink); outline-offset: 2px; }

.gv-pc__more { padding-top: 16px; border-top: 1px solid var(--pc-line); }
.gv-pc.gv-pc .gv-pc__more summary { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 500; cursor: pointer; list-style: none; }
.gv-pc.gv-pc .gv-pc__more summary::-webkit-details-marker { display: none; }
.gv-pc.gv-pc .gv-pc__more summary::after { content: "+"; font-size: 22px; line-height: 1; }
.gv-pc__more[open] summary::after { content: "\2013"; }
.gv-pc__more .gv-pc__field { margin-top: 14px; }

.gv-pc__verdict { padding: 20px 22px; background: var(--pc-ink); color: #fff; }
.gv-pc__verdict.is-bad { background: var(--pc-bad); }
.gv-pc.gv-pc .gv-pc__big { margin: 0 0 8px; font-family: var(--pc-head); font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; line-height: 1.12; text-wrap: balance; color: #fff; }
.gv-pc.gv-pc .gv-pc__big em { font-style: normal; color: var(--pc-accent); white-space: nowrap; }
.gv-pc.gv-pc .gv-pc__sub { margin: 0; font-size: 15px; line-height: 1.5; color: #e6e6e6; }
.gv-pc__verdict.is-bad .gv-pc__sub { color: #fff; }

.gv-pc__bars { display: flex; flex-direction: column; gap: 8px; }
.gv-pc__bar { display: grid; grid-template-columns: 6.5em minmax(0, 1fr); gap: 10px; align-items: center; font-size: 14px; }
.gv-pc__track { height: 22px; background: #ececec; overflow: hidden; }
.gv-pc__fill { width: 0; height: 100%; background: var(--pc-ink); transition: width .3s ease; }
.gv-pc__fill--bf { background: var(--pc-accent); }
@media (prefers-reduced-motion: reduce) { .gv-pc__fill { transition: none; } }

.gv-pc.gv-pc .gv-pc__rows { margin: 0; padding: 0; }
.gv-pc__rows > div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 10px 0; border-bottom: 1px solid #ececec; }
.gv-pc__rows > div:last-child { border-bottom: 0; }
.gv-pc.gv-pc .gv-pc__rows dt { margin: 0; font-weight: 400; color: var(--pc-soft); }
.gv-pc.gv-pc .gv-pc__rows dd { margin: 0; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--pc-ink); }
.gv-pc.gv-pc .gv-pc__rows dd.is-neg { color: var(--pc-bad); }

.gv-pc.gv-pc .gv-pc__credit { margin: 0; padding-top: 14px; border-top: 1px solid var(--pc-line); font-size: 13px; line-height: 1.5; color: var(--pc-soft); }
.gv-pc.gv-pc .gv-pc__credit a { color: var(--pc-ink); text-decoration: underline; text-underline-offset: 3px; }
.gv-pc.gv-pc .gv-pc__note { margin: 14px 0 0; font-size: 13px; color: var(--pc-soft); }
