:root {
  color-scheme: light;
  --ink: #092b52;
  --navy: #0b2f5b;
  --blue: #2f6eae;
  --blue-bright: #3c82c4;
  --blue-pale: #edf5fc;
  --gold: #f2d316;
  --gold-deep: #d99000;
  --paper: #fbfcfe;
  --white: #fff;
  --muted: #647386;
  --line: #dce5ef;
  --success: #15735b;
  --danger: #a93838;
  --shadow: 0 22px 60px rgba(11, 47, 91, .12);
  --radius: 20px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
img { max-width: 100%; }

.skip-link { position: fixed; top: -5rem; left: 1rem; z-index: 100; padding: .8rem 1rem; background: var(--gold); color: var(--ink); font-weight: 800; border-radius: 10px; }
.skip-link:focus { top: 1rem; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 2rem;
  min-height: 78px; padding: .75rem max(1.25rem, calc((100vw - var(--max)) / 2));
  background: rgba(251, 252, 254, .92); border-bottom: 1px solid rgba(220, 229, 239, .8);
  backdrop-filter: blur(16px);
}
.brand { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand img { width: 47px; height: 47px; }
.brand-copy { display: grid; line-height: 1; }
.brand-copy strong { letter-spacing: .06em; font-size: 1.08rem; }
.brand-copy small { margin-top: .32rem; color: var(--gold-deep); font-size: .67rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }
.main-nav { justify-self: center; display: flex; gap: 2rem; }
.main-nav a, .text-button { color: #344c66; font-size: .92rem; font-weight: 700; text-decoration: none; }
.main-nav a:hover, .text-button:hover { color: var(--blue); }
.header-actions { display: flex; align-items: center; gap: 1rem; }
.menu-button { display: none; justify-self: end; border: 0; background: transparent; color: var(--ink); font-weight: 800; }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .8rem 1.2rem; border: 1px solid var(--blue); border-radius: 12px;
  background: var(--blue); color: white; cursor: pointer; font-weight: 800; text-decoration: none;
  box-shadow: 0 8px 24px rgba(47, 110, 174, .18); transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { transform: translateY(-2px); background: #245e99; box-shadow: 0 12px 30px rgba(47, 110, 174, .25); }
.button:disabled { cursor: not-allowed; opacity: .55; transform: none; }
.button-small { min-height: 40px; padding: .6rem 1rem; font-size: .9rem; }
.button-secondary { background: white; color: var(--blue); box-shadow: none; }
.button-secondary:hover { background: var(--blue-pale); }
.button-gold { border-color: var(--gold); background: var(--gold); color: var(--ink); box-shadow: 0 8px 24px rgba(242, 211, 22, .2); }
.button-gold:hover { background: #e8c900; }
.button-danger { border-color: #efd2d2; background: #fff5f5; color: var(--danger); box-shadow: none; }

.hero {
  position: relative; overflow: hidden; min-height: 700px;
  background: linear-gradient(120deg, #f9fcff 0%, #eef6fd 66%, #fff9cf 140%);
}
.hero::before { content: ""; position: absolute; width: 570px; height: 570px; right: -180px; top: -260px; border: 1px solid rgba(47,110,174,.18); border-radius: 50%; box-shadow: 0 0 0 80px rgba(47,110,174,.04), 0 0 0 160px rgba(47,110,174,.03); }
.hero-inner { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; align-items: center; gap: 5rem; max-width: var(--max); min-height: 620px; margin: auto; padding: 5rem 1.25rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; margin: 0 0 1rem; color: var(--blue); font-size: .76rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: var(--gold); }
.hero h1, .page-hero h1 { margin: 0; max-width: 720px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.1rem, 6vw, 5.6rem); font-weight: 500; letter-spacing: -.055em; line-height: .98; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero-copy > p { max-width: 610px; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.13rem; line-height: 1.75; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: 1.3rem; margin-top: 2.2rem; color: #465f78; font-size: .86rem; font-weight: 700; }
.trust-row span::before { content: "✓"; display: inline-grid; width: 20px; height: 20px; margin-right: .45rem; place-items: center; border-radius: 50%; background: #dff3eb; color: var(--success); font-size: .7rem; }

.hero-panel { position: relative; min-height: 470px; }
.search-panel { position: relative; z-index: 2; overflow: hidden; border: 1px solid rgba(255,255,255,.9); border-radius: 26px; background: rgba(255,255,255,.96); box-shadow: 0 28px 70px rgba(11,47,91,.16); }
.search-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 6px; background: linear-gradient(90deg, var(--gold), #ffea6a); }
.search-panel-head { padding: 2rem 2rem 1.3rem; border-bottom: 1px solid #e5edf5; background: linear-gradient(135deg, #fff 40%, #f3f8fd); }
.search-panel-kicker { display: inline-flex; align-items: center; gap: .45rem; margin-bottom: .75rem; color: var(--blue); font-size: .7rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.search-panel-kicker span { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 8px; background: var(--blue-pale); font-size: 1rem; }
.search-panel h2 { margin: 0 0 .35rem; font-family: Georgia, serif; font-size: 1.75rem; font-weight: 500; letter-spacing: -.035em; }
.search-panel-head p { margin: 0; color: var(--muted); font-size: .9rem; }
.search-panel-body { display: grid; gap: 1rem; padding: 1.4rem 2rem 1.6rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.search-field { gap: .5rem; }
.search-field label { color: #3b536d; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; }
.search-field select { min-height: 54px; padding: .8rem 2.7rem .8rem .9rem; appearance: none; border-color: #c7d7e6; background-color: #fbfdff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20'%3E%3Cpath fill='%232f6eae' d='m5 7 5 5 5-5z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; color: var(--ink); font-weight: 650; }
.search-field select:hover { border-color: #9fbad4; background-color: white; }
.search-submit { width: 100%; margin-top: .15rem; justify-content: space-between; padding-left: 1.1rem; border-radius: 13px; }
.button-arrow { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: rgba(255,255,255,.16); font-size: 1.15rem; }
.search-assurance { display: flex; align-items: center; justify-content: center; gap: .4rem; margin: -.15rem 0 0; color: var(--muted); font-size: .75rem; }
.search-assurance span { color: var(--success); font-weight: 900; }
.floating-note { position: relative; z-index: 3; display: flex; align-items: center; gap: .8rem; width: 260px; margin: 1rem 0 0 auto; padding: 1rem; border: 1px solid var(--line); border-radius: 16px; background: white; box-shadow: 0 18px 40px rgba(11,47,91,.16); }
.floating-note strong, .floating-note span { display: block; }
.floating-note span { margin-top: .15rem; color: var(--muted); font-size: .8rem; }
.note-icon { display: grid; flex: 0 0 40px; width: 40px; height: 40px; place-items: center; border-radius: 12px; background: var(--gold); font-weight: 900; }

.section { padding: 6rem 1.25rem; }
.section-blue { background: var(--navy); color: white; }
.section-soft { background: var(--blue-pale); }
.section-inner { max-width: var(--max); margin: auto; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.5rem; }
.section-heading h2 { max-width: 720px; margin: .3rem 0 0; font-family: Georgia, serif; font-size: clamp(2.2rem, 4vw, 3.6rem); font-weight: 500; letter-spacing: -.04em; line-height: 1.08; }
.section-heading p { max-width: 480px; color: var(--muted); line-height: 1.7; }
.section-blue .section-heading p { color: #b8cbe0; }
.kicker { color: var(--blue); font-size: .75rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.section-blue .kicker { color: var(--gold); }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.info-card, .tutor-card, .panel { border: 1px solid var(--line); border-radius: var(--radius); background: white; }
.info-card { padding: 1.65rem; }
.info-card-number { color: var(--blue); font-family: Georgia, serif; font-size: 2.6rem; }
.info-card h3 { margin: 1rem 0 .5rem; font-size: 1.08rem; }
.info-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.section-blue .info-card { border-color: rgba(255,255,255,.13); background: rgba(255,255,255,.055); }
.section-blue .info-card p { color: #b8cbe0; }

.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.proof-item { padding: 2rem 1.25rem; background: white; text-align: center; }
.proof-item strong { display: block; font-family: Georgia, serif; font-size: 1.35rem; }
.proof-item span { display: block; margin-top: .35rem; color: var(--muted); font-size: .85rem; }

.page-shell { max-width: var(--max); min-height: 68vh; margin: auto; padding: 3.5rem 1.25rem 6rem; }
.page-hero { padding: 2rem 0 3rem; }
.page-hero h1 { max-width: 850px; font-size: clamp(2.7rem, 5vw, 4.7rem); }
.page-hero p { max-width: 680px; color: var(--muted); font-size: 1.05rem; line-height: 1.7; }
.toolbar { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: .75rem; padding: 1rem; border: 1px solid var(--line); border-radius: 17px; background: white; box-shadow: 0 12px 35px rgba(11,47,91,.07); }
.results-bar { display: flex; align-items: center; justify-content: space-between; margin: 2rem 0 1rem; }
.results-bar p { color: var(--muted); }
.tutor-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tutor-card { overflow: hidden; padding: 1.35rem; transition: transform .18s ease, box-shadow .18s ease; }
.tutor-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tutor-top { display: flex; align-items: center; gap: .9rem; }
.avatar { display: grid; width: 52px; height: 52px; flex: 0 0 52px; place-items: center; border-radius: 16px; background: linear-gradient(145deg, var(--blue-bright), var(--navy)); color: white; font-weight: 900; }
.tutor-card h3 { margin: 0; font-size: 1.05rem; }
.rate { margin-top: .18rem; color: var(--blue); font-size: .86rem; font-weight: 800; }
.tutor-bio { min-height: 72px; color: var(--muted); font-size: .9rem; line-height: 1.6; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.tag, .status { display: inline-flex; align-items: center; padding: .35rem .6rem; border-radius: 999px; background: var(--blue-pale); color: var(--blue); font-size: .73rem; font-weight: 800; }
.status-confirmed, .status-published, .status-approved { background: #dcf4e9; color: #17684f; }
.status-pending, .status-submitted, .status-draft { background: #fff5c7; color: #7c6500; }
.status-cancelled, .status-declined, .status-expired { background: #f9e5e5; color: #9a3939; }

.form-card { max-width: 760px; margin: auto; padding: clamp(1.4rem, 4vw, 2.4rem); border: 1px solid var(--line); border-radius: 24px; background: white; box-shadow: var(--shadow); }
.form-card-wide { max-width: 980px; }
.form-card h1, .form-card h2 { margin-top: 0; font-family: Georgia, serif; font-weight: 500; letter-spacing: -.03em; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: grid; align-content: start; gap: .4rem; }
.field-full { grid-column: 1 / -1; }
.field label, .field-label { color: #2e4964; font-size: .82rem; font-weight: 800; }
.field input, .field select, .field textarea, .toolbar input, .toolbar select {
  width: 100%; min-height: 48px; padding: .75rem .85rem; border: 1px solid #cdd9e5; border-radius: 11px; outline: none; background: white; color: var(--ink);
}
.field textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .toolbar input:focus, .toolbar select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(47,110,174,.12); }
.field small { color: var(--muted); line-height: 1.4; }
.checkbox-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.check-chip { cursor: pointer; }
.check-chip input { position: absolute; opacity: 0; }
.check-chip span { display: inline-flex; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; background: white; font-size: .84rem; font-weight: 700; }
.check-chip input:checked + span { border-color: var(--blue); background: var(--blue-pale); color: var(--blue); }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.5rem; }
.form-note { color: var(--muted); font-size: .84rem; line-height: 1.55; }
.back-link { display: inline-block; margin-bottom: 2rem; color: var(--blue); font-size: .88rem; font-weight: 800; text-decoration: none; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 2rem; }
.profile-heading { display: flex; align-items: center; gap: 1.4rem; margin-bottom: 1.5rem; }
.profile-heading h1 { margin: 0 0 .8rem; font-family: Georgia, serif; font-size: clamp(2.5rem, 5vw, 4.2rem); font-weight: 500; letter-spacing: -.05em; }
.avatar-large { width: 88px; height: 88px; flex-basis: 88px; border-radius: 24px; font-size: 1.45rem; }
.prose h2 { margin: 1.6rem 0 .5rem; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--muted); line-height: 1.75; white-space: pre-line; }
.booking-card { position: sticky; top: 100px; padding: 1.4rem; border: 1px solid var(--line); border-radius: 20px; background: white; box-shadow: var(--shadow); }
.booking-card form { display: grid; gap: .9rem; }
.rate-large { margin: 0; color: var(--ink); font-family: Georgia, serif; font-size: 2rem; }
.rate-large span { color: var(--muted); font-family: "Avenir Next", Avenir, sans-serif; font-size: .85rem; }
.booking-form { margin-top: 1.2rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.price-summary { display: flex; justify-content: space-between; align-items: center; padding: .9rem; border-radius: 10px; background: var(--blue-pale); color: var(--blue); }
.price-summary strong { font-size: 1.2rem; }
.mini-select { min-height: 34px; padding: .4rem .55rem; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); font-size: .78rem; }
.availability-list { margin-top: 1rem; }
.subject-form { display: grid; grid-template-columns: 1fr 1fr auto; align-items: end; gap: .8rem; }
.subject-list { margin-top: 1rem; }
.auth-layout { display: grid; grid-template-columns: .9fr 1.1fr; max-width: 980px; min-height: 610px; margin: 2rem auto; overflow: hidden; border: 1px solid var(--line); border-radius: 28px; background: white; box-shadow: var(--shadow); }
.auth-story { position: relative; display: flex; flex-direction: column; justify-content: end; padding: 2.4rem; overflow: hidden; background: var(--navy); color: white; }
.auth-story::before { content: ""; position: absolute; inset: -25% -45% auto auto; width: 430px; height: 430px; border: 75px solid rgba(255,255,255,.05); border-radius: 50%; }
.auth-story img { position: absolute; top: 2rem; left: 2rem; width: 84px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.2)); }
.auth-story h2 { position: relative; margin: 0 0 .8rem; font-family: Georgia, serif; font-size: 2.3rem; font-weight: 500; line-height: 1.08; }
.auth-story p { position: relative; color: #c1d1e1; line-height: 1.7; }
.auth-form { padding: 3rem; align-self: center; }

.dashboard-layout { display: grid; grid-template-columns: 220px 1fr; gap: 2rem; }
.dashboard-nav { position: sticky; top: 100px; align-self: start; display: grid; gap: .35rem; padding: .75rem; border: 1px solid var(--line); border-radius: 16px; background: white; }
.dashboard-nav a { padding: .75rem .8rem; border-radius: 9px; color: #486078; font-size: .88rem; font-weight: 750; text-decoration: none; }
.dashboard-nav a.active, .dashboard-nav a:hover { background: var(--blue-pale); color: var(--blue); }
.dashboard-main { min-width: 0; }
.dashboard-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.dashboard-head h1 { margin: 0; font-family: Georgia, serif; font-size: 2.6rem; font-weight: 500; letter-spacing: -.04em; }
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; margin-bottom: 1rem; }
.stat { padding: 1.2rem; border: 1px solid var(--line); border-radius: 15px; background: white; }
.stat span { color: var(--muted); font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.stat strong { display: block; margin-top: .45rem; font-family: Georgia, serif; font-size: 2rem; }
.panel { padding: 1.25rem; }
.panel + .panel { margin-top: 1rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.panel-head h2 { margin: 0; font-size: 1.08rem; }
.list { display: grid; gap: .65rem; }
.list-item { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: 12px; }
.list-item h3 { margin: 0 0 .25rem; font-size: .94rem; }
.list-item p { margin: 0; color: var(--muted); font-size: .83rem; line-height: 1.5; }
.list-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: .45rem; }
.mini-button { display: inline-flex; align-items: center; justify-content: center; padding: .45rem .65rem; border: 1px solid var(--line); border-radius: 8px; background: white; color: var(--ink); cursor: pointer; font-size: .76rem; font-weight: 800; text-decoration: none; }
.mini-button:hover { border-color: var(--blue); color: var(--blue); }
.review-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin: 0; }
.review-grid div { min-width: 0; padding: .9rem; border-radius: 11px; background: var(--blue-pale); }
.review-grid dt { color: var(--muted); font-size: .72rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.review-grid dd { margin: .35rem 0 0; overflow-wrap: anywhere; font-weight: 750; line-height: 1.5; }
.review-section + .review-section { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.review-section h2, .application-decision h2 { margin: 0 0 .5rem; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.review-section p, .application-decision p { margin: 0; color: var(--muted); line-height: 1.75; white-space: pre-line; }
.application-decision { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.review-actions { display: flex; flex-wrap: wrap; justify-content: end; gap: .65rem; }
.empty-state { padding: 3rem 1.5rem; border: 1px dashed #c7d5e2; border-radius: 16px; background: #fbfdff; text-align: center; }
.empty-state h3 { margin: .8rem 0 .4rem; }
.empty-state p { max-width: 460px; margin: auto; color: var(--muted); line-height: 1.6; }
.empty-icon { display: grid; width: 50px; height: 50px; margin: auto; place-items: center; border-radius: 15px; background: var(--blue-pale); color: var(--blue); font-weight: 900; }
.alert { margin: 1rem 0; padding: .9rem 1rem; border-radius: 11px; background: #fff5cf; color: #695600; font-size: .87rem; line-height: 1.5; }
.alert-error { background: #fff0f0; color: var(--danger); }
.loading-view { display: grid; min-height: 60vh; place-content: center; justify-items: center; color: var(--muted); }
.spinner { width: 32px; height: 32px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.cta-band { position: relative; overflow: hidden; padding: 4rem; border-radius: 28px; background: linear-gradient(120deg, var(--navy), #164c80); color: white; }
.cta-band::after { content: ""; position: absolute; right: -80px; bottom: -130px; width: 350px; height: 350px; border: 55px solid rgba(255,255,255,.06); border-radius: 50%; }
.cta-band h2 { position: relative; max-width: 650px; margin: 0 0 .8rem; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.4rem); font-weight: 500; line-height: 1.08; }
.cta-band p, .cta-band .button { position: relative; z-index: 1; }
.cta-band p { max-width: 590px; color: #c4d4e4; line-height: 1.7; }

.site-footer { display: grid; grid-template-columns: 1fr auto; gap: 2rem; max-width: var(--max); margin: auto; padding: 3rem 1.25rem; border-top: 1px solid var(--line); }
.footer-brand { display: flex; align-items: center; gap: .75rem; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand span { margin-top: .25rem; color: var(--muted); font-size: .8rem; }
.footer-links { display: flex; align-items: center; gap: 1.2rem; }
.footer-links a { color: var(--muted); font-size: .83rem; font-weight: 700; text-decoration: none; }
.footer-note { grid-column: 1 / -1; margin: 0; color: #8795a5; font-size: .76rem; }
.toast-region { position: fixed; right: 1rem; bottom: 1rem; z-index: 100; display: grid; gap: .5rem; }
.toast { max-width: 380px; padding: .9rem 1rem; border-radius: 12px; background: var(--navy); color: white; box-shadow: var(--shadow); font-size: .86rem; animation: toast-in .25s ease; }
.toast.error { background: #7f2f35; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }

@media (max-width: 920px) {
  .site-header { grid-template-columns: auto auto; }
  .menu-button { display: block; }
  .main-nav, .header-actions { display: none; }
  .site-header.open .main-nav, .site-header.open .header-actions { display: flex; grid-column: 1 / -1; justify-self: stretch; }
  .site-header.open .main-nav { flex-direction: column; gap: 0; }
  .site-header.open .main-nav a { padding: .7rem 0; }
  .site-header.open .header-actions { justify-content: space-between; padding-bottom: .6rem; }
  .hero-inner { grid-template-columns: 1fr; gap: 2rem; }
  .hero-panel { min-height: 380px; }
  .card-grid, .tutor-grid { grid-template-columns: repeat(2, 1fr); }
  .toolbar { grid-template-columns: 1fr 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-nav { position: static; grid-template-columns: repeat(3, 1fr); }
  .profile-layout { grid-template-columns: 1fr; }
  .booking-card { position: static; }
  .subject-form { grid-template-columns: 1fr 1fr; }
  .subject-form .button { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .brand-copy small { display: none; }
  .hero { min-height: auto; }
  .hero-inner { min-height: auto; padding-block: 3.5rem; }
  .hero h1 { font-size: 3.25rem; }
  .field-row, .form-grid, .card-grid, .tutor-grid, .toolbar, .stat-grid, .review-grid { grid-template-columns: 1fr; }
  .floating-note { position: relative; right: auto; bottom: auto; width: 100%; margin-top: .8rem; }
  .hero-panel { min-height: auto; }
  .search-panel-head { padding: 1.7rem 1.25rem 1.1rem; }
  .search-panel-body { padding: 1.2rem 1.25rem 1.4rem; }
  .section { padding-block: 4rem; }
  .section-heading { align-items: start; flex-direction: column; }
  .proof-strip { grid-template-columns: 1fr; }
  .auth-layout { grid-template-columns: 1fr; margin: 0; }
  .auth-story { min-height: 290px; }
  .auth-form { padding: 2rem 1.25rem; }
  .dashboard-nav { grid-template-columns: 1fr; }
  .dashboard-head { align-items: start; flex-direction: column; }
  .list-item { grid-template-columns: 1fr; }
  .list-actions { justify-content: start; }
  .application-decision { align-items: stretch; flex-direction: column; }
  .review-actions { justify-content: start; }
  .profile-heading { align-items: start; flex-direction: column; }
  .subject-form { grid-template-columns: 1fr; }
  .subject-form .button { grid-column: auto; }
  .cta-band { padding: 2rem 1.3rem; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
