/*
 * northcarolinapaycheckcalculator.com: one stylesheet. Deep pine-green bands, white panels and a
 * marigold take-home figure, in Stub Sans (IBM Plex Sans, cut down and renamed: its digits all have
 * the same width, so money lines up in columns). The answer is drawn as a pay stub. Every word sits
 * on a plain panel at a contrast of 7:1 or more; marigold is a fill under dark ink, never text.
 */

@font-face { font-family: "Stub Sans"; src: url(../fonts/stub-text.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Stub Sans Condensed"; src: url(../fonts/stub-cond.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root {
	--ink: #0E1F17;
	--ink-2: #3B4F45;
	--paper: #FFFFFF;
	--wash: #F0F6F0;
	--check: #F4F9F2;
	--line: #CBDCCD;
	--line-2: #8FA996;
	--pine: #0D5C40;
	--deep: #0A3D2B;
	--gold: #F2B705;
	--gold-soft: #FFEDB3;
	--red: #A1221B;
	--ok: #0D6B48;
	--c-net: #0D7A55;
	--c-fed: #1F3A6E;
	--c-ss: #4F79B8;
	--c-med: #9DB9E3;
	--c-nc: #E0A100;
	--c-pre: #7F8F84;
	--c-post: #C3CDC5;
	--ring-out: #0E1F17;
	--ring-in: #F2B705;
	--radius: 12px;
	--shadow: 0 1px 0 rgba(14, 31, 23, .06), 0 12px 32px -14px rgba(14, 31, 23, .45);
	--font: "Stub Sans", "IBM Plex Sans", "Segoe UI", Roboto, Arial, sans-serif;
	--display: "Stub Sans Condensed", "Stub Sans", "Arial Narrow", "Segoe UI", Roboto, Arial, sans-serif;
	color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
	:root {
		--ink: #ECF5EE;
		--ink-2: #BFD2C5;
		--paper: #0B1712;
		--wash: #11231B;
		--check: #10211A;
		--line: #284236;
		--line-2: #4D6D5C;
		--pine: #0C4A34;
		--deep: #072A1E;
		--red: #FF9C92;
		--ok: #7FE0B4;
		--c-net: #34B886;
		--c-fed: #7E9FE0;
		--c-ss: #5E86C4;
		--c-med: #3E5F8F;
		--c-pre: #6E8076;
		--c-post: #3B4C42;
		--ring-out: #FFFFFF;
		--ring-in: #0E1F17;
		--shadow: 0 12px 32px -14px rgba(0, 0, 0, .85);
	}
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; font: 400 1.125rem/1.6 var(--font); color: var(--ink); background: var(--paper); }
img, svg { max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1.5px; text-underline-offset: .16em; }
a:hover { text-decoration-thickness: 3px; }
b, strong { font-weight: 700; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -.01em; }
h3 { font-weight: 700; font-size: 1.25rem; }
p { margin: 0 0 1em; }
small { font-size: .84em; }
.num, .tbl td, .stub td, .big { font-variant-numeric: tabular-nums lining-nums; }

:focus-visible { outline: 3px solid var(--ring-out); outline-offset: 2px; box-shadow: 0 0 0 6px var(--ring-in); border-radius: 4px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--gold); color: #0E1F17; padding: 10px 14px; font-weight: 700; border-radius: 8px; }
.skip:focus { top: 12px; }
.needs-js { display: none !important; }
html.js .needs-js { display: revert !important; }
[hidden] { display: none !important; }

.wrap { width: min(100% - 32px, 1180px); margin-inline: auto; }
.wrap--narrow { width: min(100% - 32px, 1180px); }
.wrap--narrow > * { max-width: 780px; }

/* ---- Top of the page ------------------------------------------------------------------- */

.indep { background: var(--gold); color: #0E1F17; font-size: .92rem; line-height: 1.35; padding: 7px 0; }
.site-head { background: var(--deep); color: #FFFFFF; }
.site-head__row { display: flex; align-items: center; gap: 10px 28px; flex-wrap: wrap; padding: 12px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #FFFFFF; font-family: var(--display); font-weight: 700; font-size: 1.5rem; line-height: 1; }
.brand__mark { width: 36px; height: 36px; flex: none; }
.brand__name span { font-family: var(--font); font-weight: 400; }
.site-nav { margin-left: auto; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.site-nav::-webkit-scrollbar { display: none; }
.site-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 2px; }
.site-nav a { display: block; white-space: nowrap; padding: 8px 12px; border-radius: 999px; color: #FFFFFF; text-decoration: none; font-weight: 600; font-size: 1rem; }
.site-nav a:hover { background: rgba(255, 255, 255, .14); }
.site-nav a[aria-current="page"] { background: var(--gold); color: #0E1F17; }
.site-nav a:focus-visible { box-shadow: 0 0 0 6px var(--ring-in); outline-color: #FFFFFF; }

/* ---- The bands at the top of a page ---------------------------------------------------- */

.hero, .page-head--tool { background: var(--pine); color: #FFFFFF; padding: 22px 0 40px; }
.kicker { font-weight: 700; text-transform: uppercase; letter-spacing: .07em; font-size: .86rem; margin: 0 0 6px; }
.hero__title, .page-head__title { font-size: clamp(2.3rem, 7vw, 3.8rem); margin: 0 0 10px; }
.lede { font-size: 1.2rem; line-height: 1.5; margin-bottom: 18px; max-width: 760px; overflow-wrap: break-word; }
.hero__note { max-width: 860px; margin: 18px 0 0; font-size: 1rem; }
.hero a, .page-head--tool a { color: #FFFFFF; }
.page-head { padding: 22px 0 6px; }
.page-head--tool { padding-bottom: 36px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 8px; padding: 0; font-size: .95rem; }
.crumbs li + li::before { content: "/"; margin-right: 8px; opacity: .7; }
.page-head--tool .crumbs a, .page-head--tool .crumbs li { color: #FFFFFF; }

/* The featured picture right under a page's title (beside it on a wide screen). On a green band
   a white frame shows where the picture starts. */
.ncpc-figure { margin: 1.5em 0; }
.ncpc-figure img { display: block; width: 100%; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.ncpc-figure figcaption { font-size: .95rem; color: var(--ink-2); margin-top: 6px; }
.page-head__top .ncpc-figure, .hero .ncpc-figure { margin: 16px 0 10px; }
.page-head--tool .ncpc-figure img, .hero .ncpc-figure img { box-shadow: 0 0 0 3px #FFFFFF, 0 14px 30px rgba(3, 20, 13, .4); }
.page-head--tool .ncpc-figure figcaption, .hero .ncpc-figure figcaption { color: #E2F0E6; }
/* Beside the title only when a calculator follows in the band; a guide keeps its picture under its title, as wide as its text. */
@media (min-width: 1000px) {
	.page-head--tool .page-head__top--pic { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 36px; align-items: center; margin-bottom: 26px; }
	.page-head--tool .page-head__top--pic .ncpc-figure { margin: 0; }
}

/* ---- A calculator ---------------------------------------------------------------------- */

.calc { background: var(--paper); color: var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; container-type: inline-size; }
.calc__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; }
.calc__fields, .calc__answer { min-width: 0; }
@media (min-width: 1000px) { .calc { padding: 26px; } }
/* Boxes and answer side by side only when the calculator itself is wide: inside a guide's text it stays one column. */
@container (min-width: 900px) {
	.calc__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 34px; align-items: start; }
	@media (min-height: 760px) { .calc__answer { position: sticky; top: 16px; } }
}
.calc.is-stale [data-k], .calc.is-stale .split__bar, .calc.is-stale .stub table { opacity: .45; }
html.js .calc__group[data-when]:not(.is-on) { display: none; }

.field { margin: 0 0 14px; }
.field__label { display: block; font-weight: 700; margin: 0 0 6px; }
.field__label small { font-weight: 400; color: var(--ink-2); }
.field__hint { margin: 6px 0 0; font-size: .95rem; line-height: 1.45; color: var(--ink-2); }
.field__err { margin: 6px 0 0; font-weight: 700; color: var(--red); }
.calc__stale { margin: 0 0 10px; padding: 8px 12px; border-radius: 8px; background: var(--paper); border: 2px solid var(--red); color: var(--red); font-weight: 700; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0 12px; }
.box { display: flex; align-items: stretch; min-width: 0; border: 2px solid var(--line-2); border-radius: 10px; background: var(--paper); overflow: hidden; }
.box:focus-within { border-color: var(--pine); box-shadow: 0 0 0 4px rgba(13, 92, 64, .25); }
.box__pre, .box__suf { display: flex; align-items: center; padding: 0 12px; background: var(--wash); font-weight: 700; font-size: 1.15rem; color: var(--ink-2); white-space: nowrap; }
.box__in { flex: 1; min-width: 0; width: 100%; border: 0; background: transparent; color: var(--ink); font: 600 1.3rem/1.2 var(--font); padding: 11px 12px; font-variant-numeric: tabular-nums; }
.box__in:focus { outline: none; }
.box--select select.box__in { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; appearance: none; -webkit-appearance: none; padding-right: 40px; font-size: 1.1rem; cursor: pointer; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7.5l5 5 5-5' fill='none' stroke='%233B4F45' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") right 12px center / 20px no-repeat; }
.box--select option { color: #0E1F17; background: #FFFFFF; }
.box__in[aria-invalid="true"] { color: var(--red); }

.choice { border: 0; margin: 0 0 14px; padding: 0; min-width: 0; }
.choice__row { display: grid; gap: 6px; }
.choice--2 .choice__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice--3 .choice__row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice--4 .choice__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .choice--4 .choice__row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.choice__opt { position: relative; display: block; cursor: pointer; }
.choice__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice__words { display: flex; flex-direction: column; justify-content: center; min-height: 52px; height: 100%; padding: 8px 10px; border: 2px solid var(--line-2); border-radius: 10px; background: var(--paper); font-weight: 700; line-height: 1.2; text-align: center; }
.choice__words small { display: block; font-weight: 400; color: var(--ink-2); margin-top: 3px; }
@media (max-width: 420px) { .choice--3 .choice__words, .choice--status .choice__words { font-size: .95rem; padding: 8px 6px; } }
.choice__opt input:checked + .choice__words { border-color: var(--pine); background: var(--pine); color: #FFFFFF; }
.choice__opt input:checked + .choice__words small { color: #E2F0E6; }
.choice__opt input:focus-visible + .choice__words { outline: 3px solid var(--ring-out); outline-offset: 2px; box-shadow: 0 0 0 6px var(--ring-in); }
.tick { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 14px; font-weight: 600; line-height: 1.35; cursor: pointer; }
.tick input { width: 22px; height: 22px; margin: 1px 0 0; flex: none; accent-color: var(--pine); }
.tick small { display: block; font-weight: 400; color: var(--ink-2); }

.calc__more { border: 2px solid var(--line); border-radius: 10px; margin: 0 0 12px; background: var(--paper); }
.calc__more > summary { position: relative; cursor: pointer; padding: 12px 14px 12px 48px; font-weight: 700; line-height: 1.3; list-style: none; }
.calc__more > summary::-webkit-details-marker { display: none; }
.calc__more > summary::before { content: "+"; position: absolute; left: 14px; top: 11px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--wash); font-weight: 700; color: var(--pine); }
.calc__more[open] > summary::before { content: "−"; }
@media (prefers-color-scheme: dark) { .calc__more > summary::before { color: var(--ok); background: #183528; } }
.calc__more > summary small { display: block; margin-top: 2px; font-weight: 400; color: var(--ink-2); }
.calc__more__body { padding: 2px 14px 4px; }
.calc__go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 4px; }
.calc__live { font-size: .95rem; color: var(--ink-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 10px 22px; border: 0; border-radius: 10px; background: var(--gold); color: #0E1F17; font: 700 1.1rem/1.2 var(--font); cursor: pointer; text-decoration: none; box-shadow: inset 0 -3px 0 rgba(14, 31, 23, .22); }
.btn:hover { filter: brightness(1.05); }
html.js .calc__go .btn { background: var(--wash); color: var(--ink); box-shadow: none; border: 2px solid var(--line-2); }

/* ---- The answer: a pay stub ------------------------------------------------------------ */

.stub { border: 2px solid var(--ink); border-radius: 12px; overflow: hidden; background: var(--paper); }
.stub__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; align-items: baseline; background: var(--deep); color: #FFFFFF; padding: 10px 14px; }
.stub__title { margin: 0; font: 700 .9rem/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.stub__when { font-size: .95rem; }
.stub table { width: 100%; border-collapse: collapse; font-size: 1.02rem; }
.stub caption { text-align: left; }
.stub th, .stub td { padding: 8px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.stub thead th { font-size: .82rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); background: var(--check); }
.stub td, .stub thead th + th { text-align: right; white-space: nowrap; }
.stub tbody th { font-weight: 600; }
.stub tbody th small { display: block; font-weight: 400; color: var(--ink-2); }
.stub .is-gross th, .stub .is-gross td { font-weight: 700; background: var(--check); }
.stub__key { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: 7px; vertical-align: 1px; }
/* The perforation between the stub and the take-home pay. */
.stub__net { position: relative; padding: 16px 14px 14px; background: var(--gold); color: #0E1F17; border-top: 2px dashed #0E1F17; container-type: inline-size; }
.stub__net-label { margin: 0; font-weight: 700; font-size: 1rem; }
.big { display: block; margin: 2px 0 4px; font-family: var(--display); font-weight: 700; font-size: clamp(2.3rem, 11vw, 4rem); font-size: clamp(2rem, 17cqi, 4rem); line-height: 1; letter-spacing: -.01em; white-space: nowrap; }
.stub__words { margin: 0; font-size: .95rem; line-height: 1.35; }
.stub__year { margin: 8px 0 0; font-weight: 600; }
.stub__notes { padding: 0 14px; }
.stub__note { margin: 10px 0; font-size: .95rem; line-height: 1.45; }
.stub__note--warn { padding: 8px 12px; border-left: 4px solid var(--gold); background: var(--gold-soft); color: #0E1F17; border-radius: 0 8px 8px 0; }

/* Where each dollar goes: one bar to scale, with a key that names every part and its amount. */
.split { margin: 16px 0 0; }
.split__title { font-weight: 700; margin: 0 0 8px; }
.split__bar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); }
.split__seg { height: 100%; min-width: 0; }
.split__key { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; font-size: .97rem; }
.split__key li { display: flex; gap: 8px; align-items: baseline; padding: 2px 0; border-bottom: 1px dotted var(--line); }
.split__pct { color: var(--ink-2); }
.split__key b { margin-left: auto; font-variant-numeric: tabular-nums; }
.c-net { background: var(--c-net); } .c-fed { background: var(--c-fed); } .c-ss { background: var(--c-ss); } .c-med { background: var(--c-med); }
.c-nc { background: var(--c-nc); } .c-pre { background: var(--c-pre); } .c-post { background: var(--c-post); }

.cite { font-size: .92rem; line-height: 1.45; color: var(--ink-2); margin: 12px 0 0; }
.cite a { color: var(--ink); }

/* The working, line by line, as the IRS and NC worksheets set it out. */
.steps { margin: 14px 0 0; border: 2px solid var(--line); border-radius: 10px; }
.steps > summary { cursor: pointer; padding: 11px 14px; font-weight: 700; }
.steps__body { padding: 0 14px 10px; }
.steps ol { margin: 0 0 12px; padding-left: 1.4em; }
.steps li { margin: 0 0 6px; font-size: .98rem; line-height: 1.45; }
.steps h4 { margin: 12px 0 6px; font-size: 1.02rem; }

/* On a phone the stub comes after the boxes: a bar at the foot of the screen shows the answer
   while the boxes are on screen and the stub is not. */
.peek { position: fixed; z-index: 5; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; flex-wrap: wrap; gap: 2px 10px; padding: 10px 46px 10px 16px; border: 0; border-radius: 14px; background: var(--gold); color: #0E1F17; font: 600 1rem/1.25 var(--font); text-align: left; box-shadow: 0 10px 30px -8px rgba(14, 31, 23, .6); cursor: pointer; }
.peek b { font-family: var(--display); font-weight: 700; font-size: 1.5rem; }
.peek__now { width: 100%; font-size: .9rem; }
.peek__go { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; font-weight: 700; }
@media (max-width: 999px) { html { scroll-padding-bottom: 96px; } }
@media (min-width: 1000px) { .peek { display: none !important; } }

/* ---- Sections and text ----------------------------------------------------------------- */

.section { padding: 40px 0; }
.section--wash { background: var(--wash); }
.section--deep { background: var(--deep); color: #FFFFFF; }
.section__title { font-size: clamp(1.8rem, 4.6vw, 2.5rem); }
.section__lede { max-width: 780px; font-size: 1.1rem; }
.prose { padding: 28px 0 10px; overflow-wrap: break-word; }
/* A long address (the contact email, the site's own name, a law's web address) breaks rather than widening the page on a phone. */
.prose a { overflow-wrap: anywhere; }
.prose h2 { font-size: clamp(1.7rem, 4.4vw, 2.3rem); margin-top: 1.4em; color: var(--pine); }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0 0 .45em; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 16px; border-left: 4px solid var(--gold); }
@media (prefers-color-scheme: dark) { .prose h2 { color: #8FDDB8; } }
.answer-box { background: var(--check); border: 2px solid var(--line); border-left: 6px solid var(--pine); border-radius: 10px; padding: 14px 16px; margin: 0 0 1.2em; }
.answer-box p:last-child { margin-bottom: 0; }
.more { font-weight: 700; }
.page-meta { margin: 2em 0 0; font-size: .95rem; color: var(--ink-2); }
.facts { border: 2px solid var(--ink); border-radius: 12px; padding: 14px 16px; margin: 0 0 1.4em; background: var(--check); }
.facts__title { margin: 0 0 6px; font: 700 .9rem/1.2 var(--font); letter-spacing: .1em; text-transform: uppercase; }
.facts dl { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 6px 14px; margin: 0; }
.facts dt { font-weight: 600; }
.facts dd { margin: 0; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.facts .cite { margin-top: 10px; }

.table-wrap { overflow-x: auto; margin: 0 0 1.4em; border: 1px solid var(--line); border-radius: 10px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 1rem; }
.tbl caption { text-align: left; padding: 10px 12px; font-weight: 700; background: var(--check); border-bottom: 1px solid var(--line); }
.tbl th, .tbl td { padding: 8px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl thead th { font-size: .9rem; background: var(--wash); }
.tbl td.num, .tbl th.num { text-align: right; white-space: nowrap; }
.tbl tbody tr:nth-child(even) { background: var(--check); }
.tbl tr.is-now { background: var(--gold-soft) !important; color: #0E1F17; }
.take-tables { display: grid; gap: 18px; }
@media (min-width: 700px) { .take-tables { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } }
.take-tables .tbl caption { font-size: .98rem; }
.dl-link { font-size: .95rem; margin: -0.6em 0 1.4em; }

.qa__q { font-size: 1.2rem; margin: 1.3em 0 .4em; }
.qa__a { max-width: 780px; }

/* A reading map of a long guide: its parts, to jump to. */
.toc { border: 2px solid var(--line); border-radius: 10px; padding: 12px 14px; margin: 0 0 1.4em; font-size: .98rem; }
.toc__title { margin: 0 0 6px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { margin: 0 0 3px; }

/* Pictures drawn in the page (charts, maps, infographics). */
.drawing { margin: 1.4em 0; }
.drawing svg { display: block; width: 100%; height: auto; }
.drawing figcaption { font-size: .95rem; color: var(--ink-2); margin-top: 6px; }

/* ---- The guides' drawings ---------------------------------------------------------------- */

/* A long guide's reading map beside its text on a wide screen; in the text on a phone. */
.with-map { display: block; }
@media (min-width: 1200px) {
	.with-map { display: grid; grid-template-columns: minmax(0, 780px) minmax(0, 300px); justify-content: space-between; gap: 48px; align-items: start; }
	.with-map .wrap--narrow { width: auto; }
	.with-map .prose .toc { display: none; }
	.with-map__side { position: sticky; top: 16px; padding-top: 28px; max-height: calc(100vh - 32px); overflow: auto; }
}
@media (max-width: 1199px) { .with-map__side { display: none; } }
.toc a { text-decoration-thickness: 1px; }
.toc--side { border-color: var(--pine); background: var(--check); }

/* NC's rate by year. */
.rc svg { max-width: 760px; }
.rc__grid { stroke: var(--line); stroke-width: 1; }
.rc__base { stroke: var(--ink); stroke-width: 2; }
.rc__axis, .rc__year { font: 600 13px var(--font); fill: var(--ink-2); }
.rc__val { font: 700 13px var(--font); fill: var(--ink); }
.rc__val--now { font-size: 16px; }
.rc__bar--past { fill: var(--pine); }
.rc__bar--now { fill: var(--gold); stroke: var(--ink); stroke-width: 2; }
.rc__bar--next { fill: var(--paper); stroke: var(--pine); stroke-width: 2; stroke-dasharray: 4 3; }
.rc__key { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; font-size: .95rem; margin: 8px 0 0; }
.rc__dot { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: 6px; vertical-align: -2px; }
.rc__dot--past { background: var(--pine); }
.rc__dot--now { background: var(--gold); box-shadow: inset 0 0 0 2px var(--ink); }
.rc__dot--next { background: var(--paper); box-shadow: inset 0 0 0 2px var(--pine); }
@media (prefers-color-scheme: dark) { .rc__bar--past { fill: #2E9A6E; } .rc__dot--past { background: #2E9A6E; } }

/* Mind maps: the middle on top, its branches in a grid joined to it by lines; one column on a phone. */
.mind { padding: 18px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--check); }
.mind__root { width: fit-content; max-width: 100%; margin: 0 auto 22px; padding: 10px 18px; border-radius: 999px; background: var(--deep); color: #FFFFFF; font: 700 1.15rem/1.25 var(--display); text-align: center; position: relative; }
.mind__root::after { content: ""; position: absolute; left: 50%; bottom: -22px; height: 22px; border-left: 2px solid var(--pine); }
.mind__branches { list-style: none; margin: 0; padding: 14px 0 0; display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); border-top: 2px solid var(--pine); }
@media (min-width: 640px) { .mind__branches { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .mind--laws .mind__branches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mind__branch { position: relative; padding: 12px 14px; border: 2px solid var(--pine); border-radius: 12px; background: var(--paper); }
.mind__branch::before { content: ""; position: absolute; left: 22px; top: -16px; height: 14px; border-left: 2px solid var(--pine); }
.mind__title { margin: 0 0 6px; font-weight: 700; color: var(--pine); }
@media (prefers-color-scheme: dark) { .mind__title { color: #8FDDB8; } }
.mind__branch ul { margin: 0; padding-left: 1.1em; font-size: .98rem; }
.mind__branch li { margin: 0 0 3px; }

/* A pay stub in 3D: lit from the top left, tilting gently; still for readers who ask for less motion. */
.s3__stage { perspective: 1100px; padding: 18px 6px 26px; display: flex; justify-content: center; }
.s3__card { width: min(100%, 420px); padding: 18px 20px; border-radius: 14px; color: #0E1F17; background: linear-gradient(145deg, #FFFFFF 0%, #F4F9F2 55%, #E3EFE4 100%); border: 2px solid #0E1F17; box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 28px 40px -18px rgba(3, 20, 13, .55), 0 6px 0 -2px #CBDCCD; transform: rotateX(14deg) rotateY(-16deg) rotateZ(1deg); transform-style: preserve-3d; animation: s3-tilt 9s ease-in-out infinite alternate; }
@keyframes s3-tilt { from { transform: rotateX(14deg) rotateY(-16deg) rotateZ(1deg); } to { transform: rotateX(8deg) rotateY(12deg) rotateZ(-1deg); } }
@media (prefers-reduced-motion: reduce) { .s3__card { animation: none; } }
.s3__head { display: flex; justify-content: space-between; margin: 0 0 4px; font: 700 .85rem/1.2 var(--font); letter-spacing: .12em; text-transform: uppercase; }
.s3__who { margin: 0 0 10px; font-size: .92rem; color: #3B4F45; }
.s3__rows { list-style: none; margin: 0; padding: 0; font-variant-numeric: tabular-nums; }
.s3__rows li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid #CBDCCD; }
.s3__gross { font-weight: 700; }
.s3__net { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin: 12px -20px -18px; padding: 14px 20px; border-top: 2px dashed #0E1F17; border-radius: 0 0 12px 12px; background: #F2B705; font-weight: 700; }
.s3__net b { font: 700 1.9rem/1 var(--display); }

/* The minimum wage infographic. */
ol.wage__steps { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); counter-reset: none; }
@media (min-width: 700px) { ol.wage__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.wage__steps li { padding: 12px; border-radius: 12px; background: var(--deep); color: #FFFFFF; text-align: center; }
.wage__steps li:first-child { background: var(--gold); color: #0E1F17; }
.wage__steps b { display: block; font: 700 clamp(1.15rem, 5.4vw, 1.6rem)/1.1 var(--display); font-variant-numeric: tabular-nums; }
.wage__steps span { display: block; margin-top: 4px; font-size: .92rem; line-height: 1.35; }
.wage__tip { padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; }
.wage__tip-title { margin: 0 0 8px; font-weight: 700; }
.wage__bar { display: flex; min-height: 40px; border-radius: 8px; overflow: hidden; border: 2px solid var(--ink); font-weight: 700; font-size: .95rem; }
.wage__cash { display: flex; align-items: center; justify-content: center; min-width: 64px; background: var(--deep); color: #FFFFFF; }
.wage__tips { flex: 1; display: flex; align-items: center; padding: 0 10px; background: var(--gold-soft); color: #0E1F17; }
.wage__note { margin: 8px 0 0; font-size: .95rem; }

/* The NC return and NC-4 calculators. */
.choice--status .choice__row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 560px) { .choice--status .choice__row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.nc4-lines { margin: 0; padding-left: 1.6em; font-size: .97rem; }
.nc4-lines li { margin: 0 0 4px; }
.nc4-lines span { font-weight: 700; font-variant-numeric: tabular-nums; }
.sitemap { padding-left: 1.2em; }
.sitemap li { margin: 0 0 .7em; }
.sitemap__what { display: block; color: var(--ink-2); font-size: .98rem; }

/* ---- The other tools ------------------------------------------------------------------- */

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.card { display: grid; grid-template-columns: 48px minmax(0, 1fr); grid-template-rows: auto auto; gap: 2px 14px; height: 100%; padding: 16px; border-radius: 12px; background: var(--paper); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.section--deep .card { background: #FFFFFF; color: #0E1F17; }
.card:hover { outline: 3px solid var(--gold); }
.card__icon { grid-row: 1 / 3; width: 48px; height: 48px; }
.card__title { font-weight: 700; font-size: 1.15rem; line-height: 1.25; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: .16em; }
.card__text { font-size: .98rem; line-height: 1.4; }

/* ---- Bottom of the page ---------------------------------------------------------------- */

.site-foot { background: var(--deep); color: #FFFFFF; padding: 36px 0 22px; }
.site-foot__grid { display: grid; gap: 26px; }
@media (min-width: 860px) { .site-foot__grid { grid-template-columns: 1.5fr 1fr 1fr; } }
.brand--foot { font-size: 1.35rem; margin-bottom: 10px; }
.site-foot p { font-size: 1rem; line-height: 1.5; }
.site-foot__small { font-size: .95rem !important; color: #D7E8DC; }
.site-foot__h { font: 700 .95rem/1.2 var(--font); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; }
.site-foot__nav ul { list-style: none; margin: 0; padding: 0; }
.site-foot__nav li { margin: 0 0 6px; }
.site-foot__nav a { color: #FFFFFF; }
.site-foot__base { border-top: 1px solid rgba(255, 255, 255, .22); margin-top: 26px; padding-top: 14px; font-size: .95rem; color: #D7E8DC; }

.ad { margin: 22px auto; width: min(100% - 32px, 1180px); text-align: center; }
.ad__label { display: block; font-size: .8rem; color: var(--ink-2); margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
@media (forced-colors: active) {
	.choice__opt input:checked + .choice__words { outline: 3px solid CanvasText; }
	.split__seg, .stub__key { forced-color-adjust: none; }
}

@media print {
	.site-nav, .skip, .calc__go, .calc__more, #more, .site-foot__nav, .ad, .peek, .steps > summary { display: none !important; }
	.indep { background: #fff !important; border-bottom: 1px solid #000; }
	body { font-size: 12pt; color: #000; background: #fff; }
	.hero, .page-head--tool, .site-head, .section--deep, .site-foot, .stub__head { background: #fff !important; color: #000 !important; }
	.calc, .card { box-shadow: none; border: 1px solid #000; }
	.stub__net { background: #fff !important; }
}
