/* Find a Specialist (CR-105 U3), as the app draws it: apps/customer-app/lib/features/specialists/specialists_screen.dart
   (SpecialistsScreen, SpecialistCard, _CertificationCard) and its head, InfoHeader in lib/features/legal/info_screen.dart.
   A 720px column (PageBody maxWidth 720: 640px of words between 40px sides). Phone layout under 900px. */

.specialists { max-width: 720px; margin: 0 auto; padding: 52px 40px 90px; }
:where(.specialists) :where(p, dl, dd, h1, h2) { margin: 0; }
.specialists .back-pill { margin-bottom: 18px; }

/* The head (InfoHeader): kicker, title, lede, paragraphs. The title keeps its 14px gap with no kicker above it. */
.specialists__kicker {
  font-size: calc(10 * var(--u)); font-weight: 600; letter-spacing: 0.24em; color: var(--gold-deep);
}
.specialists__title {
  margin-top: 14px; font-family: var(--font-display); font-weight: 700; font-size: calc(34 * var(--u));
  line-height: 1.1; color: var(--ink); text-wrap: balance;
}
.specialists__lede {
  margin-top: 10px; font-family: var(--font-voice); font-style: italic; font-size: calc(19 * var(--u));
  line-height: 1.4; color: var(--grey-body);
}
.specialists__body { margin-top: 28px; }
.specialists__body p { font-size: calc(14 * var(--u)); line-height: 1.85; color: #3F3F3F; }
.specialists__body p + p { margin-top: 18px; }

.specialists__list { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.specialists__empty { margin-top: 30px; font-size: calc(14 * var(--u)); line-height: 1.7; color: var(--grey-body); }

/* One specialist: white, a hairline, a warm shadow. */
.spec {
  background: var(--white); border: 1px solid var(--hairline); border-radius: 6px; padding: 22px 24px;
  box-shadow: 0 2px 10px rgba(138, 107, 16, 0.08);
}
/* Computer: the photo beside the name, the Primary Genius and the lines. */
.spec__head {
  display: grid; grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 22px;
}
.spec__photo {
  grid-column: 1; grid-row: 1 / span 2; width: 96px; height: 96px; border-radius: 4px;
  background: var(--warm-white) center / cover no-repeat;
}
.spec__who { grid-column: 2; grid-row: 1; min-width: 0; }
.spec__name {
  font-family: var(--font-display); font-weight: 700; font-size: calc(21 * var(--u)); line-height: 1.2; color: var(--ink);
}
.spec__genius { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; column-gap: 8px; row-gap: 2px; }
.spec__genius-label { font-size: calc(9.5 * var(--u)); font-weight: 600; letter-spacing: 0.18em; color: var(--gold-deep); }
.spec__keycode {
  font-family: Menlo, ui-monospace, monospace; font-size: calc(12 * var(--u)); font-weight: 600; line-height: 1.2;
  color: var(--ink);
}
.spec__facts { grid-column: 2; grid-row: 2; align-self: start; margin-top: 12px; }
.spec__fact { display: grid; grid-template-columns: calc(78 * var(--u)) minmax(0, 1fr); column-gap: 12px; }
.spec__fact + .spec__fact { margin-top: 6px; }
.spec__fact dt {
  padding-top: 3px; font-size: calc(9.5 * var(--u)); font-weight: 600; letter-spacing: 0.14em; color: var(--grey-light);
}
.spec__fact dd { font-size: calc(12.5 * var(--u)); line-height: 1.6; color: #3F3F3F; overflow-wrap: anywhere; }

/* READ MORE's part: the bio over a hairline, then the links. Shown while the card's toggle is open. */
.spec__more { display: none; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--hairline); }
.spec:has(.spec__toggle[open]) .spec__more { display: block; }
.spec__bio { font-size: calc(13.5 * var(--u)); line-height: 1.8; color: #3F3F3F; }
.spec__bio + .spec__bio { margin-top: 12px; }
.spec__links { display: flex; flex-wrap: wrap; gap: 8px; }
.spec__bio + .spec__links { margin-top: 16px; }
.spec__link {
  padding: 6px 10px; border: 1px solid var(--hairline-strong); border-radius: 3px; text-decoration: none;
  font-size: calc(9.5 * var(--u)); font-weight: 600; letter-spacing: 0.12em; color: var(--gold-deep);
}
a.spec__link:hover { color: var(--gold-deep); background: #FBF8EE; }

/* BOOK WITH … and READ MORE. */
.spec__actions { margin-top: 18px; display: flex; align-items: center; gap: 18px; }
.spec__book {
  flex: 0 1 auto; min-width: 0; padding: 11px 18px; border-radius: 3px; background: var(--ink); color: var(--cream);
  text-align: center; text-decoration: none; font-size: calc(10.5 * var(--u)); font-weight: 600; letter-spacing: 0.14em;
}
.spec__book:hover { background: #363635; color: var(--cream); }
.spec__toggle { flex: none; }
.spec__toggle summary {
  display: block; padding: 8px 0; cursor: pointer; list-style: none; font-size: calc(10 * var(--u)); font-weight: 600;
  letter-spacing: 0.14em; color: var(--gold-deep);
}
.spec__toggle summary::-webkit-details-marker { display: none; }
.spec__toggle summary::marker { content: ""; }
.spec__when-open { display: none; }
.spec__toggle[open] .spec__when-open { display: inline; }
.spec__toggle[open] .spec__when-closed { display: none; }

/* The certification card that ends the page: the line, GET CERTIFIED beside it. */
.specialists__certification {
  margin-top: 34px; padding: 28px 30px; border-radius: 6px; background: var(--dark);
  display: flex; flex-wrap: wrap; align-items: center; gap: 24px;
}
.specialists__certification-line { flex: 1 1 calc(220 * var(--u)); min-width: 0; }
.specialists__certification-label {
  font-size: calc(9.5 * var(--u)); font-weight: 600; letter-spacing: 0.2em; color: var(--gold);
}
.specialists__certification-text {
  margin-top: 8px; font-family: var(--font-voice); font-style: italic; font-size: calc(19 * var(--u));
  line-height: 1.45; color: #E9E3D2;
}
.specialists__certified {
  flex: none; padding: 13px 22px; border-radius: 3px; background: var(--gold); color: #1A1A1A; text-decoration: none;
  white-space: nowrap; font-size: calc(10.5 * var(--u)); font-weight: 600; letter-spacing: 0.14em;
}
.specialists__certified:hover { background: var(--gold-icon); color: #1A1A1A; }

/* A phone: the photo beside the name and the Primary Genius, each label above its line, the button under the line. */
@media (max-width: 899.98px) {
  .specialists { padding: 16px 20px 60px; }
  .specialists__title { font-size: calc(26 * var(--u)); }
  .specialists__list, .specialists__empty { margin-top: 22px; }
  .specialists__list { gap: 12px; }

  .spec { padding: 16px; border-radius: 8px; }
  .spec__head { grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: none; column-gap: 14px; align-items: center; }
  .spec__photo { grid-row: 1; width: 64px; height: 64px; }
  .spec__name { font-size: calc(17 * var(--u)); }
  .spec__genius { margin-top: 5px; flex-direction: column; align-items: flex-start; }
  .spec__genius-label { font-size: calc(8.5 * var(--u)); letter-spacing: 0.16em; }
  .spec__keycode { font-size: calc(11 * var(--u)); }
  .spec__facts { grid-column: 1 / -1; grid-row: 2; margin-top: 0; }
  .spec__fact { display: block; padding-top: 8px; }
  .spec__fact:first-child { padding-top: 12px; }
  .spec__fact + .spec__fact { margin-top: 0; }
  .spec__fact dt { padding-top: 0; font-size: calc(8.5 * var(--u)); }
  .spec__fact dd { font-size: calc(12 * var(--u)); line-height: 1.55; }

  .spec__more { margin-top: 14px; padding-top: 14px; }
  .spec__bio { font-size: calc(12.5 * var(--u)); line-height: 1.75; }
  .spec__bio + .spec__bio { margin-top: 10px; }
  .spec__bio + .spec__links { margin-top: 10px; }
  .spec__link { padding: 10px 12px; font-size: calc(9 * var(--u)); }

  .spec__actions { margin-top: 14px; justify-content: space-between; gap: 12px; }
  .spec__book { padding: 13px 16px; font-size: calc(10 * var(--u)); }
  .spec__toggle summary { padding: 12px 0; font-size: calc(9.5 * var(--u)); }

  .specialists__certification { margin-top: 24px; padding: 22px 20px; border-radius: 8px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .specialists__certification-line { flex: none; }
  .specialists__certification-label { font-size: calc(9 * var(--u)); }
  .specialists__certification-text { font-size: calc(17 * var(--u)); }
  .specialists__certified { padding: 13px 20px; font-size: calc(10 * var(--u)); }
}
