/* ===================================================================
   Directory styles. Tokens and component classes mirror GovBD's
   frontend/src/styles (govbd.css, uswds theme; govbd-components.css)
   so the two feel like one family. Public site: no sidebar, a navy
   header instead.
   =================================================================== */

:root {
  --radius: 8px;
  --radius-sm: 6px;
  --radius-lg: 12px;
  --ring: 0 0 0 3px var(--focus);
  --shadow-sm: 0 1px 2px rgba(11, 34, 64, 0.06), 0 1px 1px rgba(11, 34, 64, 0.04);
  --shadow: 0 1px 3px rgba(11, 34, 64, 0.08), 0 8px 24px -12px rgba(11, 34, 64, 0.18);
  --font: "Public Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Public Sans", ui-monospace, "SFMono-Regular", "Menlo", monospace;
  --pad-card: 20px;
  --row-py: 12px;
  --gap: 16px;
  --fs-base: 14px;

  --bg: #eef1f5;
  --surface: #ffffff;
  --surface-2: #f5f7fa;
  --surface-3: #eef1f5;
  --ink: #16203a;
  --ink-2: #3d4756;
  --ink-3: #6b7280;
  --border: #dbe0e8;
  --border-strong: #c3cad6;
  --brand: #1a4480;
  --brand-2: #112e51;
  --brand-ink: #ffffff;
  --accent: #b50909;
  --link: #1a4480;
  --focus: rgba(26, 68, 128, 0.28);
  --header-bg: #112e51;
  --header-bg-2: #0c2342;
  --header-ink: #ffffff;
  --header-ink-2: #aebbd2;
  --header-accent: #d83933;
  --go: #2c7a3f;
  --go-bg: #e7f3ea;
  --cond: #9a6700;
  --cond-bg: #fcf3e0;
  --nogo: #b50909;
  --nogo-bg: #fbe9e9;
  --info: #1a4480;
  --info-bg: #e6edf6;
  --neutral: #4b5563;
  --neutral-bg: #eef1f5;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  font-size: var(--fs-base);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--focus); }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--radius-sm); }
[hidden] { display: none !important; }
h1 { margin: 0; }

/* ---------------- shell ---------------- */
.site-header {
  background: linear-gradient(180deg, var(--header-bg), var(--header-bg-2));
  color: var(--header-ink);
}
.site-header-inner {
  max-width: 1600px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 11px; color: var(--header-ink); }
.brand:hover { text-decoration: none; }
.brand img { display: block; }
.brand-mark-text { line-height: 1.1; display: flex; flex-direction: column; }
.brand-mark-text .name { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.brand-mark-text .sub {
  font-size: 10.5px; font-weight: 600; letter-spacing: .10em; text-transform: uppercase;
  color: var(--header-ink-2); margin-top: 3px;
}
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.site-nav a {
  color: var(--header-ink-2); font-size: 13.5px; font-weight: 600;
  padding: 8px 12px; border-radius: var(--radius-sm); position: relative;
}
.site-nav a:hover { color: var(--header-ink); background: rgba(255, 255, 255, .06); text-decoration: none; }
.site-nav a.active { color: var(--header-ink); background: rgba(255, 255, 255, .10); }
.site-nav a.active::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px;
  border-radius: 2px; background: var(--header-accent);
}
.site-nav a.nav-cta { border: 1px solid rgba(255, 255, 255, .28); color: var(--header-ink); margin-left: 6px; }

.content { flex: 1 0 auto; padding: 28px; }
.home-banner { height: clamp(160px, 24vw, 360px); overflow: hidden; background: var(--surface-2); }
.home-banner img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 55% 35%; }
.content-inner { max-width: 1600px; margin: 0 auto; width: 100%; }
.app-footer {
  max-width: 1600px; width: calc(100% - 56px); margin: 16px auto 24px; padding: 16px 4px 4px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--ink-3);
}
.app-footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.app-footer-links a { color: var(--ink-3); }
.app-footer-links a:hover { color: var(--ink); }
.app-footer-note { flex-basis: 100%; font-size: 12px; }

