/* ============================================================================
   MrMurse - Our Tutors page styles
   Page-specific layout only; all values reference Phase 0 tokens. Composes the
   card, faq, and cta-block components and adds a session-prep visual, a prep
   checklist, focus cards, a standards grid, profile cards, and a matching row.
   ========================================================================== */

/* ---------------------------------------------------------------- HERO ----- */
.tutors-hero {
  background:
    radial-gradient(1000px 460px at 82% -10%, var(--c-teal-tint-10), transparent 60%),
    var(--bg-page);
  padding-top: var(--space-9);
}
.tutors-hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: var(--space-8); align-items: center;
}
.tutors-hero__title { font-size: var(--fs-h1); font-weight: var(--fw-extra); margin-top: var(--space-5); }
.tutors-hero__sub { font-size: var(--fs-body-lg); color: var(--text-body); margin-top: var(--space-5); max-width: 540px; }
.tutors-hero__cta { display: flex; gap: var(--space-3); margin-top: var(--space-6); flex-wrap: wrap; }

/* Session-prep card */
.prep {
  background: var(--surface); border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden;
  max-width: 430px; margin-inline: auto;
}
.prep__bar {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: var(--bg-alt); border-bottom: var(--border-width) solid var(--border);
}
.prep__body { padding: var(--space-5); display: grid; gap: var(--space-4); }
.prep__line { display: flex; align-items: center; gap: var(--space-3); }
.prep__ic {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: var(--c-teal-tint-10); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.prep__txt { font-size: var(--fs-body-sm); color: var(--text-body); }
.prep__txt b { color: var(--text-primary); font-weight: var(--fw-bold); }
.prep__foot {
  padding: var(--space-3) var(--space-5); background: var(--bg-alt);
  border-top: var(--border-width) solid var(--border);
  font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: var(--accent-strong);
  text-align: center;
}

@media (max-width: 920px) {
  .tutors-hero__grid { grid-template-columns: 1fr; gap: var(--space-7); }
  .tutors-hero__sub { max-width: none; }
  .prep { margin-inline: 0; }
}

/* --------------------------------------------------- BEFORE-SESSION BAND ---
   Compact horizontal checklist that replaces the old full-height split. */
.prep-band {
  background: var(--surface); border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: var(--space-6) var(--space-7);
  display: grid; grid-template-columns: auto 1fr; gap: var(--space-6) var(--space-7);
  align-items: center;
}
.prep-band__head .eyebrow { margin-bottom: var(--space-2); }
.prep-band__head h2 { font-size: var(--fs-h3); }
.prep-band__list {
  display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-5);
}
.prep-band__list li {
  display: flex; align-items: center; gap: var(--space-2);
  font-size: var(--fs-body-sm); font-weight: var(--fw-medium); color: var(--text-primary);
}
.prep-band__list .icon { color: var(--accent); flex-shrink: 0; }
@media (max-width: 820px) {
  .prep-band { grid-template-columns: 1fr; gap: var(--space-4); padding: var(--space-6); }
}

/* ----------------------------------------------------- FOCUS CARDS --------- */
.focus-grid { margin-top: var(--space-7); }
.focus-card__title { font-size: var(--fs-h4); margin-top: var(--space-4); }
.focus-card__text { font-size: var(--fs-body-sm); color: var(--text-body); margin-top: var(--space-2); }

/* ----------------------------------------------------- STANDARDS -----------
   Tighter, smaller chips so the section reads as a serious checklist rather
   than oversized filler. */
.standards {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2) var(--space-3);
  margin-top: var(--space-6); max-width: 940px; margin-inline: auto;
}
.standards__item {
  display: flex; align-items: center; gap: var(--space-2);
  background: var(--surface); border: var(--border-width) solid var(--border);
  border-radius: var(--radius-md); padding: var(--space-3) var(--space-4);
  font-size: var(--fs-body-sm); font-weight: var(--fw-medium); color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}
.standards__item .icon { color: var(--accent); flex-shrink: 0; }
@media (max-width: 920px) { .standards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .standards { grid-template-columns: 1fr; } }

/* ----------------------------------------------------- PROFILE CARDS -------
   Premium, interactive cards. The whole card lifts on hover/focus-within and
   the View profile button sits pinned to the bottom for an even grid. */
