/* ============================================================
   Tufwud Pre-Tender Checklist — the working document
   Scoped under .tcl.

   Same design system as the hero above it, the Door Selector and
   the compliance library: warm #f6f4f0 ground, white cards
   floating on it with a soft shadow rather than a hard border,
   Playfair for headings and numerals ONLY, Inter for everything
   else, orange accent on navy ink, inline SVG.
   NO MONOSPACE ANYWHERE.

   ── WHAT THE SOURCE DOCUMENT LOOKED LIKE, AND WHY NONE OF IT
      SURVIVED ──────────────────────────────────────────────
   The reference file was a dark charcoal sheet (#1a1d21) with a
   fire-amber accent, system-sans body copy and every clause
   citation set in Consolas. It is a different design language in
   every respect, and it is not the one this site speaks. What was
   kept is the CONTENT and its structure — ten sections, 48 checks,
   seven fail conditions, the caveat, the sign-off. What was
   rebuilt is everything you can see.

   Three specific inversions worth naming, because they are the
   ones that were making it read as a draft:

     · dark ground -> warm paper. This is a document somebody
       prints and signs. Dark chrome is for a control surface, not
       for a thing that becomes paper.
     · mono citations -> Inter pills. A monospace chip is a code
       token. These are legal references in a professional
       document, and setting them like `git diff` output was the
       single biggest thing making the page look unfinished.
     · zebra-striped rows -> hairline-separated rows inside cards.
       Alternating bands on 48 rows reads as a spreadsheet dump.

   ── TWO RULES IF YOU EDIT THIS FILE ─────────────────────────

   1. Never write `.tcl p { ... }`. That is specificity 0,1,1 and
      it outranks every BEM class at 0,1,0 — layout rules then
      stop applying with no error anywhere and no obvious cause.
      Resets live in :where(), which is 0,0,0.

   2. Buttons, inputs and checkboxes are written `.tcl .tcl-thing`
      (0,2,0), not `.tcl-thing` (0,1,0). Themes and Elementor ship
      rules like `.elementor button` and `.site input[type=text]`
      at 0,1,1 and 0,2,0, and those beat a single class. That is
      how a styled button ends up SHOUTING IN CAPS on a live site.
      The same trap ate an `img` rule on the Door Selector and a
      nav layout after that. Keep the double class on anything
      interactive.
   ============================================================ */

:where(.tcl, .tcl *) { box-sizing: border-box; }

:where(.tcl p, .tcl h2, .tcl h3, .tcl ul, .tcl ol, .tcl li) { margin: 0; padding: 0; }
:where(.tcl ul, .tcl ol) { list-style: none; }
:where(.tcl input, .tcl button, .tcl textarea, .tcl select) { font-family: inherit; }

