/* pro-web.css — BUDU Business pages on the website (2026-11-10)
   /business, /jobs, job pages, /companies, company pages and the professional
   sections on public profiles. Uses the tokens from nicekin.css. */

.pw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.pw-card {
  display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: var(--r-lg);
  background: var(--paper); border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.pw-card:hover { border-color: var(--violet); box-shadow: var(--sh-2); color: var(--ink); transform: translateY(-1px); }
.pw-card:focus-visible { outline: 3px solid var(--violet-100); outline-offset: 2px; }
.pw-card__main { display: grid; gap: 4px; min-width: 0; flex: 1; }
.pw-card__title { font: 700 1.08rem/1.25 var(--f-display); letter-spacing: -.01em; overflow-wrap: anywhere; }
.pw-card__sub { font-size: .92rem; color: var(--muted); overflow-wrap: anywhere; }
.pw-card__sub--ink { color: var(--ink-2); }
.pw-card__foot { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.pw-card__foot b { color: var(--violet); }
.pw-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pw-tag { padding: 3px 10px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.pw-tag--mint { background: #e6f8f1; border-color: #c4eedd; color: #0a7d5a; }
.pw-tag--sun { background: #fff6dc; border-color: #f5e3a6; color: #6b4e00; }
.pw-logo {
  flex: 0 0 52px; width: 52px; height: 52px; border-radius: 14px; overflow: hidden; display: grid; place-items: center;
  background: #fff; border: 1px solid var(--line);
}
.pw-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pw-logo--letter { border: 0; background: hsl(var(--h, 256) 62% 92%); color: hsl(var(--h, 256) 55% 32%); font: 800 1.35rem var(--f-display); }
.pw-logo--lg { flex-basis: 88px; width: 88px; height: 88px; border-radius: 24px; }
.pw-logo--lg.pw-logo--letter { font-size: 2.3rem; }

/* filters on /jobs */
.pw-filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 22px; }
.pw-filter input[type=search] {
  flex: 1 1 260px; min-height: 48px; border-radius: var(--r); border: 1px solid var(--line-2); padding: 0 16px; font: 1rem var(--f-text); color: var(--ink); background: var(--paper);
}
.pw-filter input[type=search]:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-50); }
.pw-filter .bu-btn { min-height: 48px; }
.bu-chips.pw-chiprow { margin-bottom: 24px; }
.bu-chips.pw-chiprow a[aria-current] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* detail pages (job, company) */
.pw-detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.pw-head { display: grid; gap: 8px; }
.pw-head h1 { margin: 10px 0 0; max-width: 24ch; }
.pw-head__sub { font-size: 1.05rem; color: var(--ink-2); }
.pw-head__sub a { font-weight: 700; }
.pw-head__meta { font-size: .9rem; color: var(--muted); }
.pw-sec { margin-top: 30px; }
.pw-sec + .pw-sec { padding-top: 28px; border-top: 1px solid var(--line); }
.pw-sec h2 { font: 700 1.3rem/1.2 var(--f-display); letter-spacing: -.015em; margin: 0 0 14px; }
.pw-sec h2 small { font-weight: 500; color: var(--muted); font-size: .75em; }
.pw-body { font-size: 1.05rem; line-height: 1.7; color: var(--ink-2); max-width: 66ch; overflow-wrap: anywhere; }
.pw-chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pw-chips li { padding: 7px 14px; border-radius: var(--r-pill); background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: .92rem; }
.pw-chips li b { margin-left: 6px; font-size: .8rem; color: var(--violet); background: var(--violet-50); border-radius: 999px; padding: 1px 7px; }
.pw-side { position: sticky; top: 96px; display: grid; gap: 14px; }
.pw-box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; background: var(--paper); display: grid; gap: 12px; }
.pw-box h2 { font: 700 1.1rem var(--f-display); margin: 0; }
.pw-box p { margin: 0; color: var(--ink-2); font-size: .95rem; }
.pw-box .bu-btn { width: 100%; }
.pw-box--tint { background: var(--surface); }
.pw-closed { padding: 14px 16px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); font-weight: 600; }
.pw-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.pw-person { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r); border: 1px solid var(--line); color: var(--ink); text-decoration: none; background: var(--paper); min-width: 0; }
.pw-person:hover { border-color: var(--violet); color: var(--ink); }
.pw-person img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: 0 0 48px; background: var(--surface); }
.pw-person span { display: grid; gap: 1px; min-width: 0; }
.pw-person span span { font-size: .88rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-kv { margin: 0; display: grid; gap: 8px; }
.pw-kv div { display: flex; justify-content: space-between; gap: 14px; font-size: .95rem; }
.pw-kv dt { color: var(--muted); font-weight: 500; }
.pw-kv dd { margin: 0; font-weight: 600; text-align: right; }

/* /business landing */
.pw-three { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
.pw-three li { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; background: var(--paper); display: grid; gap: 8px; align-content: start; }
.pw-three i { width: 44px; height: 44px; border-radius: 12px; background: var(--violet-50); color: var(--violet); display: grid; place-items: center; font-size: 1.1rem; }
.pw-three h3 { margin: 6px 0 0; font-size: 1.15rem; }
.pw-three p { margin: 0; color: var(--ink-2); font-size: .97rem; }
.pw-three a { font-weight: 700; }
.pw-rowhead { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.pw-rowhead h2 { margin: 0; }
.pw-rowhead a { font-weight: 700; white-space: nowrap; }

/* professional sections on public profiles */
.pv-headline { font: 600 1.15rem/1.35 var(--f-text); margin-top: 8px; max-width: 46ch; }
.pw-items { display: grid; }
.pw-item { display: flex; gap: 14px; padding: 14px 0; }
.pw-item + .pw-item { border-top: 1px solid var(--line); }
.pw-item__ic { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 12px; background: var(--violet-50); color: var(--violet); display: grid; place-items: center; overflow: hidden; }
.pw-item__ic img { width: 100%; height: 100%; object-fit: cover; }
.pw-item__main { display: grid; gap: 2px; min-width: 0; }
.pw-item__main b { font-size: 1.02rem; }
.pw-item__main span { color: var(--ink-2); }
.pw-item__main small { color: var(--muted); font-size: .86rem; }
.pw-item__main p { margin: 6px 0 0; color: var(--ink-2); line-height: 1.6; max-width: 64ch; overflow-wrap: anywhere; }
.pw-rec { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 10px; background: var(--paper); }
.pw-rec + .pw-rec { margin-top: 12px; }
.pw-rec p { margin: 0; color: var(--ink-2); line-height: 1.65; max-width: 64ch; overflow-wrap: anywhere; }
.pw-rec .pw-person { border: 0; padding: 0; }

@media (max-width: 900px) {
  .pw-detail { grid-template-columns: 1fr; gap: 20px; }
  .pw-side { position: static; }
}
@media (max-width: 480px) {
  .pw-grid { grid-template-columns: 1fr; }
  .pw-card { padding: 14px; }
}

/* ── Company page, round 2 (2026-11-12): cover header, section cards, reviews ── */
.cp-head { margin-top: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cp-cover { height: clamp(110px, 18vw, 220px); background: #dfe7f3 center / cover no-repeat; }
.cp-head__body { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 22px; padding: 0 26px 22px; align-items: start; }
.cp-head .pw-logo.cp-logo { width: 116px; height: 116px; flex-basis: 116px; margin-top: -46px; border: 4px solid var(--paper); border-radius: 14px; background-color: var(--paper); font-size: 2.6rem; }
.cp-head .pw-logo--letter.cp-logo { background: hsl(var(--h, 220) 62% 92%); }
.cp-head__main { padding-top: 16px; display: grid; gap: 5px; min-width: 0; }
.cp-head__main h1 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); overflow-wrap: anywhere; }
.cp-head__main p { margin: 0; }
.cp-tagline { font-size: 1.08rem; color: var(--ink); }
.cp-meta { color: var(--muted); font-size: .95rem; }
.cp-meta--ink { color: var(--ink-2); font-weight: 500; }
.cp-rating { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); text-decoration: none; font-size: .95rem; justify-self: start; margin-top: 2px; }
.cp-rating b { color: var(--ink); }
.cp-rating:hover span { text-decoration: underline; }
.pw-stars { display: inline-flex; gap: 2px; color: #e8a013; font-size: .85rem; }
.pw-stars .far { color: var(--line-2, #cfd6dd); }
.pw-rating i { color: #e8a013; font-size: .8em; }
.cp-cta { display: flex; gap: 8px; padding-top: 18px; flex-wrap: wrap; }
.cp-nav { display: flex; gap: 4px; padding: 0 18px; border-top: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.cp-nav::-webkit-scrollbar { display: none; }
.cp-nav a { flex: none; padding: 14px 12px; color: var(--muted); font-weight: 600; font-size: .95rem; text-decoration: none; border-bottom: 2px solid transparent; }
.cp-nav a:hover { color: var(--violet); border-bottom-color: var(--violet); }
.cp-nav a span { font-size: .78rem; background: var(--surface); border-radius: 999px; padding: 1px 7px; margin-left: 4px; color: var(--muted); }
.pw-detail.cp-detail { margin-top: 20px; gap: 20px; grid-template-columns: minmax(0, 1fr) 330px; }
.cp-main { display: grid; gap: 16px; min-width: 0; }
.cp-card { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 24px 26px; scroll-margin-top: 96px; min-width: 0; }
.cp-card > h2 { margin: 0 0 14px; font: 700 1.25rem var(--f-text); letter-spacing: -.01em; }
.cp-card > h2 small { font-weight: 500; color: var(--muted); font-size: .75em; }
.cp-card > h3 { margin: 22px 0 10px; font: 600 .92rem var(--f-text); color: var(--muted); }
.cp-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 18px; margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line); }
.cp-facts dt { font-size: .85rem; color: var(--muted); }
.cp-facts dd { margin: 2px 0 0; font-weight: 600; }
.cp-items { list-style: none; margin: 0; padding: 0; }
.cp-items li { padding: 14px 0; border-top: 1px solid var(--line); }
.cp-items li:first-child { border-top: 0; padding-top: 0; } .cp-items li:last-child { padding-bottom: 0; }
.cp-items li > div { display: flex; justify-content: space-between; gap: 16px; align-items: baseline; }
.cp-items b { font-size: 1.02rem; }
.cp-price { color: var(--ink-2); font-weight: 600; font-size: .92rem; white-space: nowrap; }
.cp-items p { margin: 4px 0 0; color: var(--ink-2); max-width: 66ch; }
.cp-perks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 22px; }
.cp-perks li { display: flex; gap: 10px; align-items: flex-start; }
.cp-perks i { color: #0b7a5b; margin-top: 4px; }
.cp-perks b { font-weight: 600; }
.cp-perks p { margin: 2px 0 0; color: var(--muted); font-size: .92rem; }
.cp-post + .cp-post { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.cp-post__when { margin: 0 0 6px; font-size: .85rem; color: var(--muted); }
.cp-post img { display: block; width: 100%; max-height: 440px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); margin-top: 14px; }
.cp-rsum { display: grid; grid-template-columns: auto minmax(0, 280px); gap: 32px; align-items: center; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.cp-ravg { display: grid; gap: 4px; justify-items: start; }
.cp-ravg b { font: 700 2.8rem/1 var(--f-text); letter-spacing: -.03em; }
.cp-ravg span:last-child { font-size: .85rem; color: var(--muted); }
.cp-rbars { display: grid; gap: 6px; }
.cp-rbars > div { display: grid; grid-template-columns: 12px minmax(0, 1fr) 24px; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); }
.cp-rbars > div > i { display: block; height: 8px; border-radius: 4px; background: var(--surface); overflow: hidden; }
.cp-rbars > div > i > i { display: block; height: 100%; background: #e8a013; border-radius: 4px; }
.cp-rbars em { font-style: normal; text-align: right; }
.cp-review + .cp-review { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.cp-review header { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cp-review header .pw-person { border: 0; padding: 0; background: none; }
.cp-review header .pw-person img { width: 40px; height: 40px; flex-basis: 40px; }
.cp-review > p { margin: 12px 0 0; color: var(--ink-2); line-height: 1.65; max-width: 68ch; }
.cp-reply { margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--violet-100, #dbe6fd); background: var(--surface); border-radius: 0 8px 8px 0; }
.cp-reply b { font-size: .88rem; }
.cp-reply p { margin: 4px 0 0; color: var(--ink-2); font-size: .95rem; }
.cp-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cp-contact li { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; overflow-wrap: anywhere; }
.cp-contact i { width: 18px; text-align: center; color: var(--muted); margin-top: 4px; flex: none; }
.cp-socials { display: flex; flex-wrap: wrap; gap: 8px; }
.cp-socials a { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; color: var(--ink-2); text-decoration: none; }
.cp-socials a:hover { border-color: var(--violet); color: var(--violet); }
.cp-hours { margin: 0; display: grid; gap: 6px; }
.cp-hours > div { display: flex; justify-content: space-between; gap: 12px; font-size: .95rem; color: var(--ink-2); }
.cp-hours dd { margin: 0; font-variant-numeric: tabular-nums; }
.cp-similar { display: grid; gap: 4px; }
.cp-similar a { display: flex; gap: 12px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.cp-similar a:hover { background: var(--surface); }
.cp-similar a > span:last-child { display: grid; min-width: 0; }
.cp-similar a span span { font-size: .88rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 899px) {
  .pw-detail.cp-detail { grid-template-columns: 1fr; }
  .cp-head__body { grid-template-columns: 1fr; padding: 0 18px 18px; }
  .cp-head .pw-logo.cp-logo { width: 88px; height: 88px; flex-basis: 88px; margin-top: -36px; font-size: 2rem; }
  .cp-head__main { padding-top: 4px; }
  .cp-cta { padding-top: 10px; }
  .cp-cta .bu-btn { flex: 1 1 auto; }
  .cp-card { padding: 18px; }
  .cp-rsum { grid-template-columns: 1fr; gap: 16px; }
  .cp-nav { padding: 0 8px; }
}
