/* ---------- Colors and foundations ---------- */

:root {
  --background: #f8f7f2;
  --surface: #fffefb;
  --text: #252824;
  --muted: #6c7168;
  --border: #dedfd5;
  --primary: #314d40;
  --primary-hover: #243c30;
  --accent: #b95033;
  --soft: #e9eee5;
  --paper: #eee8d2;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #dce5ce;
  color: #243c30;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

img,
svg {
  max-width: 100%;
}

img {
  display: block;
  height: auto;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.8rem, 5.5vw, 4.7rem);
  font-weight: 700;
  letter-spacing: -0.06em;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  font-weight: 600;
  letter-spacing: -0.045em;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--primary);
  color: white;
}

.skip-link:focus {
  top: 12px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.status-dot {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #507657;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}

.text-link span {
  font-size: 19px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  min-height: 46px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  transition:
    background 160ms ease,
    border-color 160ms ease;
}

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

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

.button-outline {
  border-color: var(--border);
  background: var(--surface);
  color: var(--text);
}

.button-outline:hover {
  border-color: var(--primary);
  background: var(--soft);
}

/* ---------- Header ---------- */

.site-header {
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: -1px;
  white-space: nowrap;
}

.brand > svg {
  flex-shrink: 0;
  color: var(--primary);
}

.brand-label {
  margin-left: 5px;
  padding-left: 13px;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
}

.main-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
  font-size: 12px;
}

.main-nav > a:not(.nav-cta):hover {
  color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 4px;
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.nav-cta:hover {
  background: var(--primary-hover);
}

.nav-cta span {
  font-size: 17px;
}

/* ---------- Campus strip ---------- */

.campus-strip {
  border-bottom: 1px solid var(--border);
}

.strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 12px;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.07em;
}

.strip-divider {
  padding-inline: 9px;
  color: #92998a;
}

.strip-note {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 11px;
  letter-spacing: 0;
}

/* ---------- Hero ---------- */

.hero {
  padding-block: 78px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  align-items: center;
  gap: 88px;
}

.hero-copy h1 {
  margin-bottom: 26px;
}

.hero-copy h1 em {
  position: relative;
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.045em;
}

.hero-copy h1 em::after {
  position: absolute;
  right: -7px;
  bottom: -5px;
  left: 0;
  height: 8px;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.55;
  transform: rotate(-2deg);
}

.hero-description {
  max-width: 460px;
  margin-bottom: 27px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.hero-search {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 490px;
  padding: 8px 8px 8px 15px;
  border: 1px solid #bfc4b9;
  border-radius: 5px;
  background: var(--surface);
}

.hero-search > svg {
  flex-shrink: 0;
  color: var(--muted);
}

.hero-search input {
  width: 100%;
  min-width: 0;
  padding: 9px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
}

.hero-search input::placeholder {
  color: #72796c;
}

.hero-search input:focus-visible {
  outline-offset: 1px;
}

.hero-search button {
  display: grid;
  width: 43px;
  height: 43px;
  flex-shrink: 0;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 3px;
  background: var(--primary);
  color: white;
  font-size: 23px;
  line-height: 1;
}

.hero-search button:hover {
  background: var(--primary-hover);
}

.privacy-note {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 10px;
}

.privacy-note svg {
  flex-shrink: 0;
}

/* ---------- Classroom note ---------- */

.classroom-note {
  position: relative;
  margin-top: 12px;
  padding: 27px 28px 30px;
  border: 1px solid #d8d1b8;
  background: var(--paper);
  box-shadow: 4px 6px 0 #dedacc;
  transform: rotate(2deg);
}

.note-tape {
  position: absolute;
  top: -13px;
  left: calc(50% - 48px);
  width: 96px;
  height: 26px;
  background: #c8cdb1b3;
  clip-path: polygon(2% 0, 100% 3%, 97% 97%, 0 100%);
  transform: rotate(-5deg);
}

.note-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid #b8b69c;
  color: #626751;
  font-family: ui-monospace, monospace;
  font-size: 8px;
  letter-spacing: 0.06em;
}

.note-header > span:last-child {
  font-size: 22px;
  line-height: 1;
}

.note-intro {
  margin-top: 23px;
  margin-bottom: 8px;
  color: #626751;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-style: italic;
}

.classroom-note h2 {
  margin-bottom: 24px;
  color: #343b2d;
  font-size: 35px;
  letter-spacing: -1.3px;
}

.note-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.note-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding-block: 11px;
  border-bottom: 1px solid #d0ccb5;
  color: #555e49;
  font-size: 11px;
}

