/* === BIM SEAL FONTS START === */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,600;1,8..60,400&display=swap');
/* === BIM SEAL FONTS END === */
/* ============================================================
   LIGHT-PROFILE.CSS — Light-mode theme for company profile pages
   Depends on: global.css, profile.css (link AFTER both)
   Mirrors light-listing.css: re-maps the dark tokens to light,
   switches the profile hero to the crimson gradient with white
   text, lightens every content block / sidebar widget / modal,
   and keeps the footer dark so the white logo stays visible.
   ============================================================ */

/* ── CSS variable overrides (cascade through global.css + profile.css) ── */
:root {
  --dark-2: #f4f5f7;
  --dark-3: #ebedf0;
  --dark-4: #e5e7eb;
  --text: #1f2937;          /* was near-white (#e5e5e5); fixes <strong> + var(--text) text */
  --text-dim: #374151;
  --text-muted: #6b7280;
  --border: #e5e7eb;
}

/* Page background */
body { background: #f8f9fa !important; color: #374151; }

/* Nav stays dark — no override needed */

/* ── Profile Hero: light page, white identity card, navy cover banner ── */
.profile-hero { background: transparent !important; border-bottom: none !important; }
.profile-card { background: #fff !important; border-color: #e8eaed !important; box-shadow: 0 4px 18px rgba(33,24,57,.07) !important; }
.profile-cover { background: linear-gradient(120deg, #140b2e 0%, #211839 55%, #3b2a63 100%) !important; }
.profile-avatar { border-color: #fff !important; }
.profile-avatar--logo { background: #fff !important; }
.profile-hero h1 { color: #141414 !important; }
.profile-hero .profile-tagline { color: #4b5563 !important; }
.profile-hero .profile-hero-meta { border-top: none !important; }
.profile-hero .profile-meta-item { color: #6b7280 !important; }
.profile-hero .profile-meta-item strong { color: #141414 !important; }
.profile-hero .profile-meta-item svg { color: #7c3aed !important; }
.profile-hero .profile-meta-item a { color: #211839 !important; }

/* Breadcrumb + back-link sit on the light-gray page above the card → dark text */
.profile-hero .breadcrumb,
.profile-hero .breadcrumb a { color: #6b7280 !important; }
.profile-hero .breadcrumb span { color: #9ca3af !important; }
.profile-hero .breadcrumb .current { color: #374151 !important; }
.profile-hero .back-link { color: #6b7280 !important; }
.profile-hero .back-link:hover { color: #211839 !important; }

/* Hero CTA on the white card */
.profile-hero .btn-outline { color: #374151 !important; border-color: #d1d5db !important; }
.profile-hero .btn-outline:hover { background: #f1f5f9 !important; border-color: #211839 !important; color: #211839 !important; }

/* ── Leader-index banner variant: stays navy with white text ── */
.profile-hero.is-banner { background: linear-gradient(140deg, #140b2e 0%, #211839 55%, #3b2a63 100%) !important; padding: 48px 0 !important; }
.profile-hero.is-banner h1,
.profile-hero.is-banner .profile-tagline { color: #fff !important; }
.profile-hero.is-banner .breadcrumb,
.profile-hero.is-banner .breadcrumb a { color: rgba(255,255,255,.75) !important; }
.profile-hero.is-banner .breadcrumb span { color: rgba(255,255,255,.45) !important; }
.profile-hero.is-banner .breadcrumb .current { color: #fff !important; }

/* ── Profile Body ── */
.profile-body { background: #f8f9fa !important; }

/* Content blocks → white cards on the light-gray page */
.profile-block { background: #fff !important; border-color: #e5e7eb !important; box-shadow: 0 2px 8px rgba(0,0,0,.05) !important; }
.profile-block-title { color: #141414 !important; border-bottom-color: #e5e7eb !important; }
.profile-block p { color: #374151 !important; }

/* Service list */
.service-item { background: #f8f9fa !important; border-color: #e5e7eb !important; color: #374151 !important; }
.service-item:hover { border-color: #211839 !important; color: #141414 !important; }
.service-item-name { color: #141414 !important; }

/* Industries */
.industry-chip { background: #f8f9fa !important; border-color: #e5e7eb !important; color: #374151 !important; }
.industry-chip:hover { border-color: #211839 !important; color: #141414 !important; }

/* Why choose */
.why-content h4, .why-content h3 { color: #141414 !important; }
.why-content p { color: #6b7280 !important; }

/* Certifications */
.cert-item { background: #f8f9fa !important; border-color: #e5e7eb !important; }
.cert-name { color: #374151 !important; }

/* ── Sidebar widgets ── */
.side-widget { background: #fff !important; border-color: #e5e7eb !important; box-shadow: 0 2px 8px rgba(0,0,0,.05) !important; }
.side-widget-title { background: #f8f9fa !important; color: #6b7280 !important; border-bottom-color: #e5e7eb !important; }

/* Rating widget */
.rating-big { border-bottom-color: #e5e7eb !important; }
.rating-big-val { color: #141414 !important; }
.rating-big .review-count { color: #6b7280 !important; }
.rating-bar-row { color: #6b7280 !important; }
.rating-bar-track { background: #e5e7eb !important; }

/* Quick facts */
.fact-row { border-bottom-color: #e5e7eb !important; }
.fact-key { color: #6b7280 !important; }
.fact-val { color: #141414 !important; }

/* Contact widget */
.contact-info-row { color: #6b7280 !important; }
.contact-info-row a { color: #211839 !important; }

/* Sidebar "back to directory" outline button (on white) */
.profile-side .btn-outline { color: #374151 !important; border-color: #e5e7eb !important; }
.profile-side .btn-outline:hover { border-color: #211839 !important; color: #211839 !important; background: #f5f0fe !important; }

/* ── Contact Modal (white) ── */
.modal-box { background: #fff !important; border-color: #e5e7eb !important; }
.modal-box h3 { color: #141414 !important; }
.modal-box .modal-sub { color: #6b7280 !important; }
.modal-close { background: #f4f5f7 !important; border-color: #e5e7eb !important; color: #6b7280 !important; }
.modal-close:hover { background: #211839 !important; border-color: #211839 !important; color: #fff !important; }
.form-group label { color: #6b7280 !important; }
.form-group input,
.form-group textarea,
.form-group select { background: #f8f9fa !important; border-color: #e5e7eb !important; color: #141414 !important; }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { background: #fff !important; border-color: #211839 !important; }
.form-group input::placeholder,
.form-group textarea::placeholder { color: #9ca3af !important; }
.form-success h4 { color: #141414 !important; }
.form-success p { color: #6b7280 !important; }

/* ── Footer stays dark so white SVG logo remains visible ── */
.site-footer { background: #211839 !important; }
footer.site-footer p,
footer.site-footer a { color: rgba(255,255,255,.65) !important; }
footer.site-footer h4, footer.site-footer h3 { color: #fff !important; }
footer.site-footer .footer-bottom { border-top-color: rgba(255,255,255,.12) !important; }
.footer-logo { opacity: 1 !important; }

/* ── Readability: bare headings + outline buttons (hand-built profile variants) ── */
h2, h3, h4, h5, h6 { color: #141414; }
.profile-hero h1, .profile-hero h2, .profile-hero h3 { color: #141414 !important; }
.profile-hero.is-banner h1, .profile-hero.is-banner h2, .profile-hero.is-banner h3 { color: #fff !important; }
.modal-heading { color: #141414 !important; }
.btn-outline { color: #374151 !important; border-color: #e5e7eb !important; }
.profile-hero .btn-outline { color: #374151 !important; border-color: #d1d5db !important; }
.profile-hero.is-banner .btn-outline { color: #fff !important; border-color: rgba(255,255,255,.45) !important; }

/* ── Team Members widget (company profile sidebar) ─────────────── */
.team-members { display: flex; flex-direction: column; }
.team-member {
  display: flex; align-items: center; gap: .8rem;
  padding: .7rem .4rem; text-decoration: none; border-radius: 10px;
  transition: background .15s ease;
}
.team-member:hover { background: #f4f6f9; }
.team-member + .team-member { border-top: 1px solid #edf0f3; }
.team-member-avatar {
  width: 48px; height: 48px; border-radius: 50%; flex: 0 0 auto;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
  background: #0e7a4b; color: #fff; font-weight: 700; font-size: .95rem;
}
.team-member-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.team-member-info { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.team-member-name {
  display: flex; align-items: center; gap: .35rem;
  font-weight: 700; color: #1f2937; font-size: .95rem; line-height: 1.25;
}
.team-member-name .tm-verify { color: #16a34a; font-size: .8rem; }
.team-member-role {
  color: #6b7280; font-size: .82rem; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
/* leader bio attribution */
.leader-quote { margin: 1rem 0 0; padding: .9rem 1.1rem; border-left: 3px solid #c9162c;
  background: #faf7f8; border-radius: 0 8px 8px 0; }
.leader-quote p { margin: 0 0 .4rem; color: #374151; font-style: italic; }
.leader-quote cite { color: #6b7280; font-style: normal; font-weight: 600; font-size: .85rem; }

/* client reviews - light mode (dark-on-white, contrast-safe) */
.review-card { background: #f8f9fa !important; border-color: #e5e7eb !important; }
.review-stars { color: #7c3aed !important; }
.review-meta, .review-foot, .review-source { color: #6b7280 !important; }
.review-text { color: #374151 !important; }
.review-author { color: #141414 !important; }

/* ── Multi-location switcher (ratings / reviews / map dropdowns) ── */
.loc-switch-label { display: block; font-size: .82rem; font-weight: 600; color: #374151;
  margin: 0 0 .7rem; }
.loc-switch { display: block; width: 100%; margin: .3rem 0 .9rem;
  padding: .55rem .7rem; font: inherit; font-size: .9rem; color: #141414;
  background: #f8f9fa; border: 1px solid #e5e7eb; border-radius: 8px; cursor: pointer; }
.loc-switch:focus { outline: none; background: #fff; border-color: #211839;
  box-shadow: 0 0 0 3px rgba(124,58,237,.18); }
.loc-panel[hidden] { display: none !important; }
.loc-more { font-weight: 600; font-size: .8rem; color: #7c3aed; }

/* One fixed box per switcher: only the selected location's panel shows, so the
   layout never jumps when you change the dropdown. Reviews get a bordered, scrollable
   box; the map panel stays its natural 16:9 size. */
.loc-panels { position: relative; }
[data-loc-group="reviews"] .loc-panels {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 16px; min-height: 160px; max-height: 520px; overflow-y: auto; }
[data-loc-group="reviews"] .loc-panels .review-foot { margin-bottom: 0; }
.loc-empty { margin: 0; padding: 36px 12px; text-align: center;
  font-size: .9rem; color: #6b7280 !important; }

/* ── Embedded location map (responsive 16:9, no layout shift) ── */
/* ── Also known as (a company that trades under several brands) ── */
.aka { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
  margin: .8rem 0 0; font-size: .86rem; }
.aka-label { font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  font-size: .74rem; color: #6b7280 !important; }
.aka-name { display: inline-block; padding: .2rem .55rem; border-radius: 999px;
  background: #f8f9fa; border: 1px solid #e5e7eb; color: #374151 !important; }

/* ── Office selector (multi-office company profiles) ──
   One profile per company now lists every office it has, so a firm with 26 locations
   needs a way to pick one without 26 maps on the page. Explicit colours throughout:
   a bare <select> inherits the OS theme and turns light-on-light in dark mode, which is
   exactly what the contrast gate exists to catch. */
.office-select-label { display: block; font-size: .78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; color: #6b7280 !important;
  margin: 0 0 .35rem; }
.office-select { width: 100%; margin: 0 0 .8rem; padding: .6rem .75rem;
  font: inherit; font-size: .92rem; color: #141414 !important;
  background: #fff !important; border: 1px solid #e5e7eb; border-radius: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,.04); cursor: pointer; }
.office-select:focus { outline: 2px solid #7C3AED; outline-offset: 1px;
  border-color: #7C3AED; }
/* The <option> children need their own colours, not just the <select>. Options do not
   reliably inherit the select's colour across browsers and OS themes, which is the same
   failure the comment above describes for a bare <select>: the closed control renders
   correctly while the list you actually choose from does not. Defensive, not a fix for an
   observed failure. */
.office-select option { color: #141414 !important; background: #fff !important; }
.office-list { list-style: none; margin: .8rem 0 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: .4rem; }
.office-list li { margin: 0; }
.office-list a { display: inline-block; padding: .3rem .6rem; font-size: .84rem;
  color: #374151 !important; background: #f8f9fa; border: 1px solid #e5e7eb;
  border-radius: 999px; text-decoration: none; }
.office-list a:hover { border-color: #211839; color: #141414 !important; }
/* the office the visitor arrived from, so the page answers "which one is mine?" */
.office-list .office-here a { background: #211839; border-color: #211839;
  color: #fff !important; font-weight: 600; }

.map-place { font-size: .9rem; font-weight: 600; color: #374151 !important; margin: 0 0 .6rem; }
.map-embed { position: relative; width: 100%; padding-top: 56.25%;
  border-radius: 10px; overflow: hidden; border: 1px solid #e5e7eb; background: #eef1f4; }
.map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }


/* =======================================================================
   TIM MODERN PROFILE RE-SKIN (company / executive / partner profiles)
   2026-07-16. Shape-only modern polish. NO background/text-color changes.
   Keeps the .ai-answer AEO block (adds a cyan In-brief accent). Reversible.
   ======================================================================= */
.profile-card,.service-item,.cert-item,.why-item,.partner-card,.quick-facts,.profile-faq-item{
  border-radius:14px !important;
}
.profile-card{box-shadow:0 8px 28px rgba(33,24,57,.08) !important}
.service-item,.partner-card,.why-item{
  box-shadow:0 1px 2px rgba(33,24,57,.03),0 5px 16px rgba(33,24,57,.05) !important;
  transition:transform .16s ease,box-shadow .16s ease,border-color .16s ease !important;
}
.service-item:hover,.partner-card:hover,.why-item:hover{
  transform:translateY(-3px) !important;
  box-shadow:0 16px 40px rgba(33,24,57,.12) !important;
  border-color:rgba(124,58,237,.42) !important;
}
.partner-grid,.industry-grid,.service-list{gap:16px !important}
.ai-answer{border-left:4px solid #7c3aed !important;border-radius:14px !important;
  box-shadow:0 8px 28px rgba(33,24,57,.07) !important}

/* === BIM SEAL THEME START - generated by tools/apply_theme.py === */
/* ==========================================================================
   Best IT MSP - "Seal" design system (2026 rebrand, C3 lockup)
   ==========================================================================

   THE IDEA. The approved C3 mark is a certification seal: rotary type reading
   RANKED . REVIEWED . VETTED around a rim, a bold B struck into a violet disc.
   That is an inspection stamp, not a tech logo, and it is the honest picture of
   what this directory does. So the site is built from the vernacular of verified
   records: paper stock, hairline rules, struck rank marks, tabular figures,
   certificate borders. Not the SaaS card kit.

   WHY PAPER-DOMINANT. The mark presents itself dark-on-white. The old site was
   dark-purple-dominant and fought it. Paper lets the seal be the loudest thing
   on the page, which is the point.

   WHERE THE BOLDNESS IS SPENT. One place: the seal. It is the nav mark, the rank
   glyph, the hero watermark, and the single piece of non-user-triggered motion on
   the site (one stamp on load, then nothing). Everything else is kept quiet.

   HOW THIS REACHES 26,000 PAGES WITH NO RE-RENDER. Every served page already
   loads global.css then a page-type stylesheet last (light-listing.css for city
   pages, light-profile.css for company and executive profiles). tools/apply_theme.py
   welds this file onto the end of those, between markers, so it overrides at equal
   specificity. The markup is untouched; this restyles the classes that already exist.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   Colour is taken from the lockup itself rather than invented alongside it.
   -------------------------------------------------------------------------- */
:root {
  /* Ink: the wordmark aubergine. A true purple-black, not a tinted near-black. */
  --s-ink:        #1A1430;
  --s-ink-soft:   #3B3357;
  --s-ink-mute:   #6B6484;

  /* Violet: the disc. Already the brand accent, so it carries over unchanged. */
  --s-violet:     #7C3AED;
  --s-violet-dp:  #5B21B6;
  --s-violet-lift:#A78BFA;   /* the lockup's tagline colour */
  --s-violet-wash:#F3EEFE;

  /* Paper: document stock, barely warm. Deliberately not a cream. */
  --s-paper:      #FBFAF8;
  --s-paper-2:    #F4F1EC;
  --s-white:      #FFFFFF;

  --s-rule:       #DCD6E8;   /* hairline */
  --s-rule-soft:  #ECE8F2;
  --s-verified:   #0E9F6E;   /* semantic only: a verified fact */
  --s-star:       #F5A524;

  /* One UI radius. Full-round is reserved for the seal, where it means something. */
  --s-r:          6px;
  --s-r-lg:       10px;

  --s-shadow-lift: 0 1px 2px rgba(26,20,48,.05), 0 8px 24px -12px rgba(26,20,48,.18);

  --s-max:        1200px;
  --s-gutter:     24px;

  /* Type scale, 1.25 from a 17px base (Elements of Typographic Style). */
  --s-micro:      0.8125rem;
  --s-sm:         0.9375rem;
  --s-base:       1.0625rem;
  --s-lg:         1.25rem;
  --s-xl:         1.5rem;
  --s-2xl:        2rem;
  --s-3xl:        2.75rem;
  --s-4xl:        clamp(2.75rem, 1.6rem + 4.6vw, 4.75rem);

  --s-sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --s-serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
}

/* --------------------------------------------------------------------------
   2. Page ground
   -------------------------------------------------------------------------- */
body {
  background: var(--s-paper);
  color: var(--s-ink);
  font-family: var(--s-sans);
  font-size: var(--s-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: var(--s-max); padding-inline: var(--s-gutter); }

h1, h2, h3, h4, .listings-title, .company-name {
  font-family: var(--s-sans);
  color: var(--s-ink);
  letter-spacing: -0.022em;
  line-height: 1.1;
  font-weight: 800;
}

/* Narrative prose gets the serif. Data stays in the sans.
   The split is the argument: a measured claim reads as editorial, a measured
   number reads as data, and the page should not blur the two. */
.city-info p,
.ai-answer p,
.quick-answer p,
.market-section p,
.faq-section .faq-a,
.faq-answer {
  font-family: var(--s-serif);
  font-size: 1.0625rem;
  line-height: 1.68;
  color: var(--s-ink-soft);
  max-width: 68ch;
}

a { color: var(--s-violet-dp); text-underline-offset: 3px; }
a:hover { color: var(--s-ink); }

:where(a, button, input, select, summary):focus-visible {
  outline: 2px solid var(--s-violet);
  outline-offset: 3px;
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   3. The seal
   Used at four sizes. The ring is the brand's single decorative licence.
   -------------------------------------------------------------------------- */
.s-seal {
  display: inline-block;
  background: url('/brand/seal-dark.png') center / contain no-repeat;
  aspect-ratio: 1;
}

/* --------------------------------------------------------------------------
   4. Navigation - paper, with the lockup as a background so it stays crisp
   and the existing <img> markup needs no edit.
   -------------------------------------------------------------------------- */
.site-nav {
  background: rgba(251, 250, 248, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--s-rule);
  box-shadow: none;
}
.nav-inner { min-height: 76px; gap: 32px; }

.nav-logo {
  width: 208px; height: 60px;
  background: url('/brand/logo-dark.png') left center / contain no-repeat;
}
.nav-logo img, .nav-logo-text { display: none !important; }

.nav-links a {
  font-family: var(--s-sans);
  font-size: var(--s-sm);
  font-weight: 500;
  color: var(--s-ink-soft);
  letter-spacing: 0;
  position: relative;
  padding-block: 6px;
}
.nav-links a:hover { color: var(--s-ink); }
/* The underline answers the pointer, so it is motion with a cause. */
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 2px; background: var(--s-violet);
  transform: scaleX(0); transform-origin: left;
  transition: transform .22s cubic-bezier(.2,.7,.3,1);
}
.nav-links a:hover::after, .nav-links a:focus-visible::after { transform: scaleX(1); }

.nav-toggle span { background: var(--s-ink); }

/* --------------------------------------------------------------------------
   5. Buttons - square-ish, confident, no arrow glyphs appended to labels
   -------------------------------------------------------------------------- */
.btn {
  font-family: var(--s-sans);
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: var(--s-r);
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.btn-primary {
  background: var(--s-violet);
  color: #fff;
  border: 1px solid var(--s-violet);
  box-shadow: none;
}
.btn-primary:hover { background: var(--s-violet-dp); border-color: var(--s-violet-dp); transform: translateY(-1px); }

.btn-secondary, .btn-outline, .btn-ghost {
  background: transparent;
  color: var(--s-ink);
  border: 1px solid var(--s-ink);
}
.btn-secondary:hover, .btn-outline:hover, .btn-ghost:hover {
  background: var(--s-ink); color: #fff;
}

/* --------------------------------------------------------------------------
   6. Hero - paper, with the seal bleeding off the right edge as the page's
   one piece of imagery. It is the brand mark used as texture, which costs
   nothing per city and cannot misrepresent a place the way stock photography can.
   -------------------------------------------------------------------------- */
/* The old sheet builds the hero as `section.hero` (0,1,1) and forces every piece
   of text white with !important. Turning the page to paper therefore has to match
   that weight rather than out-order it, which is why this one block is specific
   and loud where the rest of the system is not. */
section.hero, .hero {
  position: relative;
  background: var(--s-paper) !important;
  background-image: none !important;
  color: var(--s-ink) !important;
  padding: clamp(44px, 5vw, 72px) 0 clamp(36px, 4vw, 56px);
  border-bottom: 1px solid var(--s-rule);
  overflow: hidden;
}
/* The seal, bled off the right edge. This is the page's imagery: it belongs to
   the brand, costs nothing per city, and cannot misrepresent a place. */
.hero::after {
  content: '';
  position: absolute;
  /* Anchored so the rim runs off two edges at once. A mark cropped on one side
     reads as a mistake; cropped into the corner it reads as a stamp struck
     across the sheet. Opacity is low enough to be paper texture rather than a
     grey disc competing with the headline. */
  right: -230px; bottom: -260px;
  width: 720px; height: 720px;
  background: url('/brand/seal-dark.png') center / contain no-repeat;
  opacity: .035;
  pointer-events: none;
}
/* No ruled grid. It read as hard vertical lines rather than texture, and the
   seal is already carrying the surface. One accessory removed. */
.hero::before { content: none !important; }
.hero > * { position: relative; z-index: 1; }

.hero h1, .hero .hero-title {
  font-size: var(--s-4xl) !important;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--s-ink) !important;
  text-wrap: balance;
  margin-bottom: 22px;
}
.hero .hero-desc, .hero p, .hero-subtitle {
  font-family: var(--s-serif) !important;
  font-size: var(--s-lg) !important;
  line-height: 1.6;
  color: var(--s-ink-soft) !important;
  max-width: 64ch !important;
}
.hero strong, .hero .hero-desc strong {
  color: var(--s-ink) !important;
  font-weight: 600;
}

.breadcrumb, .breadcrumb a, .breadcrumb .current {
  color: var(--s-ink-mute) !important;
  font-size: var(--s-micro);
}
.breadcrumb a:hover { color: var(--s-violet-dp) !important; }

/* The freshness line. Sentence case on a hairline, not a tracked-out caps pill:
   it is a date stamp, and a date stamp does not need to shout. */
.hero .section-label {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 0 10px 0 !important;
  margin-bottom: 20px;
  font-family: var(--s-sans) !important;
  font-size: var(--s-micro) !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--s-ink-mute) !important;
}
.hero .section-label::before {
  content: '' !important;
  width: 20px !important; height: 20px !important;
  background: url('/brand/seal-dark.png') center / contain no-repeat !important;
  border-radius: 0 !important;
  flex: 0 0 auto;
}
.hero-eyebrow-year {
  color: var(--s-ink-mute) !important;
  font-weight: 500;
}
.hero-eyebrow-year::before {
  content: '';
  display: inline-block;
  width: 1px; height: 11px;
  margin: 0 12px -1px;
  background: var(--s-rule);
}

/* Stats: tabular figures divided by rules. No boxes, no middle dots. */
.hero-stats {
  display: flex !important;
  flex-wrap: wrap;
  gap: 0 !important;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--s-rule) !important;
}
.hero-stats > div, .hero-stats > * {
  background: transparent !important;
  border: 0 !important;
  border-left: 1px solid var(--s-rule) !important;
  border-radius: 0 !important;
  padding: 2px 28px !important;
  font-variant-numeric: tabular-nums;
}
.hero-stats > *:first-child { padding-left: 0 !important; border-left: 0 !important; }
.hero-stat-val {
  display: block;
  font-family: var(--s-sans);
  font-size: 1.9rem !important;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--s-ink) !important;
  font-variant-numeric: tabular-nums;
}
.hero-stat-lbl {
  display: block;
  font-size: var(--s-micro) !important;
  font-weight: 500;
  color: var(--s-ink-mute) !important;
  margin-top: 4px;
}

/* Buttons sitting on the hero were forced to white-on-dark. */
.hero .btn-outline, .hero .btn-secondary {
  color: var(--s-ink) !important;
  border-color: var(--s-ink) !important;
}
.hero .btn-outline:hover, .hero .btn-secondary:hover {
  background: var(--s-ink) !important; color: #fff !important;
}

/* --------------------------------------------------------------------------
   7. Section openers - the certificate rule. Two weights of line carry the
   hierarchy, so the heading needs no eyebrow label above it.
   -------------------------------------------------------------------------- */
.section, .listings-section, .city-info, .market-section, .faq-section, .sibling-cities {
  background: transparent;
  padding-block: clamp(48px, 6vw, 88px);
}
.section:nth-of-type(even) { background: var(--s-paper-2); }

.listings-header, .section-head, .section-header {
  border-top: 3px solid var(--s-violet);
  padding-top: 18px;
  position: relative;
  margin-bottom: 32px;
}
.listings-header::before, .section-head::before, .section-header::before {
  content: '';
  position: absolute; left: 0; right: 0; top: 3px;
  border-top: 1px solid var(--s-rule);
}
.listings-title, .section-title {
  font-size: var(--s-2xl);
  font-weight: 800;
  letter-spacing: -0.028em;
}
.listings-subtitle, .section-sub {
  font-family: var(--s-serif);
  color: var(--s-ink-soft);
  font-size: var(--s-base);
}

/* --------------------------------------------------------------------------
   8. The roster - a ruled scorecard, not a stack of identical cards.
   This is the page's job: compare providers. A table-like rhythm with one
   hairline between rows compares far better than fourteen shadowed boxes.
   -------------------------------------------------------------------------- */
/* The old sheet paints these as white cards with a 16px radius and a drop
   shadow, all with !important, so the scorecard has to answer in kind. A roster
   is a comparison, and fifteen identical shadowed boxes compare badly: the eye
   has to re-enter every box instead of running down one column of figures. */
.company-card {
  position: relative;
  display: grid !important;
  grid-template-columns: 58px 54px 1fr minmax(150px, auto);
  align-items: start;
  gap: 20px !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--s-rule) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 26px 16px 26px 8px !important;
  transform: none !important;
  transition: background .18s ease !important;
}
.company-card:first-of-type { border-top: 1px solid var(--s-rule) !important; }
.company-card:hover {
  background: var(--s-white) !important;
  border-color: var(--s-rule) !important;
  box-shadow: none !important;
  transform: none !important;
}
/* The roster container loses its own card chrome too. */
.listings-grid, .company-list, .listings-list, .company-grid {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  gap: 0 !important;
}

/* The quick answer is the page's sworn statement, so it is set between two
   rules like an attestation rather than floated in a rounded white card with a
   coloured bar down its side. */
.ai-answer {
  background: transparent !important;
  border: 0 !important;
  border-top: 3px solid var(--s-ink) !important;
  border-bottom: 1px solid var(--s-rule) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 26px 0 24px !important;
  margin-bottom: 8px !important;
  position: relative;
}
.ai-answer::before {
  /* The old sheet prints a tracked-out "IN BRIEF" pill here. Replace it with the
     seal: the mark already means "checked", and it says so without a label. */
  content: '' !important;
  display: block !important;
  width: 26px !important; height: 26px !important;
  background: url('/brand/seal-dark.png') center / contain no-repeat !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 0 14px 0 !important;
  font-size: 0 !important;
  letter-spacing: normal !important;
  color: transparent !important;
}
.ai-answer::after { content: none !important; }
/* The homepage prints its own "In brief" pill inside the block. Where that
   exists, the seal would be a second badge saying the same thing, so the pill
   keeps the words and loses the chrome, and the seal stands down. */
.ai-answer:has(.tm-ai-tag)::before { content: none !important; }
.tm-ai-tag {
  display: inline-flex !important;
  align-items: center;
  gap: 9px;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-bottom: 14px !important;
  font-family: var(--s-sans) !important;
  font-size: var(--s-micro) !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--s-ink-mute) !important;
}
.tm-ai-tag::before {
  content: '';
  width: 22px; height: 22px;
  background: url('/brand/seal-dark.png') center / contain no-repeat;
  flex: 0 0 auto;
}
.ai-answer p {
  font-family: var(--s-serif) !important;
  font-size: 1.0625rem !important;
  line-height: 1.68 !important;
  color: var(--s-ink-soft) !important;
  max-width: 72ch !important;
}
.ai-answer p strong { color: var(--s-ink) !important; font-weight: 600; }
.ai-answer-meta {
  font-family: var(--s-sans) !important;
  font-size: var(--s-micro) !important;
  color: var(--s-ink-mute) !important;
  margin-top: 14px !important;
}
/* Answers the pointer: a struck edge, matching the rank mark. */
.company-card::before {
  content: '';
  position: absolute; left: 0; top: -1px; bottom: -1px;
  width: 3px; background: var(--s-violet);
  transform: scaleY(0); transform-origin: top;
  transition: transform .2s cubic-bezier(.2,.7,.3,1);
}
.company-card:hover { background: var(--s-white); }
.company-card:hover::before, .company-card:focus-within::before { transform: scaleY(1); }

/* Rank, struck as a seal. The top three are filled; the rest are outlined,
   so the ranking reads at a glance without a legend. */
.card-rank {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border: 2px solid var(--s-ink);
  border-radius: 999px;
  background: transparent;
}
.card-rank-num {
  font-family: var(--s-sans);
  font-weight: 800;
  font-size: 1.05rem;
  font-variant-numeric: tabular-nums;
  color: var(--s-ink);
  line-height: 1;
}
.card-rank-lbl { display: none; }
.company-card:nth-of-type(-n+3) .card-rank { background: var(--s-violet); border-color: var(--s-violet); }
.company-card:nth-of-type(-n+3) .card-rank-num { color: #fff; }

.company-logo {
  width: 54px; height: 54px;
  border-radius: var(--s-r);
  background: var(--s-paper-2);
  border: 1px solid var(--s-rule);
  display: grid; place-items: center;
  font-family: var(--s-sans); font-weight: 700; font-size: var(--s-sm);
  color: var(--s-ink-soft);
  overflow: hidden;
}

.company-name {
  font-size: var(--s-lg);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.company-location {
  font-size: var(--s-sm);
  color: var(--s-ink-mute);
  display: flex; align-items: flex-start; gap: 6px;
  margin-top: 4px;
  max-width: 62ch;
}

.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag {
  font-size: var(--s-micro);
  font-weight: 500;
  color: var(--s-ink-soft);
  background: transparent;
  border: 1px solid var(--s-rule);
  border-radius: 3px;
  padding: 3px 8px;
}

/* The rating is the comparison, so it gets the largest figure in the row. */
.card-aside { text-align: right; display: grid; gap: 10px; justify-items: end; }
.card-rating {
  font-family: var(--s-sans);
  font-weight: 800;
  font-size: 1.75rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
  color: var(--s-ink);
  line-height: 1;
}
.card-rating .star, .card-rating svg { color: var(--s-star); fill: var(--s-star); }

/* --------------------------------------------------------------------------
   9. Rating spread - data as the imagery.
   Built by bim-seal.js from the ratings already in the roster markup, so every
   city gets a real chart of its own market with no new data and no re-render.
   -------------------------------------------------------------------------- */
.s-spread {
  display: grid; gap: 10px;
  margin-top: 36px; padding-top: 22px;
  border-top: 1px solid var(--s-rule);
  max-width: 460px;
}
.s-spread__head {
  font-size: var(--s-micro); font-weight: 600; color: var(--s-ink-mute);
}
.s-spread__row { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 10px; }
.s-spread__key, .s-spread__val {
  font-size: var(--s-micro); font-variant-numeric: tabular-nums; color: var(--s-ink-soft);
}
.s-spread__val { text-align: right; }
.s-spread__bar { height: 8px; background: var(--s-rule-soft); border-radius: 2px; overflow: hidden; }
.s-spread__fill {
  display: block; height: 100%; background: var(--s-violet);
  border-radius: 2px;
  transform-origin: left;
  transform: scaleX(var(--fill, 0));
  transition: transform .6s cubic-bezier(.2,.7,.3,1);
}

/* --------------------------------------------------------------------------
   9b. Company and executive profiles
   A profile is the record for one firm, so it gets the same certificate
   language as the city page: a struck rule, paper, and the seal.
   -------------------------------------------------------------------------- */
.profile-hero, .profile-hero.is-banner {
  background: var(--s-paper) !important;
  background-image: none !important;
  border-bottom: 1px solid var(--s-rule);
}
/* The cover was a dark gradient band. On paper it becomes the sheet's head:
   a violet rule over the seal, which is the same opener the city sections use. */
.profile-cover {
  background: var(--s-paper-2) !important;
  background-image: none !important;
  border-top: 3px solid var(--s-violet) !important;
  border-bottom: 1px solid var(--s-rule) !important;
  position: relative;
  overflow: hidden;
}
.profile-cover::after {
  content: '';
  position: absolute;
  right: -90px; top: 50%;
  width: 300px; height: 300px;
  transform: translateY(-50%);
  background: url('/brand/seal-dark.png') center / contain no-repeat;
  opacity: .05;
  pointer-events: none;
}

.profile-card {
  background: var(--s-white) !important;
  border: 1px solid var(--s-rule) !important;
  border-radius: var(--s-r-lg) !important;
  box-shadow: var(--s-shadow-lift) !important;
}
.profile-identity-text h1, .profile-identity h1 {
  font-size: clamp(2rem, 1.2rem + 2.4vw, 3rem) !important;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--s-ink) !important;
}
.profile-tagline {
  font-family: var(--s-serif) !important;
  font-size: var(--s-base) !important;
  color: var(--s-ink-soft) !important;
}

/* Content blocks lose the card chrome and gain the rule, so the page reads as
   one continuous document rather than a stack of unrelated panels. */
.profile-block {
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--s-rule) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 28px 0 8px !important;
  margin-bottom: 16px !important;
}
.profile-block-title {
  font-family: var(--s-sans) !important;
  font-size: var(--s-lg) !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  text-transform: none !important;
  color: var(--s-ink) !important;
}
.profile-block p, .profile-block li {
  font-family: var(--s-serif) !important;
  color: var(--s-ink-soft) !important;
  line-height: 1.68;
}

/* Sidebar panels. The markup already writes these headings in sentence case
   ("Client Ratings"); the old sheet was forcing them to tracked-out capitals.
   A label does not need to shout to be a label. */
.side-widget-title, .profile-side .panel-title, .profile-side h3,
.profile-aside h3, .sidebar-card h3, .profile-sidebar h3, .quick-facts-title {
  font-family: var(--s-sans) !important;
  font-size: var(--s-sm) !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--s-ink) !important;
  border-bottom: 1px solid var(--s-rule) !important;
  padding-bottom: 10px !important;
}
.side-widget, .profile-side > *, .profile-aside > *, .profile-sidebar > * {
  border-radius: var(--s-r-lg) !important;
  border-color: var(--s-rule) !important;
  box-shadow: none !important;
}
/* Rating bars in the sidebar carry the same violet as the city spread, so the
   two charts on the site read as one family. */
.rating-big-val {
  font-family: var(--s-sans) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  font-variant-numeric: tabular-nums;
  color: var(--s-ink) !important;
}

/* --------------------------------------------------------------------------
   9c. Homepage (tm-modern)
   The homepage carries its own component set. Same reset: paper, the seal, and
   the ranking preview treated as a scorecard rather than a floating white card.
   -------------------------------------------------------------------------- */
.tm-page { background: var(--s-paper) !important; }

.tm-hero {
  position: relative;
  background: var(--s-paper) !important;
  background-image: none !important;
  color: var(--s-ink) !important;
  border-bottom: 1px solid var(--s-rule) !important;
  overflow: hidden;
}
/* Sized against the hero's own height, not the city hero's. At 760px it filled
   this shorter band and its rim type read clearly behind the headline, which
   turned a watermark into a competing graphic. */
/* `inset` must be reset explicitly, not just right/bottom. The old sheet sets
   `.tm-hero::after{inset:0}` for a radial wash; overriding only two sides left
   its top:0/left:0 in force, which pinned the seal to the corner and stretched
   it across the headline. */
.tm-hero::after {
  content: '';
  position: absolute;
  inset: auto -170px -200px auto !important;
  width: 460px !important; height: 460px !important;
  background: url('/brand/seal-dark.png') center / contain no-repeat !important;
  opacity: .03 !important;
  pointer-events: none;
}
.tm-hero > * { position: relative; z-index: 1; }
.tm-hero h1 { max-width: 15ch; }

/* This row was white-on-dark and went almost invisible on paper. */
.tm-trustrow { color: var(--s-ink-mute) !important; }
.tm-trustrow span { color: var(--s-ink-soft) !important; }
.tm-trustrow b { color: var(--s-ink) !important; font-weight: 700; }
.tm-dot { background: var(--s-violet) !important; }

.tm-hero h1 {
  font-family: var(--s-sans) !important;
  font-size: var(--s-4xl) !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.02 !important;
  color: var(--s-ink) !important;
  text-wrap: balance;
}
.tm-hero p, .tm-hero .tm-sub {
  font-family: var(--s-serif) !important;
  font-size: var(--s-lg) !important;
  color: var(--s-ink-soft) !important;
  max-width: 54ch !important;
}

/* "Ranked. Vetted. Verified." is the brand's own line and it is already on the
   seal. Set as a quiet stamped line beside the mark, not a tracked-out caps
   label floating above the headline. */
.tm-eyebrow {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  font-family: var(--s-sans) !important;
  font-size: var(--s-micro) !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--s-ink-mute) !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin-bottom: 18px !important;
}
.tm-eyebrow::before {
  content: '';
  width: 20px; height: 20px;
  background: url('/brand/seal-dark.png') center / contain no-repeat;
  flex: 0 0 auto;
}

.tm-page h2 {
  font-family: var(--s-sans) !important;
  font-weight: 800 !important;
  letter-spacing: -0.03em !important;
  color: var(--s-ink) !important;
}
.tm-page h3 { font-family: var(--s-sans) !important; letter-spacing: -0.02em !important; }

/* The city ranking preview is the homepage's best device: it shows the product
   instead of describing it. Restyled to the same scorecard rules as a real
   roster so the preview is not lying about what the page looks like. */
.tm-hero .tm-card, .tm-preview, .hpv-card {
  background: var(--s-white) !important;
  border: 1px solid var(--s-rule) !important;
  border-radius: var(--s-r-lg) !important;
  box-shadow: var(--s-shadow-lift) !important;
}
.hpv-row, .tm-preview-row { border-color: var(--s-rule) !important; }
.hpv-logo {
  border-radius: var(--s-r) !important;
  background: var(--s-paper-2) !important;
  color: var(--s-ink-soft) !important;
}

/* --------------------------------------------------------------------------
   9d. Reports and other `home-hero` pages
   -------------------------------------------------------------------------- */
.home-hero {
  position: relative;
  background: var(--s-paper) !important;
  background-image: none !important;
  color: var(--s-ink) !important;
  border-bottom: 1px solid var(--s-rule) !important;
  overflow: hidden;
}
.home-hero::before, .home-hero::after { content: none !important; }
.home-hero > * { position: relative; z-index: 1; }

.home-hero h1 {
  font-family: var(--s-sans) !important;
  font-size: var(--s-4xl) !important;
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
  line-height: 1.04 !important;
  color: var(--s-ink) !important;
  max-width: 18ch;
}
/* The headline sets one phrase in violet. Colouring a fragment of a sentence is
   decoration pretending to be emphasis: it does not tell the reader anything the
   words do not already say, and it is the commonest tell of a templated page.
   The whole line carries one weight and one colour. */
.home-hero h1 .accent, .home-hero h1 span { color: inherit !important; }

.home-hero .hero-sub, .home-hero p {
  font-family: var(--s-serif) !important;
  font-size: var(--s-lg) !important;
  color: var(--s-ink-soft) !important;
  max-width: 58ch !important;
}
.home-hero .hero-eyebrow {
  display: inline-flex !important;
  align-items: center; gap: 10px;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin-bottom: 18px !important;
  font-family: var(--s-sans) !important;
  font-size: var(--s-micro) !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: var(--s-ink-mute) !important;
}
.home-hero .hero-eyebrow::before {
  content: '';
  width: 20px; height: 20px;
  background: url('/brand/seal-dark.png') center / contain no-repeat;
  flex: 0 0 auto;
}
.home-hero .hero-stats, .home-hero .hero-stat-val, .home-hero .hero-stat-lbl {
  color: var(--s-ink) !important;
}
.home-hero .hero-stat-lbl { color: var(--s-ink-mute) !important; }

/* Secondary buttons here were drawn for a dark hero, so on paper they rendered
   white-on-light-grey. That is a contrast failure, not just a style mismatch. */
.home-hero .btn-secondary, .home-hero .btn-outline, .home-hero .btn-ghost,
.hero .btn-secondary, .hero .btn-outline, .hero .btn-ghost {
  background: transparent !important;
  color: var(--s-ink) !important;
  border: 1px solid var(--s-ink) !important;
}
.home-hero .btn-secondary:hover, .home-hero .btn-outline:hover,
.home-hero .btn-ghost:hover, .hero .btn-secondary:hover,
.hero .btn-outline:hover, .hero .btn-ghost:hover {
  background: var(--s-ink) !important;
  color: #fff !important;
}

/* --------------------------------------------------------------------------
   10. Footer - the one deep surface on the site, so the inverted lockup gets
   a place to live.
   -------------------------------------------------------------------------- */
.site-footer, footer.site-footer {
  background: var(--s-ink);
  color: #CFC8E4;
  border-top: 0;
}
.site-footer a { color: #CFC8E4; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-logo, .site-footer .nav-logo {
  width: 208px; height: 60px;
  background: url('/brand/logo-white.png') left center / contain no-repeat;
}
.site-footer .footer-logo img, .site-footer .nav-logo img { display: none !important; }

/* --------------------------------------------------------------------------
   11. The one orchestrated moment: the stamp.
   The nav seal rotates in and settles, once, on load. Nothing else on the site
   animates without a user action.
   -------------------------------------------------------------------------- */
@keyframes s-stamp {
  0%   { opacity: 0; transform: rotate(-26deg) scale(.88); }
  60%  { opacity: 1; transform: rotate(3deg) scale(1.03); }
  100% { opacity: 1; transform: rotate(0deg) scale(1); }
}
.s-stamp-in { animation: s-stamp .62s cubic-bezier(.2,.8,.3,1) both; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .s-spread__fill { transition: none; }
}

/* --------------------------------------------------------------------------
   12. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .company-card { grid-template-columns: 44px 1fr; gap: 14px; padding: 22px 0; }
  .company-logo { display: none; }
  .card-aside { grid-column: 1 / -1; justify-items: start; text-align: left; }
  .card-rating { font-size: 1.4rem; }
  .hero::after { right: -220px; opacity: .04; }
}
@media (max-width: 640px) {
  :root {
    --s-gutter: 16px;
    /* The desktop floor of 2.75rem overflowed a 390px screen on the longest
       city names. Phones get their own ceiling rather than a shared clamp. */
    --s-4xl: clamp(1.95rem, 1.1rem + 4.4vw, 2.5rem);
  }
  .nav-logo { width: 160px; height: 46px; }
  .hero h1, .hero .hero-title, .tm-hero h1 {
    max-width: none !important;
    letter-spacing: -0.03em;
    hyphens: auto;
  }
  .hero-stats { gap: 4px 0 !important; }
  .hero-stats > div, .hero-stats > * { padding: 2px 14px !important; }
  .hero-stats > *:first-child { padding-left: 0 !important; }
  /* Fixed 460px was wider than the viewport's content box. */
  .s-spread { max-width: 100%; }
  .company-card { padding-inline: 0 !important; }
  .card-rating { font-size: 1.35rem; }
}

/* The filter bar lays its controls and the result count in one non-wrapping
   row, so the count ran off the right edge on narrow screens. Found by
   instrumenting the page to report any element extending past the viewport,
   which is also how I learned the screenshots were cropping a wider layout
   rather than showing a broken one. */
.filter-inner, .filters, .filters-bar, .listings-filters, .filter-row {
  flex-wrap: wrap !important;
  gap: 10px 12px !important;
}
.filter-count {
  margin-left: auto;
  white-space: nowrap;
  font-size: var(--s-sm);
  color: var(--s-ink-mute);
}
.filter-count strong { color: var(--s-ink); font-weight: 700; }
@media (max-width: 760px) {
  .filter-count { margin-left: 0; flex: 1 0 100%; }
  .filter-select { flex: 1 1 auto; min-width: 0 !important; }
}

/* A site-wide floor: no page should ever scroll sideways. The theme restyles
   26,000 pages it cannot individually inspect, so this is the safety net for a
   wide element in markup that was never designed against these tokens. */
html { overflow-x: hidden; }
img, svg, video, table { max-width: 100%; }

/* --------------------------------------------------------------------------
   13. Surfaces that stay dark inside the paper system, and what sits on them.
   Found by tools/ui_render_audit.py on 2026-10-21 (headless render, every page
   type, 1440 and 390 wide). The static linter, ui_qa.py, cannot see any of this:
   it hunts light text on the light page and treats every dark surface as a place
   where white text is correct, so it reported PASS throughout.

   Sections 9c and 9d turn the heroes to paper and force `.tm-page h2`, every
   eyebrow and every `.btn-ghost` to ink with !important. The homepage trust
   band, the final CTA on the four tm pages, the `.cta-banner` on every city,
   service, blog and index page, and the split card on list-your-msp are still
   navy, so there the same rules produced an ink heading on navy (1.06:1), an ink
   ghost button on navy (1.06:1) and an ink-mute eyebrow beside a dark seal. Each
   rule below is scoped to a dark surface and only restores light text there.
   -------------------------------------------------------------------------- */

/* 13a. Headings, eyebrows and bold figures on the navy surfaces. */
.tm-band h2, .tm-final h2, .tm-band h3, .tm-final h3,
.cta-banner h2, .cta-banner h3, .split-card h3 { color: #fff !important; }
.tm-band .tm-eyebrow, .tm-final .tm-eyebrow { color: var(--s-violet-lift) !important; }
.tm-band .tm-eyebrow::before, .tm-final .tm-eyebrow::before {
  background-image: url('/brand/seal-white.png');
}
/* global.css paints <strong> in --text, which the light sheets remap to ink, so a
   bold figure inside a navy tile (the MSP count on the country index, 531 of them)
   went ink on navy. On a dark surface bold inherits its parent's light colour. */
.tm-band strong, .tm-final strong, .split-card strong, .dir-card-count strong { color: inherit !important; }

/* 13b. Primary buttons are white on violet, everywhere. tm-modern's `.tm-btn-primary`
   set near-black on violet (3.2:1), and `.tm-page a { color: inherit }` outranks it,
   so an <a> primary took whatever colour its card had: body grey on violet, 1.3:1,
   for "Read the latest report". The roster's "Visit Profile" (`.card-actions
   .btn-primary`, light-listing.css) carried the same near-black with !important. */
.tm-btn-primary, .card-actions .btn-primary,
.home-hero .btn.btn-primary, .cta-banner .btn.btn-primary, .split-card .btn.btn-primary,
.claim-spot .btn-primary:hover, .homecar-net .btn-primary:hover {
  background: var(--s-violet) !important;
  color: #fff !important;
  border-color: var(--s-violet) !important;
}
.tm-btn-primary:hover, .card-actions .btn-primary:hover,
.home-hero .btn.btn-primary:hover, .cta-banner .btn.btn-primary:hover, .split-card .btn.btn-primary:hover {
  background: var(--s-violet-dp) !important;
  border-color: var(--s-violet-dp) !important;
  color: #fff !important;
}

/* 13c. Ghost and outline buttons. On paper they take the ink outline section 5 already
   gives `.btn-outline`; on a navy surface they go white. The tm pages draw their hero
   ghost buttons with a style="" attribute (white text, from the old dark hero), which
   only !important can beat, and the home-hero pages do the same from an inline <style>
   at the specificity of section 9d, which it then won on order. `.btn.btn-ghost`
   (0,3,0) outranks both. */
.tm-page .tm-btn-ghost {
  background: transparent !important;
  color: var(--s-ink) !important;
  border: 1.5px solid var(--s-ink) !important;
}
.tm-page .tm-btn-ghost:hover { background: var(--s-ink) !important; color: #fff !important; }
.tm-band .tm-btn-ghost, .tm-final .tm-btn-ghost,
.cta-banner .btn.btn-ghost, .cta-banner .btn.btn-outline, .cta-banner .btn.btn-secondary,
.split-card .btn.btn-ghost, .split-card .btn.btn-outline {
  background: transparent !important;
  color: #fff !important;
  border: 1.5px solid rgba(255,255,255,.75) !important;
}
.tm-band .tm-btn-ghost:hover, .tm-final .tm-btn-ghost:hover,
.cta-banner .btn.btn-ghost:hover, .cta-banner .btn.btn-outline:hover, .cta-banner .btn.btn-secondary:hover,
.split-card .btn.btn-ghost:hover, .split-card .btn.btn-outline:hover {
  background: #fff !important;
  color: var(--s-ink) !important;
  border-color: #fff !important;
}
.home-hero .btn.btn-outline, .home-hero .btn.btn-ghost, .home-hero .btn.btn-secondary {
  background: transparent !important;
  color: var(--s-ink) !important;
  border: 1px solid var(--s-ink) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.home-hero .btn.btn-outline:hover, .home-hero .btn.btn-ghost:hover, .home-hero .btn.btn-secondary:hover {
  background: var(--s-ink) !important;
  color: #fff !important;
}

/* 13d. The stat row on the home-hero pages (reports, list-your-msp, advertise, the ROI
   calculator). `.hh-stat-val` and `.hh-stat-lbl` were white on white hairlines, drawn
   for the dark hero; section 9d only knew the city-page names (`.hero-stat-val`), so
   on paper the four figures vanished and the row read as an empty band. */
.home-hero .hh-stats { border-top-color: var(--s-rule) !important; }
.home-hero .hh-stat + .hh-stat { border-left-color: var(--s-rule) !important; }
.home-hero .hh-stat-val { color: var(--s-ink) !important; }
.home-hero .hh-stat-val .star { color: var(--s-star) !important; }
.home-hero .hh-stat-lbl { color: var(--s-ink-mute) !important; }

/* 13e. Light-surface colours never remapped from the dark base theme. The badge
   palette in global.css (#4ade80, #fcd34d, #93c5fd, #e87fa8) was mixed for text on
   deep violet; on the paper profile hero the same badges score 1.2:1 to 1.8:1. Mute
   grey #9ca3af (2.5:1 on white) carried the source line under every roster blurb, the
   pricing sub-labels and the sibling-metro tags. `--green` #22c55e (2.2:1) labelled the
   support tiers. Every replacement clears 4.5:1 on its own surface. */
.badge-green   { color: #0b6b43 !important; background: #e4f8ec !important; border-color: rgba(14,159,110,.35) !important; }
.badge-accent  { color: var(--s-violet-dp) !important; background: var(--s-violet-wash) !important; border-color: rgba(124,58,237,.35) !important; }
.badge-blue    { color: #1d4ed8 !important; background: #e4edfe !important; border-color: rgba(29,78,216,.3) !important; }
.badge-primary { color: #9d174d !important; background: #fde8f0 !important; border-color: rgba(157,23,77,.3) !important; }
.badge-neutral { color: var(--s-ink-soft) !important; background: var(--s-paper-2) !important; border-color: var(--s-rule) !important; }
:root { --green: #0b7a4b; }
.blurb-source, .pricing-tier-sub, .sibling-city-meta, .sibling-city--soon .sibling-city-meta,
.card-rank-lbl, .dir-card--soon .dir-card-status { color: var(--s-ink-mute) !important; }
/* render_city_v2.py wrote the pricing-table footnote with the same grey as an inline
   style on 650+ city pages. The generator now writes ink-mute; this catches every page
   rendered before it did, without a site-wide re-render. */
p[style*="color:#9ca3af"], span[style*="color:#9ca3af"], div[style*="color:#9ca3af"] {
  color: var(--s-ink-mute) !important;
}

/* 13g. The quick answer runs the full width of its band. Sections 2 and 9 cap
   `.ai-answer p` at 72ch while the rules above and below it span the whole container,
   so on a 1180px page the right 45% of the block sat empty. A two-column version was
   tried on 2026-10-21 and the owner rejected it (the column rule read as two separate
   paragraphs); the decision is one paragraph, edge to edge, on every page type. */
.ai-answer > p:not(.ai-answer-meta) { max-width: none !important; }

/* 13h. The roster filters. Section 8 paints every `.company-card` with
   `display: grid !important`, and filters.js hides a non-matching row by adding the
   class `hidden`, whose rule in listing.css has no !important. So from the day the
   theme landed the count line updated and no row ever left the page; the "See more"
   cap kept working only because its own `.is-capped` rule carries !important. Owner
   reported it 2026-10-21. The rendered audit now operates the service filter on city
   pages and fails when the number it reports disagrees with the rows visible. */
.company-card.hidden { display: none !important; }

/* 13f. Phone-width overflow. `html { overflow-x: hidden }` above clips rather than
   scrolls, so an element wider than the viewport loses its right edge with no sign
   that anything is missing. Two were found at 390px:
   - the pricing-tier grid on city pages, forced to 2-up at 768px while the price
     figure is wider than half a phone, and a grid item's default min-width:auto lets
     it push the track past the screen (397px);
   - the homepage search bar, where the input's intrinsic width plus the button can
     exceed the column by the same mechanism. */
.pricing-tier { min-width: 0; }
.pricing-tier-val { overflow-wrap: anywhere; }
.tm-hero-in > *, .tm-searchbar .tm-field, .tm-searchbar input { min-width: 0; }
@media (max-width: 480px) {
  .pricing-tiers-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
  .pricing-tier { padding: 14px 8px !important; }
  .pricing-tier-val { font-size: 0.98rem; }
  .tm-searchbar { flex-wrap: wrap; }
  .tm-searchbar .tm-btn { flex: 1 1 100%; justify-content: center; }
}

/* 13i. The 2026-10-22 phone pass: tools/ui_render_audit.py at 1440 and 390 over every
   page type, plus full-page 390px screenshots read tile by tile. No page overflowed.
   What it found is below, each rule scoped to the surface it was found on.

   - BLOG CTA. The button at the foot of every post ("Browse Vetted Providers") was
     violet on violet, 1.0:1, an empty violet rectangle on all 217 posts and the
     survey reports. The post's inline sheet paints `.blog-article a` violet at a
     specificity that beats `.btn-primary`'s white, and 13b only listed the hero,
     banner, split-card and roster buttons.
   - INDUSTRY HERO. render_industry.py writes `.rpt-hero`, `.rpt-hero-inner` and
     `.rpt-eyebrow`, which only the survey reports ever styled, inline, so on all 352
     industry pages the hero had no padding at all: the breadcrumb sat on the nav's
     bottom edge and the eyebrow was a line of plain text. The rules here give that
     hero its paper form. A report's own inline `.rpt-hero` sheet is loaded after
     this one at equal specificity, so the reports keep their navy hero untouched.
   - REPORT HERO TEXT. On that navy hero the eyebrow pill is brand violet on navy
     (2.7:1) and the breadcrumb takes section 2's ink-mute (3.0:1). Only the reports
     carry `.rpt-meta` inside the hero, so `:has(.rpt-meta)` is what tells a navy
     report hero from a paper industry hero; the lift goes to the lockup's lilac and
     to white, both past 5:1 on navy. The legal pages' `.legal-hero .eyebrow` is the
     same violet on the same navy and gets the same lift.
   - INDUSTRY TABLE. state-report.css gives `.sr-table` a 620px floor, so on a phone
     the three-column ranking scrolled inside its card with no scrollbar drawn:
     names were cut mid-word ("Cutting Edge Network Technolog") and the Rating column
     was off the screen entirely. Three columns fit a phone; the floor goes.
   - ROSTER ROWS. At 390px the card kept its two-column grid, so the tags, blurb and
     meta of every provider were indented 58px under the rank seal, a fifth of the
     screen left blank down the whole roster. On a phone the row is a block: the seal
     floats beside the name, and everything after the name runs full width. The
     filter's `.company-card.hidden` and the cap's `.is-capped` both outrank this on
     specificity, so hiding still works. */
.blog-article .btn.btn-primary, .blog-article .box .btn-primary {
  background: var(--s-violet) !important;
  color: #fff !important;
  border-color: var(--s-violet) !important;
  text-decoration: none !important;
}
.blog-article .btn.btn-primary:hover, .blog-article .box .btn-primary:hover {
  background: var(--s-violet-dp) !important;
  border-color: var(--s-violet-dp) !important;
  color: #fff !important;
}

.rpt-hero { background: var(--s-paper); border-bottom: 1px solid var(--s-rule); }
.rpt-hero-inner { max-width: 820px; padding: 40px 0 34px; }
.rpt-hero .breadcrumb { margin-bottom: 16px; }
.rpt-hero .rpt-eyebrow {
  display: inline-block;
  font-family: var(--s-sans);
  font-size: var(--s-micro);
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--s-violet-dp);
  background: var(--s-violet-wash);
  border: 1px solid rgba(124,58,237,.25);
  border-radius: 999px;
  padding: 5px 12px;
  margin: 0 0 14px;
}
.rpt-hero h1 { margin: 0 0 14px; }
.rpt-hero .ai-answer { margin-top: 18px; }

/* #C4B5FD rather than --s-violet-lift: the legal hero's gradient runs up to #3b2a63,
   where the lift only reaches 3.8:1; this clears 5.5:1 on every stop of both heroes. */
.rpt-hero:has(.rpt-meta) .rpt-eyebrow, .legal-hero .eyebrow {
  color: #C4B5FD !important;
  background: rgba(167,139,250,.12) !important;
  border-color: rgba(196,181,253,.45) !important;
}
.rpt-hero:has(.rpt-meta) .breadcrumb,
.rpt-hero:has(.rpt-meta) .breadcrumb a { color: rgba(255,255,255,.82) !important; }
.rpt-hero:has(.rpt-meta) .breadcrumb .current,
.rpt-hero:has(.rpt-meta) .breadcrumb a:hover { color: #fff !important; }

@media (max-width: 640px) {
  .sr-table { min-width: 0 !important; }
  .sr-table th, .sr-table td { padding: 10px 8px !important; }
  .sr-table td, .sr-name a, .sr-loc { overflow-wrap: anywhere; }
  .sr-table .sr-score, .sr-table .sr-rating { white-space: nowrap; }
  .rpt-hero-inner { padding: 26px 0 24px; }

  .company-card { display: block !important; }
  .company-card .card-rank { float: left; width: 40px; height: 40px; margin: 0 12px 6px 0; }
  .company-card .card-rank-num { font-size: .95rem; }
  .company-card .card-headline { min-height: 40px; }
  .company-card .card-content { display: block; }
  .company-card .card-services, .company-card .tag-list { clear: both; }
  .company-card .company-blurb { margin-top: 12px; }
  .company-card .card-meta { margin-top: 10px; }
  .company-card .card-aside {
    display: grid; justify-items: start; text-align: left; gap: 10px;
    margin-top: 16px; padding-left: 0; border-left: 0;
  }
}

/* 13j. The sibling-metro tiles at the foot of a city page. light-listing lays them
   2-up under 768px as a flex row of name + meta label with no wrapping, and a grid
   item's default min-width:auto lets a long label ("Logistics / Inland Empire") push
   its track past the screen: San Diego scrolled to 402px at 390 on 2026-10-22, the
   same mechanism as the pricing tiers in 13f. The label now wraps under the name and
   the tile can shrink. */
.sibling-city { min-width: 0; flex-wrap: wrap; gap: 2px 10px; }
.sibling-city > span { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 420px) {
  .sibling-cities-grid { grid-template-columns: 1fr !important; }
}
/* === BIM SEAL THEME END === */