.profiles { margin-top: var(--space-6); }
.profile-card {
  display: flex; flex-direction: column;
  transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
}
.profile-card:hover, .profile-card:focus-within {
  transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--c-teal-tint-18);
}
.profile-card__photo {
  width: 60px; height: 60px; border-radius: var(--radius-full);
  background: linear-gradient(160deg, var(--c-gray-bg), #E9EFF1);
  border: var(--border-width) solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-strong); margin-bottom: var(--space-4);
}
.profile-card__role {
  font-size: var(--fs-caption); font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--accent-strong);
}
.profile-card__name { font-size: var(--fs-h3); margin-top: 2px; margin-bottom: var(--space-4); }
.profile-card__meta { display: grid; gap: 2px; margin-bottom: var(--space-3); }
.profile-card__meta-label {
  font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: var(--text-muted);
}
.profile-card__meta span:last-child { font-size: var(--fs-body-sm); color: var(--text-body); }
.profile-card__view { margin-top: auto; }

/* ----------------------------------------------------- MATCHING ------------ */
.match { margin-top: var(--space-6); max-width: 940px; margin-inline: auto; }
.match__item {
  display: flex; flex-direction: row; align-items: center; gap: var(--space-4);
  background: var(--surface); border: var(--border-width) solid var(--border);
  border-radius: var(--radius-lg); padding: var(--space-5);
  font-size: var(--fs-body); font-weight: var(--fw-bold); color: var(--text-primary);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-base) var(--ease-standard), box-shadow var(--dur-base) var(--ease-standard), border-color var(--dur-base) var(--ease-standard);
}
.match__item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--c-teal-tint-18); }
.match__ic {
  flex-shrink: 0; width: 46px; height: 46px; border-radius: var(--radius-md);
  background: var(--c-teal-tint-10); color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center;
}
.match__ic .icon { width: 22px; height: 22px; }

/* ----------------------------------------------------- PROFILE MODAL -------
   Built on the shared native <dialog class="modal"> handler in components.js
   (focus trap, Esc, backdrop are handled there). These rules style the panel
   and its content. Centering uses margin:auto, which the native <dialog>
   requires. */
.modal {
  width: min(660px, calc(100vw - 2 * var(--space-5)));
  max-height: calc(100dvh - var(--space-7));
  position: fixed; inset: 0; margin: auto;   /* fixed-center: no scroll jump on open */
  border: var(--border-width) solid var(--border); border-radius: var(--radius-lg);
  padding: 0; box-shadow: var(--shadow-lg); background: var(--surface);
  color: var(--text-body); overflow: hidden;
}
.modal::backdrop { background: rgba(17, 43, 53, 0.55); backdrop-filter: blur(3px); }
.modal[open] { animation: modal-rise var(--dur-base) var(--ease-out); }
@keyframes modal-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }
.modal__close {
  position: absolute; top: var(--space-4); right: var(--space-4); z-index: 2;
  width: 38px; height: 38px; border-radius: var(--radius-full);
  border: var(--border-width) solid rgba(255,255,255,.25); background: rgba(255,255,255,.12);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; transition: background var(--dur-base), color var(--dur-base);
}
.modal__close:hover { background: rgba(255,255,255,.22); }

/* Profile modal: navy header band + scrollable body of organized sections. */
.profile-modal[open] { display: flex; flex-direction: column; }
.profile-modal__header {
  background: linear-gradient(150deg, var(--c-navy-800), #17404E);
  color: #fff; padding: var(--space-6) var(--space-7);
  display: flex; align-items: center; gap: var(--space-4);
}
.profile-modal__avatar {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: var(--radius-full);
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
}
.profile-modal__role {
  font-size: var(--fs-caption); font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide); text-transform: uppercase; color: #9FE3EF;
}
.profile-modal__title { font-size: var(--fs-h3); color: #fff; margin: 2px 0 0; }
.profile-modal__body { padding: var(--space-6) var(--space-7); overflow-y: auto; }
.profile-modal__grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5) var(--space-6);
}
.profile-modal__block p { font-size: var(--fs-body-sm); color: var(--text-body); margin-top: 4px; }
.profile-modal__label {
  font-size: var(--fs-caption); font-weight: var(--fw-bold);
  letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--accent-strong);
  display: flex; align-items: center; gap: 6px;
}
.profile-modal__pending { color: var(--text-muted); font-style: italic; }
.profile-modal__cta { margin-top: var(--space-6); }
@media (max-width: 600px) {
  .profile-modal__header { padding: var(--space-5); }
  .profile-modal__body { padding: var(--space-5); }
  .profile-modal__grid { grid-template-columns: 1fr; gap: var(--space-4); }
}

/* ----------------------------------------------------- FAQ ----------------- */
.tutors-faq { max-width: 820px; }