.note-list li > span {
  flex-shrink: 0;
  color: #526847;
  font-size: 14px;
}

.note-signoff {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 20px;
  margin-bottom: 0;
  color: #626751;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-style: italic;
}

.note-signoff > span {
  font-family: Arial, Helvetica, sans-serif;
  font-size: 22px;
  font-style: normal;
}

.note-stamp {
  position: absolute;
  top: 31px;
  right: -25px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border: 1px solid #d7d3bf;
  border-radius: 50%;
  background: #fbf7ea;
  color: #535d4b;
  font-size: 11px;
  line-height: 1.4;
  text-align: center;
  transform: rotate(9deg);
}

.note-stamp em {
  color: var(--accent);
  font-family: Georgia, "Times New Roman", serif;
}

/* ---------- Community facts ---------- */

.community-facts {
  border-block: 1px solid var(--border);
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding-block: 26px;
}

.fact {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fact > strong {
  font-size: 36px;
  font-weight: 500;
  letter-spacing: -1.5px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.fact p {
  margin: 0;
  font-size: 11px;
  line-height: 1.7;
}

.fact p span {
  color: var(--muted);
  font-size: 10px;
}

.facts-grid > .text-link {
  font-size: 10px;
}

/* ---------- Shared sections ---------- */

.section {
  padding-block: 70px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 30px;
}

.section-heading h2 {
  margin-bottom: 14px;
}

.section-description {
  max-width: 620px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.9;
}

.small-print {
  max-width: 580px;
  margin-top: 16px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}

/* ---------- Teacher preview ---------- */

.teacher-preview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 48px;
}

.teacher-row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  padding-block: 22px;
  border-top: 1px solid var(--border);
}

.teacher-row:hover .teacher-info strong {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.teacher-acronym {
  display: grid;
  width: 47px;
  height: 49px;
  flex-shrink: 0;
  place-items: center;
  border-radius: 3px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}

.tone-sage {
  background: #e5e9dd;
  color: #526447;
}

.tone-clay {
  background: #eee4dc;
  color: #875e43;
}

.tone-blue {
  background: #e1e7e8;
  color: #4e6870;
}

.teacher-info {
  min-width: 0;
}

.teacher-info strong {
  display: block;
  overflow-wrap: anywhere;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.5;
}

.teacher-info small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.row-arrow {
  flex-shrink: 0;
  margin-left: auto;
  color: #75806c;
  font-size: 21px;
}

.directory-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding-top: 16px;
  margin-top: 0;
  margin-bottom: 0;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 10px;
}

.directory-note > span {
  flex-shrink: 0;
  font-size: 17px;
  line-height: 1.2;
}

/* ---------- How it works ---------- */

.how-section {
  border-block: 1px solid var(--border);
  background: #eeefe7;
}

.margin-note {
  margin-right: 22px;
  margin-bottom: 14px;
  color: #72785f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-style: italic;
  line-height: 1.35;
  transform: rotate(-5deg);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 55px;
  margin-top: 36px;
}

.step-number {
  display: block;
  padding-bottom: 16px;
  margin-bottom: 20px;
  border-bottom: 1px solid #cdd3c3;
  color: #727d66;
  font-family: ui-monospace, monospace;
  font-size: 11px;
}

.step h3 {
  margin-bottom: 10px;
}

.step p {
  max-width: 300px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
}

/* ---------- Privacy and ground rules ---------- */

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  align-items: center;
  gap: 80px;
}

