.main-nav a[aria-current="page"] { color: var(--forest); position: relative; }
.main-nav a[aria-current="page"]::after { content: ""; height: 2px; position: absolute; left: 0; right: 0; bottom: -9px; background: var(--lime); }
.page-hero { padding: 66px max(11vw, 26px); background: var(--cream); }
.page-hero h1 { max-width: 760px; margin: 0 0 14px; color: var(--forest); font: 600 clamp(38px, 5vw, 58px)/1.08 Manrope, sans-serif; letter-spacing: -2.7px; }
.page-hero p:not(.eyebrow) { max-width: 680px; color: #647169; font-size: 13px; line-height: 1.8; }
.page-content { max-width: 1110px; margin: 0 auto; padding: 58px 25px 82px; }
.page-content > .section-heading { max-width: none; }
.content-intro { max-width: 720px; margin-bottom: 30px; color: #66736b; font-size: 13px; line-height: 1.8; }
.page-title { color: var(--forest); font: 600 clamp(27px, 3.4vw, 39px)/1.2 Manrope, sans-serif; letter-spacing: -1.5px; }
.page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.info-card { padding: 23px; border: 1px solid #e6e9e0; border-radius: 9px; background: white; }
.info-card h2, .info-card h3 { margin: 0 0 10px; color: var(--forest); font: 700 16px Manrope, sans-serif; }
.info-card p { margin: 0; color: #6d7871; font-size: 11px; line-height: 1.8; }
.info-icon { width: 41px; height: 41px; margin-bottom: 18px; display: grid; place-items: center; border-radius: 13px 13px 13px 4px; background: #edf2e7; color: #698455; font: 20px var(--serif); }
.page-steps { counter-reset: flow; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.page-step { min-height: 210px; padding: 23px; border: 1px solid #e5e8df; border-radius: 9px; background: white; }
.page-step::before { counter-increment: flow; content: "0" counter(flow); color: #80956d; font-size: 10px; font-weight: 800; letter-spacing: 1px; }
.page-step h2 { margin: 24px 0 9px; color: var(--forest); font: 700 16px Manrope, sans-serif; }
.page-step p { color: #6d7871; font-size: 11px; line-height: 1.75; }
.page-callout { margin-top: 40px; padding: 26px; border-radius: 9px; background: #eff2e7; }
.page-callout h2 { color: var(--forest); font: 600 22px Manrope, sans-serif; }
.page-callout p { max-width: 720px; color: #637168; font-size: 12px; line-height: 1.8; }
.subject-browser { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.subject-browser .subject-tile { min-height: 138px; }
.search-page-section { padding-top: 42px; }
.search-page-section .search-form { max-width: none; }
.search-page-section .filter-row { max-width: none; }
.search-page-section .results-heading { max-width: none; }
.search-results-heading { margin-top: 42px; }
.search-page-section .teacher-grid { max-width: none; }
.search-page-section .empty-state, .search-page-section .loading-state { max-width: none; }
.search-filter-extra { max-width: 1110px; margin: 13px auto 0; display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; color: #7c8580; font-size: 10px; }
.search-filter-extra label { display: inline-flex; gap: 6px; align-items: center; }
.search-filter-extra select, .search-filter-extra input { max-width: 145px; padding: 6px 8px; border: 1px solid #e5e7df; border-radius: 5px; color: #3c4d48; font-size: 10px; }
.home-search { padding-bottom: 38px; }
.home-teachers { padding-top: 42px; padding-bottom: 52px; }
.home-teachers .results-heading { max-width: 1110px; }
.home-teachers .teacher-grid { max-width: 1110px; }
.top-teachers { padding-top: 20px; }
.home-about { max-width: 1110px; margin: 70px auto 0; padding: 38px; border-radius: 10px; background: white; }
.home-about h2 { max-width: 580px; color: var(--forest); font: 600 clamp(25px, 3vw, 35px)/1.22 Manrope, sans-serif; letter-spacing: -1px; }
.home-about p:not(.eyebrow) { max-width: 680px; color: #647169; font-size: 12px; line-height: 1.8; }
.auth-page { min-height: calc(100vh - 76px); padding: 55px 20px; display: grid; place-items: center; background: #f7f6f0; }
.auth-card { width: min(475px, 100%); padding: 34px; border: 1px solid #e4e7de; border-radius: 12px; background: var(--paper); box-shadow: 0 15px 50px rgba(28, 48, 36, .07); }
.auth-card h1 { margin: 0 0 8px; color: var(--forest); font: 600 29px Manrope, sans-serif; letter-spacing: -1px; }
.auth-card > p:not(.eyebrow) { margin-bottom: 20px; color: #69756e; font-size: 11px; line-height: 1.7; }
.auth-card form { display: grid; gap: 14px; }
.auth-card form label { display: grid; gap: 6px; color: #56655c; font-size: 10px; font-weight: 700; }
.auth-card input, .auth-card select, .auth-card textarea { width: 100%; padding: 11px 12px; border: 1px solid #dfe4da; border-radius: 6px; outline: 0; background: #fffefa; color: var(--navy); font-size: 11px; }
.auth-card input:focus, .auth-card select:focus, .auth-card textarea:focus { border-color: #8ba876; box-shadow: 0 0 0 3px rgba(169, 201, 141, .2); }
.auth-card .role-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.role-option { padding: 14px; border: 1px solid #e0e5da; border-radius: 8px; color: var(--forest); cursor: pointer; }
.role-option:has(input:checked) { border-color: #8ba876; background: #f1f5eb; }
.role-option input { width: auto; margin: 0 5px 0 0; accent-color: var(--forest); }
.auth-note { margin: 4px 0 0; color: #78827b; font-size: 10px; text-align: center; }
.dialog-overlay { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; padding: 20px; background: rgba(12, 31, 27, .48); }
.dialog-panel { width: min(650px, 100%); max-height: 86vh; overflow-y: auto; padding: 30px; position: relative; border: 1px solid #e4e7de; border-radius: 12px; background: var(--paper); box-shadow: 0 22px 80px rgba(14, 33, 27, .2); }
.dialog-panel > h2 { margin: 0 0 18px; color: var(--forest); font: 600 27px Manrope, sans-serif; }
.dialog-close { position: absolute; top: 10px; right: 14px; border: 0; background: transparent; color: #64736a; font-size: 25px; }
.dialog-panel form { display: grid; gap: 13px; }
.dialog-panel label { display: grid; gap: 6px; color: #56655c; font-size: 10px; font-weight: 700; }
.dialog-panel input, .dialog-panel textarea, .dialog-panel select { width: 100%; padding: 10px 11px; border: 1px solid #dfe4da; border-radius: 6px; background: #fffefa; color: var(--navy); font-size: 11px; }
.teacher-detail-head { display: flex; gap: 15px; align-items: center; margin-bottom: 18px; }
.teacher-detail-head .teacher-avatar { width: 58px; height: 58px; font-size: 21px; }
.teacher-detail h2 { color: var(--forest); font: 700 22px Manrope, sans-serif; }
.teacher-detail h3 { margin: 18px 0 7px; color: var(--forest); font: 700 13px Manrope, sans-serif; }
.teacher-detail p { color: #637168; font-size: 11px; line-height: 1.75; white-space: pre-line; }
.review-item { padding: 12px 0; border-top: 1px solid #eceee8; }
.review-item strong { color: var(--forest); font-size: 10px; }
.review-item p { margin: 5px 0 0; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; max-width: min(360px, calc(100% - 40px)); padding: 13px 17px; border-radius: 7px; background: var(--forest); color: white; box-shadow: 0 10px 30px rgba(16, 45, 42, .2); font-size: 11px; opacity: 0; transform: translateY(10px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
.site-footer nav a { white-space: nowrap; }
.page-footer { margin-top: 0; }

@media (min-width: 681px) and (max-width: 900px) {
  .site-header { gap: 12px; padding: 0 20px; }
  .main-nav { display: none; position: absolute; top: 75px; left: 0; right: 0; padding: 16px 22px; flex-direction: column; align-items: flex-start; gap: 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .main-nav.open { display: flex; }
  .menu-toggle { display: block; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 980px) {
  .page-hero { padding-left: 7vw; padding-right: 7vw; }
  .page-content { padding-left: 7vw; padding-right: 7vw; }
  .subject-browser { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px) {
  .page-hero { padding: 48px 23px; }
  .page-hero h1 { font-size: 41px; }
  .page-content { padding: 43px 22px 60px; }
  .page-grid, .page-steps { grid-template-columns: 1fr; }
  .subject-browser { grid-template-columns: repeat(2, 1fr); }
  .search-filter-extra { gap: 10px; }
  .home-about { margin-top: 45px; padding: 23px; }
  .auth-page { min-height: calc(100vh - 65px); padding: 34px 16px; }
  .auth-card { padding: 25px 21px; }
  .dialog-panel { padding: 27px 21px; }
}