.tcl {
	/* ── Adjust these ── */
	--tcl-max:      1320px;  /* rail + document. See the note on .tcl-work */
	--tcl-rail:     17rem;
	--tcl-gap:      clamp(1.5rem, 3vw, 2.75rem);
	--tcl-radius:   18px;
	--tcl-radius-s: 12px;
	--tcl-pad-y:    clamp(2rem, 4vw, 3.5rem);

	/* Clears whatever sticky header the theme has, so a jumped-to
	   section does not land underneath it. Raise if yours is tall. */
	--tcl-sticky-top: 1.25rem;

	/* ── Palette ── */
	--tcl-ground:  #f6f4f0;
	--tcl-card:    #ffffff;
	--tcl-sunk:    #f4f2ee;
	--tcl-chip:    #f1f2f4;
	--tcl-navy:    #12263f;
	--tcl-ink:     #17181a;
	--tcl-text:    #33475f;
	--tcl-muted:   #5c6b7d;
	--tcl-soft:    #93a2b5;
	--tcl-line:    rgba(20, 41, 63, 0.10);
	--tcl-line-2:  rgba(20, 41, 63, 0.06);

	--tcl-accent:   #d4581e;
	--tcl-accent-2: #e86526;
	--tcl-accent-w: rgba(212, 88, 30, 0.08);

	--tcl-shadow:   0 1px 2px rgba(18, 38, 63, 0.04), 0 10px 30px -14px rgba(18, 38, 63, 0.18);

	--tcl-serif: "Playfair Display", "Instrument Serif", "Libre Baskerville", Georgia, serif;
	--tcl-sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

	position: relative;
	background: var(--tcl-ground);
	font-family: var(--tcl-sans);
	font-size: 16px;
	line-height: 1.6;
	color: var(--tcl-text);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

.tcl__in {
	max-width: var(--tcl-max);
	margin-inline: auto;
	padding: var(--tcl-pad-y) clamp(1rem, 3vw, 2rem);
}

/* ── Numerals in the serif face ─────────────────────────────
   Playfair Display's default figures are OLD-STYLE. Measured at
   100px/700: cap height 71, x-height 53, and every digit 52-53 —
   numbers sit at x-height rather than cap height, and the 3 and
   the 4 drop below the baseline. Next to a capital letter they
   read as a broken font rather than as numbers.

   Playfair ships an `lnum` set, so asking for lining figures
   fixes it at the source. tabular-nums as well: these numerals
   sit in a column of counts down the rail, and proportional
   figures make that column jitter as the count changes.

   A face with no `lnum` ignores both and is unharmed, so this
   stays correct if --tcl-serif is ever swapped. ───────────── */
.tcl-numeral {
	font-family: var(--tcl-serif);
	font-weight: 700;
	font-variant-numeric: lining-nums tabular-nums;
	font-feature-settings: "lnum" 1, "tnum" 1;
}

/* ══ Masthead ══════════════════════════════════════════════ */

.tcl-mast {
	max-width: 62rem;
	margin-bottom: clamp(1.75rem, 3.2vw, 2.75rem);
}

.tcl-mast__k {
	display: flex;
	align-items: center;
	gap: 0.9rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	line-height: 1;
	color: var(--tcl-muted);
	margin-bottom: clamp(0.9rem, 1.6vw, 1.25rem);
}

.tcl-mast__rule {
	flex: 1 1 auto;
	height: 1px;
	background: var(--tcl-line);
}

/* The document reference. In the source this was Consolas, which
   is what a build number looks like, not what a controlled
   document looks like. Letterspaced Inter says the same thing in
   the site's own voice. */
.tcl-mast__ref {
	flex: none;
	color: var(--tcl-soft);
	font-variant-numeric: lining-nums tabular-nums;
}

.tcl-mast__t {
	font-family: var(--tcl-serif);
	font-weight: 700;
	font-size: clamp(1.875rem, 3.6vw, 3rem);
	line-height: 1.06;
	letter-spacing: -0.022em;
	color: var(--tcl-ink);
	max-width: 20ch;
	text-wrap: balance;
	margin-bottom: clamp(0.9rem, 1.6vw, 1.25rem);
}

.tcl-mast__lede {
	max-width: 58ch;
	font-size: clamp(0.9375rem, 1.05vw, 1.0625rem);
	line-height: 1.72;
	color: var(--tcl-muted);
}

/* What the document stands on. The hero's content-sized divider
   row, reused: items take the width their own text needs and a
   1px rule sits between them, so the gaps read even. Equal
   columns would leave "Reviewed / Aug 2026" trailing dead space
   next to the two long ones. */
.tcl-basis {
	display: flex;
	align-items: stretch;
	flex-wrap: wrap;
	margin-top: clamp(1.25rem, 2.2vw, 1.75rem);
	padding-top: clamp(1rem, 1.8vw, 1.4rem);
	border-top: 1px solid var(--tcl-line-2);
}

.tcl-basis li {
	flex: none;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 0.35rem;
	padding-block: 0.1rem;
	padding-inline: clamp(0.9rem, 2vw, 1.6rem);
}

.tcl-basis li:first-child { padding-inline-start: 0; }

/* inset-block 0 so the rule spans the item's full height including
   its padding. Clipped to the text height it reads as a stub. */
.tcl-basis li + li::before {
	content: "";
	position: absolute;
	inset-block: 0;
	inset-inline-start: 0;
	width: 1px;
	background: var(--tcl-line);
}

.tcl-basis__k {
	font-size: 0.5625rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	line-height: 1;
	color: var(--tcl-soft);
}

.tcl-basis__v {
	font-size: 0.875rem;
	font-weight: 600;
	line-height: 1.3;
	color: var(--tcl-navy);
}

/* ── Caveat ─────────────────────────────────────────────────
   Accent wash and an accent rule, not a grey box. This is the
   one paragraph on the page that changes whether the rest of it
   is safe to act on, and it has to survive being skimmed. */
.tcl-caveat {
	display: flex;
	gap: 0.9rem;
	margin-top: clamp(1.5rem, 2.6vw, 2rem);
	padding: clamp(0.9rem, 1.6vw, 1.15rem) clamp(1rem, 1.8vw, 1.35rem);
	border-radius: var(--tcl-radius-s);
	border-left: 3px solid var(--tcl-accent);
	background: var(--tcl-accent-w);
	font-size: 0.875rem;
	line-height: 1.65;
	color: var(--tcl-text);
}

.tcl-caveat b { color: var(--tcl-navy); font-weight: 700; }

.tcl-caveat__i {
	flex: none;
	display: flex;
	margin-top: 0.1rem;
	color: var(--tcl-accent);
}

.tcl .tcl-caveat__i svg { width: 1.15rem; height: 1.15rem; }

/* ══ Workspace ═════════════════════════════════════════════ */

/* minmax(0, 1fr) on the document column. A bare 1fr is
   min-content-floored, so one long unbroken citation string would
   push the column wider than its share and shove the rail off. */
.tcl-work {
	display: grid;
	grid-template-columns: var(--tcl-rail) minmax(0, 1fr);
	gap: var(--tcl-gap);
	align-items: start;
}

/* ── Rail ───────────────────────────────────────────────────
   Sticky, and the only thing on the page that is. The action
   lives INSIDE it rather than in a second docked bar, so there is
   one fixed region on screen instead of two competing for the
   edges. Below 1060px there is no room for a column and the
   docked bar takes over — see the responsive block. */
.tcl-rail {
	position: sticky;
	top: var(--tcl-sticky-top);
	align-self: start;
}

.tcl-rail__in {
	background: var(--tcl-card);
	border: 1px solid var(--tcl-line-2);
	border-radius: var(--tcl-radius);
	box-shadow: var(--tcl-shadow);
	overflow: hidden;
}

/* ── Progress ─────────────────────────────────────────────── */

.tcl-prog {
	padding: clamp(1.1rem, 2vw, 1.4rem) clamp(1.1rem, 2vw, 1.35rem) clamp(1rem, 1.8vw, 1.25rem);
	border-bottom: 1px solid var(--tcl-line-2);
}

.tcl-prog__count {
	display: flex;
	align-items: baseline;
	gap: 0.3rem;
	line-height: 1;
}

.tcl-prog__count b {
	font-size: 2.25rem;
	letter-spacing: -0.03em;
	color: var(--tcl-navy);
}

.tcl-prog__of {
	font-size: 1rem;
	font-weight: 600;
	color: var(--tcl-soft);
	font-variant-numeric: lining-nums tabular-nums;
}

.tcl-prog__k {
	margin-top: 0.35rem;
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.18em;
	text-transform: uppercase;
	color: var(--tcl-soft);
}

.tcl-prog__bar {
	margin-top: 0.85rem;
	height: 4px;
	border-radius: 999px;
	background: var(--tcl-chip);
	overflow: hidden;
}

.tcl-prog__bar i {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: var(--tcl-accent);
	transition: width 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* ── Jump list ────────────────────────────────────────────── */

.tcl-jump { padding: 0.5rem 0.5rem 0.35rem; }

.tcl .tcl-jump__a {
	display: grid;
	grid-template-columns: 1.35rem minmax(0, 1fr) auto;
	align-items: center;
	gap: 0.6rem;
	padding: 0.5rem 0.6rem;
	border-radius: 9px;
	text-decoration: none;
	color: var(--tcl-text);
	transition: background-color 0.16s ease, color 0.16s ease;
}

.tcl .tcl-jump__a:hover,
.tcl .tcl-jump__a:focus-visible {
	background: var(--tcl-sunk);
	text-decoration: none;
	color: var(--tcl-navy);
}

.tcl .tcl-jump__a:focus-visible { outline: 2px solid var(--tcl-accent); outline-offset: 1px; }

/* The section the reader is standing in. Set from the observer in
   tcl.js, not from :target — :target only updates when the anchor
   is clicked, so scrolling past a section would leave the wrong
   row lit. */
.tcl .tcl-jump__a.is-here {
	background: var(--tcl-accent-w);
	color: var(--tcl-navy);
}

.tcl-jump__n {
	font-family: var(--tcl-serif);
	font-weight: 700;
	font-size: 0.9375rem;
	line-height: 1;
	text-align: center;
	color: var(--tcl-soft);
	font-variant-numeric: lining-nums tabular-nums;
	font-feature-settings: "lnum" 1, "tnum" 1;
}

.tcl .tcl-jump__a.is-here .tcl-jump__n,
.tcl .tcl-jump__a.is-done .tcl-jump__n { color: var(--tcl-accent); }

.tcl-jump__t {
	font-size: 0.8125rem;
	font-weight: 600;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.tcl-jump__c {
	font-size: 0.6875rem;
	font-weight: 700;
	line-height: 1;
	color: var(--tcl-soft);
	font-variant-numeric: lining-nums tabular-nums;
}

.tcl .tcl-jump__a.is-done .tcl-jump__c { color: var(--tcl-accent); }

/* ── Rail action ──────────────────────────────────────────── */

.tcl-rail__act {
	padding: clamp(0.9rem, 1.6vw, 1.15rem);
	border-top: 1px solid var(--tcl-line-2);
	background: var(--tcl-sunk);
}

.tcl-rail__note {
	margin-top: 0.7rem;
	font-size: 0.75rem;
	line-height: 1.5;
	color: var(--tcl-muted);
}

.tcl-rail__save {
	margin-top: 0.6rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	color: var(--tcl-soft);
}

.tcl .tcl-reset {
	display: inline-flex;
	align-items: center;
	gap: 0.4rem;
	margin-top: 0.8rem;
	padding: 0;
	border: 0;
	background: none;
	font-family: var(--tcl-sans);
	font-size: 0.75rem;
	font-weight: 600;
	letter-spacing: normal;
	text-transform: none;
	color: var(--tcl-soft);
	cursor: pointer;
	transition: color 0.16s ease;
}

.tcl .tcl-reset:hover { color: var(--tcl-accent); }
.tcl .tcl-reset:focus-visible { outline: 2px solid var(--tcl-accent); outline-offset: 3px; }
.tcl .tcl-reset svg { width: 0.8125rem; height: 0.8125rem; }

/* ══ Buttons ═══════════════════════════════════════════════
   0,2,0 — see rule 2 at the top of this file. */

.tcl .tcl-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.6rem;
	width: 100%;
	padding: 0.85rem 1.25rem;
	border: 1px solid transparent;
	border-radius: var(--tcl-radius-s);
	font-family: var(--tcl-sans);
	font-size: 0.9375rem;
	font-weight: 700;
	line-height: 1.25;
	letter-spacing: normal;
	text-transform: none;
	text-decoration: none;
	text-shadow: none;
	min-height: 0;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.tcl .tcl-btn svg { flex: none; width: 1.0625rem; height: 1.0625rem; }

.tcl .tcl-btn--go {
	background: var(--tcl-accent);
	border-color: var(--tcl-accent);
	color: #fff;
	box-shadow: 0 12px 26px -14px rgba(212, 88, 30, 0.85);
}

.tcl .tcl-btn--go:hover,
.tcl .tcl-btn--go:focus {
	background: var(--tcl-accent-2);
	border-color: var(--tcl-accent-2);
	color: #fff;
	text-decoration: none;
	transform: translateY(-1px);
}

.tcl .tcl-btn:focus-visible { outline: 2px solid var(--tcl-accent); outline-offset: 3px; }

/* ══ The document column ═══════════════════════════════════ */

.tcl-body {
	display: grid;
	gap: clamp(1rem, 1.8vw, 1.4rem);
}

.tcl-card {
	background: var(--tcl-card);
	border: 1px solid var(--tcl-line-2);
	border-radius: var(--tcl-radius);
	box-shadow: var(--tcl-shadow);
	padding: clamp(1.25rem, 2.4vw, 1.9rem);
	scroll-margin-top: calc(var(--tcl-sticky-top) + 0.5rem);
}

.tcl-card__h {
	display: flex;
	align-items: baseline;
	flex-wrap: wrap;
	gap: 0.5rem 0.9rem;
	padding-bottom: clamp(0.85rem, 1.5vw, 1.1rem);
	margin-bottom: clamp(1rem, 1.8vw, 1.35rem);
	border-bottom: 1px solid var(--tcl-line-2);
}

.tcl-card__ht {
	font-size: 1.0625rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	color: var(--tcl-navy);
}

.tcl-card__hs {
	font-size: 0.75rem;
	font-weight: 500;
	color: var(--tcl-soft);
}

/* ── Project fields ─────────────────────────────────────────
   Real labelled inputs on a sunk ground, not the source's bare
   underlines. An underline with nothing in it reads as a gap in
   the page; a filled field reads as a field. */

.tcl-meta__g {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
	gap: clamp(0.85rem, 1.6vw, 1.15rem);
}

.tcl-field { display: grid; gap: 0.4rem; }

.tcl-field__l {
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1;
	color: var(--tcl-soft);
}

.tcl .tcl-field__i {
	width: 100%;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--tcl-line);
	border-radius: 10px;
	background: var(--tcl-sunk);
	font-family: var(--tcl-sans);
	font-size: 0.9375rem;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: normal;
	text-transform: none;
	color: var(--tcl-navy);
	box-shadow: none;
	transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
}

.tcl .tcl-field__i::placeholder { color: var(--tcl-soft); opacity: 1; font-weight: 400; }

.tcl .tcl-field__i:focus {
	outline: none;
	background: var(--tcl-card);
	border-color: var(--tcl-accent);
	box-shadow: 0 0 0 3px var(--tcl-accent-w);
}

.tcl .tcl-field__i--area {
	min-height: 6.5rem;
	resize: vertical;
	line-height: 1.6;
}

/* ── Section cards ──────────────────────────────────────────
   The numeral is the plugin family's signature: Playfair, lining,
   and the only serif on the card. */

.tcl-sec__h {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: baseline;
	gap: 0.75rem;
	padding-bottom: clamp(0.85rem, 1.5vw, 1.1rem);
	margin-bottom: clamp(0.9rem, 1.6vw, 1.2rem);
	border-bottom: 1px solid var(--tcl-line-2);
}

.tcl-sec__n {
	font-size: 1.5rem;
	line-height: 1;
	letter-spacing: -0.02em;
	color: var(--tcl-accent);
}

.tcl-sec__t {
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.3;
	letter-spacing: -0.01em;
	color: var(--tcl-navy);
}

.tcl-sec__c {
	font-size: 0.75rem;
	font-weight: 700;
	line-height: 1;
	color: var(--tcl-soft);
	font-variant-numeric: lining-nums tabular-nums;
	white-space: nowrap;
}

.tcl-sec.is-done .tcl-sec__c { color: var(--tcl-accent); }

.tcl-sec__hint {
	margin-top: -0.4rem;
	margin-bottom: clamp(0.9rem, 1.6vw, 1.2rem);
	font-size: 0.8125rem;
	line-height: 1.6;
	color: var(--tcl-muted);
}

/* ── Items ──────────────────────────────────────────────────
   Hairline-separated rows, not zebra stripes. Over 48 rows the
   striping in the source read as a data table; a document reads
   as a document. */

.tcl-items { display: grid; }

.tcl-item + .tcl-item { border-top: 1px solid var(--tcl-line-2); }

/* The whole row is the label, so the entire strip is the hit
   target — not just a 16px box. On 48 rows that is the difference
   between a tool and a chore. */
.tcl .tcl-check {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.85rem;
	padding: 0.85rem 0.7rem;
	margin-inline: -0.7rem;
	border-radius: 10px;
	cursor: pointer;
	transition: background-color 0.16s ease;
}

.tcl .tcl-check:hover { background: var(--tcl-sunk); }

/* Visually hidden but focusable and clickable — the label wraps
   it, so keyboard focus lands on a real control and :checked
   drives the box. `display: none` would break both. */
.tcl .tcl-check input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	margin: 0;
	pointer-events: none;
}

.tcl-check__b {
	flex: none;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 1.25rem;
	height: 1.25rem;
	margin-top: 0.15rem;
	border: 1.5px solid var(--tcl-soft);
	border-radius: 6px;
	background: var(--tcl-card);
	color: transparent;
	transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.tcl .tcl-check__b svg { width: 0.75rem; height: 0.75rem; }

.tcl .tcl-check:hover .tcl-check__b { border-color: var(--tcl-navy); }

.tcl .tcl-check input:checked ~ .tcl-check__b,
.tcl .tcl-check input:checked + .tcl-check__b {
	background: var(--tcl-accent);
	border-color: var(--tcl-accent);
	color: #fff;
}

.tcl .tcl-check input:focus-visible + .tcl-check__b {
	outline: 2px solid var(--tcl-accent);
	outline-offset: 2px;
}

.tcl-check__t {
	font-size: 0.875rem;
	line-height: 1.62;
	color: var(--tcl-muted);
}

.tcl-check__t b {
	font-weight: 700;
	color: var(--tcl-navy);
}

/* Checked rows keep FULL text contrast on purpose. Dimming a
   completed row helps you find what is left, and hurts you when
   the whole point of the artefact is that somebody can read back
   every line they attested to. The filled box carries the state. */
.tcl .tcl-check input:checked ~ .tcl-check__t b { color: var(--tcl-navy); }

/* ── Clause references ──────────────────────────────────────
   Inline at the end of the sentence, because that is where a
   citation belongs — it qualifies the claim it follows. What
   changed from the source is the setting: Inter, letterspaced,
   on the cool chip ground, instead of a Consolas code token. */
.tcl-ref {
	display: inline-block;
	margin-left: 0.4rem;
	padding: 0.16rem 0.45rem;
	border-radius: 5px;
	background: var(--tcl-chip);
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	line-height: 1.45;
	color: var(--tcl-muted);
	font-variant-numeric: lining-nums;
	/* Long refs like "NBC P4 3.4.5.2 / 4.4.2.4.3.2(h)(2) / 4.6.1"
	   must be allowed to wrap, or they force a horizontal scroll
	   on a phone. */
	white-space: normal;
}

/* ══ Section 10 — fail conditions ══════════════════════════
   A different kind of row and it gets a different treatment. The
   nine sections above are work to get through; these seven are
   conditions that should sink an offer. Accent wash, accent rule.

   The tick fills NAVY here, not orange. Orange is this system's
   action colour — "do this next". A cleared fail condition is not
   an action, it is a settled finding, and navy reads as settled.
   It also keeps the two kinds of confirmation on the page
   visually distinct without adding a colour to the palette. */

.tcl-flags {
	border-color: rgba(212, 88, 30, 0.22);
	background:
		linear-gradient(var(--tcl-accent-w), var(--tcl-accent-w)),
		var(--tcl-card);
}

.tcl-flags__h { border-bottom-color: rgba(212, 88, 30, 0.2); }

.tcl-fl { display: grid; }

.tcl-fl__i + .tcl-fl__i { border-top: 1px solid rgba(212, 88, 30, 0.14); }

.tcl .tcl-check--flag {
	grid-template-columns: auto minmax(0, 1fr) auto;
	align-items: start;
	gap: 0.85rem;
}

.tcl .tcl-check--flag:hover { background: rgba(212, 88, 30, 0.06); }

.tcl-fl__n {
	flex: none;
	font-family: var(--tcl-serif);
	font-weight: 700;
	font-size: 1rem;
	line-height: 1.45;
	color: var(--tcl-accent);
	font-variant-numeric: lining-nums tabular-nums;
	font-feature-settings: "lnum" 1, "tnum" 1;
}

.tcl-fl__c {
	flex: none;
	display: flex;
	align-items: center;
	gap: 0.45rem;
	margin-top: 0.1rem;
}

.tcl-fl__cl {
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1;
	color: var(--tcl-soft);
	transition: color 0.16s ease;
}

.tcl .tcl-check--flag input:checked ~ .tcl-fl__c .tcl-check__b {
	background: var(--tcl-navy);
	border-color: var(--tcl-navy);
	color: #fff;
}

.tcl .tcl-check--flag input:checked ~ .tcl-fl__c .tcl-fl__cl { color: var(--tcl-navy); }

.tcl .tcl-check--flag input:focus-visible ~ .tcl-fl__c .tcl-check__b {
	outline: 2px solid var(--tcl-accent);
	outline-offset: 2px;
}

/* ══ Notes and sign-off ════════════════════════════════════ */

.tcl-sign {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
	gap: clamp(1rem, 2vw, 1.75rem);
	margin-top: clamp(1.25rem, 2.2vw, 1.75rem);
}

.tcl-sign li { display: grid; gap: 0.5rem; }

.tcl-sign__k {
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	line-height: 1;
	color: var(--tcl-soft);
}

.tcl-sign__l {
	height: 2.1rem;
	border-bottom: 1px solid var(--tcl-line);
}

.tcl-close__note {
	display: flex;
	align-items: flex-start;
	gap: 0.5rem;
	margin-top: clamp(1rem, 1.8vw, 1.4rem);
	padding-top: clamp(0.85rem, 1.5vw, 1.1rem);
	border-top: 1px solid var(--tcl-line-2);
	font-size: 0.75rem;
	line-height: 1.55;
	color: var(--tcl-soft);
}

.tcl .tcl-close__note svg { width: 0.9rem; height: 0.9rem; flex: none; margin-top: 0.12rem; }

/* ══ Sources ═══════════════════════════════════════════════ */

.tcl-src {
	padding: clamp(1rem, 2vw, 1.5rem) clamp(0.25rem, 1vw, 0.5rem) 0;
}

.tcl-src__k {
	font-size: 0.5625rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	line-height: 1;
	color: var(--tcl-soft);
	margin-bottom: 0.6rem;
}

.tcl-src__b {
	font-size: 0.75rem;
	line-height: 1.7;
	color: var(--tcl-soft);
}

.tcl-src__b--tag {
	margin-top: 0.6rem;
	font-weight: 600;
	color: var(--tcl-muted);
}

/* ══ Docked bar ════════════════════════════════════════════
   Hidden on desktop — the rail already carries the action there,
   and two fixed regions fighting for the edges is what makes a
   page feel cramped. It appears only once the rail cannot. */

.tcl-dock { display: none; }

/* ══ Responsive ════════════════════════════════════════════ */

@media (max-width: 1060px) {
	/* The rail stops being a column. Everything it carried moves:
	   the counts stay in each section header where they already
	   are, and the action goes to the docked bar. */
	.tcl-work { grid-template-columns: minmax(0, 1fr); }

	.tcl-rail {
		position: static;
		margin-bottom: clamp(1rem, 1.8vw, 1.4rem);
	}

	.tcl-rail__in { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); }

	.tcl-prog { border-bottom: 0; border-right: 1px solid var(--tcl-line-2); }

	/* The jump list becomes a wrapped row of chips. A ten-item
	   vertical list is navigation; laid flat it is a contents
	   line, which is the right thing at this width. */
	.tcl-jump { padding: 0.85rem; }

	.tcl-jump__l { display: flex; flex-wrap: wrap; gap: 0.35rem; }

	.tcl .tcl-jump__a {
		grid-template-columns: auto auto;
		gap: 0.4rem;
		padding: 0.4rem 0.6rem;
		border: 1px solid var(--tcl-line-2);
	}

	.tcl-jump__t { display: none; }

	/* The action moved to the dock, so the rail's copy of it goes.
	   Two live buttons doing the same job is a bug report waiting
	   to happen. */
	.tcl-rail__act { display: none; }

	.tcl-dock {
		position: sticky;
		bottom: 0;
		z-index: 5;
		display: grid;
		grid-template-columns: auto minmax(0, 1fr);
		align-items: center;
		gap: 1rem;
		margin-top: clamp(1rem, 2vw, 1.5rem);
		margin-inline: calc(-1 * clamp(1rem, 3vw, 2rem));
		padding: 0.85rem clamp(1rem, 3vw, 2rem);
		background: var(--tcl-card);
		border-top: 1px solid var(--tcl-line);
		box-shadow: 0 -8px 24px -16px rgba(18, 38, 63, 0.4);
	}

	.tcl-dock__p {
		display: flex;
		align-items: baseline;
		gap: 0.3rem;
		font-size: 0.8125rem;
		font-weight: 600;
		color: var(--tcl-soft);
		white-space: nowrap;
	}

	.tcl-dock__p b {
		font-size: 1.375rem;
		line-height: 1;
		color: var(--tcl-navy);
	}
}

@media (max-width: 620px) {
	.tcl-rail__in { grid-template-columns: minmax(0, 1fr); }
	.tcl-prog { border-right: 0; border-bottom: 1px solid var(--tcl-line-2); }

	/* The card padding was the only thing holding the negative
	   margin on the rows; at this width the rows want the full
	   width of the card instead. */
	.tcl .tcl-check { margin-inline: -0.35rem; padding-inline: 0.35rem; }

	/* Stacked, with the divider turned into a rule ABOVE each item
	   after the first. A vertical hairline between two full-width
	   rows would be a 1px mark floating in the left margin. */
	.tcl-basis li { flex: 1 1 100%; padding-inline: 0; }
	.tcl-basis li + li { margin-top: 0.85rem; padding-top: 0.85rem; }

	.tcl-basis li + li::before {
		inset-block: auto;
		inset-inline: 0;
		top: 0;
		width: auto;
		height: 1px;
	}

	/* The "Clear" word goes; the box carries it. At 375px the flag
	   rows are three columns of content plus a two-part control,
	   and the word was the least load-bearing part of that. */
	.tcl-fl__cl { display: none; }

	.tcl-dock__p b { font-size: 1.125rem; }
	.tcl-dock { gap: 0.75rem; }

	/* The masthead label is two long letterspaced strings with a
	   flexible rule between them. At this width the strings wrap
	   and the rule is squeezed to nothing — a connector joining
	   two things that are no longer side by side. Stack them and
	   drop it. */
	.tcl-mast__k {
		display: grid;
		justify-items: start;
		gap: 0.5rem;
	}

	.tcl-mast__rule { display: none; }
}

@media (prefers-reduced-motion: reduce) {
	.tcl .tcl-btn--go:hover,
	.tcl .tcl-btn--go:focus { transform: none; }

	.tcl-prog__bar i { transition: none; }
}

/* ══ Export dialog ═════════════════════════════════════════
   The one modal in the plugin. Everything else on this page is
   inline, because a working document should not open windows at
   you — but the export genuinely is a mode change: you stop
   reviewing and start handing something over.

   `hidden` on the wrapper does the hiding, and the rule below is
   0,2,0 so a theme's own `[hidden]` handling cannot outrank it.
   That exact bleed cost real time on the compliance library. */

.tcl .tcl-gate[hidden] { display: none; }

.tcl-gate {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: grid;
	place-items: center;
	padding: clamp(1rem, 4vw, 2rem);
}

.tcl-gate__veil {
	position: absolute;
	inset: 0;
	background: rgba(18, 38, 63, 0.55);
	-webkit-backdrop-filter: blur(2px);
	backdrop-filter: blur(2px);
}

.tcl-gate__box {
	position: relative;
	width: 100%;
	max-width: 30rem;
	max-height: 90vh;
	overflow-y: auto;
	padding: clamp(1.5rem, 3vw, 2.25rem);
	background: var(--tcl-card);
	border-radius: var(--tcl-radius);
	box-shadow: 0 24px 70px -24px rgba(18, 38, 63, 0.5);
}

.tcl .tcl-gate__x {
	position: absolute;
	top: 0.85rem;
	right: 0.85rem;
	display: flex;
	padding: 0.4rem;
	border: 0;
	border-radius: 8px;
	background: none;
	color: var(--tcl-soft);
	cursor: pointer;
	transition: background-color 0.16s ease, color 0.16s ease;
}

.tcl .tcl-gate__x:hover { background: var(--tcl-sunk); color: var(--tcl-navy); }
.tcl .tcl-gate__x:focus-visible { outline: 2px solid var(--tcl-accent); outline-offset: 2px; }
.tcl .tcl-gate__x svg { width: 1rem; height: 1rem; }

.tcl-gate__k {
	font-size: 0.625rem;
	font-weight: 700;
	letter-spacing: 0.2em;
	text-transform: uppercase;
	line-height: 1;
	color: var(--tcl-soft);
	margin-bottom: 0.7rem;
}

.tcl-gate__t {
	font-family: var(--tcl-serif);
	font-weight: 700;
	font-size: clamp(1.375rem, 2.6vw, 1.75rem);
	line-height: 1.1;
	letter-spacing: -0.02em;
	color: var(--tcl-ink);
	margin-bottom: 0.6rem;
}

.tcl-gate__s {
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--tcl-muted);
	margin-bottom: 1.25rem;
}