.privacy-seal {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 18px;
  width: 173px;
  height: 190px;
  justify-self: center;
  border: 1px solid #aab99b;
  border-radius: 50% 50% 10px 10px;
  outline: 1px solid #d8dfd0;
  outline-offset: 8px;
  color: #59714e;
  transform: rotate(-4deg);
}

.privacy-seal span {
  font-family: ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.08em;
  line-height: 1.8;
  text-align: center;
}

.rules-section {
  border-block: 1px solid var(--border);
  background: var(--surface);
}

/* ---------- Closing panel ---------- */

.closing-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  padding: 40px;
  border: 1px solid #d0d3c5;
  border-radius: 5px;
  background: #e7e8dd;
}

.closing-panel h2 {
  margin-bottom: 13px;
}

.closing-panel > .button {
  flex-shrink: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  padding-top: 35px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 35px;
  padding-bottom: 32px;
}

.footer-main .brand {
  font-size: 21px;
}

.footer-main p {
  margin-top: 9px;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
}

.footer-main small {
  color: var(--muted);
  font-size: 10px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 11px;
}

.footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-block: 17px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 9px;
}

/* ---------- Shared directory and form styles ---------- */

.page-heading {
  padding-top: 45px;
  padding-bottom: 25px;
}

.page-heading h1 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4vw, 3.3rem);
}

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

.teacher-card {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: var(--surface);
}

.teacher-card:hover {
  border-color: #a8b39c;
}

.teacher-card h3 {
  margin-top: 17px;
  margin-bottom: 10px;
}

.teacher-card p {
  color: var(--muted);
  font-size: 12px;
}

.teacher-card .text-link {
  padding-top: 15px;
  margin-top: auto;
}

.filters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-block: 25px;
}

.filters input {
  flex: 1;
  min-width: 200px;
}

input,
select,
textarea {
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid #c9cec1;
  border-radius: 4px;
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
}

input::placeholder,
textarea::placeholder {
  color: #72796c;
}

textarea {
  width: 100%;
  min-height: 130px;
  resize: vertical;
}

.form {
  display: grid;
  max-width: 680px;
  gap: 22px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  font-size: 13px;
  font-weight: 600;
}

.form-help {
  color: var(--muted);
  font-size: 11px;
}

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

.notice {
  padding: 14px 17px;
  border-left: 3px solid #879b73;
  background: var(--soft);
  color: var(--primary);
  font-size: 12px;
}

.error-message {
  color: #a93225;
  font-size: 12px;
}

.empty-state {
  padding: 45px 24px;
  border-block: 1px solid var(--border);
  text-align: center;
}

.empty-state p {
  max-width: 480px;
  margin-inline: auto;
  color: var(--muted);
}

.honeypot {
  display: none !important;
}

/* ---------- Tablet ---------- */

@media (max-width: 1000px) {
  .brand-label {
    display: none;
  }

  .hero-grid {
    gap: 45px;
  }

  .main-nav {
    gap: 18px;
  }

  .classroom-note {
    padding-inline: 23px;
  }

  .note-stamp {
    right: -12px;
    width: 77px;
    height: 77px;
    font-size: 10px;
  }

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

  .facts-grid > .text-link {
    grid-column: 1 / -1;
  }

  .teacher-preview {
    column-gap: 28px;
  }

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

  .privacy-grid {
    gap: 40px;
  }

  .steps-grid {
    gap: 32px;
  }
}

/* ---------- Mobile ---------- */

