/* It May Concern: site styles. System fonts only; no external requests. */

:root {
	--paper: #f6f3ec;
	--surface: #ffffff;
	--surface-2: #fbf9f4;
	--ink: #1b1f24;
	--ink-2: #454c57;
	--muted: #5c6470;
	--rule: #d9d3c5;
	--rule-strong: #b9b09c;
	--primary: #1f4e79;
	--primary-ink: #ffffff;
	--primary-hover: #163a5b;
	--stamp: #b5361c;
	--mark: #f3d77a;
	--up: #17703a;
	--down: #a8261b;
	--focus: #d97706;
	--badge-official-bg: #dcefe2; --badge-official-fg: #14532d;
	--badge-estimate-bg: #fbecc4; --badge-estimate-fg: #6b4a00;
	--badge-projected-bg: #e6e9f5; --badge-projected-fg: #2b3a7a;
	--badge-pending-bg: #ececec; --badge-pending-fg: #3d3d3d;
	--badge-calculated-bg: #d8ecf3; --badge-calculated-fg: #0c4a5e;

	--serif: Charter, "Bitstream Charter", "Sitka Text", Cambria, "Iowan Old Style", Georgia, serif;
	--sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

	--text: 1.125rem;
	--measure: 42rem;
	--wide: 64rem;
	--gutter: clamp(1rem, 4vw, 2rem);
	--radius: 6px;
	--shadow: 0 1px 0 rgba(27, 31, 36, .04), 0 8px 24px -12px rgba(27, 31, 36, .18);
	color-scheme: light;
}

@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
		--paper: #15181d; --surface: #1c2027; --surface-2: #191d23; --ink: #ebe8e1; --ink-2: #c9c5bc; --muted: #a2a8b2;
		--rule: #333842; --rule-strong: #4a505c; --primary: #8fb9e6; --primary-ink: #0f1318; --primary-hover: #b3d0ef;
		--stamp: #f08a70; --mark: #6b5710; --up: #6fd49a; --down: #f19a8f; --focus: #f5b041;
		--badge-official-bg: #1d3a28; --badge-official-fg: #a9e3bd;
		--badge-estimate-bg: #3f3312; --badge-estimate-fg: #f3d98c;
		--badge-projected-bg: #262d4d; --badge-projected-fg: #c3cbf3;
		--badge-pending-bg: #30333a; --badge-pending-fg: #d6d6d6;
		--badge-calculated-bg: #173845; --badge-calculated-fg: #a6dcef;
		--shadow: 0 1px 0 rgba(0, 0, 0, .3), 0 8px 24px -12px rgba(0, 0, 0, .6);
		color-scheme: dark;
	}
}
:root[data-theme="dark"] {
	--paper: #15181d; --surface: #1c2027; --surface-2: #191d23; --ink: #ebe8e1; --ink-2: #c9c5bc; --muted: #a2a8b2;
	--rule: #333842; --rule-strong: #4a505c; --primary: #8fb9e6; --primary-ink: #0f1318; --primary-hover: #b3d0ef;
	--stamp: #f08a70; --mark: #6b5710; --up: #6fd49a; --down: #f19a8f; --focus: #f5b041;
	color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 var(--text)/1.6 var(--sans);
	font-kerning: normal;
	overflow-wrap: break-word;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--primary); text-decoration-thickness: 1px; text-underline-offset: .18em; }
