/* GraphicBidu V9 — mentor directory recovery + availability-first booking.
   This file is deliberately isolated from course, candidate, payment, and auth CSS. */

/* Directory: make the discovery controls feel like one simple search bar. */
.mentor-v10-filter-shell { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.55fr); gap: 20px; align-items: end; padding: 22px; }
.mentor-v10-filter-shell h2 { margin: 0; font-size: clamp(1.35rem, 2.4vw, 2rem); letter-spacing: -.04em; }
.mentor-v10-filter-shell .muted { margin: 8px 0 0; }
.mentor-v10-filter-form { display: grid; grid-template-columns: minmax(230px, 1.6fr) minmax(130px, .78fr) minmax(155px, .9fr) auto; gap: 10px; align-items: end; }
.mentor-v10-filter-form label { display: grid; min-width: 0; gap: 6px; color: #334155; font-size: .8rem; font-weight: 800; }
.mentor-v10-filter-form input, .mentor-v10-filter-form select { width: 100%; min-width: 0; height: 44px; border: 1px solid #d9dde3; border-radius: 10px; padding: 10px 11px; background: #fff; color: #111827; font: inherit; }
.mentor-v10-filter-actions { display: flex; gap: 8px; align-items: center; min-height: 44px; }
.mentor-v10-filter-actions .button { min-height: 44px; white-space: nowrap; }

/* Directory card. The old .mentor-v9-headline collision is neutralised even if legacy markup remains. */
.mentor-v9-headline { max-width: none !important; margin: 5px 0 0 !important; color: #536076 !important; font-size: .91rem !important; line-height: 1.45 !important; letter-spacing: normal !important; }
.mentor-v10-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 380px)); gap: 18px; justify-content: start; }
.mentor-v10-card { display: flex; min-width: 0; flex-direction: column; gap: 16px; padding: 22px; border: 1px solid #e3e7ee; border-radius: 20px; background: #fff; box-shadow: 0 12px 30px rgba(15,23,42,.05); }
.mentor-v10-card-head { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 13px; align-items: start; min-width: 0; }
.mentor-v10-avatar { display: grid; width: 68px; height: 68px; place-items: center; overflow: hidden; border: 1px solid #dfe3ea; border-radius: 17px; background: linear-gradient(135deg,#eef1f6,#f7f8fb); color: #111827; font-weight: 900; font-size: 1.15rem; letter-spacing: -.04em; }
.mentor-v10-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mentor-v10-card-identity { min-width: 0; }
.mentor-v10-card-top { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 8px; }
.mentor-v10-card h3 { margin: 0; color: #111827; font-size: 1.18rem; line-height: 1.15; letter-spacing: -.025em; overflow-wrap: anywhere; }
.mentor-v10-card-identity > p { margin: 5px 0 0; color: #536076; font-size: .91rem; line-height: 1.45; overflow-wrap: anywhere; }
.mentor-v10-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px 14px; margin: 0; }
.mentor-v10-facts > div { min-width: 0; padding-top: 10px; border-top: 1px solid #eceef2; }
.mentor-v10-facts dt { color: #728096; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.mentor-v10-facts dd { margin: 4px 0 0; color: #111827; font-size: .87rem; font-weight: 750; line-height: 1.35; overflow-wrap: anywhere; }
.mentor-v10-expertise { display: -webkit-box; overflow: hidden; margin: 0; color: #475569; font-size: .88rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.mentor-v10-card .chip-wrap { display: flex; min-height: 29px; flex-wrap: wrap; gap: 7px; }
.mentor-v10-card .chip-wrap .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mentor-v10-card-cta { width: 100%; margin-top: auto; justify-content: center; text-align: center; }

/* Public mentor profile: long URLs, expertise, and location must never escape a card. */
.mentor-public-hero-grid { align-items: center; }
.mentor-public-intro { display: flex; min-width: 0; gap: 18px; align-items: flex-start; }
.mentor-public-intro > div:last-child { min-width: 0; }
.mentor-public-context-grid { align-items: stretch; }
.mentor-public-context-card { min-width: 0; overflow: hidden; }
.mentor-public-context-card .definition-list { margin: 0; }
.mentor-public-context-card .definition-list li { display: grid; grid-template-columns: minmax(112px,.34fr) minmax(0,.66fr); gap: 16px; align-items: start; min-width: 0; }
.mentor-public-context-card .definition-list span { min-width: 0; }
.mentor-public-context-card .definition-list strong,
.mentor-public-context-card .mentor-link-value { display: block; min-width: 0; max-width: 100%; color: #111827; text-align: right; line-height: 1.45; overflow-wrap: anywhere; word-break: break-word; }
.mentor-public-context-card .mentor-link-value { text-decoration: underline; text-underline-offset: 3px; }
.mentor-public-bio { margin-top: 18px; color: #536076; line-height: 1.65; overflow-wrap: anywhere; }
.mentor-availability-public-card .stack-list li { align-items: start; }
.mentor-availability-public-card .stack-list span { overflow-wrap: anywhere; }

/* Booking: clearly separate a confirmed listed-slot route from an unpaid request. */
.mentor-booking-windows { margin: 0 0 14px; padding: 14px; border: 1px solid #dfe6ec; border-radius: 13px; background: #fafbfc; }
.mentor-booking-windows strong { display: block; color: #111827; }
.mentor-booking-windows ul { display: grid; gap: 4px; margin: 9px 0 0; padding-left: 18px; color: #536076; font-size: .9rem; line-height: 1.5; }
.mentor-slot-check { padding: 12px 13px; border: 1px solid #d8dee7; border-radius: 12px; font-size: .9rem; line-height: 1.5; }
.mentor-slot-check--matched { border-color: #b7dfbf; background: #f0fdf4; color: #166534; }
.mentor-slot-check--outside { border-color: #f1d3a3; background: #fff9ed; color: #92400e; }
.mentor-outside-window-options { display: grid; gap: 10px; margin: 0; padding: 15px; border: 1px solid #f0d39e; border-radius: 13px; background: #fffaf0; }
.mentor-outside-window-options legend { padding: 0 4px; color: #7c2d12; font-weight: 850; }
.mentor-outside-window-options > .muted { margin: 0; }
.mentor-request-option { display: flex !important; gap: 10px; align-items: flex-start; padding: 11px; border: 1px solid #eadbbf; border-radius: 10px; background: rgba(255,255,255,.65); cursor: pointer; }
.mentor-request-option input { width: auto !important; margin: 3px 0 0; }
.mentor-request-option span { display: grid; gap: 3px; min-width: 0; }
.mentor-request-option small { color: #6b7280; font-size: .84rem; font-weight: 500; line-height: 1.45; }
.mentor-request-acknowledgement { display: flex !important; gap: 9px; align-items: flex-start; padding-top: 2px; color: #6b4f14 !important; font-weight: 700 !important; }
.mentor-request-acknowledgement input { width: auto !important; margin: 3px 0 0; }
.mentor-booking-policy { margin-top: 18px; }
.candidate-availability-card, .mentor-availability-response-card { margin-top: 18px; padding: 18px; border: 1px solid #e2e6ec; border-radius: 14px; background: #fbfcfd; }
.candidate-availability-card h3 { margin: 4px 0 7px; }
.mentor-booking-definition-list li strong { overflow-wrap: anywhere; }

.status-awaiting_availability { border-color: #f5d08a; background: #fff8e7; color: #8a4b00; }

/* All responsive states remain durable at laptop/tablet/mobile widths. */
@media (max-width: 1040px) {
  .mentor-v10-filter-shell { grid-template-columns: 1fr; }
  .mentor-v10-filter-form { grid-template-columns: minmax(220px,1.5fr) minmax(145px,1fr) minmax(165px,1fr); }
  .mentor-v10-filter-actions { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .mentor-v10-filter-form { grid-template-columns: 1fr; }
  .mentor-v10-filter-actions { grid-column: auto; flex-wrap: wrap; }
  .mentor-v10-filter-actions .button { width: 100%; justify-content: center; }
  .mentor-v10-grid { grid-template-columns: 1fr; }
  .mentor-public-intro { gap: 13px; }
  .mentor-public-avatar { width: 84px; height: 84px; flex-basis: 84px; border-radius: 20px; }
  .mentor-public-context-card .definition-list li { grid-template-columns: 1fr; gap: 4px; }
  .mentor-public-context-card .definition-list strong, .mentor-public-context-card .mentor-link-value { text-align: left; }
}
@media (max-width: 480px) {
  .mentor-v10-card-head { grid-template-columns: 56px minmax(0,1fr); }
  .mentor-v10-avatar { width: 56px; height: 56px; border-radius: 15px; }
  .mentor-v10-facts { grid-template-columns: 1fr; }
  .mentor-public-intro { align-items: flex-start; }
}
