/* Nashville's Best Pros — clean marketplace.
 *
 * Listings vary enormously in quality: some businesses will upload eight good
 * photographs, some will upload none. So the chrome stays quiet and the card
 * degrades well — a listing with no image gets a lettered tile rather than a
 * broken box, and nothing in the layout assumes photography exists.
 *
 * Montserrat + Roboto, matching the rest of the estate.
 */

@font-face{font-family:'Montserrat';src:url(/assets/fonts/Montserrat-ExtraBold.woff2) format('woff2');font-weight:700 900;font-style:normal;font-display:swap}
@font-face{font-family:'Roboto';src:url(/assets/fonts/Roboto-Regular.woff2) format('woff2');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:'Roboto';src:url(/assets/fonts/Roboto-Bold.woff2) format('woff2');font-weight:600 800;font-style:normal;font-display:swap}

:root{
  --paper:#FFFFFF;
  --sunk:#F6F7F9;
  --ink:#14171C;
  --ink-2:#41474F;
  --muted:#697079;
  --rule:#E4E7EB;
  --rule-2:#CBD1D8;
  --brand:#1B6EF3;
  --brand-ink:#1355C4;
  --brand-tint:#EEF4FE;
  --ok:#15803D;
  --err:#B91C1C;
  --r:10px;
  --tap:44px;
  --pad:clamp(1.25rem,5vw,2rem);
  --wide:74rem;
  --display:'Montserrat';
  --font:'Roboto';
}

*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:var(--font),system-ui,-apple-system,'Segoe UI',sans-serif;
  font-size:1rem;line-height:1.6;
}
img{max-width:100%;height:auto;display:block}
a{color:var(--brand-ink)}
h1,h2,h3,h4{font-family:var(--display),var(--font),sans-serif;font-weight:800;line-height:1.15;letter-spacing:-.02em;margin:0 0 .5rem}
h1{font-size:clamp(1.9rem,5vw,3rem)}
h2{font-size:clamp(1.4rem,3.2vw,2rem)}
h3{font-size:1.1rem}
p{margin:0 0 1rem;text-wrap:pretty}
.lede{font-size:clamp(1.05rem,2.2vw,1.2rem);color:var(--ink-2);line-height:1.55;max-width:62ch}
.muted{color:var(--muted)}
.wrap{width:100%;max-width:var(--wide);margin-inline:auto;padding-inline:var(--pad)}
.narrow{max-width:44rem}
section{padding-block:clamp(2.25rem,6vw,3.75rem)}
.sec-sunk{background:var(--sunk);border-block:1px solid var(--rule)}
.sec-head{max-width:52rem;margin-bottom:1.5rem}
.mt-md{margin-top:1.5rem}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* ---- Buttons -------------------------------------------------------------- */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.4rem;
  min-height:var(--tap);padding:.65rem 1.2rem;border-radius:var(--r);
  font-weight:700;font-size:.95rem;text-decoration:none;cursor:pointer;
  border:1.5px solid transparent;
}
.btn-primary{background:var(--brand);border-color:var(--brand);color:#fff}
.btn-primary:hover{background:var(--brand-ink);border-color:var(--brand-ink)}
.btn-ghost{background:transparent;border-color:var(--rule-2);color:var(--ink)}
.btn-ghost:hover{border-color:var(--ink);background:var(--sunk)}
.btn-link{background:none;border:0;padding:0;color:var(--brand-ink);font:inherit;cursor:pointer;text-decoration:underline}

/* ---- Header --------------------------------------------------------------- */
.hdr{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.94);backdrop-filter:saturate(1.4) blur(8px);border-bottom:1px solid var(--rule)}
.hdr-in{display:flex;align-items:center;gap:1rem;min-height:64px}
.brand{display:flex;align-items:center;flex:none;text-decoration:none;padding-block:.5rem}
/* 160/136, the same as every other site in the estate. Fixed-ratio image, so
   width alone sizes it and the height follows. */
.brand img{width:160px;height:auto;display:block}
@media (max-width:26rem){.brand img{width:136px}}
.nav{display:none;margin-left:auto;align-items:center;gap:.35rem}
.nav a:not(.btn){text-decoration:none;color:var(--ink-2);font-weight:600;font-size:.95rem;padding:.6rem .8rem;border-radius:var(--r);min-height:var(--tap);display:inline-flex;align-items:center}
.nav a:not(.btn):hover{color:var(--ink);background:var(--sunk)}
.nav a:not(.btn)[aria-current=page]{color:var(--ink);box-shadow:inset 0 -2px 0 var(--brand)}
.nav .btn{margin-left:.5rem;padding-inline:1.1rem}
.burger{margin-left:auto;width:var(--tap);height:var(--tap);display:grid;place-content:center;gap:5px;background:none;border:1px solid var(--rule-2);border-radius:var(--r);cursor:pointer}
.burger span{display:block;width:19px;height:2px;background:var(--ink);transition:transform .2s,opacity .2s}
.burger[aria-expanded=true] span:nth-child(1){transform:translateY(7px) rotate(45deg)}
.burger[aria-expanded=true] span:nth-child(2){opacity:0}
.burger[aria-expanded=true] span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
.drawer{display:none;border-top:1px solid var(--rule);background:var(--paper);padding:.75rem var(--pad) 1.5rem}
.drawer.open{display:block}
.drawer a:not(.btn){display:flex;align-items:center;min-height:50px;text-decoration:none;color:var(--ink);font-weight:600;border-bottom:1px solid var(--rule)}
.drawer .btn{width:100%;margin-top:.9rem}
@media (min-width:62rem){
  .burger,.drawer{display:none!important}
  .nav{display:flex}
}

/* ---- Hero + finder -------------------------------------------------------- */
.hero{background:linear-gradient(170deg,var(--brand-tint) 0%,var(--paper) 70%);border-bottom:1px solid var(--rule)}
.hero h1{max-width:18ch}
.hero-note{margin-top:1rem;font-size:.9rem;color:var(--muted)}
.finder{display:grid;gap:.75rem;margin-top:1.75rem;padding:1rem;background:var(--paper);border:1px solid var(--rule);border-radius:calc(var(--r) + 4px);box-shadow:0 10px 30px rgb(20 23 28 / .06)}
.finder-field{display:grid;gap:.3rem;min-width:0}
.finder-field label{font-size:.82rem;font-weight:700;color:var(--ink-2)}
.finder select{width:100%;min-height:var(--tap);padding:.6rem .75rem;border:1.5px solid var(--rule-2);border-radius:var(--r);background:var(--paper);color:var(--ink);font:inherit;font-size:.95rem}
.finder .btn{min-height:var(--tap)}
@media (min-width:48rem){
  .finder{grid-template-columns:1fr 1fr auto;align-items:end}
}

.page-head{background:var(--sunk);border-bottom:1px solid var(--rule);padding-block:clamp(1.75rem,4vw,2.75rem)}
.crumbs{font-size:.8rem;color:var(--muted);margin-bottom:.6rem}
.crumbs a{color:var(--muted);text-decoration:none}
.crumbs a:hover{color:var(--ink)}

