/* ImprovementCalc — site chrome. Content and block styles are in blocks.css. */

: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;
	--ic-radius-lg: 12px;
	--ic-shadow: 0 12px 32px rgba(34, 30, 28, 0.08);
	--ic-gutter: 24px;
	--ic-wide: 1180px;
	--ic-content: 760px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--ic-ground);
	color: var(--ic-ink);
	font-family: var(--ic-font-body);
	font-size: 18px;
	line-height: 1.7;
	text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; }
a { color: var(--ic-accent); text-underline-offset: 0.15em; }
a:hover { color: var(--ic-accent-dark); }
:focus-visible { outline: 3px solid var(--ic-accent); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3, h4 { font-family: var(--ic-font-head); line-height: 1.2; color: var(--ic-ink); }

.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;
}

.ic-skip {
	position: absolute; left: 16px; top: -100px; z-index: 100;
	background: var(--ic-ink); color: #fff; padding: 12px 18px; border-radius: var(--ic-radius); font-weight: 700;
}
.ic-skip:focus { top: 12px; color: #fff; }

.ic-wrap { max-width: calc(var(--ic-wide) + 2 * var(--ic-gutter)); margin: 0 auto; padding: 0 var(--ic-gutter); }
.ic-wrap--content { max-width: calc(var(--ic-content) + 2 * var(--ic-gutter)); }
.ic-main { display: block; outline: none; }

.ic-icon { width: 1.1em; height: 1.1em; flex: 0 0 auto; vertical-align: -0.15em; }

.ic-eyebrow {
	margin: 0 0 4px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
	text-transform: uppercase; color: var(--ic-muted);
}

/* Top bar and header ------------------------------------------------------ */

.ic-topbar { background: var(--ic-ink); color: #D8D2CD; font-size: 14px; line-height: 1.4; }
.ic-topbar__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding-top: 8px; padding-bottom: 8px; }
.ic-topbar a { color: #fff; }
.ic-topbar a:hover { color: #fff; text-decoration-thickness: 2px; }

.ic-header {
	position: relative; z-index: 20; background: var(--ic-surface);
	border-top: 4px solid var(--ic-accent); border-bottom: 1px solid var(--ic-border);
	box-shadow: 0 2px 10px rgba(34, 30, 28, 0.04);
}
.ic-header__inner { display: flex; align-items: center; gap: 16px 28px; min-height: 84px; }

/* Brand: logo mark, two-tone name, tagline */
.ic-brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; color: var(--ic-ink); text-decoration: none; min-width: 0; }
.ic-brand:hover { color: var(--ic-ink); }
.ic-brand__mark { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 11px; box-shadow: 0 2px 6px rgba(123, 30, 40, 0.25); }
.ic-brand__logo { display: block; max-height: 48px; width: auto; }
.ic-brand__text { display: flex; flex-direction: column; min-width: 0; }
.ic-wordmark {
	font-family: var(--ic-font-head); font-weight: 800; font-size: 30px; line-height: 1.1; letter-spacing: -0.025em;
	color: var(--ic-ink); white-space: nowrap;
}
.ic-wordmark span { color: var(--ic-accent); }
.ic-brand__tagline { margin-top: 3px; font-size: 13.5px; line-height: 1.3; color: var(--ic-muted); white-space: nowrap; }
.ic-brand:hover .ic-wordmark span { color: var(--ic-accent-dark); }

.ic-nav { position: static; }
.ic-nav__toggle {
	display: none; cursor: pointer; align-items: center; gap: 8px;
	min-height: 44px; padding: 0 14px; border: 1px solid var(--ic-border); border-radius: var(--ic-radius);
	background: var(--ic-surface); font: inherit; font-weight: 700; color: var(--ic-ink);
}
.ic-nav__toggle[aria-expanded="true"] { border-color: var(--ic-accent); color: var(--ic-accent); }

.ic-menu { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; padding: 0; list-style: none; }
.ic-menu a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--ic-radius);
	font-weight: 600; font-size: 16px; color: var(--ic-ink); text-decoration: none; transition: background-color .15s, color .15s;
}
.ic-menu a:hover { background: var(--ic-ground); color: var(--ic-accent); }
.ic-menu .current-menu-item > a, .ic-menu .current-page-ancestor > a, .ic-menu .current-menu-ancestor > a {
	background: var(--ic-accent-wash); color: var(--ic-accent);
}
.ic-menu__all a, .ic-menu .ic-menu-accent a { color: var(--ic-accent); }

/* "Calculators" drop-down */
.ic-nav__panel { display: flex; align-items: center; gap: 6px; }
.ic-mega__toggle {
	display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 14px; border: 0; border-radius: var(--ic-radius);
	background: transparent; font: inherit; font-weight: 600; font-size: 16px; color: var(--ic-ink); cursor: pointer;
	transition: background-color .15s, color .15s;
}
.ic-mega__toggle:hover, .ic-mega__toggle[aria-expanded="true"] { background: var(--ic-accent-wash); color: var(--ic-accent); }
.ic-mega__toggle .ic-icon { width: 16px; height: 16px; transition: transform .15s; }
.ic-mega__toggle[aria-expanded="true"] .ic-icon { transform: rotate(180deg); }
.ic-mega__panel {
	position: absolute; left: 0; right: 0; top: 100%; z-index: 40;
	background: var(--ic-surface); border-top: 1px solid var(--ic-border); border-bottom: 3px solid var(--ic-accent);
	box-shadow: 0 18px 40px rgba(34, 30, 28, 0.14);
}
.ic-mega__inner { padding-top: 28px; padding-bottom: 24px; }
.ic-mega__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px 32px; }
.ic-mega__hub-link {
	display: block; padding-bottom: 8px; margin-bottom: 6px; border-bottom: 2px solid var(--ic-accent-wash);
	font-family: var(--ic-font-head); font-weight: 800; font-size: 17px; color: var(--ic-ink); text-decoration: none;
}
.ic-mega__hub-link:hover { color: var(--ic-accent); }
.ic-mega__list { margin: 0; padding: 0; list-style: none; }
.ic-mega__list a {
	display: flex; align-items: center; min-height: 34px; font-size: 15px; line-height: 1.3; color: var(--ic-ink-soft); text-decoration: none;
}
.ic-mega__list a:hover { color: var(--ic-accent); text-decoration: underline; }
.ic-mega__more a { font-weight: 700; color: var(--ic-accent); }
.ic-mega__all { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid var(--ic-line); }
.ic-mega__all a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; font-weight: 700; text-decoration: none; }
.ic-mega__all a:hover { text-decoration: underline; }