/* ---------------- page header ---------------- */
.crumbs { font-size: 13px; color: var(--ink-3); font-weight: 500; margin-bottom: 14px; }
.crumbs b { color: var(--ink-2); font-weight: 700; }
.page-head { margin-bottom: 22px; display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.page-head .pt { font-size: 24px; font-weight: 800; letter-spacing: -0.015em; color: var(--ink); }
.page-head .pd { margin-top: 5px; font-size: 14px; color: var(--ink-3); max-width: 720px; line-height: 1.5; }
.page-head .ph-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ---------------- cards ---------------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.card-head {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px var(--pad-card); border-bottom: 1px solid var(--border);
}
.card-head > div:first-child { flex: 1 1 auto; min-width: 0; }
.ct { font-size: 14.5px; font-weight: 700; color: var(--ink); }
.cs { margin-top: 3px; font-size: 12.5px; color: var(--ink-3); line-height: 1.45; }
.card-body { padding: var(--pad-card); }

.stat-grid { display: grid; gap: var(--gap); }
.stat-grid-3 { grid-template-columns: repeat(3, 1fr); }
.stat {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 16px 18px; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat .sl { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.stat .sv { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; margin-top: 7px; color: var(--ink); font-variant-numeric: tabular-nums; }
.stat .sh { font-size: 12px; color: var(--ink-3); margin-top: 5px; line-height: 1.45; }
.stat .accent-bar { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.stat.go .sv { color: var(--go); } .stat.go .accent-bar { background: var(--go); }
.stat.primary .accent-bar { background: var(--brand); }

/* ---------------- badges, chips ---------------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .01em;
  padding: 3px 9px; border-radius: 20px; white-space: nowrap;
}
.badge .bd { width: 6px; height: 6px; border-radius: 50%; }
.badge.go { background: var(--go-bg); color: var(--go); } .badge.go .bd { background: var(--go); }
.badge.cond { background: var(--cond-bg); color: var(--cond); }
.badge.info { background: var(--info-bg); color: var(--info); }
.badge.nogo { background: var(--nogo-bg); color: var(--nogo); }
.badge.neutral { background: var(--neutral-bg); color: var(--neutral); }

.chip-mono {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  background: var(--surface-3); color: var(--ink-2);
  padding: 2px 7px; border-radius: 5px; display: inline-block;
}
.chip-list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-list.tight { gap: 6px; margin-top: 10px; }
.chip {
  display: inline-flex; align-items: center; height: 32px; padding: 0 13px;
  border: 1px solid var(--border-strong); border-radius: 20px;
  font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--surface);
}
.chip:hover { background: var(--surface-2); border-color: var(--ink-3); color: var(--ink); text-decoration: none; }

/* ---------------- buttons, fields ---------------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  font: inherit; font-size: 13px; font-weight: 700; letter-spacing: .005em;
  padding: 0 15px; height: 38px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: background .15s, border-color .15s, box-shadow .15s, transform .08s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .6; cursor: default; }
.btn-primary { background: var(--brand); color: var(--brand-ink); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-2); }
.btn-secondary { background: var(--surface); color: var(--ink-2); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--ink-3); color: var(--ink); }

.field {
  height: 38px; border: 1px solid var(--border); background: var(--surface);
  border-radius: var(--radius); padding: 0 12px; font: inherit; font-size: 13.5px;
  color: var(--ink); width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
textarea.field { height: auto; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.field::placeholder { color: var(--ink-3); }
.field:focus { outline: none; border-color: var(--brand); box-shadow: var(--ring); }
.field.invalid { border-color: var(--nogo); }

form > label, .form-grid > label, .card-body > label.lbl { display: block; }
form label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 14px; }
form label .field { margin-top: 6px; font-weight: 400; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.form-grid .span-2 { grid-column: span 2; }
.form-section {
  font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  color: var(--ink-3); margin: 6px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--border);
}
.hint { display: block; font-weight: 400; color: var(--ink-3); margin-top: 5px; font-size: 12px; }
.lbl {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3); margin: 16px 0 7px;
}
.filters .lbl:first-child { margin-top: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.filters fieldset { margin-top: 16px; }
legend.lbl { padding: 0; margin: 0 0 7px; }
.check, .check-list label {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2);
  margin: 0 0 8px; cursor: pointer;
}
.check-row { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-bottom: 10px; }
.check input, .check-list input { accent-color: var(--brand); width: 15px; height: 15px; margin: 0; }
.filters .check { margin-top: 16px; }
.form-error {
  background: var(--nogo-bg); color: var(--nogo); border-radius: var(--radius);
  padding: 10px 12px; font-size: 13px; font-weight: 600; margin-top: 4px;
}
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------------- table ---------------- */
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl thead th {
  text-align: left; font-size: 10.5px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-3);
  padding: 11px 18px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap;
}
.tbl tbody td { padding: var(--row-py) 18px; border-bottom: 1px solid var(--border); color: var(--ink-2); vertical-align: top; }
.tbl tbody tr:last-child td { border-bottom: none; }
.tbl .num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl th.num, .tbl td.num:last-child { text-align: right; }

/* ---------------- layout helpers ---------------- */
.mt { margin-top: var(--gap); }
.muted { color: var(--ink-3); }
.small { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }
.row-flex { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: var(--gap); }
.two-col { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.narrow { max-width: 760px; }
.narrow-left { max-width: 860px; }
.prose { line-height: 1.6; color: var(--ink-2); margin-top: 0; }
.prose p { margin: 0 0 10px; }
.prose p:last-child { margin-bottom: 0; }
.placeholder { text-align: center; padding: 80px 20px; }
.placeholder h3 { font-size: 17px; font-weight: 800; margin: 0 0 6px; }
.placeholder p { font-size: 13.5px; color: var(--ink-3); max-width: 420px; margin: 0 auto; line-height: 1.5; }

.kv-table { display: grid; grid-template-columns: 130px 1fr; gap: 9px 14px; margin: 0; font-size: 13.5px; }
.kv-table dt { color: var(--ink-3); font-weight: 600; }
.kv-table dd { margin: 0; color: var(--ink-2); }
.prose + .kv-table { margin-top: 14px; }

/* ---------------- home ---------------- */
.hero { padding: 32px; display: flex; flex-direction: column; gap: 20px;
  background: linear-gradient(180deg, var(--surface), var(--surface-2)); }
.hero h1 { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.hero p { margin: 8px 0 0; color: var(--ink-3); font-size: 15px; max-width: 640px; line-height: 1.5; }
.search-bar { display: flex; gap: 10px; flex-wrap: wrap; }
.search-bar input { flex: 1 1 320px; height: 44px; font-size: 14.5px; }
.search-bar select { flex: 0 0 160px; height: 44px; }
.search-bar .btn { height: 44px; padding: 0 22px; }
.trade-list { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.trade-list li {
  display: flex; justify-content: space-between; gap: 10px; break-inside: avoid;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; font-weight: 600;
}

.spec-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.spec-card {
  display: block; padding: 20px 22px; color: inherit; position: relative; overflow: hidden;
  transition: transform .14s, box-shadow .14s, border-color .14s;
}
.spec-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--brand); }
.spec-card:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.spec-card .sl { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.spec-name { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); margin-top: 6px; }
.spec-count { font-size: 13px; font-weight: 600; color: var(--link); margin-top: 8px; }

/* ---------------- search + results ---------------- */
.results-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--gap); align-items: start; }
.filters { position: sticky; top: 16px; }
.result-list { display: flex; flex-direction: column; gap: 10px; }
.result {
  display: flex; align-items: flex-start; gap: 16px; padding: 16px 18px; color: inherit;
  transition: transform .14s, box-shadow .14s, border-color .14s;
}
.result:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.result-main { flex: 1; min-width: 0; }
.result-name { font-size: 15px; font-weight: 700; color: var(--ink); }
.result-meta { font-size: 12.5px; color: var(--ink-3); margin-top: 4px; }
.result-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.result-empty { padding: 40px 20px; text-align: center; color: var(--ink-3); }

/* Loading state while the index downloads, and a brief dim while typing. */
.results-loading { display: flex; flex-direction: column; gap: 10px; }
.loading-line { display: flex; align-items: center; gap: 10px; padding: 4px 2px; font-size: 13.5px; color: var(--ink-3); }
.spinner {
  width: 16px; height: 16px; flex: none; border-radius: 50%;
  border: 2px solid var(--border); border-top-color: var(--brand);
  animation: spin .8s linear infinite;
}
.result-skeleton { padding: 18px; display: flex; flex-direction: column; gap: 9px; }
.result-skeleton span {
  display: block; height: 12px; border-radius: 6px;
  background: linear-gradient(90deg, var(--surface-2) 25%, var(--border) 50%, var(--surface-2) 75%);
  background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite;
}
.result-skeleton span:first-child { width: 45%; height: 14px; }
.result-skeleton span:last-child { width: 70%; }
.result-list.is-busy { opacity: .55; transition: opacity .12s; }
.search-status { display: inline-flex; align-items: center; gap: 8px; }
.search-status .spinner { width: 12px; height: 12px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) {
  .spinner { animation-duration: 2.4s; }
  .result-skeleton span { animation: none; }
}

/* ---------------- firm profile ---------------- */
.firm-title { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.firm-title > div:first-child { flex: 1; min-width: 240px; }
.firm-title h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.015em; }
.firm-ids { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 8px; font-size: 13px; color: var(--ink-3); }
.verify-box { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.claim-link { font-size: 13px; font-weight: 600; margin-left: auto; }
.naics-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 13px; }
.source-note { font-size: 12.5px; color: var(--ink-3); line-height: 1.6; margin: 0 4px; }

/* ---------------- forms pages ---------------- */
.field.wide { height: 42px; }
.picker-results { display: flex; flex-direction: column; margin: 10px 0 12px; }
.picker-results a {
  display: flex; justify-content: space-between; gap: 12px; padding: 10px 4px;
  border-bottom: 1px solid var(--border); font-weight: 600; font-size: 13.5px;
}
.picker-results a span { color: var(--ink-3); font-weight: 500; }
.notice-card { border-left: 4px solid var(--go); }
.notice-card p { margin: 6px 0 0; }

/* ---------------- responsive ---------------- */
@media (max-width: 900px) {
  .two-col, .results-layout { grid-template-columns: minmax(0, 1fr); }
  .filters { position: static; }
  .stat-grid-3, .spec-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header-inner { padding: 12px 16px; gap: 10px; }
  /* One line of menu on phones: it scrolls sideways when it doesn't fit,
     with the "Update your listing" button first so it's always in view. */
  .site-nav { margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a, .site-nav .linklike { padding: 7px 9px; font-size: 13px; white-space: nowrap; flex: none; }
  .site-nav a.nav-cta { order: -1; margin-left: 0; margin-right: 4px; }
  /* Let the association's name wrap inside the screen. */
  .brand { min-width: 0; flex: 1 1 100%; max-width: 100%; }
  .brand-mark-text { min-width: 0; }
  .brand-mark-text .name { font-size: 15px; overflow-wrap: anywhere; }
  .content { padding: 18px 16px; }
  .app-footer { width: calc(100% - 32px); }
  .hero { padding: 22px 18px; }
  .hero h1 { font-size: 24px; }
  .search-bar select { flex: 1 1 auto; }
  .search-bar .btn { flex: 1 1 100%; }
  .trade-list { columns: 1; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: auto; }
  .verify-box { align-items: flex-start; text-align: left; }
  .claim-link { margin-left: 0; }
  .kv-table { grid-template-columns: 1fr; gap: 2px; }
  .kv-table dd { margin-bottom: 8px; }
  .page-head .ph-actions { margin-left: 0; }
  .tbl thead th, .tbl tbody td { padding-left: 8px; padding-right: 8px; }
  .tbl thead th:first-child, .tbl tbody td:first-child { padding-left: 14px; }
  .tbl thead th:last-child, .tbl tbody td:last-child { padding-right: 14px; }
  table.tbl { font-size: 12.5px; }
}

/* Intro video */
.btn-video .ico { margin-right: 6px; vertical-align: -2px; }
.video-dialog { width: min(880px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow); }
.video-dialog::backdrop { background: rgba(15, 23, 42, .6); }
.video-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.steps { margin: 0 0 12px; padding-left: 20px; }
.steps li { margin-bottom: 8px; }
.price-line { margin: 0 0 16px; padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius); }

/* Admin */
.narrow-sm { max-width: 460px; margin: 40px auto; }
.stat-grid-4 { grid-template-columns: repeat(4, 1fr); }
.flash { margin-bottom: 16px; padding: 10px 14px; border-radius: var(--radius); font-weight: 600; }
.flash.ok { background: var(--go-bg); color: var(--go); }
.flash.err { background: var(--nogo-bg); color: var(--nogo); }
.inline-form { display: inline; margin: 0; }
.linklike { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.tbl.diff tr.changed td { background: var(--cond-bg); }
.tbl tr.dim td { opacity: .5; }
.tier-options { display: grid; gap: 8px; margin: 12px 0 16px; }
.tier-opt { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; }
.tier-opt > span { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.tier-opt:has(input:checked) { border-color: var(--brand); background: var(--info-bg); }
.mono-area { font-family: var(--font); line-height: 1.5; }
@media (max-width: 760px) { .stat-grid-4 { grid-template-columns: 1fr 1fr; } }
.site-nav .linklike { color: var(--header-ink-2); font-size: 13.5px; font-weight: 600; padding: 8px 12px; border-radius: var(--radius-sm); }
.site-nav .linklike:hover { color: var(--header-ink); background: rgba(255, 255, 255, .06); }

/* Unconfirmed listing notice */
.unconfirmed-box { margin-top: 16px; padding: 12px 14px; border: 1px solid #e8c766; border-left: 4px solid var(--cond); border-radius: var(--radius); background: var(--cond-bg); color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }
.unconfirmed-box b { color: var(--cond); }
.unconfirmed-box .btn { margin-top: 10px; }
.held-back { display: grid; grid-template-columns: max-content 1fr; gap: 2px 14px; margin: 8px 0 0; }
.held-back dt { font-weight: 600; color: var(--ink); }
.held-back dd { margin: 0; color: var(--ink-3); }
.badge.featured { background: #e0f2fe; color: #075985; border: 1px solid #bae6fd; }
.badge.preferred { background: #1f7a3a; color: #ffffff; border: 1px solid #1f7a3a; }
.verify-box .muted + .badge { margin-top: 6px; }

/* Home front page */
.hero-compact { padding-bottom: 18px; }
.hero-compact h1 { margin-bottom: 0; }
.quick-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 14px; font-size: 13px; font-weight: 600; }
.front { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--gap); align-items: start; }
.stat-grid-2 { grid-template-columns: 1fr 1fr; }
.news-list { list-style: none; margin: 0; padding: 0; }
.news-item { padding: 10px 0; border-bottom: 1px solid var(--border); }
.news-item:first-child { padding-top: 0; }
.news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.news-text { min-width: 0; flex: 1; }
.news-title { font-weight: 700; color: var(--ink); line-height: 1.35; }
.news-meta { margin-top: 4px; font-size: 12px; color: var(--ink-3); }
.kicker { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.news-meta .kicker { font-size: 10.5px; }
.article-card { overflow: hidden; }
.article-photo { margin: 0; background: var(--surface-2); }
.article-photo img { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 380px; object-fit: cover; }
.article-photo figcaption { padding: 8px var(--pad-card); font-size: 12px; color: var(--ink-3); border-bottom: 1px solid var(--border); }
.article-body h1 { margin: 0 0 6px; font-size: 28px; line-height: 1.2; letter-spacing: -0.02em; }
.article-body h2 { margin: 24px 0 8px; font-size: 18px; }
.article-body p, .article-body li { font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.article-body .lede { font-size: 17px; color: var(--ink); }
@media (max-width: 980px) { .front { grid-template-columns: minmax(0, 1fr); } }

/* Listing update flow */
.flow-steps { list-style: none; counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; padding: 0; max-width: 960px; }
.flow-steps li { counter-increment: step; display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; }
.flow-steps li::before { content: counter(step); font-size: 11px; font-weight: 800; color: var(--brand); }
.flow-steps span { color: var(--ink-3); font-size: 12px; }
.mb { margin-bottom: var(--gap); }
.linklike.link { color: var(--link); font-weight: 600; }
.linklike.link:hover { text-decoration: underline; }
@media (max-width: 760px) { .flow-steps { grid-template-columns: 1fr 1fr; } }
.copy-field { margin-top: 6px; font-size: 12px; }

/* Admin: article photo */
.photo-field { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; margin: 0 0 14px; display: grid; gap: 10px; }
.photo-field legend { padding: 0 6px; font-weight: 600; font-size: 13px; }
.admin-photo { display: block; width: 100%; max-width: 420px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); margin-bottom: 12px; }

/* ===================================================================
   News page: a broadsheet front. Serif headlines, thin column rules,
   a lead story in the middle column, then section fronts.
   =================================================================== */
.np {
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --np-rule: #1d1d1d;
  --np-hair: #d6d6d6;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 32px 36px;
  max-width: 1280px;
  margin: 0 auto;
  color: #1d1d1d;
}
.np a { color: inherit; text-decoration: none; }
.np a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.np-masthead { text-align: center; border-bottom: 3px double var(--np-rule); padding-bottom: 10px; margin-bottom: 22px; }
.np-dateline { font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-3); text-align: left; border-bottom: 1px solid var(--np-hair); padding-bottom: 8px; }
.np-title { font-family: var(--serif); font-weight: 700; font-size: clamp(30px, 4.6vw, 54px); line-height: 1.05; letter-spacing: -0.015em; margin: 14px 0 4px; }
.np-tagline { font-family: var(--serif); font-style: italic; font-size: 15px; color: var(--ink-2); }
.np-sections { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 26px; margin-top: 12px; padding-top: 9px; border-top: 1px solid var(--np-rule); font-size: 13px; font-weight: 600; }
.np-sections a { color: #1d1d1d; }

.np-source { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.np-hed { font-family: var(--serif); font-weight: 700; font-size: 19px; line-height: 1.22; margin: 0 0 6px; }
.np-dek { font-family: var(--serif); font-size: 15px; line-height: 1.45; color: #3b3b3b; margin: 0 0 6px; }
.np-time { font-size: 11.5px; color: var(--ink-3); }
.np-time .np-source { display: inline; margin: 0; }
.np-photo { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--surface-2); margin-bottom: 10px; }
.np-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* Front: What's News | lead | two photo stories, with column rules. */
.np-front { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr) minmax(0, 1fr); border-bottom: 1px solid var(--np-rule); padding-bottom: 22px; }
.np-col { padding: 0 20px; }
.np-col:first-child { padding-left: 0; }
.np-col:last-child { padding-right: 0; }
.np-col + .np-col { border-left: 1px solid var(--np-hair); }
.np-col-head { font-family: var(--serif); font-size: 17px; font-weight: 700; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--np-rule); }
.np-brief { padding: 10px 0; border-bottom: 1px solid var(--np-hair); }
.np-brief:first-of-type { padding-top: 0; }
.np-brief:last-child { border-bottom: 0; }
.np-brief .np-hed { font-size: 16px; }
.np-brief .np-dek { font-size: 14px; }
.np-lead-photo { aspect-ratio: 16 / 10; margin-bottom: 12px; }
.np-lead-hed { font-family: var(--serif); font-weight: 700; font-size: clamp(26px, 2.8vw, 36px); line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 10px; }
.np-lead-dek { font-family: var(--serif); font-size: 18px; line-height: 1.45; color: #3b3b3b; margin: 0 0 8px; }
.np-beside .np-card + .np-card { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--np-hair); }

/* Section fronts */
.np-section { margin-top: 26px; }
.np-section-head { margin: 0 0 16px; border-top: 3px solid var(--np-rule); padding-top: 8px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.np-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.np-row .np-card { padding: 0 16px; }
.np-row .np-card:first-child { padding-left: 0; }
.np-row .np-card:last-child { padding-right: 0; }
.np-row .np-card + .np-card { border-left: 1px solid var(--np-hair); }
.np-row .np-hed { font-size: 17px; }
.np-row .np-dek { font-size: 14px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.np-list { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
.np-list li { padding: 10px 0; border-top: 1px solid var(--np-hair); }
.np-list-hed { display: block; font-family: var(--serif); font-weight: 600; font-size: 15.5px; line-height: 1.3; margin-bottom: 3px; }
.np-more .np-list { margin-top: 0; }
.np-empty { text-align: center; padding: 40px 0; }

@media (max-width: 1100px) {
  .np-front { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .np-whats { grid-column: 1 / -1; grid-row: 2; border-left: 0 !important; padding: 18px 0 0; margin-top: 18px; border-top: 1px solid var(--np-hair); }
  .np-lead { padding-left: 0; border-left: 0 !important; }
  .np-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
  .np-row .np-card:nth-child(odd) { padding-left: 0; border-left: 0; }
  .np-row .np-card:nth-child(even) { padding-right: 0; }
  .np-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .np { padding: 18px 16px 24px; border-radius: 0; border-left: 0; border-right: 0; }
  .np-front, .np-row, .np-list { grid-template-columns: minmax(0, 1fr); }
  .np-col, .np-row .np-card { padding: 0 !important; border-left: 0 !important; }
  .np-beside { margin-top: 18px; padding-top: 18px !important; border-top: 1px solid var(--np-hair); }
  .np-whats { grid-row: auto; }
  .np-lead { order: -1; }
  .np-whats { margin-top: 18px; padding-top: 18px !important; border-top: 1px solid var(--np-hair); }
  .np-row .np-card + .np-card { padding-top: 18px !important; border-top: 1px solid var(--np-hair); }
  .np-dateline { text-align: center; }
}

/* Our own articles read like the news page. */
.article-body h1 { font-family: "Source Serif 4", Georgia, serif; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -0.01em; }
.article-body .lede { font-family: "Source Serif 4", Georgia, serif; font-size: 19px; line-height: 1.45; color: #3b3b3b; }
.article-body p, .article-body li { font-family: "Source Serif 4", Georgia, serif; font-size: 17px; line-height: 1.65; color: #1d1d1d; }
.article-body h2 { font-family: "Source Serif 4", Georgia, serif; font-size: 22px; }
.np-under { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.np-under li { padding: 12px 0; border-top: 1px solid var(--np-hair); }
.np-under .np-list-hed { font-size: 17px; font-weight: 700; }
.np-brief .np-dek { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 680px) { .np-under { grid-template-columns: minmax(0, 1fr); } }

/* Home: our guides, laid out like the news page, full width */
.home-np { max-width: none; }
.home-toc { margin: 4px 0 14px; padding: 12px 0 2px; border-top: 1px solid var(--np-hair); }
.home-toc-head { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.home-toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; font-family: var(--serif); font-size: 15.5px; line-height: 1.5; }
.home-toc li { break-inside: avoid; padding: 2px 0; }
@media (max-width: 680px) { .home-toc ol { columns: 1; } }
.home-masthead { border-bottom: 3px double var(--np-rule); }
.home-title { font-size: clamp(26px, 3.4vw, 40px); margin-top: 4px; }
.home-np .np-col-head { font-size: 15px; letter-spacing: .02em; }
.home-np .np-brief .np-hed { font-size: 18px; }
.home-np .np-lead-hed { font-size: clamp(28px, 3vw, 40px); }
.home-excerpt { font-family: var(--serif); font-size: 17px; line-height: 1.6; color: #1d1d1d; margin: 4px 0 12px; }
.home-read { display: inline-block; font-weight: 700; font-size: 14px; color: var(--link) !important; }
.home-news-link { margin-top: 14px; font-weight: 700; font-size: 14px; }

/* Preferred profile: banner, green accents, key figures */
.pref-hero { overflow: hidden; border: 1px solid #9fd3ae; box-shadow: 0 1px 3px rgba(11,34,64,.08), 0 14px 32px -16px rgba(31,122,58,.35); }
.pref-banner { position: relative; min-height: 230px; display: flex; align-items: flex-end;
  background: radial-gradient(120% 140% at 85% 0%, #2a5a9a 0%, #112e51 45%, #0a1c33 100%); }
.pref-banner::before { content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: repeating-linear-gradient(135deg, #fff 0 1px, transparent 1px 22px); }
.pref-banner-img, .pref-banner-stock { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pref-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8,20,38,.05) 20%, rgba(8,20,38,.82) 100%); }
.pref-banner-text { position: relative; z-index: 1; padding: 26px var(--pad-card) 22px; color: #fff; }
.pref-banner-text h1 { margin: 10px 0 4px; font-size: clamp(26px, 3.2vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; color: #fff; }
.pref-sub { font-size: 14px; color: #d5deeb; font-weight: 500; }
.pref-ribbon { display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: #ffffff; background: linear-gradient(135deg, #2f9a50, #1a6b32); box-shadow: 0 2px 8px rgba(0,0,0,.25); }
.pref-ids { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 13px; color: var(--ink-3); }
.pref-ids b { color: var(--go); }
.pref-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin-top: 18px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.pref-stat { padding: 14px 16px; border-left: 1px solid var(--border); background: linear-gradient(180deg, #f6fbf7, #fff); }
.pref-stat:first-child { border-left: 0; }
.pref-stat .sv { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.15; }
.pref-stat .sv-text { font-size: 15px; font-weight: 700; letter-spacing: 0; }
.pref-stat .sl { margin-top: 4px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); line-height: 1.35; }
.pref-quote { margin: 0 0 16px; padding: 14px 18px; border-left: 4px solid #2f9a50; background: #f1faf3; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 15.5px; line-height: 1.6; color: var(--ink); }
.pref-quote cite { display: block; margin-top: 8px; font-size: 12px; font-style: normal; font-weight: 600; color: #1f7a3a; }
.pref-label { margin: 14px 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.pref-about .prose { font-size: 15px; line-height: 1.65; }
.pref-about .chip-list + .kv-table { margin-top: 16px; }
.pref-clients { list-style: none; margin: 0; padding: 0; }
.pref-clients li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--border); font-size: 13.5px; }
.pref-clients li:first-child { border-top: 0; padding-top: 0; }
.pref-clients b { font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 640px) { .pref-banner { min-height: 190px; } .pref-stat { border-left: 0; border-top: 1px solid var(--border); } .pref-stat:first-child { border-top: 0; } }

/* ===================================================================
   About: a landing page. Photo hero with calls to action, a proof
   strip, pillars, a workforce band, then a closing call to action.
   =================================================================== */
.lp-hero {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; color: #fff;
  /* The photo is set here, not in a style attribute: the CSP blocks inline
     styles. The navy color stays behind it so the white text always reads. */
  background-color: var(--header-bg);
  background-image: linear-gradient(100deg, rgba(10, 25, 47, .92) 0%, rgba(10, 25, 47, .78) 45%, rgba(10, 25, 47, .35) 100%), url("banners/construction-2.jpg");
  background-position: center, center 40%; background-size: cover, cover; background-repeat: no-repeat;
  min-height: 460px; display: flex; align-items: center;
}
.lp-hero-inner { padding: 56px 48px; max-width: 760px; }
.lp-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #f2b8b5; margin-bottom: 14px; }
.lp-h1 { font-size: clamp(30px, 4.6vw, 52px); line-height: 1.05; font-weight: 800; letter-spacing: -0.025em; margin: 0; }
.lp-lede { font-size: 18px; line-height: 1.55; margin: 18px 0 0; color: rgba(255, 255, 255, .9); max-width: 620px; }
.lp-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.lp-ctas-center { justify-content: center; }
.lp-ctas .btn { height: 50px; padding: 0 26px; font-size: 16px; font-weight: 700; }
.lp-btn-main { background: var(--header-accent); color: #fff; border-color: var(--header-accent); box-shadow: 0 6px 18px -6px rgba(216, 57, 51, .7); }
.lp-btn-main:hover { background: #b8302b; color: #fff; }
.lp-btn-ghost { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .55); }
.lp-btn-ghost:hover { background: rgba(255, 255, 255, .18); color: #fff; }
.lp-hero-note { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, .7); }

.lp-proof {
  display: grid; grid-template-columns: repeat(4, 1fr); margin: -36px 32px 0; position: relative;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.lp-proof > div { padding: 20px 22px; border-left: 1px solid var(--border); }
.lp-proof > div:first-child { border-left: 0; }
.lp-proof strong { display: block; font-size: 26px; font-weight: 800; color: var(--brand); letter-spacing: -0.02em; line-height: 1.15; }
.lp-proof span { font-size: 13px; color: var(--ink-3); }

.lp-section { padding: 56px 8px 8px; }

/* Ad landing page */
.lp-hero-landing { min-height: 520px; }
.lp-hero-landing .lp-hero-inner { max-width: 820px; }
.landing-find { margin-top: 28px; background: var(--surface); color: var(--ink); border-radius: var(--radius-lg); padding: 20px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); }
.landing-find-label { display: block; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.landing-find-input { height: 54px; font-size: 18px; width: 100%; }
.landing-results { display: flex; flex-direction: column; margin-top: 8px; }
.landing-results:empty { display: none; }
.landing-hit { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; padding: 11px 10px; border-bottom: 1px solid var(--border); color: inherit; border-radius: var(--radius-sm); }
.landing-hit:last-child { border-bottom: 0; }
.landing-hit:hover { background: var(--surface-2); text-decoration: none; }
.landing-hit-name { font-weight: 700; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.landing-hit-meta { grid-column: 1; font-size: 13px; color: var(--ink-3); }
.landing-hit-go { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-size: 13.5px; font-weight: 700; color: var(--header-accent); white-space: nowrap; }
.landing-msg { display: flex; align-items: center; gap: 8px; padding: 12px 10px; font-size: 14px; color: var(--ink-2); }
.landing-notlisted { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-3); }
.landing-steps { list-style: none; margin: 0; padding: 0; counter-reset: ls; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.landing-steps li { counter-increment: ls; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--brand); border-radius: var(--radius-lg); padding: 22px; box-shadow: var(--shadow-sm); }
.landing-steps li::before { content: counter(ls); width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }
.landing-steps b { display: block; font-size: 16px; color: var(--ink); margin-bottom: 6px; }
.landing-steps span { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.landing-faq { display: grid; gap: 10px; max-width: 860px; }
.landing-faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 16px 20px; }
.landing-faq summary { cursor: pointer; font-size: 16px; font-weight: 700; color: var(--ink); }
.landing-faq p { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
@media (max-width: 900px) { .landing-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .landing-steps { grid-template-columns: 1fr; } .landing-find { padding: 14px; } }
.lp-section-alt { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 44px 36px; margin-top: 56px; }
.lp-kicker { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.lp-kicker-light { color: #f2b8b5; }
.lp-h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin: 8px 0 24px; color: var(--ink); }
.lp-h2-light { color: #fff; }
.lp-num { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; margin-bottom: 14px; }
.lp-pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-pillar { background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--brand); border-radius: var(--radius-lg); padding: 26px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.lp-pillar h3, .lp-how h3, .lp-who h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--ink); }
.lp-pillar p, .lp-how p, .lp-who p { font-size: 15px; line-height: 1.6; color: var(--ink-2); margin: 0; }
.lp-pillar a { margin-top: auto; padding-top: 16px; font-weight: 700; }

.lp-band { margin-top: 56px; background: var(--header-bg); color: #fff; border-radius: var(--radius-lg); }
.lp-band-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 48px; align-items: start; }
.lp-band-text p { font-size: 16px; line-height: 1.65; color: rgba(255, 255, 255, .86); margin: 0; }
.lp-steps { list-style: none; margin: 0; padding: 0; counter-reset: lp; display: grid; gap: 14px; }
.lp-steps li { counter-increment: lp; position: relative; padding: 16px 18px 16px 62px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); }
.lp-steps li::before { content: counter(lp); position: absolute; left: 16px; top: 16px; width: 30px; height: 30px; border-radius: 50%; background: var(--header-accent); display: grid; place-items: center; font-weight: 800; }
.lp-steps strong { display: block; font-size: 16px; margin-bottom: 3px; }
.lp-steps span { font-size: 14px; line-height: 1.55; color: rgba(255, 255, 255, .82); }

.lp-who { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0 24px; border-top: 1px solid var(--border); }
.lp-who > div { padding: 22px 0; border-bottom: 1px solid var(--border); }
.lp-who h3 { font-size: 16px; }
.lp-who p { font-size: 14px; }

.lp-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.lp-center { text-align: center; margin-top: 32px; }
.lp-btn-lg { height: 50px; padding: 0 28px; font-size: 16px; font-weight: 700; }

.lp-final { margin-top: 56px; text-align: center; padding: 56px 24px; border-radius: var(--radius-lg); color: #fff;
  background-color: var(--header-bg);
  background-image: linear-gradient(rgba(10, 25, 47, .86), rgba(10, 25, 47, .86)), url("banners/engineering-3.jpg");
  background-position: center; background-size: cover; background-repeat: no-repeat; }
.lp-final h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; letter-spacing: -0.02em; margin: 0; }
.lp-final p { font-size: 17px; color: rgba(255, 255, 255, .86); margin: 12px auto 0; max-width: 560px; }

.lp-fine { margin: 28px 0 4px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 11.5px; line-height: 1.55; color: var(--ink-3); }
.lp-fine h2 { font-size: 11.5px; font-weight: 700; color: var(--ink-2); margin: 0 0 4px; }
.lp-fine p { margin: 0 0 4px; }

@media (max-width: 900px) {
  .lp-proof { grid-template-columns: 1fr 1fr; margin: -28px 12px 0; }
  .lp-proof > div:nth-child(3) { border-left: 0; }
  .lp-proof > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .lp-pillars, .lp-how, .lp-band-inner { grid-template-columns: 1fr; }
  .lp-who { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .lp-hero { min-height: 0; }
  .lp-hero-inner { padding: 36px 20px 52px; }
  .lp-lede { font-size: 16px; }
  .lp-ctas .btn { flex: 1 1 100%; }
  .lp-proof strong { font-size: 20px; }
  .lp-proof > div { padding: 14px 16px; }
  .lp-who { grid-template-columns: 1fr; }
  .lp-band-inner { padding: 32px 20px; }
  .lp-section-alt { padding: 32px 20px; }
}

/* Claim page: contact details on the update form */
.claim-contact { border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px 4px; margin: 0 0 16px; }
.claim-contact legend { padding: 0 6px; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.pref-own { font-size: 16px; line-height: 1.65; color: var(--ink); margin: 0 0 14px; white-space: pre-line; }
.claim-preferred { border-color: #9fd3ae; background: #f1faf3; }
.claim-preferred legend { display: flex; align-items: center; gap: 6px; }
.claim-preferred > .hint, .claim-preferred p.hint { margin: 0 0 12px; display: block; }
.claim-banner { margin: 4px 0 14px; display: grid; gap: 8px; }
.claim-banner-label { font-weight: 600; font-size: 13px; }
.claim-banner-now { width: 100%; max-width: 520px; aspect-ratio: 4 / 1; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* Admin: firm search filters */
.admin-filter { display: grid; grid-template-columns: minmax(220px, 2fr) repeat(3, minmax(130px, 1fr)) auto; gap: 12px; align-items: end; padding: 16px; }
.admin-filter label { display: grid; gap: 5px; font-size: 12px; font-weight: 600; color: var(--ink-3); margin: 0; }
.admin-filter .field { height: 40px; width: 100%; margin: 0; }
.admin-filter .af-actions { display: flex; gap: 8px; }
.admin-filter .af-actions .btn { height: 40px; }
@media (max-width: 900px) {
  .admin-filter { grid-template-columns: 1fr 1fr; }
  .admin-filter .af-q, .admin-filter .af-actions { grid-column: 1 / -1; }
}

/* Admin firm page: Preferred profile fields beside the banner */
.pref-admin { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 24px; }
.pref-admin-label { font-size: 12.5px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.pref-admin .admin-photo { max-width: 100%; aspect-ratio: 3 / 1; }
@media (max-width: 900px) { .pref-admin { grid-template-columns: 1fr; } }

/* Admin firm page: owner and billing cards side by side */
.two-even { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
@media (max-width: 900px) { .two-even { grid-template-columns: 1fr; } }
.owner { padding: 12px 0; border-bottom: 1px solid var(--border); display: grid; gap: 3px; font-size: 14px; }
.owner:first-of-type { padding-top: 0; }
.owner-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.owner-edit { margin-top: 8px; font-size: 13px; }
.owner-edit summary { cursor: pointer; color: var(--link); font-weight: 600; }
.owner-edit form { margin-top: 10px; }
.owner-form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.owner-form label { flex: 1 1 220px; margin: 0; }
.owner-form .btn { height: 40px; }
.card-body > .form-section:not(:first-child), .card-body .kv-table + .form-section { margin-top: 22px; }
.owner-edit + .form-section, .owner-edit + .owner-edit { margin-top: 22px; }
.tier-name { display: flex; align-items: center; gap: 8px; }
.links-tbl td { vertical-align: top; font-size: 13px; }
.links-actions { margin-top: 6px; display: flex; gap: 14px; flex-wrap: wrap; }
.links-actions form { display: inline; margin: 0; }

/* Admin: a submit button while its request runs */
.btn.is-busy { opacity: .75; cursor: progress; }
.search-go { width: 100%; margin-top: 18px; }
.find-row { display: flex; gap: 8px; }
.find-row .field { flex: 1; min-width: 0; }
.landing-find-go { height: 54px; padding: 0 22px; font-size: 17px; }
.result-more { align-self: center; margin: 4px auto 0; display: block; }
.btn.is-busy::before { content: ""; width: 14px; height: 14px; margin-right: 8px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent; display: inline-block; vertical-align: -2px; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Bot check: shown only when Cloudflare asks the visitor to click */
.human-check { margin: 12px 0; }

/* Admin: leads */
.nav-count { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: var(--header-accent); color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); }
.tabs a { padding: 10px 14px; font-weight: 600; font-size: 14px; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; text-decoration: none; }
.tabs a.active { color: var(--ink); border-bottom-color: var(--brand); }
.tabs .nav-count { background: var(--cond); }
.lead-snippet { max-width: 360px; font-size: 13px; color: var(--ink-2); }
.lead-body { white-space: pre-line; font-size: 15px; line-height: 1.65; margin: 0; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }

/* Add your company */
.uei-row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.uei-row label { flex: 1 1 260px; margin: 0; }
.uei-row .btn { height: 42px; margin-top: 23px; }
.form-grid-tight { gap: 10px; grid-template-columns: 1fr 1fr; }
.form-grid-tight label { margin: 0; }
.check-list .check { margin: 4px 0; }
.registration-card { border-color: #bae6fd; background: #f5fbff; }
.remind-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.remind-form .field { height: 32px; max-width: 240px; font-size: 13px; }
.open-link-note { display: flex; gap: 8px; align-items: baseline; font-size: 14px; margin: 0 0 4px; }

/* ===================================================================
   Welcome page after checkout: hero, member card, perks, badge.
   =================================================================== */
.welcome { max-width: 1040px; margin: 0 auto; }
.welcome-hero { text-align: center; color: #fff; border-radius: var(--radius-lg); padding: 48px 24px 64px;
  background-color: var(--header-bg);
  background-image: radial-gradient(ellipse at top, rgba(255,255,255,.12), transparent 60%), linear-gradient(160deg, #0d2747 0%, #1a4480 100%); }
.welcome-logo { width: 96px; height: 96px; border-radius: 50%; box-shadow: 0 8px 28px rgba(0,0,0,.35); background: #fff; }
.welcome-eyebrow { margin-top: 18px; font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #f2b8b5; }
.welcome-h1 { font-size: clamp(28px, 4.4vw, 46px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; margin: 10px 0 0; }
.welcome-lede { font-size: 18px; line-height: 1.55; color: rgba(255,255,255,.88); max-width: 920px; margin: 14px auto 0; text-wrap: balance; }

.member-card { position: relative; display: flex; align-items: center; gap: 20px; margin: -40px 24px 0; padding: 22px 26px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow);
  border-top: 5px solid var(--member-color, var(--brand)); }
.member-card.tier-preferred { --member-color: #1f7a3a; }
.member-card.tier-premium { --member-color: #0369a1; }
.member-card-logo { width: 72px; height: 72px; flex: none; }
.member-card-main { flex: 1; min-width: 0; }
.member-card-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.member-card-name { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; color: var(--ink); margin: 4px 0 8px; }
.member-card-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; }
.member-card-id { text-align: right; }
.member-card-id .chip-mono { margin-top: 6px; display: inline-block; }

.welcome-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin: 40px 8px 0; }
.welcome-h2 { font-size: 20px; font-weight: 800; margin: 0 0 14px; color: var(--ink); }
.welcome-perks { list-style: none; padding: 0; margin: 0 0 6px; }
.welcome-perks li { position: relative; padding: 0 0 14px 30px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.welcome-perks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--go-bg); color: var(--go); font-weight: 800; font-size: 12px; display: grid; place-items: center; }
.welcome-steps { list-style: none; counter-reset: ws; padding: 0; margin: 0 0 14px; display: grid; gap: 12px; }
.welcome-steps li { counter-increment: ws; position: relative; padding: 16px 16px 16px 56px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.welcome-steps li::before { content: counter(ws); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
.welcome-steps b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 2px; }
.welcome-steps .btn { margin-top: 12px; display: flex; width: fit-content; }
.badge-card { margin: 32px 8px 8px; }
.badge-preview { padding: 22px; background: var(--surface-2); border: 1px dashed var(--border-strong); border-radius: var(--radius); text-align: center; margin-bottom: 18px; }
.badge-preview img { max-width: 100%; height: auto; }
.code-label { display: block; margin: 16px 0 6px; font-size: 12.5px; font-weight: 700; color: var(--ink-2); }
.code-label .code-box { margin-top: 6px; font-weight: 400; }
.code-box { font-family: ui-monospace, "SFMono-Regular", Menlo, monospace; font-size: 12px; width: 100%; resize: vertical; background: var(--surface-2); }
@media (max-width: 760px) {
  .member-card { flex-wrap: wrap; margin: -32px 8px 0; }
  .member-card-id { text-align: left; }
  .welcome-grid { grid-template-columns: 1fr; gap: 24px; }
}

/* Admin firm page: two independent columns, so panels stack tightly */
.firm-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--gap); align-items: start; }
.firm-main, .firm-side { margin: 0; }
@media (max-width: 1000px) { .firm-layout { grid-template-columns: 1fr; } }


/* Admin: plan change buttons in the Subscription card */
.plan-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border); }
.plan-actions form { margin: 0; }
.plan-actions .hint { flex-basis: 100%; margin: 0; }

/* Upgrade to Preferred */
.upgrade { max-width: 1040px; margin: 0 auto; }
.upgrade-hero { padding: 40px 24px 44px; background-image: radial-gradient(ellipse at top, rgba(255,255,255,.12), transparent 60%), linear-gradient(160deg, #0f3d22 0%, #1f7a3a 100%); }
.upgrade-hero .pref-ribbon { margin-bottom: 14px; }
.upgrade-card { margin: 20px 0 0; }
.upgrade-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; }
.upgrade-summary { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 20px; }
.upgrade-firm { font-size: 20px; font-weight: 800; margin: 4px 0 12px; }
.upgrade-summary .kv-table { margin-bottom: 16px; }
.btn-wide { width: 100%; justify-content: center; height: 46px; font-size: 15px; }
.member-plan { border-color: #9fd3ae; background: #f1faf3; }
.member-plan .ct .badge { margin-right: 6px; vertical-align: 2px; }
.member-plan p { margin: 6px 0 0; max-width: 680px; }
.plan-upsell { display: flex; align-items: center; gap: 12px 14px; flex-wrap: wrap; margin-top: 14px; padding: 12px 14px;
  background: #fff; border: 1px solid #b9dfc3; border-radius: var(--radius); }
.plan-upsell[hidden] { display: none; }
.plan-upsell .pref-ribbon { box-shadow: none; flex: none; }
.plan-upsell-text { flex: 1 1 260px; font-size: 14px; color: var(--ink-2); }
.plan-upsell-text b { color: var(--ink); }
.plan-upsell .btn { flex: none; }
@media (max-width: 760px) { .upgrade-grid { grid-template-columns: 1fr; } }
.hint.hint-short { color: var(--cond); font-weight: 600; }

/* Admin: ownership claims awaiting review */
.claim-review { margin-top: 10px; padding: 12px 14px; border: 1px solid #f0d9a8; background: var(--cond-bg); border-radius: var(--radius); display: grid; gap: 10px; font-size: 13px; }
.claim-review form { margin: 0; }
.claims-card { border-color: #f0d9a8; }

/* Terms of Use and Privacy Policy */
.legal { max-width: 860px; margin: 0 auto; }
.legal .card-body { font-size: 15px; line-height: 1.7; color: var(--ink-2); }
.legal h2 { font-size: 18px; font-weight: 700; color: var(--ink); margin: 28px 0 8px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul { margin: 0 0 12px; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 6px; }
.legal .updated { font-size: 13px; color: var(--ink-3); }

/* Nav: signed in */
.site-nav a.nav-signed-in::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: var(--go, #1f9d55); vertical-align: 1px; }

/* Membership: plan, cancel, offers */
.membership .m-note { margin: 14px 0 0; padding: 10px 12px; border-radius: var(--radius-sm); font-size: 13.5px; }
.membership .m-discount { background: var(--go-bg); color: var(--go); }
.membership .m-pastdue, .membership .m-ending { background: var(--cond-bg); }
.membership [data-m-cancelling] form { margin-top: 12px; }
.membership .m-cancel-link { margin-left: auto; font-size: 13px; color: var(--ink-3); }
.membership .m-keep { margin: 8px 0 12px; padding-left: 20px; }
.membership .m-keep li { margin-bottom: 4px; }
.membership .m-offer { border-color: #9fd3ae; background: #f1faf3; }
.membership .m-offer-tag { display: inline-block; margin-bottom: 8px; padding: 3px 10px; border-radius: 999px; background: var(--go); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.membership .m-offer p { margin: 8px 0 0; }
.membership select.field { margin-top: 4px; }
.btn-danger { background: var(--nogo, #b42318); border-color: var(--nogo, #b42318); color: #fff; }
.btn-danger:hover { filter: brightness(.94); }
