/* Tradesfile design system. White ground, one cobalt accent, status colours reserved for status. */
:root {
  --bg: #ffffff; --bg-soft: #f6f7f9; --bg-sunk: #eef0f3;
  --ink: #0b1220; --ink-2: #48525f; --ink-3: #5f6875;
  --line: #e4e7ec; --line-strong: #cfd4dc; --field-line: #8a93a0;
  --brand: #1447e6; --brand-ink: #0f36b3; --brand-soft: #eaf0ff;
  --ok: #067647; --ok-soft: #e7f6ee; --ok-line: #abdfc4;
  --warn: #a15c07; --warn-soft: #fef4e2; --warn-line: #f5d28f;
  --bad: #b42318; --bad-soft: #fdecea; --bad-line: #f4b8b1;
  --radius: 12px; --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(11, 18, 32, 0.05);
  --shadow: 0 1px 2px rgba(11, 18, 32, 0.04), 0 8px 24px -8px rgba(11, 18, 32, 0.10);
  --shadow-lg: 0 2px 4px rgba(11, 18, 32, 0.04), 0 24px 48px -16px rgba(11, 18, 32, 0.18);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
h2 { font-size: 20px; margin: 40px 0 14px; letter-spacing: -0.015em; }
h3 { font-size: 17px; margin-bottom: 6px; letter-spacing: -0.01em; }
p { margin: 0 0 12px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
section { padding: 48px 0; }
section.narrow .wrap { max-width: 760px; }
.sr, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip:focus { position: fixed; left: 12px; top: 12px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 50; }
.mono { font-family: var(--mono); font-size: 0.9em; letter-spacing: -0.01em; }
.nowrap { white-space: nowrap; }
.muted, .sub, .fine, .note, .when { color: var(--ink-3); }
.sub { display: block; font-size: 13.5px; line-height: 1.5; }
.fine { font-size: 13.5px; margin-top: 12px; }
.warn { color: var(--warn); }
.opt { font-weight: 400; color: var(--ink-3); }
.kicker, .eyebrow { font-size: 14px; font-weight: 500; color: var(--brand); margin-bottom: 12px; letter-spacing: 0; }
.eyebrow a { color: inherit; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 500; border: 1px solid var(--line-strong); border-radius: 5px; padding: 0 6px; color: var(--ink-2); vertical-align: 1px; }

/* Header and footer */
header.site { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, 0.86); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 28px; min-height: 64px; padding-block: 10px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 650; letter-spacing: -0.025em; color: var(--ink); }
.brand:hover { color: var(--ink); text-decoration: none; }
.brand svg { display: block; }
header.site nav { display: flex; flex-wrap: wrap; gap: 2px 4px; flex: 1; }
header.site nav a { color: var(--ink-2); font-size: 14.5px; font-weight: 500; padding: 7px 11px; border-radius: 7px; }
header.site nav a:hover { color: var(--ink); background: var(--bg-soft); text-decoration: none; }
header.site nav a[aria-current] { color: var(--ink); background: var(--bg-sunk); }
.bar-cta { display: flex; gap: 8px; }
footer.site { border-top: 1px solid var(--line); margin-top: 40px; padding: 36px 0 56px; font-size: 14px; color: var(--ink-3); background: var(--bg-soft); }
footer.site .foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px 40px; }
footer.site .foot p { max-width: 58ch; margin: 0; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer.site nav a { color: var(--ink-2); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 500 15px/1 var(--sans); letter-spacing: -0.005em; background: var(--brand); color: #fff; border: 1px solid var(--brand); border-radius: var(--radius-sm); padding: 0 16px; min-height: 42px; cursor: pointer; box-shadow: var(--shadow-sm); transition: background 0.15s, border-color 0.15s, box-shadow 0.15s; white-space: nowrap; }
.btn:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; text-decoration: none; }
.btn-lg { font-size: 16px; min-height: 48px; padding: 0 22px; border-radius: 10px; }
.btn-sm { font-size: 14px; min-height: 36px; padding: 0 12px; }
.btn-quiet { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-quiet:hover { background: var(--bg-soft); color: var(--ink); border-color: var(--ink-3); }
button.link { background: none; border: 0; padding: 8px 0; font: 500 14px var(--sans); color: var(--brand); cursor: pointer; min-height: 40px; }
button.link:hover { text-decoration: underline; text-underline-offset: 3px; }
button.link.danger { color: var(--bad); }
.more { font-weight: 500; font-size: 15px; }
.more::after { content: " →"; }

/* Forms */
label, legend { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; color: var(--ink); }
fieldset { border: 0; padding: 0; margin: 0; }
input, select, textarea { font: 400 15.5px/1.4 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--field-line); border-radius: var(--radius-sm); padding: 9px 12px; width: 100%; min-height: 42px; box-shadow: var(--shadow-sm); transition: border-color 0.15s, box-shadow 0.15s; }
input::placeholder, textarea::placeholder { color: #6b7582; }
input:hover, select:hover, textarea:hover { border-color: var(--ink-3); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
input[type="checkbox"] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; accent-color: var(--brand); box-shadow: none; }
input[type="file"] { padding: 7px; font-size: 14px; }
textarea { resize: vertical; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 400; margin: 0 0 8px; min-height: 28px; }
.form, .checkform { display: flex; flex-direction: column; gap: 14px; }
.form > label, .checkform > label { margin-bottom: -8px; }
.checkform { max-width: 780px; }
.checkform textarea, .form textarea { font-size: 15px; }
.checkform #list { font-family: var(--mono); font-size: 14px; line-height: 1.6; }
.checkform .row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.checkform .row label { margin: 0; }
.checkform .row select { width: auto; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
form.inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 6px 12px; align-items: end; }
form.inline label { align-self: end; margin: 0; grid-row: 1; }
form.inline input, form.inline select, form.inline .btn { grid-row: 2; }
.stack { display: flex; flex-direction: column; gap: 6px; }
.stack label { margin: 8px 0 0; }
.stack .btn { margin-top: 12px; }
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 0 0 20px; padding: 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.filters label { margin: 0 0 0 6px; font-size: 13.5px; color: var(--ink-2); }
.filters select, .filters input { width: auto; min-width: 140px; min-height: 38px; }
.filters .btn { min-height: 38px; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 20px 0; }
.toolbar .right { margin-left: auto; }
.search { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 8px; max-width: 880px; }
.search select { width: auto; }

/* Home */
.hero { padding: 72px 0 64px; background: radial-gradient(1200px 420px at 85% -10%, var(--brand-soft), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5vw, 58px); font-weight: 650; letter-spacing: -0.035em; line-height: 1.04; }
.lede { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--ink-2); max-width: 54ch; margin: 22px 0 30px; line-height: 1.55; }
.sublede { font-size: 17px; max-width: 68ch; color: var(--ink-2); margin: 10px 0 24px; }
.h-page { font-size: clamp(28px, 3.4vw, 38px); font-weight: 650; letter-spacing: -0.03em; max-width: 28ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; }
.cta .note { font-size: 14px; }
.preview { background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); overflow: hidden; }
.preview-bar { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500; }
.preview-bar span:last-child { color: var(--ink-3); font-weight: 400; font-size: 13px; }
.preview-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.preview-tiles div { background: #fff; padding: 14px 18px; }
.preview-tiles b { display: block; font-size: 24px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.preview-tiles span { font-size: 12.5px; color: var(--ink-3); }
.preview ul { list-style: none; margin: 0; padding: 0; }
.preview li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.preview li:last-child { border-bottom: 0; }
.preview li strong { font-weight: 500; }
.band { background: var(--bg-soft); border-block: 1px solid var(--line); padding: 36px 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px 32px; }
.stats .n { font-size: 32px; font-weight: 600; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stats .l { font-size: 14.5px; color: var(--ink-2); margin-top: 4px; }
.three { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 20px; }
.three > div { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.three p { color: var(--ink-2); font-size: 15px; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; align-items: center; }

/* Status chips: a dot plus words, so colour is never the only signal */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; line-height: 1; padding: 5px 9px 5px 8px; border-radius: 999px; white-space: nowrap; border: 1px solid; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-current { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-line); }
.chip-expiring { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.chip-expired, .chip-nomatch { background: var(--bad-soft); color: var(--bad); border-color: var(--bad-line); }
.chip-unknown, .chip-none { background: var(--bg-soft); color: var(--ink-2); border-color: var(--line-strong); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--ink-2); background: #fff; }
.pill-ok { color: var(--ok); background: var(--ok-soft); border-color: var(--ok-line); }
.pill-ok::before { content: "✓"; font-weight: 700; }
.pill-open { color: var(--brand-ink); background: var(--brand-soft); border-color: #c6d6ff; }

/* Lists and tables */
.count { color: var(--ink-3); margin: 22px 0 8px; font-size: 14.5px; }
.results { list-style: none; margin: 0 0 20px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.results li { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.results li:last-child { border-bottom: 0; }
.r-name { font-weight: 500; font-size: 16px; margin-right: 8px; color: var(--ink); }
.r-name:hover { color: var(--brand); }
.empty { color: var(--ink-3); background: var(--bg-soft); border: 1px dashed var(--line-strong); border-radius: var(--radius); padding: 20px; text-align: center; }
.plain { padding-left: 20px; max-width: 70ch; color: var(--ink-2); }
.plain li { margin-bottom: 6px; }
/* State license guides (/verify, /verify/:state) */
.verify-index { list-style: none; padding: 0; max-width: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 28px; }
.verify-index li { padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; }
.verify-index .sub { display: block; }
.boards li { margin-bottom: 10px; }
.state-links { line-height: 2; max-width: 70ch; }
.tablebox { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { font-size: 12.5px; font-weight: 500; color: var(--ink-3); background: var(--bg-soft); white-space: nowrap; padding-block: 10px; }
tbody tr:last-child > * { border-bottom: 0; }
tbody tr:hover > * { background: #fafbfc; }
tbody th { font-weight: 500; }
tbody th a { color: var(--ink); }
tbody th a:hover { color: var(--brand); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.subs tbody th { min-width: 170px; }
table.subs td { min-width: 150px; }
table.subs td:nth-child(2) { min-width: 230px; width: 30%; }
tr.row-expired > :first-child, tr.row-nomatch > :first-child { box-shadow: inset 3px 0 0 var(--bad); }
tr.row-expiring > :first-child { box-shadow: inset 3px 0 0 #e0a030; }
.when { display: block; font-size: 13px; margin-top: 5px; }
table.jobs { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; border-collapse: separate; border-spacing: 0; overflow: hidden; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 8px 0 4px; }
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.tile .n { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.tile .l { font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.tile.ok .n { color: var(--ok); }
.tile.warn .n { color: var(--warn); }
.tile.bad .n { color: var(--bad); }
.tile.idle .n { color: var(--ink-2); }

/* Cards and notices */
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-top: 24px; box-shadow: var(--shadow-sm); }
.card h2 { margin: 0 0 12px; font-size: 17px; }
.card.save { border-color: #c6d6ff; background: linear-gradient(180deg, var(--brand-soft), #fff 70%); }
.cta-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; background: var(--bg-soft); }
.cta-card h2 { margin-bottom: 4px; }
.cta-card p { margin: 0; color: var(--ink-2); }
.flash { background: var(--ok-soft); border: 1px solid var(--ok-line); color: var(--ok); border-radius: var(--radius-sm); padding: 11px 14px; font-weight: 500; font-size: 14.5px; }
.flash-bad { background: var(--bad-soft); border-color: var(--bad-line); color: var(--bad); }
.notice { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 20px; font-size: 14.5px; }
.sample-tag { display: inline-block; font-size: 13px; background: var(--warn-soft); border: 1px solid var(--warn-line); color: var(--warn); border-radius: 999px; padding: 4px 12px; margin-bottom: 18px; }

/* License record page */
.p-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 18px 32px; border-bottom: 1px solid var(--line); padding-bottom: 28px; }
.p-type { font-size: 16px; color: var(--ink-2); margin: 10px 0 0; }
.verdict { display: flex; flex-direction: column; gap: 2px; border: 1px solid; border-radius: var(--radius); padding: 12px 18px; min-width: 190px; }
.v-label { font-size: 17px; font-weight: 600; letter-spacing: -0.015em; display: flex; align-items: center; gap: 8px; }
.v-label::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.v-sub { font-size: 13px; color: var(--ink-3); }
.v-current { color: var(--ok); background: var(--ok-soft); border-color: var(--ok-line); }
.v-expiring { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }
.v-expired { color: var(--bad); background: var(--bad-soft); border-color: var(--bad-line); }
.v-unknown { color: var(--ink-2); background: var(--bg-soft); border-color: var(--line-strong); }
.cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(290px, 1fr); gap: 8px 48px; align-items: start; }
.cols aside .card:first-child { margin-top: 40px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 14px 24px; margin: 0; }
.facts dt { font-size: 14px; color: var(--ink-3); padding-top: 2px; }
.facts dd { margin: 0; }
.facts .when { display: inline; margin-left: 6px; }
.jobs-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, max-content)); gap: 12px; align-items: stretch; margin-bottom: 16px; }
.sparkbox { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 0 6px; }
.spark rect { fill: var(--brand); opacity: 0.85; }
.spark rect:hover { opacity: 1; }
.layers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.layers li { display: flex; gap: 12px; align-items: flex-start; }
.layers strong { font-weight: 500; font-size: 15px; }
.tick { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; margin-top: 1px; }
.layers .on .tick { background: var(--ok); color: #fff; }
.layers .off .tick { background: var(--bg-sunk); color: var(--ink-3); }
.layers .off strong { color: var(--ink-3); font-weight: 400; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 8px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.plan h2 { margin: 0; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.plan p { font-size: 14.5px; color: var(--ink-2); margin-bottom: 6px; }
.plan p strong { color: var(--ink); font-weight: 500; }
.plan-hi { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft), var(--shadow); }
.price { font-size: 36px; font-weight: 600; letter-spacing: -0.035em; margin: 8px 0 14px; }
.price small { font-size: 14px; font-weight: 400; color: var(--ink-3); letter-spacing: 0; }

/* City list */
.cities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0 28px; }
.cities li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.cities .sub { display: inline; }

/* Profiles built by tradespeople */
.pro-hero { padding: 48px 0 36px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.pro-top { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; }
.avatar { flex: 0 0 84px; width: 84px; height: 84px; border-radius: 20px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 30px; font-weight: 600; letter-spacing: -0.02em; }
.pro-id { flex: 1 1 320px; min-width: 0; }
.pro-id h1 { font-size: clamp(28px, 3.4vw, 38px); font-weight: 650; letter-spacing: -0.03em; }
.pro-headline { font-size: 18px; color: var(--ink); margin: 6px 0 2px; }
.pro-meta { color: var(--ink-3); font-size: 15px; margin: 0; }
.pro-cols { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, 1fr); gap: 8px 48px; align-items: start; }
.pro-main > h2:first-child { margin-top: 0; }
.pro-side .card:first-child { margin-top: 0; }
.bio { font-size: 16.5px; color: var(--ink-2); max-width: 66ch; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.shot { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.shot-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-sunk); }
.shot-blank { background: repeating-linear-gradient(135deg, var(--bg-soft) 0 12px, var(--bg-sunk) 12px 24px); }
.shot figcaption { padding: 14px 16px 16px; }
.shot figcaption strong { font-weight: 500; }
.shot-desc { display: block; font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.timeline li:last-child { border-bottom: 0; }
.timeline strong { font-weight: 500; }
.timeline p { color: var(--ink-2); font-size: 15px; margin: 6px 0 0; }
.t-when { font-size: 14px; color: var(--ink-3); padding-top: 2px; }
.t-org { display: block; color: var(--ink-2); font-size: 15px; }
.certs { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.certs li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 20px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.certs li:last-child { border-bottom: 0; }
.certs strong { font-weight: 500; }
.cert-state { font-size: 13px; color: var(--ink-3); }
.skills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.skills li { font-size: 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 999px; padding: 5px 13px; color: var(--ink-2); }
.pro-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.pro-card { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); transition: box-shadow 0.15s, transform 0.15s, border-color 0.15s; }
.pro-card:hover { text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transform: translateY(-2px); border-color: var(--line-strong); }
.pro-cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--bg-sunk); }
.pro-cover-blank { background: repeating-linear-gradient(135deg, var(--bg-soft) 0 12px, var(--bg-sunk) 12px 24px); }
.pro-card-body { padding: 16px 18px 18px; }
.pro-card-body strong { font-weight: 600; font-size: 16.5px; letter-spacing: -0.01em; }
.edit-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.edit-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(280px, 1fr); gap: 0 32px; align-items: start; }
.edit-grid .card:first-child { margin-top: 0; }
.edit-list, .inbox { list-style: none; margin: 0 0 18px; padding: 0; }
.edit-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.edit-list strong { font-weight: 500; }
.inbox li { padding: 12px 0; border-bottom: 1px solid var(--line); }
.inbox li:last-child { border-bottom: 0; }
.inbox p { margin: 6px 0 0; color: var(--ink-2); font-size: 14.5px; }
.share { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; margin: 0; word-break: break-all; }

@media (max-width: 900px) {
  .hero-grid, .cols, .pro-cols, .edit-grid { grid-template-columns: 1fr; }
  .hero { padding: 48px 0 40px; }
  .hero-grid { gap: 36px; }
  .cols aside .card:first-child { margin-top: 24px; }
  .pro-side .card:first-child { margin-top: 24px; }
  header.site nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; margin: 0 -12px; padding: 0 4px 4px; scrollbar-width: none; }
  header.site nav::-webkit-scrollbar { display: none; }
  header.site nav a { white-space: nowrap; }
  .bar-cta { margin-left: auto; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  section { padding: 32px 0; }
  .search { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .search input, .search .btn { grid-column: 1 / -1; }
  .search select { width: 100%; }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
  /* Label-over-field forms stack into one column on phones, so a long button never runs off the screen. */
  form.inline { grid-template-columns: 1fr; }
  form.inline label, form.inline input, form.inline select, form.inline .btn { grid-row: auto; }
  form.inline label { margin-top: 6px; }
  .btn { white-space: normal; text-align: center; }
  .bar-cta .wide { display: none; }
  /* The sub table becomes a stack of cards, so the status is never off screen. */
  table.subs, table.subs tbody, table.subs tr, table.subs th, table.subs td { display: block; width: auto; min-width: 0; }
  table.subs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.subs tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  table.subs tbody tr:last-child { border-bottom: 0; }
  table.subs th, table.subs td { padding: 3px 0; border: 0; background: none !important; }
  table.subs tbody th { font-size: 16px; margin-bottom: 4px; }
  table.subs td[data-label] { display: grid; grid-template-columns: 96px 1fr; gap: 8px; align-items: start; padding: 5px 0; }
  table.subs td[data-label]::before { content: attr(data-label); font-size: 13px; color: var(--ink-3); padding-top: 3px; }
  table.subs td[data-label] > * { grid-column: 2; justify-self: start; }
  table.subs td:nth-child(2) { width: auto; }
  tr.row-expired, tr.row-nomatch { box-shadow: inset 3px 0 0 var(--bad); }
  tr.row-expiring { box-shadow: inset 3px 0 0 #e0a030; }
  tr[class^="row-"] > :first-child { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
@media print { header.site, footer.site, .card, .toolbar, form { display: none !important; } }

/* Accounts */
section.auth .wrap { max-width: 480px; }
.auth .h-page { margin-bottom: 18px; }
.acct-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 20px; }
.acct-grid .card { margin-top: 20px; }
.plan-now { font-size: 24px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 4px; }
.plan-now .muted { font-size: 15px; font-weight: 400; letter-spacing: 0; }
.plan .btn, .plan .pill { margin-top: 12px; }
.cert-when { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 8px; }
.cert-when .when { display: inline; margin: 0; }
.decide { display: flex; flex-wrap: wrap; gap: 8px; }

.notice-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }

.joblog { margin: 0; font: 12px/1.45 var(--mono); color: var(--ink-2); white-space: pre-wrap; word-break: break-word; max-width: 520px; }

/* Team seats */
.team-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; }
/* Google sign-in, account settings, legal pages */
.btn-google { width: 100%; gap: 10px; }
.or { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--ink-3); font-size: 13.5px; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.btn-danger { background: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: #8f1c13; border-color: #8f1c13; }
.card-danger { border-color: var(--bad-line); }
.notice.draft { border-color: #e7b84a; background: #fff8e6; }
.notice.draft strong, .notice.draft .sub { display: block; }
.legal h2 { margin-top: 32px; font-size: 19px; }
.legal p { max-width: 70ch; color: var(--ink-2); }

/* Profile photos */
.avatar-photo { object-fit: cover; padding: 0; }
.avatar-sm { display: block; width: 44px; height: 44px; flex-basis: 44px; border-radius: 12px; margin-bottom: 10px; font-size: 16px; }
.photo-row { display: flex; gap: 20px; align-items: flex-start; }
.photo-row > div:last-child { flex: 1; min-width: 0; }
@media (max-width: 520px) { .photo-row { flex-direction: column; } }

/* Search landing pages: breadcrumbs, pager, state blocks, footer state links */
.crumbs { display: flex; flex-wrap: wrap; gap: 2px 6px; color: var(--ink-3); }
.crumbs span { color: var(--ink-2); }
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 18px; }
.pager .sub { display: inline; margin: 0; }
.src-note { max-width: 78ch; color: var(--ink-2); }
.steps li { margin-bottom: 10px; }
.browse h3 a { color: var(--ink); }
.browse p { margin-bottom: 8px; }
.cta-card + h2 { margin-top: 44px; }
footer.site .foot-states { flex-basis: 100%; padding-top: 16px; border-top: 1px solid var(--line); }
footer.site .foot-states span { color: var(--ink-3); }

/* Sharing: badge embed block, copy buttons, QR code */
.pro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.pro-actions form { margin: 0; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; }
.copy-row .sub { color: var(--ok); font-weight: 500; }
.embed label { margin-top: 16px; }
.badge-previews { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.badge-previews img { display: block; max-width: 100%; height: auto; }
.badge-light, .badge-dark { display: block; max-width: 100%; border-radius: var(--radius); padding: 10px; background: var(--bg-soft); }
.badge-dark { background: #0b1220; }
.embed-code { font: 12.5px/1.5 var(--mono); color: var(--ink-2); background: var(--bg-soft); resize: none; word-break: break-all; box-shadow: none; }
.qr-row { display: flex; align-items: center; gap: 16px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.qr-box { flex: none; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px; background: #fff; line-height: 0; }
.qr-row strong { display: block; font-weight: 500; font-size: 15px; line-height: 1.35; margin-bottom: 4px; }
.qr-row .more { display: inline-block; margin-top: 8px; font-size: 14px; }

/* Profile strength, views and availability in the editor */
.edit-grid [id], .strength { scroll-margin-top: 92px; }
.strength { margin: 0 0 24px; }
.strength-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; }
.strength-top h2 { margin-bottom: 2px; }
.strength-n { margin: 0; color: var(--ink-2); }
.strength-n strong { color: var(--ink); font-weight: 600; }
.meter { display: flex; gap: 4px; }
.meter span { width: 30px; height: 8px; border-radius: 999px; background: var(--bg-sunk); }
.meter span.on { background: var(--brand); }
.strength-next { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 16px 0 4px; padding: 14px 16px; background: var(--brand-soft); border: 1px solid #c6d6ff; border-radius: var(--radius-sm); }
.strength-next > div { flex: 1 1 320px; }
.strength-next strong { font-weight: 600; }
.strength-next .sub { color: var(--ink-2); }
.checklist { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px 28px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist strong { font-weight: 500; font-size: 15px; }
.checklist .on .tick { background: var(--ok); color: #fff; }
.checklist .off .tick { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.checklist .on strong { color: var(--ink-2); }
.stat { display: flex; align-items: baseline; gap: 12px; margin: 0; color: var(--ink-2); }
.stat-n { font-size: 34px; font-weight: 600; letter-spacing: -0.035em; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.pill-avail { color: var(--ok); background: var(--ok-soft); border-color: var(--ok-line); }
.pill-avail::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.avail-line { font-weight: 500; margin-bottom: 6px; }
.pro-hero .notice { background: #fff; }
.filters .filter-check { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 0 6px; min-height: 38px; font-weight: 500; }
.filters input[type="checkbox"] { width: 18px; min-width: 0; min-height: 0; }
.inbox li .sub + .sub { margin-top: 2px; }

/* Shortlist */
.shortlist { list-style: none; margin: 0; padding: 0; }
.shortlist li.card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) auto; gap: 16px 28px; align-items: start; margin-top: 16px; }
.sl-who { display: flex; gap: 14px; align-items: flex-start; min-width: 0; }
.sl-who .avatar-sm { flex: none; display: grid; margin: 2px 0 0; }
.sl-note { display: flex; flex-direction: column; gap: 8px; }
.sl-note label { margin: 0; }
.sl-do { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.sl-do .sub { margin-left: auto; }
@media (max-width: 900px) {
  .shortlist li.card { grid-template-columns: 1fr; }
  .sl-remove { margin-top: -8px; }
}
@media (max-width: 520px) { .qr-row { flex-direction: column; align-items: flex-start; } }

/* Résumé: a sheet of paper on screen, one page when printed. Sizes are in em so the fit script can scale the whole sheet. */
.rs-body { background: var(--bg-sunk); }
.rs-bar { box-sizing: border-box; max-width: 8.5in; margin: 0 auto; padding: 14px 4px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; font-size: 14.5px; }
.rs-bar-do { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.rs-bar .sub { display: inline; }
.resume { --rs-size: 10.5pt; box-sizing: border-box; width: 8.5in; max-width: 100%; min-height: 11in; margin: 0 auto 48px; padding: 0.5in; background: #fff; box-shadow: var(--shadow-lg); font-size: var(--rs-size); line-height: 1.42; }
.resume.rs-measure { padding: 0; min-height: 0; max-width: none; }
.rs-head { display: flex; align-items: center; gap: 1.5em; padding-bottom: 1.2em; border-bottom: 2px solid var(--ink); }
.rs-photo { flex: none; width: 6.4em; height: 6.4em; border-radius: 1.3em; object-fit: cover; }
.rs-id { flex: 1; min-width: 0; }
.rs-id h1 { font-size: 2.3em; font-weight: 650; letter-spacing: -0.03em; }
.rs-headline { font-size: 1.2em; margin: 0.3em 0 0.2em; }
.rs-meta { color: var(--ink-2); margin: 0; }
.rs-sample { display: inline-block; font-size: 0.85em; color: var(--warn); border: 1px solid var(--warn-line); background: var(--warn-soft); border-radius: 999px; padding: 0.1em 0.8em; margin: 0 0 0.6em; }
.rs-qr { flex: none; display: flex; flex-direction: column; align-items: center; gap: 0.3em; max-width: 17em; text-align: center; font-size: 0.8em; color: var(--ink-2); }
.rs-qr span, .rs-qr strong { display: block; }
.rs-qr svg { display: block; width: 6.6em; height: 6.6em; }
.rs-qr strong { font: 500 0.95em/1.3 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.rs-cols { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 0 2.4em; margin-top: 1.3em; }
.resume h2 { font-size: 1em; font-weight: 600; letter-spacing: 0; color: var(--brand); margin: 0 0 0.6em; padding-bottom: 0.3em; border-bottom: 1px solid var(--line); }
.resume section { padding: 0; margin: 0 0 1.3em; }
.resume p { margin: 0 0 0.5em; }
.rs-list, .rs-certs { list-style: none; margin: 0; padding: 0; }
.rs-list li { margin-bottom: 0.85em; break-inside: avoid; }
.rs-row { display: flex; justify-content: space-between; align-items: baseline; gap: 1em; }
.rs-row strong, .rs-certs strong, .rs-lic strong { font-weight: 600; }
.rs-when { flex: none; color: var(--ink-3); font-size: 0.93em; }
.rs-org { display: block; color: var(--ink-2); }
.rs-list p { margin: 0.25em 0 0; color: var(--ink-2); }
.rs-certs li { margin-bottom: 0.7em; break-inside: avoid; }
.rs-certs strong, .rs-lic strong, .rs-certs span, .rs-lic span { display: block; }
.rs-certs span, .rs-lic span { color: var(--ink-2); font-size: 0.93em; }
.resume .rs-proof, .rs-more { color: var(--ink-3); }
.rs-more { font-size: 0.93em; }
.rs-skills { color: var(--ink-2); }
.rs-tight .rs-work p { display: none; }
.rs-tight .rs-list li { margin-bottom: 0.6em; }
.rs-tight section { margin-bottom: 1em; }
.rs-foot { margin-top: 0.4em; padding-top: 0.8em; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.8em; }
@media screen and (max-width: 720px) {
  .rs-bar { padding: 12px 16px; }
  .rs-bar .sub { display: none; }
  .resume:not(.rs-measure) { font-size: 14.5px; padding: 24px 18px; min-height: 0; margin-bottom: 0; }
  .resume:not(.rs-measure) .rs-head { flex-wrap: wrap; align-items: flex-start; gap: 14px 18px; }
  .resume:not(.rs-measure) .rs-id { flex-basis: 60%; }
  .resume:not(.rs-measure) .rs-id h1 { font-size: 1.9em; }
  .resume:not(.rs-measure) .rs-qr { flex: 1 1 100%; flex-direction: row; text-align: left; max-width: none; gap: 14px; font-size: 0.9em; }
  .resume:not(.rs-measure) .rs-qr > div { min-width: 0; }
  .resume:not(.rs-measure) .rs-cols { grid-template-columns: 1fr; }
}
@page { margin: 0.5in; }
@media print {
  .rs-body { background: #fff; }
  .rs-bar { display: none !important; }
  .resume { width: auto; max-width: none; min-height: 0; margin: 0; padding: 0; box-shadow: none; }
}

/* ===== Design review, Nov 2026 ===== */

/* The footer sits at the bottom of the window on short pages */
body { min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
main:focus { outline: none; }
footer.site .foot-about { max-width: 58ch; }
footer.site .foot-about p + p { margin-top: 10px; }
footer.site .foot-about a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* Headings never touch what follows */
.h-page { margin-bottom: 14px; }
.h-page + .sublede { margin-top: -4px; }
.flash { margin: 0 0 16px; }
.flash a, .notice a { font-weight: 500; }
.card .notice { background: #fff; }

/* The menu moves to its own row before it can wrap */
@media (max-width: 1040px) {
  header.site nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; margin: 0 -12px; padding: 0 28px 4px 4px; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 28px), transparent); }
  header.site nav::-webkit-scrollbar { display: none; }
  header.site nav a { white-space: nowrap; }
  .bar-cta { margin-left: auto; }
}

/* Filter bars: a label and its control stay together */
.filters .f { display: flex; align-items: center; gap: 8px; }
.filters .f label { margin: 0; white-space: nowrap; }

/* Home: how it works, the band for tradespeople */
.src-line { max-width: 54ch; }
.how { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; }
.how li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.how-n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-weight: 600; font-size: 14.5px; margin-bottom: 14px; }
.how p { color: var(--ink-2); font-size: 15px; margin: 0; }
.band-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
.worker h2 { font-size: clamp(24px, 2.6vw, 30px); letter-spacing: -0.025em; max-width: 22ch; }
.worker .sublede { margin-top: 14px; }
.pro-preview .pp-top { display: flex; gap: 14px; align-items: center; padding: 18px 18px 0; }
.pro-preview .pp-top .avatar-sm { flex: none; display: grid; margin: 0; }
.pro-preview .pp-top strong { font-weight: 600; font-size: 16.5px; }
.pro-preview .pp-pills { padding: 0 18px 16px; border-bottom: 1px solid var(--line); margin-top: 12px; }
.pro-preview li .sub { display: inline; }

/* Pricing: the same rows on every plan, buttons on one line */
.plan { display: flex; flex-direction: column; position: relative; }
.plan .btn, .plan > .pill { margin-top: auto; align-self: flex-start; }
.plan-flag { position: absolute; top: 18px; right: 18px; }
.plan > p { min-height: 3.2em; }
.plan-list { list-style: none; margin: 10px 0 20px; padding: 14px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 9px; font-size: 14.5px; color: var(--ink-2); }
.plan-list li { display: flex; gap: 10px; align-items: flex-start; }
.plan-list strong { color: var(--ink); font-weight: 600; }
.plan-list .tick { flex: 0 0 18px; height: 18px; font-size: 11px; margin-top: 2px; }
.plan-list .yes .tick { background: var(--ok-soft); color: var(--ok); }
.plan-list .no .tick { background: var(--bg-sunk); color: var(--ink-3); }
.plan-list .no { color: var(--ink-3); }
.faq { margin: 0; max-width: 76ch; }
.faq dt { font-weight: 600; margin-top: 18px; }
.faq dd { margin: 4px 0 0; color: var(--ink-2); }

/* Saved lists */
.watched { margin: -12px 0 20px; max-width: 78ch; }
.table-note { margin-top: 10px; }
td.na { color: var(--ink-3); }
details.confirm { position: relative; }
details.confirm summary { list-style: none; cursor: pointer; padding: 8px 0; font: 500 14px var(--sans); color: var(--bad); }
details.confirm summary::-webkit-details-marker { display: none; }
details.confirm summary:hover { text-decoration: underline; text-underline-offset: 3px; }
details.confirm form { position: absolute; right: 0; top: 100%; z-index: 5; width: max-content; max-width: min(320px, 86vw); display: flex; flex-direction: column; gap: 10px; align-items: flex-start; background: #fff; border: 1px solid var(--bad-line); border-radius: var(--radius-sm); padding: 14px; box-shadow: var(--shadow); }
@media (min-width: 721px) {
  table.subs tbody th { min-width: 200px; width: 22%; overflow-wrap: anywhere; }
  table.subs td:nth-child(2) { width: 30%; }
}

/* License record page */
.card.watch { margin-top: 28px; }
.contact-list .r-name { display: block; }

/* Account */
.acct-grid { align-items: start; }
.acct-head { align-items: flex-start; margin-bottom: 16px; }
.edit-head.acct-head .sublede { margin-bottom: 8px; }

@media (max-width: 720px) {
  /* Touch targets of at least 44px */
  .btn, .btn-sm, input, select, textarea, button.link { min-height: 44px; }
  input[type="checkbox"] { min-height: 0; }
  header.site nav a { padding: 12px 8px; font-size: 13.5px; }
  header.site nav { gap: 0; }
  footer.site nav { gap: 0 20px; }
  footer.site nav a { padding: 11px 0; }
  details.confirm summary { min-height: 44px; display: flex; align-items: center; }
  .bar { gap: 6px 12px; }
  .bar-cta { gap: 6px; }

  .filters .f { flex: 1 1 100%; }
  .filters .f label { flex: 0 0 92px; }
  .filters .f select, .filters .f input { flex: 1 1 0; width: 0; min-width: 0; }
  .filters > .btn { flex: 1 1 100%; }

  /* Sub cards: shorter, and nothing for a fact the agency does not publish */
  table.subs td[data-label] { grid-template-columns: 74px 1fr; }
  table.subs .when { display: inline; margin: 0 0 0 6px; }
  table.subs td.na { display: none; }

  /* Public tables become cards too, so the status or date is never off screen */
  table.cards, table.cards tbody, table.cards tr, table.cards th, table.cards td { display: block; width: auto; min-width: 0; }
  table.cards thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  table.cards tr { position: relative; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  table.cards tbody tr:last-child { border-bottom: 0; }
  table.cards th, table.cards td { padding: 2px 0; border: 0; background: none !important; text-align: left; }
  table.cards tbody th { font-size: 15.5px; margin-bottom: 4px; overflow-wrap: anywhere; }
  table.cards td[data-label] { position: relative; padding-left: 82px; min-height: 26px; }
  table.cards td[data-label]::before { content: attr(data-label); position: absolute; left: 0; top: 4px; font: 400 13px var(--sans); color: var(--ink-3); }
  table.cards td[data-label] .sub { display: inline; margin-left: 4px; }
  table.cards td.na { display: none; }
  table.cards td.rank { position: absolute; right: 16px; top: 12px; color: var(--ink-3); }
  table.cards td.rank::before { content: "#"; }
  table.cards tr:has(td.rank) th { padding-right: 44px; }

  .plan-flag { position: static; align-self: flex-start; margin-bottom: 10px; }
  .watched { margin-top: -6px; }
}
@media (prefers-reduced-motion: reduce) { .pro-card:hover { transform: none; } }

/* Profile editor and tradespeople directory: one primary button, item actions, inbox, sign-up sample link, filters that keep each label with its control */
.edit-head { align-items: flex-start; }
.form .btn-add { align-self: flex-start; }
.form-do { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.form-title { margin: 0; font-weight: 600; }
.form .grid2 .sub, .form > .sub { margin-top: 6px; color: var(--ink-3); }
.edit-list li > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.edit-list .chip { margin-left: 6px; vertical-align: 2px; }
.edit-do { flex: none; display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 500; }
.edit-do form { margin: 0; }
.inbox li.new { margin: 0 -12px; padding: 12px; border-radius: var(--radius-sm); background: var(--brand-soft); border-bottom-color: transparent; }
.inbox .tag { margin-left: 4px; color: var(--brand-ink); border-color: #c6d6ff; background: #fff; }
.inbox .btn { margin-top: 10px; }
.card h2 .pill { margin-left: 6px; vertical-align: 2px; }
.join-sample { margin: -8px 0 20px; }
.pros-filters .f { display: flex; align-items: center; gap: 8px; }
.pros-filters .f-checks { gap: 4px 14px; flex-wrap: wrap; }
@media (max-width: 900px) {
  /* On a phone the messages and the availability switch come before the long forms; views, sharing and the badge come after. */
  .edit-grid { display: flex; flex-direction: column; }
  .edit-grid > aside { display: contents; }
  .edit-grid > aside > .card { order: 1; }
  .edit-grid > aside > #inbox, .edit-grid > aside > #availability { order: -1; }
  .edit-grid > aside > #inbox { margin-top: 0; }
  .edit-grid .edit-main > .card:first-child { margin-top: 24px; }
}
@media (max-width: 720px) {
  .pros-filters .f { flex: 1 1 100%; }
  .pros-filters .f > label:not(.check) { flex: 0 0 64px; margin-left: 0; }
  .pros-filters .f select { flex: 1; min-width: 0; }
  .pros-filters .f-checks .filter-check { margin-left: 0; }
  .pros-filters .btn { flex: 1 1 100%; }
  .edit-list li { flex-wrap: wrap; }
}

/* Builder trial line on /rosters and /account */
.trial-bar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 20px; padding: 10px 14px; font-size: 14.5px; color: var(--brand-ink); background: var(--brand-soft); border: 1px solid #c6d6ff; border-radius: var(--radius-sm); }
.trial-bar a { font-weight: 600; }
.trial-bar .sep { color: #8ea6e8; }
.trial-bar.trial-over { color: var(--ink); background: var(--warn-soft); border-color: var(--warn-line); }
.trial-bar.trial-over .sep { color: var(--warn); }

/* Email choices on /account */
.prefs .pref { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 14px; font-weight: 400; cursor: pointer; }
.prefs .pref input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
.prefs .pref strong { display: block; font-weight: 600; }
.prefs .btn { margin-top: 4px; }

/* /admin/analytics */
.an-range { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.an-tiles { margin-bottom: 16px; }
.an-chart { margin: 8px 0 0; padding: 16px 16px 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.an-chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.an-chart .bar { fill: var(--brand); }
.an-chart g:hover .bar { fill: var(--brand-ink); }
.an-chart .hit { fill: transparent; }
.an-chart .grid { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
.an-chart .axis { stroke: var(--line-strong); stroke-width: 1; }
.an-chart text { font: 11px var(--mono); fill: var(--ink-3); }
.an-chart figcaption { margin-top: 6px; }
.funnel-cell { width: 34%; min-width: 120px; }
.funnel-bar { display: block; height: 10px; min-width: 2px; background: var(--brand); border-radius: 0 4px 4px 0; }
.an-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 0 24px; }
.an-grid .tablebox, .admin-an .tablebox { margin-bottom: 8px; }
.an-days { margin-top: 28px; }
.an-days summary { cursor: pointer; font-weight: 500; margin-bottom: 12px; }
@media (max-width: 520px) {
  .an-grid { grid-template-columns: minmax(0, 1fr); }
  .funnel-cell { min-width: 60px; width: 25%; }
}
/* A long call to action on a plan card wraps inside the card instead of running past its edge. */
.plan .btn-wrap { white-space: normal; text-align: center; line-height: 1.3; padding-top: 10px; padding-bottom: 10px; max-width: 100%; }
@media (max-width: 520px) { .trial-bar .sep { display: none; } .trial-bar a { display: block; } }
@media (max-width: 520px) { .an-chart { overflow-x: auto; } .an-chart svg { min-width: 540px; } }

/* ---- Certificates of insurance ---- */
table.subs td.coi-cell { min-width: 170px; }
table.subs.with-coi td:nth-child(2) { width: 24%; }
.coi-act { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 13.5px; }
.coi-act .sub-link { color: var(--ink-3); }
.link-strong { font-weight: 600; }
.coi-dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; width: min(460px, calc(100vw - 32px)); box-shadow: var(--shadow-lg); color: var(--ink); }
.coi-dialog::backdrop { background: rgba(11, 18, 32, 0.35); }
.coi-dialog h2 { margin: 0; }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.inline-actions { display: inline-flex; gap: 8px; margin: 6px 0 4px 8px; vertical-align: middle; }
.sub-updates ul { margin: 8px 0; }
.sub-updates li { margin: 6px 0; }
.coi-status .problems li, .portal .problems li { color: var(--bad); }
.problems { margin: 8px 0 12px; }
.plain.ticks { list-style: none; padding-left: 0; }
.plain.ticks li { padding-left: 22px; position: relative; }
.plain.ticks li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.file-line { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.file-line .sub { display: inline; }
.coi-photo { max-width: 260px; max-height: 340px; border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); background: #fff; }
.review { max-width: 960px; }
.rf-group { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px 18px; margin: 0; min-width: 0; }
.rf-group legend { font-weight: 600; padding: 0 6px; margin-left: -6px; }
.rf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px 16px; }
.rf { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.rf label { font-size: 14px; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rf-grid .check { grid-column: 1 / -1; }
/* A value read from the file, waiting for a person: a blue edge and a small tag, never just colour. */
.review input.read, .review textarea.read { border-color: var(--brand); border-left-width: 4px; background: var(--brand-soft); }
.review .check.read { background: var(--brand-soft); border-left: 4px solid var(--brand); padding: 6px 10px; border-radius: var(--radius-sm); }
.read-tag { font-size: 11.5px; font-weight: 600; color: var(--brand-ink); background: #fff; border: 1px solid #c6d6ff; border-radius: 999px; padding: 1px 7px; letter-spacing: 0.01em; white-space: nowrap; }
.review .edited { border-left: 4px solid var(--ok); }
.notice-read { border-color: #c6d6ff; background: var(--brand-soft); }
.delete-coi { margin-top: 28px; }
.coi-cols > div > .card:first-child, .coi-cols > aside > .card:first-child { margin-top: 0; }
.coi-cols { margin-top: 24px; }
@media (max-width: 900px) { .coi-cols > aside > .card:first-child { margin-top: 24px; } }
.portal .card h2 { margin-top: 0; }
@media (min-width: 721px) {
  /* With the certificate column the table has seven columns: narrower minimums so it fits 1160px without scrolling. */
  table.subs.with-coi tbody th { min-width: 130px; width: 15%; }
  table.subs.with-coi td { min-width: 0; }
  table.subs.with-coi td:nth-child(2) { width: 22%; min-width: 170px; }
  table.subs.with-coi td.coi-cell { width: 17%; min-width: 150px; }
}
@media (max-width: 720px) {
  .coi-act { margin-top: 4px; }
  .inline-actions { display: flex; margin: 8px 0 4px; }
  .rf-grid { grid-template-columns: 1fr; }
  .coi-dialog { padding: 18px; }
}

/* ===== Spreadsheet import, compliance report, first run (Nov 2026) ===== */

/* Paste or upload, side by side; one column on phones */
.import-pair { display: grid; grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr); gap: 20px 28px; align-items: start; }
.import-pair .checkform { max-width: none; }
.import-or { display: flex; flex-direction: column; align-items: center; gap: 8px; align-self: stretch; color: var(--ink-3); font-size: 13.5px; }
.import-or::before, .import-or::after { content: ""; flex: 1; border-left: 1px solid var(--line); }
.import-form .sub a { font-weight: 500; }
@media (max-width: 900px) {
  .import-pair { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .import-or { flex-direction: row; }
  .import-or::before, .import-or::after { border-left: 0; border-top: 1px solid var(--line); }
}

/* The column mapping step */
.map-box { margin-top: 4px; }
.map-table th { vertical-align: bottom; white-space: normal; min-width: 160px; background: var(--bg-soft); }
.map-table th label { font-size: 12.5px; color: var(--ink-3); font-weight: 500; margin-bottom: 4px; }
.map-table select { min-height: 38px; font-size: 14px; padding: 6px 10px; }
.map-table select.map-off { color: var(--ink-3); }
.map-table td { max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.map-table tr.map-head td { background: var(--bg-sunk); color: var(--ink-2); font-weight: 500; }

/* Sample list, empty states, first-run hints */
.pill-sample { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); margin-left: 8px; vertical-align: 4px; font-size: 12px; }
.h-page .pill-sample { vertical-align: 8px; }
.sample-note { border-color: var(--warn-line); background: var(--warn-soft); }
.sample-note .sub { color: var(--ink-2); max-width: 78ch; }
.empty-start { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 8px 0 0; padding: 28px 20px; }
.empty-start strong { color: var(--ink); font-weight: 600; }
.empty-start .sub { max-width: 62ch; }
.empty-start .btn { margin-top: 6px; }
.notice.hint { border-color: #c6d6ff; background: var(--brand-soft); }
.notice.hint .sub { color: var(--ink-2); }

/* The first-run checklist */
.card.ob-card { border-color: #c6d6ff; background: linear-gradient(180deg, var(--brand-soft), #fff 70%); margin: 0 0 24px; }
.ob-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 4px 20px; }
.ob-top h2 { margin-bottom: 2px; }
.ob-top .muted { margin: 0; font-size: 14.5px; }
.ob-hide button.link { min-height: 32px; padding: 4px 0; color: var(--ink-3); font-weight: 500; }
.ob-steps { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px 28px; }
.ob-steps li { display: flex; gap: 12px; align-items: flex-start; }
.ob-steps strong { font-weight: 600; font-size: 15.5px; }
.ob-steps .more { display: inline-block; margin-top: 6px; font-size: 14.5px; }
.ob-n { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; color: var(--brand-ink); box-shadow: inset 0 0 0 1.5px #c6d6ff; font-weight: 600; font-size: 14px; }
.ob-steps li.on .ob-n { background: var(--ok); color: #fff; box-shadow: none; }
.ob-steps li.on strong { color: var(--ink-2); }
.ob-sample { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.ob-sample > div { flex: 1 1 380px; }
.ob-sample .sub { color: var(--ink-2); }
.ob-done { align-items: center; }
.ob-done-t { color: var(--ink-2); }
.ob-done .ob-hide { margin: 0; }

/* The compliance report: a sheet of paper on screen, clean pages when printed */
.report { box-sizing: border-box; width: 8.5in; max-width: 100%; margin: 0 auto 32px; padding: 0.5in; background: #fff; box-shadow: var(--shadow-lg); font-size: 13.5px; line-height: 1.45; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.rp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px 24px; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.rp-head h1 { font-size: 26px; font-weight: 650; letter-spacing: -0.03em; }
.rp-kicker { font-size: 12.5px; font-weight: 600; color: var(--brand); margin: 0 0 6px; letter-spacing: 0.02em; text-transform: uppercase; }
.rp-meta { margin: 6px 0 0; color: var(--ink-2); }
.rp-meta strong { color: var(--ink); font-weight: 600; }
.rp-brand { flex: none; display: flex; align-items: center; gap: 7px; font-weight: 650; letter-spacing: -0.02em; }
.rp-brand svg { display: block; }
.report .rs-sample { margin: 8px 0 0; font-size: 12.5px; }
.rp-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 16px 0; }
.rp-tile { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.rp-tile .n { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rp-tile .l { font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.rp-tile.ok .n { color: var(--ok); }
.rp-tile.warn .n { color: var(--warn); }
.rp-tile.bad .n { color: var(--bad); }
.rp-sources { padding: 0; }
.rp-sources h2 { font-size: 14px; margin: 0 0 4px; }
.rp-sources p { color: var(--ink-2); margin: 0 0 6px; font-size: 12.5px; }
.rp-table { margin-top: 14px; font-size: 12.5px; border-top: 1px solid var(--line-strong); }
.rp-table thead th { background: var(--bg-soft); font-size: 11.5px; padding: 7px 8px; white-space: normal; }
.rp-table th, .rp-table td { padding: 8px; }
.rp-table tbody th { width: 22%; }
.rp-table td:nth-child(2) { width: 30%; }
.rp-table tbody tr:hover > * { background: none; }
.rp-table tr { break-inside: avoid; page-break-inside: avoid; }
.rp-table .chip { font-size: 11px; padding: 3px 7px 3px 6px; }
.rp-line { display: block; margin-top: 2px; }
.rp-line:first-child { margin-top: 0; }
.rp-strong { font-weight: 600; display: block; }
.rp-dim { color: var(--ink-3); }
.rp-k { display: block; font-size: 0.85em; color: var(--ink-3); margin-top: 4px; }
.rp-line:first-child .rp-k { margin-top: 0; }
.rp-bad { color: var(--bad); }
.rp-warn { color: var(--warn); font-weight: 500; }
.rp-empty { color: var(--ink-3); margin: 16px 0; }
.rp-foot { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 11.5px; break-inside: avoid; }
.rp-foot p { margin: 0 0 6px; }
.rp-foot strong { color: var(--ink-2); }
.rp-share { box-sizing: border-box; max-width: 8.5in; margin: 0 auto 48px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.rp-share h2 { margin: 0 0 8px; font-size: 18px; }
.rp-share-in > .muted { max-width: 70ch; }
.rp-make { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin: 14px 0 18px; }
.rp-make label { margin: 0; }
.rp-make select { width: auto; }
.rp-made { font-weight: 400; }
.rp-made .copy-row input { flex: 1 1 320px; font-size: 13px; min-height: 38px; }
.rp-links { font-size: 14px; }
.rp-gone { min-height: 0; margin-top: 48px; }
.rp-gone h1 { font-size: 24px; margin-bottom: 10px; }
@media screen and (max-width: 720px) {
  .report { font-size: 14.5px; padding: 20px 16px; margin-bottom: 16px; }
  .rp-head { flex-direction: column-reverse; }
  .rp-head h1 { font-size: 23px; }
  .rp-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rp-tiles .rp-tile:last-child { grid-column: 1 / -1; }
  .rp-table, .rp-table tbody, .rp-table tr, .rp-table th, .rp-table td { display: block; width: auto !important; }
  .rp-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .rp-table { border-top: 0; font-size: 14px; }
  .rp-table tr { padding: 12px 0 12px 12px; border-bottom: 1px solid var(--line); }
  .rp-table th, .rp-table td { padding: 3px 0; border: 0; }
  .rp-table td[data-label]::before { content: attr(data-label); display: block; font-size: 12px; color: var(--ink-3); margin-top: 6px; }
  .rp-share { margin: 0 0 24px; border-radius: 0; border-inline: 0; padding: 20px 16px; }
  .rs-bar.rp-bar { padding: 12px 16px; }
}
@media print {
  .rp-body { background: #fff; }
  .rp-bar, .rp-share { display: none !important; }
  .report { width: auto; max-width: none; margin: 0; padding: 0; box-shadow: none; font-size: 9.5pt; }
  .rp-table thead { display: table-header-group; }
  .rp-head, .rp-tiles, .rp-sources { break-inside: avoid; }
}
.map-scroll { display: none; margin: -4px 0 0; }
@media (max-width: 720px) { .map-scroll { display: block; } .map-table th { min-width: 150px; } }

/* ---------- Network: connections, colleagues, vouches, endorsements, company crew pages (src/social.js, src/company.js) ---------- */
.nav-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 600; line-height: 1; vertical-align: 1px; font-variant-numeric: tabular-nums; }
.count-n { display: inline-block; font-size: 13px; font-weight: 500; color: var(--ink-3); background: var(--bg-sunk); border-radius: 999px; padding: 1px 8px; margin-left: 6px; vertical-align: 2px; letter-spacing: 0; }
.avatar-xs { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 11px; font-size: 14px; margin: 0; }
.people { list-style: none; margin: 0; padding: 0; }
.people .person { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.people .person:last-child { border-bottom: 0; }
.person-id { flex: 1 1 auto; min-width: 0; }
.person-id .r-name { font-size: 15.5px; }
.person-id q, .vouches q, .req-note { display: block; margin-top: 4px; color: var(--ink-2); font-size: 14.5px; quotes: "\201C" "\201D"; }
.person-do { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.person-do form, .crew-do form, .sg-card form { margin: 0; }
.person-do button.link { min-height: 32px; padding: 4px 0; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 0 32px; }
.people-grid .person:last-child { border-bottom: 1px solid var(--line); }
.sub.why { color: var(--brand-ink); }
.suggest-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.sg-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg-soft); min-width: 0; }
.sg-card .r-name { font-size: 15px; margin: 0; overflow-wrap: anywhere; }
.sg-card form { margin-top: auto; padding-top: 10px; }
.faces { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.faces a { display: block; border-radius: 12px; }
.faces a:hover .avatar { box-shadow: 0 0 0 2px var(--brand); }
.vouches { list-style: none; margin: 10px 0 0; padding: 0; }
.vouches li { font-size: 14.5px; color: var(--ink-2); padding: 8px 12px; margin-top: 6px; background: var(--ok-soft); border-left: 3px solid var(--ok-line); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.vouches a { font-weight: 500; }
.timeline .vouches li { display: block; padding: 8px 12px; border-bottom: 0; }
.vouches q { margin-top: 2px; }
details.vouch-box, details.connect-box, details.net-more, details.endorse-who, details.manage { margin-top: 14px; }
details.vouch-box > summary, details.net-more > summary, details.endorse-who > summary, details.manage > summary { cursor: pointer; font: 500 14.5px var(--sans); color: var(--brand); padding: 6px 0; min-height: 36px; }
details.vouch-box[open], details.net-more[open] { border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 16px 16px; background: #fff; }
details.vouch-box .form, details.net-more .form { margin-top: 8px; }
details.connect-box { margin-top: 0; position: relative; }
details.connect-box > summary { list-style: none; }
details.connect-box > summary::-webkit-details-marker { display: none; }
details.connect-box[open] > summary { background: var(--bg-sunk); border-color: var(--ink-3); }
details.connect-box[open] > form { position: absolute; right: 0; top: calc(100% + 8px); z-index: 10; width: min(340px, calc(100vw - 32px)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px 16px 16px; }
details.net-more { font-size: 14px; }
details.net-more form + form { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.endorse-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: #fff; border: 1px solid var(--line-strong); color: var(--ink); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.endorse-who dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 8px 0 0; font-size: 14.5px; }
.endorse-who dt { color: var(--ink-3); }
.endorse-who dd { margin: 0; }
.net-settings fieldset { margin-bottom: 14px; }
.net-settings .check { margin-bottom: 4px; }
.net-settings .sub { margin: -2px 0 12px 28px; }
.net-settings fieldset .sub { margin-left: 0; }
.strength-tip { margin: 14px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14.5px; }
.plain-links { list-style: none; margin: 0; padding: 0; }
.plain-links li { padding: 6px 0; }
.invite-from { display: flex; align-items: center; gap: 18px; margin-bottom: 18px; }
.invite-from .avatar-sm { margin: 0; width: 64px; height: 64px; flex-basis: 64px; font-size: 22px; }
.crew-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.crew-card { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); min-width: 0; }
.crew-card .r-name { margin: 0; overflow-wrap: anywhere; }
.crew-card .pill { margin-top: 8px; }
.crew-do { display: flex; flex-wrap: wrap; gap: 0 14px; margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); width: 100%; }
.crew-do button.link { min-height: 32px; padding: 4px 0; font-size: 13.5px; }
.t-org .pill { margin-left: 6px; vertical-align: 1px; }
.sg-card div.avatar, .crew-card div.avatar, .invite-from div.avatar { display: grid; }
.sg-card .avatar-sm, .crew-card .avatar-sm { margin-bottom: 8px; }
.edit-grid aside .people .person { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 8px; }
.edit-grid aside .people .person > .person-do { grid-column: 2; }
.edit-grid aside .people .person > .person-id:first-child, .edit-grid aside .people .person > .person-id:first-child + .person-do { grid-column: 1 / -1; }
.net-settings input[type="radio"] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; flex: 0 0 auto; box-shadow: none; accent-color: var(--brand); }
.endorse-list { list-style: none; margin: 0; padding: 0; }
.endorse-list > li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.endorse-list > li:last-child { border-bottom: 0; }
.endorse-list ul { list-style: none; margin: 4px 0 0; padding: 0; font-size: 14px; }
.endorse-list ul li { display: flex; align-items: center; gap: 10px; }
.endorse-list ul form { margin: 0 0 0 auto; }
.endorse-list button.link { min-height: 30px; padding: 2px 0; font-size: 13.5px; }
.endorse-list .is-hidden a { color: var(--ink-3); }
@media (max-width: 720px) {
  .people .person { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 12px; row-gap: 8px; }
  .people .person > .person-do { grid-column: 2; }
  .people .person > .person-id:first-child { grid-column: 1 / -1; }
  .edit-grid > aside > .card, .edit-grid > .edit-main { align-self: stretch; }
  .people .person > .person-id:first-child + .person-do { grid-column: 1 / -1; }
  .edit-grid > aside > .card:first-child:not(#inbox) { margin-top: 24px; }
  .suggest-grid { grid-template-columns: 1fr 1fr; }
  details.connect-box[open] > form { right: auto; left: 0; }
  .crew-grid { grid-template-columns: 1fr; }
}

/* Two-step sign-in (src/twofactor.js): the /account card, setup with its QR code, recovery codes, the second step
   at sign-in. Parts that need script carry `hidden` until public/app.js shows them, and must stay hidden whatever
   display the classes below give them. */
.tf-card [hidden], .tf-passkey[hidden], .tf-codes-card [hidden] { display: none !important; }
.acct-grid .tf-card { grid-column: 1 / -1; }
.tf-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.tf-head h2 { margin: 0; }
.tf-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px 28px; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.tf-part { min-width: 0; }
.tf-part h3 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
.tf-part > .muted { font-size: 14.5px; }
.tf-left { font-weight: 600; color: var(--ink); }
.tf-low { border-color: var(--warn-line); background: var(--warn-soft); color: var(--ink); margin: 12px 0 0; }
.tf-low strong { color: var(--warn); }
.tf-more summary, .tf-rename summary, .tf-alt summary { cursor: pointer; font: 500 14px var(--sans); color: var(--brand); padding: 6px 0; width: fit-content; }
.tf-more summary:hover, .tf-rename summary:hover, .tf-alt summary:hover { text-decoration: underline; text-underline-offset: 3px; }
.tf-more[open] summary { margin-bottom: 10px; }
.tf-more .form { gap: 12px; }
.tf-list { list-style: none; margin: 0 0 12px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.tf-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2px 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.tf-list li:last-child { border-bottom: 0; }
.tf-list li > span:first-child { min-width: 0; overflow-wrap: anywhere; }
.tf-list strong { font-weight: 500; }
.tf-actions { display: flex; align-items: center; gap: 14px; }
.tf-rename { position: relative; }
.tf-rename .tf-inline { position: absolute; right: 0; top: 100%; z-index: 5; display: flex; gap: 8px; width: max-content; max-width: min(300px, 80vw); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px; box-shadow: var(--shadow); }
.tf-rename .tf-inline input { min-width: 0; }
.tf-addkey { gap: 10px; }
.tf-everywhere { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.tf-everywhere .fine { margin: 0; }
.tf-setup { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 0 20px; }
.tf-setup .card { margin-top: 0; }
.tf-step h2 { display: flex; align-items: center; gap: 10px; }
.tf-num { flex: none; display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); font-size: 14px; font-weight: 600; }
.tf-qr { width: fit-content; margin: 16px 0 8px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; line-height: 0; }
.tf-qr svg { display: block; width: 196px; height: 196px; }
.tf-secret { font-size: 15px; letter-spacing: 0.06em; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; margin: 6px 0 8px; overflow-wrap: anywhere; }
.tf-copy { display: flex; align-items: center; gap: 10px; margin: 0; }
.tf-copy .fine { margin: 0; }
.tf-code { font-size: 22px; letter-spacing: 0.3em; max-width: 220px; }
.tf-codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 24px; margin: 0 0 18px; padding: 16px 16px 16px 40px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 16px; }
.tf-codes li { padding-left: 4px; }
.tf-codes li::marker { color: var(--ink-3); font-size: 13px; }
.tf-saved { margin-top: 24px; }
.tf-saved .btn, .tf-step .form .btn { align-self: flex-start; }
.tf-check { font-size: 15px; }
.tf-wide { width: 100%; }
.tf-alt { margin-top: 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.tf-alt[open] summary { margin-bottom: 10px; }
.tf-passkey .or { margin: 18px 0; }
.tf-passkey .fine:empty { display: none; }
.tf-admin { max-width: 880px; margin-bottom: 16px; }
@media (max-width: 520px) {
  .tf-codes { grid-template-columns: 1fr; padding-left: 36px; }
  .tf-code { max-width: none; }
  .tf-actions { gap: 10px; }
}

/* ===== Certificates by email and insurance agents (src/coi-inbox.js, src/coi-pages.js) =====
   The inbound address card on the requirements page, the certificate inbox (/rosters/inbox), the "received by
   email" note on a sub's page, and the agent card on a sub's page and in the portal. */
.inbound-card { margin-bottom: 24px; }
.inbound-card p { margin: 0 0 12px; }
.inbound-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin: 4px 0 12px; }
.inbound-addr { flex: 1 1 260px; min-width: 0; font-size: 15px; padding: 9px 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow-wrap: anywhere; user-select: all; }
.inbound-copy .fine { margin: 0; }
.inbound-links { font-weight: 500; }
.inbound-rotate { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.inbound-rotate .fine { margin: 0; }
.inbox-addr { overflow-wrap: anywhere; color: var(--ink); }
.inbox-list { list-style: none; padding: 0; display: grid; gap: 16px; margin: 0 0 12px; }
.inbox-item { margin-top: 0; padding: 20px 22px; }
.inbox-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.inbox-head h3 { margin: 0; font-size: 17px; overflow-wrap: anywhere; }
.inbox-from { margin: 4px 0 12px; overflow-wrap: anywhere; }
.inbox-read { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 20px; margin: 0 0 14px; padding: 12px 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.inbox-read dt { font-size: 12.5px; color: var(--ink-3); }
.inbox-read dd { margin: 2px 0 0; font-size: 14.5px; overflow-wrap: anywhere; }
.inbox-guesses { margin: 0 0 12px; }
.inbox-guesses .fine { margin: 0 0 4px; }
.inbox-guesses .inline-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 6px; }
.inbox-actions { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 20px; padding-top: 12px; border-top: 1px solid var(--line); }
.inbox-file { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.inbox-file label { font-size: 14px; font-weight: 500; }
.inbox-file-row { display: flex; gap: 8px; }
.inbox-file-row select { flex: 1; min-width: 0; }
.notice-email, .card .notice-email { border-color: var(--brand-soft); background: var(--brand-soft); }
.notice-email .sub { display: block; }
.agent-card .agent-line { margin: 0 0 10px; }
.agent-card .agent-line .sub { display: block; overflow-wrap: anywhere; }
.agent-card details summary { cursor: pointer; font-weight: 500; color: var(--brand-ink); margin-bottom: 10px; }
.send-to { border: 0; margin: 0; padding: 0; display: grid; gap: 4px; }
.send-to legend { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.send-to input[type="radio"] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; flex: 0 0 auto; box-shadow: none; accent-color: var(--brand); }
@media (max-width: 520px) {
  .inbox-item { padding: 16px; }
  .inbound-addr { font-size: 13px; }
  .inbox-file-row { flex-direction: column; }
  .inbox-file-row .btn, .inbox-actions .link { min-height: 44px; }
}

/* ---------- Growth loops: compliance passports, referrals, "Checked with Tradesfile" (src/passport.js, src/referrals.js) ---------- */
.tf-checked { margin: 28px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--ink-3); }
.tf-checked a { font-weight: 500; }
.rs-foot .tf-checked, .rp-foot .tf-checked { margin-top: 10px; padding-top: 8px; font-size: 12px; }
.passport .pp-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 18px 32px; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
.passport .pp-head .sublede { margin-bottom: 0; }
.pp-cols > div > .card:first-child, .pp-cols aside .card:first-child { margin-top: 24px; }
.pp-cols h2, .pp-manage h2, .pp-add h2 { margin-top: 0; }
.pp-lics li { display: block; }
.pp-lic-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pp-cert-state { margin-bottom: 10px; }
.pp-insurer { margin: 0 0 12px; }
.pp-insurer .sub { font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; }
.pp-cov { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 4px 0 12px; }
.pp-cov th, .pp-cov td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.pp-cov thead th { font-size: 12.5px; font-weight: 500; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.pp-cov tbody th { font-weight: 500; }
.pp-attr { list-style: none; padding: 0; margin: 0 0 4px; font-size: 14px; color: var(--ink-2); }
.pp-lics { margin: 0; }
.pp-attr li { padding-left: 18px; position: relative; }
.pp-attr li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 600; }
.pp-keep strong, .pp-keep .sub, .pp-signup strong, .pp-signup .sub { display: block; }
.pp-keep .copy-row input { flex: 1 1 320px; min-height: 38px; }
.pp-sends { margin-top: 16px; }
.pp-manage .edit-side .card { margin-top: 0; }
.pp-manage .grid2 { align-items: end; }
.pp-manage form.grid2 .btn { justify-self: start; }
.pp-portal form { margin: 0; }
.pp-nudge h2 { font-size: 18px; margin: 0 0 6px; }
.pp-add { margin-top: 24px; }
.pp-add .btn-lg { align-self: flex-start; }
.refer .copy-row input, .brought .copy-row input { flex: 1 1 260px; min-height: 38px; font-size: 13px; }
.ref-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; margin: 16px 0; }
.ref-stats div { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 10px; }
.ref-stats dt { font-size: 12.5px; color: var(--ink-3); }
.ref-stats dd { margin: 0; font: 600 20px/1.3 var(--mono); }
.brought h2 { margin-top: 0; }
@media (max-width: 520px) {
  .ref-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pp-cov thead { display: none; }
  .pp-cov tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .pp-cov th, .pp-cov td { border: 0; padding: 0; }
  .pp-cov td[data-label="Limits"] { grid-column: 1 / -1; grid-row: 2; color: var(--ink-2); }
  .passport .verdict { min-width: 0; width: 100%; }
}
.adm-h3 { margin: 22px 0 10px; }

/* ---- Value and paying (src/history.js, src/paywall.js, src/roi.js, the pricing page) ----
   The problems-caught tile on the dashboard, a sub's change history and a list's recent changes, the paywall box,
   the Monthly / Yearly switch, "Why GCs pay for this", the chasing-cost calculator, and the report's changes table. */
.value-tile { display: flex; align-items: center; gap: 18px; margin: 0 0 20px; padding: 16px 20px; background: linear-gradient(180deg, var(--brand-soft), #fff 85%); border: 1px solid #c6d6ff; border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.value-n { flex: none; display: flex; flex-direction: column; align-items: center; min-width: 84px; padding-right: 18px; border-right: 1px solid #c6d6ff; }
.value-n .n { font-size: 34px; font-weight: 650; letter-spacing: -0.03em; line-height: 1; color: var(--brand-ink); font-variant-numeric: tabular-nums; }
.value-n .l { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; text-align: center; line-height: 1.3; }
.value-text strong { display: block; font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.value-text .sub { margin-top: 2px; }
.value-line { font-size: 14.5px; color: var(--ink-2); background: var(--brand-soft); border-radius: var(--radius-sm); padding: 10px 12px; }

.tl-card h2 { margin-bottom: 14px; }
.tl-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 14px; }
.tl-head h2 { margin: 0; }
.tl { list-style: none; margin: 0; padding: 0; position: relative; }
.tl-item { position: relative; display: flex; gap: 12px; padding: 0 0 14px; }
.tl-item:not(:last-child)::before { content: ""; position: absolute; left: 5px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.tl-dot { flex: none; width: 12px; height: 12px; margin-top: 5px; border-radius: 50%; background: var(--bg-sunk); box-shadow: inset 0 0 0 2px var(--line-strong); }
.tl-ok .tl-dot { background: var(--ok); box-shadow: none; }
.tl-warn .tl-dot { background: var(--warn); box-shadow: none; }
.tl-bad .tl-dot { background: var(--bad); box-shadow: none; }
.tl-body { min-width: 0; }
.tl-text { margin: 0; font-size: 14.5px; line-height: 1.5; overflow-wrap: anywhere; }
.tl-name { font-weight: 600; color: var(--ink); }
.tl-meta { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.tl-caught { display: inline-block; font-size: 11.5px; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); border: 1px solid #c6d6ff; border-radius: 999px; padding: 1px 8px; margin-left: 4px; vertical-align: 1px; white-space: nowrap; }

.paywall { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px 28px; margin: 0 0 20px; padding: 18px 20px; background: #fff; border: 1px solid #c6d6ff; border-left: 4px solid var(--brand); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm); }
.pw-main { flex: 1 1 340px; min-width: 0; }
.pw-head { margin: 0 0 4px; font-size: 16px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.pw-head strong { font-weight: 600; }
.pw-price { font-size: 13.5px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.pw-lead { margin: 0 0 6px; font-size: 14.5px; color: var(--ink-2); }
.pw-gets { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; font-size: 14px; color: var(--ink-2); }
.pw-gets li { position: relative; padding-left: 20px; }
.pw-gets li::before { content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.pw-do { flex: 0 1 auto; display: flex; flex-wrap: wrap; align-items: center; align-content: center; gap: 10px 12px; }
.pw-form { display: inline-flex; margin: 0; }
.pw-more { font-size: 14px; font-weight: 500; }
.pw-note { flex: 1 1 100%; margin: 0; }
.card .paywall, .rp-share .paywall { margin-bottom: 0; }

.bill-toggle { display: inline-flex; gap: 2px; margin: 4px 0 18px; padding: 3px; background: var(--bg-sunk); border-radius: 10px; }
.bill-toggle a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 16px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.bill-toggle a:hover { text-decoration: none; color: var(--ink); }
.bill-toggle a[aria-current] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.bill-save { font-size: 12px; font-weight: 600; color: var(--ok); background: var(--ok-soft); border-radius: 999px; padding: 1px 8px; }
.plans .iv-month, .plans .iv-year { display: contents; }
.plans[data-interval="month"] .iv-year, .plans[data-interval="year"] .iv-month { display: none; }
.plan .iv-month > .pill, .plan .iv-year > .pill { margin-top: auto; align-self: flex-start; }
.plan .iv-month > .pill + .btn, .plan .iv-year > .pill + .btn { margin-top: 8px; }
.price-note { font-size: 13px !important; color: var(--ok) !important; margin: 2px 0 6px !important; min-height: 0 !important; }

.why-h { margin-top: 48px; }
.why { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.why > div { padding: 18px 20px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.why h3 { font-size: 15.5px; margin-bottom: 4px; }
.why p { margin: 0; font-size: 14.5px; color: var(--ink-2); }

section.roi { padding: 0; margin-top: 40px; }
.roi-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 40px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.roi-head { grid-column: 1 / -1; }
.roi-head h2 { margin: 0 0 6px; }
.roi-head p { margin: 0; }
.roi-example { margin: 0 0 12px; font-size: 14px; color: var(--ink-2); }
.roi-example.on { color: var(--warn); background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: var(--radius-sm); padding: 8px 12px; }
.roi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.roi-f input { font-variant-numeric: tabular-nums; }
.roi-f .sub { margin-top: 4px; font-size: 12.5px; }
.roi-go { margin-top: 16px; }
.roi-out { align-self: start; }
.roi-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.roi-tiles .tile .n { font-size: 26px; }
.roi-line { margin: 0 0 8px; font-size: 14.5px; color: var(--ink-2); }
.roi-line[data-roi-line="even"] { color: var(--ink); font-weight: 500; }
@media (max-width: 860px) { .roi-in { grid-template-columns: 1fr; padding: 20px; } }
@media (max-width: 520px) {
  .roi-grid, .roi-tiles { grid-template-columns: 1fr; }
  .value-tile { flex-direction: column; align-items: flex-start; gap: 10px; }
  .value-n { flex-direction: row; align-items: baseline; gap: 8px; padding: 0; border: 0; min-width: 0; }
  .pw-do .btn { flex: 1 1 100%; }
  .bill-toggle { display: flex; }
  .bill-toggle a { flex: 1; justify-content: center; padding: 0 10px; }
}

.rp-changes { margin-top: 22px; }
.rp-changes h2 { font-size: 15px; margin: 0 0 4px; }
.rp-changes p { font-size: 13px; color: var(--ink-2); }
.rp-changes-table tbody th { width: 26%; }
.rp-changes-table td:first-child { width: 14%; }
.rp-changes-table td:nth-child(2), .rp-changes-table td:nth-child(3) { width: auto; font-weight: 400; }
.rp-cover { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin: 14px 0 0; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; }
.rp-cover > div { padding: 8px 10px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.rp-cover > div:nth-child(3n) { border-right: 0; }
.rp-cover > div:nth-last-child(-n + 3) { border-bottom: 0; }
.rp-cover dt { font-size: 10.5px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-3); }
.rp-cover dd { margin: 2px 0 0; font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.rp-cover dd .rp-dim { display: block; font-weight: 400; font-size: 12px; }
.rp-summary { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-2); }
.rp-summary strong { color: var(--ink); }
@media screen and (max-width: 720px) {
  .rp-cover { grid-template-columns: 1fr; }
  .rp-cover > div { border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .rp-cover > div:last-child { border-bottom: 0 !important; }
}
@media print {
  .rp-cover, .rp-summary { break-inside: avoid; }
  .rp-changes { break-before: auto; }
  .rp-changes h2 { break-after: avoid; }
  .rp-changes-table thead { display: table-header-group; }
}

/* Verified Job Board (src/job-pages.js): the board and its cards, a job page, the post form, a contractor's posts,
   applicant cards and the Suggested tab, application threads, the Job alerts card in the editor and the home block.
   Every class starts with jb- so nothing here touches the permit tables (.jobs, .jobs-top). */
.jb-list { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 14px; }
.jb-list-tight { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.jb-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); }
.jb-card-featured { border-color: #c6d6ff; box-shadow: inset 3px 0 0 var(--brand), var(--shadow-sm); }
.jb-card-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.jb-card-title { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); overflow-wrap: anywhere; }
.jb-card-title:hover { color: var(--brand-ink); }
.jb-card-co { margin: 4px 0 2px; font-weight: 500; color: var(--ink-2); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.jb-card-meta, .jb-meta { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.jb-card .pills { margin-top: 8px; }
.jb-card-when { margin: 8px 0 0; }
.jb-featured { color: var(--brand-ink); background: var(--brand-soft); border-color: #c6d6ff; font-size: 11.5px; padding: 2px 8px; }
.jb-licensed { font-size: 12px; padding: 2px 9px; }
a.jb-licensed:hover { text-decoration: none; border-color: var(--ok); }
.jb-status { font-size: 12px; padding: 2px 9px; }
.jb-status-paused { color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }
.jb-status-closed, .jb-status-draft { background: var(--bg-sunk); }
.jb-filters .jb-pay-in { min-width: 110px; width: 110px; }
.jb-filters input[name="city"] { min-width: 150px; }
.jb-mine { margin: 0 0 28px; padding: 20px 22px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); }
.jb-mine-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 12px; }
.jb-mine-head h2 { margin: 0; }
.jb-mine .jb-list { margin-bottom: 0; }
.jb-mine .empty { background: #fff; margin: 0; }
.jb-invited { background: var(--brand-soft); border-color: #c6d6ff; }
/* One job */
.jb-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 16px 32px; margin-bottom: 24px; }
.jb-head h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; overflow-wrap: anywhere; }
.jb-co { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 8px 0 4px; font-size: 16px; }
.jb-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; align-items: start; }
.jb-main h2:first-of-type { margin-top: 32px; }
.jb-facts { padding: 18px 20px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); grid-template-columns: max-content minmax(0, 1fr); }
.jb-facts dd { overflow-wrap: anywhere; }
.jb-reqs { list-style: none; padding: 0; margin: 0; }
.jb-desc p { max-width: 68ch; overflow-wrap: anywhere; }
.jb-side .card:first-child { margin-top: 0; }
.jb-apply { border-color: #c6d6ff; }
.jb-apply .btn-lg { width: 100%; white-space: normal; }
.jb-report { margin-top: 16px; }
.jb-report summary { cursor: pointer; color: var(--ink-3); font-size: 14px; list-style: none; }
.jb-report summary::-webkit-details-marker { display: none; }
.jb-report[open] summary { margin-bottom: 8px; }
.jb-closed { border-color: var(--warn-line); background: var(--warn-soft); }
/* The post form */
.jb-form-wrap { max-width: 860px; }
.jb-form .card { margin-top: 18px; }
.jb-form .card h2 { margin-bottom: 14px; }
.jb-form .card > label, .jb-form .card > .grid2, .jb-form .card > fieldset { margin-top: 14px; }
.jb-form .card > h2 + label, .jb-form .card > h2 + .grid2, .jb-form .card > .jb-why + fieldset { margin-top: 0; }
.jb-form .card > .jb-radios + .grid2 { margin-top: 8px; }
.jb-dur { display: flex; gap: 8px; }
.jb-dur input { width: 96px; flex: 0 0 96px; }
.jb-why { margin: 0 0 10px; font-size: 14.5px; }
.jb-radios { border: 0; padding: 0; margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 4px 24px; }
.jb-radios input[type="radio"], .jb-trades input, #job-alerts input[type="radio"] { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 0; box-shadow: none; accent-color: var(--brand); flex: 0 0 auto; }
.jb-reqs-in { border: 0; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 2px 16px; }
.jb-reqs-in legend { grid-column: 1 / -1; }
.jb-h3 { margin: 20px 0 8px; font-size: 15px; }
.jb-form input[name^="q"] { margin-bottom: 8px; }
.jb-form-do { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.jb-form-do .fine { flex-basis: 100%; margin: 0; }
/* A contractor's posts and a tradesperson's applications */
.jb-mine-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.jb-row { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 18px 22px; }
.jb-row-main { flex: 1 1 380px; min-width: 0; }
.jb-row-main .fine { margin: 6px 0 0; }
.jb-row-do { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; }
.jb-row-do form { margin: 0; }
/* Applicants */
.jb-match-n { margin: 10px 0 0; }
.jb-help { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-bottom: 8px; }
.jb-help-card { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px 20px; background: var(--bg-soft); }
.jb-help-card h2 { margin: 0 0 4px; font-size: 16px; }
.jb-help-card p { margin: 0; font-size: 14px; }
.jb-tabs { display: flex; gap: 4px; margin: 28px 0 16px; border-bottom: 1px solid var(--line); }
.jb-tabs a { padding: 10px 14px; margin-bottom: -1px; color: var(--ink-2); font-weight: 500; border-bottom: 2px solid transparent; }
.jb-tabs a:hover { color: var(--ink); text-decoration: none; }
.jb-tabs a[aria-current] { color: var(--ink); border-bottom-color: var(--brand); }
.jb-apps { display: grid; gap: 16px; }
.jb-app { margin: 0; padding: 20px 22px; }
.jb-app-declined { opacity: 0.78; }
.jb-app-hired { border-color: var(--ok-line); }
.jb-app-who { display: flex; align-items: flex-start; gap: 14px; }
.jb-app-who .avatar-sm { margin: 0; }
.jb-app-who div.avatar-sm { display: grid; place-items: center; }
.jb-app-who > div:not(.avatar) { flex: 1; min-width: 0; }
.jb-app-who h3 { margin: 0 0 2px; font-size: 17px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.jb-app-who .pills { margin-top: 6px; }
.jb-app-when { margin: 2px 0 0; white-space: nowrap; }
.jb-lic { margin: 14px 0 0; padding: 12px 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.jb-lic .sub { flex-basis: 100%; }
.jb-lic-what { font-size: 14.5px; overflow-wrap: anywhere; }
.jb-lic-none { color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.jb-app-sec { margin-top: 14px; }
.jb-app-sec h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--ink-3); text-transform: uppercase; letter-spacing: 0.04em; }
.jb-certs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.jb-certs li { font-size: 14.5px; }
.jb-certs .chip { margin-left: 4px; vertical-align: 1px; }
.jb-vouch-n { margin: 0; font-size: 14.5px; font-weight: 500; }
.jb-app .vouches { margin-top: 4px; }
.jb-endorse { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.jb-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; max-width: 480px; }
.jb-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--line); display: block; }
.jb-answers dl { margin: 0; display: grid; gap: 4px; }
.jb-answers dt { font-size: 13.5px; color: var(--ink-3); margin-top: 6px; }
.jb-answers dd { margin: 0; overflow-wrap: anywhere; }
.jb-app-do { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.jb-app-do form { margin: 0; }
.jb-suggest { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.jb-suggest li { margin: 0; padding: 16px 18px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.jb-suggest form { margin: 0; }
/* Threads */
.jb-thread-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.jb-thread-cols > div > .card:first-child, .jb-thread { margin-top: 0; }
.jb-msgs { list-style: none; margin: 0 0 16px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.jb-msg { max-width: 88%; align-self: flex-start; }
.jb-msg-mine { align-self: flex-end; text-align: right; }
.jb-msg-who { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 3px; }
.jb-msg-body { display: inline-block; text-align: left; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: var(--bg-sunk); overflow-wrap: anywhere; }
.jb-msg-mine .jb-msg-body { border-radius: 14px 14px 4px 14px; background: var(--brand-soft); }
.jb-reply .btn { justify-self: start; align-self: flex-start; width: auto; }
/* The editor's Job alerts card */
.jb-still { display: flex; flex-direction: column; gap: 8px; background: var(--warn-soft); border-color: var(--warn-line); }
.jb-still form { margin: 0; }
.jb-trades { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 0 12px; }
.jb-trades legend { grid-column: 1 / -1; }
.jb-trades .check { font-size: 14px; margin: 0 0 4px; }
#job-alerts fieldset { border: 0; padding: 0; margin: 0; }
/* The home page block: kept small, under "How it works" */
section.jb-home { padding: 0 0 48px; }
.jb-home-card { margin-top: 0; }
.jb-home-card h2 { font-size: 18px; }
.jb-admin-do { display: flex; flex-wrap: wrap; gap: 6px; }
.jb-admin-do form { margin: 0; }
@media (max-width: 900px) {
  .jb-cols, .jb-thread-cols { grid-template-columns: 1fr; gap: 8px; }
  .jb-head-cta { width: 100%; }
}
@media (max-width: 520px) {
  .jb-card, .jb-app, .jb-row, .jb-mine { padding: 16px; }
  .jb-filters .f, .jb-filters input, .jb-filters select, .jb-filters .btn { width: 100%; }
  .jb-filters input[name="city"], .jb-filters .jb-pay-in { min-width: 0; width: 100%; }
  .jb-app-who { flex-wrap: wrap; }
  .jb-app-when { white-space: normal; flex-basis: 100%; }
  .jb-msg { max-width: 100%; }
  .jb-form-do .btn { width: 100%; }
  .jb-dur input { width: 80px; flex-basis: 80px; }
}

/* Positioning pass (Nov 2026): the sub passport on the home page, /sub/join landing, "Free for subs and tradespeople" on pricing */
.hero-sub { margin: 18px 0 0; }
.hero-sub .more { font-size: 15.5px; }
.home-ticks { list-style: none; margin: 4px 0 24px; padding: 0; display: grid; gap: 10px; }
.home-ticks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: 15.5px; }
.home-ticks strong { color: var(--ink); font-weight: 600; }
.home-ticks .tick { flex: 0 0 20px; height: 20px; font-size: 11px; margin-top: 2px; background: var(--ok-soft); color: var(--ok); }
.pp-preview .pp-top { padding: 18px; border-bottom: 1px solid var(--line); }
.pp-preview .pp-top strong { display: block; font-weight: 600; font-size: 16.5px; }
.pp-preview li > span:first-child { display: flex; flex-direction: column; min-width: 0; }
.pp-preview li .sub { font-size: 13px; }
.pp-preview li .chip { flex: none; }
.pp-attr-line { margin: 0; padding: 12px 18px; font-size: 13px; color: var(--ink-3); background: var(--bg-soft); border-top: 1px solid var(--line); }
.home-providers { margin-top: 20px; }
.free-row { padding: 8px 0 0; }
.free-row > .muted { margin-top: -6px; }
.free-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 12px; }
.free-card { background: var(--bg-soft); }
.free-card .kicker { margin-bottom: 4px; }
.free-card h3 { font-size: 20px; }
.sj-hero { padding-top: 56px; }
.sj-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 48px; align-items: start; }
.sj-grid .sj-form { margin-top: 0; box-shadow: var(--shadow-lg); }
.sj-form h2 { font-size: 20px; }
.sj-h { font-size: 17px; margin: 8px 0 12px; }
.sj-privacy { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.sj-privacy .card { margin-top: 0; }
.sj-list li { padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: 15px; }
.sj-list li:last-child { border-bottom: 0; }
@media (max-width: 900px) {
  .sj-grid { grid-template-columns: 1fr; gap: 28px; }
  .sj-hero { padding-top: 32px; }
}
.sj-list { list-style: none; padding-left: 0; margin: 0; }
.sj-pitch .pp-preview { margin-top: 28px; max-width: 520px; }
@media (max-width: 900px) { .sj-pitch .pp-preview { display: none; } }

/* Certificate sanity checks (src/coi-checks.js) and data freshness notes (src/freshness.js) */
.findings { border: 1px solid var(--warn-line); background: var(--warn-soft); border-radius: var(--radius-sm); padding: 12px 16px; margin: 0 0 18px; font-size: 14.5px; }
.findings-bad { border-color: var(--bad-line); background: var(--bad-soft); }
.findings ul { margin: 6px 0 6px; padding-left: 20px; }
.findings li { margin: 3px 0; }
.findings li a { color: inherit; text-decoration-color: currentColor; }
.findings li.rf-problem { color: var(--bad); }
.findings li.rf-check { color: var(--warn); }
.findings .sub { color: var(--ink-2); }
.coi-status .findings { margin: 8px 0 12px; }
.rf-grid .rf-bool { grid-column: 1 / -1; }
.rf-bool .check { margin: 0; }
.rf-find { display: block; font-size: 13px; line-height: 1.45; padding: 5px 8px; border-radius: 6px; border: 1px solid var(--warn-line); background: var(--warn-soft); color: var(--warn); }
.rf-find.rf-problem { border-color: var(--bad-line); background: var(--bad-soft); color: var(--bad); }
.review .rf-flagged input:not(.read), .review .rf-flagged textarea:not(.read) { border-color: var(--warn-line); }
.confirm-tick { border: 1px solid var(--bad-line); background: var(--bad-soft); border-radius: var(--radius-sm); padding: 10px 14px; font-weight: 500; width: fit-content; max-width: 100%; }
.coi-flag { display: inline-block; margin-top: 4px; font-size: 12.5px; font-weight: 500; color: var(--warn); background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: 999px; padding: 1px 8px; text-decoration: none; white-space: nowrap; }
.coi-flag-bad { color: var(--bad); background: var(--bad-soft); border-color: var(--bad-line); }
.clearer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.clearer > div { flex: 1 1 280px; }
.clearer .sub { display: inline; }
.stale-note { color: var(--ink-2); }
.stale-chip { margin-left: 6px; white-space: nowrap; font-family: var(--sans); }
.stale-admin { border-color: var(--warn-line); background: var(--warn-soft); }
.stale-admin ul { margin: 6px 0; }
@media (max-width: 520px) {
  .stale-chip { display: block; width: max-content; max-width: 125px; margin: 6px 0 0; white-space: normal; line-height: 1.35; border-radius: 8px; }
  .clearer .btn { width: 100%; }
}

/* ---- Plain-language help (src/help.js): "What's this?" disclosures, the /help page, the sub portal's steps ---- */
.whats { margin: 10px 0 14px; font-size: 14px; }
.whats > summary { cursor: pointer; color: var(--brand); font-weight: 500; width: max-content; max-width: 100%; list-style-position: inside; }
.whats > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 4px; }
.whats-body { margin-top: 8px; padding: 12px 14px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink-2); line-height: 1.55; }
.whats-body p { margin: 0 0 8px; }
.whats-body dl { margin: 0 0 8px; }
.whats-body dt { font-weight: 600; color: var(--ink); margin-top: 10px; }
.whats-body dt:first-child { margin-top: 0; }
.whats-body dd { margin: 2px 0 0; }
.whats-legend { margin-top: -6px; }
.h-lists { font-size: 18px; margin: 8px 0 10px; }
.help h2 { margin-top: 36px; scroll-margin-top: 16px; }
.help-toc { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 8px; font-size: 14.5px; }
.help-steps { padding-left: 22px; line-height: 1.6; }
.help-steps li { margin: 0 0 10px; }
.glossary { margin: 0; }
.glossary > div { padding: 12px 0; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.glossary > div:target { background: var(--brand-soft); padding-left: 10px; padding-right: 10px; border-radius: var(--radius-sm); }
.glossary dt { font-weight: 600; }
.glossary dd { margin: 4px 0 0; color: var(--ink-2); line-height: 1.6; }
.portal-how { border-color: var(--brand); }
.portal-steps { padding-left: 22px; margin: 12px 0; line-height: 1.55; }
.portal-steps li { margin: 0 0 8px; }
.portal #upload input[type="file"] { min-height: 52px; }
.portal-optional { font-size: 15px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-3); margin: 32px 0 10px; }
/* The "License required" filter on /jobs: the narrow-screen rule for .f inputs squashed the box to nothing. */
.filters .f input[type="checkbox"] { flex: 0 0 18px; width: 18px; }
@media (max-width: 520px) {
  .portal #upload .btn { width: 100%; }
}

/* ===== Needed-by dates on certificate requests, the sub's short review form (Nov 2026) ===== */
.needed-by { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.needed-by > label { font-size: 14px; font-weight: 500; }
.needed-row { display: flex; flex-wrap: wrap; gap: 8px; }
.needed-row select { flex: 1 1 200px; min-width: 0; }
.needed-row input[type="date"] { flex: 1 1 160px; min-width: 0; }
.needed-row [hidden] { display: none; }
.coi-cell .need, .need-status .need { display: block; }
.need-late { color: var(--warn); }
.need-late strong { font-weight: 600; }
.need-banner { margin: 0 0 18px; padding: 10px 14px; border: 1px solid #c6d6ff; border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: var(--radius-sm); }
.need-banner.need-late { border-color: var(--warn-line); border-left-color: var(--warn); background: var(--warn-soft); color: var(--ink); }
.rf-more { border: 1px dashed var(--line); border-radius: var(--radius); padding: 12px 18px; }
.rf-more > summary { cursor: pointer; color: var(--brand); font-weight: 500; }
.rf-more > summary .sub { display: inline; color: var(--ink-3); font-weight: 400; }
.rf-more[open] > summary { margin-bottom: 14px; }
.rf-more > .rf-group + .rf-group { margin-top: 14px; }
@media (max-width: 520px) { .rf-more { padding: 10px 8px; } }

/* ---- Stuck? Ask us (src/ask.js), list tools and bulk bar (src/list-tools.js), example dashboard (src/demo.js),
   first certificate panel (src/first-coi.js) ---- */
footer.site nav a.foot-ask { color: var(--brand); font-weight: 500; }
.ask-strip { margin: 28px 0 0; border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); background: var(--bg-soft); font-size: 14.5px; }
.ask-strip > summary { cursor: pointer; padding: 10px 14px; color: var(--ink-2); list-style-position: inside; }
.ask-strip > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: var(--radius-sm); }
.ask-strip-q { color: var(--brand); font-weight: 600; }
.ask-strip[open] > summary { border-bottom: 1px solid var(--line); }
.ask-strip .ask-form { padding: 12px 14px 14px; max-width: 640px; }
.ask-form textarea { width: 100%; }
.ask-opt { font-weight: 400; color: var(--ink-3); font-size: 13px; margin-left: 6px; }
.ask-go { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.ask-go .fine { margin: 0; }
.ask-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ask-msg { white-space: pre-wrap; font-weight: 400; max-width: 52ch; }

.lt-wrap { position: relative; display: flex; flex-direction: column; }
.lt-wrap > * { min-width: 0; }
.lt { margin: 18px 0 10px; scroll-margin-top: 12px; }
.lt-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.lt-f { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 13.5px; color: var(--ink-2); background: #fff; white-space: nowrap; }
.lt-f:hover { text-decoration: none; border-color: var(--ink-3); color: var(--ink); }
.lt-f.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.lt-f.none:not(.on) { color: var(--ink-3); border-style: dashed; }
.lt-n { font-family: var(--mono); font-size: 12px; opacity: 0.8; }
.lt-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 12px; }
.lt-form label { display: block; font-size: 13px; color: var(--ink-3); margin: 0 0 4px; }
.lt-q { flex: 1 1 260px; }
.lt-q input { width: 100%; }
.lt-pick { display: none; }
.lt-count { margin: 10px 0 0; font-size: 13.5px; color: var(--ink-3); }
.bulk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0 0 12px; padding: 10px 12px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.bulk-n { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.lt-wrap.has-sel .bulk-bar, .lt-wrap:has(input[data-sel]:checked) .bulk-bar { border-color: var(--brand); background: var(--brand-soft); }
.bulk-do { display: flex; flex-wrap: wrap; gap: 8px; }
.bulk-rm { color: var(--bad); }
.bulk-list { columns: 2 220px; margin: 0 0 20px; }
table.subs input.sel { width: 18px; height: 18px; margin: 0 10px 0 0; vertical-align: -3px; accent-color: var(--brand); }
table.subs tbody th:has(> input.sel) { position: relative; padding-left: 44px; }
table.subs tbody th > input.sel { position: absolute; left: 14px; top: 15px; margin: 0; }
table.subs tbody th:has(> input.sel), table.subs.with-coi tbody th:has(> input.sel) { min-width: 190px; overflow-wrap: break-word; }
/* With rows ticked on a wide screen, the bulk bar stays in view under the header while the list scrolls. */
.lt-wrap.has-sel .bulk-bar, .lt-wrap:has(input[data-sel]:checked) .bulk-bar { position: sticky; top: 72px; z-index: 15; box-shadow: var(--shadow); }
table.subs th input.sel[hidden] { display: none; }

.demo-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; margin: 0 0 14px; padding: 12px 16px; background: var(--warn-soft); border: 1px solid var(--warn-line); border-radius: var(--radius-sm); font-size: 14.5px; }
.demo-banner span { color: var(--ink-2); }
.demo-banner > div { flex: 1 1 420px; }
.rp-body .demo-banner { max-width: 1000px; margin: 12px auto; }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0 0 26px; padding-bottom: 10px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.demo-tabs a { color: var(--ink-2); padding: 4px 0; }
.demo-tabs a[aria-current] { color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--brand); }
.demo-value { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; margin: 0 0 20px; border-color: #c6d6ff; background: linear-gradient(180deg, var(--brand-soft), #fff 85%); padding: 16px 20px; }
.demo-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; background: var(--bg-soft); }
.demo-cta p { margin: 0; max-width: 60ch; }
.hero-demo { white-space: nowrap; margin-left: 4px; }

.first-coi { border-color: var(--ok-line); background: linear-gradient(180deg, var(--ok-soft), #fff 80%); margin: 0 0 22px; }
.first-coi h2 { margin: 0 0 8px; }
.first-coi-do { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.first-coi .btn { white-space: normal; text-align: center; line-height: 1.25; padding-top: 8px; padding-bottom: 8px; }

@media (max-width: 720px) {
  .lt-filters { display: none; }
  .lt-pick { display: block; flex: 1 1 100%; }
  .lt-pick select, .lt-sort select { width: 100%; }
  .lt-sort { flex: 1 1 140px; }
  .lt-form .btn { flex: 0 0 auto; }
  /* On a phone the bulk bar comes after the rows, and once a row is ticked it sticks to the bottom of the screen
     while the list is in view. Sticky, not fixed: ticking a row never moves the list under the finger. */
  .lt-wrap > .bulk-bar { order: 5; margin: 12px 0 0; }
  .lt-wrap > .table-note { order: 6; }
  .lt-wrap.has-sel .bulk-bar, .lt-wrap:has(input[data-sel]:checked) .bulk-bar { position: sticky; top: auto; bottom: 0; z-index: 30; margin: 12px -16px 0; border-radius: 0; border-width: 1px 0 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -12px rgba(11, 18, 32, 0.25); }
  .bulk-do .btn { flex: 1 1 calc(50% - 8px); }
  table.subs tbody th:has(> input.sel), table.subs.with-coi tbody th:has(> input.sel) { padding-left: 34px; min-width: 0; }
  table.subs tbody th > input.sel { left: 0; top: 4px; width: 22px; height: 22px; }
  .hero-demo { display: inline-block; margin: 6px 0 0; }
}

/* ---- Languages (src/i18n.js): the English · Español switch in the header and footer ---- */
.lang-switch { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; white-space: nowrap; }
.lang-switch a { color: var(--brand); }
.lang-switch [aria-current] { font-weight: 600; }
.lang-top { align-self: center; margin-right: 6px; }
.foot-about .lang-switch { margin-top: 4px; }
html[lang="es"] .bar-cta .btn { white-space: nowrap; }
@media (max-width: 720px) {
  /* On a phone the header keeps only the link to the other language. */
  .lang-top [aria-current], .lang-top span[aria-hidden] { display: none; }
  /* The contractor's "Check your subs" button is left out of the Spanish header on a phone: those pages are for subs and workers. */
  html[lang="es"] .bar-cta .cta-gc { display: none; }
}

/* ---- Marketing pages: the free certificate check (src/cert-check.js), guides (src/guides.js), audience pages and the
   partner form (src/audiences.js), campaign links (src/campaigns.js) and the data story (src/data-story.js) ---- */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.hero-tool { margin-top: 6px; }
.cc-hero { padding-top: 56px; background: radial-gradient(1000px 380px at 85% -10%, var(--brand-soft), transparent 70%); }
.cc-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.cc-grid .card:first-child { margin-top: 0; }
.cc-form { box-shadow: var(--shadow-lg); }
.cc-form h2, .cc-result h2 { margin-top: 0; }
.cc-mins { margin: 14px 0 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; background: var(--bg-soft); }
.cc-mins summary { cursor: pointer; font-weight: 600; font-size: 15px; }
.cc-mins[open] summary { margin-bottom: 8px; }
.cc-mins .check { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 4px; font-weight: 400; }
.cc-private { margin-top: 10px; }
.cc-result { border-color: var(--line-strong); scroll-margin-top: 84px; }
.cc-verdict { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; font-size: 22px; }
.cc-read th { width: 46%; font-weight: 500; color: var(--ink-2); }
.cc-read td { overflow-wrap: anywhere; }
.cc-cta .cta { margin-top: 8px; }
.narrow-col { max-width: 820px; }
.cc-explain > div { margin-bottom: 10px; }
.guide { padding: 40px 0 56px; }
.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
.guide-main { max-width: 760px; }
.guide-main .crumbs { font-size: 14px; margin-bottom: 14px; }
.guide-meta { margin-top: -4px; }
.guide-toc { margin: 8px 0 24px; padding: 12px 14px; background: var(--bg-soft); border-radius: var(--radius-sm); }
.guide-body h2 { font-size: 22px; margin: 36px 0 12px; scroll-margin-top: 80px; }
.guide-body ul, .guide-body ol { padding-left: 22px; }
.guide-body li { margin-bottom: 8px; }
.guide-body .tablebox { margin: 8px 0 16px; }
.guide-side { position: sticky; top: 88px; }
.guide-side .card:first-child { margin-top: 0; }
.guide-cta h2, .guide-more h2 { font-size: 17px; margin: 0 0 8px; }
.guide-cta .cta { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-more li { margin-bottom: 6px; }
.guide-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.guide-list .card { margin-top: 0; }
.guide-list h2 { font-size: 19px; margin: 0 0 8px; }
.guide-cta-wide { margin-top: 32px; }
.for-pains { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.for-pains li { background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--brand); border-radius: var(--radius-sm); padding: 14px 16px; font-size: 16.5px; color: var(--ink-2); }
.for-fixes { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 18px; }
.for-fixes .card { margin-top: 0; }
.for-demo { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; justify-content: space-between; }
.for-demo > div { max-width: 640px; }
.partner-card { margin-top: 0; box-shadow: var(--shadow-lg); }
.partner-card h2 { margin-top: 0; }
.go-form h2, .story-form h2 { margin-top: 0; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.go-qr svg { display: block; margin-bottom: 4px; }
.go-table .sub { display: block; }
.go-made { display: flex; flex-wrap: wrap; gap: 16px 24px; align-items: center; justify-content: space-between; }
.go-qr-big { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.go-table td, .story-table td { vertical-align: top; }
.story-para { margin-bottom: 18px; }
.story-para p { margin: 0; font-size: 17px; line-height: 1.65; }
.story-para + .tablebox { margin-bottom: 18px; }
.story-total th, .story-total td { font-weight: 600; border-top: 2px solid var(--line-strong); }
@media (max-width: 900px) {
  .cc-grid, .guide-grid { grid-template-columns: 1fr; gap: 28px; }
  .guide-side { position: static; }
}
@media (max-width: 720px) {
  .cc-hero { padding-top: 32px; }
  .cc-verdict { font-size: 19px; }
  .cc-read th { width: auto; }
  .guide { padding-top: 24px; }
}

/* ---- Imported jobs and job sources (src/job-pages.js, src/job-import-pages.js): an imported job uses the job card
   and job page as they are; only the "Imported from ..." line, the outbound apply card, the admin claim form and the
   /admin/job-sources table are new ---- */
.jb-src { margin: 2px 0 4px; font-size: 13.5px; color: var(--ink-3); }
.jb-card-src { margin: 0 0 4px; }
.jb-card .pills:empty { display: none; }
.jb-apply-out .jb-out-btn { display: flex; width: 100%; justify-content: center; text-align: center; margin-top: 4px; }
.jb-claim { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.jb-claim input { min-width: 0; flex: 1 1 160px; padding: 6px 10px; font-size: 14px; }
.js-do { display: flex; flex-wrap: wrap; gap: 6px; }
.js-add { margin: 24px 0 32px; }
.js-add h2 { margin-top: 0; }
.js-hints { padding-left: 18px; margin: 12px 0; }
.js-hints li { margin: 2px 0; }
@media (max-width: 640px) {
  .js-table thead { display: none; }
  .js-table tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
  .js-table td, .js-table th { display: block; width: 100%; border: 0; padding: 4px 0; }
  .js-table td.num { text-align: left; }
  .js-open { display: inline; margin-left: 4px; }
}
.js-open { font-family: var(--sans); }
.jb-head-cta, .jb-out-btn { line-height: 1.3; padding: 10px 18px; white-space: normal; text-align: center; }

/* ---- Growth pages: free license renewal reminders (src/reminder-pages.js) and "Check your contractor before you
   hire" for homeowners (src/homeowner.js), with the homeowner card on the home page ---- */
.rm-results { scroll-margin-top: 84px; box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.rm-results + .rm-form { box-shadow: var(--shadow-sm); }
.rm-results h2, .rm-form h2 { margin-top: 0; }
.rm-choices { display: grid; gap: 10px; margin: 4px 0 6px; }
.rm-choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; margin: 0; font-weight: 400; cursor: pointer; background: #fff; }
.rm-choice:hover { border-color: var(--ink-3); }
.rm-choice:has(input:checked) { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.rm-choice input[type="radio"] { width: 18px; height: 18px; min-height: 0; margin: 3px 0 0; padding: 0; flex: none; accent-color: var(--brand); box-shadow: none; }
.rm-choice.rm-off { cursor: default; background: var(--bg-soft); flex-direction: column; gap: 6px; }
.rm-choice.rm-off:hover { border-color: var(--line); }
.rm-lic { min-width: 0; flex: 1; }
.rm-lic .rm-name { font-size: 16px; margin-right: 6px; overflow-wrap: anywhere; }
.rm-lic p { margin: 2px 0 0; }
.rm-lic .sub { display: block; }
.rm-date { color: var(--ink); font-weight: 500; }
.rm-note { display: block; font-size: 14px; color: var(--ink-2); margin: 4px 0 0; }
.rm-choice:not(.rm-off) .rm-note { margin-left: 30px; flex-basis: 100%; }
.rm-choice:not(.rm-off):has(.rm-note) { flex-wrap: wrap; }
.rm-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 48px; }
.rm-step { max-width: 720px; padding-top: 40px; padding-bottom: 56px; }
.rm-step .card { margin: 16px 0; }
.rm-step .cta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 16px; }
.rm-list { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 12px; }
.rm-list .card { margin: 0; display: grid; gap: 8px; }
.rm-list form { margin: 0; }
.rm-all { margin: 8px 0 16px; }
.rm-cta { margin-top: 28px; }
.ho-form { box-shadow: var(--shadow-lg); margin-top: 0; }
.ho-form .btn { margin-top: 4px; }
.ho-res { padding-top: 32px; }
.ho-res h2 { margin-top: 0; }
.ho-results { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 12px; }
.ho-result { margin: 0; border-left: 4px solid var(--line-strong); }
.ho-result.ho-current { border-left-color: var(--ok); }
.ho-result.ho-expiring { border-left-color: var(--warn); }
.ho-result.ho-expired { border-left-color: var(--bad); }
.ho-top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.ho-top .r-name { font-size: 17px; overflow-wrap: anywhere; }
.ho-result p { margin: 6px 0 0; }
.ho-say { color: var(--ink); font-size: 15.5px; }
.ho-none { margin-top: 0; border-left: 4px solid var(--bad); }
.ho-none h2 { margin: 0 0 8px; }
.ho-checks { counter-reset: ho; list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 14px; }
.ho-checks li { counter-increment: ho; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px 18px 64px; box-shadow: var(--shadow-sm); }
.ho-checks li::before { content: counter(ho); position: absolute; left: 20px; top: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: 600; display: grid; place-items: center; }
.ho-checks h3 { margin: 2px 0 6px; font-size: 17px; }
.ho-checks p { margin: 0; color: var(--ink-2); }
.ho-cert .split { align-items: start; }
.ho-more li { margin-bottom: 8px; }
.ho-bottom { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: stretch; }
.ho-bottom .card { margin-top: 0; }
.ho-share .cta { display: flex; flex-wrap: wrap; gap: 8px; }
.ho-share .copy-row input { flex: 1 1 220px; min-width: 0; }
.home-owner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; margin-top: 20px; margin-bottom: 8px; background: var(--bg-soft); }
.home-owner h3 { margin: 0 0 4px; }
.home-owner p { margin: 0; color: var(--ink-2); max-width: 640px; }
.home-owner .kicker { margin-bottom: 4px; }
.home-owner-links { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
@media (max-width: 720px) {
  .ho-checks li { padding-left: 56px; }
  .ho-checks li::before { left: 14px; }
  .rm-step { padding-top: 24px; }
  .ho-bottom { grid-template-columns: 1fr; }
}

/* ---------- Pay pages and "hiring now" pages (src/pay-pages.js) ---------- */
.mk h2 { margin-top: 36px; }
.mk .card h2 { margin-top: 0; }
.mk-table th a { color: var(--brand); }
.mk-table td.num { font-variant-numeric: tabular-nums; }
.mk-stat .mk-n small { white-space: nowrap; }
.mk-stat:nth-child(2) .mk-n { font-size: clamp(22px, 2.4vw, 28px); }
.mk-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 8px 0 12px; }
.mk-stat { display: flex; flex-direction: column; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow-sm); min-width: 0; }
.mk-stat-main { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.mk-l { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.mk-sub { font-weight: 400; color: var(--ink-3); }
.mk-n { font-size: clamp(24px, 3vw, 32px); font-weight: 650; letter-spacing: -0.02em; color: var(--ink); line-height: 1.2; overflow-wrap: anywhere; }
.mk-n small { font-size: 15px; font-weight: 500; color: var(--ink-3); letter-spacing: 0; }
.mk-y { font-size: 14.5px; color: var(--ink-2); }
.mk-how { max-width: 80ch; }
.mk-empty { border-left: 4px solid var(--warn); }
.mk-empty .btn { margin-top: 4px; }
.mk-gov { background: var(--bg-soft); }
.mk-gov p { margin: 0 0 8px; }
.mk-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 0 28px; align-items: start; }
.mk-cols > *, .mk-ctas > *, .mk-hire > * { min-width: 0; }
.mk-table td.num, .mk-table th.num { text-align: right; white-space: nowrap; }
.mk-few { color: var(--ink-3); font-size: 14px; text-align: right; }
.mk-ctas { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 20px; margin-top: 12px; }
.mk-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; margin-top: 0; }
.mk-cta p { color: var(--ink-2); margin: 0 0 10px; }
.mk-cta .btn { margin-top: auto; }
.mk-links .sub { white-space: nowrap; }
.mk-meta { display: flex; flex-wrap: wrap; gap: 4px 8px; color: var(--ink-2); margin: 4px 0 20px; }
.mk-hire { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.mk-side .card { margin-top: 0; margin-bottom: 16px; }
.mk-side .card p { color: var(--ink-2); }
.mk-side .btn { white-space: normal; text-align: center; line-height: 1.3; padding-block: 10px; }
.mk-pay-n { margin: 0 0 4px; }
.mk-emp-list { list-style: none; margin: 0; padding: 0; }
.mk-emp-list li { padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.mk-emp-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.mk-emp-list .sub { display: block; font-size: 14px; }
.mk-browse { margin-top: 32px; }
.mk-browse h3 { font-size: 15px; margin: 8px 0 4px; color: var(--ink-2); }
.mk-filter-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: -8px 0 16px; }
.mk-job-links { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; }
.mk-job-links a::after { content: " →"; }
@media (max-width: 900px) {
  .mk-hire { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .mk-stats { grid-template-columns: 1fr; gap: 10px; }
  .mk-stat { padding: 16px 18px; }
  .mk-cols, .mk-ctas { grid-template-columns: 1fr; }
  .mk-table .mk-rcol { display: none; }
  .mk-table .mk-r { display: block; font-size: 12.5px; color: var(--ink-3); }
  .mk-table th, .mk-table td { padding-left: 10px; padding-right: 10px; }
}
.mk-r { display: none; }
.mk-table td.mk-few { white-space: normal; }

/* ---- /admin/trials (src/admin-trials.js): the test tag, and the activity lines kept apart on a phone ---- */
.pill-test { padding: 1px 8px; font-size: 11.5px; margin-left: 6px; vertical-align: 1px; color: var(--warn); background: var(--warn-soft); border-color: var(--warn-line); }
.tr-email { overflow-wrap: anywhere; }
@media (max-width: 720px) {
  table.tr-table td[data-label="Activity"] .sub { display: block; margin-left: 0; }
}

/* ---------- Job alerts by email, no account (src/job-email-alert-pages.js), and "Claim this listing" (src/listing-claims.js) ---------- */
.ja-card { border-color: #c6d6ff; }
.ja-card h2 { font-size: 18px; line-height: 1.3; margin: 0 0 4px; overflow-wrap: anywhere; }
.ja-card .ja-p { margin: 0 0 14px; color: var(--ink-2); font-size: 14.5px; }
.ja-row { display: flex; flex-wrap: wrap; gap: 10px; }
.ja-row input { flex: 1 1 220px; min-width: 0; }
.ja-row .btn { flex: 0 0 auto; }
.ja-where { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin-top: 4px; }
.ja-where .ja-trade { grid-column: 1 / -1; }
.ja-email-l { margin: 12px 0 4px; font-size: 13px; color: var(--ink-2); }
.ja-where label { font-size: 13px; color: var(--ink-2); margin-bottom: 4px; }
.ja-where select, .ja-where input { min-height: 38px; padding: 7px 10px; font-size: 14.5px; }
.ja-card .fine { margin: 12px 0 0; color: var(--ink-3); }
.ja-inline { margin: 28px 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 8px 40px; align-items: start; }
.ja-inline .ja-head h2 { font-size: 20px; }
.ja-inline .ja-where { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ja-inline .ja-where .ja-trade { grid-column: auto; }
.jb-side .ja-card .ja-row .btn, .mk-side .ja-card .ja-row .btn { flex: 1 1 100%; }
.ja-step .ja-card { margin-top: 20px; }
.ja-list { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 14px; }
.ja-list > li.card { margin: 0; display: grid; gap: 10px; }
.ja-list h2 { font-size: 17px; margin: 0; overflow-wrap: anywhere; }
.ja-list .sub { margin: 0; color: var(--ink-2); }
.ja-edit { margin-top: 0; align-items: end; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
.ja-edit .ja-trade { grid-column: auto; }
.ja-edit-do { display: flex; align-items: end; }
.ja-profile { margin-top: 28px; }
.jb-claim-box { background: var(--bg-soft); }
.jb-claim-box h2 { font-size: 17px; margin: 0 0 4px; }
.jb-claim-box p { margin: 0 0 12px; color: var(--ink-2); font-size: 14.5px; }
.lc-page .lc-what { margin: 16px 0; }
.lc-page .cta { margin-top: 16px; }
.lc-table .sub { display: block; }
.lc-do form, .js-table .js-do form { display: inline-block; margin: 0 6px 6px 0; }
/* A table cell that is a flex box loses its row height and border when a row grows (the website line above). */
.js-table td.js-do, .lc-table td.lc-do { display: table-cell; }
.js-web { margin-top: 6px; font-weight: 400; }
.js-web summary { font-size: 13px; cursor: pointer; }
.js-web-form { display: flex; gap: 6px; margin-top: 6px; }
.js-web-form input { min-height: 34px; padding: 5px 8px; font-size: 13.5px; min-width: 0; }
@media (max-width: 900px) {
  .ja-inline { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .js-table td.js-do { display: block; }
}
@media (max-width: 720px) {
  .ja-inline .ja-where { grid-template-columns: 1fr 1fr; }
  .ja-inline .ja-where .ja-trade { grid-column: 1 / -1; }
  .ja-row .btn { flex: 1 1 100%; }
}

/* ---- Worker consent, Crew licenses and /admin/metrics (src/consent.js, src/crew.js, src/admin-metrics.js) ---- */
.bad { color: var(--bad); }
fieldset.consent { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px 4px; margin: 18px 0 14px; background: var(--bg-soft); min-width: 0; }
fieldset.consent legend { padding: 0 6px; font-weight: 600; font-size: 15px; }
.consent-box { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; font-size: 15px; line-height: 1.5; margin: 0 0 12px; cursor: pointer; }
.consent-box input[type="checkbox"] { flex: 0 0 auto; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); }
.consent-box > span { min-width: 0; overflow-wrap: anywhere; }
.consent-opt { padding-top: 12px; border-top: 1px dashed var(--line-strong); }
.consent-tag { display: inline-block; margin-right: 4px; padding: 0 7px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 20px; background: var(--brand-soft); color: var(--brand-ink); vertical-align: 1px; }
.consent-tag-opt { background: var(--bg-sunk); color: var(--ink-2); }
.consent-card .consent-item { padding: 12px 0; border-top: 1px solid var(--line); }
.consent-card .consent-item:first-of-type { border-top: 0; padding-top: 0; }
.consent-card h3 { font-size: 15.5px; margin: 0 0 4px; }
.consent-state { margin: 0 0 8px; font-weight: 600; font-size: 14.5px; }
.consent-state.on { color: var(--ok); }
.consent-state.off { color: var(--ink-2); }
.consent-words { margin: 0 0 10px; padding: 8px 12px; border-left: 3px solid var(--line-strong); background: var(--bg-soft); font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.consent-words .sub { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 2px; }
.consent-big { font-size: 16px; color: var(--ink); border-left-color: var(--brand); }
.consent-hist { margin-top: 10px; font-size: 13.5px; color: var(--ink-2); }
.consent-hist summary { cursor: pointer; color: var(--brand); }
.consent-hist ol { margin: 6px 0 0; padding-left: 20px; }
.consent-prompt .cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; }
.consent-prompt .cta .btn { flex: 1 1 240px; }
.dash-links { margin: 0 0 18px; font-size: 15px; }
.crew .tiles { margin: 18px 0; }
.crew-filter { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.crew-filter a { padding: 5px 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: 14px; color: var(--ink-2); }
.crew-filter a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.crew-filter a:hover { text-decoration: none; border-color: var(--ink-2); }
.crew-table .sub { display: block; }
.crew-table .pill-kind { margin-left: 6px; font-size: 11.5px; vertical-align: 1px; }
.crew-days { white-space: nowrap; }
.crew-undated { margin-top: 12px; }
.crew-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin-top: 24px; align-items: start; }
.crew-grid .card h2 { margin-top: 0; }
.crew-grid h3 { font-size: 15px; margin-top: 16px; }
.crew-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); }
.crew-list li:first-child { border-top: 0; }
.crew-list li > span { min-width: 0; overflow-wrap: anywhere; }
.crew-list .sub { display: block; }
.admin-metrics .edit-head { align-items: flex-end; }
.metrics-table th, .metrics-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.metrics-table td { text-align: right; }
.metrics-table thead th { white-space: normal; min-width: 88px; vertical-align: bottom; font-size: 13px; }
.metrics-table tbody th .sub { display: block; font-weight: 400; }
.metrics-table td .sub { display: block; font-size: 12px; }
.metrics-table tr.metrics-all th, .metrics-table tr.metrics-all td { border-top: 2px solid var(--line-strong); font-weight: 600; }
.metrics-defs { display: grid; grid-template-columns: minmax(160px, 220px) 1fr; gap: 6px 18px; margin: 0; font-size: 14.5px; }
.metrics-defs dt { font-weight: 600; }
.metrics-defs dd { margin: 0; color: var(--ink-2); }
@media (max-width: 640px) {
  .metrics-defs { grid-template-columns: 1fr; }
  .metrics-defs dd { margin-bottom: 8px; }
  table.crew-table td[data-label] { padding-left: 92px; }
  table.crew-table td[data-label] .sub { display: block; margin-left: 0; }
  .crew-list li { flex-wrap: wrap; }
}

/* ---- Polish pass (Nov 20, 2026): phone header and menu, tap targets, form fields, home state grid, footer ---- */
/* The phone menu (src/html.js): a disclosure in the header, so it works without script. Hidden on desktop. */
.mnav { display: none; }
.mnav > summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; margin-right: -8px; border-radius: 10px; color: var(--ink); cursor: pointer; }
.mnav > summary::-webkit-details-marker { display: none; }
.mnav > summary:hover { background: var(--bg-soft); }
.mnav .mnav-x { display: none; }
.mnav[open] .mnav-i { display: none; }
.mnav[open] .mnav-x { display: inline; }
.mnav[open] > summary::before { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 100vh; background: rgba(11, 18, 32, 0.3); cursor: default; }
.mnav-panel { z-index: 1; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 24px 48px -24px rgba(11, 18, 32, 0.28); padding: 6px 16px 20px; max-height: calc(100vh - 64px); max-height: calc(100dvh - 64px); overflow-y: auto; }
header.site .mnav-panel > nav { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; overflow: visible; order: 0; flex-basis: auto; }
header.site .mnav-panel > nav a { display: flex; align-items: center; min-height: 52px; padding: 0 4px; font-size: 17px; font-weight: 500; color: var(--ink); border-radius: 0; border-bottom: 1px solid var(--line); white-space: normal; }
header.site .mnav-panel > nav a:hover { background: none; color: var(--brand); }
header.site .mnav-panel > nav a[aria-current] { background: none; color: var(--brand); box-shadow: inset 3px 0 0 var(--brand); padding-left: 14px; }
.mnav-foot { display: flex; flex-direction: column; align-items: stretch; gap: 14px; padding-top: 16px; }
.mnav-foot .btn { min-height: 48px; font-size: 16px; }
.mnav-foot .lang-switch { justify-content: center; font-size: 15px; gap: 8px; }
header.site .mnav-foot .lang-switch { order: 0; flex-basis: auto; margin: 0; padding: 0; overflow: visible; -webkit-mask-image: none; mask-image: none; }
header.site .mnav-foot .lang-switch a, header.site .mnav-foot .lang-switch span { display: inline; padding: 6px 2px; font-size: 15px; }
/* Below 1040px the five links no longer fit beside the buttons, so they move into the menu instead of a second row. */
@media (max-width: 1040px) {
  .bar { flex-wrap: nowrap; gap: 8px; min-height: 60px; padding-block: 8px; position: static; }
  header.site { position: sticky; }
  header.site > .wrap { position: relative; }
  .brand { margin-right: auto; flex: 0 0 auto; }
  .bar > nav, .bar-cta .btn-quiet, .bar-cta .lang-top { display: none !important; }
  .bar-cta { margin-left: 0; gap: 8px; flex: 0 1 auto; min-width: 0; }
  .bar-cta .btn { min-height: 40px; padding: 0 14px; white-space: nowrap; }
  .mnav { display: block; flex: 0 0 auto; }
  .mnav-panel { left: 0; right: 0; }
}
@media (max-width: 720px) {
  /* 16px fields: smaller ones make iPhone Safari zoom the page when a field is tapped. */
  input:not([type="checkbox"]):not([type="radio"]), select, textarea, .checkform textarea, .form textarea, .checkform #list { font-size: 16px; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select { min-height: 48px; }
  .btn { min-height: 46px; }
  .btn-sm { min-height: 40px; }
  .btn-lg { min-height: 52px; }
  .filters select, .filters input, .filters .btn { min-height: 44px; }
  /* Links that stand alone get a full-size tap target without moving the text. */
  a.more { display: inline-block; padding-block: 10px; margin-block: -10px; }
  .cta .more, .home-owner-links .more { margin-block: 0; }
  .pager .btn { min-height: 44px; }
  .hero-sub, .hero-tool { margin-top: 6px; }
  .hero .fine a, .hero-tool a { display: inline-flex; align-items: center; min-height: 40px; }
  .hero .src-line { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); line-height: 1.6; }
  .hero h1 { font-size: 38px; line-height: 1.06; letter-spacing: -0.035em; }
  .lede { font-size: 17px; margin: 18px 0 26px; }
  h2 { font-size: 22px; }
  .worker h2 { font-size: 26px; }
  .sublede { font-size: 16px; }
  section { padding: 40px 0; }
  .band { padding: 32px 0; }
  .stats { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .stats .n { font-size: 26px; }
  .stats .l { font-size: 13.5px; line-height: 1.4; }
  .how li, .three > div { padding: 20px; }
}
@media (max-width: 520px) {
  /* Main calls to action fill the width on a phone, one per row. */
  .cta > .btn, .cta > .btn-lg { flex: 1 1 100%; }
  .cta > .more { flex: 0 0 auto; }
  .home-owner-links { flex-direction: column; align-items: stretch; width: 100%; }
  .home-owner-links .btn { width: 100%; }
}

/* The state grid (home "Browse by state", /licensed): compact cards, five across on a desktop, two on a phone. */
.three.browse { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.three.browse > div { padding: 16px 18px 14px; box-shadow: none; display: flex; flex-direction: column; transition: border-color 0.15s, box-shadow 0.15s; }
.three.browse > div:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.browse h3 { font-size: 15.5px; margin: 0 0 2px; }
.browse p { font-size: 13.5px; color: var(--ink-3); margin: 0 0 10px; line-height: 1.45; font-variant-numeric: tabular-nums; }
.browse .more { font-size: 13.5px; margin-top: auto; line-height: 1.4; }
@media (max-width: 720px) {
  .three.browse { grid-template-columns: 1fr 1fr; gap: 10px; }
  .three.browse > div { padding: 14px 14px 6px; }
  .browse h3 { font-size: 15px; }
  .browse p { font-size: 13px; margin-bottom: 2px; }
  .browse a.more { font-size: 13px; padding-block: 8px; margin-block: -2px 0; }
}
.lookup-states { max-width: 88ch; margin-top: 16px; line-height: 1.65; }

/* Footer: links in tidy columns on a phone, each one easy to tap. */
@media (max-width: 720px) {
  footer.site { padding: 32px 0 40px; }
  footer.site .foot { gap: 24px; }
  footer.site nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; width: 100%; }
  footer.site nav a { display: flex; align-items: center; min-height: 40px; font-size: 14.5px; line-height: 1.3; }
  footer.site .foot-states { display: flex; flex-wrap: wrap; gap: 0 16px; padding-top: 20px; }
  footer.site .foot-states span { flex-basis: 100%; margin-bottom: 4px; font-weight: 500; color: var(--ink-2); }
  footer.site .foot-states a { display: inline-flex; align-items: center; min-height: 36px; font-size: 14px; }
}
/* Spanish labels are longer than one row can hold, so on desktop the links get a tidy row of their own under the brand and buttons. */
@media (min-width: 1041px) {
  html[lang="es"] header.site .bar > nav { order: 3; flex: 1 1 100%; flex-wrap: nowrap; margin: -4px -11px 0; }
  html[lang="es"] header.site .bar > nav a { white-space: nowrap; }
  html[lang="es"] .bar-cta { margin-left: auto; }
}
/* Pricing: the yearly savings badge stays on one line beside its label on a phone. */
.bill-save { white-space: nowrap; }
@media (max-width: 720px) {
  .bill-toggle a { min-height: 44px; gap: 6px; padding: 0 8px; }
}
