/* 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: #6b7582;
  --line: #e4e7ec; --line-strong: #cfd4dc;
  --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(--line-strong); 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: #9aa3ae; }
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; }
.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; }
  .bar-cta .btn-quiet { 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; }
