/* Public pro profile. Black and white, mobile first, Houzz-like sections. */
.profile { background: #fff; }
.profile .site-header { height: auto; }
.profile .site-header .wrap { height: auto; min-height: var(--header); flex-wrap: wrap; padding-block: 8px; }
.identity h1, .about-copy, .card h3 { overflow-wrap: anywhere; }
.cover {
  height: 168px;
  background: #111;
  display: grid;
  place-items: center;
  color: #fff;
}
.cover img { width: 100%; height: 168px; object-fit: cover; }
.cover span { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.identity {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  align-items: start;
  padding: 0 0 8px;
  margin-top: 12px;
  position: relative;
}
.identity > .mark {
  width: 88px;
  height: 88px;
  min-width: 88px;
  max-width: 88px;
  aspect-ratio: 1;
  flex: 0 0 88px;
  box-sizing: border-box;
  margin-top: -44px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e5e5e5;
  box-shadow: 0 1px 4px rgba(17, 17, 17, 0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 12px;
  justify-self: start;
  align-self: start;
}
.identity > .mark img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}
.identity .btn { margin-top: 12px; }
.where { margin-top: 4px; font-weight: 600; }
.serves { color: var(--muted); margin-top: 2px; }
.identity h1 { font-size: 28px; line-height: 36px; }
.meta { color: var(--muted); margin-top: 6px; }
.jumps {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  position: sticky;
  top: var(--header);
  background: #fff;
  z-index: 5;
}
.jumps a { text-decoration: none; font-weight: 600; white-space: nowrap; padding: 8px 0; }
.block { padding: 28px 0; border-bottom: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  border: 1px solid #111;
  padding: 6px 10px;
  font-size: 14px;
  line-height: 20px;
  background: #fff;
}
.areas { columns: 1; margin: 12px 0 0; padding: 0; list-style: none; }
.areas li { break-inside: avoid; padding: 4px 0; }
.grid { display: grid; gap: 16px; margin-top: 16px; }
.card {
  border: 1px solid var(--line);
  background: #fff;
  text-align: start;
  padding: 0;
  color: inherit;
  cursor: pointer;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
  text-decoration: none;
}
.card-link { display: block; color: inherit; text-decoration: none; }
.project-page h1 { font-size: 28px; line-height: 36px; margin: 12px 0; }
.project-page .lead { font-size: 18px; line-height: 28px; }
.project-page .crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; color: var(--muted); }
.project-page .crumbs a { color: inherit; }
.project-photos { display: grid; gap: 16px; }
.project-photos figure { margin: 0; }
.project-photos img { width: 100%; height: auto; display: block; background: #f7f7f7; }
.project-photos figcaption { padding: 8px 0 0; font-weight: 600; }
.card img { width: 100%; height: 220px; object-fit: cover; background: #f7f7f7; }
.card div { padding: 12px; }
.card h3 { font-size: 18px; line-height: 24px; margin: 0; }
.ph {
  height: 160px;
  display: grid;
  place-items: center;
  background: #f7f7f7;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.empty-box {
  margin-top: 12px;
  border: 1px solid var(--line);
  background: #f7f7f7;
  padding: 20px;
}
.review { border-top: 1px solid var(--line); padding: 14px 0; }
.stars { letter-spacing: 0; }
.star-row { display: inline-flex; gap: 1px; vertical-align: -2px; }
.star-row .star { width: 16px; height: 16px; }
.star-row .star path { fill: none; stroke: #111; stroke-width: 1.2; }
.star-row .star.on path { fill: #111; }
.creds { display: grid; gap: 10px; margin: 12px 0 0; }
.creds div { display: grid; grid-template-columns: 140px 1fr; gap: 8px; }
.creds dt { color: var(--muted); }
.quote-form { display: grid; gap: 12px; margin-top: 12px; }
.langs { display: flex; gap: 10px; margin-inline-start: auto; font-size: 14px; }
.langs a { text-decoration: none; }
.langs a[aria-current="true"] { font-weight: 700; text-decoration: underline; }
.text-link { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }
.ba { position: relative; height: 220px; overflow: hidden; background: #111; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { clip-path: inset(0 0 0 calc(100% - var(--pos))); }
.ba-range { position: absolute; inset-inline: 0; bottom: 8px; width: calc(100% - 16px); margin-inline: 8px; accent-color: #111; }
.ba-label { position: absolute; top: 8px; background: #fff; color: #111; border: 1px solid #111; padding: 2px 6px; font-size: 12px; font-weight: 700; }
.ba-label.before { inset-inline-start: 8px; }
.ba-label.after { inset-inline-end: 8px; }
.stars-pick { border: 0; margin: 0; padding: 0; }
.star-input { display: inline-flex; gap: 2px; }
.star-choice { position: relative; cursor: pointer; line-height: 0; }
.star-choice input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.star-choice .star { width: 28px; height: 28px; display: block; }
.star-choice .star path { fill: none; stroke: #111; stroke-width: 1.2; }
.star-choice:has(input:checked) .star path,
.star-choice:has(~ .star-choice input:checked) .star path { fill: #111; }
.star-input:hover .star path { fill: none; }
.star-input:hover .star-choice:hover .star path,
.star-input:hover .star-choice:has(~ .star-choice:hover) .star path { fill: #111; }
.star-choice input:focus-visible + .star { outline: 2px solid #111; outline-offset: 2px; }
dialog.gallery, dialog.sheet {
  border: 0;
  padding: 0;
  width: min(960px, calc(100% - 24px));
  max-height: calc(100% - 24px);
  background: #fff;
  color: #111;
}
dialog.gallery::backdrop, dialog.sheet::backdrop { background: rgba(0, 0, 0, 0.72); }
.gallery-body { padding: 16px; }
.gallery-body img { width: 100%; max-height: 70vh; object-fit: contain; background: #111; }
.gallery-body figure { margin: 0 0 16px; }
.gallery-body .story { margin: 0 0 16px; white-space: pre-wrap; }
.about-copy p { margin: 12px 0 0; white-space: pre-wrap; }
.badge { display: inline-block; margin-top: 8px; border: 1px solid #111; padding: 4px 8px; font-size: 13px; font-weight: 600; background: #fff; }
.badge.verified { background: #F5F5F5; }
.badge.verified::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 6px; border-radius: 50%; background: #6F8B37; vertical-align: middle; }
.chip { cursor: pointer; background: #fff; }
.chip.on { background: #111; color: #fff; }
.bar { display: grid; grid-template-columns: 16px 1fr 24px; gap: 8px; align-items: center; margin: 4px 0; }
.bar .track { display: block; height: 8px; background: #eee; }
.bar i { display: block; height: 8px; background: #111; }
.score { display: flex; gap: 12px; align-items: baseline; margin-top: 12px; }
.score .big { font-size: 40px; font-weight: 700; line-height: 1; }
.tag { display: inline-block; border: 1px solid #111; padding: 2px 6px; font-size: 12px; font-weight: 700; }
#area-map { height: 280px; margin-top: 12px; background: #f7f7f7; }
.sheet { width: min(560px, calc(100% - 24px)); padding: 16px; }
#load-more { margin-top: 16px; }
.gallery-body figcaption { padding: 8px 0; font-weight: 600; }
.head-actions { display: flex; flex-wrap: nowrap; gap: 0; margin-top: 10px; }
.icon-act {
  width: 68px;
  min-height: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 2px;
  border: 0;
  background: transparent;
  color: #111;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  line-height: 13px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.icon-act svg { width: 22px; height: 22px; }
.icon-act span { max-width: 68px; }
.icon-act[aria-pressed="true"] svg path { fill: currentColor; }
.stars a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.layout { display: block; }
.side-col .quote-form { margin-top: 0; }
.creds dd { margin: 0; }
.dock { display: none; }
html:has(dialog.review-sheet[open]),
body:has(dialog.review-sheet[open]) { overflow: hidden; }
@media (max-width: 719px) {
  html, body.profile { overflow-x: hidden; max-width: 100%; }
  .creds div { grid-template-columns: 1fr; }
  .jumps { gap: 12px; }
  .identity {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    margin-top: 0;
  }
  .identity > .mark {
    width: 88px;
    height: 88px;
    min-width: 88px;
    max-width: 88px;
    aspect-ratio: 1;
    flex: 0 0 88px;
    margin-top: -44px;
    margin-bottom: 4px;
    align-self: flex-start;
    justify-self: start;
  }
  .identity > div:not(.mark) { width: 100%; min-width: 0; }
  .identity h1 { font-size: 22px; line-height: 30px; }
  dialog#quote.review-sheet,
  dialog#review-dialog.review-sheet {
    inset: 0;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    height: 100%;
    max-height: 100%;
    margin: 0;
    padding: 0;
    transform: none;
    box-sizing: border-box;
    overflow-x: hidden;
  }
  dialog.review-sheet .quote-form,
  dialog.review-sheet .sheet-body,
  dialog.review-sheet .sheet-head,
  dialog.review-sheet .sheet-foot,
  dialog.review-sheet .field,
  dialog.review-sheet .consent {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  dialog.review-sheet .sheet-body {
    overflow-x: hidden;
    overflow-y: auto;
    padding: 16px;
    grid-template-columns: minmax(0, 1fr);
  }
  dialog.review-sheet .field { display: grid; }
  dialog.review-sheet .consent {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
    text-align: start;
  }
  .head-actions { flex-wrap: wrap; }
  dialog.review-sheet select,
  dialog.review-sheet input:not([type="checkbox"]),
  dialog.review-sheet textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }
  .dock {
    display: block;
    position: fixed;
    inset-inline: 0;
    bottom: 0;
    z-index: 20;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }
  body.profile { padding-bottom: 76px; }
}
@media (min-width: 720px) {
  .cover, .cover img { height: 280px; }
  .identity { display: grid; grid-template-columns: 112px 1fr; align-items: start; margin-top: 0; }
  .identity > .mark {
    width: 112px;
    height: 112px;
    min-width: 112px;
    max-width: 112px;
    aspect-ratio: 1;
    flex: 0 0 112px;
    margin-top: -56px;
  }
  .areas { columns: 3; }
  .grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1100px) {
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
  .side-col { position: sticky; top: calc(var(--header) + 12px); }
}
@media (min-width: 1100px) {
  .layout .grid { grid-template-columns: 1fr 1fr; }
}