@media (max-width: 700px) {
  .container {
    width: calc(100% - 36px);
  }

  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
    padding-block: 18px;
  }

  .brand {
    font-size: 22px;
  }

  .main-nav {
    justify-content: flex-start;
    gap: 12px 18px;
    width: 100%;
    font-size: 11px;
  }

  .nav-cta {
    gap: 7px;
    padding: 7px 10px;
    font-size: 11px;
  }

  .strip-inner {
    padding-block: 10px;
    font-size: 7px;
    letter-spacing: 0.02em;
  }

  .strip-divider {
    padding-inline: 4px;
  }

  .strip-note {
    display: none;
  }

  .hero {
    padding-top: 39px;
    padding-bottom: 44px;
  }

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

  .hero-copy h1 {
    font-size: clamp(2.55rem, 10vw, 3.7rem);
  }

  .eyebrow {
    font-size: 8px;
  }

  .hero-description {
    font-size: 13px;
  }

  .hero-search {
    gap: 9px;
    padding-left: 12px;
  }

  .hero-search input {
    font-size: 11px;
  }

  .privacy-note {
    font-size: 9px;
  }

  .classroom-note {
    width: min(370px, calc(100% - 14px));
    margin-inline: auto;
    padding: 25px;
  }

  .classroom-note h2 {
    font-size: 33px;
  }

  .note-header {
    font-size: 7px;
  }

  .note-list li {
    font-size: 11px;
  }

  .note-stamp {
    right: -13px;
  }

  .facts-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 23px 15px;
    padding-block: 24px;
  }

  .facts-grid > .text-link {
    grid-column: auto;
    font-size: 10px;
  }

  .fact {
    gap: 10px;
  }

  .fact > strong {
    font-size: 31px;
  }

  .fact p {
    font-size: 10px;
  }

  .fact p span {
    font-size: 9px;
  }

  .section {
    padding-block: 43px;
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 26px;
  }

  h2 {
    font-size: 30px;
  }

  .section-description {
    font-size: 12px;
  }

  .teacher-preview,
  .teacher-grid {
    grid-template-columns: 1fr;
  }

  .teacher-row {
    gap: 13px;
    padding-block: 19px;
  }

  .teacher-acronym {
    width: 43px;
    height: 46px;
    font-size: 11px;
  }

  .teacher-info strong {
    font-size: 13px;
  }

  .teacher-info small {
    font-size: 9px;
  }

  .directory-note {
    font-size: 9px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
    gap: 27px;
    margin-top: 27px;
  }

  .step-number {
    padding-bottom: 10px;
    margin-bottom: 14px;
  }

  .step p {
    max-width: none;
  }

  .margin-note {
    display: none;
  }

  .privacy-grid {
    grid-template-columns: 1fr;
    gap: 37px;
  }

  .privacy-seal {
    width: 133px;
    height: 147px;
    gap: 11px;
  }

  .privacy-seal svg {
    width: 40px;
    height: 40px;
  }

  .privacy-seal span {
    font-size: 7px;
  }

  .small-print {
    font-size: 10px;
  }

  .closing-panel {
    align-items: flex-start;
    flex-direction: column;
    gap: 25px;
    padding: 28px 23px;
  }

  .closing-panel h2 {
    font-size: 29px;
  }

  .footer-main {
    flex-direction: column;
    gap: 24px;
  }

  .footer-links {
    gap: 13px 20px;
    padding-top: 0;
    font-size: 10px;
  }

  .footer-bottom {
    gap: 15px;
    font-size: 8px;
  }

  .filters input,
  .filters select {
    width: 100%;
    min-width: 0;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Reduced motion ---------- */

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
/* Keep HTML hidden states reliable even on grid and flex containers. */
[hidden] { display: none !important; }
.minimal-hidden { display: none !important; }

/* ---------- Focused public interface ---------- */
.main-nav > a:not(:first-child):not(.nav-cta) { display: none; }
.site-header .nav-cta { min-height: 38px; padding: 8px 13px; }
.hero { padding-block: clamp(56px, 9vw, 104px); }
.hero-grid { grid-template-columns: minmax(0, 720px); }
.hero-copy { max-width: 720px; }
.hero h1 { max-width: 720px; }
.community-facts + .section { padding-top: 26px; }
.how-section { padding-block: clamp(44px, 7vw, 74px); }
.how-section .section-heading { margin-bottom: 28px; }
.how-section .steps-grid { gap: 0; border-top: 1px solid var(--border); }
.how-section .step { padding: 22px 18px 20px 0; border-bottom: 1px solid var(--border); }
.how-section .step h3 { margin-bottom: 6px; }
.how-section .step p { max-width: 28ch; }
.filters #teacher-sort { display: none; }
.filters { grid-template-columns: minmax(0, 1fr) auto; }
.teacher-grid { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--border); }
.teacher-card { min-height: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 18px 0; border: 0; border-bottom: 1px solid var(--border); background: transparent; }
.teacher-card:hover { border-color: var(--border); background: transparent; }
.teacher-card h3 { margin: 0; font-size: 1rem; }
.teacher-card > p:not(.small-print) { grid-column: 2; margin: -15px 0 0; }
.teacher-card .small-print { grid-column: 3; grid-row: 1 / span 2; margin: 0; text-align: right; }
.teacher-card .text-link { grid-column: 3; grid-row: 1 / span 2; padding: 0; margin: 0; font-size: 0; }
.teacher-card .text-link span:last-child { font-size: 20px; }
.site-footer { padding-block: 23px; }
.footer-main { align-items: center; }
.footer-main p, .footer-main small, .footer-bottom { display: none; }
.footer-links { padding-top: 0; }
@media (max-width: 700px) {
  .hero { padding-block: 48px 38px; }
  .hero h1 { font-size: clamp(2.5rem, 13vw, 3.4rem); }
  .how-section .step { padding-right: 0; }
  .teacher-card { grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; }
  .teacher-card .small-print { display: none; }
  .teacher-card .text-link { grid-column: 3; }
  .footer-main { gap: 18px; }
}
.published-review { padding: 25px 0; border-bottom: 1px solid var(--border); }
.published-review h3 { font-size: 14px; margin-bottom: 4px; }
.published-review h4 { font-size: 12px; margin-bottom: 4px; }
.published-review p { max-width: 720px; white-space: pre-wrap; overflow-wrap: anywhere; }
.report-button { border: 0; padding: 0; background: transparent; }
.rating-distribution { max-width: 580px; margin-top: 26px; }
.distribution-row { display: flex; align-items: center; gap: 12px; font-size: 11px; margin: 10px 0; }
.distribution-track { flex: 1; background: var(--soft); height: 8px; border-radius: 3px; overflow: hidden; }
.distribution-track span { display: block; height: 100%; background: var(--primary); }
.admin-tabs { display: flex; gap: 9px; flex-wrap: wrap; margin: 25px 0; }
.admin-tabs button[aria-pressed="true"] { background: var(--primary); color: white; }
.admin-panel { border: 1px solid var(--border); background: var(--surface); padding: 24px; margin: 18px 0; border-radius: 5px; overflow-wrap: anywhere; }
.admin-panel p { white-space: pre-wrap; }
.admin-panel .form { margin-top: 15px; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit,minmax(140px,1fr)); gap: 15px; }
.admin-stats strong { font-size: 32px; display: block; }
.form label { font-size: 13px; }
.form input:not([type="checkbox"]), .form select { width: 100%; }
.admin-status { min-height: 30px; }
/* ---------- Minimal TeacherRate interface ---------- */