a:hover { color: var(--primary-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }
.skip-link { position: absolute; left: .5rem; top: -3rem; background: var(--ink); color: var(--paper); padding: .6rem 1rem; z-index: 10; border-radius: var(--radius); }
.skip-link:focus { top: .5rem; }
[hidden] { display: none !important; }

h1, h2, h3 { font-family: var(--serif); line-height: 1.2; color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 2.9rem); margin: 0 0 .5rem; letter-spacing: -.01em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.8rem); margin: 2.4rem 0 .7rem; }
h3 { font-size: 1.2rem; margin: 1.8rem 0 .5rem; }
p, ul, ol { margin: 0 0 1.1rem; }
li { margin-bottom: .35rem; }
strong { font-weight: 650; }
small { font-size: .85em; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

/* Header */
.site-header { border-bottom: 1px solid var(--rule); background: var(--paper); }
.site-header__inner { max-width: var(--wide); margin: 0 auto; padding: .9rem var(--gutter); display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.5rem; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: var(--ink); text-decoration: none; font-family: var(--serif); font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; }
.brand:hover { color: var(--ink); }
.brand__mark { color: var(--ink); flex: none; }
.brand__dot { fill: var(--stamp); }
.site-nav__list { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; margin: 0; padding: 0; font-size: 1rem; }
.site-nav__list li { margin: 0; }
.site-nav__list a { color: var(--ink-2); text-decoration: none; padding: .35rem 0; display: inline-block; border-bottom: 2px solid transparent; }
.site-nav__list a:hover, .site-nav__list .current-menu-item > a { color: var(--ink); border-bottom-color: var(--stamp); }

/* Layout */
.site-main { max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 1.5rem var(--gutter) 3.5rem; }
.site-main--wide { max-width: calc(var(--wide) + 2 * var(--gutter)); }
.site-main--home { max-width: calc(var(--wide) + 2 * var(--gutter)); padding-top: 2.2rem; }
.site-main:focus { outline: none; }
.crumbs { font-size: .95rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }
.entry__header { margin-bottom: 1.6rem; padding-bottom: 1.1rem; border-bottom: 3px double var(--rule-strong); }
.entry__meta { color: var(--muted); font-size: .95rem; margin: 0; }
.entry__content > :first-child { margin-top: 0; }
.entry__footer { margin-top: 3rem; padding-top: 1.2rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 1rem; }
.kicker { font: 600 .85rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--stamp); margin: 0 0 .4rem; }

/* Home */
.home-hero { display: grid; gap: 1.2rem 3rem; grid-template-columns: minmax(0, 1fr); margin-bottom: 2rem; }
@media (min-width: 60rem) { .home-hero { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; } }
.home-hero h1 { margin-bottom: .6rem; }
.home-hero .lede { font-size: 1.25rem; color: var(--ink-2); margin: 0; }
.home-grid { display: grid; gap: 2rem 3rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 60rem) { .home-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); } }
.home-aside h2:first-child { margin-top: 0; }
.home-section { max-width: var(--measure); }

.lede { font-size: 1.22rem; color: var(--ink-2); }
.link-list { list-style: none; padding: 0; }
.link-list li { border-bottom: 1px solid var(--rule); margin: 0; }
.link-list a { display: block; padding: .7rem 0; text-decoration: none; font-weight: 550; }
.link-list small { display: block; color: var(--muted); font-weight: 400; margin-top: .1rem; }

/* Callouts and key facts */
.imc-callout, .imc-keyfacts { background: var(--surface); border: 1px solid var(--rule); border-top: 4px solid var(--primary); border-radius: var(--radius); padding: 1.1rem 1.25rem; margin: 1.6rem 0; box-shadow: var(--shadow); }
.imc-callout > :last-child, .imc-keyfacts > :last-child { margin-bottom: 0; }
.imc-callout--warn { border-top-color: var(--stamp); }
.imc-keyfacts h2, .imc-callout h2 { margin-top: 0; font-size: 1.25rem; }
.imc-keyfacts ul { padding-left: 1.1rem; }

