:root {
  --ink: #10233f;
  --ink-2: #203652;
  --paper: #f4f6f2;
  --white: #fffefa;
  --line: #cfd6d1;
  --line-dark: #9eaaa6;
  --blue: #255ee9;
  --blue-dark: #194bc8;
  --acid: #dff33d;
  --muted: #67746f;
  --rust: #d85d35;
  --shadow: 0 12px 38px rgba(16, 35, 63, .11);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button, select { cursor: pointer; }
a { color: inherit; text-decoration: none; }
svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; background: var(--acid); padding: .8rem 1rem; font-weight: 800; }
.skip-link:focus { top: 1rem; }

.site-header { height: 78px; padding: 0 clamp(1.1rem, 4vw, 4.8rem); display: flex; align-items: center; gap: 2.4rem; border-bottom: 1px solid var(--line); background: rgba(244,246,242,.96); position: sticky; top: 0; z-index: 30; }
.brand { display: inline-flex; align-items: center; gap: .7rem; font-size: 1.08rem; font-weight: 850; letter-spacing: -.04em; }
.brand-mark { width: 2.15rem; height: 2.15rem; display: grid; place-items: center; background: var(--ink); color: var(--white); font-size: .78rem; letter-spacing: -.13em; transform: rotate(-2deg); }
.brand-mark span { color: var(--acid); }
.main-nav { display: flex; align-self: stretch; gap: 1.8rem; margin-right: auto; }
.main-nav a { display: flex; align-items: center; position: relative; color: #45566b; font-size: .92rem; font-weight: 700; }
.main-nav a:hover { color: var(--ink); }
.nav-button { border: 0; background: transparent; color: #45566b; font-size: .92rem; font-weight: 700; padding: 0; }
.nav-button:hover { color: var(--ink); }
.main-nav a.active::after { content: ""; height: 3px; background: var(--blue); position: absolute; left: 0; right: 0; bottom: 0; }
.header-actions { display: flex; align-items: center; gap: .85rem; }
.text-button, .clear-button { border: 0; background: transparent; font-weight: 750; }
.text-button { display: inline-flex; align-items: center; gap: .4rem; }
.text-button span { min-width: 1.3rem; height: 1.3rem; padding: 0 .35rem; display: grid; place-items: center; border-radius: 1rem; background: var(--ink); color: white; font-size: .72rem; }
.text-button[aria-pressed="true"] { color: var(--blue); }
.button { min-height: 46px; border: 1px solid transparent; padding: .78rem 1.2rem; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; transition: transform .16s ease, background .16s ease, border-color .16s ease; }
.button:hover { transform: translateY(-1px); }
.button-dark { background: var(--ink); color: white; }
.button-dark:hover { background: var(--ink-2); }
.button-accent { background: var(--acid); color: var(--ink); border-color: #c1d321; }
.button-accent:hover { background: #ebf87b; }
.button-outline { background: transparent; border-color: var(--line-dark); }
.menu-button { display: none; border: 0; background: transparent; padding: .4rem; }
.menu-button span { display: block; width: 1.5rem; height: 2px; background: var(--ink); margin: 4px; }

main { overflow: hidden; }
.intro { padding: clamp(2.5rem, 5vw, 5.3rem) clamp(1.1rem, 4vw, 4.8rem) 2.3rem; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(400px, .95fr); gap: clamp(2rem, 7vw, 7rem); align-items: end; }
.eyebrow { margin: 0 0 .85rem; color: var(--blue); font-size: .73rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.intro h1 { max-width: 800px; margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: clamp(3.2rem, 6vw, 6.8rem); font-weight: 400; letter-spacing: -.067em; line-height: .89; }
.intro h1 em { color: var(--blue); font-weight: 400; }
.intro-copy > p:last-child { max-width: 610px; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.65; }
.audience-switcher { border-top: 1px solid var(--line-dark); }
.audience-card { width: 100%; padding: 1.1rem .4rem; display: grid; grid-template-columns: 2rem 1fr auto; align-items: center; gap: 1rem; border: 0; border-bottom: 1px solid var(--line); background: transparent; text-align: left; transition: padding .18s ease, background .18s ease; }
.audience-card:hover, .audience-card.active { padding-left: .9rem; background: var(--white); }
.audience-card.active { box-shadow: inset 3px 0 var(--blue); }
.audience-number { align-self: start; color: var(--blue); font-size: .68rem; font-weight: 900; }
.audience-card strong, .audience-card small { display: block; }
.audience-card strong { font-size: .96rem; }
.audience-card small { margin-top: .2rem; color: var(--muted); font-size: .82rem; }
.audience-card svg { transition: transform .18s ease; }
.audience-card:hover svg { transform: translateX(4px); }

.search-panel { margin: 0 clamp(1.1rem, 4vw, 4.8rem); padding: 1rem; display: grid; grid-template-columns: 1.2fr 1fr auto; gap: .8rem; background: var(--blue); box-shadow: var(--shadow); }
.search-field { min-width: 0; }
.search-field > span:first-child { display: block; margin: 0 0 .35rem .15rem; color: white; font-size: .7rem; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.input-wrap { height: 52px; display: flex; align-items: center; gap: .7rem; padding: 0 .9rem; background: var(--white); }
.input-wrap svg { flex: 0 0 auto; color: var(--blue); }
.input-wrap input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; font-size: .92rem; }
.search-submit { align-self: end; min-height: 52px; padding-inline: 1.8rem; }

.board-layout { padding: 3.5rem clamp(1.1rem, 4vw, 4.8rem) 5rem; display: grid; grid-template-columns: 210px minmax(0, 1fr) 230px; gap: clamp(1.5rem, 3vw, 3.4rem); align-items: start; }
.filters { position: sticky; top: 100px; }
.filter-heading { display: flex; justify-content: space-between; align-items: center; padding-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.filter-heading h2 { margin: 0; font-family: Georgia, serif; font-size: 1.45rem; font-weight: 500; }
.clear-button { padding: .3rem 0; color: var(--blue); font-size: .76rem; }
.filter-group { margin: 0; padding: 1.35rem 0; border: 0; border-bottom: 1px solid var(--line); }
.filter-group legend, .select-filter > label { margin-bottom: .9rem; font-size: .78rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.filter-group > label:not([for]) { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .65rem; margin-top: .7rem; color: #405066; font-size: .87rem; }
.filter-group input[type="checkbox"] { width: 1rem; height: 1rem; accent-color: var(--blue); }
.filter-group b { color: var(--muted); font-size: .74rem; font-weight: 600; }
.select-filter { display: flex; flex-direction: column; }
.select-filter select, .sort-control select { border: 1px solid var(--line); background: var(--white); }
.select-filter select { height: 42px; padding: 0 .7rem; }

.results-header { min-height: 54px; display: flex; justify-content: space-between; gap: 1.5rem; align-items: end; padding-bottom: 1rem; border-bottom: 2px solid var(--ink); }
.results-header .eyebrow { margin-bottom: .3rem; }
.results-header h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(1.5rem, 2.5vw, 2rem); font-weight: 500; letter-spacing: -.035em; }
.sort-control { display: flex; align-items: center; gap: .6rem; color: var(--muted); font-size: .77rem; font-weight: 700; white-space: nowrap; }
.sort-control select { height: 36px; padding: 0 .5rem; }
.active-filters { display: flex; flex-wrap: wrap; gap: .45rem; }
.filter-chip { margin-top: .8rem; border: 1px solid var(--line-dark); background: transparent; padding: .35rem .6rem; font-size: .75rem; font-weight: 700; }
.filter-chip::after { content: " ×"; color: var(--blue); }

.job-list { display: grid; }
.job-card { position: relative; padding: 1.55rem 3.3rem 1.55rem 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 1.1rem; transition: padding .18s ease, background .18s ease; }
.job-card:hover { padding-left: 1rem; background: var(--white); }
.job-avatar { width: 48px; height: 48px; display: grid; place-items: center; background: var(--ink); color: white; font-family: Georgia, serif; font-size: 1rem; }
.job-avatar.client { background: var(--rust); }
.job-avatar.centre { background: var(--blue); }
.job-avatar.teacher { background: #557b2f; }
.job-meta { display: flex; flex-wrap: wrap; gap: .45rem .75rem; margin-bottom: .42rem; color: var(--muted); font-size: .72rem; font-weight: 720; }
.job-meta span:first-child { color: var(--blue); text-transform: uppercase; letter-spacing: .08em; }
.job-title { margin: 0; font-family: Georgia, serif; font-size: 1.42rem; font-weight: 500; letter-spacing: -.025em; line-height: 1.18; }
.job-title button { padding: 0; border: 0; background: transparent; text-align: left; cursor: pointer; }
.job-title button:hover { color: var(--blue); }
.job-location { margin: .5rem 0 .7rem; color: #4e5d6c; font-size: .86rem; }
.job-tags { display: flex; flex-wrap: wrap; gap: .42rem; }
.job-tags span { padding: .28rem .5rem; background: #e9ede9; color: #4a5b5b; font-size: .68rem; font-weight: 720; }
.job-rate { padding-top: 1.2rem; text-align: right; white-space: nowrap; }
.job-rate strong, .job-rate span { display: block; }
.job-rate strong { font-family: Georgia, serif; font-size: 1.08rem; }
.job-rate span { margin-top: .3rem; color: var(--muted); font-size: .69rem; }
.save-job { position: absolute; right: 0; top: 1.25rem; width: 2.2rem; height: 2.2rem; display: grid; place-items: center; border: 0; background: transparent; color: #7a8782; }
.save-job:hover, .save-job.saved { color: var(--blue); }
.save-job.saved svg { fill: var(--blue); }
.empty-state { padding: 4rem 1rem; text-align: center; }
.empty-state > span { color: var(--blue); font-family: Georgia, serif; font-size: 3rem; }
.empty-state h3 { margin: .5rem 0; font-family: Georgia, serif; font-size: 1.8rem; font-weight: 500; }
.empty-state p { margin: 0 auto 1.3rem; max-width: 360px; color: var(--muted); line-height: 1.5; }

.board-note { position: sticky; top: 100px; padding: 1.5rem; background: var(--ink); color: white; box-shadow: 10px 10px 0 var(--acid); transform: rotate(.7deg); }
.note-kicker { color: var(--acid); font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.board-note h2 { margin: 1.1rem 0; font-family: Georgia, serif; font-size: 2rem; font-weight: 400; line-height: 1.05; }
.board-note > p:not(.note-kicker):not(.note-stat) { color: #c7d2de; font-size: .85rem; line-height: 1.55; }
.note-rule { height: 1px; margin: 1.5rem 0; background: #40516b; }
.note-stat { margin: 0; display: flex; gap: .75rem; align-items: center; }
.note-stat strong { color: var(--acid); font-family: Georgia, serif; font-size: 2rem; font-weight: 400; }
.note-stat span { max-width: 70px; color: #c7d2de; font-size: .68rem; line-height: 1.2; }

.trust-strip { padding: 4.6rem clamp(1.1rem, 4vw, 4.8rem); display: grid; grid-template-columns: 1.2fr repeat(3, 1fr); background: var(--white); border-top: 1px solid var(--line); }
.teacher-directory { padding: 4.8rem clamp(1.1rem, 4vw, 4.8rem); background: var(--ink); color: white; }
.teacher-heading { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2rem; }
.teacher-heading h2 { max-width: 680px; margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.8rem); font-weight: 400; letter-spacing: -.05em; line-height: 1; }
.teacher-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.teacher-card { padding: 1.5rem; background: var(--white); color: var(--ink); border-top: 4px solid var(--acid); }
.teacher-card.mine { border-color: var(--blue); }
.teacher-card-top { display: flex; align-items: center; gap: .9rem; }
.teacher-avatar { width: 48px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; background: var(--blue); color: white; font-family: Georgia, serif; font-size: 1rem; }
.teacher-card h3 { margin: 0; font-family: Georgia, serif; font-size: 1.35rem; font-weight: 500; }
.teacher-title { margin: .2rem 0 0; color: var(--blue); font-size: .78rem; font-weight: 750; }
.teacher-bio { color: #4e5e6d; line-height: 1.55; font-size: .86rem; }
.teacher-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin: 1rem 0; padding: .9rem 0; border-block: 1px solid var(--line); }
.teacher-facts span { display: block; color: var(--muted); font-size: .68rem; text-transform: uppercase; font-weight: 800; letter-spacing: .06em; }
.teacher-facts strong { display: block; margin-top: .2rem; font-size: .82rem; }
.teacher-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.teacher-tags span { padding: .3rem .5rem; background: #e9ede9; font-size: .7rem; font-weight: 700; }
.trust-strip > * { min-height: 220px; padding: 0 2rem; border-left: 1px solid var(--line); }
.trust-strip > *:first-child { padding-left: 0; border-left: 0; }
.trust-intro h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 4vw, 3.7rem); font-weight: 400; letter-spacing: -.05em; line-height: .97; }
.trust-strip article > span { color: var(--blue); font-size: .7rem; font-weight: 900; }
.trust-strip h3 { margin: 4rem 0 .75rem; font-family: Georgia, serif; font-size: 1.3rem; font-weight: 500; }
.trust-strip article p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.55; }

footer { padding: 2rem clamp(1.1rem, 4vw, 4.8rem); display: flex; align-items: center; gap: 2rem; background: var(--ink); color: white; }
footer > p { margin-right: auto; color: #aebdca; font-size: .85rem; }
footer > div { display: flex; gap: 1.2rem; }
footer > div a, footer > div button { border: 0; background: transparent; color: white; font-size: .82rem; font-weight: 760; }

.backdrop { position: fixed; inset: 0; z-index: 50; background: rgba(7, 19, 36, .55); backdrop-filter: blur(3px); }
.job-drawer { position: fixed; z-index: 60; top: 0; right: 0; bottom: 0; width: min(540px, 100%); padding: clamp(2rem, 5vw, 3.5rem); overflow-y: auto; background: var(--white); box-shadow: -16px 0 50px rgba(0,0,0,.18); transform: translateX(105%); transition: transform .25s ease; }
.job-drawer.open { transform: translateX(0); }
.icon-button { width: 2.4rem; height: 2.4rem; border: 1px solid var(--line); background: transparent; font-size: 1.5rem; line-height: 1; }
.close-drawer { position: absolute; right: 1.5rem; top: 1.5rem; }
.drawer-company { margin: .5rem 0 .8rem; color: var(--blue); font-weight: 800; }
.job-drawer h2 { max-width: 420px; margin: 0 0 1rem; font-family: Georgia, serif; font-size: clamp(2.3rem, 6vw, 3.6rem); font-weight: 400; letter-spacing: -.05em; line-height: 1; }
.drawer-facts { margin: 1.8rem 0; padding: 1rem 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.drawer-facts span { display: block; color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.drawer-facts strong { display: block; margin-top: .3rem; font-size: .9rem; }
.drawer-section h3 { margin: 1.8rem 0 .7rem; font-family: Georgia, serif; font-size: 1.3rem; font-weight: 500; }
.drawer-section p, .drawer-section li { color: #4e5e6d; line-height: 1.68; }
.drawer-apply { width: 100%; margin-top: 1.6rem; }

.post-dialog { width: min(760px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); padding: clamp(1.5rem, 4vw, 3rem); border: 0; border-radius: 0; background: var(--white); box-shadow: 0 24px 80px rgba(6,17,35,.35); }
.post-dialog::backdrop { background: rgba(7,19,36,.63); backdrop-filter: blur(3px); }
.dialog-close { position: absolute; top: 1rem; right: 1rem; }
.dialog-intro h2 { margin: 0; font-family: Georgia, serif; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 400; letter-spacing: -.05em; }
.dialog-intro > p:last-child { color: var(--muted); }
.form-grid { margin-top: 2rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-grid label span { display: block; margin-bottom: .42rem; font-size: .77rem; font-weight: 800; }
.form-grid input, .form-grid select, .form-grid textarea { width: 100%; border: 1px solid var(--line-dark); background: white; padding: .8rem; }
.form-grid input, .form-grid select { height: 46px; }
.form-grid textarea { resize: vertical; }
.full-field { grid-column: 1 / -1; }
.form-trap { position: absolute !important; left: -10000px !important; width: 1px !important; height: 1px !important; overflow: hidden !important; }
.submission-result { margin-top: 1.2rem; padding: 1rem; border-left: 4px solid var(--blue); background: #eef3ff; line-height: 1.5; }
.submission-result strong, .submission-result code { display: block; }
.submission-result code { margin-top: .5rem; padding: .6rem; overflow-wrap: anywhere; background: white; font-size: .78rem; user-select: all; }
.form-actions { margin-top: 1.4rem; display: flex; justify-content: flex-end; gap: .7rem; }
.toast { position: fixed; z-index: 80; left: 50%; bottom: 1.5rem; padding: .75rem 1rem; background: var(--ink); color: white; font-size: .84rem; font-weight: 750; box-shadow: var(--shadow); opacity: 0; transform: translate(-50%, 1rem); pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1120px) {
  .board-layout { grid-template-columns: 200px minmax(0, 1fr); }
  .board-note { display: none; }
  .trust-strip { grid-template-columns: 1.2fr 1fr 1fr; }
  .trust-strip article:last-child { display: none; }
}

@media (max-width: 820px) {
  .site-header { height: 68px; }
  .main-nav { position: fixed; z-index: 40; inset: 68px 0 auto; padding: 1rem 1.2rem 1.5rem; display: none; flex-direction: column; gap: .2rem; background: var(--paper); border-bottom: 1px solid var(--line); }
  .main-nav.open { display: flex; }
  .main-nav a { padding: .8rem 0; }
  .nav-button { padding: .8rem 0; text-align: left; }
  .main-nav a.active::after { display: none; }
  .header-actions .text-button { display: none; }
  .menu-button { display: block; margin-left: auto; }
  .intro { grid-template-columns: 1fr; padding-top: 3rem; }
  .audience-switcher { max-width: none; }
  .search-panel { grid-template-columns: 1fr 1fr; }
  .search-submit { grid-column: 1 / -1; }
  .board-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 1.5rem; }
  .filter-heading { grid-column: 1 / -1; }
  .select-filter { align-self: end; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .teacher-grid { grid-template-columns: 1fr 1fr; }
  .header-profile { display: none; }
  .trust-strip > * { min-height: 190px; }
  .trust-strip article:nth-of-type(n+2) { display: none; }
}

@media (max-width: 560px) {
  .site-header { padding-inline: 1rem; }
  .header-actions .button { display: none; }
  .intro h1 { font-size: clamp(3.2rem, 17vw, 5rem); }
  .search-panel { margin-inline: 1rem; grid-template-columns: 1fr; }
  .search-submit { grid-column: auto; }
  .board-layout { padding: 2.5rem 1rem 4rem; }
  .filters { display: block; }
  .results-header { align-items: start; flex-direction: column; }
  .sort-control { width: 100%; justify-content: space-between; }
  .job-card { grid-template-columns: 40px 1fr; padding-right: 2.5rem; }
  .job-avatar { width: 40px; height: 40px; }
  .job-rate { grid-column: 2; text-align: left; padding-top: 0; }
  .save-job { right: 0; }
  .trust-strip { grid-template-columns: 1fr; padding-block: 3rem; }
  .teacher-heading { align-items: flex-start; flex-direction: column; }
  .teacher-grid { grid-template-columns: 1fr; }
  .trust-strip > * { min-height: 0; padding: 2rem 0; border-left: 0; border-top: 1px solid var(--line); }
  .trust-strip > *:first-child { padding-top: 0; border-top: 0; }
  .trust-strip h3 { margin-top: 1.5rem; }
  footer { align-items: flex-start; flex-wrap: wrap; }
  footer > p { width: 100%; order: 3; }
  .form-grid { grid-template-columns: 1fr; }
  .full-field { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