.minimal-hidden {
  display: none !important;
}

/* Keep only Teachers and the review action in the header. */
.main-nav > a:not(:first-child):not(.nav-cta) {
  display: none;
}

.site-header .nav-cta {
  min-height: 38px;
  padding: 8px 13px;
}

/* Simpler home page. */
.campus-strip,
.classroom-note,
.community-facts,
.teacher-preview,
#privacy,
#ground-rules,
.closing-panel {
  display: none !important;
}

.hero {
  padding-block: clamp(56px, 9vw, 104px);
}

.hero-grid {
  grid-template-columns: minmax(0, 720px);
}

.hero-copy,
.hero h1 {
  max-width: 720px;
}

/* Compact three-step explanation. */
.how-section {
  padding-block: clamp(44px, 7vw, 74px);
}

.how-section .section-heading {
  margin-bottom: 28px;
}

.how-section .steps-grid {
  gap: 0;
  border-top: 1px solid var(--border);
}

.how-section .step {
  padding: 22px 18px 20px 0;
  border-bottom: 1px solid var(--border);
}

.how-section .step h3 {
  margin-bottom: 6px;
}

.how-section .step p {
  max-width: 28ch;
}

/* Search-only teacher directory. */
.filters {
  grid-template-columns: minmax(0, 1fr) auto;
}

