/* A directory's home in the site's new look (owner, 2026-11-25; inc/home.directory.v2.php, inc/directory.search.form.v2.php;
   PV_DIRECTORY_LOOK). Loaded after ui/resources.css, whose frame (.pvr: tokens, type scale, panels, chapters, buttons, fields) it
   builds on. Every rule here sits under .pvr.pvd, so nothing leaks to another page. Sizes come from the frame's named scale only.
   Not cached at Cloudflare (the directory pages are answered DYNAMIC): an edit here needs no purge. */

/* ---- the notice of a page that was not found, above the title */
.pvr.pvd .pvd-notfound{padding-bottom:0}
.pvr.pvd .pvd-notfound .pvr-note{margin:0}
.pvr.pvd h2.pvd-notfound-title{margin:0 0 6px; font-family:var(--pvr-display); font-weight:700; font-size:var(--pvr-fs-h3); line-height:1.3}
.pvr.pvd .pvd-notfound p{margin:0 0 6px}
.pvr.pvd .pvd-notfound p:last-child{margin-bottom:0}
.pvr.pvd .pvd-notfound a{color:inherit; font-weight:600}

/* ---- the search form: two fields a row on a phone, all four and the button on one row from 992px */
.pvr.pvd .pvd-search{margin-bottom:20px; border-top:5px solid #499aff} /* the page's main feature, under the colour of the header's "Vendor Directory" tab (owner, 2026-11-25) */
.pvr.pvd .pvd-search-form{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px 12px; margin:0; padding:16px}
.pvr.pvd .pvd-search-field{min-width:0}
.pvr.pvd .pvd-search-action{grid-column:1 / -1}
.pvr.pvd button.pvd-search-go{gap:8px; width:100%; min-width:0}
.pvr.pvd .pvd-search-go svg{flex:none}

/* ---- browse by state, at the end of the page: names with their count of companies. Columns are few enough that the longest name
   and its count stay on one line (owner, 2026-11-25): 2, then 3 from 768px, 4 from 992px, 5 from 1200px */
.pvr.pvd .pvd-states{margin:24px 0 0}
.pvr.pvd .pvd-states-list{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 16px; margin:0; padding:8px 16px 12px; list-style:none; font-size:var(--pvr-fs-small); line-height:1.35}
.pvr.pvd .pvd-states-list li{display:flex; align-items:center; justify-content:space-between; gap:8px; min-width:0; min-height:44px; margin:0}
.pvr.pvd .pvd-states-list a{display:flex; align-items:center; align-self:stretch; flex:1 1 auto; min-width:0}
.pvr.pvd .pvd-state-n{flex:none; font-size:var(--pvr-fs-meta); color:var(--pvr-muted); font-variant-numeric:tabular-nums}

/* ---- the two columns */
.pvr.pvd .pvd-cols{display:grid; grid-template-columns:minmax(0,1fr); gap:0}
.pvr.pvd .pvd-main{min-width:0}
.pvr.pvd .pvd-side{min-width:0; margin-top:8px}

/* ---- a list of companies inside a panel */
.pvr.pvd .pvd-list{margin-bottom:20px}
.pvr.pvd .pvd-list-lead{margin:0; padding:12px 16px 4px; font-size:var(--pvr-fs-small); font-weight:600; line-height:1.5; color:var(--pvr-muted)}
.pvr.pvd .pvd-companies{margin:0; padding:0 6px; list-style:none}
.pvr.pvd .pvd-company{position:relative; display:grid; grid-template-columns:56px minmax(0,1fr); gap:4px 14px; align-items:start; margin:0; padding:14px 10px; border-radius:6px}
.pvr.pvd .pvd-company + .pvd-company{border-top:1px solid var(--pvr-line-soft); border-top-left-radius:0; border-top-right-radius:0}
.pvr.pvd .pvd-company:hover{background:var(--pvr-page)}
.pvr.pvd .pvd-company-more{display:none} /* a phone shows the first few of a list, as today; all of them from 576px */
.pvr.pvd .pvd-company-logo{display:block; width:56px; height:56px; object-fit:contain; border:1px solid var(--pvr-line-soft); border-radius:6px; background:#fff}
.pvr.pvd .pvd-company-mark{display:flex; align-items:center; justify-content:center; width:56px; height:56px; border-radius:6px; background:var(--pvr-teal-wash); color:var(--pvr-teal-deep); font-family:var(--pvr-display); font-weight:700; font-size:var(--pvr-fs-h3); line-height:1}
.pvr.pvd .pvd-company-main{min-width:0; overflow-wrap:anywhere}
.pvr.pvd h3.pvd-company-name{margin:0 0 1px; font-family:var(--pvr-display); font-weight:700; font-size:var(--pvr-fs-h4); line-height:1.35; color:var(--pvr-ink)}
.pvr.pvd .pvd-company-name a{color:var(--pvr-teal-deep); text-decoration:none}
.pvr.pvd .pvd-company-name a::after{content:""; position:absolute; top:0; right:0; bottom:0; left:0} /* the whole row opens the company */
.pvr.pvd .pvd-company:hover .pvd-company-name a{text-decoration:underline}
.pvr.pvd .pvd-company-name a:focus-visible{outline:none}
.pvr.pvd .pvd-company:focus-within{outline:2px solid var(--pvr-teal); outline-offset:-2px}
.pvr.pvd .pvd-company-where{margin:0 0 4px; font-size:var(--pvr-fs-meta); line-height:1.5; color:var(--pvr-ink-2)}
.pvr.pvd .pvd-company-text{margin:0; font-size:var(--pvr-fs-small); line-height:1.55; color:var(--pvr-muted)}
/* a company's first services: quiet chips, the "Pro" chip's shape without its colour (owner, 2026-11-25) */
.pvr.pvd .pvd-company-services{display:flex; flex-wrap:wrap; gap:5px; margin:8px 0 0; padding:0; list-style:none}
.pvr.pvd .pvd-company-services li{margin:0; padding:2px 8px; border:1px solid #dee2e6; border-radius:6px; background:#fff; color:var(--pvr-ink-2); font-size:12px; font-weight:600; line-height:1.4; white-space:nowrap}
.pvr.pvd .pvd-company-services li.pvd-service-more{border-color:transparent; background:transparent; padding-left:2px; padding-right:0; color:var(--pvr-muted); font-weight:400}
.pvr.pvd .pvd-service-emoji{margin-right:4px}
.pvr.pvd .pvd-list-all{display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; margin:0; padding:14px 16px 16px; border-top:1px solid var(--pvr-line-soft)}
.pvr.pvd .pvd-list-all a.pvr-btn-quiet{width:100%; font-size:var(--pvr-fs-small)}
.pvr.pvd .pvd-list-note{font-size:var(--pvr-fs-meta); line-height:1.4; color:var(--pvr-muted)}
.pvr.pvd .pvd-trouble{margin:0; padding:14px 16px; font-size:var(--pvr-fs-small); color:var(--pvr-muted)}
.pvr.pvd .pvr-chapter .pvd-trouble{padding:6px 0}

/* ---- the invitation to add a company, between the two lists */
.pvr.pvd .pvd-start{margin:0 0 20px}
.pvr.pvd .pvd-start h2.pvr-start-title{font-size:var(--pvr-fs-h3)}
.pvr.pvd .pvd-start a.pvr-btn-quiet{width:100%; min-height:48px}

/* ---- the side column */
.pvr.pvd .pvd-new ul{display:block; margin:0}
.pvr.pvd .pvd-new li{position:relative; padding:10px 0}
.pvr.pvd .pvd-new li + li{border-top:1px solid var(--pvr-line-soft)}
.pvr.pvd .pvd-new li:hover{background:var(--pvr-page)}
.pvr.pvd h3.pvd-new-name{margin:0 0 1px; font-family:var(--pvr-textface); font-weight:600; font-size:var(--pvr-fs-small); line-height:1.4}
.pvr.pvd .pvd-new li .pvd-new-name a{display:inline; min-height:0; padding:0; border-radius:0}
.pvr.pvd .pvd-new li .pvd-new-name a:hover{background:transparent}
.pvr.pvd .pvd-new-name a::after{content:""; position:absolute; top:0; right:0; bottom:0; left:0}
.pvr.pvd .pvd-new-where, .pvr.pvd .pvd-new-joined{margin:0; font-size:var(--pvr-fs-meta); line-height:1.45; color:var(--pvr-muted)}
.pvr.pvd .pvd-ad-label{margin:0 0 4px; font-size:var(--pvr-fs-meta); line-height:1.4; color:var(--pvr-muted)}
.pvr.pvd .pvd-ad img{max-width:100%; height:auto}
/* the small "Add your company" card at the top of the side column: from 992px only (below, the box between the lists says it) */
.pvr.pvd .pvd-join{display:none}
.pvr.pvd .pvd-join-card{position:relative; border:1px solid var(--pvr-line); border-radius:6px; background:var(--pvr-panel); text-align:center; overflow:hidden}
.pvr.pvd .pvd-join-card:hover{border-color:var(--pvr-teal)}
.pvr.pvd h2.pvd-join-title{margin:0; font-family:var(--pvr-display); font-weight:700; font-size:var(--pvr-fs-h4); line-height:1.3}
.pvr.pvd .pvd-join-title a{display:flex; align-items:center; justify-content:center; gap:8px; min-height:48px; padding:10px 16px; border-bottom:1px solid var(--pvr-line-soft); background:var(--pvr-teal-wash); color:var(--pvr-teal-deep); text-decoration:none}
.pvr.pvd .pvd-join-title a:hover{text-decoration:underline}
.pvr.pvd .pvd-join-title a::after{content:""; position:absolute; top:0; right:0; bottom:0; left:0} /* the whole card opens the signup */
.pvr.pvd .pvd-join-title svg{flex:none}
.pvr.pvd .pvd-join-text{margin:0; padding:12px 16px 6px; font-size:var(--pvr-fs-meta); line-height:1.5; color:var(--pvr-muted)}
.pvr.pvd .pvd-join-note{position:relative; z-index:1; margin:0; padding:0 16px 12px; font-size:var(--pvr-fs-meta); line-height:1.5; color:var(--pvr-muted)}

@media (min-width:576px){
  .pvr.pvd .pvd-company-more{display:grid}
  .pvr.pvd .pvd-states-list{gap:0 28px; padding:10px 20px 14px}
  .pvr.pvd .pvd-search-form{padding:20px}
  .pvr.pvd .pvd-list-lead{padding:14px 20px 4px}
  .pvr.pvd .pvd-companies{padding:0 10px}
  .pvr.pvd .pvd-list-all{padding:16px 20px 20px}
  .pvr.pvd .pvd-list-all a.pvr-btn-quiet{width:auto}
  .pvr.pvd .pvd-start a.pvr-btn-quiet{width:auto; min-width:260px}
  .pvr.pvd .pvd-new ul{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 24px; margin:0}
  .pvr.pvd .pvd-new li:nth-child(2){border-top:0}
}
@media (min-width:768px){
  .pvr.pvd .pvd-states-list{grid-template-columns:repeat(3,minmax(0,1fr))}
  .pvr.pvd .pvd-search-form{grid-template-columns:repeat(4,minmax(0,1fr))}
  .pvr.pvd .pvd-search-action{display:flex; justify-content:center}
  .pvr.pvd button.pvd-search-go{width:auto; min-width:260px}
}
@media (min-width:992px){
  .pvr.pvd .pvd-states-list{grid-template-columns:repeat(4,minmax(0,1fr))}
  .pvr.pvd .pvd-states-list li{min-height:34px}
  .pvr.pvd .pvd-search-form{grid-template-columns:minmax(0,1.2fr) repeat(3,minmax(0,1fr)) auto; align-items:end}
  .pvr.pvd .pvd-search-action{grid-column:auto; display:block}
  .pvr.pvd button.pvd-search-go{min-width:150px; min-height:44px; padding-top:9px; padding-bottom:9px}
  .pvr.pvd .pvd-cols{grid-template-columns:minmax(0,2fr) minmax(0,1fr); gap:28px; align-items:start}
  .pvr.pvd .pvd-side{margin-top:0}
  .pvr.pvd .pvd-start{display:none} /* the side column's card says it from here */
  /* The card stays in view while the newest companies scroll under it, and lets go where their box ends. Its wrapper carries the page's
     ground above and below it, so no row shows through around the card. */
  .pvr.pvd .pvd-join{display:block; position:sticky; top:var(--pvr-top); z-index:2; margin-top:-16px; padding:16px 0 12px; background:var(--pvr-page)}
  .pvr.pvd .pvd-side-top > .pvd-new{margin-top:0}
  .pvr.pvd .pvd-new ul{display:block}
  .pvr.pvd .pvd-new li:nth-child(2){border-top:1px solid var(--pvr-line-soft)}
}
@media (min-width:1200px){
  .pvr.pvd .pvd-states-list{grid-template-columns:repeat(5,minmax(0,1fr))}
}
