/* T511 provider profile (/provider/{slug}) and provider directory (/providers), src/providers.rs. Phone first. */
.prv-wrap, .prv-kit { --pv-ink: #111827; --pv-soft: #374151; --pv-mute: #6b7280; --pv-line: #e5e7eb; --pv-bg: #f8fafc; --pv-accent: var(--brand, #2563eb); --pv-ok: #166534; --pv-ok-bg: #dcfce7; --pv-warm: #92400e; --pv-warm-bg: #fef3c7; --pv-star: #f59e0b; }
.prv-wrap {
  max-width: 1180px; margin: 0 auto; padding: 12px 16px 40px; color: var(--pv-ink); font-size: 16px; line-height: 1.55; }
.prv-wrap *, .prv-wrap *:before, .prv-wrap *:after { box-sizing: border-box; }
.prv-muted { color: var(--pv-mute); }
.prv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.prv-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; color: var(--pv-mute); margin: 4px 0 14px; }
.prv-crumbs a { color: var(--pv-soft); text-decoration: none; }
.prv-crumbs a:hover { text-decoration: underline; }
.prv-sep { color: #cbd5e1; }
.prv-dot { margin: 0 6px; color: #9ca3af; }
.prv-stars { color: var(--pv-star); letter-spacing: 1px; margin-right: 4px; }
.prv-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid #cbd5e1; background: #fff; color: var(--pv-ink);
  font-weight: 600; font-size: 15px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.prv-btn:hover { background: var(--pv-bg); }
.prv-btn:focus-visible, .prv-wrap a:focus-visible, .prv-wrap input:focus-visible, .prv-wrap select:focus-visible { outline: 3px solid #93c5fd; outline-offset: 2px; }
.prv-btn-main { background: var(--pv-accent); border-color: var(--pv-accent); color: #fff; }
.prv-btn-main:hover { background: var(--pv-accent); filter: brightness(.92); }
.prv-link { color: var(--pv-soft); }
.prv-ok { color: var(--pv-ok); }

/* badges */
.prv-badges { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 8px 0 0; padding: 0; }
.prv-b { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #eef2ff; color: #3730a3; }
.prv-b-ok { background: var(--pv-ok-bg); color: var(--pv-ok); }
.prv-b-ok:before { content: "\2713"; }
.prv-b-work { background: var(--pv-warm-bg); color: var(--pv-warm); }
.prv-b-off { background: #f3f4f6; color: var(--pv-mute); }

/* profile head */
.prv-head { background: #fff; border: 1px solid var(--pv-line); border-radius: 16px; overflow: hidden; }
.prv-cover { display: block; width: 100%; height: 180px; object-fit: cover; }
.prv-band { height: 72px; background: linear-gradient(120deg, var(--pv-accent), #0f172a); opacity: .9; }
.prv-id { display: flex; gap: 14px; align-items: flex-end; padding: 0 16px; margin-top: -40px; }
.prv-logo { width: 88px; height: 88px; border-radius: 16px; object-fit: cover; background: #fff; border: 4px solid #fff; box-shadow: 0 2px 10px rgba(15, 23, 42, .14); flex: none; }
.prv-logo-ph { display: flex; align-items: center; justify-content: center; font-size: 34px; font-weight: 700; color: #fff; background: var(--pv-accent, var(--brand, #2563eb)); }
.prv-id-t { min-width: 0; padding-top: 44px; }
.prv-name { font-size: 24px; line-height: 1.2; margin: 0; font-weight: 700; overflow-wrap: anywhere; }
.prv-trade { margin: 4px 0 0; color: var(--pv-soft); }
.prv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--pv-line); border-top: 1px solid var(--pv-line); margin-top: 16px; }
.prv-stat { background: #fff; padding: 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.prv-stat b { font-size: 20px; line-height: 1.2; }
.prv-stat span { font-size: 13px; color: var(--pv-mute); }
.prv-stat .prv-stars { font-size: 14px; }
.prv-acts { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 16px 16px; border-top: 1px solid var(--pv-line); }
.prv-acts .prv-btn { flex: 1 1 auto; }

/* layout + cards */
.prv-grid { display: grid; gap: 16px; margin-top: 16px; }
.prv-card { background: #fff; border: 1px solid var(--pv-line); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
.prv-main .prv-card:last-child, .prv-side .prv-card:last-child { margin-bottom: 0; }
.prv-h2 { font-size: 18px; margin: 0 0 12px; font-weight: 700; }
.prv-about p { margin: 0 0 10px; }
.prv-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.prv-chips li { background: var(--pv-bg); border: 1px solid var(--pv-line); border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.prv-chips a { color: inherit; text-decoration: none; }
.prv-chips a:hover { text-decoration: underline; }
.prv-prices { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--pv-line); }
.prv-prices li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--pv-line); }
.prv-price { color: var(--pv-soft); white-space: nowrap; }
.prv-photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.prv-ph img, .prv-photos img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.prv-proj { padding: 0 0 14px; margin: 0 0 14px; border-bottom: 1px solid var(--pv-line); }
.prv-proj:last-child { border: 0; margin: 0; padding: 0; }
.prv-proj h3 { font-size: 16px; margin: 0; }
.prv-proj p { margin: 2px 0 8px; font-size: 14px; }

/* reviews */
.prv-rsum { display: grid; gap: 16px; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--pv-line); }
.prv-rbig { display: flex; flex-direction: column; }
.prv-rbig b { font-size: 36px; line-height: 1.1; }
.prv-rbig span { color: var(--pv-mute); font-size: 14px; }
.prv-drow { display: grid; grid-template-columns: 34px 1fr 28px; gap: 8px; align-items: center; font-size: 13px; color: var(--pv-soft); }
.prv-bar { height: 8px; background: #f1f5f9; border-radius: 999px; overflow: hidden; }
.prv-bar span { display: block; height: 100%; background: var(--pv-star); }
.prv-subs { display: grid; grid-template-columns: 1fr; gap: 6px; margin: 0; }
.prv-subs div { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.prv-subs dt { color: var(--pv-soft); }
.prv-subs dd { margin: 0; font-weight: 600; white-space: nowrap; }
.prv-review { padding: 14px 0; border-bottom: 1px solid var(--pv-line); }
.prv-review:last-child { border: 0; padding-bottom: 0; }
.prv-rhead { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 14px; }
.prv-job { margin: 6px 0 0; font-size: 14px; }
.prv-job a { color: var(--pv-ink); font-weight: 600; }
.prv-rsc { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 6px 0 0; padding: 0; font-size: 13px; color: var(--pv-soft); }
.prv-rtext { margin: 8px 0 0; }
.prv-reply { margin: 10px 0 0 12px; padding: 10px 12px; background: var(--pv-bg); border-left: 3px solid var(--pv-accent); border-radius: 6px; font-size: 14px; }
.prv-reply p { margin: 4px 0 0; }
.prv-replyform { display: flex; gap: 8px; margin-top: 10px; }
.prv-replyform input { flex: 1; min-width: 0; min-height: 44px; padding: 0 12px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 15px; }

/* side cards */
.prv-checks, .prv-ins, .prv-facts { list-style: none; margin: 0; padding: 0; }
.prv-checks li, .prv-ins li, .prv-facts li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--pv-line); font-size: 15px; }
.prv-checks li:last-child, .prv-ins li:last-child, .prv-facts li:last-child { border: 0; }
.prv-checks small, .prv-ins small { color: var(--pv-mute); font-size: 13px; }
.prv-checks .prv-ok span:before { content: "\2713"; color: var(--pv-ok); font-weight: 700; margin-right: 6px; }
.prv-checks .prv-ok small { color: var(--pv-ok); }
.prv-checks .prv-no span, .prv-ins .prv-no span { color: var(--pv-mute); }
.prv-facts span { color: var(--pv-mute); }
.prv-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.prv-tbl th, .prv-tbl td { text-align: left; padding: 8px 6px 8px 0; border-bottom: 1px solid var(--pv-line); vertical-align: top; }
.prv-tbl thead th { color: var(--pv-mute); font-weight: 600; font-size: 13px; }
.prv-msgform { display: flex; flex-direction: column; gap: 8px; }
.prv-msgform textarea { width: 100%; border: 1px solid #cbd5e1; border-radius: 10px; padding: 10px 12px; font: inherit; }
.prv-msgform .prv-btn { align-self: flex-start; }

/* directory */
.prvd-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 12px; }
.prvd-h1 { font-size: 26px; line-height: 1.2; margin: 0; font-weight: 700; }
.prvd-top p { margin: 0; }
.prvd-grid { display: grid; gap: 16px; }
.prvd-filters { background: #fff; border: 1px solid var(--pv-line); border-radius: 14px; align-self: start; }
.prvd-filters summary { padding: 12px 16px; font-weight: 700; cursor: pointer; min-height: 44px; }
.prvd-form { display: flex; flex-direction: column; gap: 6px; padding: 0 16px 16px; }
.prvd-form label { font-size: 14px; font-weight: 600; color: var(--pv-soft); margin-top: 6px; }
.prvd-form input[type=search], .prvd-form input[type=text], .prvd-form select { width: 100%; min-height: 44px; padding: 0 10px; border: 1px solid #cbd5e1; border-radius: 10px; background: #fff; font-size: 15px; }
.prvd-form fieldset { border: 0; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.prvd-form legend { font-size: 14px; font-weight: 600; color: var(--pv-soft); padding: 0; margin-bottom: 4px; }
.prvd-tick { display: flex !important; align-items: center; gap: 8px; min-height: 36px; font-weight: 400 !important; color: var(--pv-ink) !important; margin: 0 !important; }
.prvd-tick input { width: 18px; height: 18px; }
.prvd-btns { display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.prvd-note { background: var(--pv-warm-bg); color: var(--pv-warm); border-radius: 10px; padding: 8px 12px; margin: 0 0 12px; font-size: 14px; }
.prvd-empty { text-align: center; padding: 28px 16px; }
.pvc { display: grid; grid-template-columns: 64px 1fr; gap: 12px 14px; background: #fff; border: 1px solid var(--pv-line); border-radius: 14px; padding: 16px; margin-bottom: 12px; }
.pvc:hover { border-color: #cbd5e1; box-shadow: 0 2px 12px rgba(15, 23, 42, .06); }
.pvc .prv-logo { width: 64px; height: 64px; border-width: 0; border-radius: 12px; box-shadow: none; font-size: 26px; }
.prvc-main { min-width: 0; }
.prvc-name { font-size: 18px; line-height: 1.25; margin: 0; }
.prvc-name a { color: var(--pv-ink); text-decoration: none; }
.prvc-name a:hover { text-decoration: underline; }
.prvc-meta { margin: 2px 0 0; color: var(--pv-soft); font-size: 14px; }
.prvc-line { margin: 6px 0 0; font-size: 14px; }
.prvc-about { margin: 8px 0 0; color: var(--pv-soft); font-size: 15px; }
.prvc-quote { margin: 10px 0 0; padding: 8px 12px; background: var(--pv-bg); border-radius: 8px; font-size: 14px; color: var(--pv-soft); }
.prvc-quote .prv-stars { font-size: 12px; display: block; }
.prvc-acts { grid-column: 1 / -1; display: flex; gap: 10px; flex-wrap: wrap; }
.prvc-acts .prv-btn { flex: 1 1 140px; }
.prvd-pager { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 16px 0; }
.prvd-pager a, .prvd-pager span[aria-current] { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; padding: 0 12px; border: 1px solid var(--pv-line); border-radius: 10px; background: #fff; color: var(--pv-ink); text-decoration: none; }
.prvd-pager span[aria-current] { background: var(--pv-accent); border-color: var(--pv-accent); color: #fff; font-weight: 700; }
.prvd-browse { display: grid; gap: 16px; margin-top: 24px; }
.prvd-browse section { background: #fff; border: 1px solid var(--pv-line); border-radius: 14px; padding: 16px; }
.prvd-browse ul { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 16px; font-size: 14px; }
.prvd-browse li { padding: 3px 0; break-inside: avoid; }
.prvd-browse a { color: var(--pv-soft); }

/* the provider's own details form */
.prv-edit .prv-card label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; color: var(--pv-soft); margin-top: 8px; }
.prv-edit input[type=text], .prv-edit input[type=number], .prv-edit input[type=date], .prv-edit select { min-height: 44px; padding: 0 10px; border: 1px solid #cbd5e1; border-radius: 10px; font-size: 15px; background: #fff; width: 100%; }
.prv-row { display: grid; gap: 8px; margin-bottom: 8px; }
.prv-projed { padding: 10px 0; border-bottom: 1px solid var(--pv-line); }
.prv-projed .prv-photos { grid-template-columns: repeat(6, 1fr); margin: 6px 0; }
.prv-projnew { border: 1px dashed #cbd5e1; border-radius: 10px; padding: 10px 12px; margin-top: 12px; }

@media (min-width: 640px) {
  .prv-cover { height: 240px; }
  .prv-band { height: 96px; }
  .prv-id { padding: 0 24px; margin-top: -48px; }
  .prv-logo { width: 112px; height: 112px; }
  .prv-name { font-size: 30px; }
  .prv-acts { padding: 16px 24px 20px; }
  .prv-acts .prv-btn { flex: 0 0 auto; }
  .prv-rsum { grid-template-columns: 140px 1fr 1fr; align-items: start; }
  .prv-row { grid-template-columns: 1fr 1fr 1fr; align-items: end; }
  .pvc { grid-template-columns: 80px 1fr auto; }
  .pvc .prv-logo { width: 80px; height: 80px; }
  .prvc-acts { grid-column: auto; flex-direction: column; justify-content: flex-start; }
  .prvc-acts .prv-btn { flex: 0 0 auto; }
  .prvd-browse { grid-template-columns: 1fr 1fr; }
  .prvd-browse ul { columns: 3; }
}
@media (min-width: 960px) {
  .prv-grid { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
  .prvd-grid { grid-template-columns: 290px minmax(0, 1fr); align-items: start; }
  .prvd-filters { position: sticky; top: 16px; }
  .prvd-filters summary { pointer-events: none; list-style: none; }
  .prvd-filters summary::-webkit-details-marker { display: none; }
}
.prv-svcg { border-top: 1px solid var(--pv-line); padding: 10px 0; }
.prv-svcg:first-child { border-top: 0; padding-top: 0; }
.prv-svcg summary { cursor: pointer; min-height: 32px; display: flex; align-items: center; gap: 8px; }
.prv-svcg .prv-chips { margin: 8px 0 6px; }
.prv-glink { font-size: 14px; color: var(--pv-soft); }
@media (max-width: 639px) { .prv-stat:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* T517: the provider on service cards (/services, its sub categories, search), the service listing page and quote threads */
.prv-cline { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; font-size: 13px; line-height: 1.3; min-width: 0; color: var(--pv-soft); }
.prv-cpic { width: 32px; height: 32px; border-radius: 8px; object-fit: cover; flex: none; background: #fff; border: 1px solid var(--pv-line); }
.prv-cpic.prv-logo-ph, .prv-rpic.prv-logo-ph { font-size: 14px; border: 0; background: var(--pv-accent, var(--brand, #2563eb)); }
.prv-ctext { display: flex; flex-direction: column; min-width: 0; }
.prv-cname { font-weight: 600; color: var(--pv-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
a.prv-cname:hover, .prv-lname:hover { text-decoration: underline; }
.prv-rate { white-space: nowrap; }
.prv-rate b { margin-right: 3px; color: var(--pv-ink); }
.prv-rate .prv-stars { margin-right: 4px; }
.prv-qline { margin: 8px 0; }
.prv-lbox { margin: 14px 0; padding: 16px; border: 1px solid var(--pv-line); border-radius: 12px; background: #fff; color: var(--pv-ink); font-size: 15px; line-height: 1.5; }
.prv-lbox *, .prv-lbox *:before, .prv-lbox *:after { box-sizing: border-box; }
.prv-lhead { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; min-width: 0; }
.prv-lhead > div { min-width: 0; }
.prv-lpic { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; background: #fff; border: 1px solid var(--pv-line); }
.prv-lpic.prv-logo-ph { font-size: 24px; border: 0; background: var(--pv-accent, var(--brand, #2563eb)); }
.prv-lkicker { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--pv-mute); }
.prv-lname { display: block; font-weight: 700; font-size: 17px; color: var(--pv-ink); text-decoration: none; overflow-wrap: anywhere; }
.prv-lbox .prv-subs { margin: 8px 0 4px; padding: 10px 12px; background: var(--pv-bg); border-radius: 8px; }
.prv-lnone { margin: 0; font-size: 14px; }
.prv-lacts { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.prv-lacts .prv-btn { min-height: 40px; font-size: 14px; text-decoration: none; }
.prv-rpic { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex: none; }
.msg-avatar .prv-tpic { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; font-size: 1rem; }
.qo-userrating.prv-kit .prv-rate b { color: inherit; }