/* Header button */
.ic-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px;
	border-radius: var(--ic-radius); background: var(--ic-accent); color: #fff; font-weight: 700; font-size: 16px;
	text-decoration: none; white-space: nowrap; box-shadow: 0 2px 8px rgba(123, 30, 40, 0.22); transition: background-color .15s;
}
.ic-btn:hover { background: var(--ic-accent-dark); color: #fff; }
.ic-btn .ic-icon { width: 18px; height: 18px; }
.ic-nav__cta { display: none; }

@media (max-width: 1199px) {
	.ic-header__inner { gap: 12px 16px; }
	.ic-menu a { padding: 0 10px; }
}

/* Phones and tablets: the menu folds behind a button (shown open if JavaScript is off). */
@media (max-width: 1023px) {
	.ic-header__inner { min-height: 72px; }
	.ic-header__cta { display: none; }
	.js .ic-nav__toggle { display: inline-flex; }
	.js .ic-nav__panel { display: none; }
	.js .ic-nav.is-open .ic-nav__panel { display: block; }
	.no-js .ic-header__inner { flex-wrap: wrap; }
	.js .ic-nav__panel {
		position: absolute; left: 0; right: 0; top: 100%;
		background: var(--ic-surface); border-bottom: 3px solid var(--ic-accent); box-shadow: var(--ic-shadow);
		padding: 8px var(--ic-gutter) 20px;
	}
	.ic-menu { flex-direction: column; align-items: stretch; gap: 0; }
	.ic-menu a { width: 100%; padding: 0 4px; border-radius: 0; border-bottom: 1px solid var(--ic-line); font-size: 17px; min-height: 52px; }
	.ic-menu a:hover, .ic-menu .current-menu-item > a, .ic-menu .current-page-ancestor > a { background: transparent; }
	.ic-nav__cta { display: flex; width: 100%; margin-top: 16px; min-height: 52px; }
	.ic-brand__mark { width: 38px; height: 38px; }
	.ic-wordmark { font-size: 21px; }
}
@media (max-width: 560px) {
	.ic-brand__tagline { display: none; }
}

/* Sections ---------------------------------------------------------------- */

.ic-band { padding: 56px 0; }
.ic-band--white { background: var(--ic-surface); border-top: 1px solid var(--ic-border); border-bottom: 1px solid var(--ic-border); }
.ic-band + .ic-band--white, .ic-band--white + .ic-band--white { border-top: 0; }

.ic-section-title { margin: 0 0 8px; font-size: 30px; font-weight: 800; letter-spacing: -0.01em; color: var(--ic-ink); }
.ic-section-intro { margin: 0 0 28px; font-size: 18px; color: var(--ic-ink-soft); }

/* Homepage hero ----------------------------------------------------------- */

.ic-hero { padding: 64px 0; }
.ic-hero__inner { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; }
.ic-hero__inner:has(.ic-quick) { align-items: flex-start; }
.ic-hero__inner:has(.ic-quick) .ic-hero__text { padding-top: 40px; }
@media (max-width: 899px) { .ic-hero__inner:has(.ic-quick) .ic-hero__text { padding-top: 0; } }
.ic-hero__text { flex: 1 1 480px; min-width: 0; }
.ic-hero__title {
	margin: 0; font-size: clamp(34px, 5vw, 50px); line-height: 1.08; font-weight: 800;
	letter-spacing: -0.02em; color: var(--ic-accent);
}
.ic-hero__intro { margin: 20px 0 28px; font-size: 20px; line-height: 1.55; color: var(--ic-ink-soft); max-width: 36em; }

.ic-example {
	flex: 1 1 360px; min-width: 0; background: var(--ic-surface); border: 1px solid var(--ic-border);
	border-radius: var(--ic-radius); padding: 28px; box-shadow: var(--ic-shadow);
}
.ic-example__title { margin: 0 0 18px; font-family: var(--ic-font-head); font-weight: 700; font-size: 19px; line-height: 1.3; }
.ic-example__rows { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px; margin: 0 0 18px; font-size: 16px; line-height: 1.4; }
.ic-example__rows dt { color: var(--ic-muted); }
.ic-example__rows dd { margin: 0; font-weight: 600; }
.ic-example__result { border-top: 1px solid var(--ic-line); padding-top: 16px; }
.ic-example__note { margin: 0; font-size: 15px; color: var(--ic-muted); }
.ic-example__range { margin: 2px 0 0; font-family: var(--ic-font-head); font-size: clamp(28px, 3.4vw, 34px); font-weight: 800; color: var(--ic-accent); line-height: 1.2; }
.ic-example__link { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; margin-top: 6px; font-weight: 700; }

/* Homepage quick estimate (live compact calculator) ------------------------ */

.ic-quick {
	flex: 1 1 380px; min-width: 0; background: var(--ic-surface); border: 1px solid var(--ic-border);
	border-top: 4px solid var(--ic-accent); border-radius: var(--ic-radius); padding: 24px 26px 22px; box-shadow: var(--ic-shadow);
}
.ic-quick__title {
	margin: 0 0 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ic-accent);
}
.ic-quick__single { margin: -8px 0 12px; font-family: var(--ic-font-head); font-weight: 700; font-size: 20px; line-height: 1.3; }
.ic-quick__picker { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.ic-quick__picker label { font-family: var(--ic-font-head); font-weight: 700; font-size: 19px; line-height: 1.3; color: var(--ic-ink); }
.ic-quick__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-quick__picker select:focus-visible { outline: 3px solid var(--ic-accent); outline-offset: 2px; }
.ic-quick__more { margin: 14px 0 0; font-size: 15px; text-align: center; }

/* Homepage: popular links and trust points under the search */
.ic-popular { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 18px; max-width: 600px; }
.ic-popular__label { font-size: 15px; font-weight: 700; color: var(--ic-muted); }
.ic-popular__list { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ic-popular__list a {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px;
	background: var(--ic-surface); border: 1px solid var(--ic-border); color: var(--ic-ink);
	font-size: 15px; font-weight: 600; text-decoration: none; transition: border-color .15s, color .15s;
}
.ic-popular__list a:hover { border-color: var(--ic-accent); color: var(--ic-accent); }

.ic-points { display: grid; gap: 12px; margin: 32px 0 0; padding: 26px 0 0; list-style: none; max-width: 600px; border-top: 1px solid var(--ic-border); }
.ic-points li { display: flex; align-items: flex-start; gap: 12px; font-size: 17px; font-weight: 600; line-height: 1.4; color: var(--ic-ink); }
.ic-points .ic-icon {
	flex: 0 0 auto; width: 24px; height: 24px; padding: 5px; margin-top: -1px; border-radius: 50%;
	background: var(--ic-accent); color: #fff; stroke-width: 3.2;
}
@media (max-width: 899px) {
	.ic-points { margin-top: 24px; padding-top: 20px; }
	.ic-points li { font-size: 16px; }
}

/* Finder ------------------------------------------------------------------ */

.ic-finder { position: relative; max-width: 600px; }
.ic-finder__form {
	display: flex; border: 2px solid var(--ic-ink); border-radius: 6px; overflow: hidden; background: var(--ic-surface);
}
.ic-finder__form:focus-within { outline: 3px solid var(--ic-accent); outline-offset: 2px; }
.ic-finder__input {
	flex: 1 1 auto; min-width: 0; min-height: 56px; padding: 0 18px; border: 0; background: transparent;
	font: inherit; font-size: 18px; color: var(--ic-ink);
}
.ic-finder__input:focus { outline: none; }
.ic-finder__input::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.ic-finder__input::placeholder { color: var(--ic-muted); }
.ic-finder__button {
	display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 24px; border: 0;
	background: var(--ic-accent); color: #fff; font: inherit; font-size: 17px; font-weight: 700; cursor: pointer;
}
.ic-finder__button:hover { background: var(--ic-accent-dark); }
.ic-finder__button:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
@media (max-width: 480px) { .ic-finder__button span { display: none; } .ic-finder__button { padding: 0 18px; } }

.ic-finder__results {
	position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30;
	margin: 0; padding: 6px; list-style: none; background: var(--ic-surface);
	border: 1px solid var(--ic-border); border-radius: var(--ic-radius); box-shadow: var(--ic-shadow);
	max-height: 420px; overflow-y: auto;
}
.ic-finder__hit {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; align-items: baseline;
	padding: 10px 12px; border-radius: 6px; text-decoration: none; color: var(--ic-ink); line-height: 1.35;
}
.ic-finder__hit:hover, .ic-finder__hit:focus { background: var(--ic-accent-wash); color: var(--ic-ink); outline: none; }
.ic-finder__hit-title { font-weight: 700; }
.ic-finder__hit-hub { font-size: 14px; color: var(--ic-muted); }
.ic-finder__none { padding: 10px 12px; font-size: 16px; color: var(--ic-ink-soft); }

/* Homepage hub list and steps ---------------------------------------------- */

.ic-hublist { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); column-gap: 32px; margin: 0; padding: 0; list-style: none; }
.ic-hublist a {
	display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 64px;
	padding: 14px 0; border-bottom: 1px solid var(--ic-line); text-decoration: none; color: var(--ic-ink); line-height: 1.35;
}
.ic-hublist a:hover .ic-hublist__name { color: var(--ic-accent); }
.ic-hublist__name { display: block; font-weight: 700; font-size: 17px; }
.ic-hublist__desc { display: block; font-size: 15px; color: var(--ic-muted); margin-top: 2px; }
.ic-hublist .ic-icon { color: var(--ic-accent); }

.ic-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; counter-reset: ic-step; }
.ic-steps li { counter-increment: ic-step; }
.ic-steps li::before {
	content: counter(ic-step); display: block; margin-bottom: 8px;
	font-family: var(--ic-font-head); font-size: 40px; font-weight: 800; line-height: 1; color: var(--ic-accent);
}
.ic-steps h3 { margin: 0 0 8px; font-size: 20px; }
.ic-steps p { margin: 0; color: var(--ic-ink-soft); font-size: 17px; }