/* Status panel */
.imc-status { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.imc-status__item { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.imc-status__item p { margin: 0 0 .35rem; }
.imc-status__label { font-size: .95rem; color: var(--muted); }
.imc-status__value { font: 700 2.2rem/1.1 var(--serif); font-variant-numeric: tabular-nums; }
.imc-status__value small { font: 400 1rem var(--sans); color: var(--muted); margin-left: .15rem; }
.imc-status__meta { font-size: .9rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.imc-status__src { font-size: .85rem; }
.imc-status__src a { color: var(--muted); }

/* Badges */
.imc-badge { display: inline-block; font: 600 .78rem/1.2 var(--sans); letter-spacing: .02em; padding: .22rem .5rem; border-radius: 999px; vertical-align: .12em; white-space: nowrap; }
.imc-badge--official { background: var(--badge-official-bg); color: var(--badge-official-fg); }
.imc-badge--calculated { background: var(--badge-calculated-bg); color: var(--badge-calculated-fg); }
.imc-badge--estimate { background: var(--badge-estimate-bg); color: var(--badge-estimate-fg); }
.imc-badge--projected { background: var(--badge-projected-bg); color: var(--badge-projected-fg); }
.imc-badge--pending { background: var(--badge-pending-bg); color: var(--badge-pending-fg); }
.imc-fig { font-variant-numeric: tabular-nums; font-weight: 650; }
.imc-src { font-size: .85em; }
.imc-flag { display: inline-block; font-size: .75rem; font-weight: 600; color: var(--up); border: 1px solid currentColor; border-radius: 999px; padding: 0 .4rem; vertical-align: .1em; }
.imc-updated, .imc-note { color: var(--muted); font-size: .95rem; }

/* Tables */
.imc-table-wrap { overflow-x: auto; margin: 1.4rem 0; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--surface); }
.imc-table-wrap:focus-visible { outline-offset: 0; }
.imc-table { width: 100%; border-collapse: collapse; font-size: 1rem; font-variant-numeric: tabular-nums; }
.imc-table caption { text-align: left; font: 700 1.05rem/1.3 var(--serif); padding: .8rem 1rem .4rem; }
.imc-table th, .imc-table td { padding: .6rem 1rem; border-top: 1px solid var(--rule); text-align: left; vertical-align: top; }
.imc-table thead th { font-size: .88rem; font-weight: 600; color: var(--muted); border-top: 0; background: var(--surface-2); white-space: nowrap; }
.imc-table tbody th { font-weight: 550; }
.imc-table td { white-space: nowrap; }
.imc-register td, .imc-register th { white-space: normal; }
.imc-table .imc-total th, .imc-table .imc-total td, .imc-table .imc-sub th, .imc-table .imc-sub td { font-weight: 700; border-top: 2px solid var(--ink); }
.imc-schedule .imc-moved { background: var(--badge-estimate-bg); color: var(--badge-estimate-fg); padding: .05rem .3rem; border-radius: 3px; }
.imc-table--compact th, .imc-table--compact td { padding: .5rem .8rem; }
.imc-example { margin: 1.6rem 0; }
.imc-example .imc-table-wrap { margin-bottom: .5rem; }
.imc-example figcaption { font-size: .95rem; color: var(--muted); }
.entry__content table:not(.imc-table) { border-collapse: collapse; width: 100%; margin: 1.4rem 0; font-size: 1rem; }
.entry__content table:not(.imc-table) th, .entry__content table:not(.imc-table) td { border-bottom: 1px solid var(--rule); padding: .5rem .6rem; text-align: left; }

/* Calculator */
.imc-calc { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; box-shadow: var(--shadow); padding: clamp(1.1rem, 3vw, 1.8rem); position: relative; overflow: hidden; }
.imc-calc::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: repeating-linear-gradient(135deg, var(--stamp) 0 14px, transparent 14px 22px, var(--primary) 22px 36px, transparent 36px 44px); opacity: .85; }
.imc-calc__head h2 { margin: .3rem 0 .2rem; }
.imc-calc__privacy { color: var(--muted); font-size: .95rem; margin-bottom: 1.2rem; }
.imc-field { margin: 0 0 1.2rem; border: 0; padding: 0; min-width: 0; }
.imc-field > label, .imc-field legend, .imc-field--row label[for] { display: block; font-weight: 600; margin-bottom: .35rem; }
.imc-field--choice label, .imc-inline label, .imc-check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; margin: .25rem 0; cursor: pointer; }
.imc-inline { border: 0; padding: 0; margin: .5rem 0 0; display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; }
.imc-field--row { display: grid; gap: .6rem 1.2rem; grid-template-columns: minmax(0, 12rem) minmax(0, 1fr); align-items: end; }
@media (max-width: 34rem) { .imc-field--row { grid-template-columns: minmax(0, 1fr); } }
input[type="text"], input[type="number"], input[type="email"], input[type="url"], select, textarea {
	font: inherit; font-size: 1.1rem; color: var(--ink); background: var(--paper);
	border: 1.5px solid var(--rule-strong); border-radius: var(--radius); padding: .6rem .75rem; width: 100%; min-height: 2.9rem;
}
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--primary); }
input[type="radio"], input[type="checkbox"] { width: 1.2rem; height: 1.2rem; margin: .22rem 0 0; accent-color: var(--primary); flex: none; }
.imc-money { position: relative; max-width: 16rem; }
.imc-money span { position: absolute; left: .8rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.imc-money input { padding-left: 1.7rem; font-variant-numeric: tabular-nums; }
.imc-help { color: var(--muted); font-size: .92rem; margin: .4rem 0 0; }
.imc-field--cola label { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.imc-field--cola output { font: 700 1.2rem var(--serif); font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--primary); height: 2rem; }
.imc-link { background: none; border: 0; padding: 0; color: var(--primary); text-decoration: underline; font: inherit; cursor: pointer; }
.imc-button { display: inline-flex; align-items: center; justify-content: center; font: 600 1.05rem/1.2 var(--sans); background: var(--primary); color: var(--primary-ink); border: 0; border-radius: var(--radius); padding: .8rem 1.3rem; min-height: 2.9rem; cursor: pointer; text-decoration: none; }
.imc-button:hover { background: var(--primary-hover); color: var(--primary-ink); }
.imc-button--quiet { background: transparent; color: var(--primary); border: 1.5px solid var(--primary); }
.imc-button--quiet:hover { background: var(--surface-2); color: var(--primary-hover); }
.imc-calc__submit { margin: 0; }
.imc-field .imc-check { font-weight: 400; }
@media (max-width: 34rem) {
	.imc-calc { padding: 1rem .9rem; margin-left: calc(-1 * var(--gutter) / 2); margin-right: calc(-1 * var(--gutter) / 2); }
	.imc-table { font-size: .92rem; }
	.imc-table th, .imc-table td { padding: .5rem .55rem; }
	.imc-table thead th, .imc-table td { white-space: normal; }
	.imc-table caption { padding: .7rem .6rem .3rem; }
}
.imc-calc__fine { color: var(--muted); font-size: .9rem; margin: 1.2rem 0 0; }

.imc-result { margin-top: 1.4rem; padding-top: 1.3rem; border-top: 3px double var(--rule-strong); }
.imc-result:focus { outline: none; }
.imc-result__kicker { font: 600 .85rem var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0; }
.imc-result__big { font: 700 clamp(2.6rem, 2rem + 3vw, 3.6rem)/1.05 var(--serif); font-variant-numeric: tabular-nums; margin: .2rem 0 .3rem; }
.imc-result__big { background: linear-gradient(transparent 62%, var(--mark) 62%, var(--mark) 90%, transparent 90%); display: inline; box-decoration-break: clone; }
.imc-result__change { font-weight: 600; margin: .6rem 0 0; }
.imc-result__change.is-up { color: var(--up); }
.imc-result__change.is-down { color: var(--down); }
.imc-result__change.is-flat { color: var(--ink-2); }
.imc-result__when h3, .imc-result__notes h3 { font-size: 1.1rem; margin: 1.3rem 0 .4rem; }
.imc-result__when ul, .imc-result__notes ul { padding-left: 1.2rem; }
.imc-result__basis { color: var(--muted); font-size: .9rem; }
.imc-result__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0 0; }
.imc-result__empty { color: var(--muted); margin: 0; }