/* Turn teacher cards into simple list rows. */
.teacher-grid {
  grid-template-columns: 1fr;
  gap: 0;
  border-top: 1px solid var(--border);
}

.teacher-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "badge name action"
    "badge department action"
    "badge score action";
  align-items: center;
  gap: 6px 16px;
  min-height: 0;
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.teacher-card:hover {
  border-color: var(--border);
  background: transparent;
}

.teacher-card .teacher-acronym {
  grid-area: badge;
}

.teacher-card h3 {
  grid-area: name;
  margin: 0;
  font-size: 1rem;
}

.teacher-card > p:not(.small-print) {
  grid-area: department;
  margin: 0;
}

.teacher-card .small-print {
  grid-area: score;
  margin: 0;
}

.teacher-card .text-link {
  grid-area: action;
  padding: 0;
  margin: 0;
  font-size: 0;
}

.teacher-card .text-link span:last-child {
  font-size: 20px;
}

/* Smaller footer with only useful links. */
.site-footer {
  padding-block: 23px;
}

.footer-main {
  align-items: center;
}

.footer-main p,
.footer-main small,
.footer-bottom {
  display: none;
}

.footer-links {
  padding-top: 0;
}

@media (max-width: 700px) {
  .hero {
    padding-block: 48px 38px;
  }

  .hero h1 {
    font-size: clamp(2.5rem, 13vw, 3.4rem);
  }

  .how-section .step {
    padding-right: 0;
  }

  .teacher-card {
    gap: 5px 12px;
  }

  .teacher-card .small-print {
    display: none;
  }

  .footer-main {
    gap: 18px;
  }
}
/* Simple homepage font and layout */

.home-hero,
.home-hero *,
.how-it-works,
.how-it-works *,
.notice-section,
.notice-section * {
  font-family: Arial, Helvetica, sans-serif !important;
  font-style: normal !important;
  letter-spacing: normal !important;
}

.home-hero {
  padding: 110px 0 90px;
  background: #f8f8f5;
  border-bottom: 1px solid #deded8;
}

.hero-content {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #466b59;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em !important;
}

.home-hero h1 {
  margin: 0;
  color: #20231f;
  font-size: clamp(2.3rem, 7vw, 4.6rem);
  line-height: 1.05;
  font-weight: 700;
}

.hero-copy {
  max-width: 560px;
  margin: 22px 0 30px;
  color: #596057;
  font-size: 1.1rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section {
  padding: 72px 0;
}

.how-it-works h2,
.notice-box h2 {
  margin: 0 0 32px;
  color: #20231f;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  line-height: 1.2;
  font-weight: 700;
}

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

.step-card {
  min-height: 190px;
  padding: 24px;
  border: 1px solid #deded8;
  border-radius: 8px;
  background: #ffffff;
}

.step-number {
  display: block;
  margin-bottom: 22px;
  color: #466b59;
  font-weight: 700;
}

.step-card h3 {
  margin: 0 0 10px;
  color: #20231f;
  font-size: 1.15rem;
  font-weight: 700;
}

.step-card p,
.notice-box p {
  margin: 0;
  color: #596057;
  line-height: 1.65;
}

.notice-section {
  padding-top: 0;
}

.notice-box {
  padding: 32px;
  border-left: 4px solid #466b59;
  background: #eef3ed;
}

.notice-box h2 {
  margin-bottom: 12px;
  font-size: 1.6rem;
}

.notice-box a {
  display: inline-block;
  margin-top: 18px;
  color: #244b38;
  font-weight: 700;
}

@media (max-width: 700px) {
  .home-hero {
    padding: 75px 0 60px;
  }

  .section {
    padding: 52px 0;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .notice-box {
    padding: 24px;
  }
}
/* Department filter in the teacher directory. */
.filters #department-filter { min-width: 220px; }
@media (max-width: 700px) { .filters #department-filter { width: 100%; min-width: 0; } }


.teacher-card .small-print { text-align: left; }
.filters #department-filter { max-width: 100%; flex: 0 1 350px; }
