:root {
  --ink: #052f29;
  --ink-soft: #244a43;
  --green: #3f8e72;
  --green-dark: #286a56;
  --mint: #ddf2e8;
  --mint-soft: #eff8f4;
  --paper: #fffdf7;
  --white: #ffffff;
  --line: #9dccbb;
  --line-soft: #dceae4;
  --muted: #60756f;
  --shadow-soft: 0 18px 48px rgba(5, 47, 41, 0.09);
  --radius-small: 14px;
  --radius-medium: 24px;
  --radius-large: 36px;
  --content: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::selection {
  color: var(--white);
  background: var(--green-dark);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid #1674d1;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: var(--white);
  background: var(--ink);
  border-radius: 10px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(157, 204, 187, 0.45);
  background: rgba(255, 253, 247, 0.94);
  backdrop-filter: blur(16px);
}

.nav-shell,
.section-shell,
.hero-shell,
.trust-shell,
.final-cta-shell,
.footer-shell {
  width: min(calc(100% - 40px), var(--content));
  margin-inline: auto;
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-name {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.025em;
}

.brand-tagline {
  margin-top: 4px;
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--ink-soft);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  position: relative;
  padding-block: 9px;
}

.nav-links a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  content: "";
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-actions,
.hero-actions,
.final-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.language-toggle {
  min-width: 48px;
  min-height: 44px;
  padding: 0 12px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.language-toggle:hover {
  background: var(--mint-soft);
  border-color: var(--line);
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-small {
  min-height: 42px;
  padding: 10px 18px;
  font-size: 14px;
}

.button-primary {
  color: var(--white);
  background: var(--ink);
}

.button-primary:hover {
  background: #0b463d;
}

.button-secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
}

.button-secondary:hover {
  background: var(--mint-soft);
  border-color: var(--green);
}

.section {
  padding-block: 104px;
}

.hero {
  overflow: hidden;
  padding-top: 82px;
  padding-bottom: 88px;
  background: var(--paper);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.82fr);
  align-items: center;
  gap: 76px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 680px;
  margin-bottom: 24px;
  font-size: clamp(46px, 6vw, 78px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(34px, 4.5vw, 54px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 12px;
  font-size: 24px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.hero-lead {
  max-width: 620px;
  margin-bottom: 34px;
  color: var(--ink-soft);
  font-size: 19px;
}

.form-note {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-browse-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--green-dark);
  font-size: 14px;
  font-weight: 900;
}

.hero-visual {
  position: relative;
  min-height: 590px;
  display: grid;
  place-items: center;
  padding: 38px;
  background: var(--mint);
  border-radius: var(--radius-large);
}

.profile-frame {
  margin: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 26px;
  box-shadow: var(--shadow-soft);
}

.profile-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-frame-primary {
  width: min(78%, 380px);
  aspect-ratio: 3 / 4;
  transform: rotate(1.8deg);
}

.match-note {
  position: absolute;
  right: 18px;
  bottom: 54px;
  width: min(250px, 62%);
  padding: 17px 20px;
  color: var(--white);
  background: var(--ink);
  border-radius: var(--radius-small);
  box-shadow: 0 16px 32px rgba(5, 47, 41, 0.18);
}

.match-note-kicker {
  display: block;
  margin-bottom: 3px;
  color: #aee0ce;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.match-note strong {
  font-size: 16px;
}

.trust-strip {
  color: var(--white);
  background: var(--ink);
}

.trust-shell {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.trust-item {
  padding: 28px 30px;
  border-right: 1px solid rgba(221, 242, 232, 0.2);
}

.trust-item:first-child {
  padding-left: 0;
}

.trust-item:last-child {
  padding-right: 0;
  border-right: 0;
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item strong {
  margin-bottom: 2px;
  font-size: 17px;
}

.trust-item span {
  color: #bcd9cf;
  font-size: 13px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 50px;
}

.section-heading-wide {
  max-width: 860px;
}

.section-heading > p:last-child,
.profiles-copy > p {
  color: var(--ink-soft);
  font-size: 18px;
}

.paths-section,
.faq-section {
  background: var(--mint-soft);
}

.path-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.path-card {
  min-height: 490px;
  display: flex;
  flex-direction: column;
  padding: 42px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-medium);
}

.path-card-tutor {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}

.path-label {
  width: fit-content;
  margin-bottom: 48px;
  padding: 6px 11px;
  color: var(--green-dark);
  background: var(--mint);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.path-card-tutor .path-label {
  color: var(--ink);
  background: #bfe8d8;
}

.path-card > p:not(.path-label) {
  color: var(--ink-soft);
}

.path-card-tutor > p:not(.path-label) {
  color: #cce3db;
}

.plain-list {
  margin: 20px 0 36px;
  padding: 0;
  list-style: none;
}

.plain-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 700;
}

.path-card-tutor .plain-list li {
  border-color: rgba(221, 242, 232, 0.18);
}

.text-link {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  color: var(--green-dark);
  font-weight: 900;
}

.path-card-tutor .text-link {
  color: #bfe8d8;
}

.transparency-note {
  margin-top: 24px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  align-items: baseline;
  gap: 28px;
  padding: 24px 28px;
  background: #e1f1ea;
  border-radius: var(--radius-small);
}

.transparency-note p {
  margin: 0;
  color: var(--ink-soft);
}

.process-section {
  background: var(--paper);
}

.process-shell {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  gap: 70px;
}

.process-shell .section-heading {
  position: sticky;
  top: 122px;
  align-self: start;
}

.journey-tabs {
  grid-column: 2;
  display: flex;
  gap: 8px;
  padding: 6px;
  background: var(--mint-soft);
  border: 1px solid var(--line-soft);
  border-radius: 999px;
}

.journey-tab {
  flex: 1;
  min-height: 46px;
  padding: 10px 18px;
  color: var(--ink-soft);
  background: transparent;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}

.journey-tab.is-active {
  color: var(--white);
  background: var(--ink);
}

.journey-panel {
  grid-column: 2;
}

.journey-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-soft);
}

.journey-list li {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 22px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-soft);
}

.step-number {
  color: var(--green);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.journey-list h3 {
  margin-bottom: 5px;
  font-size: 20px;
}

.journey-list p {
  margin: 0;
  color: var(--ink-soft);
}

.profiles-section {
  background: var(--white);
}

.profiles-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.78fr);
  align-items: center;
  gap: 86px;
}

