/* ImprovementCalc — content, block styles and the IC Cost Calculators plugin.
   Loaded on the site and in the block editor. */

:root {
	--ic-accent: #7B1E28;
	--ic-accent-dark: #5C141D;
	--ic-accent-wash: #F5E9EA;
	--ic-ink: #221E1C;
	--ic-ink-soft: #4A4340;
	--ic-muted: #6B625D;
	--ic-ground: #F1EFEC;
	--ic-surface: #FFFFFF;
	--ic-border: #DAD4CF;
	--ic-line: #E6E1DC;
	--ic-warn: #8A5A00;
	--ic-warn-wash: #FDF4E1;
	--ic-ok: #1E5B3C;
	--ic-ok-wash: #E8F2EC;
	--ic-font-head: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
	--ic-font-body: 'Source Sans 3', 'Segoe UI', Roboto, Arial, sans-serif;
	--ic-radius: 8px;
}

/* Reading typography -------------------------------------------------------- */

.entry { font-size: 18px; line-height: 1.7; }
.entry > * { margin-top: 0; margin-bottom: 1.1em; }
.entry h2 {
	margin: 2.2em 0 0.55em; font-size: clamp(26px, 3vw, 30px); font-weight: 800; letter-spacing: -0.01em;
	color: var(--ic-accent); scroll-margin-top: calc(var(--ic-adminbar, 0px) + var(--ic-header-offset, 0px) + 16px);
}
.entry > h2:first-child { margin-top: 0; }
.entry h3 { margin: 1.8em 0 0.5em; font-size: 22px; font-weight: 700; color: var(--ic-ink); }
.entry h4 { margin: 1.5em 0 0.4em; font-size: 19px; font-weight: 700; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry li { margin-bottom: 0.35em; }
.entry li::marker { color: var(--ic-accent); font-weight: 700; }
.entry strong { font-weight: 700; }
.entry hr { border: 0; border-top: 1px solid var(--ic-border); margin: 2.5em 0; }
.entry blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--ic-border); color: var(--ic-ink-soft); }
.entry figcaption, .entry .wp-element-caption { font-size: 15px; color: var(--ic-muted); margin-top: 8px; }
.entry img { border-radius: var(--ic-radius); }
.entry code { font-size: 0.9em; background: var(--ic-ground); padding: 2px 5px; border-radius: 4px; }

/* Tables: every table looks tidy; "Cost table" style adds the oxblood header. */
/* v1.12.2 (Ben): rounded corners and a soft all-round shadow. The scroll wrapper gets a little padding
   (cancelled by negative margins) so its overflow doesn't clip the shadow. */