/* ---- Cards ---------------------------------------------------------------- */
.pro-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(16rem,1fr))}
.pro-card{
  display:flex;flex-direction:column;text-decoration:none;color:inherit;
  border:1px solid var(--rule);border-radius:calc(var(--r) + 2px);overflow:hidden;
  background:var(--paper);transition:border-color .15s,transform .15s,box-shadow .15s;
}
.pro-card:hover{border-color:var(--rule-2);transform:translateY(-2px);box-shadow:0 10px 26px rgb(20 23 28 / .08)}
.pro-shot{display:block;aspect-ratio:3/2;background:var(--sunk);position:relative;overflow:hidden}
.pro-shot img{width:100%;height:100%;object-fit:cover;object-position:50% 40%}
/* No photograph is a normal state, not a broken one. */
.card-fallback{
  position:absolute;inset:0;display:grid;place-content:center;
  font-family:var(--display);font-weight:800;font-size:2rem;color:var(--brand);
  background:var(--brand-tint);letter-spacing:.02em;
}
.pro-body{display:flex;flex-direction:column;gap:.25rem;padding:.9rem 1rem 1.1rem}
.pro-name{font-family:var(--display);font-weight:800;font-size:1.05rem;line-height:1.2}
.pro-meta{font-size:.82rem;color:var(--muted)}
.pro-tag{font-size:.9rem;color:var(--ink-2);line-height:1.45;margin-top:.15rem}
.pro-badges{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.5rem}
.badge{font-size:.7rem;font-weight:700;letter-spacing:.03em;text-transform:uppercase;color:var(--brand-ink);background:var(--brand-tint);border-radius:999px;padding:.2rem .55rem}
.result-count{font-size:.9rem;color:var(--muted);margin-bottom:1rem}

.cat-grid{display:grid;gap:.6rem;grid-template-columns:repeat(auto-fill,minmax(11rem,1fr))}
.cat-chip{display:flex;align-items:center;justify-content:space-between;gap:.5rem;padding:.7rem .9rem;border:1px solid var(--rule);border-radius:var(--r);text-decoration:none;color:var(--ink);font-weight:600;font-size:.92rem}
.cat-chip:hover{border-color:var(--brand);background:var(--brand-tint)}
.cat-chip small{color:var(--muted);font-weight:400;font-size:.78rem}
.city-grid{display:grid;gap:.6rem;grid-template-columns:repeat(auto-fill,minmax(10rem,1fr))}
.city-chip{display:flex;flex-direction:column;padding:.7rem .9rem;border:1px solid var(--rule);border-radius:var(--r);text-decoration:none;color:var(--ink);font-weight:600}
.city-chip:hover{border-color:var(--brand);background:var(--brand-tint)}
.city-chip small{color:var(--muted);font-weight:400;font-size:.78rem}
.cat-list{display:grid;gap:1px;background:var(--rule);border:1px solid var(--rule);border-radius:var(--r);overflow:hidden}
.cat-row{display:grid;gap:.2rem;padding:.9rem 1.1rem;background:var(--paper);text-decoration:none;color:inherit;grid-template-columns:1fr auto}
.cat-row:hover{background:var(--sunk)}
.cat-row-name{font-weight:700}
.cat-row-blurb{grid-column:1;font-size:.88rem;color:var(--muted);line-height:1.45}
.cat-row-count{grid-row:1;grid-column:2;font-size:.85rem;color:var(--muted)}

.empty{text-align:center;padding:3rem 1rem;border:1px dashed var(--rule-2);border-radius:calc(var(--r) + 4px);background:var(--sunk)}
.empty h2{font-size:1.2rem}

/* ---- Profile -------------------------------------------------------------- */
.profile-head.has-hero{padding-top:0}
.profile-hero{width:100%;height:clamp(160px,26vw,300px);object-fit:cover;object-position:50% 40%}
.profile-id{display:flex;gap:1rem;align-items:center;margin-top:1rem}
.profile-logo{width:72px;height:72px;flex:none;border-radius:var(--r);object-fit:cover;background:var(--paper);border:1px solid var(--rule)}
.profile-logo-fallback{display:grid;place-content:center;font-family:var(--display);font-weight:800;font-size:1.5rem;color:var(--brand);background:var(--brand-tint);border-color:transparent}
.profile-sub{margin:.15rem 0 .4rem;color:var(--muted);font-size:.92rem}
.profile-badges{margin:0;display:flex;flex-wrap:wrap;gap:.35rem}
.profile-cols{display:grid;gap:2rem;padding-block:clamp(1.75rem,4vw,2.75rem)}
.profile-main section{padding-block:0;margin-bottom:2rem}
.profile-main h2{font-size:1.25rem;margin-bottom:.6rem}
.tag-list{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:.4rem}
.tag-list li{background:var(--sunk);border:1px solid var(--rule);border-radius:999px;padding:.3rem .7rem;font-size:.85rem}
.tag-list li a{text-decoration:none;color:var(--ink)}
.gallery{display:grid;gap:.6rem;grid-template-columns:repeat(auto-fill,minmax(12rem,1fr))}
.gallery figure{margin:0}
.gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--r);border:1px solid var(--rule)}
.gallery figcaption{font-size:.8rem;color:var(--muted);margin-top:.3rem}
.contact-card{border:1px solid var(--rule);border-radius:calc(var(--r) + 4px);padding:1.25rem;background:var(--paper);box-shadow:0 10px 30px rgb(20 23 28 / .05)}
.contact-card h2{font-size:1.1rem}
.contact-line{margin:0 0 .4rem;font-weight:700}
@media (min-width:62rem){
  .profile-cols{grid-template-columns:minmax(0,1.7fr) minmax(19rem,1fr)}
  .profile-aside{position:sticky;top:88px;align-self:start}
}