.profile-fields {
  margin: 38px 0 30px;
  border-top: 1px solid var(--line-soft);
}

.profile-fields > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line-soft);
}

.profile-fields dt {
  font-weight: 900;
}

.profile-fields dd {
  margin: 0;
  color: var(--muted);
}

.privacy-copy {
  padding-left: 16px;
  border-left: 3px solid var(--green);
  font-size: 14px !important;
}

.profile-gallery {
  display: grid;
  place-items: center;
  padding: 42px;
  background: var(--mint);
  border-radius: var(--radius-large);
}

.profile-frame-secondary {
  width: min(100%, 390px);
}

.profile-frame-secondary img {
  aspect-ratio: 3 / 4;
}

.profile-frame figcaption {
  padding: 13px 16px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.tutor-directory-section { background: var(--white); }

.directory-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.7fr);
  align-items: end;
  gap: 56px;
  max-width: none;
}

.directory-heading > p {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 17px;
}

.tutor-filters {
  display: grid;
  grid-template-columns: minmax(210px, 1.2fr) repeat(2, minmax(150px, 0.8fr)) auto;
  align-items: end;
  gap: 14px;
  padding: 18px;
  background: var(--mint-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-medium);
}

.tutor-filters label {
  display: grid;
  gap: 7px;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 900;
}

.tutor-filters select,
.tutor-filters input {
  min-height: 48px;
  padding: 0 42px 0 14px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
}

.tutor-filters input {
  padding-right: 14px;
}

.filter-reset {
  min-height: 48px;
  padding: 0 18px;
  color: var(--green-dark);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 900;
}

.filter-reset:hover { background: var(--white); }

.directory-result {
  margin: 22px 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.tutor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.tutor-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-medium);
  box-shadow: 0 12px 34px rgba(5, 47, 41, 0.05);
}

.tutor-card-media {
  height: 250px;
  display: grid;
  place-items: center;
  padding: 12px;
  background: var(--mint-soft);
  border-bottom: 1px solid var(--line-soft);
}

.tutor-card.has-profile-image .tutor-card-media {
  height: auto;
  align-items: start;
}

.tutor-card-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: center;
  background: var(--mint);
  border-radius: 10px;
}

.tutor-card.has-profile-image .tutor-card-image {
  height: auto;
  max-height: none;
}

.tutor-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.tutor-card.has-profile-image .tutor-card-body {
  position: relative;
  z-index: 1;
  padding-top: 20px;
  background: var(--paper);
}