.tcl-gate__f { display: grid; gap: 0.9rem; }

.tcl-gate__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
	gap: 0.9rem;
}

/* The consent tick reuses the checklist's own box, so the two
   kinds of ticking on this page look like one system. */
.tcl .tcl-consent {
	display: grid;
	grid-template-columns: auto minmax(0, 1fr);
	gap: 0.7rem;
	align-items: start;
	font-size: 0.8125rem;
	line-height: 1.55;
	color: var(--tcl-muted);
	cursor: pointer;
}

.tcl .tcl-consent input {
	position: absolute;
	width: 1px;
	height: 1px;
	opacity: 0;
	margin: 0;
	pointer-events: none;
}

.tcl .tcl-consent input:checked + .tcl-check__b {
	background: var(--tcl-accent);
	border-color: var(--tcl-accent);
	color: #fff;
}

.tcl .tcl-consent input:focus-visible + .tcl-check__b {
	outline: 2px solid var(--tcl-accent);
	outline-offset: 2px;
}

/* Off-screen rather than display:none — a bot that skips hidden
   inputs would sail past a display:none honeypot. */
.tcl-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tcl-gate__err {
	padding: 0.6rem 0.8rem;
	border-radius: 8px;
	border-left: 3px solid var(--tcl-accent);
	background: var(--tcl-accent-w);
	font-size: 0.8125rem;
	line-height: 1.5;
	color: var(--tcl-navy);
}