.ic-table-scroll { overflow-x: auto; margin: -4px -14px calc(1.4em - 14px); padding: 4px 14px 18px; -webkit-overflow-scrolling: touch; }
.ic-table-scroll:focus-visible { outline: 3px solid var(--ic-accent); outline-offset: 2px; }
.ic-table-scroll > .wp-block-table { margin: 0; }
.entry .wp-block-table table, .editor-styles-wrapper .wp-block-table table {
	width: 100%; min-width: 520px; border-collapse: collapse; background: var(--ic-surface);
	font-size: 16px; line-height: 1.45; font-variant-numeric: tabular-nums;
	border: 1px solid var(--ic-border); border-collapse: separate; border-spacing: 0; border-radius: 12px;
	box-shadow: 0 1px 2px rgba(34, 30, 28, 0.05), 0 8px 24px rgba(34, 30, 28, 0.09);
}
.entry .wp-block-table table > :first-child > tr:first-child > :first-child,
.editor-styles-wrapper .wp-block-table table > :first-child > tr:first-child > :first-child { border-top-left-radius: 11px; }
.entry .wp-block-table table > :first-child > tr:first-child > :last-child,
.editor-styles-wrapper .wp-block-table table > :first-child > tr:first-child > :last-child { border-top-right-radius: 11px; }
.entry .wp-block-table table > :last-child > tr:last-child > :first-child,
.editor-styles-wrapper .wp-block-table table > :last-child > tr:last-child > :first-child { border-bottom-left-radius: 11px; }
.entry .wp-block-table table > :last-child > tr:last-child > :last-child,
.editor-styles-wrapper .wp-block-table table > :last-child > tr:last-child > :last-child { border-bottom-right-radius: 11px; }
@media print { .entry .wp-block-table table { box-shadow: none; } .ic-table-scroll { padding: 0; margin: 0 0 1em; } }
.entry .wp-block-table th, .entry .wp-block-table td,
.editor-styles-wrapper .wp-block-table th, .editor-styles-wrapper .wp-block-table td {
	padding: 12px 16px; border: 0; border-top: 1px solid var(--ic-line); text-align: left; vertical-align: top;
}
.entry .wp-block-table thead th, .editor-styles-wrapper .wp-block-table thead th {
	background: var(--ic-ground); font-family: var(--ic-font-head); font-size: 15px; font-weight: 700; border-top: 0;
}
.wp-block-table.is-style-ic-cost-table thead th { background: var(--ic-accent) !important; color: #fff; }
.wp-block-table.is-style-ic-cost-table tbody tr:nth-child(even) td { background: #FAF8F6; }
.wp-block-table.is-style-ic-cost-table tbody td:first-child { font-weight: 600; }
.wp-block-table.is-style-ic-cost-table tfoot td { font-weight: 700; background: var(--ic-accent-wash); }
.wp-block-table figcaption { text-align: left; }

/* Boxes (group block styles) --------------------------------------------------- */

.is-style-ic-quick-answer,
.is-style-ic-worked-example,
.is-style-ic-methodology,
.is-style-ic-warning,
.is-style-ic-tip,
.is-style-ic-cta {
	padding: 22px 24px; border-radius: var(--ic-radius); margin-bottom: 1.6em;
}
.is-style-ic-quick-answer > *:last-child,
.is-style-ic-worked-example > *:last-child,
.is-style-ic-methodology > *:last-child,
.is-style-ic-warning > *:last-child,
.is-style-ic-tip > *:last-child,
.is-style-ic-cta > *:last-child { margin-bottom: 0; }
.is-style-ic-quick-answer > *:first-child,
.is-style-ic-worked-example > *:first-child,
.is-style-ic-methodology > *:first-child,
.is-style-ic-warning > *:first-child,
.is-style-ic-tip > *:first-child,
.is-style-ic-cta > *:first-child { margin-top: 0; }

.is-style-ic-quick-answer::before,
.is-style-ic-worked-example::before,
.is-style-ic-tip::before,
.is-style-ic-warning::before {
	display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
	font-family: var(--ic-font-body); font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.4;
}

.is-style-ic-quick-answer {
	background: var(--ic-surface); border: 1px solid var(--ic-border); border-top: 4px solid var(--ic-accent);
	font-size: 19px; line-height: 1.6;
}
.is-style-ic-quick-answer::before { content: 'Quick answer'; color: var(--ic-accent); }

.is-style-ic-worked-example { background: var(--ic-surface); border: 1px solid var(--ic-border); }
.is-style-ic-worked-example::before { content: 'Worked example'; color: var(--ic-muted); }
.is-style-ic-worked-example h3 { margin-top: 0; font-size: 20px; }
.is-style-ic-worked-example ol, .is-style-ic-worked-example ul { font-variant-numeric: tabular-nums; }
.is-style-ic-worked-example p:last-child strong:only-child,
.is-style-ic-worked-example .ic-result { display: block; padding-top: 12px; border-top: 1px solid var(--ic-line); color: var(--ic-accent); font-weight: 700; font-size: 19px; }

.entry .is-style-ic-methodology, .entry .is-style-ic-cta { margin-top: 2em; }
.is-style-ic-methodology { background: #E9E5E1; font-size: 16px; line-height: 1.6; }
.is-style-ic-methodology h2, .is-style-ic-methodology h3 { margin-top: 0; font-size: 19px; color: var(--ic-ink); }
.is-style-ic-methodology a { color: var(--ic-ink); }
/* "Our full method" line added by the theme at the end of every methodology box. */
.is-style-ic-methodology .ic-method-links { margin: 16px 0 0; padding-top: 12px; border-top: 1px solid #D3CCC6; font-size: 15px; line-height: 1.7; color: var(--ic-ink-soft); }
.is-style-ic-methodology .ic-method-links strong { color: var(--ic-ink); }
.is-style-ic-methodology .ic-method-links a { font-weight: 600; white-space: nowrap; }
.is-style-ic-methodology .ic-method-links a:hover { color: var(--ic-accent); }
.ic-method-links__sep { margin: 0 4px; color: var(--ic-muted); }
@media (max-width: 560px) { .is-style-ic-methodology .ic-method-links a { white-space: normal; } }

.is-style-ic-warning { background: var(--ic-warn-wash); border: 1px solid #E8CF94; }
.is-style-ic-warning::before { content: 'Safety first'; color: var(--ic-warn); }

.is-style-ic-tip { background: var(--ic-ok-wash); border: 1px solid #BCD7C6; }
.is-style-ic-tip::before { content: 'Ways to save'; color: var(--ic-ok); }

.is-style-ic-cta { background: var(--ic-accent); color: #fff; padding: 28px; }
.is-style-ic-cta h2, .is-style-ic-cta h3 { margin-top: 0; color: #fff; font-size: 24px; }
.is-style-ic-cta p { color: #F3E3E5; }
.is-style-ic-cta a:not(.wp-block-button__link) { color: #fff; }
.is-style-ic-cta .wp-block-button__link { background: #fff !important; color: var(--ic-accent) !important; }

/* Buttons */
.wp-block-button__link, .wp-element-button {
	display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
	border-radius: var(--ic-radius); background: var(--ic-accent); color: #fff; font-weight: 700; text-decoration: none;
}
.wp-block-button__link:hover { background: var(--ic-accent-dark); color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; color: var(--ic-accent); border: 2px solid currentColor; }

/* Lists ------------------------------------------------------------------------- */

.wp-block-list.is-style-ic-checklist, .wp-block-list.is-style-ic-redflags,
ul.is-style-ic-checklist, ul.is-style-ic-redflags {
	list-style: none; padding: 0; display: grid; gap: 10px;
}
.is-style-ic-checklist > li, .is-style-ic-redflags > li {
	position: relative; margin: 0; padding: 12px 16px 12px 46px; line-height: 1.5;
	background: var(--ic-surface); border: 1px solid var(--ic-border); border-radius: var(--ic-radius);
}
.is-style-ic-checklist > li::before, .is-style-ic-redflags > li::before {
	content: ''; position: absolute; left: 16px; top: 15px; width: 20px; height: 20px;
	-webkit-mask: var(--ic-mark) center / contain no-repeat; mask: var(--ic-mark) center / contain no-repeat;
}
.is-style-ic-checklist > li::before {
	background: var(--ic-accent);
	--ic-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
}
.is-style-ic-redflags > li::before {
	background: #A1261A;
	--ic-mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6 6 18'/%3E%3C/svg%3E");
}
.is-style-ic-checklist > li::marker, .is-style-ic-redflags > li::marker { content: none; }

/* Pros and cons (columns) */
.wp-block-columns.is-style-ic-pros-cons { gap: 16px; }
.is-style-ic-pros-cons > .wp-block-column {
	background: var(--ic-surface); border: 1px solid var(--ic-border); border-radius: var(--ic-radius); padding: 20px 22px;
}
.is-style-ic-pros-cons > .wp-block-column > :first-child { margin-top: 0; }
.is-style-ic-pros-cons > .wp-block-column > :last-child { margin-bottom: 0; }
.is-style-ic-pros-cons > .wp-block-column:first-child { border-top: 4px solid var(--ic-ok); }
.is-style-ic-pros-cons > .wp-block-column:last-child { border-top: 4px solid var(--ic-accent); }
.is-style-ic-pros-cons h3, .is-style-ic-pros-cons h4 { margin-top: 0; font-size: 19px; }

/* FAQs: core Details block with the FAQ style, or the Yoast FAQ block (which adds FAQPage schema). */
.wp-block-details.is-style-ic-faq, .schema-faq-section {
	background: var(--ic-surface); border: 1px solid var(--ic-border); border-radius: var(--ic-radius);
	margin: 0 0 10px; padding: 0;
}
.wp-block-details.is-style-ic-faq summary {
	position: relative; cursor: pointer; list-style: none; padding: 16px 52px 16px 20px;
	font-family: var(--ic-font-head); font-weight: 700; font-size: 18px; line-height: 1.4;
}
.wp-block-details.is-style-ic-faq summary::-webkit-details-marker { display: none; }
.wp-block-details.is-style-ic-faq summary::after {
	content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
	font-size: 24px; font-weight: 400; color: var(--ic-accent);
}
.wp-block-details.is-style-ic-faq[open] summary::after { content: '–'; }
.wp-block-details.is-style-ic-faq > :not(summary) { margin: 0; padding: 0 20px 16px; }
.schema-faq-question { display: block; padding: 16px 20px 6px; font-family: var(--ic-font-head); font-size: 18px; line-height: 1.4; }
.schema-faq-answer { margin: 0; padding: 0 20px 16px; }

/* Shortcode block wrapper: the calculator sits full width of the content column. */
.entry > .ic-calc-anchor + .ic-calc, .entry > .ic-calc { margin: 28px 0 40px; }

/* IC Cost Calculators plugin ------------------------------------------------------
   The plugin ships layout-only CSS; this gives it the site's look. */

body .ic-calc {
	--ic-gap: 18px;
	--ic-border: #B9AFA8;
	--ic-muted: #6B625D;
	--ic-error: #A1261A;
	--ic-warn-bg: #FDF4E1;
	--ic-radius: 8px;
	background: var(--ic-surface, #fff);
	border: 1px solid #DAD4CF;
	border-top: 4px solid var(--ic-accent);
	border-radius: 12px;
	padding: 24px;
	font-size: 17px;
	line-height: 1.5;
	box-shadow: 0 12px 32px rgba(34, 30, 28, 0.06);
}
.ic-calc-anchor { scroll-margin-top: calc(var(--ic-adminbar, 0px) + var(--ic-header-offset, 0px) + 16px); }

.entry .ic-calc .ic-calc__title, .ic-calc__title { margin: 0 0 4px; color: var(--ic-ink); letter-spacing: 0; font-family: var(--ic-font-head); font-size: 22px; font-weight: 800; color: var(--ic-ink); }
.ic-calc__intro { margin: 0 0 18px; color: var(--ic-ink-soft); font-size: 16px; }

.ic-calc__label { font-weight: 700; font-size: 15px; color: var(--ic-ink); }
.ic-calc__help, .ic-calc__option-help { font-size: 14px; color: #6B625D; }
.ic-calc__control, .ic-calc__number input, .ic-calc__zip input, .ic-calc select, .ic-calc input[type="number"], .ic-calc input[type="text"], .ic-calc input[type="email"], .ic-calc input[type="tel"], .ic-calc textarea {
	min-height: 48px; padding: 0 12px; border: 1px solid #B9AFA8; border-radius: 8px;
	background: #fff; color: var(--ic-ink); font: inherit; font-size: 16px; width: 100%;
}
.ic-calc textarea { padding: 10px 12px; min-height: 96px; }
.ic-calc select { appearance: none; -webkit-appearance: none; padding-right: 40px;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237B1E28' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}
.ic-calc select:focus, .ic-calc input:focus, .ic-calc textarea:focus { outline: 3px solid var(--ic-accent); outline-offset: 1px; border-color: var(--ic-accent); }
.ic-calc .is-invalid .ic-calc__control, .ic-calc .is-invalid input, .ic-calc .is-invalid select { border-color: #A1261A; border-width: 2px; }
.ic-calc__field-error { color: #A1261A; font-size: 14px; font-weight: 600; }
.ic-calc__unit { color: #6B625D; font-size: 15px; }

.ic-calc__option { border: 1px solid #DAD4CF; border-radius: 8px; padding: 10px 12px; background: #fff; }
.ic-calc__option:has(input:checked) { border-color: var(--ic-accent); background: var(--ic-accent-wash); }
.ic-calc__option-label { font-weight: 600; }
.ic-calc input[type="radio"], .ic-calc input[type="checkbox"] { accent-color: var(--ic-accent); width: 20px; height: 20px; }
/* Checkboxes and radios that also carry .ic-calc__control (plugin v1.6.0 panels) stay checkbox-sized. */
.ic-calc input[type="radio"].ic-calc__control, .ic-calc input[type="checkbox"].ic-calc__control { flex: none; min-height: 0; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
/* Plugin parts use the hidden attribute; theme display rules must never override it. */
.ic-calc [hidden] { display: none !important; }

/* Result panel */
.ic-calc__result {
	background: var(--ic-accent-wash); border: 2px solid var(--ic-accent); border-bottom: 0; border-radius: 12px 12px 0 0;
	padding: 22px 22px 18px; margin-top: 20px;
}
.ic-calc__headline { margin: 0 0 4px; font-size: 15px; font-weight: 700; color: var(--ic-ink-soft); }
.ic-calc__range {
	margin: 0; font-family: var(--ic-font-head); font-size: clamp(28px, 4vw, 36px); font-weight: 800;
	letter-spacing: -0.02em; line-height: 1.15; color: var(--ic-accent); font-variant-numeric: tabular-nums;
}
.ic-calc__range-sep { margin: 0 0.2em; font-weight: 600; }
.ic-calc__typical { margin: 6px 0 0; font-size: 16px; color: var(--ic-ink-soft); }
.ic-calc__typical-value { font-weight: 700; color: var(--ic-ink); }
.ic-calc__region { margin: 4px 0 0; font-size: 14px; color: #6B625D; }
.ic-calc__breakdown { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid #E3C9CC; list-style: none; font-size: 15px; font-variant-numeric: tabular-nums; }
.entry .ic-calc ul, .entry .ic-calc ol { padding-left: 0; }
.entry .ic-calc li { margin-bottom: 0; }
.ic-calc__line { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 5px 0; }
.ic-calc__line-label { color: var(--ic-ink-soft); }
.ic-calc__line-value { font-weight: 700; text-align: right; }
.ic-calc__advisories { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ic-calc__advisory { background: #fff; border-radius: 8px; padding: 10px 12px; font-size: 15px; line-height: 1.45; color: var(--ic-ink-soft); }
.ic-calc__advisory--warning { background: #FDF4E1; color: #5E3E00; border: 1px solid #E8CF94; }
.ic-calc__error { color: #A1261A; font-weight: 600; }
.ic-calc:not(.has-result) .ic-calc__range { color: #8C827C; }

/* Call to action and quote form */
/* The quote button sits in the bottom of the estimate panel, so price and next step read as one. */
.ic-calc__cta {
	margin-top: 0; padding: 0 22px 22px; background: var(--ic-accent-wash);
	border: 2px solid var(--ic-accent); border-top: 0; border-radius: 0 0 12px 12px;
}
.ic-calc__cta::before {
	content: ''; display: block; height: 1px; margin: 0 0 18px; background: #E3C9CC;
}
.ic-calc__cta-button, .ic-calc__submit {
	display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; padding: 0 20px;
	border: 0; border-radius: 10px; background: var(--ic-accent); color: #fff;
	font: inherit; font-size: 19px; font-weight: 800; line-height: 1.25; text-align: center; cursor: pointer;
	box-shadow: 0 4px 12px rgba(123, 30, 40, 0.25); transition: background-color .15s, transform .15s;
}
.ic-calc__cta-button { padding: 12px 20px; }
.ic-calc__cta-button:hover { transform: translateY(-1px); }
.ic-calc__cta-button:hover, .ic-calc__submit:hover { background: var(--ic-accent-dark); }
.ic-calc__cta-button[aria-expanded="true"] { background: var(--ic-ink); }
.ic-calc__submit[disabled] { opacity: 0.7; cursor: progress; }

.ic-calc__lead { margin-top: 20px; padding-top: 20px; border-top: 1px solid #DAD4CF; }
.ic-calc__lead-title { margin: 0 0 4px; font-family: var(--ic-font-head); font-size: 21px; font-weight: 800; color: var(--ic-ink); }
.ic-calc__lead-intro { margin: 0 0 16px; color: var(--ic-ink-soft); font-size: 16px; }
.ic-calc__lead-field label { font-weight: 700; font-size: 15px; }
.ic-calc__optional { font-weight: 400; color: #6B625D; }
.ic-calc__errors { background: #FBEAE8; border: 1px solid #E5B4AE; border-radius: 8px; padding: 12px 16px; color: #7A1D12; font-size: 15px; }
.ic-calc__errors a { color: #7A1D12; font-weight: 700; }
.ic-calc__consent { display: flex; gap: 10px; align-items: flex-start; }
.ic-calc__consent-text, .ic-calc__disclosure { font-size: 13px; line-height: 1.5; color: #6B625D; }
.ic-calc__success { background: var(--ic-ok-wash); border: 1px solid #BCD7C6; border-radius: 10px; padding: 18px 20px; color: var(--ic-ok); }
.ic-calc__success-text { margin: 0; font-weight: 600; }

/* Two columns on wide screens: inputs left, result and button right. */
@media (min-width: 1100px) {
	/* Rows: 1 title, 2 intro, 3 form + estimate, 4 form + button (takes the form's extra height, so
	   the button sits straight under the estimate), 5 price tools across the full width, 6 price
	   panels, 7 quote form, 8 embed link. */
	.ic-calc.is-ready {
		display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
		grid-template-rows: auto auto auto 1fr auto auto auto auto; column-gap: 28px; align-items: start;
	}
	.ic-calc.is-ready > * { grid-column: 1 / -1; }
	.ic-calc.is-ready > .ic-calc__title { grid-row: 1; }
	.ic-calc.is-ready > .ic-calc__intro { grid-row: 2; }
	.ic-calc.is-ready > .ic-calc__form { grid-column: 1; grid-row: 3 / span 2; grid-template-columns: minmax(0, 1fr); }
	.ic-calc.is-ready > .ic-calc__result { grid-column: 2; grid-row: 3; margin-top: 0; }
	.ic-calc.is-ready .ic-calc__range { font-size: 30px; }
	/* The estimate panel runs the full height of the inputs, so both columns end level. */
	.ic-calc.is-ready > .ic-calc__cta { grid-column: 2; grid-row: 4; align-self: stretch; }
	/* The two price cards sit side by side under both columns, so neither column is left with a gap. */
	.ic-calc.is-ready > .ic-calc__price-tools { grid-column: 1 / -1; grid-row: 5; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--ic-line); }
	.ic-calc.is-ready > .ic-calc__checker, .ic-calc.is-ready > .ic-calc__report { grid-row: 6; }
	.ic-calc.is-ready > .ic-calc__lead { grid-row: 7; }
	.ic-calc.is-ready > .ic-calc__embed { grid-row: 8; }
	.ic-calc.is-ready > .ic-calc__hp { position: absolute; }
}
@media (max-width: 520px) {
	.ic-calc { padding: 18px; border-radius: 10px; }
	.entry > .ic-calc { margin-left: -8px; margin-right: -8px; }
}

/* Compact mode (homepage quick estimate). The card around it supplies the frame. */
body .ic-quick .ic-calc {
	display: block; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; font-size: 16px;
}
.ic-quick .ic-calc .ic-calc__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.ic-quick .ic-calc .ic-calc__field { display: flex; flex-direction: column; gap: 4px; }
.ic-quick .ic-calc .ic-calc__help { font-size: 13px; }
.ic-quick .ic-calc .ic-calc__number { display: flex; align-items: center; gap: 8px; }
.ic-calc__unit { white-space: nowrap; }
.ic-quick .ic-calc__result { margin-top: 16px; padding: 16px 18px 14px; }
.ic-quick .ic-calc__cta { padding: 0 18px 16px; }
.ic-quick .ic-calc__cta::before { margin-bottom: 14px; }
.ic-quick .ic-calc__range { font-size: clamp(26px, 3vw, 30px); }
.ic-calc__compact-note { margin: 8px 0 0; font-size: 14px; line-height: 1.45; color: var(--ic-ink-soft); }
.ic-calc__full-link {
	display: flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 6px;
	font-weight: 700; font-size: 16px; color: var(--ic-accent);
}
.ic-calc__full-link:hover { color: var(--ic-accent-dark); }
.ic-calc__quote-step { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--ic-line); display: grid; gap: 12px; }
.ic-calc__quote-step-title { margin: 0; font-family: var(--ic-font-head); font-size: 19px; font-weight: 800; color: var(--ic-ink); }
.ic-calc__quote-step-title:focus { outline: none; }


/* "Share or save this estimate" (plugin markup, see claude/plugin-share-estimate-spec.md).
   Sits under the quote button inside the estimate panel. */
.ic-calc__share { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; margin-top: 12px; }
.ic-calc__share-label { width: 100%; text-align: center; font-size: 13px; font-weight: 700; color: var(--ic-muted); }
.ic-calc__share-button {
	display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px;
	border: 0; border-radius: 999px; background: transparent; font: inherit; font-size: 15px; font-weight: 700;
	color: var(--ic-accent); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer;
}
.ic-calc__share-button:hover { background: #fff; color: var(--ic-accent-dark); }
.ic-calc__share-button .ic-calc__share-icon, .ic-calc__share-button svg { width: 17px; height: 17px; }
.ic-calc__share-status { width: 100%; margin: 4px 0 0; text-align: center; font-size: 14px; color: var(--ic-ok); }
.ic-calc__share-status:empty { display: none; }
.ic-calc__print-note { display: none; }
@media print {
	.ic-calc__print-note { display: block !important; margin: 12px 0 0; font-size: 12px; color: #555; word-break: break-all; }
	body.ic-printing-estimate .ic-calc__cta { display: none !important; }
}

/* Price sharing and quote checker (plugin v1.6.0+, theme-price-sharing-spec.md) ------------
   Two invitation cards under the quote button, the panels they open, the verdict and the
   "What ImprovementCalc users paid" block. Deliberately quieter than the quote button. */
.ic-calc__price-tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; margin-top: 14px; }
.ic-calc__tool-button {
	position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) 14px; grid-template-rows: auto auto; column-gap: 12px; row-gap: 1px; align-items: center; align-content: center;
	width: 100%; min-height: 64px; padding: 12px 14px; margin: 0; text-align: left;
	background: var(--ic-ground); border: 1px solid var(--ic-border); border-radius: 8px;
	font: inherit; color: var(--ic-ink); cursor: pointer;
	transition: transform .15s, box-shadow .15s, border-color .15s, background-color .15s;
}
.ic-calc__tool-button::after {
	content: ''; grid-column: 3; grid-row: 1 / span 2; width: 8px; height: 8px; justify-self: center;
	border-right: 2px solid var(--ic-accent); border-bottom: 2px solid var(--ic-accent); transform: rotate(-45deg); transition: transform .15s;
}
.ic-calc__tool-button:hover { transform: translateY(-1px); background: #fff; border-color: #C9BFB7; box-shadow: 0 6px 16px rgba(34, 30, 28, 0.08); }
.ic-calc__tool-button:focus-visible { outline: 3px solid var(--ic-accent); outline-offset: 2px; }
.ic-calc__tool-button[aria-expanded="true"] { background: #fff; border-color: var(--ic-accent); box-shadow: inset 0 0 0 1px var(--ic-accent); }
.ic-calc__tool-button[aria-expanded="true"]::after { transform: rotate(45deg); }
.ic-calc__tool-icon {
	grid-column: 1; grid-row: 1 / span 2; display: grid; place-items: center; width: 40px; height: 40px;
	border-radius: 50%; background: var(--ic-accent-wash); color: var(--ic-accent);
}
.ic-calc__tool-icon svg { width: 20px; height: 20px; }
.ic-calc__tool-title { grid-column: 2; font-size: 15px; font-weight: 700; line-height: 1.3; }
.ic-calc__tool-text { grid-column: 2; font-size: 14px; line-height: 1.35; color: var(--ic-muted); }
/* Third card (plugin v1.7.0): "Got two or three quotes? Compare them side by side" is a link to
   /compare-quotes/, so no underline and a right arrow instead of the chevron (it leaves the page). */
a.ic-calc__tool-button, a.ic-calc__tool-button:hover, a.ic-calc__tool-button:visited { color: var(--ic-ink); text-decoration: none; }
.ic-calc__tool-button--compare::after {
	content: '\2192'; width: auto; height: auto; border: 0; transform: none;
	font-size: 19px; font-weight: 800; line-height: 1; color: var(--ic-accent); transition: transform .15s;
}
.ic-calc__tool-button--compare:hover::after { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .ic-calc__tool-button, .ic-calc__tool-button::after { transition: none; } .ic-calc__tool-button:hover { transform: none; } }

/* The two panels */
.ic-calc__checker, .ic-calc__report {
	margin-top: 18px; padding: 20px 22px; background: #FBFAF8; border: 1px solid var(--ic-border); border-radius: 12px;
}
.entry .ic-calc .ic-calc__panel-title, .ic-calc__panel-title { margin: 0 0 4px; font-family: var(--ic-font-head); font-size: 20px; font-weight: 800; line-height: 1.25; color: var(--ic-ink); }
.ic-calc__panel-title:focus { outline: none; }
.ic-calc__panel-intro { margin: 0 0 14px; font-size: 15px; color: var(--ic-ink-soft); }
.ic-calc__report-summary { margin: 0 0 14px; padding: 8px 12px; background: var(--ic-ground); border-radius: 8px; font-size: 14px; color: var(--ic-ink-soft); }
.ic-calc__panel-form { display: grid; gap: 14px; }
.ic-calc__panel-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr)); gap: 14px 16px; }
.ic-calc__panel-field { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0; padding: 0; border: 0; }
.ic-calc__panel-field--note, .ic-calc__panel-field--type, .ic-calc__panel-fields > .ic-calc__checks { grid-column: 1 / -1; }
.ic-calc__panel-field legend, .ic-calc__checks legend { padding: 0; margin-bottom: 6px; font-weight: 700; font-size: 15px; color: var(--ic-ink); }
.ic-calc__panel-field--consent { grid-column: 1 / -1; }
.ic-calc__panel-field .ic-calc__options { display: flex; flex-wrap: wrap; gap: 8px; }
.ic-calc__panel-field .ic-calc__option { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px; font-size: 15px; cursor: pointer; }
.ic-calc__panel-field .ic-calc__number { display: flex; align-items: center; gap: 8px; }
.ic-calc__panel-field .ic-calc__number .ic-calc__unit { order: -1; font-weight: 700; }
.ic-calc__panel-field .ic-calc__help, .ic-calc__panel-field .ic-calc__field-error { margin: 0; }
.ic-calc__checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); column-gap: 14px; margin: 0; padding: 0; border: 0; min-width: 0; }
.ic-calc__checks legend { float: left; width: 100%; grid-column: 1 / -1; }
.ic-calc__checks label { display: flex; align-items: center; gap: 8px; min-height: 36px; font-size: 15px; cursor: pointer; }
.ic-calc__month { display: flex; gap: 8px; }
.ic-calc__month select { flex: 1 1 0; min-width: 0; padding-left: 10px; padding-right: 32px; background-position: right 8px center; }
.ic-calc__month select:first-child { flex-grow: 1.5; }

.ic-calc__counter { align-self: flex-end; margin: 0; font-size: 13px; color: var(--ic-muted); font-variant-numeric: tabular-nums; }
.ic-calc__counter:empty { display: none; }
.ic-calc__panel-submit, .ic-calc__optin-send {
	justify-self: start; display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
	border: 0; border-radius: 10px; background: var(--ic-ink); color: #fff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer;
	transition: background-color .15s;
}
.ic-calc__panel-submit:hover, .ic-calc__optin-send:hover { background: var(--ic-accent-dark); }
.ic-calc__panel-submit:focus-visible, .ic-calc__optin-send:focus-visible, .ic-calc__verdict-quotes:focus-visible { outline: 3px solid var(--ic-accent); outline-offset: 2px; }
.ic-calc__panel-submit[disabled], .ic-calc__optin-send[disabled] { opacity: 0.7; cursor: progress; }
.ic-calc__panel-form.is-loading { opacity: 0.85; }
.ic-calc .ic-calc__panel-field.is-invalid input, .ic-calc .ic-calc__panel-field.is-invalid select, .ic-calc .ic-calc__panel-field.is-invalid textarea { border-color: #A1261A; border-width: 2px; }

/* Verdict: guidance, not an accusation. Typical green, below/above neutral, well below/above amber. */
.ic-calc__verdict {
	--band: var(--ic-ink-soft); --band-wash: var(--ic-ground); --band-ink: var(--ic-ink); --band-range: #CFC7C1;
	margin-top: 18px; padding: 18px 20px; background: var(--band-wash); border: 1px solid #E1DBD6; border-left: 5px solid var(--band); border-radius: 10px;
}
.ic-calc__verdict--typical { --band: #2E7D4F; --band-wash: #E8F2EC; --band-ink: #1E5B3C; --band-range: #A9D2B9; border-color: #BCD7C6; }
.ic-calc__verdict--below, .ic-calc__verdict--above { --band: var(--ic-ink-soft); --band-wash: #F4F2EF; --band-ink: var(--ic-ink); }
.ic-calc__verdict--well-below, .ic-calc__verdict--well-above { --band: #D98A00; --band-wash: #FDF4E1; --band-ink: #6B4500; --band-range: #E9D3A6; border-color: #E8CF94; }
.ic-calc__verdict:focus { outline: none; }
.ic-calc__verdict-title { margin: 0 0 4px; font-family: var(--ic-font-head); font-size: 19px; font-weight: 800; line-height: 1.3; color: var(--band-ink); }
.ic-calc__verdict-text { margin: 0; font-size: 16px; color: var(--ic-ink-soft); }
.ic-calc__verdict-bar { position: relative; height: 10px; margin: 26px 0 30px; background: #E6E1DC; border-radius: 5px; }
.ic-calc__verdict-range { position: absolute; top: 0; bottom: 0; left: 25%; width: 50%; background: var(--band-range); border-radius: 5px; }
.ic-calc__verdict-marker {
	position: absolute; top: 50%; left: 50%; width: 18px; height: 18px; transform: translate(-50%, -50%);
	background: var(--band); border: 3px solid #fff; border-radius: 50%; box-shadow: 0 1px 4px rgba(34, 30, 28, 0.35);
}
.ic-calc__verdict-low, .ic-calc__verdict-high { position: absolute; top: 16px; font-size: 13px; color: var(--ic-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ic-calc__verdict-note { margin: 0; font-size: 13px; color: var(--ic-muted); }
.entry .ic-calc .ic-calc__verdict-heading, .ic-calc__verdict-heading { margin: 16px 0 6px; font-family: var(--ic-font-head); font-size: 15px; font-weight: 800; color: var(--ic-ink); }
.entry .ic-calc .ic-calc__verdict-questions, .entry .ic-calc .ic-calc__verdict-flags, .ic-calc__verdict-questions, .ic-calc__verdict-flags { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; }
.ic-calc__verdict-questions { list-style: disc; }
.ic-calc__verdict-flags { list-style: none; padding-left: 0; }
.ic-calc__verdict-flags li { position: relative; padding-left: 22px; }
.ic-calc__verdict-flags li::before { content: '!'; position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: #D98A00; color: #fff; font-size: 11px; font-weight: 800; }
.ic-calc__verdict-actions { display: grid; gap: 12px; margin-top: 18px; }
.ic-calc__verdict-quotes {
	display: flex; align-items: center; justify-content: center; width: 100%; min-height: 52px; padding: 10px 20px;
	border: 0; border-radius: 10px; background: var(--ic-accent); color: #fff; font: inherit; font-size: 17px; font-weight: 800; cursor: pointer;
	box-shadow: 0 4px 12px rgba(123, 30, 40, 0.25); transition: background-color .15s;
}
.ic-calc__verdict-quotes:hover { background: var(--ic-accent-dark); }
.ic-calc__optin { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--ic-ink-soft); cursor: pointer; }
.ic-calc__optin input { flex: none; margin-top: 1px; }
.ic-calc__optin-status { margin: 0; font-size: 14px; font-weight: 600; color: var(--ic-ok); }
.ic-calc__optin-status:empty { display: none; }
.ic-calc__report-thanks { margin-top: 4px; }
.ic-calc__report-thanks:focus { outline: none; }
.ic-calc__report-thanks-title { margin: 0; padding: 14px 16px; background: var(--ic-ok-wash); border: 1px solid #BCD7C6; border-radius: 10px; font-weight: 700; color: var(--ic-ok); }
.ic-calc__report-thanks > .ic-calc__verdict-quotes { margin-top: 16px; }

/* "What ImprovementCalc users paid" inside the result panel (10+ approved reports) */
.ic-calc__reported { margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid #E3C9CC; font-size: 15px; font-variant-numeric: tabular-nums; }
.ic-calc__reported p { margin: 0; }
.ic-calc__reported-title { margin-bottom: 4px !important; font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ic-ink-soft); }
.ic-calc__reported-line { padding: 2px 0; color: var(--ic-ink-soft); }
.ic-calc__reported-label { display: inline-block; min-width: 56px; font-weight: 700; color: var(--ic-muted); }
.ic-calc__reported-median { font-weight: 800; color: var(--ic-ink); }
.ic-calc__reported-range { font-weight: 600; color: var(--ic-ink); }
.ic-calc__reported-meta { margin-top: 4px !important; font-size: 13px; color: var(--ic-muted); }

/* Standalone quote checker / share pages: the picker matches the homepage quick estimate. */
.ic-tool { margin: 28px 0 40px; }
.ic-tool__picker { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.ic-tool__picker label { font-family: var(--ic-font-head); font-weight: 700; font-size: 19px; line-height: 1.3; color: var(--ic-ink); }
.ic-tool__picker select.ic-calc__control, .ic-tool__picker select {
	min-height: 52px; width: 100%; padding: 0 44px 0 14px; border: 2px solid var(--ic-ink); border-radius: var(--ic-radius);
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237B1E28' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 18px;
	appearance: none; -webkit-appearance: none; font: inherit; font-size: 17px; font-weight: 600; color: var(--ic-ink); cursor: pointer;
}
.ic-tool__picker select:focus-visible { outline: 3px solid var(--ic-accent); outline-offset: 2px; }

@media (max-width: 520px) {
	.ic-calc__checker, .ic-calc__report { padding: 16px; margin-left: -4px; margin-right: -4px; }
	.ic-calc__panel-submit, .ic-calc__optin-send { width: 100%; }
}
@media print {
	body.ic-printing-estimate .ic-calc__price-tools, body.ic-printing-estimate .ic-calc__checker, body.ic-printing-estimate .ic-calc__report { display: none !important; }
	.ic-calc__price-tools { display: none !important; }
}
/* Honeypot fields (quote form and share-your-price form) stay out of sight even without the plugin's CSS. */
.ic-calc__hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* "How is this calculated?" under the estimate (plugin v1.6.0) */
.ic-calc__method { margin: 12px 0 0; font-size: 14px; }
.ic-calc__method-link { color: var(--ic-ink-soft); font-weight: 600; text-decoration: underline; text-decoration-color: #C9A9AD; text-underline-offset: 3px; }
.ic-calc__method-link:hover { color: var(--ic-accent); text-decoration-color: currentColor; }

/* "Embed this calculator" (plugin v1.5.0+): a quiet text button and a dialog with the code. */
.ic-calc__embed { margin-top: 14px; text-align: center; }
.ic-calc__embed-button, .ic-calc__embed-close, .ic-embed-code__copy {
	min-height: 40px; padding: 6px 14px; border: 1px solid var(--ic-border); border-radius: 8px; background: #fff;
	font: inherit; font-size: 14px; font-weight: 700; color: var(--ic-ink-soft); cursor: pointer;
}
.ic-calc__embed-button { border-color: transparent; background: none; text-decoration: underline; text-underline-offset: 3px; }
.ic-calc__embed-button:hover, .ic-calc__embed-close:hover, .ic-embed-code__copy:hover { color: var(--ic-accent); border-color: #C9BFB7; }
.ic-calc__embed-dialog { width: min(640px, calc(100vw - 32px)); padding: 22px 24px; border: 0; border-radius: 12px; box-shadow: 0 24px 60px rgba(34, 30, 28, 0.25); text-align: left; color: var(--ic-ink); }
.ic-calc__embed-dialog::backdrop { background: rgba(34, 30, 28, 0.45); }
.entry .ic-calc .ic-calc__embed-dialog-title, .ic-calc__embed-dialog-title { margin: 0 0 12px; font-family: var(--ic-font-head); font-size: 20px; font-weight: 800; }
.ic-embed-code__label { display: block; margin-bottom: 6px; font-weight: 700; font-size: 15px; }
.ic-calc .ic-embed-code__code, .ic-embed-code__code { width: 100%; min-height: 140px; padding: 10px 12px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; line-height: 1.5; background: var(--ic-ground); }
.ic-embed-code__actions { display: flex; align-items: center; gap: 10px; margin: 10px 0 0; }
.ic-embed-code__copy { background: var(--ic-ink); border-color: var(--ic-ink); color: #fff; }
.ic-embed-code__copy:hover { background: var(--ic-accent-dark); color: #fff; }
.ic-embed-code__status { font-size: 14px; color: var(--ic-ok); }
.ic-embed-code__note { margin: 8px 0 14px; font-size: 13px; color: var(--ic-muted); }
@media print { .ic-calc__embed, .ic-calc__method { display: none !important; } }

/* Quote checker and "share your price" pages ([ic_quote_checker], [ic_submit_project]):
   the tool, not the estimate, leads. Job questions on the left ("1. About the job"), the open
   panel on the right ("2." in its title), our estimate shown small underneath, and the quote
   button left to the verdict's "Compare with quotes from local pros". */
.ic-tool .ic-calc { counter-reset: ic-tool-step; }
.ic-tool .ic-calc__form::before {
	content: '1. About the job'; display: block; grid-column: 1 / -1; margin: 0 0 4px;
	font-family: var(--ic-font-head); font-size: 20px; font-weight: 800; color: var(--ic-ink);
}
.ic-tool .ic-calc__checker .ic-calc__panel-title::before, .ic-tool .ic-calc__report .ic-calc__panel-title::before { content: '2. '; }
.ic-tool .ic-calc__checker, .ic-tool .ic-calc__report { background: #fff; border: 2px solid var(--ic-accent); box-shadow: 0 8px 24px rgba(123, 30, 40, 0.10); }
.ic-tool .ic-calc__checker .ic-calc__panel-submit, .ic-tool .ic-calc__report .ic-calc__panel-submit {
	width: 100%; min-height: 54px; background: var(--ic-accent); font-size: 19px; box-shadow: 0 4px 12px rgba(123, 30, 40, 0.25);
}
.ic-tool .ic-calc__checker .ic-calc__panel-submit:hover, .ic-tool .ic-calc__report .ic-calc__panel-submit:hover { background: var(--ic-accent-dark); }
/* Our estimate, small: just the range, as context for the quote. */
.ic-tool .ic-calc__result { margin-top: 16px; padding: 14px 16px; background: var(--ic-ground); border: 1px solid var(--ic-border); border-radius: 10px; }
.ic-tool .ic-calc__result .ic-calc__headline { font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; }
.ic-tool .ic-calc__range { font-size: 22px !important; color: var(--ic-ink); }
.ic-tool .ic-calc__breakdown, .ic-tool .ic-calc__advisories, .ic-tool .ic-calc__compact-note { display: none; }
.ic-tool .ic-calc__cta, .ic-tool .ic-calc__price-tools { display: none; }
/* One column, in reading order: 1. the job questions (two per row when there is room),
   2. the open tool panel, then our estimate. */
body .ic-tool .ic-calc, body .ic-tool .ic-calc.is-ready { display: flex; flex-direction: column; align-items: stretch; }
body .ic-tool .ic-calc > * { order: 5; }
body .ic-tool .ic-calc > .ic-calc__title, body .ic-tool .ic-calc > .ic-calc__intro { order: 0; }
body .ic-tool .ic-calc > .ic-calc__form { order: 1; }
body .ic-tool .ic-calc > .ic-calc__checker, body .ic-tool .ic-calc > .ic-calc__report { order: 2; margin-top: 24px; }
body .ic-tool .ic-calc > .ic-calc__result { order: 3; margin-top: 16px; border-radius: 10px; }
@media (min-width: 700px) {
	body .ic-tool .ic-calc > .ic-calc__form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; row-gap: 14px; align-items: start; }
	body .ic-tool .ic-calc > .ic-calc__form::before { grid-column: 1 / -1; }
}


/* Verdict bar labels sit under the bar. Where the plugin positions them (inline left: n%, at the ends
   of the typical range) they are centred on that point; otherwise low sits at the left end, high at the right. */
.ic-calc__verdict-bar { position: relative !important; }
.ic-calc__verdict-low, .ic-calc__verdict-high { top: 16px; bottom: auto; }
.ic-calc__verdict-low:not([style*="left"]) { left: 0; right: auto; }
.ic-calc__verdict-high:not([style*="left"]) { right: 0; left: auto; }
.ic-calc__verdict-low[style*="left"], .ic-calc__verdict-high[style*="left"] { right: auto; transform: translateX(-50%); }

/* The range under the verdict bar is the estimate, so make it readable: bold ink figures. */
.ic-calc__verdict-low, .ic-calc__verdict-high { font-size: 14px; font-weight: 800; color: var(--ic-ink); }
/* Quote checker page: once a verdict is showing, the separate estimate box repeats the bar, so it goes. */
.ic-tool .ic-calc:has(.ic-calc__checker .ic-calc__verdict:not([hidden])) > .ic-calc__result { display: none; }
/* v1.10.4 (Ben): the quote checker and share pages never show the separate estimate box; the verdict bar
   shows our range once a price is entered. */
body .ic-tool .ic-calc > .ic-calc__result { display: none !important; }

/* Quote comparison worksheet and monthly cost line (plugin v1.7.0, theme-price-sharing-spec.md 6c) ---------
   One shade of the brand red per quote, kept the same in the form, the table and the phone cards:
   A oxblood, B rose, C blush (C's head takes dark text: white on blush fails contrast). "Our estimate" is
   dark grey, the reference rather than a fourth quote. Warnings are amber, never red, so they can't blend
   into the quote colours. */
.ic-compare__quote--a, .ic-compare__col--a, .ic-compare__cell--a, .ic-compare__card--a { --q: #7B1E28; --q-on: #fff; --q-text: #7B1E28; --q-wash: #FBEFF0; }
.ic-compare__quote--b, .ic-compare__col--b, .ic-compare__cell--b, .ic-compare__card--b { --q: #B8475A; --q-on: #fff; --q-text: #9E3A4D; --q-wash: #FCF3F5; }
.ic-compare__quote--c, .ic-compare__col--c, .ic-compare__cell--c, .ic-compare__card--c { --q: #D27A8C; --q-on: var(--ic-ink); --q-text: #A04F62; --q-wash: #FDF7F8; }
.ic-compare__col--estimate, .ic-compare__card--estimate { --q: #3A3431; --q-on: #fff; --q-text: var(--ic-ink); --q-wash: #F4F2EF; }

/* The worksheet panel matches the quote checker's on the tool pages: white, oxblood outline, "2." */
.ic-compare { margin-top: 24px; padding: 20px 22px; background: #fff; border: 2px solid var(--ic-accent); border-radius: 12px; box-shadow: 0 8px 24px rgba(123, 30, 40, 0.10); }
body .ic-tool .ic-calc > .ic-compare { order: 2; }
.ic-tool .ic-compare > .ic-calc__panel-title::before { content: '2. '; }
.ic-compare__form { display: grid; gap: 16px; }
.ic-compare .ic-compare__quotes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
/* Quotes A, B and C side by side whenever there is room for them (Ben, 2026-11-12), even in the narrower
   article column; one under another only on phones. */
@media (min-width: 600px) {
	.ic-compare .ic-compare__quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
	.ic-compare__quotes > .ic-compare__quote { padding: 12px 10px 14px; }
	.ic-compare__quotes .ic-calc__label, .ic-compare__includes > legend { font-size: 14px; line-height: 1.3; }
	.ic-compare__quotes .ic-calc__control { padding-left: 10px; padding-right: 10px; }
	.ic-compare__quotes select.ic-calc__control { padding-right: 30px; background-position: right 8px center; }
	.ic-compare__deposit select { flex-basis: 64px; }
}
.ic-compare__quote {
	min-width: 0; margin: 0; padding: 14px 14px 16px; background: var(--q-wash);
	border: 1px solid var(--ic-border); border-top: 5px solid var(--q); border-radius: 10px;
}
.ic-compare__quote > legend { float: left; width: 100%; margin: 0 0 10px; padding: 0; }
.ic-compare__quote > legend + * { clear: both; }
.ic-compare__quote-title { font-family: var(--ic-font-head); font-size: 17px; font-weight: 800; color: var(--q-text); }
.ic-compare__quote-title::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 3px; background: var(--q); vertical-align: -1px; }
.ic-compare__field { display: flex; flex-direction: column; gap: 4px; min-width: 0; margin: 0 0 10px; }
.ic-compare__field .ic-calc__control { background-color: #fff; }
.ic-compare__field .ic-calc__number { display: flex; align-items: center; gap: 8px; }
.ic-compare__field .ic-calc__number .ic-calc__unit { order: -1; font-weight: 700; }
.ic-compare__field--price .ic-calc__label { font-size: 16px; }
.ic-compare__field--price .ic-calc__control { font-weight: 700; }
.ic-compare__includes { min-width: 0; margin: 4px 0 10px; padding: 10px 0 0; border: 0; border-top: 1px dashed rgba(123, 30, 40, 0.25); }
.ic-compare__includes > legend { float: left; width: 100%; margin-bottom: 6px; padding: 0; font-weight: 800; }
.ic-compare__includes > legend + * { clear: both; }
.ic-compare__deposit { display: flex; gap: 8px; }
.ic-compare__deposit > * { min-width: 0; }
.ic-compare__deposit select { flex: 0 0 76px; }
.ic-compare__field.is-invalid .ic-calc__control { border-color: #A1261A; border-width: 2px; }
.ic-compare__form > .ic-calc__panel-submit, .ic-compare .ic-calc__panel-submit {
	width: 100%; min-height: 54px; background: var(--ic-accent); font-size: 19px; box-shadow: 0 4px 12px rgba(123, 30, 40, 0.25);
}
.ic-compare .ic-calc__panel-submit:hover { background: var(--ic-accent-dark); }

/* Results */
.ic-compare__result { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ic-line); }
.ic-compare__result:focus { outline: none; }
.entry .ic-calc .ic-compare__print-title, .ic-compare__print-title { margin: 0 0 8px; font-family: var(--ic-font-head); font-size: 20px; font-weight: 800; line-height: 1.25; color: var(--ic-ink); }
.ic-compare__estimate { margin: 0 0 14px; padding: 10px 14px; background: #F4F2EF; border-left: 5px solid #3A3431; border-radius: 8px; font-size: 16px; color: var(--ic-ink); font-variant-numeric: tabular-nums; }
.ic-compare__estimate strong, .ic-compare__estimate b { font-weight: 800; }
.ic-compare__table-wrap { margin: 0 0 18px; overflow-x: auto; border: 1px solid var(--ic-border); border-radius: 10px; -webkit-overflow-scrolling: touch; }
.ic-calc .ic-compare__table, .entry .ic-compare__table { width: 100%; margin: 0; border: 0; border-collapse: separate; border-spacing: 0; font-size: 15px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.ic-compare__table caption { padding: 10px 14px; text-align: left; caption-side: top; font-weight: 700; color: var(--ic-ink-soft); background: #fff; }
.ic-compare__table th, .ic-compare__table td { padding: 10px 12px; text-align: left; vertical-align: top; border: 0; border-bottom: 1px solid var(--ic-line); }
.ic-compare__table tr:last-child > * { border-bottom: 0; }
.ic-compare__table th[scope="col"], .ic-compare__table thead th { background: var(--q, var(--ic-ground)); color: var(--q-on, var(--ic-ink)); font-family: var(--ic-font-head); font-size: 15px; font-weight: 800; white-space: nowrap; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ic-compare__table th[scope="row"] { min-width: 130px; background: #FBFAF8; font-weight: 700; color: var(--ic-ink); }
.ic-compare__table td { background: var(--q-wash, #fff); color: var(--ic-ink); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ic-compare__table td.ic-compare__col--estimate, .ic-compare__table td.ic-compare__cell--estimate { color: var(--ic-ink-soft); }
.ic-compare__table td.is-best { color: var(--ic-ok); font-weight: 800; }
.ic-compare__table td.is-best::before { content: '\2713\00a0'; }
.ic-compare__table td.is-flagged { background: var(--ic-warn-wash); color: var(--ic-warn); font-weight: 700; box-shadow: inset 4px 0 0 #D98A00; }

/* "Compared with our estimate": the band as a coloured pill (the checker's band colours), the bar under it. */
.ic-compare__band, .ic-compare__band-title { --band: var(--ic-ink-soft); --band-wash: #EFECE8; --band-ink: var(--ic-ink); --band-line: #D3CCC6; --band-range: #CFC7C1; }
:is(.ic-compare__band, .ic-compare__band-title):is([class*="--typical"], [class*="--within"], [data-band="typical"], [data-band="within"]),
:is([class*="--typical"], [class*="--within"], [data-band="typical"], [data-band="within"]) > :is(.ic-compare__band, .ic-compare__band-title),
:is([class*="--typical"], [class*="--within"], [data-band="typical"], [data-band="within"]) .ic-compare__band-title { --band: #2E7D4F; --band-wash: #E8F2EC; --band-ink: #1E5B3C; --band-line: #BCD7C6; --band-range: #A9D2B9; }
:is(.ic-compare__band, .ic-compare__band-title):is([class*="--well-"], [data-band^="well"]),
:is([class*="--well-"], [data-band^="well"]) > :is(.ic-compare__band, .ic-compare__band-title),
:is([class*="--well-"], [data-band^="well"]) .ic-compare__band-title { --band: #D98A00; --band-wash: #FDF4E1; --band-ink: #6B4500; --band-line: #E8CF94; --band-range: #E9D3A6; }
.ic-compare__band-title {
	display: inline-block; margin: 0 0 4px; padding: 3px 11px; border: 1px solid var(--band-line); border-radius: 14px;
	background: var(--band-wash); color: var(--band-ink); font-size: 13px; font-weight: 800; line-height: 1.4; max-width: 100%; white-space: normal;
	-webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.ic-compare__band-title::before { content: ''; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: var(--band); vertical-align: 1px; }
.ic-compare__bar { position: relative; display: block; height: 8px; min-width: 90px; margin: 10px 2px 4px; background: #E6E1DC; border-radius: 4px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.ic-compare__bar [class*="range"] { position: absolute; top: 0; bottom: 0; background: var(--band-range); border-radius: 4px; }
.ic-compare__bar [class*="marker"] { position: absolute; top: 50%; width: 14px; height: 14px; transform: translate(-50%, -50%); background: var(--band); border: 2px solid #fff; border-radius: 50%; box-shadow: 0 1px 3px rgba(34, 30, 28, 0.35); }

/* Phone cards (the plugin swaps the table for these under 640px) */
.ic-compare__cards { display: grid; gap: 12px; margin: 0 0 18px; }
.ic-compare__card { padding: 12px 14px 14px; background: var(--q-wash, #fff); border: 1px solid var(--ic-border); border-top: 5px solid var(--q, var(--ic-border)); border-radius: 10px; font-variant-numeric: tabular-nums; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.entry .ic-calc .ic-compare__card-title, .ic-compare__card-title { margin: 0 0 8px; font-family: var(--ic-font-head); font-size: 17px; font-weight: 800; color: var(--q-text, var(--ic-ink)); }
.ic-compare__card dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 0; margin: 0; font-size: 15px; }
.ic-compare__card dt, .ic-compare__card dd { margin: 0; padding: 7px 0; border-top: 1px solid rgba(34, 30, 28, 0.08); }
.ic-compare__card dt { padding-right: 10px; font-weight: 700; color: var(--ic-ink-soft); }
.ic-compare__card dd { min-width: 0; color: var(--ic-ink); }
.ic-compare__card dd .ic-compare__bar { min-width: 0; }
.ic-compare__card dd.is-best { color: var(--ic-ok); font-weight: 800; }
.ic-compare__card dd.is-flagged { margin-left: -6px; padding-left: 6px; background: var(--ic-warn-wash); color: var(--ic-warn); font-weight: 700; box-shadow: inset 3px 0 0 #D98A00; }

/* Things to check: a soft amber box; the warranty note is good news, so green. */
.entry .ic-calc .ic-compare__flags-title, .ic-compare__flags-title { margin: 0 0 8px; font-family: var(--ic-font-head); font-size: 17px; font-weight: 800; color: var(--ic-ink); }
.entry .ic-calc .ic-compare__flags, .ic-compare__flags { display: grid; gap: 8px; margin: 0 0 16px; padding: 14px 16px; list-style: none; background: var(--ic-warn-wash); border: 1px solid #E8CF94; border-left: 5px solid #D98A00; border-radius: 10px; font-size: 15px; color: var(--ic-ink); }
.ic-compare__flags:empty { display: none; }
.ic-compare__flag { position: relative; margin: 0; padding-left: 26px; }
.ic-compare__flag::before { content: '!'; position: absolute; left: 0; top: 2px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: #D98A00; color: #fff; font-size: 12px; font-weight: 800; }
.ic-compare__flag--warranty { color: var(--ic-ok); font-weight: 600; }
.ic-compare__flag--warranty::before { content: '\2713'; background: #2E7D4F; }
.ic-compare__summary { margin: 0 0 12px; padding: 14px 16px; background: #F4F2EF; border-left: 5px solid #3A3431; border-radius: 10px; font-size: 17px; font-weight: 600; line-height: 1.45; color: var(--ic-ink); }
.ic-compare__summary:empty { display: none; }
.ic-compare__after { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--ic-line); }
.ic-compare__more { margin: 0; font-weight: 700; color: var(--ic-ink); }
.ic-compare__print-button { justify-self: start; min-height: 44px; padding: 0; border: 0; background: none; font: inherit; font-size: 15px; font-weight: 700; color: var(--ic-ink-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ic-compare__print-button:hover { color: var(--ic-accent); }
.ic-compare__print-button:focus-visible { outline: 3px solid var(--ic-accent); outline-offset: 2px; }
.ic-calc__verdict-compare { font-weight: 700; color: var(--ic-accent); }
.ic-calc__verdict-compare:hover { color: var(--ic-accent-dark); }
@media (max-width: 520px) {
	.ic-compare { padding: 16px; margin-left: -4px; margin-right: -4px; }
	.ic-compare__quote { padding: 12px; }
}
@media print {
	body.ic-printing-compare .ic-compare { border: 0; box-shadow: none; padding: 0; }
	.ic-compare__print-button { display: none !important; }
}

/* Monthly cost line (plugin v1.7.0, off until Ben switches it on). Credit-advertising rule: the line is ONE
   unit, one size and one colour throughout; nothing in it is shrunk, faded, hidden or truncated. The payment
   may be bold, never larger. */
.ic-calc__monthly { margin: 12px 0 0; padding: 10px 0 0; border-top: 1px dashed #D3B9BD; }
.ic-calc__monthly-line, .ic-calc__verdict-monthly { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ic-ink); white-space: normal; overflow: visible; text-overflow: clip; }
.ic-calc__monthly-line *, .ic-calc__verdict-monthly * { font-size: inherit !important; color: inherit !important; opacity: 1 !important; line-height: inherit; }
.ic-calc__monthly-payment { font-weight: 800; }
.ic-calc__verdict-monthly { margin-top: 10px; padding-top: 10px; border-top: 1px dashed rgba(34, 30, 28, 0.2); }
.ic-calc__monthly-how { display: inline; min-height: 0; margin: 0; padding: 0; border: 0; background: none; font: inherit; font-weight: 700; color: var(--ic-ink-soft); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.ic-calc__monthly-how:hover { color: var(--ic-accent); }
.ic-calc__monthly-how:focus-visible { outline: 3px solid var(--ic-accent); outline-offset: 2px; }
.ic-calc__monthly-term { display: inline-flex; align-items: center; gap: 8px; margin: 8px 12px 0 0; font-size: 15px; color: var(--ic-ink-soft); }
.ic-calc__monthly-term select { width: auto; min-height: 40px; padding: 4px 32px 4px 10px; font-size: 15px; }
.ic-calc__monthly-explain { margin: 8px 0 0; font-size: 16px; line-height: 1.55; color: var(--ic-ink-soft); }