.tutor-card-kicker {
  margin: 0 0 9px;
  color: var(--green-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.tutor-card h3 { margin: 0 0 9px; font-size: 23px; }

.tutor-card-education {
  min-height: 50px;
  margin: 0 0 18px;
  color: var(--ink-soft);
  font-size: 14px;
}

.tutor-card.has-profile-image .tutor-card-education {
  min-height: 0;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.tutor-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 22px; }

.tutor-tag {
  padding: 6px 9px;
  color: var(--green-dark);
  background: var(--mint);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.tutor-card-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: auto 0 20px; }
.tutor-card-meta div { padding-top: 12px; border-top: 1px solid var(--line-soft); }
.tutor-card-meta span, .tutor-card-meta strong { display: block; }
.tutor-card-meta span { margin-bottom: 3px; color: var(--muted); font-size: 11px; font-weight: 800; }
.tutor-card-meta strong { font-size: 14px; }
.tutor-card .button { width: 100%; }

.directory-empty {
  padding: 40px;
  background: var(--mint-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius-medium);
  text-align: center;
}

.directory-empty p { margin: 8px auto 22px; color: var(--ink-soft); }

.directory-privacy {
  margin: 22px 0 0;
  padding-left: 15px;
  color: var(--muted);
  border-left: 3px solid var(--green);
  font-size: 13px;
}

.directory-load-more {
  margin: 28px auto 0;
}

.tutor-dialog {
  width: min(calc(100% - 32px), 980px);
  max-height: min(90vh, 900px);
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: var(--radius-medium);
  box-shadow: 0 30px 90px rgba(5, 47, 41, 0.28);
}

.tutor-dialog::backdrop { background: rgba(2, 25, 22, 0.72); backdrop-filter: blur(5px); }

.dialog-close {
  position: absolute;
  z-index: 2;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line-soft);
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
}

.dialog-layout { display: grid; grid-template-columns: minmax(340px, 0.9fr) minmax(0, 1.1fr); }
.dialog-layout-text-only { grid-template-columns: 1fr; }
.dialog-layout-text-only .dialog-copy { width: min(100%, 760px); margin-inline: auto; }

.dialog-media {
  display: grid;
  place-items: center;
  padding: 22px;
  background: var(--mint-soft);
}

.dialog-poster {
  width: 100%;
  height: auto;
  max-height: calc(90vh - 44px);
  min-height: 0;
  display: block;
  object-fit: contain;
  object-position: center;
  background: var(--mint);
  border-radius: 12px;
}

.dialog-copy { padding: 54px 44px 42px; }
.dialog-copy h2 { margin-bottom: 8px; font-size: 34px; }
.dialog-education { margin-bottom: 26px; color: var(--ink-soft); }
.dialog-details { display: grid; gap: 18px; margin: 0 0 30px; }
.dialog-details div { padding-bottom: 16px; border-bottom: 1px solid var(--line-soft); }
.dialog-details dt { margin-bottom: 6px; color: var(--muted); font-size: 12px; font-weight: 900; }
.dialog-details dd { margin: 0; font-weight: 800; }
.dialog-note { color: var(--muted); font-size: 12px; }

.about-section { color: var(--white); background: var(--ink); }

.about-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  align-items: center;
  gap: 76px;
}

.about-copy .eyebrow { color: #aee0ce; }
.about-copy h2 { color: var(--white); }
.about-copy > p:not(.eyebrow) { color: #c9ded7; font-size: 18px; }
.about-points { display: grid; gap: 16px; margin: 30px 0; }
.about-points div { display: grid; gap: 3px; padding-left: 16px; border-left: 3px solid #73c4a5; }
.about-points span { color: #bcd9cf; font-size: 14px; }

.instagram-panel {
  padding: 22px;
  background: var(--paper);
  border-radius: var(--radius-large);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.2);
}

.instagram-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 13px;
}

.instagram-panel-head > div { display: flex; align-items: center; gap: 10px; }
.instagram-panel-head > span { color: var(--green-dark); font-weight: 900; }

.instagram-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--white);
  background: var(--green-dark);
  border-radius: 10px;
  font-size: 11px;
  font-weight: 900;
}

.instagram-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.instagram-tile { overflow: hidden; border-radius: 14px; background: var(--mint); }
.instagram-tile img { width: 100%; height: 280px; display: block; object-fit: cover; object-position: center top; transition: transform 180ms ease; }
.instagram-tile:hover img { transform: scale(1.025); }

.faq-shell {
  display: grid;
  grid-template-columns: 0.68fr 1.32fr;
  gap: 80px;
}

.faq-list {
  border-top: 1px solid var(--line);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  padding: 24px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
}

.faq-list details p {
  max-width: 680px;
  margin-bottom: 24px;
  color: var(--ink-soft);
}

.final-cta {
  padding-block: 90px;
  color: var(--white);
  background: var(--ink);
}

.final-cta-shell {
  max-width: 850px;
  text-align: center;
}

.eyebrow-light {
  color: #aee0ce;
}

.final-cta .eyebrow {
  color: #aee0ce;
}

.final-cta h2 {
  margin-inline: auto;
}

.final-cta p:not(.eyebrow) {
  color: #c9ded7;
  font-size: 18px;
}

.final-actions {
  justify-content: center;
  margin-top: 32px;
}

.button-light {
  color: var(--ink);
  background: var(--white);
}

.button-light:hover {
  background: var(--mint);
}

.button-outline-light {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
}

.button-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--white);
}

.site-footer {
  padding: 42px 0 120px;
  background: var(--paper);
}

