/*
Theme Name: Tankless Water Heater Guide
Template: aff-base
Description: Clean utility room for tankless-water-heater.com: copper orange, slate and white, with a cold-blue to hot-red flow cue, pipe runs and flow arrows.
Version: 1.0.0
*/

:root {
	--bg: #f4f6f8;
	--surface: #ffffff;
	--surface-2: #e8edf1;
	--ink: #1b2630;
	--ink-2: #3a4855;
	--muted: #5f6d79;
	--line: #d5dde4;
	--accent: #ad4e18;
	--accent-ink: #ffffff;
	--accent-soft: #f8eadf;
	--accent-2: #1f5673;
	--accent-2-ink: #ffffff;
	--good: #1f7a55;
	--bad: #b8321f;
	--radius: 12px;
	--radius-sm: 7px;
	--shadow: 0 1px 2px rgba(27, 38, 48, .05), 0 10px 26px rgba(27, 38, 48, .09);
	--font-display: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
	--display-weight: 700;
	--display-tracking: -0.022em;
	/* Site-only tokens */
	--copper: #b4531c;
	--copper-light: #e89a66;
	--copper-deep: #8a4517;
	--slate: #2a3947;
	--slate-deep: #1b2630;
	--cold: #2f8fe0;
	--cold-deep: #1f67a8;
	--cold-soft: #e9f3fb;
	--hot: #d8432e;
	--hot-deep: #b8321f;
	--hot-soft: #fbe9e5;
	/* Cold in, hot out: the flow cue used for rules, strips and bars */
	--flow: linear-gradient(90deg, #2f8fe0 0%, #7cc0ee 28%, #f6b04e 64%, #d8432e 100%);
	/* A copper pipe seen from the side (for horizontal runs) and from the end (for vertical runs) */
	--pipe: linear-gradient(180deg, #8a4517 0%, #c8703a 18%, #f6cfae 34%, #d98148 52%, #b4531c 78%, #7d3d15 100%);
	--pipe-v: linear-gradient(90deg, #8a4517 0%, #c8703a 18%, #f6cfae 34%, #d98148 52%, #b4531c 78%, #7d3d15 100%);
	/* Flow arrows and wall tile */
	--chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 8'%3E%3Cpath d='M11 1.2l3.4 2.8L11 6.8' fill='none' stroke='%23fff' stroke-opacity='.75' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	--chev2: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 20'%3E%3Cpath d='M3 3l8 7-8 7' fill='none' stroke='%232f8fe0' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M16 3l8 7-8 7' fill='none' stroke='%23d8432e' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
	--tile: linear-gradient(90deg, rgba(42, 57, 71, .07) 1px, transparent 1px), linear-gradient(rgba(42, 57, 71, .07) 1px, transparent 1px);
	--runs: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 120'%3E%3Cpath d='M0 30H70Q84 30 84 44V76Q84 90 98 90H240M0 90H30M150 30H240M150 30Q136 30 136 16V0M136 120V104' fill='none' stroke='%23fff' stroke-width='5'/%3E%3C/svg%3E");
	/* Amazon photos: a white tile wall behind the product */
	--photo-radius: 12px;
	--photo-frame: 8px;
	--photo-stage: linear-gradient(90deg, rgba(42, 57, 71, .13) 1px, transparent 1px), linear-gradient(rgba(42, 57, 71, .13) 1px, transparent 1px);
	--photo-stage-size: 18px 12px;
	--photo-stage-color: #eef2f5;
}

/* Sora runs wide: tighter headline sizes than the parent */
.hero__title { font-size: clamp(33px, 4.3vw, 54px); line-height: 1.1; }
.article__title, .silo-head h1 { font-size: clamp(29px, 3.9vw, 45px); line-height: 1.14; }
.prose h2 { font-size: clamp(24px, 2.4vw, 29px); }
.prose h3 { font-size: 21px; }
.section__head h2, .teaser__copy h2 { font-size: clamp(24px, 2.7vw, 31px); }
.kicker { font-weight: 700; letter-spacing: .13em; }

/* ---------- Buttons: squared, like equipment labels ---------- */
.btn { border-radius: var(--radius-sm); font-weight: 600; }
.btn--primary { background: linear-gradient(180deg, var(--copper), #9c430f); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), 0 6px 14px rgba(138, 69, 23, .22); }
.btn--ghost { border-color: var(--slate); color: var(--slate); background: var(--surface); }
.btn--ghost:hover { background: var(--slate); color: #fff; }

/* ---------- Header: white, with a copper pipe run along the bottom ---------- */
.site-header { background: #fff; backdrop-filter: none; border-bottom: 0; box-shadow: 0 6px 18px rgba(27, 38, 48, .07); }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 6px; background: var(--pipe); pointer-events: none; }
.site-header__inner { min-height: 70px; }
.brand__mark { width: 38px; height: 38px; }
.brand__name { font-size: 19px; }
.nav__list a { border-radius: var(--radius-sm); color: var(--ink-2); font-weight: 600; }
.nav__list a:hover, .nav__list .current-menu-item a { background: transparent; color: var(--ink); box-shadow: inset 0 -3px 0 var(--copper); }
.icon-btn, .nav-toggle { border-radius: var(--radius-sm); }
.progress { top: 100%; height: 6px; z-index: 1; }
.progress span { background: var(--flow); }
.site-search { top: calc(100% + 6px); }
@media (max-width: 1120px) {
	.nav { top: calc(100% + 6px); background: #fff; }
	.nav__list a:hover, .nav__list .current-menu-item a { box-shadow: inset 3px 0 0 var(--copper); }
}

/* ---------- Hero: a tiled wall, cold light on the left and warm on the right, a flow line underneath ---------- */
.hero { position: relative; overflow: hidden; padding: 70px 0 72px; border-bottom: 0; background:
	radial-gradient(620px 360px at 0% 100%, rgba(47, 143, 224, .13), transparent 70%),
	radial-gradient(760px 420px at 100% 0%, rgba(216, 67, 46, .1), transparent 68%),
	linear-gradient(180deg, #ffffff, var(--bg)); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--tile) 0 0 / 56px 28px;
	-webkit-mask-image: linear-gradient(105deg, #000 0%, transparent 46%, transparent 62%, #000 100%); mask-image: linear-gradient(105deg, #000 0%, transparent 46%, transparent 62%, #000 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: var(--chev) 0 50% / 28px 8px repeat-x, var(--flow); }
.hero__inner { position: relative; z-index: 1; }
@media (min-width: 901px) {
	.hero__inner { grid-template-columns: minmax(0, .94fr) minmax(0, 1.06fr); gap: 36px; }
	.hero__art { margin-right: -14px; }
}
.hero .kicker { display: inline-flex; align-items: center; gap: 10px; padding: 7px 13px 7px 11px; border-radius: 4px; background: var(--slate); color: #fff; }
.hero .kicker::before { content: ""; flex: none; width: 21px; height: 14px; background: var(--chev2) center / contain no-repeat; }
.hero__text { font-size: 18.5px; }
.hero__art { filter: drop-shadow(0 18px 26px rgba(27, 38, 48, .12)); }

.silo-head { position: relative; background: radial-gradient(700px 300px at 100% 0%, rgba(216, 67, 46, .08), transparent 70%), radial-gradient(520px 260px at 0% 100%, rgba(47, 143, 224, .1), transparent 70%), #fff; border-bottom: 0; }
.silo-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--flow); }
.silo-head__icon { width: 76px; height: 76px; padding: 15px; border-radius: 50%; background: #fff; color: var(--copper); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 5px var(--line), 0 0 0 3px var(--slate); }
.article__head { border-bottom: 0; background: #fff; box-shadow: inset 0 -4px 0 var(--surface-2); }

/* ---------- Section heads: a cold and a hot flow arrow ---------- */
.section__head h2 { display: flex; align-items: center; gap: 12px; }
.section__head h2::before { content: ""; flex: none; width: 27px; height: 18px; background: var(--chev2) center / contain no-repeat; }
.section__more { color: var(--accent); }

/* ---------- Silo tiles: a copper riser on the left, a gauge for the icon, flow that starts on hover ---------- */
.silos__grid { grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); gap: 16px; }
.silo { position: relative; overflow: hidden; padding: 22px 20px 22px 32px; border: 1.5px solid var(--line); }
.silo::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: var(--pipe-v); }
.silo::after { content: ""; position: absolute; left: 10px; right: 0; bottom: 0; height: 5px; background: var(--flow); transform: scaleX(0); transform-origin: 0 50%; transition: transform .35s ease; }
.silo:hover, .silo:focus-visible { border-color: var(--line); }
.silo:hover::after, .silo:focus-visible::after { transform: scaleX(1); }
.silo__icon { width: 66px; height: 66px; padding: 13px; margin-bottom: 12px; border-radius: 50%; background: #fff; color: var(--copper); box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4.5px var(--line), 0 0 0 3px var(--slate); }
.silo:nth-child(4n+2) .silo__icon { color: var(--hot-deep); }
.silo:nth-child(4n+3) .silo__icon { color: var(--cold-deep); }
.silo:nth-child(4n+4) .silo__icon { color: var(--slate); }
.silo__name { font-size: 18.5px; }

/* ---------- Cards ---------- */
.card__link { border-width: 1.5px; }
.card__link:hover { border-color: var(--copper-light); }
.card__icon { color: var(--slate); }
.card--money .card__icon { color: var(--copper); }
.card--tool .card__icon { color: var(--cold-deep); }
.card__title { font-size: 19px; }
.card--lg .card__title { font-size: 23px; }
.card--lg .card__link { background: var(--flow) 0 0 / 100% 5px no-repeat, linear-gradient(165deg, #eef4f8, #fff 58%); padding-top: 31px; }
.updates { border-top: 3px solid var(--slate); }

/* ---------- Tool teaser: a tiled wall panel under a pipe run ---------- */
.teaser__inner { position: relative; overflow: hidden; padding-top: 52px; border: 1.5px solid var(--line); border-radius: calc(var(--radius) * 1.5); background: var(--tile) 0 0 / 56px 28px, linear-gradient(180deg, #fff, #eef2f5); }
.teaser__inner::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--pipe); box-shadow: 0 3px 6px rgba(27, 38, 48, .16); }
.teaser__art svg { filter: drop-shadow(0 12px 20px rgba(27, 38, 48, .14)); }
.teaser__copy .kicker { color: var(--accent); }

/* ---------- Promise: cold, copper, hot ---------- */
.promise__item { border: 1.5px solid var(--line); border-top: 5px solid var(--cold); border-radius: var(--radius); }
.promise__item:nth-child(2) { border-top-color: var(--copper); }
.promise__item:nth-child(3) { border-top-color: var(--hot); }
.promise__item h3 { font-size: 18px; }

/* ---------- Quick picks: numbered pipe ends ---------- */
.quick-picks { counter-reset: pick; border-width: 1.5px; }
.quick-picks li { position: relative; padding-left: 68px; counter-increment: pick; }
.quick-picks li::before { content: counter(pick); position: absolute; left: 18px; top: 13px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; font: 700 15px/1 var(--font-display); color: var(--ink); background: #fff; border: 5px solid var(--copper); box-shadow: inset 0 0 0 1.5px var(--copper-deep), 0 0 0 1.5px var(--copper-deep); }
.quick-picks li:first-child::before { background: var(--slate); color: #fff; }
.quick-picks li strong { font-size: 17px; }

/* ---------- Product box: a flow strip on top, equipment-label badge ---------- */
.aff-product { position: relative; overflow: hidden; padding-top: 26px; border: 1.5px solid var(--line); }
.aff-product::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--flow); }
.aff-product__icon { border-radius: 50%; background: var(--surface-2); color: var(--slate); }
.aff-product__badge { border-radius: 4px; background: var(--slate); color: #fff; }
.aff-product__name { font-size: 17px; }
.aff-product__btn, .aff-cta__btn { border-radius: var(--radius-sm); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 5px 12px rgba(31, 86, 115, .22); }
.aff-cta { border-left: 0; padding-left: 28px; position: relative; overflow: hidden; border-radius: var(--radius); }
.aff-cta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--pipe-v); }
.aff-cta__label { color: var(--accent); }
.aff-pick:hover { border-color: var(--copper-light); }
.aff-sidepick:hover { border-color: var(--copper-light); }

/* ---------- Prose ---------- */
.prose th { background: var(--surface-2); box-shadow: inset 0 -2px 0 #c2ccd4; }
.prose blockquote { padding: 12px 18px; border-left: 5px solid var(--cold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--cold-soft); color: var(--ink); }
.prose li::marker { color: var(--copper); }
.faq summary { font-size: 18px; }
.trust { border-left: 8px solid var(--copper); }
.aff-tablefilter__bar input { border-radius: var(--radius-sm); }
.aff-toc li a.is-active { border-left-color: var(--copper); }
.aff-diagram { border-width: 1.5px; }

/* ---------- Footer: slate, pipe runs behind, a copper pipe on top ---------- */
.site-footer { position: relative; background: var(--slate-deep); color: #c9d4dc; padding-top: 68px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: var(--pipe); z-index: 1; }
.site-footer::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: var(--runs) 0 0 / 240px 120px; opacity: .045; }
.site-footer > * { position: relative; z-index: 1; }
.site-footer a:hover { color: #fff; }
.site-footer__title { color: var(--copper-light); }
.site-footer :focus-visible { outline-color: var(--copper-light); }

/* ==========================================================================
   Tools
   ========================================================================== */
.aff-tool:has(.agt-tk) { position: relative; overflow: hidden; padding-top: 30px; border-color: var(--line); }
.aff-tool:has(.agt-tk)::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 9px; background: var(--chev) 0 50% / 28px 7px repeat-x, var(--flow); }
.agt-tk__kicker { margin: 0 0 6px; font: 700 12px/1.2 var(--font-body); letter-spacing: .13em; text-transform: uppercase; color: var(--accent); }
.agt-tk h3 { margin: 0 0 8px; font-size: 22px; line-height: 1.22; }
.agt-tk__intro { margin: 0 0 6px; font-size: 15.5px; line-height: 1.55; color: var(--ink-2); }
.agt-tk__step { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; font: 700 16px/1.3 var(--font-display); letter-spacing: var(--display-tracking); color: var(--ink); }
.agt-tk__num { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; border: 4px solid var(--copper); background: #fff; font: 700 13px/1 var(--font-display); color: var(--ink); }
.agt-tk__hint, .agt-tk__field-note { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.agt-fieldlabel { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }

.agt-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.agt-chips button { min-height: 44px; padding: 8px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--bg); font: 600 14.5px/1.2 var(--font-body); color: var(--ink-2); cursor: pointer; }
.agt-chips button:hover { border-color: var(--slate); }
.agt-chips button[aria-pressed="true"] { background: var(--slate); border-color: var(--slate); color: #fff; }
.agt-chips button b { font-family: var(--font-display); font-weight: 700; }
.agt-chips--set { margin-bottom: 10px; }
.agt-chips--mini { gap: 6px; margin-top: 8px; }
.agt-chips--mini button { min-height: 44px; min-width: 56px; padding: 6px 10px; font-size: 14px; }

/* Fixture rows */
.prose .aff-tool ul.agt-fx, .agt-fx { margin: 0; padding: 0; list-style: none; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.prose .aff-tool .agt-fx__row, .agt-fx__row { display: grid; grid-template-columns: 34px minmax(0, 1fr) 132px 150px; gap: 12px; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); }
.agt-fx__row:first-child { border-top: 0; }
.agt-fx__row.is-on { background: linear-gradient(90deg, var(--cold-soft), #fff 46%, var(--hot-soft)); }
.agt-fx__icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--slate); }
.agt-fx__row.is-on .agt-fx__icon { background: var(--slate); color: #fff; }
.agt-fx__icon svg { width: 22px; height: 22px; }
.agt-fx__name { min-width: 0; }
.agt-fx__name b { display: block; font-size: 15.5px; line-height: 1.3; color: var(--ink); }
.agt-fx__name small { display: block; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.agt-stepper { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 0; }
.agt-stepper button { min-height: 44px; border: 1.5px solid var(--line); background: var(--bg); font: 700 20px/1 var(--font-body); color: var(--accent); cursor: pointer; }
.agt-stepper button:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); }
.agt-stepper button:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.agt-stepper button:hover { border-color: var(--copper); background: var(--accent-soft); }
.aff-tool .agt-stepper input:not([type="checkbox"]):not([type="radio"]):not([type="range"]) { border-left: 0; border-right: 0; border-radius: 0; padding: 0 2px; text-align: center; font-weight: 700; background: #fff; -moz-appearance: textfield; appearance: textfield; }
.agt-stepper input::-webkit-outer-spin-button, .agt-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.agt-fx__gpm { display: grid; grid-template-columns: 76px auto; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); white-space: nowrap; }
.aff-tool .agt-fx__gpm input:not([type="checkbox"]):not([type="radio"]):not([type="range"]) { padding: 0 8px; text-align: right; font-weight: 600; }

.agt-size__temps { margin-bottom: 0; }
.agt-size__eff { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 14px 20px; align-items: end; }
.agt-size__effbox label { margin-bottom: 6px; }

/* Results */
.agt-tk .aff-tool__result.agt-tk__result { margin-top: 22px; padding: 18px; background: var(--surface-2); box-shadow: inset 0 0 0 1px #cfd8df; }
.agt-tk__result:empty { display: none; }
.agt-flow { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; margin-bottom: 14px; }
.agt-flow__side { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.agt-flow__side--hot { text-align: right; }
.agt-flow__t { font: 700 22px/1.1 var(--font-display); letter-spacing: var(--display-tracking); }
.agt-flow__l { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.agt-flow__side i { display: block; height: 16px; margin-top: 6px; }
.agt-flow__side--cold .agt-flow__t { color: var(--cold-deep); }
.agt-flow__side--hot .agt-flow__t { color: var(--hot-deep); }
.agt-flow__side--cold i { border-radius: 4px 0 0 4px; background: var(--chev) 0 50% / 28px 8px repeat-x, linear-gradient(180deg, #8cc6f0, #2f8fe0 45%, #1f67a8); }
.agt-flow__side--hot i { border-radius: 0 4px 4px 0; background: var(--chev) 0 50% / 28px 8px repeat-x, linear-gradient(180deg, #f6a48f, #e0462e 45%, #a82f1e); }
.agt-flow__unit { display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 128px; padding: 14px 16px 12px; border: 2.5px solid var(--slate); border-top: 8px solid var(--copper); border-radius: 12px; background: #fff; box-shadow: 0 6px 14px rgba(27, 38, 48, .12); }
.agt-tk .agt-flow__unit strong { font: 700 25px/1.1 var(--font-display); letter-spacing: var(--display-tracking); color: var(--accent); }
.agt-flow__unit span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }

.agt-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.agt-stat { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 12px 13px 13px; border-radius: var(--radius-sm); background: #fff; box-shadow: inset 0 0 0 1px #cfd8df; border-top: 4px solid var(--slate); }
.agt-stat--flow { border-top-color: var(--cold); }
.agt-stat--rise { border-top-color: var(--copper); }
.agt-stat--gas { border-top-color: var(--hot); }
.agt-stat--elec { border-top-color: var(--accent-2); }
.agt-stat b { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.agt-tk .agt-stat strong { font-size: 20px; line-height: 1.2; letter-spacing: var(--display-tracking); }
.agt-stat span { font-size: 13px; line-height: 1.4; color: var(--ink-2); }
.agt-stat a { font-weight: 600; }

.prose .aff-tool ol.agt-math, .agt-math { margin: 14px 0 0; padding: 12px 14px; list-style: none; border-radius: var(--radius-sm); background: var(--slate-deep); color: #dbe4ea; font: 500 14px/1.6 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; overflow-wrap: anywhere; }
.agt-math li b { color: #fff; font-weight: 600; }
.agt-math li span { color: var(--copper-light); }
.agt-flag { margin: 12px 0 0; padding: 10px 14px; border-left: 5px solid var(--cold); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: #fff; font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.agt-flag--warn { border-left-color: var(--hot); }
.agt-flag--copper { border-left-color: var(--copper); }

.agt-tk__formulas { margin-top: 16px; padding: 14px 16px; border: 1.5px dashed #c2ccd4; border-radius: var(--radius-sm); font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.agt-tk__formulas-title { margin: 0 0 6px; font: 700 12px/1.2 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.prose .aff-tool .agt-tk__formulas ul, .agt-tk__formulas ul { margin: 0; padding: 0; list-style: none; }
.prose .aff-tool .agt-tk__formulas li, .agt-tk__formulas li { position: relative; margin: 3px 0; padding-left: 18px; }
.agt-tk__formulas li::before { content: ""; position: absolute; left: 0; top: .5em; width: 9px; height: 9px; background: var(--chev2) left center / auto 100% no-repeat; }
.agt-tk__formulas p { margin: 8px 0 0; font-size: 13.5px; color: var(--muted); }
.agt-tk__note { margin: 14px 0 0; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.agt-tk__source { margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.agt-tk__source b { color: var(--ink-2); }

/* Amp calculator */
.agt-amp .aff-tool__grid { margin-top: 16px; }
.agt-amp__volts { margin-bottom: 4px; }
.aff-tool label.agt-check { display: flex; align-items: center; gap: 10px; min-height: 44px; margin: 8px 0 0; font-size: 14.5px; font-weight: 600; color: var(--ink); cursor: pointer; }
.aff-tool label.agt-check[hidden] { display: none; }
.agt-check input { flex: none; width: 20px; height: 20px; margin: 0; accent-color: var(--copper); }
.agt-amp__big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 12px; }
.agt-tk .agt-amp__big strong { font: 700 44px/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); }
.agt-amp__big span { font-size: 15px; color: var(--ink-2); }
.agt-panel { margin: 0 0 14px; }
.agt-panel__track { position: relative; height: 26px; border-radius: 6px; background: #fff; box-shadow: inset 0 0 0 1.5px #b9c4cc; overflow: hidden; }
.agt-panel__fill { position: absolute; left: 0; top: 0; bottom: 0; min-width: 4px; background: var(--chev) 0 50% / 28px 8px repeat-x, linear-gradient(90deg, #f6b04e, #e0762e); }
.agt-panel--over .agt-panel__fill { background: var(--chev) 0 50% / 28px 8px repeat-x, linear-gradient(90deg, #e0762e, #d8432e); }
.agt-panel__cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; font-size: 13px; color: var(--ink-2); }
.agt-panel__cap b { color: var(--ink); }
.agt-models { margin-top: 14px; border-radius: var(--radius-sm); background: #fff; box-shadow: inset 0 0 0 1px #cfd8df; overflow: hidden; }
.agt-models__title { margin: 0; padding: 10px 14px; background: var(--slate); color: #fff; font: 600 13.5px/1.35 var(--font-body); }
.agt-models__scroll { overflow-x: auto; }
.prose .aff-tool .agt-models table, .agt-models table { width: 100%; min-width: 0; border-collapse: collapse; font-size: 14px; line-height: 1.4; }
.prose .aff-tool .agt-models th, .prose .aff-tool .agt-models td, .agt-models th, .agt-models td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose .aff-tool .agt-models th { background: var(--surface-2); box-shadow: none; font-size: 12.5px; }
.agt-models tr:last-child td { border-bottom: 0; }

@media (max-width: 760px) {
	.hero { padding: 44px 0 52px; }
	.aff-tool:has(.agt-tk) { padding-left: 16px; padding-right: 16px; }
	.prose .aff-tool .agt-fx__row, .agt-fx__row { grid-template-columns: 34px minmax(0, 1fr); gap: 8px 10px; padding: 12px 10px; }
	.agt-fx__row .agt-stepper { grid-column: 1 / -1; grid-row: 2; width: 150px; }
	.agt-fx__row .agt-fx__gpm { grid-column: 1 / -1; grid-row: 2; justify-self: end; }
	.agt-size__eff { grid-template-columns: 1fr; }
	.agt-chips--set button, .agt-size__eff .agt-chips button { flex: 1 1 auto; }
	.agt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.agt-tk .aff-tool__result.agt-tk__result { padding: 14px 12px; }
	.agt-flow__unit { min-width: 104px; padding: 12px 10px 10px; }
	.agt-tk .agt-flow__unit strong { font-size: 21px; }
	.agt-flow__t { font-size: 19px; }
	.agt-tk .agt-amp__big strong { font-size: 38px; }
	.prose .aff-tool .agt-models table, .prose .aff-tool .agt-models tbody, .prose .aff-tool .agt-models tr, .prose .aff-tool .agt-models td { display: block; width: 100%; }
	.prose .aff-tool .agt-models thead { display: none; }
	.prose .aff-tool .agt-models tr { padding: 10px 12px; border-bottom: 1px solid var(--line); }
	.prose .aff-tool .agt-models tr:last-child { border-bottom: 0; }
	.prose .aff-tool .agt-models td { padding: 2px 0; border: 0; }
	.prose .aff-tool .agt-models td[data-label]::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); }
	.prose .aff-tool .agt-models td:first-child { font-size: 15px; }
}
@media (max-width: 420px) {
	.agt-fx__row .agt-stepper { width: 132px; }
	.agt-fx__gpm { grid-template-columns: 68px auto; }
}