/* Page heads and breadcrumbs ---------------------------------------------- */

.ic-pagehead { padding: 28px 0 24px; }
.ic-pagehead__title {
	margin: 12px 0 6px; font-size: clamp(32px, 4.4vw, 44px); line-height: 1.1; font-weight: 800;
	letter-spacing: -0.02em; color: var(--ic-accent);
}
.ic-breadcrumbs { font-size: 15px; color: var(--ic-muted); line-height: 1.5; }
.ic-breadcrumbs a { color: var(--ic-ink-soft); }
.ic-breadcrumbs a:hover { color: var(--ic-accent); }
.ic-breadcrumbs__sep { margin: 0 4px; }
.ic-updated { margin: 0; font-size: 15px; color: var(--ic-muted); }

/* Author byline under the title */
.ic-byline { display: flex; flex-wrap: wrap; align-items: center; column-gap: 10px; row-gap: 4px; margin: 4px 0 0; font-size: 15px; line-height: 1.4; color: var(--ic-muted); }
.entry .ic-byline__photo, .ic-byline__photo { flex: none; margin: 0; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--ic-surface), 0 0 0 3px var(--ic-border); }
.ic-byline__who { color: var(--ic-ink-soft); }
.ic-byline__name { font-weight: 700; color: var(--ic-ink); }
a.ic-byline__name { text-decoration: none; border-bottom: 1px solid var(--ic-border); }
a.ic-byline__name:hover { color: var(--ic-accent); border-color: var(--ic-accent); }
.ic-byline__meta { display: inline-flex; flex-wrap: wrap; align-items: center; column-gap: 10px; }
.ic-byline__meta::before, .ic-byline__date + .ic-byline__method::before { content: '·'; display: inline-block; color: var(--ic-muted); text-decoration: none; }
.ic-byline__date + .ic-byline__method::before { margin-right: 10px; }
@media (max-width: 640px) {
	.ic-byline__meta { flex-basis: 100%; padding-left: 42px; }
	.ic-byline__meta { flex-direction: column; align-items: flex-start; }
	.ic-byline__meta::before, .ic-byline__date + .ic-byline__method::before { content: none; }
}
.ic-byline__method { color: var(--ic-muted); font-size: 14px; }
.ic-byline__method:hover { color: var(--ic-accent); }

/* About the author box (end of hub and calculator pages) */
.ic-author {
	display: flex; gap: 20px; align-items: flex-start; margin: 32px 0; padding: 22px 24px;
	background: #E9E5E1; border-radius: var(--ic-radius); font-size: 16px; line-height: 1.6;
}
.entry .ic-author__photo, .ic-author__photo { flex: none; max-width: none; margin: 0; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--ic-surface); }
.ic-author__body { min-width: 0; }
.entry .ic-author p, .ic-author p { margin: 0; }
.ic-author__kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ic-muted); }
.entry .ic-author__name, .ic-author__name { margin: 2px 0 6px; font-size: 20px; line-height: 1.25; color: var(--ic-ink); }
.ic-author__bio { color: var(--ic-ink-soft); }
.entry .ic-author .ic-author__links, .ic-author__links { margin-top: 10px; font-weight: 600; }
.ic-author__links a { color: var(--ic-ink); }
.ic-author__links a:hover { color: var(--ic-accent); }
@media (max-width: 560px) {
	.ic-author { flex-direction: column; gap: 12px; padding: 18px; }
	.entry .ic-author__photo, .ic-author__photo { width: 60px; height: 60px; }
}

