/* Funnel block: design A (mockups/A/funnel.html). Theme presets first, mock-up values as fallbacks. */
.thg-funnel{
	--thgf-ink:var(--wp--preset--color--ink,#17212B);
	--thgf-muted:var(--wp--preset--color--muted,#46525E);
	--thgf-brand:var(--wp--preset--color--brand,#0B5C63);
	--thgf-brand-dark:var(--wp--preset--color--brand-dark,#08444A);
	--thgf-panel:var(--wp--preset--color--mist,#E4EFEE);
	--thgf-action:var(--wp--preset--color--action,#C2410C);
	--thgf-action-hover:var(--wp--preset--color--action-hover,#A8380A);
	--thgf-line:var(--wp--preset--color--line,#D5E0DE);
	--thgf-edge:var(--wp--preset--color--control-border,#5F7472); /* control edges: 4.97:1 on white (WCAG 1.4.11 needs 3:1) */
	--thgf-error:var(--wp--preset--color--error,#B42318);
	--thgf-head:var(--wp--preset--font-family--heading,"Source Serif 4",Georgia,serif);
	box-sizing:border-box;margin:1.5rem 0;padding:24px 20px;background:var(--wp--preset--color--white,#fff);color:var(--thgf-ink);border-radius:14px;box-shadow:0 1px 0 var(--thgf-line),0 8px 24px rgba(23,33,43,.08);font-size:1.125rem;line-height:1.5;text-align:left
}
.thg-funnel *,.thg-funnel *::before,.thg-funnel *::after{box-sizing:border-box}
@media(min-width:600px){.thg-funnel{padding:28px}}
/* Reserve room so swapping screens on load (hand-off resume) does not push the page down. */
.thg-funnel--full .thg-funnel__form,.thg-funnel--tool .thg-funnel__form{min-height:26rem}
.thg-funnel__title{font-family:var(--thgf-head);font-weight:600;font-size:1.6rem;line-height:1.2;margin:0 0 12px}
.thg-funnel__form{margin:0}
.thg-funnel__top{display:flex;flex-direction:column;gap:4px}
.thg-funnel__back{display:inline-flex;align-items:center;align-self:flex-start;min-height:48px;padding:0 14px 0 6px;margin-left:-6px;font-weight:600;font-size:1.0625rem;color:var(--thgf-brand);text-decoration:underline;text-underline-offset:.15em}
.thg-funnel__back[hidden]{display:none}
.thg-funnel__meta{display:flex;align-items:center;gap:12px;margin:0 0 6px;min-height:1.5em;font-size:.9375rem;font-weight:600;color:var(--thgf-muted)}
.thg-funnel__pos{flex:none;min-width:8.5em}
.thg-funnel__bar{flex:1;height:10px;background:var(--thgf-panel);border:1px solid var(--thgf-edge);border-radius:5px;overflow:hidden}
.thg-funnel__bar i{display:block;width:100%;height:100%;background:var(--thgf-brand);transform-origin:left;transition:transform .2s}
.thg-funnel__screen{border:0;margin:0;padding:0;min-width:0}
.thg-funnel__screen[hidden]{display:none}
.thg-fstep{border:0;margin:14px 0 18px;padding:0;min-width:0}
.thg-fstep__q{padding:0;margin:0 0 12px;display:block;width:100%}
.thg-fstep__h{font-family:var(--thgf-head);font-weight:600;font-size:1.6rem;line-height:1.2;margin:0 0 12px;color:var(--thgf-ink)}
.thg-fstep__h:focus{outline:none}
.thg-fstep__h:focus-visible{outline:3px solid var(--thgf-ink);outline-offset:4px}
.thg-fstep__h label{cursor:pointer}
.thg-fstep+.thg-fstep .thg-fstep__h{font-family:inherit;font-weight:700;font-size:1.125rem}
.thg-fstep__opt{font-family:inherit;font-weight:400;font-size:1rem;color:var(--thgf-muted)}
.thg-fstep__hint{font-size:.9375rem;color:var(--thgf-muted);margin:0 0 10px}
.thg-field{margin:0 0 18px}
.thg-field>label{display:block;font-weight:700;margin:0 0 6px}
.thg-input{display:block;width:100%;min-height:56px;padding:0 16px;border:2px solid var(--thgf-ink);border-radius:8px;background:#fff;color:var(--thgf-ink);font:inherit;font-size:1.125rem}
.thg-input:focus{outline:3px solid var(--thgf-brand);outline-offset:2px}
.thg-field__error{margin:0 0 8px;color:var(--thgf-error);font-weight:700}
.thg-field__error[hidden]{display:none}
.thg-field--error>.thg-input,.thg-field--error .thg-input{border-color:var(--thgf-error);border-width:3px}
.thg-field--error .thg-card{border-color:var(--thgf-error)}
.thg-cards{display:grid;gap:12px;grid-template-columns:minmax(0,1fr)}
@media(min-width:340px){.thg-cards--2{grid-template-columns:repeat(2,minmax(0,1fr))}}
.thg-card{position:relative;display:flex;align-items:center;gap:12px;min-height:64px;padding:10px 14px;border:2px solid var(--thgf-edge);border-radius:8px;background:#fff;font-weight:600;line-height:1.25;cursor:pointer}
.thg-card input{position:absolute;inset:0;width:100%;height:100%;opacity:0;margin:0;cursor:pointer}
.thg-card__ico{flex:none;width:36px;height:36px;color:var(--thgf-brand)}
.thg-card__label{flex:1;min-width:0;overflow-wrap:break-word;hyphens:auto}
/* Icon cards in two columns: icon and tick share the top row and the label gets the full card
   width below, so long labels ("Air conditioning") fit at 320-360px inside the card. */
.thg-cards--2 .thg-card:has(.thg-card__ico){display:grid;grid-template-columns:1fr auto;grid-template-areas:"ico tick" "label label";align-items:center;gap:4px 8px;padding:8px 10px;line-height:1.2}
.thg-cards--2 .thg-card:has(.thg-card__ico) .thg-card__ico{grid-area:ico;width:28px;height:28px}
.thg-cards--2 .thg-card:has(.thg-card__ico) .thg-card__label{grid-area:label}
.thg-cards--2 .thg-card:has(.thg-card__ico) .thg-card__tick{grid-area:tick}
.thg-card__tick{flex:none;width:22px;height:22px;border-radius:50%;border:2px solid var(--thgf-edge)}
.thg-card:hover{border-color:var(--thgf-brand)}
.thg-card:has(input:checked){border-color:var(--thgf-brand);background:var(--thgf-panel);box-shadow:inset 0 0 0 2px var(--thgf-brand)}
.thg-card:has(input:checked) .thg-card__tick{background:var(--thgf-brand);border-color:var(--thgf-brand);box-shadow:inset 0 0 0 4px #fff}
.thg-card:has(input:focus-visible){outline:3px solid var(--thgf-ink);outline-offset:3px}
.thg-btn{display:inline-flex;align-items:center;justify-content:center;gap:.5em;min-height:56px;padding:0 28px;border:0;border-radius:8px;background:var(--thgf-action);color:#fff;font:inherit;font-weight:700;font-size:1.125rem;line-height:1.2;text-align:center;text-decoration:none;cursor:pointer;transition:background .15s}
.thg-btn:hover,.thg-btn:focus-visible{background:var(--thgf-action-hover);color:#fff}
.thg-btn:focus-visible{outline:3px solid var(--thgf-ink);outline-offset:3px}
.thg-btn[disabled]{opacity:.7;cursor:progress}
.thg-btn[hidden]{display:none}
.thg-btn--block{width:100%}
.thg-funnel__actions{margin:18px 0 0}
.thg-funnel__tap{margin:12px 0 0}
.thg-funnel__errors{border:3px solid var(--thgf-error);border-radius:8px;padding:14px 16px;margin:8px 0 14px}
.thg-funnel__errors[hidden]{display:none}
.thg-funnel__errors:focus{outline:3px solid var(--thgf-ink);outline-offset:3px}
.thg-funnel__errors-title{margin:0 0 6px;font-weight:700}
.thg-funnel__errors ul{margin:0;padding-left:1.2em}
.thg-funnel__errors a{color:var(--thgf-error);font-weight:700}
.thg-funnel__fine{font-size:.9375rem;color:var(--thgf-muted);margin:12px 0 0}
.thg-funnel a:not(.thg-btn){color:var(--thgf-brand);text-decoration:underline;text-underline-offset:.15em}
.thg-funnel__notice{background:var(--thgf-panel);border-left:6px solid var(--thgf-brand);padding:12px 16px;border-radius:0 8px 8px 0}
.thg-funnel__carried{margin:0 0 16px}
/* Result */
.thg-result{min-height:12rem}
.thg-result__loading{color:var(--thgf-muted)}
.thg-result__card{background:var(--thgf-panel);border-radius:14px;padding:20px;margin:6px 0 18px}
.thg-result__stamp-wrap{margin:0}
.thg-result__stamp{display:inline-block;border:2px solid var(--thgf-brand-dark);color:var(--thgf-brand-dark);font-weight:700;font-size:.9375rem;padding:3px 10px;border-radius:8px}
.thg-result__price{font-family:var(--thgf-head);font-weight:600;font-size:2.2rem;line-height:1.1;color:var(--thgf-brand-dark);margin:.2em 0}
.thg-result__unit{font-size:1.125rem}
.thg-result__headline{font-family:var(--thgf-head);font-weight:600;font-size:1.5rem;line-height:1.2;color:var(--thgf-brand-dark);margin:0 0 10px}
.thg-result__grant,.thg-result__dated,.thg-result__placeholder{margin:6px 0 0}
.thg-result__placeholder{font-style:italic}
.thg-result__reasons,.thg-result__assume,.thg-result__notes{margin:0 0 1em;padding-left:1.2em;font-size:1.0625rem}
.thg-result__reasons li,.thg-result__assume li,.thg-result__notes li{margin:0 0 .35em}
.thg-result__call a{display:inline-block;min-height:44px;padding:.5em 0;font-weight:700;font-size:1.1875rem}
.thg-result__sub{font-family:var(--thgf-head);font-weight:600;font-size:1.25rem;margin:0 0 8px}
.thg-result__next{margin:18px 0 0}
/* Panels: opening soon, reminders, consent placeholder */
.thg-panel{border:2px solid var(--thgf-brand);border-radius:14px;padding:18px;margin:18px 0 0;background:#fff}
.thg-panel__title{font-family:var(--thgf-head);font-weight:600;font-size:1.3rem;margin:0 0 8px}
.thg-panel__status{min-height:1.5em;margin:10px 0 0;font-weight:600}
.thg-check{display:flex;align-items:flex-start;gap:12px;min-height:48px;padding:10px 0;font-size:1.0625rem;cursor:pointer}
.thg-check input{flex:none;width:28px;height:28px;margin:0;accent-color:var(--thgf-brand)}
.thg-consent--placeholder{border:3px dashed var(--thgf-ink);border-radius:8px;padding:16px;margin:18px 0}
/* Turnstile: reserve the managed widget's height so it cannot shift the button. */
.thg-funnel__turnstile{min-height:65px;margin:12px 0}
.thg-hp{position:absolute!important;left:-10000px;width:1px;height:1px;overflow:hidden}
.thg-funnel .screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
@media(prefers-reduced-motion:reduce){.thg-funnel *{transition:none!important}}
/* Compact widget (mid-page and end placements): postcode and button only. */
.thg-funnel--compact{padding:20px}
.thg-funnel--compact .thg-fstep__hint,.thg-funnel--compact .thg-funnel__top{display:none}
.thg-funnel--compact .thg-fstep__h{font-size:1.25rem}
.thg-funnel--compact .thg-fstep{margin:0 0 12px}
/* Heat pump running costs (0.5.0) */
.thg-result__table{width:100%;border-collapse:collapse;margin:0 0 12px;font-size:1rem;line-height:1.4}
.thg-result__table caption{text-align:left;font-size:.9375rem;color:var(--thgf-muted);margin:0 0 6px}
.thg-result__table th,.thg-result__table td{text-align:left;vertical-align:top;padding:10px 8px;border-bottom:1px solid var(--thgf-line,#c8d0d6)}
.thg-result__table thead th{font-size:.9375rem;border-bottom-width:2px}
.thg-result__table tbody th{font-weight:600}
