/* Professionals (docs/professionals.md): profile (/pro/<slug>), directories (/professionals/…) and
   the professional dashboard (/pro-dashboard). Builds on team-page.css (tp-* classes). */
.pro-cover { background: linear-gradient(135deg, #13253d, #24476e 55%, #2f6f8f); background-position: center; background-size: cover; height: 220px; }
.pro-cover.pro-builders { background-image: linear-gradient(135deg, #3a2c1e, #7a5534 55%, #c08a4f); }
.pro-initials { align-items: center; background: #0f4c5c; color: #fff; display: flex; font-size: 34px; font-weight: 800; height: 100%; justify-content: center; letter-spacing: -.02em; width: 100%; }
.pro-round { border-radius: 50%; overflow: hidden; }
.pro-round img, .pro-logo img { height: 100%; object-fit: cover; width: 100%; }
.pro-cred { align-items: center; background: #f1efed; border-radius: 999px; color: #5d5550; display: inline-flex; font-size: 12.5px; font-weight: 800; gap: 6px; justify-self: start; line-height: 1.35; max-width: 100%; padding: 6px 11px; }
.tp-split > *, .pro-kv > div { min-width: 0; }
.pro-svc { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.pro-svc article { background: var(--tp-card); border: 1px solid var(--tp-card-line); border-radius: 18px; display: grid; gap: 4px; padding: 14px 16px; }
.pro-svc strong { font-size: 15px; }
.pro-svc em { color: var(--tp-accent-text); font-size: 13px; font-style: normal; font-weight: 800; }
.pro-port { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.pro-port article { background: var(--tp-card); border-radius: 20px; box-shadow: 0 8px 26px rgba(35, 25, 20, .07); overflow: hidden; }
.pro-ph { aspect-ratio: 4 / 3; background: linear-gradient(135deg, #c9b8a6, #8e7a66); display: block; overflow: hidden; position: relative; width: 100%; border: 0; padding: 0; cursor: pointer; }
.pro-ph img { height: 100%; object-fit: cover; width: 100%; display: block; }
.pro-ph span { background: rgba(0, 0, 0, .45); border-radius: 999px; bottom: 10px; color: #fff; font-size: 12px; font-weight: 800; left: 10px; padding: 4px 9px; position: absolute; }
.pro-port .pro-port-body { display: grid; gap: 3px; padding: 12px 14px 14px; }
.pro-port h3 { font-size: 15px; margin: 0; }
.pro-port p { color: var(--tp-muted); font-size: 13px; margin: 0; }
.pro-kv { display: grid; gap: 10px; }
.pro-kv div { border-top: 1px solid var(--tp-line); display: grid; gap: 3px; padding-top: 10px; }
.pro-kv div:first-child { border-top: 0; padding-top: 0; }
.pro-kv b { color: var(--tp-muted); font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; }
.pro-kv span { font-size: 14.5px; font-weight: 700; overflow-wrap: anywhere; }
.pro-fine { color: var(--tp-muted); font-size: 12.5px; line-height: 1.5; margin: 12px 0 0; }
.pro-h2 { font-size: 21px; margin: 0 0 14px; }
.pro-banner { background: #fff8e6; border: 1px solid #f0d78f; border-radius: 16px; color: #6b4f0e; display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; margin: 16px auto 0; max-width: 1180px; padding: 12px 16px; font-size: 14px; font-weight: 700; box-sizing: border-box; width: calc(100% - 2 * clamp(16px, 4vw, 48px)); }
.pro-banner.pro-paused { background: #fdecea; border-color: #f2b8b1; color: #8a1f12; }
.pro-person-cred { color: var(--tp-muted) !important; font-size: 11.5px !important; }
.pro-link-btn { background: none; border: 0; color: var(--tp-muted); cursor: pointer; font: inherit; font-size: 13px; font-weight: 700; padding: 6px 0; text-decoration: underline; }
.pro-chip-off { background: #fdecea !important; color: #8a1f12 !important; }
/* Inquiry and report windows */
.pro-dialog { border: 0; border-radius: 22px; box-shadow: 0 24px 60px rgba(0, 0, 0, .25); color: var(--tp-ink); font-family: var(--tp-font); max-width: min(520px, calc(100vw - 24px)); padding: 0; width: 100%; box-sizing: border-box; }
.pro-dialog::backdrop { background: rgba(10, 25, 25, .45); }
.pro-dialog form { display: grid; gap: 12px; padding: 22px; }
.pro-dialog h2 { font-size: 20px; margin: 0; }
.pro-dialog p { margin: 0; color: var(--tp-muted); font-size: 13.5px; line-height: 1.5; }
.pro-form label, .pro-dialog label { display: grid; gap: 5px; font-size: 13px; font-weight: 800; color: var(--tp-soft); }
.pro-form input:not([type=checkbox]):not([type=radio]), .pro-form select, .pro-form textarea,
.pro-dialog input:not([type=checkbox]), .pro-dialog select, .pro-dialog textarea {
  border: 1px solid #c9d6da; border-radius: 12px; box-sizing: border-box; color: var(--tp-ink); font: inherit; font-size: 15px; font-weight: 500; min-height: 44px; padding: 10px 12px; width: 100%; background: #fff; }
.pro-dialog textarea, .pro-form textarea { min-height: 110px; resize: vertical; }
.pro-dialog .pro-check, .pro-form .pro-check { align-items: flex-start; display: flex; gap: 10px; font-weight: 700; }
.pro-check input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--tp-accent); }
.pro-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.pro-error { color: #a12616 !important; font-weight: 700; }
/* Directories */
.pro-dir { margin: 0 auto; max-width: 1180px; padding: 26px clamp(16px, 4vw, 48px) 48px; }
.pro-dir h1 { font-size: clamp(26px, 3.4vw, 38px); letter-spacing: -.03em; margin: 0; }
.pro-dir > p { color: var(--tp-muted); margin: 8px 0 0; max-width: 760px; line-height: 1.55; }
.pro-groups { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); margin-top: 22px; }
.pro-group { background: #fff; border: 1px solid var(--tp-card-line); border-radius: 24px; color: var(--tp-ink); display: grid; gap: 8px; padding: 24px; text-decoration: none; }
.pro-group strong { font-size: 20px; letter-spacing: -.02em; }
.pro-group span { color: var(--tp-muted); line-height: 1.5; }
.pro-group em { color: var(--tp-accent-text); font-style: normal; font-weight: 800; }
.pro-filters { background: #fff; border: 1px solid var(--tp-card-line); border-radius: 20px; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-top: 20px; padding: 14px; }
.pro-filters label { display: grid; gap: 4px; font-size: 12px; font-weight: 800; color: var(--tp-muted); }
.pro-filters select { border: 1px solid #c9d6da; border-radius: 10px; font: inherit; font-size: 14px; min-height: 40px; padding: 6px 10px; background: #fff; color: var(--tp-ink); min-width: 0; width: 100%; }
.pro-filters .pro-check { align-self: end; font-size: 13.5px; color: var(--tp-ink); min-height: 40px; align-items: center; display: flex; gap: 8px; }
.pro-result-note { color: var(--tp-muted); font-size: 13px; margin: 14px 2px 0; }
.pro-cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-top: 12px; }
.pro-card { background: #fff; border: 1px solid var(--tp-card-line); border-radius: 20px; color: var(--tp-ink); display: grid; gap: 10px; grid-template-rows: auto 1fr auto; padding: 16px; text-decoration: none; min-width: 0; }
.pro-card:hover { border-color: #9ccfc6; box-shadow: 0 10px 26px rgba(11, 110, 105, .1); }
.pro-card-head { align-items: center; display: grid; gap: 12px; grid-template-columns: 56px minmax(0, 1fr); }
.pro-avatar { align-items: center; background: #0f4c5c; border-radius: 50%; color: #fff; display: flex; font-size: 18px; font-weight: 800; height: 56px; justify-content: center; overflow: hidden; width: 56px; }
.pro-avatar img { height: 100%; object-fit: cover; width: 100%; }
.pro-card-head strong { display: block; font-size: 16px; overflow-wrap: anywhere; }
.pro-card-head small { color: var(--tp-accent-text); display: block; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.pro-card p { color: var(--tp-soft); font-size: 14px; line-height: 1.45; margin: 0; }
.pro-card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.pro-card-tags span { background: #eef4f6; border-radius: 999px; color: var(--tp-soft); font-size: 12px; font-weight: 700; padding: 4px 9px; }
.pro-card-foot { color: var(--tp-muted); display: flex; flex-wrap: wrap; font-size: 12.5px; font-weight: 700; gap: 4px 12px; }
.pro-empty { background: #fff; border: 1px dashed #c9d6da; border-radius: 20px; color: var(--tp-muted); margin-top: 14px; padding: 28px; text-align: center; }
.pro-join { align-items: center; background: var(--tp-navy); border-radius: 22px; color: #fff; display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: space-between; margin-top: 26px; padding: 20px 22px; }
.pro-join strong { font-size: 17px; }
.pro-join span { color: #c9d8e6; display: block; font-size: 14px; margin-top: 4px; }
.pro-more { display: flex; justify-content: center; margin-top: 18px; }
/* Dashboard */
.pro-dash { display: grid; gap: 18px; margin: 22px auto 48px; max-width: 1180px; padding: 0 clamp(16px, 4vw, 48px); }
.pro-dash-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; justify-content: space-between; }
.pro-dash-head h1 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -.03em; margin: 0; }
.pro-dash-head p { color: var(--tp-muted); margin: 6px 0 0; }
.pro-dash-head .tp-btn { min-height: 42px; }
.pro-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.pro-tabs button { background: #fff; border: 1px solid var(--tp-line); border-radius: 999px; color: var(--tp-ink); cursor: pointer; flex: 0 0 auto; font: inherit; font-size: 13.5px; font-weight: 800; padding: 8px 14px; }
.pro-tabs button[aria-selected="true"] { background: var(--tp-ink); border-color: var(--tp-ink); color: #fff; }
.pro-tiles { display: grid; gap: 12px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pro-tile { background: #fff; border: 1px solid var(--tp-card-line); border-radius: 18px; display: grid; gap: 2px; padding: 14px 16px; }
.pro-tile b { font-size: 26px; letter-spacing: -.03em; }
.pro-tile span { color: var(--tp-muted); font-size: 12.5px; font-weight: 700; }
.pro-tile em { color: #16835e; font-size: 12px; font-style: normal; font-weight: 800; }
.pro-grid2 { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
.pro-list { display: grid; }
.pro-row { align-items: center; border-top: 1px solid var(--tp-line); display: grid; gap: 4px 12px; grid-template-columns: 40px minmax(0, 1fr) auto; padding: 12px 0; }
.pro-row:first-child { border-top: 0; }
.pro-row .pro-avatar { height: 40px; width: 40px; font-size: 14px; }
.pro-row strong { font-size: 14.5px; overflow-wrap: anywhere; }
.pro-row small { color: var(--tp-muted); display: block; font-size: 12.5px; line-height: 1.45; overflow-wrap: anywhere; }
.pro-acts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.pro-mini { background: #fff; border: 1px solid var(--tp-line); border-radius: 999px; color: var(--tp-ink); cursor: pointer; font: inherit; font-size: 12px; font-weight: 800; padding: 6px 10px; text-decoration: none; white-space: nowrap; }
.pro-mini.p { background: var(--tp-grad); border: 0; color: #fff; }
.pro-mini:disabled { opacity: .55; cursor: default; }
.pro-prop { background: var(--tp-accent-soft); border-radius: 8px; color: var(--tp-accent-text); display: inline-block; font-size: 11.5px; font-weight: 800; margin-top: 3px; padding: 2px 7px; text-decoration: none; }
.pro-new { background: #e5392b; border-radius: 999px; color: #fff; font-size: 10.5px; font-weight: 800; margin-left: 6px; padding: 2px 7px; vertical-align: 2px; }
.pro-bars { display: grid; gap: 10px; margin-top: 12px; }
.pro-bars div { display: grid; gap: 4px; }
.pro-bars span { display: flex; font-size: 13px; font-weight: 700; justify-content: space-between; }
.pro-bars i { background: #eef3f4; border-radius: 999px; display: block; height: 8px; overflow: hidden; }
.pro-bars i b { background: var(--tp-grad); display: block; height: 100%; }
.pro-checklist { display: grid; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pro-checklist li { align-items: center; display: flex; font-size: 14px; font-weight: 700; gap: 8px; }
.pro-checklist li.todo { color: var(--tp-muted); }
.pro-checklist li span { align-items: center; border-radius: 50%; display: inline-flex; flex: none; font-size: 12px; height: 20px; justify-content: center; width: 20px; }
.pro-checklist li.done span { background: #e8f5ef; color: #16835e; }
.pro-checklist li.todo span { border: 2px solid #d3dde0; box-sizing: border-box; }
.pro-prog { background: #eef3f4; border-radius: 999px; height: 10px; margin: 4px 0 14px; overflow: hidden; }
.pro-prog b { background: var(--tp-grad); display: block; height: 100%; }
.pro-toggle { align-items: center; display: flex; font-size: 14px; font-weight: 800; gap: 10px; justify-content: space-between; margin-top: 16px; border-top: 1px solid var(--tp-line); padding-top: 14px; }
.pro-switch { appearance: none; background: #c9d3d6; border-radius: 999px; cursor: pointer; flex: none; height: 26px; margin: 0; position: relative; transition: background .15s; width: 46px; }
.pro-switch::after { background: #fff; border-radius: 50%; content: ""; height: 20px; left: 3px; position: absolute; top: 3px; transition: left .15s; width: 20px; }
.pro-switch:checked { background: #16835e; }
.pro-switch:checked::after { left: 23px; }
.pro-share { align-items: center; display: flex; flex-wrap: wrap; gap: 14px; }
.pro-share canvas { border: 6px solid #fff; border-radius: 10px; box-shadow: 0 0 0 1px var(--tp-line); flex: 0 0 auto; height: 96px; image-rendering: pixelated; width: 96px; }
.pro-share-link { display: grid; gap: 8px; min-width: 0; flex: 1 1 180px; }
.pro-share-link code { background: var(--tp-tint); border-radius: 10px; font-size: 13px; overflow-wrap: anywhere; padding: 8px 10px; }
.pro-soon { background: #f4efea; border-radius: 999px; color: var(--tp-muted); font-size: 11px; font-weight: 800; letter-spacing: .04em; padding: 3px 8px; text-transform: uppercase; }
.pro-form { display: grid; gap: 16px; }
.pro-form fieldset { border: 1px solid var(--tp-card-line); border-radius: 18px; display: grid; gap: 12px; margin: 0; padding: 16px; min-width: 0; background: #fff; }
.pro-form legend { font-size: 15px; font-weight: 800; padding: 0 6px; }
.pro-form .pro-two { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pro-picks { display: grid; gap: 6px 12px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.pro-picks label { align-items: center; display: flex; font-size: 14px; font-weight: 600; gap: 8px; color: var(--tp-ink); }
.pro-picks input { width: 18px; height: 18px; flex: none; accent-color: var(--tp-accent); }
.pro-service-row { display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) minmax(0, 160px) auto; align-items: center; }
.pro-repeat { display: grid; gap: 10px; }
.pro-repeat > div { border: 1px solid var(--tp-line); border-radius: 14px; display: grid; gap: 10px; padding: 12px; }
.pro-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.pro-thumbs figure { margin: 0; position: relative; }
.pro-thumbs img { border-radius: 10px; height: 72px; object-fit: cover; width: 96px; display: block; }
.pro-thumbs button { position: absolute; top: 4px; right: 4px; border: 0; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; cursor: pointer; font-size: 12px; padding: 2px 7px; }
.pro-photo-pick { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; }
.pro-photo-pick img { border-radius: 14px; height: 72px; object-fit: cover; width: 72px; background: var(--tp-tint); }
.pro-photo-pick.cover img { width: 160px; }
.pro-save-bar { align-items: center; background: #fff; border: 1px solid var(--tp-card-line); border-radius: 18px; bottom: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.08); display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; padding: 12px 14px; position: sticky; z-index: 5; }
.pro-save-bar p { margin: 0; color: var(--tp-muted); font-size: 13px; font-weight: 700; }
.pro-save-bar div { display: flex; flex-wrap: wrap; gap: 8px; }
.pro-start { display: grid; gap: 14px; max-width: 640px; }
.pro-start .pro-picks { grid-template-columns: 1fr; }
/* Card headings inside the cards (a floated legend sits inside the fieldset instead of on its
   border) and each choice as a tappable tile that highlights when picked (owner request, 2026-10-08). */
.pro-form fieldset { padding: 18px; }
.pro-form legend { float: left; width: 100%; padding: 0; margin: 0 0 2px; color: var(--tp-ink); }
.pro-form legend + * { clear: both; }
.pro-start .pro-picks { gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pro-start .pro-picks label { background: var(--tp-tint); border: 1.5px solid var(--tp-card-line); border-radius: 14px; cursor: pointer; font-weight: 700; min-height: 48px; padding: 12px 14px; transition: border-color .15s, background .15s, box-shadow .15s; }
.pro-start .pro-picks label:hover { border-color: #b9d3cf; }
.pro-start .pro-picks label:has(input:checked) { background: var(--tp-accent-soft); border-color: var(--tp-accent); box-shadow: 0 0 0 1px var(--tp-accent) inset; color: var(--tp-accent-text); }
.pro-start .pro-picks label:has(input:focus-visible) { outline: 3px solid #75a6a0; outline-offset: 2px; }
@media (max-width: 520px) { .pro-start .pro-picks { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .pro-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pro-grid2 { grid-template-columns: 1fr; } }
@media (max-width: 720px) {
  .pro-cover { height: 150px; }
  .pro-row { grid-template-columns: 40px minmax(0, 1fr); }
  .pro-row .pro-acts { grid-column: 2; justify-content: flex-start; }
  .pro-form .pro-two { grid-template-columns: 1fr; }
  .pro-service-row { grid-template-columns: minmax(0, 1fr) auto; }
  .pro-service-row input[data-fee] { grid-column: 1; }
  .tp-card-box { padding: 20px; }
}
