body { margin: 0; background: #fff9f1; }
main.tutor {
  --ink: #24231f;
  --muted: #685e50;
  --rust: #a53d20;
  --line: #e7ded1;
  --paper: #fffdf9;
  --peach: #f6b68c;
  --pale: #f8e4d3;
  --coral: #fa754b;
  color: var(--ink);
  box-sizing: border-box;
  font: 15px/1.55 var(--font-manrope, Manrope, sans-serif);
  max-width: 1328px;
  margin: 0 auto;
  padding: 18px 40px 56px;
}
.tutor h1, .tutor h2, .tutor h3, .tutor p { margin: 0; }
.tutor a { color: var(--rust); text-underline-offset: 3px; }
.tutor a:focus-visible, .tutor summary:focus-visible { outline: 3px solid #96512d; outline-offset: 2px; }
.tutor .crumbs ol {
  margin: 0 0 15px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  list-style: none;
  color: var(--muted);
  font-size: 13px;
}
.tutor .crumbs li + li::before { content: "/"; margin-right: 10px; color: #8a8274; }
.tutor .hero {
  padding: clamp(20px, 4vw, 46px);
  border: 1px solid #edbc9c;
  border-radius: 28px;
  background: #f9d1b3;
  margin-bottom: 22px;
}
.tutor .eyebrow, .tutor .subject-label { font-weight: 700; color: var(--rust); font-size: 14px; }
.tutor h1 { font: 700 clamp(25px, 4vw, 49px)/1.16 var(--font-unbounded, Unbounded, sans-serif); letter-spacing: -.04em; max-width: 900px; }
.tutor .hero:has(.featured) { background: var(--peach); }
.tutor .hero h1 { margin: 8px 0 13px; overflow-wrap: anywhere; }
.tutor .hero > p:not(.eyebrow) { color: var(--muted); max-width: 720px; }
.tutor .featured, .tutor .choices, .tutor .tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tutor .featured { margin-top: 21px; }
.tutor .featured a, .tutor .choices a, .tutor .choices span {
  align-items: center;
  display: inline-flex;
  min-height: 38px;
  padding: 5px 10px;
  border-radius: 9px;
  text-decoration: none;
  font-size: 14px;
}
.tutor .featured a, .tutor .choices a { background: var(--paper); border: 1px solid var(--line); }
.tutor .featured a:hover, .tutor .choices a:hover { background: var(--pale); border-color: #d4bfa8; }
.tutor .choices span { background: var(--pale); border: 1px solid #e8bb9c; color: #8d361d; font-weight: 800; }
.tutor .catalog-grid { display: grid; grid-template-columns: minmax(245px, 310px) minmax(0, 1fr); align-items: start; gap: 19px; scroll-margin-top: 90px; }
.tutor .filters, .tutor .result, .tutor .related, .tutor .empty, .tutor .profile-view > * {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 16px;
}
.tutor .filters { padding: 16px; }
.tutor .filter-toggle { display: block; }
.tutor .filter-toggle > summary { cursor: pointer; font-size: 19px; font-weight: 800; }
.tutor .filter { border-top: 1px solid var(--line); margin-top: 11px; padding-top: 11px; }
.tutor .filter h3 { font-size: 15px; margin-bottom: 7px; }
.tutor .results > h2 { font-size: 24px; }
.tutor .results > .count { color: var(--muted); margin: 1px 0 12px; }
.tutor .result {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: 13px 17px;
  padding: 17px;
  margin-bottom: 10px;
}
.tutor .portrait { object-fit: cover; object-position: center 27%; border-radius: 12px; background: var(--pale); }
.tutor .result .portrait { width: clamp(66px, 9vw, 104px); height: clamp(66px, 9vw, 104px); }
.tutor .result h3 { font-size: 21px; line-height: 1.2; margin: 4px 0 8px; }
.tutor .result-copy > p:not(.subject-label) { color: var(--muted); }
.tutor .tags { margin-top: 10px; }
.tutor .tags span { background: var(--pale); color: #694f3f; border-radius: 6px; font-size: 12px; padding: 3px 7px; }
.tutor .outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid #ded0bf;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}
.tutor .outline { color: var(--ink); }
.tutor .outline:hover { background: var(--ink); color: var(--paper); }
.tutor .profile-view .outline { background: var(--coral); border-color: #e07854; border-bottom: 2px solid #d6653d; }
.tutor .profile-view .outline:hover { background: #f38b61; color: var(--ink); }
.tutor .related, .tutor .empty, .tutor .profile-view > * { padding: clamp(16px, 3vw, 26px); }
.tutor .related { margin-top: 17px; }
.tutor .related h2, .tutor .empty h2, .tutor .profile-view h2 { font-size: 20px; line-height: 1.25; }
.tutor .empty h2 { margin-bottom: 7px; }
.tutor .related ul, .tutor .profile-view ul { padding-left: 20px; margin: 9px 0 0; }
.tutor li + li { margin-top: 4px; }
.tutor .crumbs li + li { margin-top: 0; }
.tutor .near-heading { margin-top: 17px; }
.tutor .profile-hero { display: flex; align-items: center; gap: clamp(12px, 4vw, 28px); }
.tutor .profile-view { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.tutor .profile-view p, .tutor .profile-view ul { margin: 9px 0 16px; }
.tutor .expert { color: var(--rust); }
@media (max-width: 970px) {
  main.tutor { padding-inline: 23px; }
  .tutor .result { grid-template-columns: auto minmax(0, 1fr); }
  .tutor .result > .outline { grid-column: 2; justify-self: start; }
}
@media (max-width: 735px) {
  main.tutor { padding: 12px 14px 35px; }
  .tutor .catalog-grid, .tutor .profile-view { grid-template-columns: minmax(0, 1fr); }
  .tutor .catalog-grid { scroll-margin-top: 65px; gap: 14px; }
  .tutor .result { padding: 13px; gap: 9px 12px; }
  .tutor .choices a, .tutor .choices span { min-height: 44px; }
  .tutor .profile-hero .portrait { width: 72px; height: 72px; }
}
