/* Partners: expert profile pages (.pro-), the sales page /for-professionals (.fp-) and the partner area /partners (.pt-).
   Uses the colour tokens and type scale in css/styles.css and css/experience.css. Nothing here sets a new font or colour family. */

/* =====================================================================
   Expert profile (/experts/<id>, built by tools/build-static.js)
   ===================================================================== */
.pro-hero { padding: 64px 0 40px; }
.pro-head { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 48px; align-items: start; margin-top: 18px; }
.pro-id { display: flex; align-items: center; gap: 22px; margin-bottom: 22px; }
.pro-id h1 { margin: 0; }
.pro-avatar { width: 112px; height: 112px; border-radius: 28px; font-size: 32px; flex: none; }
.pro-avatar--photo { overflow: hidden; background: var(--stone); padding: 0; }
.pro-avatar--photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.pro-labels { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 10px; }
.pro-labels .listing-note, .pro-labels .paid-label { margin: 0; }
.pro-role { margin: 8px 0 0; color: var(--slate); font-weight: 600; }
.pro-hero .lede { max-width: 640px; margin: 0 0 26px; }
.pro-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pro-fine { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
/* Unpaid listings: a quiet link to Get matched beside the firm's own website */
.pro-more { align-self: center; padding: 12px 4px; font-size: 15px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

.pro-card {
  background: color-mix(in srgb, #FFFFFF 65%, var(--page, var(--cream)));
  border: 1px solid var(--line); border-radius: 24px; padding: 26px;
}
.pro-facts { margin: 0; display: grid; gap: 0; }
.pro-facts > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 14px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.pro-facts > div:first-child { padding-top: 0; }
.pro-facts dt { font-size: 14px; font-weight: 700; color: var(--slate); }
.pro-facts dd { margin: 0; font-weight: 600; }
.pro-facts > div:first-child dd { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.01em; }
.pro-reg { font-size: 14px; color: var(--slate); margin: 16px 0 0; }
.pro-reg a { color: var(--gold-deep); font-weight: 700; }

.pro-body .prov-grid > div > .h-lg { margin-top: 0; }
.pro-aside-title { font-size: 1.1rem; letter-spacing: -0.02em; margin: 0 0 14px; }

/* Video introduction: nothing loads from YouTube or Vimeo until the button is pressed (js/expert-profile.js) */
.pro-video { position: relative; aspect-ratio: 16 / 9; border-radius: 24px; overflow: hidden; background: var(--ink); margin: 0 0 12px; }
.pro-video-play {
  position: absolute; inset: 0; width: 100%; border: 0; cursor: pointer; color: var(--cream); text-align: left;
  display: flex; align-items: flex-end; gap: 18px; padding: 28px; font: inherit;
  background: radial-gradient(circle at 85% 15%, rgba(238,158,82,.32), rgba(238,158,82,0) 55%), var(--ink);
}
.pro-video-play:focus-visible { outline: 3px solid var(--gold); outline-offset: -6px; }
.pro-video-icon {
  width: 64px; height: 64px; border-radius: 50%; background: var(--gold); flex: none; position: relative;
  transition: transform .2s ease;
}
.pro-video-icon::after {
  content: ""; position: absolute; left: 26px; top: 21px;
  border-left: 18px solid var(--ink); border-top: 11px solid transparent; border-bottom: 11px solid transparent;
}
.pro-video-play:hover .pro-video-icon { transform: scale(1.06); }
.pro-video-text { display: grid; gap: 4px; }
.pro-video-text strong { font-size: 1.15rem; letter-spacing: -0.02em; }
.pro-video-text span { font-size: 14px; color: #CFC9C0; }
.pro-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.pro-video-note { font-size: 13px; color: var(--muted); margin: 0 0 40px; }
.pro-video-note a { color: var(--ink); }

@media (max-width: 900px) {
  .pro-head { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .pro-hero { padding: 40px 0 28px; }
  .pro-id { flex-direction: column; align-items: flex-start; gap: 16px; }
  .pro-avatar { width: 88px; height: 88px; border-radius: 22px; font-size: 26px; }
  .pro-facts > div { grid-template-columns: 1fr; gap: 2px; }
  .pro-actions .btn { width: 100%; justify-content: center; }
  .pro-video-play { padding: 18px; gap: 14px; }
  .pro-video-icon { width: 52px; height: 52px; }
  .pro-video-icon::after { left: 21px; top: 16px; border-left-width: 15px; border-top-width: 10px; border-bottom-width: 10px; }
}

/* =====================================================================
   Sales page (/for-professionals)
   ===================================================================== */
.fp-hero { padding: 72px 0 64px; }
.fp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr); gap: 56px; align-items: center; }
.fp-hero .breadcrumbs { margin-bottom: 18px; }
.fp-hero h1 { margin: 0 0 22px; }
.fp-hero .lede { margin: 0 0 30px; max-width: 620px; }
.fp-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fp-fine { font-size: 14px; color: var(--muted); margin: 16px 0 0; }
.fp-fine a, .fp-note a { color: var(--ink); font-weight: 600; }

/* An illustration of the partner area, built from text so it stays sharp and light */
.fp-preview { margin: 0; }
.fp-preview-card {
  background: var(--ink); color: var(--cream); border-radius: 28px; padding: 26px; position: relative; overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(17,17,17,.45);
}
.fp-preview-card::before {
  content: ""; position: absolute; right: -140px; top: -140px; width: 360px; height: 360px; pointer-events: none;
  background: radial-gradient(circle, rgba(238,150,76,.3), rgba(238,150,76,0) 62%);
}
.fp-preview-top { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: #B8B2A9; margin-bottom: 22px; position: relative; }
.fp-preview-logo { font-weight: 800; font-size: 18px; color: var(--cream); letter-spacing: -0.03em; }
.fp-preview-logo .d { color: var(--gold); }
.fp-preview-title { font-weight: 800; font-size: 1.3rem; letter-spacing: -0.02em; margin: 0 0 14px; position: relative; }
.fp-preview-row {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 14px;
  padding: 14px 16px; border-radius: 16px; background: rgba(255,250,244,.06); margin-top: 8px;
}
.fp-preview-row.is-new { background: rgba(238,158,82,.14); box-shadow: inset 0 0 0 1px rgba(238,158,82,.45); }
.fp-preview-row strong { display: block; font-size: 15px; }
.fp-preview-row span { font-size: 13px; color: #B8B2A9; }
.fp-preview-btn { background: var(--gold); color: var(--ink) !important; font-weight: 700; font-size: 13px; padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.fp-preview-status { font-weight: 600; white-space: nowrap; }
.fp-preview figcaption { font-size: 13px; color: var(--muted); margin-top: 12px; }

.fp-section { border-top: 1px solid var(--line); }
.fp-section--tint { background: color-mix(in srgb, #FFFFFF 45%, var(--page, var(--cream))); }
.fp-head { max-width: 760px; margin-bottom: 36px; }
.fp-head .h-lg, .fp-split .h-lg, .fp-offer .h-lg { margin: 0 0 16px; }
.fp-head .lede { margin: 0; }
.fp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.fp-split .lede { margin: 0; }
.fp-split .rules a, .fp-split p a { color: var(--gold-deep); font-weight: 600; }
.fp-note { color: var(--slate); max-width: 760px; font-size: 16px; margin: 24px 0 0; }

.fp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; }
.fp-steps li {
  background: color-mix(in srgb, #FFFFFF 60%, var(--page, var(--cream))); border: 1px solid var(--line); border-radius: 22px;
  padding: 22px 20px; box-shadow: inset 0 3px 0 var(--gold);
}
.fp-steps h3 { font-size: 1.05rem; letter-spacing: -0.02em; margin: 0 0 8px; }
.fp-steps p { margin: 0; font-size: 15px; color: #4E4A44; }

.fp-offer { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, 1fr); gap: 56px; align-items: start; }
.fp-offer .lede { margin: 0 0 20px; }
.fp-price-card { top: 110px; overflow: hidden; }
.fp-prices { width: 100%; border-collapse: collapse; margin: 6px 0 18px; }
.fp-prices th, .fp-prices td { padding: 12px 0; border-bottom: 1px solid rgba(255,250,244,.14); text-align: left; font-size: 16px; }
.fp-prices th { font-weight: 600; color: #E9E2D8; }
.fp-prices td { text-align: right; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; color: var(--cream); }
.fp-price-card .price-steps a { color: var(--cream); }

.fp-checks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.fp-checks > div { padding: 26px 26px 26px 0; border-bottom: 1px solid var(--line); }
.fp-checks > div:not(:nth-child(3n + 1)) { padding-left: 26px; border-left: 1px solid var(--line); }
.fp-checks h3 { font-size: 1.1rem; letter-spacing: -0.02em; margin: 0 0 6px; }
.fp-checks p { margin: 0; color: #4E4A44; font-size: 15px; }
.fp-fa-note { margin-top: 28px; max-width: 860px; }

.fp-labels { display: grid; gap: 12px; margin: 0 0 22px; }
.fp-labels p { margin: 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--white); display: grid; gap: 4px; }
.fp-labels .listing-note, .fp-labels .paid-label { margin: 0; font-size: 13px; justify-self: start; }
.fp-labels p > span:last-child { font-size: 14px; color: var(--slate); }

.fp-closer { grid-template-columns: 1fr auto; align-items: center; margin-bottom: 72px; }
.fp-closer-actions { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fp-closer-link { color: var(--cream); font-weight: 600; font-size: 15px; }

@media (max-width: 1080px) {
  .fp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .fp-hero-grid, .fp-split, .fp-offer { grid-template-columns: 1fr; gap: 32px; }
  .fp-checks { grid-template-columns: 1fr 1fr; }
  .fp-checks > div, .fp-checks > div:not(:nth-child(3n + 1)) { padding: 22px 22px 22px 0; border-left: 0; }
  .fp-checks > div:nth-child(2n) { padding-left: 22px; border-left: 1px solid var(--line); }
  .fp-price-card { position: relative; top: auto; }
}
@media (max-width: 600px) {
  .fp-hero { padding: 40px 0 44px; }
  .fp-steps, .fp-checks { grid-template-columns: 1fr; }
  .fp-checks > div, .fp-checks > div:nth-child(2n) { padding: 20px 0; border-left: 0; }
  .fp-actions .btn { width: 100%; justify-content: center; }
  .fp-closer { grid-template-columns: 1fr; }
  .fp-closer-actions { align-items: flex-start; }
  .fp-preview-card { padding: 20px; border-radius: 22px; }
}

/* =====================================================================
   Partner area (/partners)
   ===================================================================== */
body[data-page="partners"] { background: var(--cream); }
.pt-app { min-height: 70vh; padding-bottom: 80px; }
.pt-app [hidden] { display: none !important; }
.pt-loading { padding: 120px 20px; text-align: center; color: var(--slate); }
.pt-app input[type="url"], .pt-app input[type="date"] {
  width: 100%; font: 500 16px var(--font); color: var(--charcoal); background: var(--white);
  border: 2px solid #8F8170; border-radius: 12px; padding: 13px 14px; min-height: 52px;
}
.pt-app input[type="url"]:focus, .pt-app input[type="date"]:focus { border-color: var(--charcoal); outline: none; box-shadow: 0 0 0 3px rgba(17,17,17,.14); }
.pt-app code { font-size: .92em; background: var(--stone); padding: 1px 6px; border-radius: 6px; }

.pt-gate { padding: 72px 0; }
.pt-gate-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, 440px); gap: 56px; align-items: center; }
.pt-gate-copy h1 { margin: 0 0 16px; }
.pt-gate-copy .lede { margin: 0 0 18px; }
.pt-gate-copy .rules a { color: var(--gold-deep); font-weight: 600; }
.pt-narrow { max-width: 640px; }
.pt-card { background: var(--white); border: 1px solid var(--line); border-radius: 24px; padding: 28px; }
.pt-card--quiet { background: transparent; }
.pt-card-title { font-size: 1.4rem; letter-spacing: -0.03em; margin: 0 0 16px; }
.pt-card form { display: grid; gap: 4px; }
.pt-card form .btn { margin-top: 10px; }
.pt-sent { font-size: 15px; color: var(--slate); }
.pt-fine { font-size: 14px; color: var(--muted); margin: 14px 0 0; }
.pt-fine a { color: var(--ink); }
.pt-muted { color: var(--muted); }
.pt-linkbtn { background: none; border: 0; padding: 8px 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

.pt-top { background: var(--white); border-bottom: 1px solid var(--line); padding-top: 36px; }
.pt-top-inner { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.pt-firm { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.04em; margin: 0 0 8px; }
.pt-firm:focus { outline: none; }
.pt-firm-meta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: 0; font-size: 14px; color: var(--slate); }
.pt-top-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pt-switch select { min-height: 40px; padding: 8px 12px; font-size: 15px; width: auto; max-width: 260px; }
.pt-tabs { display: flex; gap: 4px; overflow-x: auto; margin-top: 26px; scrollbar-width: none; }
.pt-tabs::-webkit-scrollbar { display: none; }
.pt-tabs a {
  flex: none; padding: 12px 16px; font-weight: 600; font-size: 15px; color: var(--slate); text-decoration: none;
  border-bottom: 3px solid transparent; display: inline-flex; align-items: center; gap: 8px;
}
.pt-tabs a:hover { color: var(--ink); }
.pt-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--gold); }
.pt-tabs a:focus-visible { outline: 3px solid var(--ink); outline-offset: -3px; border-radius: 6px; }
.pt-count { background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 800; border-radius: 999px; padding: 1px 8px; }

.pt-status { display: inline-block; font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--stone); color: var(--ink); }
.pt-status--active { background: var(--mint-tint); color: var(--mint-ink); }
.pt-status--pending { background: var(--sun-tint); color: var(--sun-ink); }

.pt-panels { padding-top: 36px; }
.pt-h { font-size: 1.6rem; letter-spacing: -0.03em; margin: 0 0 8px; }
.pt-h:focus { outline: none; }
.pt-intro { color: var(--slate); max-width: 760px; margin: 0 0 26px; }
.pt-group { font-size: 1.05rem; letter-spacing: -0.01em; margin: 34px 0 12px; display: flex; align-items: center; gap: 10px; }
.pt-group span { font-size: 13px; color: var(--slate); background: var(--stone); border-radius: 999px; padding: 1px 9px; font-weight: 700; }
.pt-panel > .pt-group:first-of-type, [data-inbox] > .pt-group:first-child, [data-admin] > .pt-group:first-child { margin-top: 0; }
.pt-list { display: grid; gap: 12px; }
.pt-empty { background: var(--white); border: 1px dashed #CDBDA8; border-radius: 22px; padding: 32px; max-width: 680px; }
.pt-empty h3 { margin: 0 0 6px; font-size: 1.15rem; }
.pt-empty p { margin: 0; color: var(--slate); }

.pt-intro-card { background: var(--white); border: 1px solid var(--line); border-radius: 22px; padding: 22px 24px; }
.pt-intro-card.is-new { box-shadow: inset 4px 0 0 var(--gold); }
.pt-intro-head { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.pt-intro-head h4 { margin: 0 0 4px; font-size: 1.1rem; letter-spacing: -0.02em; }
.pt-meta { margin: 0; color: var(--slate); font-size: 15px; }
.pt-meta a { color: var(--ink); }
.pt-when { margin: 0; font-size: 13px; color: var(--muted); text-align: right; white-space: nowrap; }
.pt-flag { display: inline-block; margin-top: 6px; font-weight: 700; color: var(--gold-deep); }
.pt-contact { margin: 18px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 20px; padding: 16px 0 0; border-top: 1px solid var(--line); }
.pt-contact dt { font-size: 13px; font-weight: 700; color: var(--slate); }
.pt-contact dd { margin: 2px 0 0; overflow-wrap: anywhere; }
.pt-contact a { color: var(--ink); font-weight: 600; }
.pt-contact-notes { grid-column: 1 / -1; }
.pt-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 18px; }
.pt-actions .pt-fine { margin: 0; }
.pt-close { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.pt-close select { width: auto; min-height: 40px; padding: 8px 12px; font-size: 15px; }
.pt-outcome { margin: 0; color: var(--slate); font-size: 15px; }
.pt-intro-card .field-error, .pt-card .field-error { margin-top: 10px; }

.pt-profile { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(260px, 1fr); gap: 24px; align-items: start; }
.pt-form { display: grid; gap: 20px; }
.pt-field { margin: 0; }
.pt-field .field-hint { margin: 6px 0 0; }
.pt-checks { border: 0; padding: 0; }
.pt-checks legend { font-size: 14px; font-weight: 700; margin-bottom: 6px; padding: 0; }
.pt-fa { background: var(--sun-tint); border-radius: 14px; padding: 14px 16px; }
.pt-form > .btn { justify-self: start; }
.pt-preview h3 { margin: 0 0 14px; font-size: 1.05rem; }
.pt-preview .btn { margin-top: 16px; }
.pt-dl { margin: 0; display: grid; gap: 12px; }
.pt-dl > div { display: grid; gap: 2px; }
.pt-dl dt { font-size: 13px; font-weight: 700; color: var(--slate); }
.pt-dl dd { margin: 0; overflow-wrap: anywhere; }
.pt-defs { margin-top: 28px; max-width: 760px; }
.callout + .pt-profile { margin-top: 20px; }

.pt-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pt-tile { background: var(--ink); color: var(--cream); border-radius: 20px; padding: 20px; }
.pt-tile b { display: block; font-size: 2rem; font-weight: 800; letter-spacing: -0.04em; color: var(--gold); line-height: 1; }
.pt-tile span { display: block; font-size: 14px; color: #CFC9C0; margin-top: 10px; }
.pt-table-wrap { position: relative; overflow-x: auto; margin-top: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--white); }
.pt-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.pt-table th, .pt-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.pt-table thead th { font-size: 13px; color: var(--slate); font-weight: 700; white-space: nowrap; }
.pt-table tbody tr:last-child > * { border-bottom: 0; }
.pt-table td { font-variant-numeric: tabular-nums; }
.pt-table--partners input, .pt-table--partners select { min-height: 42px; padding: 8px 10px; font-size: 15px; margin-bottom: 6px; }
.pt-table--partners td { min-width: 150px; }
.pt-table--changes { margin: 16px 0; border: 1px solid var(--line); border-radius: 14px; }
.pt-table--changes td { overflow-wrap: anywhere; }

.pt-billing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.pt-billing .pt-dl { margin-bottom: 22px; }
.pt-billing h3 { margin: 0 0 10px; font-size: 1.05rem; }

.pt-help { max-width: 860px; }
.pt-edit, .pt-lead { margin-bottom: 12px; }
.pt-code { font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; min-height: 0; margin-top: 6px; }
.pt-add { margin-top: 18px; }
.pt-add h4 { margin: 0; }
.pt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.pt-matches { margin: 14px 0 0; padding-left: 18px; font-size: 15px; color: #4E4A44; }
.pt-assign { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.pt-assign select { width: auto; min-height: 42px; padding: 8px 12px; font-size: 15px; }
.pt-assign .check { margin: 0; }


@media (max-width: 1000px) {
  .pt-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pt-contact { grid-template-columns: 1fr 1fr; }
  .pt-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 800px) {
  .pt-gate-inner, .pt-profile, .pt-billing { grid-template-columns: 1fr; gap: 28px; }
  .pt-gate { padding: 40px 0; }
}
@media (max-width: 560px) {
  .pt-top { padding-top: 24px; }
  .pt-card { padding: 22px 18px; border-radius: 20px; }
  .pt-intro-card { padding: 18px; }
  .pt-intro-head { flex-direction: column; gap: 8px; }
  .pt-when { text-align: left; white-space: normal; }
  .pt-contact, .pt-grid { grid-template-columns: 1fr; }
  .pt-tiles { grid-template-columns: 1fr 1fr; }
  .pt-tile b { font-size: 1.6rem; }
  .pt-close, .pt-close select { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pro-video-icon { transition: none; }
}