.footer-shell {
  display: grid;
  grid-template-columns: 0.8fr 1.5fr 0.8fr;
  align-items: start;
  gap: 42px;
}

.footer-brand {
  display: block;
  margin-bottom: 5px;
  font-size: 20px;
}

.footer-shell p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-terms {
  max-width: 580px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
}

.footer-links a {
  color: var(--green-dark);
  font-weight: 900;
}

.mobile-cta {
  display: none;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1040px) {
  .nav-links {
    display: none;
  }

  .hero-shell {
    grid-template-columns: 1fr 0.8fr;
    gap: 42px;
  }

  .hero-visual {
    min-height: 520px;
  }

  .process-shell,
  .faq-shell {
    gap: 44px;
  }

  .profiles-shell {
    gap: 50px;
  }

  .tutor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-shell {
    gap: 46px;
  }

  .instagram-tile img {
    height: 220px;
  }
}

@media (max-width: 820px) {
  .section {
    padding-block: 80px;
  }

  .hero {
    padding-top: 62px;
  }

  .hero-shell,
  .profiles-shell {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: center;
  }

  .hero-lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-browse-link {
    margin-inline: auto;
  }

  .hero-visual {
    min-height: 560px;
  }

  .trust-shell {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-item,
  .trust-item:first-child,
  .trust-item:last-child {
    padding: 24px;
    border-right: 1px solid rgba(221, 242, 232, 0.2);
    border-bottom: 1px solid rgba(221, 242, 232, 0.2);
  }

  .trust-item:nth-child(2n) {
    border-right: 0;
  }

  .trust-item:nth-child(n + 3) {
    border-bottom: 0;
  }

  .process-shell,
  .faq-shell {
    grid-template-columns: 1fr;
  }

  .process-shell .section-heading {
    position: static;
  }

  .journey-tabs,
  .journey-panel {
    grid-column: 1;
  }

  .faq-shell .section-heading {
    margin-bottom: 0;
  }

  .profile-gallery {
    order: -1;
  }

  .directory-heading,
  .about-shell,
  .dialog-layout {
    grid-template-columns: 1fr;
  }

  .directory-heading {
    gap: 16px;
  }

  .about-shell {
    gap: 48px;
  }

  .dialog-poster {
    width: min(100%, 440px);
    max-height: 52vh;
  }

  .footer-shell {
    grid-template-columns: 1fr 1fr;
  }

  .footer-terms {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 78px;
  }

  body {
    padding-bottom: 84px;
  }

  .nav-shell,
  .section-shell,
  .hero-shell,
  .trust-shell,
  .final-cta-shell,
  .footer-shell {
    width: min(calc(100% - 28px), var(--content));
  }

  .nav-shell {
    min-height: 68px;
    gap: 12px;
  }

  .brand-tagline,
  .nav-actions .button {
    display: none;
  }

  .brand-name {
    font-size: 18px;
  }

  .section {
    padding-block: 64px;
  }

  .hero {
    padding-top: 46px;
    padding-bottom: 58px;
  }

  h1 {
    font-size: clamp(42px, 14vw, 58px);
  }

  h2 {
    font-size: 36px;
  }

  .hero-lead,
  .section-heading > p:last-child,
  .profiles-copy > p,
  .final-cta p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-actions,
  .final-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .button,
  .final-actions .button {
    width: 100%;
  }

  .hero-visual {
    min-height: 460px;
    padding: 25px;
    border-radius: 28px;
  }

  .profile-frame-primary {
    width: 78%;
  }

  .match-note {
    right: 8px;
    bottom: 30px;
  }

  .trust-shell,
  .path-grid {
    grid-template-columns: 1fr;
  }

  .trust-item,
  .trust-item:first-child,
  .trust-item:last-child,
  .trust-item:nth-child(2n),
  .trust-item:nth-child(n + 3) {
    padding: 19px 4px;
    border-right: 0;
    border-bottom: 1px solid rgba(221, 242, 232, 0.2);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .path-card {
    min-height: 0;
    padding: 30px 24px;
  }

  .path-label {
    margin-bottom: 32px;
  }

  .transparency-note {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 22px;
  }

  .journey-tabs {
    border-radius: 20px;
  }

  .journey-tab {
    padding-inline: 10px;
    border-radius: 15px;
    font-size: 13px;
  }

  .journey-list li {
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 12px;
  }

  .profile-fields > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .profile-gallery {
    padding: 24px;
    border-radius: 28px;
  }

  .tutor-filters,
  .tutor-grid {
    grid-template-columns: 1fr;
  }

  .tutor-card-education {
    min-height: 0;
  }

  .dialog-copy {
    padding: 34px 24px 28px;
  }

  .dialog-poster {
    max-height: 44vh;
  }

  .instagram-panel {
    padding: 14px;
    border-radius: 24px;
  }

  .instagram-tile img {
    height: 160px;
  }

  .faq-list summary {
    font-size: 16px;
  }

  .final-cta {
    padding-block: 70px;
  }

  .footer-shell {
    grid-template-columns: 1fr;
  }

  .footer-terms {
    grid-column: auto;
    grid-row: auto;
  }

  .footer-links {
    align-items: flex-start;
  }

  .mobile-cta {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
    padding: 10px 14px max(10px, env(safe-area-inset-bottom));
    background: rgba(255, 253, 247, 0.96);
    border-top: 1px solid var(--line-soft);
    backdrop-filter: blur(16px);
  }

  .mobile-cta .button {
    min-height: 46px;
    padding: 10px 12px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Tutor Break multi-page discovery experience */

:root {
  --ink: #073f35;
  --ink-strong: #032c26;
  --ink-soft: #244a43;
  --green: #28785f;
  --green-dark: #17654f;
  --mint: #dff3ea;
  --mint-soft: #f0f8f4;
  --paper: #fbf8ef;
  --warm: #f3d9a9;
  --line: #91c8b3;
  --line-soft: #d4e7df;
  --shadow-soft: 0 20px 54px rgba(3, 44, 38, 0.1);
  --shadow-card: 0 12px 30px rgba(3, 44, 38, 0.07);
}

body {
  min-width: 320px;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.site-header {
  box-shadow: 0 1px 0 rgba(3, 44, 38, 0.04);
}

.nav-shell {
  min-height: 78px;
}

.nav-links a[aria-current="page"] {
  color: var(--green-dark);
}

.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.shortlist-nav,
.shortlist-inline {
  min-height: 42px;
  padding: 9px 13px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

.shortlist-nav span,
.shortlist-inline span {
  min-width: 22px;
  min-height: 22px;
  display: inline-grid;
  place-items: center;
  margin-left: 5px;
  color: var(--white);
  background: var(--ink);
  border-radius: 7px;
}

.nav-menu-toggle {
  width: 44px;
  height: 44px;
  display: none;
  place-items: center;
  gap: 4px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  cursor: pointer;
}

.nav-menu-toggle > span[aria-hidden="true"] {
  width: 20px;
  height: 2px;
  display: block;
  background: var(--ink);
  border-radius: 2px;
}

.hero {
  background:
    radial-gradient(circle at 5% 10%, rgba(145, 200, 179, 0.15), transparent 28%),
    var(--paper);
}

.hero-shell {
  grid-template-columns: minmax(0, 1.04fr) minmax(410px, 0.86fr);
  gap: clamp(42px, 6vw, 82px);
}

.hero h1 {
  max-width: 760px;
}

.hero-tutor-link {
  width: fit-content;
  display: inline-flex;
  gap: 8px;
  margin-top: 18px;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
}

.hero-visual-html {
  min-height: 570px;
  padding: clamp(24px, 4vw, 46px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.5), transparent 48%),
    var(--mint);
}

[data-hero-card-host] {
  display: contents;
}

.hero-tutor-card {
  width: min(100%, 430px);
  padding: clamp(26px, 4vw, 38px);
  background: var(--paper);
  border: 1px solid rgba(7, 63, 53, 0.14);
  border-radius: 26px 26px 80px 26px;
  box-shadow: 0 28px 65px rgba(3, 44, 38, 0.15);
  transform: rotate(1deg);
}

.hero-card-head,
.tutor-card-topline,
.profile-title-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hero-card-head {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--green-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.hero-card-head strong {
  color: var(--ink);
  font-size: 15px;
  letter-spacing: 0;
}

.hero-tutor-card h2 {
  margin: 28px 0 12px;
  font-size: clamp(26px, 3.1vw, 38px);
  letter-spacing: -0.035em;
}

.hero-card-results {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 16px;
  align-items: center;
  margin: 24px 0;
  padding: 16px 0;
  border-block: 1px solid var(--line-soft);
}

.hero-card-results > span {
  min-height: 58px;
  display: grid;
  place-items: center;
  color: var(--ink-strong);
  background: var(--warm);
  border-radius: 18px 18px 30px 18px;
  font-size: 21px;
  font-weight: 950;
}

.hero-card-results p,
.hero-card-meta,
.microcopy {
  margin: 0;
}

.hero-card-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0;
}

.hero-card-meta div {
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.hero-card-meta dt,
.tutor-card-meta dt {
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.hero-card-meta dd,
.tutor-card-meta dd {
  margin: 0;
  color: var(--ink);
  font-weight: 900;
}

.microcopy {
  margin-top: 14px;
  color: var(--muted);
  font-size: 12px;
}

.language-source-note {
  width: fit-content;
  display: block;
  margin: 7px 0;
  padding: 4px 7px;
  color: #285a4c;
  background: #edf3cf;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 850;
}

.trust-item strong {
  font-size: clamp(20px, 2.2vw, 29px);
}

.quick-finder {
  background: var(--mint-soft);
}

.section-heading-wide {
  width: min(100%, 800px);
  margin-bottom: 42px;
}

.section-heading-wide > p:last-child {
  max-width: 700px;
  color: var(--ink-soft);
  font-size: 17px;
}

.subject-browser {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.subject-browser a {
  min-height: 92px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  padding: 19px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 18px 18px 34px 18px;
  box-shadow: 0 6px 18px rgba(3, 44, 38, 0.04);
  font-weight: 900;
  transition: transform 160ms ease, border-color 160ms ease;
}

.subject-browser a:hover {
  border-color: var(--green);
  transform: translateY(-3px);
}

.subject-browser strong {
  color: var(--green-dark);
  font-size: 23px;
}

.latest-tutors,
.similar-section {
  background: var(--white);
}

.directory-heading {
  align-items: end;
  margin-bottom: 38px;
}

.tutor-grid-preview {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tutor-card {
  min-width: 0;
  padding: 0;
  overflow: visible;
  border-radius: 22px 22px 46px 22px;
  box-shadow: var(--shadow-card);
}

.tutor-card-topline {
  padding: 20px 22px 14px;
  border-bottom: 1px solid var(--line-soft);
}

.tutor-id {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.result-badge {
  display: inline-grid;
  place-items: center;
  min-height: 30px;
  padding: 4px 9px;
  color: var(--ink-strong);
  background: var(--warm);
  border-radius: 9px 9px 14px 9px;
  font-size: 12px;
  font-weight: 950;
}

.result-badge-large {
  min-height: 42px;
  padding: 7px 13px;
  font-size: 16px;
}

.tutor-card > h3,
.tutor-card > .language-source-note,
.tutor-card > .tutor-tags,
.tutor-card > .tutor-card-meta,
.tutor-card > .tutor-card-actions {
  margin-inline: 22px;
}

.tutor-card > h3 {
  min-height: 76px;
  margin-top: 20px;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
  font-size: 18px;
  line-height: 1.4;
}

.tutor-card .tutor-tags {
  min-height: 64px;
  margin-top: 15px;
  margin-bottom: 20px;
}

.tutor-card-meta {
  margin-top: auto;
  margin-bottom: 20px;
}

.tutor-card-meta div {
  min-width: 0;
}

.tutor-card-meta dd {
  overflow-wrap: anywhere;
  font-size: 13px;
}

.tutor-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 22px;
}

.tutor-card-actions .button {
  min-height: 46px;
  padding: 11px 14px;
  font-size: 13px;
}

.save-tutor {
  min-width: 48px;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 9px 11px;
  color: var(--ink);
  background: var(--mint-soft);
  border: 1px solid var(--line);
  border-radius: 13px;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.save-tutor[aria-pressed="true"] {
  color: var(--white);
  background: var(--ink);
  border-color: var(--ink);
}

.tutor-card-compact > h3 {
  min-height: 52px;
}

.tutor-card-compact .tutor-tags {
  min-height: 34px;
}

.fee-section {
  color: var(--white);
  background: var(--ink);
}

.fee-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: start;
}

.fee-section h2,
.fee-section .eyebrow {
  color: var(--white);
}

.fee-lead {
  color: #d8ebe4;
  font-size: 19px;
  line-height: 1.75;
}

.fee-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 30px;
}

.fee-flow span {
  min-height: 82px;
  display: grid;
  place-items: center;
  padding: 15px;
  color: var(--ink);
  background: var(--mint);
  border-radius: 16px 16px 28px 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 900;
}

.about-copy .text-link-light {
  margin-top: 20px;
}

.text-link-light {
  color: var(--mint);
}

.instagram-tile img {
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: top;
}

.page-hero {
  padding: 94px 0 82px;
  background:
    linear-gradient(120deg, rgba(223, 243, 234, 0.92), rgba(251, 248, 239, 0.96)),
    var(--mint);
}

.page-hero .section-shell {
  width: min(calc(100% - 40px), 960px);
  margin-left: max(20px, calc((100% - var(--content)) / 2));
}

.page-hero h1 {
  max-width: 900px;
  margin-bottom: 24px;
}

.page-hero p:last-child {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 18px;
}

.directory-page-hero {
  padding-bottom: 112px;
}

.directory-section {
  padding-top: 0;
  background: var(--white);
}

.directory-filter-form {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(250px, 1.6fr) repeat(3, minmax(145px, 0.85fr));
  gap: 14px;
  margin-top: -54px;
  margin-bottom: 28px;
  padding: 24px;
  background: var(--paper);
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}

.directory-filter-form > div {
  min-width: 0;
}

.directory-filter-form label {
  display: block;
  margin: 0 0 7px;
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 900;
}

.directory-filter-form input,
.directory-filter-form select {
  width: 100%;
  min-height: 46px;
  padding: 10px 12px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 11px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
}

.filter-reset {
  align-self: end;
  min-height: 46px;
  padding: 10px 14px;
  color: var(--green-dark);
  background: var(--mint-soft);
  border: 1px solid var(--line);
  border-radius: 11px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
}

.directory-toolbar {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.directory-toolbar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.directory-load-more {
  display: block;
}

.profile-page {
  padding-top: 54px;
  background: var(--paper);
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.breadcrumbs a {
  color: var(--green-dark);
}

.profile-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.75fr);
  gap: clamp(42px, 7vw, 92px);
  align-items: start;
}

.profile-title-line {
  justify-content: flex-start;
}

.profile-title-line h1 {
  margin-bottom: 8px;
  font-size: clamp(48px, 7vw, 76px);
}

.profile-education {
  max-width: 700px;
  margin-bottom: 30px;
  color: var(--ink-soft);
  font-size: 20px;
}

.profile-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 30px;
  margin: 0 0 28px;
  border-top: 1px solid var(--line);
}

.profile-details div {
  min-width: 0;
  padding: 22px 0;
  border-bottom: 1px solid var(--line-soft);
}

.profile-details dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.profile-details dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.65;
}

.profile-availability {
  padding: 16px 18px;
  color: var(--ink-soft);
  background: var(--mint-soft);
  border-left: 4px solid var(--green-dark);
  font-size: 13px;
}

.profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
}

.text-button {
  min-height: 44px;
  padding: 9px 12px;
  color: var(--green-dark);
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.back-link {
  width: fit-content;
  display: inline-block;
  margin-top: 36px;
  color: var(--green-dark);
  font-weight: 900;
}

.profile-media-card {
  position: sticky;
  top: 108px;
  overflow: hidden;
  background: var(--mint);
  border: 1px solid var(--line-soft);
  border-radius: 28px 28px 66px 28px;
  box-shadow: var(--shadow-soft);
}

.profile-media-card img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center;
  background: var(--mint-soft);
}

.profile-media-card > p {
  margin: 0;
  padding: 18px 20px 23px;
  color: var(--ink-soft);
  font-size: 12px;
}

.profile-no-poster {
  min-height: 500px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 34px;
  background:
    radial-gradient(circle at 80% 18%, rgba(255, 255, 255, 0.8), transparent 25%),
    linear-gradient(150deg, var(--mint), #b8dfcf);
}

.profile-no-poster span {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.profile-no-poster strong {
  margin: 12px 0;
  font-size: 32px;
  line-height: 1.2;
}

.profile-no-poster p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 14px;
}

.two-journeys {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(50px, 8vw, 110px);
}

.two-journeys > div:first-child {
  padding-right: clamp(0px, 4vw, 50px);
  border-right: 1px solid var(--line);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.values-grid article {
  min-height: 280px;
  padding: 30px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 22px 22px 50px 22px;
  box-shadow: var(--shadow-card);
}

.values-grid article > span {
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 950;
}

.values-grid h2 {
  margin: 56px 0 16px;
  font-size: 27px;
}

.values-grid p {
  color: var(--ink-soft);
}

.tutor-benefits {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(56px, 9vw, 120px);
  align-items: start;
}

.legal-section {
  background: var(--white);
}

.legal-copy {
  width: min(calc(100% - 40px), 840px);
}

.legal-copy h2 {
  margin-top: 46px;
  margin-bottom: 12px;
  font-size: 27px;
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.85;
}

.legal-updated {
  margin-top: 52px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px !important;
}

.shortlist-dialog {
  width: min(calc(100% - 28px), 650px);
  max-height: 86vh;
  padding: 0;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-radius: 25px;
  box-shadow: 0 30px 90px rgba(3, 44, 38, 0.3);
}

.shortlist-dialog::backdrop {
  background: rgba(3, 30, 26, 0.72);
  backdrop-filter: blur(6px);
}

.shortlist-dialog-inner {
  padding: 42px;
}

.shortlist-dialog h2 {
  font-size: 35px;
}

.shortlist-list {
  display: grid;
  gap: 9px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.shortlist-list li {
  display: grid;
  grid-template-columns: 92px 1fr 42px;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: 13px;
}

.shortlist-list a {
  color: var(--green-dark);
  font-weight: 950;
}

.shortlist-list span {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shortlist-remove {
  width: 36px;
  height: 36px;
  color: var(--ink);
  background: var(--mint-soft);
  border: 0;
  border-radius: 10px;
  cursor: pointer;
  font-size: 21px;
}

.shortlist-actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.shortlist-actions .button {
  flex: 1;
}

.shortlist-status {
  min-height: 22px;
  margin: 14px 0 0;
  color: var(--green-dark);
  font-size: 13px;
  font-weight: 850;
}

.not-found {
  min-height: 66vh;
  display: grid;
  align-items: center;
}

.no-js .nav-menu-toggle,
.no-js [data-shortlist-open],
.no-js [data-shortlist-id],
.no-js [data-copy-id],
.no-js [data-share-profile],
.no-js .directory-filter-form,
.no-js .directory-toolbar,
.no-js .directory-load-more {
  display: none !important;
}

.no-js .mobile-cta {
  grid-template-columns: 1fr;
}

@media (max-width: 1100px) {
  .directory-filter-form {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .filter-search {
    grid-column: span 2;
  }
}

@media (max-width: 1040px) {
  .nav-menu-toggle {
    display: grid;
    margin-left: auto;
  }

  .nav-links {
    position: absolute;
    z-index: 100;
    top: calc(100% + 8px);
    right: 20px;
    width: min(330px, calc(100vw - 40px));
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: var(--paper);
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
  }

  .nav-links[data-open="true"] {
    display: flex;
  }

  .no-js .nav-shell {
    flex-wrap: wrap;
  }

  .no-js .nav-links {
    position: static;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 10px;
    box-shadow: none;
  }

  .nav-links a {
    min-height: 44px;
    display: flex;
    align-items: center;
    padding: 8px 12px;
  }

  .nav-links a::after {
    display: none;
  }

  .shortlist-nav {
    display: none;
  }

  .hero-shell {
    grid-template-columns: 1fr 0.84fr;
  }

  .subject-browser {
    grid-template-columns: repeat(3, 1fr);
  }

  .profile-page-grid {
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  }
}

@media (max-width: 820px) {
  .hero-shell,
  .profile-page-grid,
  .fee-shell,
  .two-journeys,
  .tutor-benefits {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    text-align: left;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .hero-visual-html {
    min-height: 520px;
  }

  .subject-browser {
    grid-template-columns: repeat(2, 1fr);
  }

  .tutor-grid-preview,
  .values-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fee-flow {
    grid-template-columns: 1fr;
  }

  .fee-flow b {
    transform: rotate(90deg);
    text-align: center;
  }

  .directory-filter-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-search {
    grid-column: 1 / -1;
  }

  .profile-media-card {
    position: static;
    order: -1;
    width: min(100%, 520px);
    margin-inline: auto;
  }

  .profile-no-poster {
    min-height: 380px;
  }

  .two-journeys > div:first-child {
    padding-right: 0;
    padding-bottom: 56px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 640px) {
  .nav-actions .language-toggle {
    display: inline-grid;
  }

  .nav-menu-toggle {
    order: 3;
  }

  .page-hero {
    padding: 64px 0 58px;
  }

  .page-hero .section-shell {
    width: min(calc(100% - 28px), var(--content));
    margin-inline: auto;
  }

  .page-hero h1,
  .profile-title-line h1 {
    font-size: clamp(40px, 12vw, 56px);
  }

  .hero-copy {
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-tutor-link {
    margin-inline: auto;
  }

  .hero-visual-html {
    min-height: 470px;
    padding: 18px;
  }

  .hero-tutor-card {
    padding: 24px;
    border-radius: 21px 21px 50px 21px;
  }

  .hero-card-results {
    grid-template-columns: 54px 1fr;
  }

  .subject-browser,
  .tutor-grid-preview,
  .values-grid,
  .directory-filter-form,
  .profile-details {
    grid-template-columns: 1fr;
  }

  .subject-browser a {
    min-height: 72px;
  }

  .directory-page-hero {
    padding-bottom: 92px;
  }

  .directory-filter-form {
    margin-top: -36px;
    padding: 18px;
  }

  .filter-search {
    grid-column: auto;
  }

  .directory-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .shortlist-inline {
    width: 100%;
  }

  .tutor-card > h3 {
    min-height: 0;
  }

  .profile-title-line {
    align-items: flex-start;
  }

  .profile-details div {
    padding: 18px 0;
  }

  .profile-actions {
    flex-direction: column;
  }

  .profile-actions .button,
  .profile-actions .text-button {
    width: 100%;
  }

  .profile-no-poster {
    min-height: 330px;
    padding: 26px;
  }

  .values-grid article {
    min-height: 220px;
  }

  .values-grid h2 {
    margin-top: 34px;
  }

  .shortlist-dialog-inner {
    padding: 34px 22px 24px;
  }

  .shortlist-list li {
    grid-template-columns: 80px 1fr 38px;
  }

  .shortlist-actions {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .subject-browser a {
    transform: none !important;
  }
}

/* Keep JavaScript-controlled alternatives out of the layout. Author display
   rules otherwise override the browser's built-in [hidden] behavior. */
[hidden] {
  display: none !important;
}
