@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700&display=swap");

/* Mockup reference canvas: 1536 x 1024. Page-specific styles; existing account/admin themes are unchanged. */
@font-face {
  font-family: Inter;
  src: url("/images/discovery/inter-regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/images/discovery/inter-semibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Inter;
  src: url("/images/discovery/inter-bold.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
:root {
  color-scheme: dark;
  --page: #030f19;
  --surface: #071622;
  --text: #f4f5ff;
  --muted: #b7c6df;
  --border: #2b4563;
  --mint: #49f1bf;
  --cyan: #78d8ff;
  --purple: #d9a6ff;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--page);
  color: var(--text);
  font-family: "Manrope", Inter, "Avenir Next", Arial, sans-serif;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button,
a {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  background: none;
  border: 0;
}
select {
  color: var(--text);
  background: var(--surface);
  border: 0;
  max-width: 100%;
}
button:hover,
a:hover {
  filter: brightness(1.16);
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
p,
h1,
h2,
h3,
h4 {
  margin: 0;
}
i.icon {
  font-style: normal;
  flex-shrink: 0;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cyan);
}
[hidden] {
  display: none !important;
}
.discovery {
  position: relative;
  min-height: 100vh;
  background: radial-gradient(ellipse at 65% 65%, #10233733, transparent 65%);
}
.discovery:before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 100%;
  height: 310px;
  background:
    linear-gradient(90deg, var(--page) 4%, transparent 67%),
    linear-gradient(0deg, var(--page), transparent 18%),
    url("/images/discovery/mountain-hero.png") right top / 1000px 667px
      no-repeat;
  pointer-events: none;
}
.discovery-header {
  height: 91px;
  display: flex;
  align-items: flex-start;
  padding: 14px 24px;
  gap: 30px;
  position: relative;
  z-index: 2;
}
.brand {
  display: flex;
  gap: 6px;
  align-items: center;
  width: 196px;
  flex-shrink: 0;
}
.brand > span {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}
.brand small {
  display: block;
  font-weight: 400;
  font-size: 8px;
  color: var(--muted);
  margin-top: 6px;
  white-space: nowrap;
}
.top-nav {
  display: flex;
  align-items: center;
  gap: 35px;
  padding-top: 12px;
  white-space: nowrap;
}
.top-nav > a,
.top-nav > button {
  font-size: 14px;
  padding: 0;
  position: relative;
}
.top-nav .active {
  color: var(--cyan);
  font-weight: 600;
}
.top-nav .active:after {
  content: "";
  position: absolute;
  width: 44px;
  height: 2px;
  background: var(--cyan);
  bottom: -11px;
  left: 17px;
}
.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
  font-weight: 600;
}
.header-actions > button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 4px;
}
.header-actions i {
  font-size: 18px;
}
.header-utility {
  color: #c7d3e5;
}
.header-utility:hover {
  color: #fff;
}
.discovery-auth {
  display: flex;
  align-items: center;
  gap: 10px;
}
.discovery-auth .login-link,
.discovery-auth .account-link {
  color: #dce5f4;
  font-size: 13px;
  padding: 10px 5px;
}
.discovery-auth .login-link:hover,
.discovery-auth .account-link:hover {
  color: #fff;
}
.discovery-auth .home-secondary,
.discovery-auth .home-primary {
  font-size: 13px;
  white-space: nowrap;
}
.divider {
  height: 20px;
  width: 1px;
  background: #ffffff20;
}
.signup {
  display: inline-flex;
  padding: 12px 24px;
  border-radius: 30px;
  background: linear-gradient(105deg, #e6adff, #76afff);
  color: #07104a;
  box-shadow: 0 0 22px #b0a9ff70;
}
.discovery-sidebar {
  position: absolute;
  top: 91px;
  bottom: 0;
  left: 0;
  width: 171px;
  padding: 14px 13px 24px;
  background: linear-gradient(100deg, #06121d, #091724aa);
  border-radius: 0 24px 0 0;
  display: flex;
  flex-direction: column;
}
.side-nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.side-nav > a,
.side-nav > button {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 15px;
  min-height: 41px;
  padding: 9px 13px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 15px;
}
.side-nav i {
  font-size: 19px;
  color: #e1e8fd;
}
.side-nav .active {
  background: linear-gradient(110deg, #07345666, #252d60a0);
  border-color: #27436c;
  color: white;
}
.side-nav .active i {
  color: var(--cyan);
}
.notification-dot {
  width: 6px;
  height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  margin-left: auto;
}
.sidebar-label {
  font-size: 9px;
  letter-spacing: 2px;
  color: #94b8e3;
  margin: 26px 12px 10px;
}
.subject-nav > a,
.subject-nav > button {
  min-height: 33px;
  padding: 6px 13px;
  font-size: 11px;
  gap: 15px;
  white-space: nowrap;
}
.subject-nav i {
  font-size: 18px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 30px;
}
.inspiration {
  height: 142px;
  border-radius: 15px;
  border: 1px solid #598ecc;
  overflow: hidden;
  background: url("/images/discovery/mockup-reference.png") -13px -768px /1536px
    1024px no-repeat;
}
/* The card's background is a crop of the design reference with "Knowledge has no limits." baked in.
   The real (translated) line sits on top, over a fade that hides the baked-in English. */
.inspiration {
  position: relative;
}
.inspiration span {
  position: absolute;
  inset: 0 0 auto 0;
  padding: 13px 14px 34px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: #f2f6ff;
  background: linear-gradient(180deg, #0b1830 55%, rgba(11, 24, 48, 0));
}
.sidebar-bottom p {
  font-size: 12px;
  line-height: 19px;
  margin: 13px 11px 5px;
  color: var(--muted);
}
.sidebar-bottom strong {
  display: block;
  font-size: 14px;
  color: var(--cyan);
  margin-left: 11px;
}
.preview-switch {
  display: block;
  margin: 10px 10px 0;
  font-size: 10px;
  color: var(--cyan);
}
.discovery-main {
  margin-left: 171px;
  padding: 0 14px 24px 15px;
  position: relative;
}
.discovery-hero {
  height: 214px;
  padding: 0 12px;
  max-width: 960px;
  position: relative;
  z-index: 1;
}
.discovery-hero h1 {
  font-size: 48px;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -1px;
  white-space: nowrap;
  margin: 3px 0 8px;
}
.discovery-hero h1 em {
  position: relative;
  background: linear-gradient(100deg, #64d8ff, #e49af5);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  font-size: 56px;
  letter-spacing: -1.4px;
}
/* The handwritten note is placed for the short English headline and repeats .hero-quote on the right;
   in longer languages it would overlap the headline, so only the quote is shown. */
html:not([lang="en"]) .hero-note {
  display: none;
}
/* French runs about a quarter longer than English and the headline does not wrap */
html[lang="fr"] .discovery-hero h1 {
  font-size: 39px;
}
html[lang="fr"] .discovery-hero h1 em {
  font-size: 45px;
}
.discovery-hero h1 svg {
  position: absolute;
  width: 137px;
  right: -31px;
  bottom: -31px;
}
.discovery-hero > p {
  font-size: 17px;
  line-height: 24px;
  margin-bottom: 15px;
  color: #e1e8fb;
}
.goal-search {
  height: 58px;
  border: 2px solid #f4f6ff;
  background: linear-gradient(90deg, #dee5ffed, #e2e6ffed);
  border-radius: 36px;
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 5px 6px 5px 17px;
  color: #0a1750;
  box-shadow:
    0 0 6px #fff,
    0 0 24px #5dabffba;
}
.goal-search > .icon {
  font-size: 23px;
}
.goal-search input {
  min-width: 0;
  flex: 1;
  background: none;
  border: 0;
  color: #07164b;
  font-size: 16px;
  font-weight: 500;
  outline: none;
}
.goal-search input::placeholder {
  color: #47537e;
}
.goal-search > button {
  color: #111451;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.goal-search > button > .icon {
  font-size: 21px;
}
.goal-search .search-submit {
  height: 42px;
  width: 130px;
  border-radius: 28px;
  background: linear-gradient(110deg, #d08bff, #5d26ff 46%, #003dff);
  box-shadow:
    inset 0 0 10px #ffffff9c,
    0 0 14px #b794ff;
  color: #fff;
  gap: 19px;
  font-weight: 600;
}
.examples {
  display: flex;
  gap: 9px;
  align-items: center;
  margin-top: 13px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 11px;
}
.examples > span {
  margin-right: 3px;
}
.examples > button {
  border: 1px solid #31465e;
  border-radius: 24px;
  background: linear-gradient(#142638, #0d1b29);
  font-size: 11px;
  padding: 6px 11px;
  box-shadow: inset 0 1px 3px #ffffff08;
  color: #e2eaff;
}
.hero-note {
  position: absolute;
  right: 315px;
  top: -32px;
  font-size: 21px;
  font-family: "Chalkboard SE", "Comic Sans MS", cursive;
  font-weight: 300;
  line-height: 24px;
  transform: rotate(-12deg);
  color: #f0e4ff;
}
.hero-quote {
  position: absolute;
  right: 30px;
  top: 97px;
  color: #dae4fc;
  text-align: center;
  font-size: 13px;
  line-height: 20px;
}
.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 315px;
  gap: 14px;
}
.catalog-column {
  min-width: 0;
  border-top: 1px solid #274361;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 10px;
  min-height: 76px;
  height: auto;
  padding: 10px 0;
  font-family: "Manrope", Inter, "Avenir Next", Arial, sans-serif;
}
.filter-pill {
  --filter-basis: 140px;
  --filter-min: 124px;
  flex: 1 1 var(--filter-basis);
  min-width: var(--filter-min);
  height: 58px;
  border: 1px solid #2b4865;
  border-radius: 14px;
  padding: 8px 14px 7px;
  background: linear-gradient(115deg, #071b2c99, #0d20319c);
  display: flex;
  align-items: center;
  color: var(--text);
  transition:
    border-color 160ms ease,
    background-color 160ms ease,
    box-shadow 160ms ease;
}
.filter-subject {
  --filter-basis: 170px;
  --filter-min: 158px;
}
.filter-level {
  --filter-basis: 105px;
  --filter-min: 96px;
}
.filter-price {
  --filter-basis: 145px;
  --filter-min: 134px;
}
.filter-availability {
  --filter-basis: 150px;
  --filter-min: 142px;
}
.filter-language {
  --filter-basis: 135px;
  --filter-min: 126px;
}
.filter-pill:hover,
.filter-pill:focus-within {
  border-color: #52749a;
  background: linear-gradient(115deg, #0a2236b8, #10283bb8);
}
.filter-pill.active {
  border-color: #8b70bd;
  background: linear-gradient(115deg, #251d3c66, #15253b9c);
  box-shadow: inset 0 0 0 1px #b18edb18;
}
.filter-pill > span {
  min-width: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-align: left;
}
.filter-pill small {
  display: block;
  color: #8fa6bf;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: 0.015em;
  white-space: nowrap;
}
.filter-pill select,
.filter-pill b {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0;
  color: #f3f6ff;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.filter-pill select {
  border: 0;
  background: transparent;
  padding: 0 18px 0 0;
  outline-offset: 2px;
  text-overflow: ellipsis;
}
.filter-pill option {
  background: #0b1b2d;
}
.filter-pill b {
  overflow: hidden;
  text-overflow: ellipsis;
}
.more-filters,
.map-button {
  flex: 0 0 auto;
  height: 58px;
  border: 1px solid #385675;
  border-radius: 14px;
  background: #081826b8;
  color: #e5ecfb;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  white-space: nowrap;
  font-family: "Manrope", Inter, "Avenir Next", Arial, sans-serif;
  font-size: 12px;
  font-weight: 600;
}
.more-filters:hover,
.map-button:hover,
.more-filters[aria-expanded="true"] {
  border-color: #6b7eae;
  background: #102235;
}
.more-filters[aria-expanded="true"] {
  color: #e7c6ff;
}
.more-filters i,
.map-button i {
  color: #9fdfff;
  font-size: 16px;
}
.map-button {
  min-width: 86px;
  border-radius: 29px;
}
.results-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 49px;
  padding-bottom: 7px;
}
.results-toolbar h2 {
  font-size: 18px;
  letter-spacing: -0.25px;
}
.results-toolbar label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  color: var(--muted);
}
.results-toolbar select {
  width: 130px;
  border: 1px solid var(--border);
  padding: 7px 11px;
  font-size: 11px;
  border-radius: 15px;
}
.tutor-results {
  display: grid;
  gap: 9px;
}
.tutor-card {
  position: relative;
  display: grid;
  grid-template-columns: 216px minmax(265px, 1fr) 315px 151px;
  gap: 14px;
  min-height: 184px;
  border: 1px solid #2c4763;
  border-radius: 17px;
  padding: 2px 8px 2px 0;
  background: linear-gradient(105deg, #08182466, #0b19269c);
  overflow: hidden;
}
.tutor-photo {
  position: relative;
  min-height: 178px;
  border-radius: 13px;
  overflow: hidden;
  align-self: stretch;
  background: #142b40;
}
.tutor-photo img {
  width: 100%;
  height: 100%;
  position: absolute;
  object-fit: cover;
}
.mockup-photo {
  background-image: url("/images/discovery/mockup-reference.png");
  background-size: 1536px 1024px;
  background-repeat: no-repeat;
}
.portrait-0 {
  background-position: -186px -430px;
}
.portrait-1 {
  background-position: -186px -624px;
}
.portrait-2 {
  background-position: -186px -818px;
}
.online-badge {
  position: absolute;
  top: 6px;
  left: 7px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #223b28df;
  padding: 6px 8px;
  border-radius: 18px;
  font-size: 10px;
  color: #c5ffe8;
  z-index: 1;
  max-width: calc(100% - 14px);
}
.online-badge > span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mint);
}
.online-badge.offline {
  background: #112638db;
  color: #e1e9f9;
}
.online-badge.offline > span {
  background: #9bacc9;
}
.intro-button {
  position: absolute;
  bottom: 15px;
  left: 13px;
  background: #030b12de;
  border: 1px solid #647a85;
  border-radius: 24px;
  padding: 9px 12px;
  color: white;
  font-size: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
}
.intro-button i {
  font-size: 17px;
}
.tutor-details {
  padding-top: 9px;
  min-width: 0;
  position: relative;
}
.tutor-name-row {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}
.tutor-name-row h3 {
  font-size: 16px;
  letter-spacing: -0.25px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.flag {
  font-size: 19px;
}
.match-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-size: 11px;
  font-weight: 600;
  background: linear-gradient(110deg, #edb4ff, #a874fa);
  color: #111350;
  padding: 6px 11px;
  border-radius: 22px;
  box-shadow: 0 0 12px #c780fc70;
}
.match-badge.blue {
  background: linear-gradient(110deg, #9de9ff, #73bafe);
  box-shadow: 0 0 12px #80c9fc70;
}
.tutor-tagline {
  font-size: 12px;
  color: #d5def1;
  margin: 3px 0 8px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.tutor-facts {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}
.tutor-facts p {
  display: flex;
  align-items: center;
  gap: 9px;
  line-height: 15px;
}
.tutor-facts i {
  font-size: 14px;
  color: #e0e8f9;
}
.star {
  color: #ffb630;
  font-size: 19px;
  line-height: 12px;
}
.tutor-tags {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 9px;
  white-space: nowrap;
  position: relative;
  z-index: 1;
}
.tutor-tags span {
  font-size: 9px;
  padding: 4px 8px;
  border: 1px solid #304963;
  background: linear-gradient(#1d3044, #142233);
  border-radius: 14px;
}
.tutor-match {
  border-left: 1px solid #1a3045;
  align-self: start;
  margin-top: 12px;
  padding-left: 16px;
  min-height: 123px;
}
.tutor-match h4 {
  font-size: 11px;
  font-weight: 500;
  color: var(--purple);
  margin-bottom: 15px;
}
.match-body {
  display: flex;
  gap: 19px;
  align-items: flex-start;
}
.fit-ring {
  --fit: 96;
  flex-shrink: 0;
  width: 93px;
  height: 93px;
  border-radius: 50%;
  background: conic-gradient(var(--mint) calc(var(--fit) * 1%), #243853 0);
  padding: 7px;
  box-shadow: 0 0 17px #45ffb324;
  transform: rotate(0deg);
}
.fit-ring > div {
  border-radius: 50%;
  background: radial-gradient(circle at 65% 75%, #0d4a40, #051420 65%);
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.fit-ring strong {
  font-size: 24px;
}
.fit-ring small {
  font-size: 11px;
  color: #81ffdf;
}
.fit-ring.unrated {
  background: #2d6971;
}
.fit-ring.unrated i {
  font-size: 26px;
  color: var(--mint);
}
.fit-ring.unrated small {
  font-size: 9px;
}
.match-facts {
  display: grid;
  gap: 5px;
  min-width: 0;
}
.match-facts p {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 10px;
  line-height: 13px;
}
.match-facts i {
  font-style: normal;
  background: var(--mint);
  color: #03563e;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  text-align: center;
  line-height: 18px;
  border-radius: 50%;
  font-size: 13px;
}
.match-facts b {
  display: block;
  font-weight: 400;
  white-space: nowrap;
  color: #ddf5ff;
}
.match-facts p:first-child b {
  color: #a1ffee;
}
.match-facts small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 14px;
}
.tutor-booking {
  border-left: 1px solid #1a3045;
  padding-left: 11px;
  margin: 13px 0 10px;
}
.tutor-booking > p {
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
  margin: 3px 0 7px;
}
.tutor-booking > p strong {
  font-size: 18px;
  color: var(--text);
}
.gradient-button {
  background: linear-gradient(105deg, #e1a7ff, #9193ff);
  color: #071343;
  border-radius: 16px;
  min-height: 40px;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 11px;
  border: 1px solid #c2aaff;
  box-shadow: 0 0 14px #aa75fa24;
}
.tutor-booking > .gradient-button {
  width: 100%;
}
.tutor-booking > div {
  display: flex;
  gap: 8px;
  margin-top: 9px;
}
.save-button {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 1px solid #365579;
  border-radius: 50%;
  width: 37px;
  height: 37px;
  color: var(--purple);
  font-size: 18px;
}
.save-button.saved {
  background: #714d8960;
  color: #ffb7f1;
}
.profile-button {
  border: 1px solid #405777;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex: 1;
  white-space: nowrap;
  padding: 8px 10px;
}
.assistant-column {
  display: grid;
  gap: 10px;
  align-content: start;
  margin-top: -19px;
}
.assistant-column section {
  border: 1px solid #263e61;
  border-radius: 18px;
  background: linear-gradient(110deg, #071622e8, #05121eeb);
  overflow: hidden;
  padding: 16px;
}
.assistant-panel {
  min-height: 238px;
}
.assistant-heading {
  display: flex;
  align-items: center;
  gap: 13px;
}
.assistant-heading h2 {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
}
.assistant-heading h2 small {
  font-size: 8px;
  font-weight: 400;
  border: 1px solid #727feb;
  background: linear-gradient(115deg, #753faf, #00478c);
  border-radius: 12px;
  padding: 3px 5px;
}
.assistant-orb {
  flex-shrink: 0;
  width: 51px;
  height: 51px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 30% 30%,
    #fff 0%,
    #53caff 4%,
    #1250b6 16%,
    #10124b 45%,
    #2f1881 64%,
    #f3b5ff 82%,
    #81e9ff 94%
  );
  border: 1px solid #9abaff;
  box-shadow:
    0 0 15px #548bfd,
    inset 0 0 8px #a8c6ff;
  position: relative;
}
.assistant-orb:after {
  content: "";
  position: absolute;
  width: 3px;
  height: 3px;
  background: white;
  top: 19px;
  right: 9px;
  box-shadow: -19px 16px 2px white;
  border-radius: 50%;
}
.assistant-message {
  margin: -17px 0 12px 61px;
  padding: 10px 12px;
  border: 1px solid #233a51;
  border-radius: 17px;
  background: #142435d9;
  font-size: 11px;
  line-height: 17px;
  min-height: 85px;
}
.assistant-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.assistant-actions button {
  justify-self: start;
  white-space: nowrap;
  border: 1px solid #254c7c;
  background: linear-gradient(115deg, #0e2b487a, #101a429c);
  border-radius: 11px;
  font-size: 10px;
  padding: 8px 10px;
}
.assistant-actions button:nth-child(even) {
  justify-self: end;
}
.panel-heading {
  display: flex;
  gap: 11px;
  align-items: center;
  margin-bottom: 14px;
}
.panel-heading > i {
  font-size: 22px;
  color: var(--purple);
}
.panel-heading h2 {
  font-size: 14px;
  white-space: nowrap;
}
.panel-heading > button {
  margin-left: auto;
  font-size: 11px;
  padding: 0;
  color: var(--cyan);
}
.goal-panel {
  min-height: 269px;
}
.goal-summary {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 11px;
  min-height: 58px;
}
.goal-summary h3 {
  font-size: 14px;
  font-weight: 600;
  line-height: 21px;
  flex: 1;
  max-width: 141px;
}
.goal-summary p {
  font-size: 11px;
}
.goal-summary p strong {
  color: #8affdc;
  font-weight: 400;
  white-space: nowrap;
}
.goal-summary p small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 7px;
  white-space: nowrap;
}
.goal-ring {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: conic-gradient(#cb8aff calc(var(--progress) * 1%), #273859 0);
  padding: 6px;
  flex-shrink: 0;
}
.goal-ring > span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #0a172a;
  font-size: 16px;
  font-weight: 600;
}
.goal-checklist {
  display: grid;
  gap: 9px;
}
.goal-checklist label {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
}
.goal-checklist input {
  appearance: none;
  width: 19px;
  height: 19px;
  margin: 0;
  border: 1px solid #7397bd;
  border-radius: 50%;
  display: grid;
  place-content: center;
  cursor: pointer;
}
.goal-checklist input:checked {
  background: var(--mint);
  border-color: var(--mint);
}
.goal-checklist input:checked:after {
  content: "✓";
  color: #063b37;
  font-size: 14px;
  font-weight: 700;
}
.match-panel {
  min-height: 153px;
}
.match-panel .panel-heading {
  gap: 9px;
  margin-bottom: 12px;
}
.match-panel .panel-heading > button {
  font-size: 10px;
  white-space: nowrap;
}
.match-weights {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}
.match-weights > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.match-weights > div > span {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(#15364e, #091a2c);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  box-shadow: 0 -7px 0 1px #1131454d;
}
.match-weights > div:first-child > span {
  color: var(--purple);
  background: linear-gradient(#30213e, #111b2c);
}
.match-weights small {
  font-size: 9px;
  white-space: nowrap;
  color: var(--muted);
}
.match-weights b {
  font-size: 14px;
  font-weight: 500;
}
.filter-drawer {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
  margin-bottom: 10px;
}
.filter-drawer > div {
  flex: 1;
  min-width: 120px;
}
.filter-drawer label,
.filter-drawer legend {
  font-size: 12px;
  color: var(--muted);
}
.filter-drawer > div > label {
  display: block;
  margin-bottom: 8px;
}
.filter-drawer input[type="number"],
.filter-drawer select {
  border: 1px solid var(--border);
  background: var(--page);
  border-radius: 8px;
  min-height: 35px;
  width: 100%;
  color: var(--text);
  padding: 5px;
}
.filter-drawer fieldset {
  border: 0;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  flex-basis: 100%;
}
.filter-drawer fieldset label {
  display: flex;
  align-items: center;
  gap: 6px;
}
.filter-drawer input[type="checkbox"] {
  accent-color: var(--mint);
}
.search-status {
  padding: 12px;
  background: #173148;
  border: 1px solid #40628c;
  border-radius: 12px;
  margin-bottom: 12px;
  font-size: 12px;
}
.empty-results {
  min-height: 370px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: #0a1924a0;
  padding: 60px 20px;
}
.empty-results > .icon {
  font-size: 36px;
  color: var(--cyan);
}
.empty-results h3 {
  font-size: 23px;
  margin: 20px 0 10px;
}
.empty-results p {
  line-height: 24px;
  color: var(--muted);
}
.empty-results button {
  margin: 25px auto 0;
}
.discovery-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 25px 0;
  flex-wrap: wrap;
}
.discovery-pagination button {
  border: 1px solid var(--border);
  border-radius: 8px;
  width: 34px;
  height: 34px;
}
.discovery-pagination [aria-current="page"] {
  background: #a787ed;
  color: #07132b;
}
dialog {
  max-width: 550px;
  width: calc(100% - 32px);
  padding: 28px;
  border: 1px solid #6781ae;
  border-radius: 22px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 20px 90px #0009;
}
dialog::backdrop {
  background: #010813bb;
  backdrop-filter: blur(5px);
}
dialog h2 {
  margin: 0 32px 18px 0;
  font-size: 22px;
}
dialog p,
dialog li {
  color: var(--muted);
  line-height: 1.7;
}
dialog ol {
  padding-left: 22px;
}
.dialog-close {
  position: absolute;
  right: 16px;
  top: 18px;
  font-size: 22px;
}
dialog input {
  width: 100%;
  border: 1px solid var(--border);
  background: var(--page);
  color: var(--text);
  padding: 12px;
  border-radius: 10px;
  margin: 10px 0 16px;
}
dialog table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
dialog th,
dialog td {
  text-align: left;
  padding: 12px 8px;
  border-bottom: 1px solid var(--border);
}
.light-appearance {
  --page: #e6edf8;
  --surface: #f5f8ff;
  --text: #14243b;
  --muted: #3e526e;
  --border: #9aacc6;
  color-scheme: light;
}
.light-appearance .discovery-header,
.light-appearance .discovery-hero,
.light-appearance .hero-note,
.light-appearance .hero-quote {
  color: #f5f7ff;
}
.light-appearance .discovery:before {
  background:
    linear-gradient(0deg, var(--page), transparent 10%),
    url("/images/discovery/mountain-hero.png") right top / cover;
  height: 310px;
}
.light-appearance .discovery-sidebar,
.light-appearance .assistant-column section,
.light-appearance .tutor-card {
  background: var(--surface);
}
.light-appearance .side-nav i,
.light-appearance .side-nav .active {
  color: #16476c;
}
.light-appearance .assistant-message {
  background: #e1eafb;
}
.light-appearance .tutor-tagline,
.light-appearance .tutor-facts i,
.light-appearance .match-facts b,
.light-appearance .filter-pill small,
.light-appearance .tutor-match h4 {
  color: #28405d;
}
.light-appearance .assistant-actions button,
.light-appearance .tutor-tags span {
  background: #e0eafb;
  color: #213f67;
}
@media (min-width: 1600px) {
  .discovery-hero {
    max-width: calc(100% - 370px);
  }
  .tutor-card {
    grid-template-columns: 216px minmax(290px, 1fr) 315px 151px;
  }
}
@media (max-width: 1450px) {
  .discovery-header {
    gap: 20px;
  }
  .top-nav {
    gap: 22px;
  }
  .header-actions {
    gap: 13px;
  }
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr) 295px;
  }
  .tutor-card {
    grid-template-columns: 185px minmax(225px, 1fr) 245px 137px;
    gap: 10px;
  }
  .tutor-match {
    padding-left: 10px;
  }
  .match-body {
    gap: 10px;
  }
  .fit-ring {
    width: 75px;
    height: 75px;
  }
  .match-facts p {
    font-size: 9px;
    gap: 5px;
  }
  .match-facts small {
    font-size: 9px;
  }
  .tutor-tags span {
    font-size: 8px;
    padding: 4px 5px;
  }
  .match-badge {
    font-size: 9px;
    padding: 6px 7px;
  }
  .filter-pill {
    padding: 7px;
    gap: 6px;
  }
  .filter-pill > i {
    font-size: 16px;
  }
  .more-filters,
  .map-button {
    padding: 0 9px;
  }
  .map-button {
    margin-left: 0;
  }
  .assistant-column section {
    padding: 14px;
  }
  .assistant-heading h2 {
    font-size: 13px;
    gap: 6px;
  }
  .assistant-actions button {
    font-size: 9px;
  }
  .discovery-hero {
    max-width: calc(100% - 325px);
  }
  .discovery-hero h1 {
    font-size: 42px;
  }
  .discovery-hero h1 em {
    font-size: 49px;
  }
  .examples {
    gap: 6px;
  }
  .examples > button {
    font-size: 10px;
    padding: 6px 8px;
  }
  .goal-search input {
    font-size: 14px;
  }
  .hero-note {
    right: 283px;
  }
  .match-panel .panel-heading > button {
    font-size: 9px;
  }
}
@media (max-width: 1280px) {
  .top-nav > a:nth-last-child(-n + 2) {
    display: none;
  }
  .discovery-auth .home-secondary {
    display: none;
  }
  .workspace-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
  }
  .tutor-card {
    grid-template-columns: 160px minmax(200px, 1fr) 125px;
    min-height: 194px;
  }
  .tutor-match {
    display: none;
  }
  .tutor-tags {
    flex-wrap: wrap;
    white-space: normal;
  }
  .top-nav {
    gap: 18px;
  }
  .top-nav > button:last-child {
    display: none;
  }
  .header-actions {
    gap: 10px;
  }
  .signup {
    padding: 12px 17px;
  }
  .brand {
    width: 175px;
  }
  .discovery-hero {
    max-width: calc(100% - 275px);
  }
  .discovery-hero h1 {
    font-size: 34px;
  }
  .discovery-hero h1 em {
    font-size: 42px;
  }
  .discovery-hero > p {
    font-size: 14px;
  }
  .examples {
    flex-wrap: wrap;
    row-gap: 5px;
  }
  .filter-bar {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
  }
  .filter-pill {
    flex: 1 1 100px !important;
  }
  .more-filters,
  .map-button {
    flex: 1;
    height: 35px;
  }
  .assistant-heading {
    gap: 7px;
  }
  .assistant-heading h2 {
    font-size: 12px;
  }
  .assistant-orb {
    width: 43px;
    height: 43px;
  }
  .assistant-message {
    margin-left: 50px;
    margin-top: -8px;
  }
  .goal-summary h3 {
    font-size: 12px;
  }
  .goal-ring {
    width: 54px;
    height: 54px;
  }
  .match-weights small {
    font-size: 8px;
  }
  .hero-note {
    display: none;
  }
}
@media (max-width: 1050px) {
  .top-nav {
    gap: 20px;
  }
  .top-nav > a:not(.active),
  .top-nav > button {
    display: none;
  }
  .workspace-grid {
    grid-template-columns: 1fr;
  }
  .assistant-column {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 12px;
  }
  .assistant-column section {
    min-width: 0;
  }
  .assistant-heading h2 {
    white-space: normal;
  }
  .assistant-message {
    margin: 12px 0;
  }
  .assistant-actions {
    grid-template-columns: 1fr;
  }
  .assistant-actions button:nth-child(even) {
    justify-self: start;
  }
  .goal-summary {
    flex-wrap: wrap;
  }
  .match-weights {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 14px;
  }
  .match-panel .panel-heading {
    flex-wrap: wrap;
  }
  .discovery-hero {
    max-width: calc(100% - 60px);
  }
  .discovery-hero h1 {
    font-size: 38px;
  }
  .discovery-hero h1 em {
    font-size: 46px;
  }
  .hero-quote {
    display: none;
  }
  .tutor-card {
    grid-template-columns: 190px minmax(220px, 1fr) 150px;
  }
  .tutor-tags span {
    font-size: 9px;
  }
  .sidebar-bottom {
    margin-top: 50px;
  }
  .discovery-sidebar {
    bottom: 0;
  }
}
@media (max-width: 700px) {
  .discovery-header {
    height: 78px;
    padding: 13px 15px;
    gap: 12px;
  }
  .brand {
    width: auto;
  }
  .brand > span {
    font-size: 27px;
  }
  .brand svg {
    width: 33px;
    height: 37px;
  }
  .brand small {
    font-size: 6px;
  }
  .top-nav {
    display: none;
  }
  .header-actions {
    gap: 8px;
    font-size: 12px;
  }
  .header-actions > button:first-child {
    display: none;
  }
  .header-actions i {
    font-size: 17px;
  }
  .discovery-auth {
    gap: 7px;
  }
  .discovery-auth .home-secondary {
    display: none;
  }
  .discovery-auth .login-link {
    padding: 9px 3px;
  }
  .discovery-auth .home-primary {
    padding: 9px 12px;
    border-radius: 10px;
  }
  .discovery-sidebar {
    display: none;
  }
  .discovery-main {
    margin-left: 0;
    padding: 0 12px 20px;
  }
  .discovery-hero {
    padding: 7px 4px 16px;
    max-width: 100%;
    height: auto;
    min-height: 220px;
  }
  .discovery-hero h1 {
    white-space: normal;
    font-size: 31px;
    line-height: 1.17;
    letter-spacing: -0.6px;
    max-width: 520px;
  }
  .discovery-hero h1 em {
    font-size: 35px;
    white-space: nowrap;
  }
  .discovery-hero h1 svg {
    width: 85px;
    right: -15px;
    bottom: -17px;
  }
  .discovery-hero > p {
    font-size: 13px;
    line-height: 20px;
    margin: 15px 0;
  }
  .goal-search {
    gap: 8px;
    padding-left: 12px;
    height: 54px;
  }
  .goal-search > .icon {
    font-size: 18px;
  }
  .goal-search input {
    font-size: 13px;
  }
  .goal-search .search-submit {
    width: 88px;
    font-size: 12px;
    height: 40px;
    gap: 7px;
  }
  .goal-search > button > .icon {
    font-size: 16px;
  }
  .examples {
    flex-wrap: nowrap;
    overflow: auto;
    padding: 2px 0 7px;
    gap: 7px;
    scrollbar-width: thin;
  }
  .examples > span {
    display: none;
  }
  .examples > button {
    flex-shrink: 0;
  }
  .filter-bar {
    gap: 7px;
  }
  .filter-pill {
    flex: 1 1 29% !important;
    max-width: calc(33.333% - 5px);
    padding: 7px;
  }
  .filter-pill small {
    font-size: 9px;
  }
  .filter-pill select,
  .filter-pill b {
    font-size: 10px;
  }
  .filter-pill > i {
    font-size: 16px;
  }
  .more-filters,
  .map-button {
    max-width: none;
  }
  .results-toolbar {
    height: 59px;
    gap: 8px;
  }
  .results-toolbar h2 {
    font-size: 14px;
  }
  .results-toolbar label {
    font-size: 0;
    gap: 0;
  }
  .results-toolbar select {
    width: 112px;
    font-size: 10px;
  }
  .tutor-card {
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 11px;
    min-height: 0;
    padding: 0 10px 12px 0;
    border-radius: 16px;
  }
  .tutor-photo {
    min-height: 181px;
    border-radius: 14px 0 14px 0;
  }
  .mockup-photo {
    background-position-x: -239px;
  }
  .tutor-details {
    padding: 12px 0 0;
  }
  .tutor-name-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .tutor-name-row h3 {
    font-size: 15px;
    max-width: calc(100% - 30px);
  }
  .match-badge {
    font-size: 9px;
  }
  .tutor-tagline {
    font-size: 10px;
    margin: 7px 0;
  }
  .tutor-facts {
    font-size: 10px;
    gap: 4px;
  }
  .tutor-facts p {
    gap: 5px;
    line-height: 14px;
  }
  .tutor-tags {
    gap: 4px;
    margin: 8px 0;
  }
  .tutor-tags span {
    font-size: 8px;
    padding: 3px 5px;
  }
  .tutor-booking {
    grid-column: 1/-1;
    border: 0;
    margin: 0;
    padding: 0 0 0 12px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
  }
  .tutor-booking > p {
    margin: 0;
    font-size: 10px;
    flex: 1;
  }
  .tutor-booking > p strong {
    font-size: 18px;
  }
  .tutor-booking > .gradient-button {
    width: auto;
    min-height: 36px;
  }
  .tutor-booking > div {
    margin: 0;
  }
  .save-button {
    width: 33px;
    height: 33px;
    font-size: 17px;
  }
  .profile-button {
    font-size: 10px;
    padding: 8px;
  }
  .online-badge {
    font-size: 8px;
    padding: 5px;
    left: 4px;
    gap: 4px;
    max-width: calc(100% - 8px);
  }
  .online-badge > span {
    width: 6px;
    height: 6px;
  }
  .intro-button {
    font-size: 9px;
    padding: 7px 6px;
    left: 5px;
    bottom: 12px;
    gap: 4px;
  }
  .intro-button i {
    font-size: 12px;
  }
  .assistant-column {
    grid-template-columns: 1fr;
  }
  .assistant-column section {
    padding: 18px;
  }
  .assistant-panel {
    min-height: 0;
  }
  .assistant-heading h2 {
    font-size: 14px;
    white-space: nowrap;
  }
  .assistant-orb {
    width: 48px;
    height: 48px;
  }
  .assistant-message {
    margin: -12px 0 12px 59px;
    font-size: 12px;
  }
  .assistant-actions {
    grid-template-columns: 1fr 1fr;
  }
  .assistant-actions button {
    font-size: 11px;
  }
  .assistant-actions button:nth-child(even) {
    justify-self: end;
  }
  .goal-summary h3 {
    font-size: 15px;
    max-width: none;
  }
  .goal-summary {
    gap: 18px;
  }
  .goal-checklist label {
    font-size: 13px;
  }
  .match-weights {
    grid-template-columns: repeat(5, 1fr);
  }
  .match-weights small {
    font-size: 9px;
  }
  .match-panel .panel-heading > button {
    font-size: 10px;
  }
  .discovery:before {
    height: 330px;
    background-size:
      auto,
      auto,
      800px 534px;
  }
  .filter-drawer {
    gap: 12px;
  }
  .filter-drawer > div {
    min-width: 100px;
  }
}
/* Keep the local preview label accessible when the desktop navigation is hidden. */
@media (max-width: 700px) {
  .discovery-sidebar {
    display: contents;
  }
  .discovery-sidebar > nav,
  .discovery-sidebar > .sidebar-label {
    display: none;
  }
  .sidebar-bottom {
    display: contents;
  }
  .sidebar-bottom > :not(.preview-switch) {
    display: none;
  }
  .preview-switch {
    position: fixed;
    bottom: 8px;
    left: 8px;
    z-index: 5;
    margin: 0;
    padding: 7px 10px;
    border: 1px solid var(--border);
    border-radius: 15px;
    background: var(--surface);
  }
}
/* Optical alignment against the supplied desktop reference. */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
body {
  font-family: Inter, Arial, Helvetica, sans-serif;
}
.discovery-hero {
  display: flow-root;
}
.discovery-hero h1 {
  margin-top: 0;
  line-height: 1.05;
}
.discovery-hero > p {
  margin-top: 7px;
}
.assistant-heading {
  align-items: flex-start;
}
.assistant-heading h2 {
  padding-top: 6px;
}
.assistant-message {
  margin-top: -17px;
}
.assistant-actions button {
  font-size: 11px;
}
.goal-checklist label {
  font-size: 12px;
}
.tutor-facts p {
  white-space: nowrap;
}
.tutor-photo.mockup-photo {
  isolation: isolate;
}
.tutor-photo.mockup-photo:before {
  content: "";
  position: absolute;
  inset: 0;
  background: inherit;
  z-index: -1;
}
@media (min-width: 1451px) {
  .discovery:before {
    background-size:
      auto,
      auto,
      1280px 576px;
  }
  .discovery-hero h1 {
    font-size: 47px;
    letter-spacing: -1.2px;
  }
  .discovery-hero h1 em {
    font-size: 55px;
  }
  .tutor-card {
    grid-template-columns: 216px minmax(0, 1fr) 302px 155px;
  }
  .tutor-match {
    min-height: 123px;
  }
  .match-body {
    padding-left: 6px;
    gap: 26px;
  }
  .tutor-facts {
    font-size: 11px;
    gap: 6px;
  }
  .tutor-name-row h3 {
    font-size: 16px;
  }
  .tutor-tags span {
    font-size: 9px;
    padding: 4px 8px;
  }
  .match-facts p,
  .match-facts small {
    font-size: 10px;
  }
  .tutor-details {
    padding-top: 9px;
  }
  .assistant-column section {
    padding: 16px;
  }
  .assistant-heading h2 {
    font-size: 13px;
    gap: 8px;
  }
  .assistant-message {
    font-size: 11px;
  }
  .goal-summary h3 {
    font-size: 14px;
  }
  .filter-pill:nth-child(3) {
    min-width: 136px;
  }
  .hero-note {
    font-family: "Chalkboard SE", "Comic Sans MS", cursive;
    font-size: 19px;
    line-height: 23px;
    top: -33px;
    right: 321px;
  }
}
@media (max-width: 1450px) and (min-width: 701px) {
  .assistant-actions button {
    font-size: 9px;
  }
}
@media (max-width: 700px) {
  .discovery-hero h1 {
    line-height: 1.17;
  }
  .discovery-hero > p {
    margin-top: 15px;
  }
  .tutor-name-row {
    gap: 4px;
  }
  .tutor-name-row h3 {
    font-size: 14px;
  }
  .tutor-facts p {
    white-space: normal;
  }
  .mockup-photo {
    background-size: 1536px 1024px;
  }
  .portrait-0 {
    background-position: -239px -430px;
  }
  .portrait-1 {
    background-position: -239px -624px;
  }
  .portrait-2 {
    background-position: -239px -818px;
  }
  .tutor-photo.mockup-photo:after {
    content: '';
    position: absolute;
    inset: 100px 0 0;
    background: linear-gradient(transparent, #06121dfc 30%, #06121d);
    pointer-events: none;
  }
  .tutor-photo.mockup-photo .intro-button { z-index: 1; }
  .assistant-heading h2 {
    font-size: 13px;
  }
  .assistant-actions button {
    font-size: 10px;
  }
  .filter-pill:nth-child(3) {
    padding-left: 5px;
    padding-right: 4px;
    gap: 4px;
  }
  .filter-pill:nth-child(3) select {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      filter 0.15s,
      background 0.15s;
  }
  .assistant-orb {
    animation: orb-breathe 5s ease-in-out infinite;
  }
  @keyframes orb-breathe {
    50% {
      box-shadow:
        0 0 22px #7871ff,
        inset 0 0 12px #a8c6ff;
    }
  }
}


/* Progressive suggestions for the main goal search. */
.goal-search-wrap {
  position: relative;
}
.goal-search-suggestions {
  position: absolute;
  z-index: 140;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  max-height: 340px;
  overflow-y: auto;
  padding: 7px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0,0,0,.32);
}
.goal-search-suggestion {
  display: block;
  width: 100%;
  padding: 11px 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: pointer;
}
.goal-search-suggestion:hover,
.goal-search-suggestion:focus-visible {
  background: rgba(120, 113, 255, .16);
  color: var(--cyan);
  outline: none;
}

/* Keep the sidebar compact. The full catalog opens only on demand. */
.subject-nav {
  position: relative;
}
.subject-more-toggle {
  width: 100%;
}
.subject-more-panel {
  position: absolute;
  z-index: 150;
  left: calc(100% + 10px);
  top: 0;
  width: 310px;
  max-width: min(310px, 75vw);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 20px 60px rgba(0,0,0,.38);
  overflow: hidden;
}
.subject-more-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
}
.subject-more-head strong {
  font-size: 13px;
}
.subject-more-head button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.subject-more-scroll {
  max-height: min(62vh, 560px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 7px;
}
.subject-more-scroll a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 10px;
  border-radius: 9px;
}
.subject-more-scroll a:hover,
.subject-more-scroll a.active {
  background: rgba(120,113,255,.14);
}
@media (max-width: 900px) {
  .subject-more-panel {
    position: fixed;
    left: 16px;
    right: 16px;
    top: 90px;
    width: auto;
    max-width: none;
  }
  .subject-more-scroll {
    max-height: 65vh;
  }
}


/* Keep long subject/category names inside the sidebar without breaking layout. */
.subject-nav a,
.subject-nav button {
  min-width: 0;
}

.subject-nav a {
  display: flex;
  align-items: center;
}

.subject-nav a > .icon {
  flex: 0 0 auto;
}

.subject-nav .subject-label {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.subject-more-scroll a {
  min-width: 0;
}

.subject-more-scroll .subject-label {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Live Explore cards intentionally share the same visual skeleton as the approved mockup.
   Missing tutor data keeps its space instead of collapsing the card into a different layout. */
.live-tutor-card .tutor-tagline {
  min-height: 18px;
}
.live-tutor-card .tutor-facts {
  min-height: 78px;
}
.live-tutor-card .tutor-tags {
  min-height: 25px;
  overflow: hidden;
}
.live-tutor-card .tutor-tags span {
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-location {
  flex: 0 0 auto;
  font-size: 17px;
  filter: saturate(.9);
}
.profile-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 34% 28%, #b7dcff 0 10%, transparent 36%),
    linear-gradient(145deg, #183a58, #284f73 52%, #162a42);
}
.profile-fallback:before {
  content: "";
  position: absolute;
  width: 62%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(145deg, #b9d8f7, #7da6d1);
  top: 17%;
  opacity: .72;
}
.profile-fallback:after {
  content: "";
  position: absolute;
  width: 88%;
  height: 46%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(145deg, #234b6d, #142a42);
  bottom: -3%;
  opacity: .9;
}
.profile-fallback span {
  position: relative;
  z-index: 1;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #071622d9;
  border: 1px solid #7396b8;
  color: #f4f5ff;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .5px;
  box-shadow: 0 10px 30px #00101f66;
}
.live-fit-ring {
  box-shadow: 0 0 17px #45ffb324;
}
.live-tutor-card .match-facts b,
.live-tutor-card .match-facts small {
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.live-tutor-card .match-facts small {
  white-space: nowrap;
}
.live-tutor-card .tutor-booking .gradient-button {
  min-height: 40px;
}
@media (max-width: 900px) {
  .live-tutor-card .tutor-facts,
  .live-tutor-card .tutor-tags,
  .live-tutor-card .tutor-tagline {
    min-height: 0;
  }
}

/* Responsive Explore filter toolbar */
@media (max-width: 1450px) and (min-width: 1051px) {
  .filter-bar {
    gap: 8px;
  }
  .filter-pill {
    height: 56px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .more-filters,
  .map-button {
    height: 56px;
    padding-left: 12px;
    padding-right: 12px;
  }
}

@media (max-width: 1050px) and (min-width: 701px) {
  .filter-bar {
    gap: 9px;
    padding: 12px 0;
  }
  .filter-pill {
    flex-grow: 1;
  }
  .filter-subject,
  .filter-price,
  .filter-availability {
    flex-basis: 170px;
  }
  .filter-level,
  .filter-language {
    flex-basis: 130px;
  }
  .more-filters,
  .map-button {
    min-width: 120px;
  }
}

@media (max-width: 700px) {
  .catalog-column {
    overflow: hidden;
  }
  .filter-bar {
    margin: 0 -14px;
    padding: 10px 14px 12px;
    min-height: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .filter-bar::-webkit-scrollbar {
    display: none;
  }
  .filter-pill,
  .more-filters,
  .map-button {
    flex: 0 0 auto;
    height: 54px;
    scroll-snap-align: start;
  }
  .filter-subject { width: 168px; }
  .filter-level { width: 108px; }
  .filter-price { width: 148px; }
  .filter-availability { width: 154px; }
  .filter-language { width: 138px; }
  .more-filters { min-width: 132px; }
  .map-button { min-width: 86px; }
  .filter-pill small {
    font-size: 9.5px;
  }
  .filter-pill select,
  .filter-pill b {
    font-size: 13px;
  }
  .filter-drawer {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
    border-radius: 14px;
  }
  .filter-drawer > div,
  .filter-drawer fieldset {
    min-width: 0;
    width: 100%;
  }
}



@media (max-width: 480px) {
  .discovery-header {
    padding-left: 10px;
    padding-right: 10px;
  }
  .brand small {
    display: none;
  }
  .header-actions {
    gap: 6px;
  }
  .header-actions #theme-toggle {
    display: none;
  }
  .discovery-auth .login-link {
    font-size: 12px;
  }
  .discovery-auth .home-primary {
    padding: 8px 10px;
    font-size: 12px;
  }
}

.discovery-footer {
  margin-top: 0;
}

/* Interactive tutor map */
.map-button[aria-expanded="true"] {
  border-color: #8b70bd;
  background: linear-gradient(115deg, #251d3c88, #13273b);
  color: #f0dcff;
}
.discovery.map-active .workspace-grid {
  grid-template-columns: minmax(0, 1fr);
}
.discovery.map-active .assistant-column {
  display: none;
}
.explore-map-panel {
  margin: 4px 0 14px;
  border: 1px solid #2c4763;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(145deg, #071722, #091b2a);
  box-shadow: 0 18px 48px rgba(0, 8, 19, .24);
}
.explore-map-head {
  min-height: 82px;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid #213b56;
}
.explore-map-head h3 {
  margin: 3px 0 3px;
  font-size: 19px;
  letter-spacing: -.35px;
}
.explore-map-head p {
  margin: 0;
  color: #8fa6bf;
  font-size: 11px;
}
.explore-map-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.explore-map-actions button {
  min-height: 38px;
  border: 1px solid #385675;
  border-radius: 11px;
  background: #0a1b2a;
  color: #dce7f7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
}
.explore-map-actions button:hover {
  border-color: #6783a7;
  background: #102438;
}
.explore-map-actions button:disabled {
  opacity: .55;
}
.explore-map-shell {
  position: relative;
  min-height: 560px;
}
.explore-map-canvas {
  width: 100%;
  height: 560px;
  background: #0b1a27;
}
.explore-map-loading {
  position: absolute;
  inset: 0;
  z-index: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  background: rgba(5, 15, 25, .76);
  backdrop-filter: blur(5px);
}
.explore-map-loading .assistant-orb {
  margin-bottom: 5px;
}
.explore-map-loading strong {
  font-size: 14px;
}
.explore-map-loading small {
  color: #9db0c7;
  font-size: 10px;
}
.explore-map-status {
  min-height: 36px;
  margin: 0;
  padding: 10px 18px 11px;
  border-top: 1px solid #213b56;
  color: #8fa6bf;
  font-size: 10px;
}
.explore-map-panel .leaflet-container {
  font-family: "Manrope", Inter, "Avenir Next", Arial, sans-serif;
  background: #0c1b28;
}
.explore-map-panel .leaflet-control-zoom a {
  background: #0d2031;
  color: #e7edf8;
  border-color: #294764;
}
.explore-map-panel .leaflet-control-zoom a:hover {
  background: #17314a;
  color: #fff;
}
.explore-map-panel .leaflet-control-attribution {
  background: rgba(7, 17, 29, .82);
  color: #90a5bd;
}
.explore-map-panel .leaflet-control-attribution a {
  color: #9bdcff;
}
.edufy-map-marker-wrap {
  background: transparent;
  border: 0;
}
.edufy-map-marker {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255,255,255,.9);
  border-radius: 50% 50% 50% 13px;
  transform: rotate(-45deg);
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #7ee5ff, #967dff 56%, #e59aef);
  color: #071522;
  font-size: 12px;
  font-weight: 800;
  box-shadow:
    0 7px 18px rgba(18, 92, 160, .35),
    0 0 0 5px rgba(118, 199, 255, .10);
}
.edufy-map-marker b {
  transform: rotate(45deg);
  color: #071522;
  font: inherit;
  line-height: 1;
}
.edufy-map-popup {
  min-width: 250px;
  color: #17233a;
  font-family: "Manrope", Inter, "Avenir Next", Arial, sans-serif;
}
.edufy-map-popup-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  padding: 2px 1px 9px;
  border-bottom: 1px solid #e6ebf1;
}
.edufy-map-popup-head strong {
  font-size: 13px;
}
.edufy-map-popup-head small {
  color: #718197;
  font-size: 9px;
  white-space: nowrap;
}
.edufy-map-tutor {
  display: grid;
  grid-template-columns: 38px minmax(0,1fr) auto;
  align-items: center;
  gap: 9px;
  padding: 9px 1px;
  color: #17233a !important;
  border-bottom: 1px solid #eef1f5;
  text-decoration: none !important;
}
.edufy-map-tutor:last-of-type {
  border-bottom: 0;
}
.edufy-map-tutor:hover {
  background: #f7f9fc;
}
.edufy-map-tutor img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  object-fit: cover;
  background: #e8edf3;
}
.edufy-map-tutor > span {
  min-width: 0;
}
.edufy-map-tutor strong,
.edufy-map-tutor small {
  display: block;
}
.edufy-map-tutor strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.edufy-map-tutor small {
  margin-top: 2px;
  color: #74849a;
  font-size: 9px;
}
.edufy-map-tutor b {
  color: #645dd1;
  font-size: 10px;
  white-space: nowrap;
}
.edufy-map-more {
  display: block;
  padding-top: 8px;
  color: #74849a;
  font-size: 9px;
}
.explore-map-panel .leaflet-popup-content-wrapper {
  border-radius: 14px;
}
.explore-map-panel .leaflet-popup-content {
  margin: 12px 13px;
}
.explore-map-panel .leaflet-popup-tip {
  background: white;
}

@media (max-width: 1050px) {
  .explore-map-shell,
  .explore-map-canvas {
    min-height: 500px;
    height: 500px;
  }
}

@media (max-width: 700px) {
  .explore-map-panel {
    margin-top: 2px;
    border-radius: 15px;
  }
  .explore-map-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }
  .explore-map-actions {
    width: 100%;
  }
  .explore-map-actions button {
    flex: 1;
    min-height: 42px;
  }
  .explore-map-shell,
  .explore-map-canvas {
    min-height: 58vh;
    height: 58vh;
  }
  .explore-map-status {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 430px) {
  .explore-map-actions button span {
    font-size: 10px;
  }
  .explore-map-canvas,
  .explore-map-shell {
    min-height: 54vh;
    height: 54vh;
  }
}