/* ---- Forms ---------------------------------------------------------------- */
.form{display:grid;gap:.9rem}
.form-stack{max-width:26rem}
.field{display:grid;gap:.3rem;min-width:0}
.field label{font-weight:700;font-size:.88rem}
.field .opt{font-weight:400;color:var(--muted)}
.field input,.field select,.field textarea{
  width:100%;min-height:var(--tap);padding:.65rem .8rem;
  background:var(--paper);color:var(--ink);border:1.5px solid var(--rule-2);
  border-radius:var(--r);font:inherit;font-size:.95rem;
}
.field textarea{min-height:7rem;resize:vertical}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--brand);outline:2px solid var(--brand-tint);outline-offset:1px}
.field-hint{font-size:.84rem;color:var(--muted);line-height:1.5;margin:.2rem 0 0}
.form-note{font-size:.84rem;color:var(--muted);margin:.2rem 0 0}
.form-status{display:none;padding:.7rem .9rem;border-radius:var(--r);font-weight:600;font-size:.92rem;margin:0}
.form-status.ok{display:block;background:#ECFDF3;color:var(--ok);border:1px solid #A7F3D0}
.form-status.err{display:block;background:#FEF2F2;color:var(--err);border:1px solid #FCA5A5}
.notice{padding:.75rem 1rem;border-radius:var(--r);font-weight:600;margin-bottom:1rem}
.notice-ok{background:#ECFDF3;color:var(--ok);border:1px solid #A7F3D0}
.notice-err{background:#FEF2F2;color:var(--err);border:1px solid #FCA5A5}

.dash-form fieldset{border:1px solid var(--rule);border-radius:calc(var(--r) + 2px);padding:1.25rem;margin:0 0 1.25rem;display:grid;gap:.9rem}
.dash-form legend{font-family:var(--display);font-weight:800;font-size:1rem;padding-inline:.4rem}
.check-row{display:flex;flex-wrap:wrap;gap:1rem}
.check-grid{display:grid;gap:.5rem;grid-template-columns:repeat(auto-fill,minmax(11rem,1fr))}
.check{display:flex;align-items:center;gap:.5rem;font-size:.92rem;min-height:var(--tap)}
.check input{width:18px;height:18px;flex:none;accent-color:var(--brand)}
.dash-actions{display:flex;flex-wrap:wrap;gap:.75rem;margin-top:.5rem}
.dash-photos{padding-block:2rem;border-top:1px solid var(--rule);margin-top:2rem}
.photo-strip{display:grid;gap:.75rem;grid-template-columns:repeat(auto-fill,minmax(10rem,1fr));margin-bottom:1.5rem}
.photo-item{margin:0;display:grid;gap:.35rem}
.photo-item img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:var(--r);border:1px solid var(--rule)}
.form-inline{max-width:32rem}
@media (min-width:48rem){
  .dash-form fieldset{grid-template-columns:1fr 1fr}
  .dash-form legend{grid-column:1/-1}
  .dash-form .field:not(.half){grid-column:1/-1}
  .dash-form .check-grid,.dash-form .check-row,.dash-form .field-hint{grid-column:1/-1}
}

/* ---- Footer --------------------------------------------------------------- */
.ftr{background:var(--ink);color:#C3CAD3;padding-block:2.5rem 1.5rem;margin-top:0}
.ftr a{color:#C3CAD3;text-decoration:none}
.ftr a:hover{color:#fff}
.ftr-top{display:grid;gap:2rem}
.ftr-logo{width:190px;height:auto;display:block;margin-bottom:.9rem}
.ftr-blurb{font-size:.9rem;line-height:1.55;max-width:36ch;margin:0}
.ftr-h{font-size:.75rem;letter-spacing:.12em;text-transform:uppercase;color:#8B94A0;margin:0 0 .7rem}
.ftr ul{list-style:none;padding:0;margin:0;display:grid;gap:.4rem;font-size:.92rem}
.ftr-btm{display:flex;flex-wrap:wrap;gap:.6rem 1.5rem;justify-content:space-between;border-top:1px solid #2A2F37;margin-top:2rem;padding-top:1.25rem;font-size:.84rem;color:#8B94A0}
@media (min-width:52rem){.ftr-top{grid-template-columns:1.6fr 1fr 1fr}}

.prose h2{margin-top:1.75rem}
.prose ol,.prose ul{padding-left:1.25rem}
.prose li{margin-bottom:.5rem}

/* ---- FAQ (AEO) ------------------------------------------------------------
   Rendered as <details> so the answers are in the DOM for a crawler and a
   screen reader whether or not they are expanded, rather than injected on
   click. Mobile-first: the summary is a full-width tap target. */
.faq{display:grid;gap:1px;background:var(--rule);border:1px solid var(--rule);border-radius:var(--r);overflow:hidden}
.faq details{background:var(--paper)}
.faq summary{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  padding:1rem 1.1rem;min-height:var(--tap);cursor:pointer;
  font-weight:700;font-size:.98rem;line-height:1.4;list-style:none;
}
.faq summary::-webkit-details-marker{display:none}
.faq summary::after{
  content:'';flex:none;width:10px;height:10px;
  border-right:2px solid var(--muted);border-bottom:2px solid var(--muted);
  transform:rotate(45deg);transition:transform .18s ease;margin-top:-4px;
}
.faq details[open] summary::after{transform:rotate(-135deg);margin-top:2px}
.faq summary:hover{background:var(--sunk)}
.faq-a{padding:0 1.1rem 1.1rem}
.faq-a p{margin:0;color:var(--ink-2);line-height:1.6}

/* ---- Mobile-first corrections --------------------------------------------
   Checked at 360px, which is narrower than the iPhone the design was drawn
   on and where the real breakages show up. */
@media (max-width:26rem){
  .finder{padding:.85rem}
  .pro-grid{grid-template-columns:1fr}
  .cat-grid,.city-grid{grid-template-columns:1fr 1fr}
  .cat-chip,.city-chip{font-size:.88rem;padding:.6rem .7rem}
  .cat-row{grid-template-columns:1fr auto}
  /* Long trade names — "Crawl Space Repair" — must wrap rather than force
     the grid wider than the screen. */
  .cat-chip span,.city-chip span{min-width:0;overflow-wrap:anywhere}
  .profile-id{flex-direction:column;align-items:flex-start;gap:.75rem}
  .gallery{grid-template-columns:1fr 1fr}
  .tag-list li{font-size:.8rem}
  .faq summary{font-size:.92rem;padding:.85rem .9rem}
  .faq-a{padding:0 .9rem .9rem}
}
/* A directory is browsed on a phone far more than on a desktop, so the
   listing grid gets a real two-up as soon as there is room for it. */
@media (min-width:30rem) and (max-width:47.99rem){
  .pro-grid{grid-template-columns:1fr 1fr}
}

/* ---- Tap targets ----------------------------------------------------------
   Measured at 360px: breadcrumb links came out 15px tall and footer links
   17px. WCAG 2.5.8 exempts links inline in a sentence, but neither of these
   is that — both are navigation someone taps with a thumb, and on a directory
   the footer is a primary way around the site. Padded to the 44px target
   without changing the visual rhythm, by growing the hit area rather than the
   type. */
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:.15rem .35rem}
.crumbs a,.crumbs span[aria-current]{
  display:inline-flex;align-items:center;min-height:var(--tap);padding-block:.25rem;
}
.ftr ul{gap:0}
.ftr ul li a{
  display:inline-flex;align-items:center;min-height:var(--tap);
}
.ftr-btm a{display:inline-flex;align-items:center;min-height:var(--tap)}

/* ---- Two-sided split ------------------------------------------------------
 *
 * The directory is two products: a search tool for homeowners and a profile
 * tool for the businesses. The homepage says so in one row rather than making
 * a contractor read homeowner copy to find out the listing is free.
 * Mobile-first — the lanes stack, and the homeowner lane stays first. */
.split{background:var(--sunk);border-block:1px solid var(--rule)}
.two-up{display:grid;gap:1.25rem;grid-template-columns:1fr}
.lane{
  background:var(--paper);border:1px solid var(--rule);border-radius:calc(var(--r) + 4px);
  padding:clamp(1.25rem,4vw,1.75rem);
}
.lane h2{margin:.15rem 0 .6rem;font-size:clamp(1.25rem,4vw,1.5rem)}
.lane p{color:var(--ink-2);margin:0 0 1rem}
.lane .btn{width:100%}
.eyebrow{
  margin:0;font-family:var(--display),system-ui,sans-serif;font-weight:700;
  font-size:.72rem;letter-spacing:.09em;text-transform:uppercase;color:var(--brand-ink);
}
@media (min-width:48rem){
  .two-up{grid-template-columns:1fr 1fr;gap:1.5rem}
  .lane .btn{width:auto}
}

/* ---- Feature grid and steps (pro side) ----------------------------------- */
.feature-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(16rem,1fr))}
.feature{border:1px solid var(--rule);border-radius:calc(var(--r) + 2px);padding:1.1rem;background:var(--paper)}
.feature h3{margin:0 0 .4rem;font-size:1.02rem}
.feature p{margin:0;color:var(--ink-2);font-size:.94rem}
.steps{margin:0;padding-left:1.15rem;display:grid;gap:.7rem;max-width:52rem;color:var(--ink-2)}
.steps li{padding-left:.2rem}
.steps strong{color:var(--ink)}

/* ---- Popular searches -----------------------------------------------------
 *
 * Real query phrasing pointing at the same category pages the trade grid
 * points at. The duplication is the point: two sets of anchor text describing
 * one page is worth more than one, and this is the set people type. */
.term-list{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:.45rem}
.term-list li{margin:0}
.term-list a{
  display:inline-block;min-height:var(--tap);line-height:calc(var(--tap) - 1.4rem);
  padding:.7rem .9rem;border:1px solid var(--rule);border-radius:999px;
  text-decoration:none;color:var(--ink-2);font-size:.88rem;background:var(--paper);
}
.term-list a:hover{border-color:var(--brand);background:var(--brand-tint);color:var(--brand-ink)}

/* The pro-side link sits apart from the homeowner links, the way Houzz and
   Angi both separate them — same nav, visibly a different audience. */
.nav-sep{position:relative;padding-left:1rem;margin-left:.35rem}
.nav-sep::before{content:"";position:absolute;left:0;top:50%;transform:translateY(-50%);width:1px;height:1.1rem;background:var(--rule-2)}

/* ---- Honeypot -------------------------------------------------------------
 *
 * Must be a class, never an inline style: the CSP is style-src 'self' with no
 * unsafe-inline, so a style attribute is discarded by the browser and the trap
 * renders as a visible box asking a real person to "leave empty". Which is
 * exactly what it did.
 *
 * Off-canvas rather than display:none — a bot that skips hidden fields is not
 * caught by one, and this stays in the layout as far as a script can tell.
 * The field name is meaningless on purpose: a semantic name like "company"
 * gets filled by the browser's own autofill and turns the trap on real users. */
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* An account-level notice: something the owner has to act on, not an error. */
.notice{
  border:1px solid var(--rule);border-left:3px solid var(--brand);
  border-radius:var(--r);padding:1rem 1.1rem;background:var(--sunk);margin:.75rem 0;
}
.notice p{margin:0 0 .6rem;color:var(--ink-2);font-size:.94rem}
.notice p:last-of-type{margin-bottom:.85rem}
.notice strong{color:var(--ink)}

/* ---- Traffic dashboard ----------------------------------------------------
 *
 * Bar and sparkline sizes are classes rather than inline styles: the CSP is
 * style-src 'self' with no unsafe-inline, so a style attribute never reaches
 * the layout. Twenty-one width classes and twenty-one height classes in 5%
 * steps cover every bar this page can draw. */
.range{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin-top:1rem}
.range a{padding:.45rem .8rem;border:1px solid var(--rule);border-radius:999px;text-decoration:none;color:var(--ink-2);font-size:.86rem}
.range a:hover{border-color:var(--brand);color:var(--brand-ink)}
.range a.is-on{background:var(--ink);border-color:var(--ink);color:#fff}
.range form{margin-left:auto}

.stat-grid{display:grid;gap:.75rem;grid-template-columns:repeat(auto-fit,minmax(9rem,1fr))}
.stat{border:1px solid var(--rule);border-radius:var(--r);padding:1rem;background:var(--paper)}
.stat-n{display:block;font-family:var(--display),system-ui,sans-serif;font-weight:800;font-size:1.6rem;line-height:1.1}
.stat-l{display:block;color:var(--muted);font-size:.82rem;margin-top:.2rem}

.grid-2up{display:grid;gap:2rem;grid-template-columns:1fr}
@media (min-width:52rem){.grid-2up{grid-template-columns:1fr 1fr;gap:2.5rem}}

.bars{list-style:none;margin:0;padding:0;display:grid;gap:.45rem;counter-reset:none}
.bars li{display:grid;grid-template-columns:minmax(0,11rem) 1fr auto;gap:.6rem;align-items:center;font-size:.86rem}
.bar-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--ink-2)}
.bar-track{background:var(--sunk);border:1px solid var(--rule);border-radius:999px;height:.7rem;overflow:hidden}
.bar-fill{display:block;height:100%;background:var(--brand);border-radius:999px}
.bar-n{font-variant-numeric:tabular-nums;color:var(--muted);font-size:.8rem}

.spark{list-style:none;margin:0;padding:0;display:flex;gap:2px;align-items:flex-end;overflow-x:auto}
.spark li{display:flex;flex-direction:column;align-items:center;gap:.25rem;min-width:1.1rem;flex:1 0 auto}
.spark-bar{display:block;width:100%;background:var(--brand);border-radius:2px 2px 0 0;min-height:2px}
.spark li{height:9rem;justify-content:flex-end}
.spark-d{font-size:.6rem;color:var(--muted);white-space:nowrap}
.muted{color:var(--muted);font-size:.88rem}
.flash-err{border:1px solid var(--err);color:var(--err);border-radius:var(--r);padding:.7rem .9rem;margin:.75rem 0}

.w0{width:0%}
.w5{width:5%}
.w10{width:10%}
.w15{width:15%}
.w20{width:20%}
.w25{width:25%}
.w30{width:30%}
.w35{width:35%}
.w40{width:40%}
.w45{width:45%}
.w50{width:50%}
.w55{width:55%}
.w60{width:60%}
.w65{width:65%}
.w70{width:70%}
.w75{width:75%}
.w80{width:80%}
.w85{width:85%}
.w90{width:90%}
.w95{width:95%}
.w100{width:100%}

.spark-bar.h0{height:2%}
.spark-bar.h5{height:5%}
.spark-bar.h10{height:10%}
.spark-bar.h15{height:15%}
.spark-bar.h20{height:20%}
.spark-bar.h25{height:25%}
.spark-bar.h30{height:30%}
.spark-bar.h35{height:35%}
.spark-bar.h40{height:40%}
.spark-bar.h45{height:45%}
.spark-bar.h50{height:50%}
.spark-bar.h55{height:55%}
.spark-bar.h60{height:60%}
.spark-bar.h65{height:65%}
.spark-bar.h70{height:70%}
.spark-bar.h75{height:75%}
.spark-bar.h80{height:80%}
.spark-bar.h85{height:85%}
.spark-bar.h90{height:90%}
.spark-bar.h95{height:95%}
.spark-bar.h100{height:100%}

/* An alarm, not a stat: something is broken and the page should say so before
   it shows anything else. */
.alarm{border:1px solid var(--err);border-left:4px solid var(--err);border-radius:var(--r);padding:1.1rem 1.25rem;background:#FEF2F2}
.alarm h2{margin:0 0 .4rem;font-size:1.1rem;color:var(--err)}
.alarm p{margin:0 0 .9rem;color:var(--ink-2);font-size:.92rem}
.alarm .bars li{grid-template-columns:minmax(0,12rem) minmax(0,1fr) auto}
.flash-ok{border:1px solid var(--ok);color:var(--ok);border-radius:var(--r);padding:.7rem .9rem;margin:0 0 .9rem}
.alarm form{margin:0 0 .9rem}

/* ---- Website score panel --------------------------------------------------
 * Shown to the business about its own site. Colour carries the band, but the
 * number and the wording carry it too — colour alone fails anyone who cannot
 * distinguish the hues, and this is the panel most likely to be acted on. */
.score-panel{border:1px solid var(--rule);border-left:4px solid var(--rule-2);border-radius:var(--r);padding:1.1rem 1.25rem;margin:.75rem 0;background:var(--paper)}
.score-good{border-left-color:var(--ok)}
.score-fair{border-left-color:#B45309}
.score-poor{border-left-color:var(--err)}
.score-head{display:flex;gap:1rem;align-items:center}
.score-n{font-family:var(--display),system-ui,sans-serif;font-weight:800;font-size:2.4rem;line-height:1}
.score-good .score-n{color:var(--ok)}
.score-fair .score-n{color:#B45309}
.score-poor .score-n{color:var(--err)}
.score-head h3{margin:0 0 .2rem;font-size:1.02rem}
.score-head p{margin:0;color:var(--ink-2);font-size:.92rem}
.score-sum{margin:.9rem 0 .4rem;font-size:.88rem;color:var(--ink-2);font-weight:600}
.score-note{margin:.9rem 0 0;font-size:.82rem;color:var(--muted)}

/* Prospect list: score, business, site, failures. Four columns on desktop,
   stacked on a phone — this is a list read at a desk, but it must not break
   if it is opened on the way to a meeting. */
.prospects{list-style:none;margin:0;padding:0;display:grid;gap:.5rem}
.prospect{display:grid;gap:.15rem .9rem;grid-template-columns:auto 1fr;align-items:center;
  border:1px solid var(--rule);border-left:3px solid var(--rule-2);border-radius:var(--r);padding:.7rem .9rem}
.prospect-good{border-left-color:var(--ok)}
.prospect-fair{border-left-color:#B45309}
.prospect-poor{border-left-color:var(--err)}
.prospect-n{font-family:var(--display),system-ui,sans-serif;font-weight:800;font-size:1.3rem;min-width:2.2rem}
.prospect-b{display:flex;flex-direction:column}
.prospect-b small{color:var(--muted);font-size:.78rem}
.prospect-w{grid-column:2;font-size:.82rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.prospect-w a{color:var(--brand-ink)}
@media (min-width:46rem){
  .prospect{grid-template-columns:auto minmax(0,1fr) minmax(0,1fr) auto}
  .prospect-w{grid-column:auto}
}

/* ---- Editorial layer ------------------------------------------------------
 *
 * Photography carries the page. Everything here exists to get out of its way:
 * type gets larger and airier, cards lose their borders in favour of the image
 * edge, and the grid loosens so each photograph has room to be looked at.
 *
 * The images are the same ones the trade sites use. A homeowner who sees a
 * plumbing photograph here and again on nashvillesplumbingrepair.com should be
 * looking at one operation rather than two that happen to share a market. */

/* ---- Photographic hero ---- */
.hero-photo{
  position:relative;min-height:min(72vh,560px);display:flex;align-items:flex-end;
  background:var(--ink);overflow:hidden;
}
.hero-photo img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  /* The subject sits high in these frames; anchoring the crop keeps faces and
     rooflines in shot when the viewport gets short. */
  object-position:50% 42%;
}
/* Two scrims, not one. A bottom-only gradient leaves the middle of the frame
   almost clear, which is exactly where a left-aligned lede sits — over bright
   sky or foliage it becomes unreadable. The horizontal scrim gives the text a
   ground while leaving the right of the photograph at full brightness, which
   is where the subject usually is. */
.hero-photo::after{
  content:"";position:absolute;inset:0;
  background:
    linear-gradient(90deg,rgb(18 20 24 / .82) 0%,rgb(18 20 24 / .58) 34%,rgb(18 20 24 / .12) 62%,rgb(18 20 24 / 0) 82%),
    linear-gradient(180deg,rgb(18 20 24 / .3) 0%,rgb(18 20 24 / .12) 42%,rgb(18 20 24 / .55) 100%);
}
.hero-photo .wrap{position:relative;z-index:2;padding-block:clamp(2.5rem,6vw,4.5rem)}
.hero-photo h1{
  text-shadow:0 2px 22px rgb(18 20 24 / .45);
  color:#fff;font-size:clamp(2.1rem,5.4vw,4rem);line-height:1.02;letter-spacing:-.022em;
  max-width:19ch;text-wrap:balance;
}
.hero-photo .lede{color:rgb(255 255 255 / .92);max-width:44ch;margin-top:1rem;font-size:1.02rem;text-shadow:0 1px 14px rgb(18 20 24 / .5)}
.hero-photo .hero-note{color:rgb(255 255 255 / .72);margin-top:1.1rem;font-size:.86rem}

/* The finder lifts off the photograph rather than sitting on it. */
.hero-photo .finder{
  margin-top:1.6rem;background:var(--paper);border-radius:calc(var(--r) + 4px);
  padding:1rem;box-shadow:0 18px 44px rgb(20 23 28 / .3);border:0;
}

/* ---- Photographic tiles ---- */
.tile-grid{display:grid;gap:1.15rem;grid-template-columns:repeat(auto-fill,minmax(15rem,1fr))}
.tile{
  position:relative;display:block;text-decoration:none;color:inherit;
  border-radius:calc(var(--r) + 4px);overflow:hidden;background:var(--sunk);
  aspect-ratio:16/10;isolation:isolate;
}
.tile img{
  position:absolute;inset:0;width:100%;height:100%;object-fit:cover;
  transition:transform .5s cubic-bezier(.2,.6,.2,1);
}
.tile::after{
  content:"";position:absolute;inset:0;
  background:linear-gradient(180deg,rgb(20 23 28 / 0) 34%,rgb(20 23 28 / .76) 100%);
}
.tile-body{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:1rem 1.05rem}
.tile-name{display:block;color:#fff;font-family:var(--display),system-ui,sans-serif;font-weight:800;font-size:1.06rem;line-height:1.15;letter-spacing:-.005em}
.tile-meta{display:block;color:rgb(255 255 255 / .78);font-size:.76rem;margin-top:.22rem}
.tile:hover img{transform:scale(1.045)}
.tile:focus-visible{outline:2px solid var(--brand);outline-offset:3px}

/* Uniform tiles, deliberately. A spanning first tile reads well only at one
   column count, and this grid reflows from four columns to two — at every
   width but the intended one it left a hole beside the large tile and an
   orphan on the last row. A clean grid of good photographs is the more
   confident thing anyway, and it is what Houzz actually does. */
.tile-grid.featured{grid-template-columns:repeat(auto-fill,minmax(16.5rem,1fr))}
@media (min-width:60rem){
  .tile-grid.featured .tile-name{font-size:1.2rem}
}

/* ---- Category page hero ---- */
.cat-hero{position:relative;min-height:clamp(220px,34vw,340px);display:flex;align-items:flex-end;background:var(--ink);overflow:hidden}
.cat-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:50% 45%}
.cat-hero::after{
  content:"";position:absolute;inset:0;
  background:
    linear-gradient(90deg,rgb(18 20 24 / .84) 0%,rgb(18 20 24 / .6) 36%,rgb(18 20 24 / .14) 64%,rgb(18 20 24 / 0) 84%),
    linear-gradient(180deg,rgb(18 20 24 / .34) 0%,rgb(18 20 24 / .16) 40%,rgb(18 20 24 / .58) 100%);
}
.cat-hero .wrap{position:relative;z-index:2;padding-block:clamp(1.75rem,4vw,2.75rem)}
.cat-hero .crumbs{color:rgb(255 255 255 / .7)}
.cat-hero .crumbs a{color:rgb(255 255 255 / .86)}
.cat-hero h1{text-shadow:0 2px 20px rgb(18 20 24 / .45);color:#fff;font-size:clamp(1.7rem,4vw,2.7rem);line-height:1.06;letter-spacing:-.018em}
.cat-hero .lede{color:rgb(255 255 255 / .92);max-width:52ch;margin-top:.7rem;text-shadow:0 1px 14px rgb(18 20 24 / .5)}

/* ---- More air throughout ---- */
section{padding-block:clamp(2.5rem,6vw,4.25rem)}
.sec-head{max-width:56rem;margin-bottom:2rem}
.sec-head h2{font-size:clamp(1.5rem,3.2vw,2.15rem);line-height:1.1;letter-spacing:-.018em}
.sec-head .lede{margin-top:.6rem}
.eyebrow{margin-bottom:.6rem}

/* ---- Utilities the CSP forces us to name --------------------------------
 *
 * style-src is 'self' with no unsafe-inline, so a style attribute never
 * reaches the layout — it is dropped silently, which is how a missing margin
 * and a visible honeypot both shipped. Anything positional lives here. */
.subhead{margin-top:2.75rem;margin-bottom:1rem}
.subhead h3{font-size:1.02rem;letter-spacing:-.005em}
.sec-tight{padding-block:1.5rem 0}

/* ---- Hero on narrow screens ----------------------------------------------
 *
 * The horizontal scrim exists to give left-aligned copy a ground while leaving
 * the right of the photograph bright. On a phone there is no "right of the
 * frame" — the text spans the full width — so the same gradient simply turns
 * the whole picture black, which is what it was doing. Narrow screens get a
 * lighter, vertical-only scrim, and a shorter hero so the crop is not a
 * letterbox slice of whatever happens to be in the middle of the image. */
@media (max-width:47.99rem){
  .hero-photo{min-height:auto}
  .hero-photo::after{
    background:linear-gradient(180deg,rgb(18 20 24 / .52) 0%,rgb(18 20 24 / .42) 45%,rgb(18 20 24 / .68) 100%);
  }
  .hero-photo img{object-position:50% 38%}
  .hero-photo .lede{max-width:none}
  .cat-hero{min-height:auto}
  .cat-hero::after{
    background:linear-gradient(180deg,rgb(18 20 24 / .5) 0%,rgb(18 20 24 / .42) 45%,rgb(18 20 24 / .7) 100%);
  }
  .cat-hero .lede{max-width:none}
}

/* The note under the finder sits where the vertical scrim is weakest. */
.hero-photo .hero-note{text-shadow:0 1px 12px rgb(18 20 24 / .6)}

/* ---- Logo in the dashboard ---- */
.logo-row{display:flex;gap:1.25rem;align-items:flex-start;flex-wrap:wrap;margin-bottom:1.5rem}
.logo-box{
  flex:none;width:9rem;height:9rem;border:1px solid var(--rule);border-radius:var(--r);
  background:var(--paper-2);display:flex;align-items:center;justify-content:center;overflow:hidden;
}
.logo-box img{max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.logo-empty{font-size:.78rem;color:var(--muted);text-align:center;padding:.5rem}
.logo-actions{flex:1;min-width:15rem}
.logo-actions h3{font-size:1rem;margin-bottom:.35rem}
.logo-actions .field-hint{margin-bottom:.75rem}

/* ---- Social row on a profile ---- */
.social-row{list-style:none;padding:0;margin:.9rem 0 0;display:flex;flex-wrap:wrap;gap:.4rem}
.social-row a{
  display:inline-block;min-height:var(--tap);line-height:calc(var(--tap) - 1.5rem);
  padding:.75rem .85rem;border:1px solid var(--rule);border-radius:999px;
  text-decoration:none;color:var(--ink-2);font-size:.82rem;background:var(--paper);
}
.social-row a:hover{border-color:var(--brand);background:var(--brand-tint);color:var(--brand-ink)}
.contact-addr{color:var(--muted);font-size:.88rem}
.profile-logo{
  width:4.5rem;height:4.5rem;object-fit:contain;background:#fff;
  border:1px solid var(--rule);border-radius:var(--r);padding:.35rem;margin-bottom:.75rem;
}

/* ---- Profile, directory layout -------------------------------------------
 *
 * Work first, identity second, contact pinned alongside. A homeowner arrives to
 * judge the photographs, so they lead — and a business that has bothered to
 * upload ten good ones should get the benefit of that before anyone reads a
 * word about them.
 */

/* ---- The gallery ---------------------------------------------------------
 *
 * A wide centre frame with the neighbouring photographs showing at the edges,
 * which is what tells a visitor there is more than one before they touch
 * anything. The measurements are taken from the layout this was asked to
 * match: the frame is 89% of the viewport, so about 5.5% of the previous and
 * next photograph shows either side, and the frame itself is 694 by 294.
 *
 * Two modes, one markup. As shipped it is a native horizontal scroller with
 * snap points, which swipes on a phone and needs no script at all. The script
 * then adds .is-live and the track moves under a transform instead, so the
 * arrows can advance exactly one photograph and the run can loop.
 */
.hz-gallery{position:relative;background:var(--ink);padding-block:0;isolation:isolate}
.hz-viewport{overflow:hidden}
.hz-track{
  list-style:none;margin:0;padding:0;display:flex;
  overflow-x:auto;overscroll-behavior-x:contain;
  scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none;
}
.hz-track::-webkit-scrollbar{display:none}
.hz-slide{flex:0 0 100%;scroll-snap-align:center;padding-inline:2px}
/* ---- The frame ------------------------------------------------------------
 *
 * 3:2, and the photograph is contained inside it rather than cropped to fill.
 *
 * A frame that crops is fine when every photograph is the same shape. Real
 * listings are not: the four on the first published profile are 1.00, 1.33,
 * 1.43 and 2.02, and the widest of them is a before/after composite. Every
 * crop tested cut the word BEFORE clean off it — which is to say it destroyed
 * the only thing that photograph was for.
 *
 * So nothing is cropped, and the empty space either side is filled with the
 * photograph's own colours, blurred. The frame stays one size on every card
 * and every listing; what varies is how much of it the photograph covers.
 *
 * 3:2 because it is the middle of what businesses actually upload and it is
 * what a camera shoots. Upload 3:2 and it fills the frame exactly.
 */
.hz-slide figure{margin:0;position:relative;aspect-ratio:3/2;overflow:hidden;background:#0d1117}
.hz-slide img{position:absolute;inset:0;width:100%;height:100%;display:block}
.hz-shot{object-fit:contain;z-index:1}
/* Overscanned and blurred, so the blur has pixels to work with at the edges
   instead of smearing the frame border inwards. The source is the 200px
   rendition: at a 22px blur radius nothing finer than that survives, so asking
   for more detail buys a bigger download and an identical picture. */
.hz-fill{
  inset:-6% !important;width:112% !important;height:112% !important;
  object-fit:cover;filter:blur(22px) brightness(.55);z-index:0;
}
@media (prefers-reduced-motion:no-preference){
  .hz-fill{transform:scale(1.02)}
}
.hz-slide figcaption{
  position:absolute;inset:auto 0 0 0;z-index:2;padding:2.5rem .95rem .7rem;color:#fff;font-size:.85rem;
  background:linear-gradient(to top,rgb(0 0 0 / .62),rgb(0 0 0 / 0));
}

@media (min-width:60rem){
  .hz-slide{flex-basis:89%}
  .hz-count{right:calc(5.5% + .9rem)}
  /* Half the leftover, so the first and last photographs can still sit in the
     centre of the frame rather than jamming against the edge. */
  .hz-track{padding-inline:5.5%}
}

.hz-gallery.is-live .hz-track{
  overflow:visible;scroll-snap-type:none;padding-inline:0;
  transition:transform .5s;will-change:transform;
}
.hz-gallery.is-live .hz-slide figure{cursor:zoom-in}
@media (prefers-reduced-motion:reduce){
  .hz-gallery.is-live .hz-track{transition:none}
}

/* Full-height hit areas at the edges with the control itself a small disc
   centred in them: a 46px target carrying a 34px button, so it is thumb-sized
   on a touch screen without the disc looking clumsy on a desktop. */
.hz-arrow{
  display:none;position:absolute;top:0;bottom:0;width:46px;z-index:2;
  border:0;background:none;padding:0;cursor:pointer;align-items:center;justify-content:center;
}
.hz-gallery.is-live .hz-arrow{display:flex}
.hz-prev{left:0}
.hz-next{right:0}
.hz-arrow>span{
  display:grid;place-content:center;width:34px;height:34px;border-radius:50%;
  background:rgb(255 255 255 / .92);color:#3c4043;box-shadow:0 1px 5px rgb(0 0 0 / .35);
  transition:background .15s,transform .15s;
}
.hz-arrow:hover>span{background:#fff;transform:scale(1.07)}
.hz-arrow:focus-visible>span{outline:3px solid var(--brand);outline-offset:2px}
.hz-arrow svg{fill:currentColor}

.hz-count{
  position:absolute;right:.9rem;bottom:.8rem;z-index:2;margin:0;
  /* Inset to the centre frame rather than the viewport edge, or it sits on top
     of the next photograph peeking through and reads as part of that one. */
  background:rgb(0 0 0 / .55);color:#fff;border-radius:999px;
  padding:.24rem .62rem;font-size:.78rem;letter-spacing:.02em;
}
.hz-gallery:not(.is-live) .hz-count{display:none}

/* The lightbox is a native dialog, so Escape, the backdrop and the focus trap
   all come free rather than being re-implemented badly. */
.hz-box{
  border:0;padding:0;width:100%;height:100%;max-width:100vw;max-height:100vh;
  background:#0b0d10;color:#e7eaee;overflow:hidden;
}
.hz-box::backdrop{background:rgb(0 0 0 / .88)}
/* Column flex rather than a grid: place-items on a full-height grid spreads
   the two rows apart, which stranded the caption at the bottom of the screen
   instead of under the photograph it describes. */
.hz-box figure{
  margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;
  gap:.65rem;width:100%;height:100%;padding:1rem;
}
.hz-box img{max-width:94vw;max-height:80vh;width:auto;height:auto;object-fit:contain;display:block}
.hz-box figcaption{padding:0 1rem;text-align:center;font-size:.9rem;color:#c9ced6}
.hz-box-btn{
  position:absolute;z-index:3;display:grid;place-content:center;
  width:42px;height:42px;border-radius:50%;border:0;cursor:pointer;
  background:rgb(255 255 255 / .14);color:#fff;
}
.hz-box-btn:hover{background:rgb(255 255 255 / .26)}
.hz-box-btn svg{fill:currentColor}
.hz-box-close{top:1rem;right:1rem}
.hz-box-prev{left:1rem;top:50%;margin-top:-21px}
.hz-box-next{right:1rem;top:50%;margin-top:-21px}

/* Not a band across the page any more: it is the top of the left column, the
   way the layout this matches has it — carousel, then identity, then the tab
   bar, with the enquiry form standing beside all three from the very top. */
.profile-head{padding-block:1.15rem 0}
.profile-id{display:flex;gap:1.15rem;align-items:flex-start;margin:.9rem 0 1.1rem}
.profile-logo{
  flex:none;width:5.5rem;height:5.5rem;object-fit:contain;background:#fff;
  border:1px solid var(--rule);border-radius:calc(var(--r) + 2px);padding:.4rem;
}
.profile-logo-fallback{
  display:flex;align-items:center;justify-content:center;font-family:var(--display),sans-serif;
  font-weight:800;font-size:1.7rem;color:var(--muted);background:var(--sunk);
}
.profile-id-text{min-width:0}
.profile-id h1{font-size:clamp(1.5rem,3.6vw,2.3rem);line-height:1.08;letter-spacing:-.018em}
.profile-sub{color:var(--muted);font-size:.95rem;margin-top:.25rem}
.profile-badges{display:flex;flex-wrap:wrap;gap:.35rem;margin-top:.7rem}

/* Section jump-links, in the manner of a directory profile. They are anchors
   rather than tabs — no JavaScript, and the sections stay readable in order for
   anyone who ignores them. */
.profile-tabs{display:flex;gap:.15rem;overflow-x:auto;border-bottom:1px solid var(--rule);margin-top:.25rem}
.profile-tabs a{
  flex:none;padding:.85rem 1rem;text-decoration:none;color:var(--ink-2);
  font-size:.9rem;font-family:'bodyb',sans-serif;border-bottom:2px solid transparent;
}
.profile-tabs a{border-bottom:2px solid transparent;margin-bottom:-1px}
.profile-tabs a:hover{color:var(--brand-ink);border-bottom-color:var(--brand)}
/* Not the gallery. It is a section too, and section padding on it is a band of
   dark ground above the photograph rather than space between two headings. */
.profile-main>section:not(.hz-gallery){padding-top:1.75rem}

.profile-cols{display:grid;gap:2.25rem;grid-template-columns:1fr;padding-block:.75rem 2rem}
.profile-main{min-width:0}
/* Full-bleed on a phone. The column is the page there, and a photograph inset
   by the page gutter looks like a mistake rather than a margin. */
@media (max-width:61.99rem){
  .profile-main>.hz-gallery{margin-inline:calc(var(--pad) * -1)}
}
.profile-main>section{margin-bottom:2.25rem;scroll-margin-top:1.5rem}
.profile-main>section:last-child{margin-bottom:0}
.profile-main h2{font-size:1.2rem;margin-bottom:.9rem;letter-spacing:-.01em}
@media (min-width:62rem){
  .profile-cols{grid-template-columns:minmax(0,1fr) 22rem}
  /* Pinned so the enquiry form is reachable from anywhere in a long profile —
     which is the whole point of the right-hand column. */
  .profile-aside{position:sticky;top:1.25rem;align-self:start}
}

/* ---- Profile sections ----------------------------------------------------- */

/* Icons sit inside the fact badges rather than beside them, so a badge stays
   one object when the row wraps. */
.profile-badges .badge{display:inline-flex;align-items:center;gap:.35rem}
.profile-badges .badge svg{fill:currentColor;opacity:.7}

.profile-actions{display:flex;flex-wrap:wrap;gap:.5rem;margin:0 0 1.15rem}
.act{
  display:inline-flex;align-items:center;justify-content:center;gap:.45rem;
  min-height:var(--tap);padding:.6rem 1.05rem;border:1px solid var(--rule);
  border-radius:999px;background:var(--paper);color:var(--ink-2);
  font-family:'bodyb',sans-serif;font-size:.88rem;text-decoration:none;cursor:pointer;
}
.act:hover{border-color:var(--brand);color:var(--brand-ink);background:var(--brand-tint)}
.act svg{fill:currentColor}
.act-cta{background:var(--brand);border-color:var(--brand);color:#fff}
.act-cta:hover{background:var(--brand-ink);border-color:var(--brand-ink);color:#fff}
.act-save[aria-pressed="true"]{border-color:var(--brand);color:var(--brand-ink);background:var(--brand-tint)}
.act-saved[hidden]{display:none}

.profile-tagline{font-family:'bodyb',sans-serif;color:var(--ink);margin-bottom:.65rem}
/* Clamped by the script, never by the markup: with no JavaScript the whole
   description is simply there, which is also the version a crawler reads. */
.readmore.is-clamped{
  display:-webkit-box;-webkit-line-clamp:6;-webkit-box-orient:vertical;overflow:hidden;
}
.rm-toggle{
  margin-top:.55rem;padding:.35rem 0;border:0;background:none;cursor:pointer;
  color:var(--brand-ink);font-family:'bodyb',sans-serif;font-size:.88rem;
}
.rm-toggle:hover{text-decoration:underline}

.biz-sub{font-size:.78rem;text-transform:uppercase;letter-spacing:.05em;color:var(--muted);margin-top:1.3rem}
.biz-details{margin:0;border-top:1px solid var(--rule)}
.biz-row{display:grid;gap:.15rem;padding:.8rem 0;border-bottom:1px solid var(--rule)}
.biz-row dt{color:var(--muted);font-size:.78rem;text-transform:uppercase;letter-spacing:.05em}
.biz-row dd{margin:0}
.biz-row dd .social-row{margin-top:.35rem}
@media (min-width:40rem){
  .biz-row{grid-template-columns:11rem minmax(0,1fr);gap:1rem;align-items:baseline}
}

.proj-grid{display:grid;gap:1.1rem;grid-template-columns:repeat(auto-fill,minmax(14.5rem,1fr))}
.proj{margin:0;border:1px solid var(--rule);border-radius:var(--r);overflow:hidden;background:var(--paper)}
.proj-frame{
  display:block;position:relative;aspect-ratio:3/2;overflow:hidden;background:#0d1117;
}
.proj-frame img{position:absolute;inset:0;width:100%;height:100%;display:block}
.proj figcaption{display:grid;gap:.15rem;padding:.7rem .8rem .85rem}
.proj-title{font-family:'bodyb',sans-serif;font-size:.92rem;color:var(--ink)}
.proj-where{font-size:.82rem;color:var(--muted)}

.cred-list{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:.5rem}
.cred-list li{
  display:inline-flex;align-items:center;gap:.4rem;padding:.5rem .9rem;
  border:1px solid var(--rule);border-radius:999px;background:var(--paper);font-size:.88rem;
}
.cred-list svg{fill:var(--brand)}
.fine{color:var(--muted);font-size:.84rem;margin-top:.8rem}

/* The saved list lives in the visitor's own browser, so the page ships empty
   and the script fills it. Both states are styled here rather than injected —
   the CSP has no unsafe-inline and a style attribute would be dropped. */
.saved-grid{display:grid;gap:1rem;grid-template-columns:repeat(auto-fill,minmax(16rem,1fr))}
.saved-card{border:1px solid var(--rule);border-radius:var(--r);padding:1rem;background:var(--paper)}
.saved-card h3{font-size:1rem;margin:0 0 .2rem}
.saved-card h3 a{text-decoration:none;color:var(--ink)}
.saved-card h3 a:hover{color:var(--brand-ink)}
.saved-card p{color:var(--muted);font-size:.86rem;margin:0 0 .7rem}
.saved-drop{border:0;background:none;padding:.3rem 0;cursor:pointer;color:var(--muted);font-size:.84rem}
.saved-drop:hover{color:var(--brand-ink);text-decoration:underline}
.saved-empty{color:var(--muted)}

/* ---- The pro's FAQ editor -------------------------------------------------
 *
 * Pre-filled with the questions already on their profile, so this is editing
 * rather than authoring — which is the difference between an FAQ that gets
 * written and an empty box nobody fills in.
 */
.dash-faqs{margin-top:2.5rem}
.faq-edit{
  border:1px solid var(--rule);border-radius:var(--r);
  padding:.9rem 1rem 1rem;margin:0 0 .85rem;background:var(--paper);
}
.faq-edit legend{
  padding:0 .4rem;font-size:.74rem;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);
}
.faq-edit .field{margin-bottom:.6rem}
.faq-edit .field:last-child{margin-bottom:0}
.faq-edit textarea{resize:vertical}