/* Article layout (calculator pages and posts) ------------------------------ */

.ic-article__layout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-bottom: 72px; }
.ic-article__side { flex: 1 1 240px; min-width: 0; }
.ic-article__body { flex: 999 1 560px; min-width: 0; }

@media (min-width: 900px) {
	.ic-article__layout { flex-wrap: nowrap; }
	.ic-article__side { flex: 0 0 250px; position: sticky; top: calc(var(--ic-adminbar) + var(--ic-header-h) + 16px); max-height: calc(100vh - var(--ic-adminbar) - var(--ic-header-h) - 32px); overflow-y: auto; transition: top .18s ease, max-height .18s ease; }
}
@media (max-width: 899px) {
	.ic-article__layout { flex-direction: column; align-items: stretch; gap: 0; }
	.ic-article__side, .ic-article__body { width: 100%; flex: 0 0 auto; }
	.ic-article__side .ic-toc { margin-bottom: 24px; }
}

/* v1.12.3 (Ben): a soft warm tint so the box reads as navigation, not another content card (v1.12.4: thin border, 4px oxblood top),
   and the section being read is highlighted (assets/js/nav.js sets aria-current="location"). */
.ic-toc { background: #F7EEEC; border: 1px solid var(--ic-border); border-top: 4px solid var(--ic-accent); border-radius: var(--ic-radius); padding: 14px 20px 16px; }
.ic-toc__title {
	position: relative; cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; min-height: 32px;
	font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ic-muted);
}
.ic-toc__title::-webkit-details-marker { display: none; }
.ic-toc__title::after { content: '–'; font-size: 18px; color: var(--ic-ink-soft); }
.ic-toc__details:not([open]) .ic-toc__title::after { content: '+'; }
.ic-toc__list { margin: 6px 0 0; padding: 0; list-style: none; font-size: 16px; line-height: 1.35; }
.ic-toc__list a { position: relative; display: block; padding: 8px 0; border-bottom: 1px solid rgba(123, 30, 40, 0.10); color: var(--ic-ink); text-decoration: none; transition: color .15s; }
.ic-toc__list a[aria-current="location"] { color: var(--ic-accent); font-weight: 700; }
.ic-toc__list a[aria-current="location"]::before { content: ''; position: absolute; left: -20px; top: 7px; bottom: 7px; width: 4px; border-radius: 0 3px 3px 0; background: var(--ic-accent); }
.ic-toc__list li:last-child a { border-bottom: 0; }
.ic-toc__list a:hover { color: var(--ic-accent); }

/* Cards, chips, related ---------------------------------------------------- */

.ic-cards-section { margin: 8px 0 40px; }
.ic-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin: 16px 0 0; padding: 0; list-style: none; }
.ic-card {
	position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 100%; padding: 22px;
	background: var(--ic-surface); border: 1px solid var(--ic-border); border-radius: var(--ic-radius);
	line-height: 1.4; transition: border-color .15s, box-shadow .15s;
}
.ic-card:hover { border-color: var(--ic-accent); box-shadow: 0 6px 18px rgba(34, 30, 28, 0.08); }
.ic-card:focus-within { outline: 3px solid var(--ic-accent); outline-offset: 2px; }
.ic-cards .ic-card__title, .entry .ic-cards .ic-card__title {
	margin: 0; font-family: var(--ic-font-head); font-weight: 700; font-size: 18px; line-height: 1.3; color: var(--ic-ink);
}
.ic-card__link { color: var(--ic-ink); text-decoration: none; }
.ic-card__link:hover { color: var(--ic-accent); }
.ic-card__link:focus-visible { outline: none; }
/* Whole card is clickable; the title is the card's only link. */
.ic-card__link::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
.ic-cards .ic-card__desc, .entry .ic-cards .ic-card__desc { margin: 0; font-size: 16px; color: var(--ic-muted); }
.ic-cards .ic-card__price, .entry .ic-cards .ic-card__price {
	margin: 2px 0 0; padding-top: 10px; border-top: 1px solid var(--ic-line); font-size: 15px; color: var(--ic-ink-soft);
	font-variant-numeric: tabular-nums;
}
.ic-card__price-label { display: block; margin-bottom: 2px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ic-muted); }
.ic-card__price-range { font-family: var(--ic-font-head); font-size: 17px; font-weight: 800; color: var(--ic-accent); white-space: nowrap; }
.ic-card__price-context { color: var(--ic-muted); }
.ic-card__cta {
	display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; margin-top: auto; min-height: 40px; padding: 0 16px;
	border-radius: var(--ic-radius); background: var(--ic-accent-wash); font-weight: 700; font-size: 15px; color: var(--ic-accent);
}
.ic-card:hover .ic-card__cta { background: var(--ic-accent); color: #fff; }
.ic-card--guide .ic-card__cta { background: var(--ic-ground); color: var(--ic-ink); }
/* Featured image on cards (only when the page has one): full-bleed 16:9 strip on top. */
.ic-card__media {
	margin: -22px -22px 6px; aspect-ratio: 16 / 9; overflow: hidden;
	border-radius: calc(var(--ic-radius) - 1px) calc(var(--ic-radius) - 1px) 0 0; background: var(--ic-ground);
}
.ic-card__img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.ic-card:hover .ic-card__img { transform: scale(1.03); }
@media (prefers-reduced-motion: reduce) { .ic-card__img { transition: none; } .ic-card:hover .ic-card__img { transform: none; } }
.entry .ic-cards { padding: 0; margin: 16px 0 0; }
.entry .ic-cards > li { margin: 0; }
.entry .ic-cards > li::marker { content: none; }
.ic-page-link--soon { color: var(--ic-muted); font-style: italic; }
.ic-page-link--soon[title] { cursor: help; text-decoration: underline dotted; text-underline-offset: 0.2em; }

.ic-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 48px; padding: 0; list-style: none; }
.ic-chips a {
	display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: 999px;
	background: var(--ic-surface); border: 1px solid var(--ic-border); color: var(--ic-ink); text-decoration: none; font-weight: 600; font-size: 16px;
}
.ic-band--white .ic-chips a { background: var(--ic-ground); }
.ic-chips a:hover { border-color: var(--ic-accent); color: var(--ic-accent); }
.ic-otherhubs .ic-chips { margin-bottom: 0; }