.tcl .tcl-gate__err[hidden] { display: none; }

.tcl-gate__fine {
	font-size: 0.75rem;
	line-height: 1.55;
	color: var(--tcl-soft);
}

.tcl .tcl-btn--go[disabled] {
	opacity: 0.45;
	cursor: progress;
	box-shadow: none;
	transform: none;
}

/* ── The success state ──────────────────────────────────── */

.tcl .tcl-done[hidden] { display: none; }

.tcl-done { text-align: center; }

.tcl-done__i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	margin-bottom: 1rem;
	border-radius: 999px;
	background: var(--tcl-accent-w);
	color: var(--tcl-accent);
}

.tcl .tcl-done__i svg { width: 1.4rem; height: 1.4rem; }

.tcl-done__t {
	font-family: var(--tcl-serif);
	font-weight: 700;
	font-size: 1.5rem;
	line-height: 1.15;
	letter-spacing: -0.02em;
	color: var(--tcl-ink);
	margin-bottom: 0.5rem;
}

.tcl-done__s {
	font-size: 0.875rem;
	line-height: 1.6;
	color: var(--tcl-muted);
	margin-bottom: 1.25rem;
}

.tcl-done__c {
	margin-top: 0.9rem;
	font-size: 0.75rem;
	line-height: 1.55;
	color: var(--tcl-soft);
}