/* Forms (contact) */
.imc-form { background: var(--surface); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.2rem; }
.imc-form .imc-field > label { display: block; font-weight: 600; margin-bottom: .35rem; }
.imc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.imc-notice { padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid; }
.imc-notice--ok { background: var(--badge-official-bg); color: var(--badge-official-fg); }
.imc-notice--error { background: #fde8e6; color: #7a1a12; }

.imc-log { list-style: none; padding: 0; font-size: .95rem; }
.imc-log li { border-bottom: 1px solid var(--rule); padding: .5rem 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); background: var(--surface-2); color: var(--ink-2); font-size: .95rem; }
.site-footer__inner { max-width: var(--wide); margin: 0 auto; padding: 2rem var(--gutter) 2.5rem; }
.site-footer__about { max-width: 46rem; }
.site-footer__links { list-style: none; padding: 0; margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }
.site-footer__links li { margin: 0; }
.site-footer__links a { color: var(--ink-2); }
.site-footer__small { color: var(--muted); font-size: .88rem; margin: 0; }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
	.site-header, .site-footer, .imc-calc__form, .imc-result__actions, .crumbs, .entry__footer, .skip-link { display: none !important; }
	body { background: #fff; color: #000; font-size: 12pt; }
	.imc-calc { box-shadow: none; border: 0; padding: 0; }
	.imc-calc::before { display: none; }
	.imc-result { display: block !important; border: 0; }
	a { color: #000; }
}