.ic-related { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--ic-border); }
.ic-related__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 0 32px; margin: 12px 0 0; padding: 0; list-style: none; }
.ic-related__list a {
	display: flex; justify-content: space-between; align-items: center; gap: 12px; min-height: 52px;
	border-bottom: 1px solid var(--ic-line); color: var(--ic-ink); text-decoration: none; font-weight: 600; line-height: 1.35;
}
.ic-related__list a:hover { color: var(--ic-accent); }
.ic-related__list .ic-icon { color: var(--ic-accent); }
.ic-related__hub { margin: 16px 0 0; font-weight: 700; }

.ic-hub__content { padding-bottom: 56px; }

/* Share this guide ---------------------------------------------------------- */

.ic-share {
	margin: 40px 0 0; padding: 22px 24px; background: var(--ic-surface);
	border: 1px solid var(--ic-border); border-radius: var(--ic-radius-lg);
}
.ic-share .ic-share__title, .entry .ic-share .ic-share__title {
	margin: 0 0 14px; font-family: var(--ic-font-head); font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--ic-ink);
}
.ic-share .ic-share__list, .entry .ic-share .ic-share__list { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.entry .ic-share__list > li { margin: 0; }
.entry .ic-share__list > li::marker { content: none; }
.ic-share__js { display: none; }
.ic-share.has-js .ic-share__js { display: list-item; }
.ic-share__btn {
	display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px;
	border: 1px solid var(--ic-border); border-radius: 999px; background: var(--ic-surface);
	font: inherit; font-size: 15px; font-weight: 700; color: var(--ic-ink); text-decoration: none; cursor: pointer;
	transition: border-color .15s, color .15s, background-color .15s;
}
.ic-share__btn:hover { border-color: var(--ic-accent); color: var(--ic-accent); }
.ic-share__btn--primary { background: var(--ic-accent); border-color: var(--ic-accent); color: #fff; }
.ic-share__btn--primary:hover { background: var(--ic-accent-dark); color: #fff; }
.ic-share__btn .ic-icon { width: 17px; height: 17px; }
.ic-share .ic-share__status, .entry .ic-share .ic-share__status { margin: 10px 0 0; min-height: 1.4em; font-size: 15px; color: var(--ic-ok); }
.ic-share__status:empty { margin: 0; min-height: 0; }

/* Search results ----------------------------------------------------------- */

.ic-pagehead .ic-finder { margin-top: 20px; }
.ic-results { margin: 8px 0 32px; padding: 0; list-style: none; }
.ic-results__item { padding: 20px 0; border-bottom: 1px solid var(--ic-border); }
.ic-results__title { margin: 0 0 4px; font-size: 22px; }
.ic-results__title a { text-decoration: none; }
.ic-results__item p:last-child { margin: 0; color: var(--ic-ink-soft); }
.ic-empty { font-size: 19px; }
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 56px; }
.nav-links .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px;
	border: 1px solid var(--ic-border); border-radius: var(--ic-radius); background: var(--ic-surface); text-decoration: none; font-weight: 600;
}
.nav-links .current { background: var(--ic-accent); border-color: var(--ic-accent); color: #fff; }

/* All calculators directory ([ic_all_calculators]) ------------------------- */

.ic-plain--wide .entry > p { max-width: 760px; }
.ic-directory { columns: 320px 3; column-gap: 20px; margin: 28px 0 64px; }
.ic-directory__hub {
	display: flex; flex-direction: column; break-inside: avoid; margin: 0 0 20px; padding: 22px 22px 18px;
	background: var(--ic-surface); border: 1px solid var(--ic-border); border-top: 4px solid var(--ic-accent);
	border-radius: var(--ic-radius-lg);
}
.ic-directory .ic-directory__title, .entry .ic-directory .ic-directory__title { margin: 0; font-size: 22px; line-height: 1.25; color: var(--ic-ink); }
.ic-directory__title a { color: inherit; text-decoration: none; }
.ic-directory__title a:hover { color: var(--ic-accent); }
.entry .ic-directory .ic-directory__desc { margin: 4px 0 0; font-size: 15px; line-height: 1.45; color: var(--ic-muted); }
.entry .ic-directory .ic-directory__list { margin: 12px 0 0; padding: 0; list-style: none; }
.entry .ic-directory__list > li { margin: 0; }
.entry .ic-directory__list > li::marker { content: none; }
.ic-directory__link {
	display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 4px 12px;
	min-height: 52px; padding: 8px 0; border-bottom: 1px solid var(--ic-line);
	color: var(--ic-ink); text-decoration: none; font-size: 16px; line-height: 1.35;
}
.ic-directory__link:hover .ic-directory__name { color: var(--ic-accent); }
.ic-directory__name { font-weight: 600; }
.ic-directory__price {
	font-family: var(--ic-font-head); font-size: 14px; font-weight: 700; color: var(--ic-accent);
	white-space: nowrap; font-variant-numeric: tabular-nums;
}
.ic-directory__link .ic-icon { color: var(--ic-accent); }
.entry .ic-directory .ic-directory__more { margin: 0; padding-top: 12px; font-size: 15px; font-weight: 700; }
.ic-directory__more a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; text-decoration: none; }
.ic-directory__more a:hover { text-decoration: underline; }
@media (max-width: 420px) {
	.ic-directory__link { grid-template-columns: minmax(0, 1fr) auto; }
	.ic-directory__price { grid-column: 1; grid-row: 2; }
	.ic-directory__link .ic-icon { grid-row: 1 / span 2; grid-column: 2; }
}

/* Footer ------------------------------------------------------------------- */

.ic-footer { background: var(--ic-ink); color: #CFC8C2; font-size: 16px; line-height: 1.6; }
.ic-footer a { color: #fff; }
.ic-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 32px; }
.ic-footer__grid p { margin: 0 0 8px; }
.ic-footer__brand { font-family: var(--ic-font-head); font-weight: 800; font-size: 20px; color: #fff; }
.ic-footer__heading { font-weight: 700; color: #fff; }
.ic-footer__menu { margin: 0; padding: 0; list-style: none; }
.ic-footer__menu a { display: inline-flex; min-height: 36px; align-items: center; color: #CFC8C2; }
.ic-footer__menu a:hover { color: #fff; }
.ic-footer__bottom {
	display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px;
	padding-top: 18px; padding-bottom: 24px; font-size: 14px;
	background: linear-gradient(#3A3431, #3A3431) no-repeat var(--ic-gutter) 0 / calc(100% - 2 * var(--ic-gutter)) 1px;
}
.ic-footer__bottom p { margin: 0; }
.ic-footer__legal { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0; padding: 0; list-style: none; }
.ic-footer__legal a { color: #CFC8C2; }

@media print {
	.ic-topbar, .ic-header, .ic-footer, .ic-article__side, .ic-calc__cta, .ic-calc__lead, .ic-related, .ic-share, .ic-cards-section, .ic-calc__share { display: none !important; }
	/* "Print estimate": the plugin adds this class to <body> while printing, so only the title and the calculator print. */
	body.ic-printing-estimate .ic-breadcrumbs, body.ic-printing-estimate .ic-updated, body.ic-printing-estimate .ic-byline, body.ic-printing-estimate .ic-author { display: none !important; }
	body.ic-printing-estimate .entry > *:not(.ic-calc):not(.ic-calc-anchor) { display: none !important; }
	body.ic-printing-estimate .ic-calc { box-shadow: none; border-color: #999; }
	body.ic-printing-estimate .ic-calc__lead { display: none !important; }
	body { background: #fff; }
}

.ic-hub__variants { padding-bottom: 56px; }
.ic-hub__variants .ic-related { margin-top: 0; }
.ic-article__side:not(:has(*)) { display: none; }

@media (max-width: 1023px) {
	.ic-nav__panel { flex-direction: column; align-items: stretch; gap: 0; }
	.js .ic-nav.is-open .ic-nav__panel { display: flex; }
	.ic-mega__toggle {
		width: 100%; justify-content: space-between; min-height: 52px; padding: 0 4px; border-radius: 0;
		border-bottom: 1px solid var(--ic-line); font-size: 17px;
	}
	.ic-mega__toggle:hover, .ic-mega__toggle[aria-expanded="true"] { background: transparent; }
	.ic-mega__panel { position: static; border: 0; box-shadow: none; background: var(--ic-ground); }
	.ic-mega__inner { padding: 6px 12px 10px; }
	.ic-mega__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
	.ic-mega__hub-link { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--ic-line); font-family: var(--ic-font-body); font-weight: 600; font-size: 16px; }
	.ic-mega__list { display: none; }
	.ic-mega__all { margin: 0; padding: 8px 0 0; border: 0; }
}

/* Homepage: "Already have a quote? Check if it's fair → · Finished a project? Share what you paid →" */
.ic-price-tools { margin: 18px 0 0; font-size: 15px; line-height: 1.6; color: var(--ic-ink-soft); }
.ic-price-tools a { font-weight: 700; color: var(--ic-accent); white-space: nowrap; }
.ic-price-tools a:hover { color: var(--ic-accent-dark); }
.ic-price-tools__sep { color: var(--ic-muted); }
@media (max-width: 640px) { .ic-price-tools__item { display: block; } .ic-price-tools__sep { display: none; } }

/* Homepage hero card tabs: "Estimate a cost" / "Check a quote" (theme-home-quote-checker-spec.md) */
.ic-quick__visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic-quick--tabs { padding-top: 0; }
.ic-quick__tabs { display: grid; grid-template-columns: 1fr 1fr; margin: 0 -26px 18px; border-bottom: 1px solid var(--ic-border); }
.ic-quick__tab {
	position: relative; min-height: 54px; padding: 12px 10px; border: 0; background: var(--ic-ground);
	font: inherit; font-family: var(--ic-font-head); font-size: 16px; font-weight: 700; color: var(--ic-muted); cursor: pointer;
}
.ic-quick__tab:first-child { border-right: 1px solid var(--ic-border); }
.ic-quick__tab[aria-selected="true"] { background: var(--ic-surface); color: var(--ic-accent); }
.ic-quick__tab[aria-selected="true"]::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--ic-accent); }
.ic-quick__tab:hover { color: var(--ic-ink); }
.ic-quick__tab:focus-visible { outline: 3px solid var(--ic-accent); outline-offset: -3px; }
.ic-quote-check__intro { margin: 0 0 14px; font-size: 16px; line-height: 1.5; color: var(--ic-ink-soft); }
.ic-quote-check__form { display: grid; gap: 14px; }
.ic-quote-check__form .ic-quick__picker { margin-bottom: 0; }
.ic-quote-check__row { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.ic-quote-check__field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ic-quote-check__field label { font-weight: 700; font-size: 15px; color: var(--ic-ink); }
.ic-quote-check__optional { font-weight: 400; color: var(--ic-muted); }
.ic-quote-check__money { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ic-ink-soft); }
.ic-quote-check__field input {
	width: 100%; min-width: 0; min-height: 48px; padding: 0 12px; border: 1px solid #B9AFA8; border-radius: 8px;
	background: #fff; font: inherit; font-size: 17px; color: var(--ic-ink);
}
.ic-quote-check__field input:focus { outline: 3px solid var(--ic-accent); outline-offset: 1px; border-color: var(--ic-accent); }
.ic-quote-check__submit {
	display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 54px; padding: 10px 20px;
	border: 0; border-radius: 10px; background: var(--ic-accent); color: #fff; font: inherit; font-size: 19px; font-weight: 800; cursor: pointer;
	box-shadow: 0 4px 12px rgba(123, 30, 40, 0.25); transition: background-color .15s;
}
.ic-quote-check__submit:hover { background: var(--ic-accent-dark); }
.ic-quote-check__submit:focus-visible { outline: 3px solid var(--ic-accent); outline-offset: 2px; }
.ic-quote-check__submit .ic-icon { width: 20px; height: 20px; }
.ic-quote-check__note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--ic-muted); text-align: center; }
@media (max-width: 420px) { .ic-quote-check__row { grid-template-columns: 1fr; } }

/* Optional outlined "Check a quote" header button */
.ic-header__actions { display: flex; align-items: center; gap: 10px; }
.ic-btn--outline { background: transparent; color: var(--ic-accent); box-shadow: inset 0 0 0 2px var(--ic-accent); }
.ic-btn--outline:hover { background: var(--ic-accent-wash); color: var(--ic-accent-dark); }
.ic-nav__cta--quote { margin-top: 10px !important; }
.ic-quick--tabs { overflow: hidden; }

.ic-quick.is-quote-tab .ic-quick__more { display: none; }

/* [ic_page_link] inside tables (hub "costs at a glance" Calculator column): a real button,
   and "Coming soon" as a quiet badge. Links in running text stay ordinary links. */
.entry table a.ic-page-link {
	display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 8px 12px;
	background: var(--ic-accent); color: #fff; border-radius: 8px;
	font-weight: 700; font-size: 15px; line-height: 1.25; text-decoration: none;
	box-shadow: 0 2px 6px rgba(123, 30, 40, 0.2); transition: background-color .15s, transform .15s;
}
.entry table a.ic-page-link::after { content: '→'; flex: none; font-weight: 700; }
.entry table a.ic-page-link:hover { background: var(--ic-accent-dark); color: #fff; transform: translateY(-1px); }
.entry table a.ic-page-link:focus-visible { outline: 3px solid var(--ic-accent); outline-offset: 2px; }
.entry table .ic-page-link--soon {
	display: inline-block; padding: 4px 10px; border: 1px dashed #C9BFB7; border-radius: 999px;
	background: var(--ic-ground); font-size: 13px; font-style: normal; font-weight: 600; color: var(--ic-muted); white-space: nowrap;
}
@media print { .entry table a.ic-page-link { background: none; color: inherit; box-shadow: none; padding: 0; } .entry table a.ic-page-link::after { content: none; } }

/* Homepage "Got quotes from contractors?" panel (v1.11.0, theme-price-sharing-spec.md 6b). Large but
   secondary buttons (oxblood outline on white), so the quick estimate's quote button stays the main action. */
.ic-band--quotes { padding: 40px 0; background: var(--ic-surface); border-top: 1px solid var(--ic-border); }
.ic-band--quotes + .ic-band--white { border-top: 0; padding-top: 16px; }
.ic-quotes-panel {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 20px 36px; align-items: center;
	padding: 28px 32px; background: var(--ic-accent-wash); border: 1px solid #E8CDD0; border-radius: var(--ic-radius-lg);
}
.ic-quotes-panel__title { margin: 0 0 8px; font-size: 28px; font-weight: 800; line-height: 1.2; letter-spacing: -0.01em; color: var(--ic-ink); }
.ic-quotes-panel__intro { margin: 0; font-size: 17px; line-height: 1.5; color: var(--ic-ink-soft); }
.ic-quotes-panel__buttons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 12px; }
.ic-quotes-panel__button {
	display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 16px;
	background: #fff; border-radius: 10px; box-shadow: inset 0 0 0 2px var(--ic-accent), 0 4px 12px rgba(123, 30, 40, 0.10);
	font-family: var(--ic-font-head); font-size: 18px; font-weight: 800; line-height: 1.25; color: var(--ic-accent); text-decoration: none;
	transition: background-color .15s, transform .15s, box-shadow .15s;
}
.ic-quotes-panel__button > span { flex: 1 1 auto; }
.ic-quotes-panel__button .ic-icon { flex: none; width: 24px; height: 24px; }
.ic-quotes-panel__button .ic-icon--arrow { width: 20px; height: 20px; transition: transform .15s; }
.ic-quotes-panel__button:hover { background: #fff; color: var(--ic-accent-dark); transform: translateY(-1px); box-shadow: inset 0 0 0 2px var(--ic-accent-dark), 0 8px 18px rgba(123, 30, 40, 0.16); }
.ic-quotes-panel__button:hover .ic-icon--arrow { transform: translateX(3px); }
.ic-quotes-panel__button:focus-visible { outline: 3px solid var(--ic-accent); outline-offset: 3px; }
.ic-quotes-panel__share { margin: 12px 0 0; font-size: 15px; color: var(--ic-ink-soft); }
.ic-quotes-panel__buttons + .ic-quotes-panel__share { text-align: center; }
.ic-quotes-panel__share a { font-weight: 700; color: var(--ic-accent); white-space: nowrap; }
.ic-quotes-panel__share a:hover { color: var(--ic-accent-dark); }
@media (max-width: 860px) {
	.ic-quotes-panel { grid-template-columns: 1fr; padding: 22px 20px; }
	.ic-quotes-panel__title { font-size: 24px; }
	.ic-quotes-panel__buttons + .ic-quotes-panel__share { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .ic-quotes-panel__button, .ic-quotes-panel__button .ic-icon--arrow { transition: none; } .ic-quotes-panel__button:hover { transform: none; } }

/* Sticky header (v1.12.0, theme-sticky-header-spec.md) ----------------------------------------------
   Desktop (>= 1024px; from v1.12.0 also the menu breakpoint, was 900px): sticky at full size, compact after ~80px of scrolling
   (.ic-header--compact, set by assets/js/sticky.js from an IntersectionObserver on .ic-sticky-sentinel).
   The script adds the height the header loses as margin-bottom, so the page never shifts.
   The size change is instant; animating height and margin together still shifted the page when the
   menu wraps (measured in Chromium), so only the shadow and the phone bar's slide are animated.
   Phones and tablets: a slim 56px bar that hides on scroll down and returns on scroll up
   (.ic-header--hidden). Without JavaScript: sticky at full size on desktop, static on phones.
   --ic-header-h is the header's current height (0 when hidden), --ic-header-offset the height that
   anchor targets must clear. */
:root { --ic-header-h: 0px; --ic-header-offset: 72px; --ic-adminbar: var(--wp-admin--admin-bar--height, 0px); }
@media (max-width: 600px) { body.admin-bar { --ic-adminbar: 0px; } } /* WordPress lets the admin bar scroll away here */
.ic-sticky-sentinel { position: absolute; top: 80px; left: 0; width: 1px; height: 1px; pointer-events: none; }
.ic-header--sticky {
	position: sticky; top: var(--ic-adminbar); z-index: 50;
	transition: transform .2s ease, box-shadow .18s ease;
}
/* The height switch itself is instant, paired with an equal margin, so nothing below it moves (no layout
   shift); the shadow fades and, on phones, the bar slides. */
.ic-header.is-measuring, .ic-header.is-measuring * { transition: none !important; }
.ic-header--compact { box-shadow: 0 1px 0 var(--ic-border), 0 6px 18px rgba(34, 30, 28, 0.10); }

:target, .entry h2, .entry h3, .entry [id], .ic-main, .ic-calc, .ic-calc__result, .ic-calc__lead, .ic-calc__quote-step,
.ic-calc__checker, .ic-calc__report, .ic-compare, .ic-compare__result, .ic-tool, .ic-quick {
	scroll-margin-top: calc(var(--ic-adminbar) + var(--ic-header-offset) + 16px);
}

@media (min-width: 1024px) {
	.ic-header--compact .ic-header__inner { min-height: 58px; }
	.ic-header--compact .ic-brand__tagline { display: none; }
	.ic-header--compact .ic-brand__mark { width: 38px; height: 38px; }
	.ic-header--compact .ic-wordmark { font-size: 25px; }
	.ic-header--compact .ic-btn { min-height: 40px; }
	.ic-header--compact .ic-menu a, .ic-header--compact .ic-mega__toggle { min-height: 40px; }
	.ic-header--sticky .ic-mega__panel { max-height: calc(100vh - var(--ic-adminbar) - var(--ic-header-h)); overflow-y: auto; }
}

@media (max-width: 1023px) {
	.no-js .ic-header--sticky { position: relative; top: auto; }
	.js .ic-header--sticky { border-top-width: 3px; }
	.js .ic-header--sticky .ic-header__inner { min-height: 56px; gap: 8px 10px; }
	.js .ic-header--sticky .ic-brand { gap: 9px; }
	.js .ic-header--sticky .ic-brand__tagline { display: none; }
	.js .ic-header--sticky .ic-wordmark { font-size: 22px; }
	.js .ic-header--sticky .ic-brand__mark { width: 38px; height: 38px; border-radius: 9px; }
	/* Bar: logo, compact "Price my project", menu toggle. "Check a quote" leads the opened menu. */
	.js .ic-header--sticky .ic-header__actions { order: 1; }
	.js .ic-header--sticky .ic-nav { order: 2; }
	.js .ic-header--sticky .ic-header__cta:not(.ic-header__cta--quote) {
		display: inline-flex; min-height: 40px; padding: 0 12px; font-size: 15px; box-shadow: none;
	}
	.js .ic-header--sticky .ic-header__cta .ic-icon { display: none; }
	.js .ic-header--sticky .ic-nav__toggle { min-height: 40px; padding: 0 12px; }
	.js .ic-header--sticky .ic-nav.is-open .ic-nav__panel { display: flex; flex-direction: column; align-items: stretch; }
	.js .ic-header--sticky .ic-nav__panel { max-height: calc(100vh - var(--ic-adminbar) - var(--ic-header-h)); overflow-y: auto; }
	.js .ic-header--sticky .ic-nav__cta:not(.ic-nav__cta--quote) { display: none; }
	.js .ic-header--sticky .ic-nav__cta--quote { order: -1; margin: 8px 0 10px !important; }
	.js .ic-header--sticky.ic-header--hidden { transform: translateY(calc(-100% - var(--ic-adminbar) - 8px)); box-shadow: none; }
}
.ic-btn__short { display: none; }
@media (max-width: 539px) {
	.js .ic-header--sticky .ic-header__inner { padding-left: 16px; padding-right: 16px; }
	.js .ic-header--sticky .ic-header__cta .ic-btn__long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
	.js .ic-header--sticky .ic-header__cta .ic-btn__short { display: inline; }
}
@media (max-width: 479px) {
	.js .ic-header--sticky .ic-nav__toggle { padding: 0 10px; gap: 0; }
	.js .ic-header--sticky .ic-nav__toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 539px) { .js .ic-header--sticky .ic-wordmark { font-size: 19px; } .js .ic-header--sticky .ic-brand__mark { width: 34px; height: 34px; } }
@media (max-width: 479px) { .js .ic-header--sticky .ic-wordmark { font-size: 17px; } }
@media (max-width: 400px) {
	.js .ic-header--sticky .ic-wordmark { font-size: 16px; }
	.js .ic-header--sticky .ic-brand__mark { width: 30px; height: 30px; }
	.js .ic-header--sticky .ic-header__cta:not(.ic-header__cta--quote) { padding: 0 10px; font-size: 14px; }
	.js .ic-header--sticky .ic-nav__toggle { padding: 0 10px; gap: 0; }
	.js .ic-header--sticky .ic-nav__toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 374px) {
	.js .ic-header--sticky .ic-header__inner { padding-left: 12px; padding-right: 12px; gap: 6px; }
	.js .ic-header--sticky .ic-wordmark { font-size: 15px; }
}
@media (max-width: 329px) { .js .ic-header--sticky .ic-brand__text { display: none; } }
/* Landscape phones and other short windows: not enough height, so the normal header. */
@media (max-height: 499px) {
	.ic-header--sticky { position: relative; top: auto; transform: none !important; margin-bottom: 0 !important; }
}
@media (prefers-reduced-motion: reduce) {
	.ic-header--sticky, .ic-header--sticky *, .ic-article__side { transition: none !important; }
}
@media print { .ic-sticky-sentinel { display: none; } }

/* Back to top (v1.12.1): a round button at the bottom right, just outside the content's right edge
   when the screen is wide enough, else 16px from the edge. Appears after 1.5 screens of scrolling. */
.ic-totop {
	position: fixed; z-index: 40;
	right: max(16px, calc((100vw - var(--ic-wide)) / 2 - 68px));
	bottom: calc(24px + env(safe-area-inset-bottom, 0px));
	display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
	background: var(--ic-surface); color: var(--ic-accent); border: 2px solid var(--ic-accent); border-radius: 50%;
	box-shadow: 0 6px 16px rgba(34, 30, 28, 0.18); text-decoration: none;
	opacity: 0; visibility: hidden; transform: translateY(8px);
	transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s, background-color .15s, color .15s;
}
.ic-totop.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity .2s ease, transform .2s ease, visibility 0s, background-color .15s, color .15s; }
.ic-totop:hover { background: var(--ic-accent); color: #fff; }
.ic-totop:focus-visible { outline: 3px solid var(--ic-accent); outline-offset: 3px; }
.ic-totop__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.no-js .ic-totop { display: none; }
@media (max-width: 600px) { .ic-totop { width: 44px; height: 44px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); } }
@media (prefers-reduced-motion: reduce) { .ic-totop, .ic-totop.is-shown { transition: none; transform: none; } }
@media print { .ic-totop { display: none !important; } }

/* Larger site name (v1.12.2, Ben): 30px name and 48px mark on desktop. Between 1024 and 1199px the name
   steps down a little so the menu and both buttons stay on one line. */
.ic-menu a, .ic-mega__toggle { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1199px) {
	.ic-wordmark { font-size: 26px; }
	.ic-brand__mark { width: 44px; height: 44px; }
	.ic-brand__tagline { font-size: 12.5px; }
}

/* "On this page" heading in oxblood; since v1.12.4 the box has the same thin border and 4px oxblood top edge as the quick answer and calculator (Ben). */
.ic-toc__title { color: var(--ic-accent); }
.ic-toc__title::after { color: var(--ic-accent); }
@media (prefers-reduced-motion: reduce) { .ic-toc__list a { transition: none; } }
@media print { .ic-toc { background: none; } }
