:root {
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2.1rem, 1.2rem + 3vw, 3.75rem);
  --space-1: 0.25rem; --space-2: 0.5rem; --space-3: 0.75rem; --space-4: 1rem; --space-5: 1.25rem;
  --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem; --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  --color-bg: oklch(0.975 0.008 85);
  --color-surface: oklch(0.99 0.004 85);
  --color-tint: oklch(0.945 0.014 80);
  --color-border: oklch(0.3 0.03 255 / 0.14);
  --color-divider: oklch(0.3 0.03 255 / 0.09);
  --color-text: oklch(0.24 0.035 255);
  --color-text-muted: oklch(0.47 0.025 255);
  --color-primary: oklch(0.42 0.12 255);
  --color-primary-hover: oklch(0.35 0.11 255);
  --color-primary-soft: oklch(0.42 0.12 255 / 0.09);
  --color-gold: oklch(0.8 0.15 80);
  --color-ink: oklch(0.22 0.05 255);

  --radius-sm: 0.375rem; --radius-md: 0.625rem; --radius-lg: 1rem;
  --shadow-sm: 0 1px 2px oklch(0.3 0.04 255 / 0.06), 0 2px 8px oklch(0.3 0.04 255 / 0.05);
  --transition-interactive: 180ms cubic-bezier(0.16, 1, 0.3, 1);
  --font-display: 'Gambetta', 'Georgia', serif;
  --font-body: 'General Sans', 'Inter', system-ui, sans-serif;
  --wrap: 1200px;
}

body { font-size: var(--text-base); }
a { color: var(--color-primary); text-underline-offset: 3px; }
a:hover { color: var(--color-primary-hover); }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(var(--space-4), 4vw, var(--space-10)); }
.skip { position: absolute; left: -999px; top: var(--space-2); background: var(--color-ink); color: #fff; padding: var(--space-2) var(--space-4); border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: var(--space-2); }
.muted { color: var(--color-text-muted); }

/* Top bar */
.topbar { position: sticky; top: 0; z-index: 40; background: oklch(0.975 0.008 85 / 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--color-divider); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); text-decoration: none; color: var(--color-text); font-weight: 600; font-size: var(--text-sm); }
.brand__mark { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm); background: var(--color-ink); color: var(--color-gold); font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; letter-spacing: 0.02em; }
.brand__name { letter-spacing: 0.01em; }
.nav { display: flex; gap: var(--space-1); flex-wrap: wrap; }
.nav a { font-size: var(--text-sm); color: var(--color-text-muted); text-decoration: none; padding: var(--space-2) var(--space-3); border-radius: var(--radius-sm); }
.nav a:hover { color: var(--color-text); background: var(--color-primary-soft); }

/* Hero */
.hero { padding-block: clamp(var(--space-12), 7vw, var(--space-24)) clamp(var(--space-10), 5vw, var(--space-16)); border-bottom: 1px solid var(--color-divider); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(var(--space-8), 5vw, var(--space-16)); align-items: start; }
.eyebrow { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600; color: var(--color-primary); margin-bottom: var(--space-4); }
h1 { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; line-height: 1.05; letter-spacing: -0.015em; color: var(--color-ink); max-width: 16ch; }
.lede { margin-top: var(--space-5); color: var(--color-text-muted); max-width: 56ch; }
.lede strong { color: var(--color-text); font-weight: 600; }
.quick { margin-top: var(--space-8); display: flex; gap: var(--space-2); max-width: 600px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-2); box-shadow: var(--shadow-sm); }
.quick input { flex: 1; min-width: 0; border: 0; background: transparent; padding: var(--space-2) var(--space-3); font-size: var(--text-base); outline: none; }
.quick button, .btn { background: var(--color-primary); color: #fff; font-weight: 600; font-size: var(--text-sm); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-5); text-decoration: none; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; min-height: 44px; }
.quick button:hover, .btn:hover { background: var(--color-primary-hover); color: #fff; }
.quick:focus-within { border-color: var(--color-primary); }
.regions { margin-top: var(--space-5); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.chip { font-size: var(--text-xs); font-weight: 500; padding: var(--space-2) var(--space-3); border-radius: 999px; border: 1px solid var(--color-border); background: var(--color-surface); color: var(--color-text); min-height: 36px; }
.chip span { color: var(--color-text-muted); margin-left: var(--space-1); font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--color-primary); color: var(--color-primary); }

.hero__panel { background: var(--color-ink); color: oklch(0.93 0.01 255); border-radius: var(--radius-lg); padding: clamp(var(--space-6), 3vw, var(--space-8)); }
.panel__label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.12em; color: var(--color-gold); font-weight: 600; margin-bottom: var(--space-5); }
.routes { list-style: none; display: grid; gap: var(--space-5); }
.routes li { display: grid; grid-template-columns: 28px 1fr; gap: var(--space-3); font-size: var(--text-sm); line-height: 1.5; color: oklch(0.82 0.015 255); }
.routes b { color: #fff; font-weight: 600; }
.routes a { color: var(--color-gold); font-weight: 500; white-space: nowrap; }
.routes a:hover { color: #fff; }
.routes__n { font-family: var(--font-display); font-size: 1.25rem; color: var(--color-gold); line-height: 1.1; }

/* Sections */
.section { padding-block: clamp(var(--space-12), 7vw, var(--space-20)); }
.section--tint { background: var(--color-tint); }
.sechead { margin-bottom: var(--space-8); max-width: 70ch; }
.sechead--row { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: var(--space-6); }
.sechead--row > div { max-width: 70ch; }
h2 { font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; color: var(--color-ink); letter-spacing: -0.01em; }
.sechead p { margin-top: var(--space-3); color: var(--color-text-muted); }
h3 { font-size: var(--text-base); font-weight: 600; color: var(--color-ink); line-height: 1.3; }
.count { font-size: var(--text-sm); color: var(--color-text-muted); white-space: nowrap; }
.count span { font-family: var(--font-display); font-size: var(--text-xl); color: var(--color-ink); font-variant-numeric: tabular-nums; margin-right: var(--space-1); }

/* Tabs + boards */
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-6); }
.tab { font-size: var(--text-sm); font-weight: 500; padding: var(--space-2) var(--space-4); border-radius: 999px; color: var(--color-text-muted); border: 1px solid var(--color-border); min-height: 40px; }
.tab:hover { color: var(--color-text); border-color: var(--color-text-muted); }
.tab.is-on { background: var(--color-ink); color: #fff; border-color: var(--color-ink); }
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: var(--space-4); }
.board { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.board--lead { grid-column: span 2; background: var(--color-primary); border-color: var(--color-primary); color: #fff; }
.board--lead h3 { color: #fff; font-family: var(--font-display); font-size: var(--text-xl); font-weight: 600; }
.board--lead .board__who { color: var(--color-gold); }
.board--lead .board__desc { color: oklch(0.92 0.02 255); font-size: var(--text-base); }
.board--lead .board__cta { color: #fff; }
.board__who { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--color-text-muted); }
.board__desc { font-size: var(--text-sm); color: var(--color-text-muted); flex: 1; }
.board__cta { font-size: var(--text-sm); font-weight: 600; text-decoration: none; margin-top: var(--space-2); }
.board__cta:hover { text-decoration: underline; }

/* Cities */
.cities { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-4); }
.city { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-5); display: flex; flex-direction: column; gap: var(--space-1); }
.city h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; }
.city__meta { font-size: var(--text-xs); color: var(--color-text-muted); }
.city__phone { font-size: var(--text-sm); color: var(--color-text-muted); font-variant-numeric: tabular-nums; flex: 1; }
.city__links { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); margin-top: var(--space-4); }
.btn--sm { padding: var(--space-2) var(--space-4); min-height: 40px; }
.link { font-size: var(--text-sm); font-weight: 500; }
.link--btn { color: var(--color-primary); text-decoration: underline; text-underline-offset: 3px; padding: 0; }
.link--btn:hover { color: var(--color-primary-hover); }

/* Filters + directory */
.filters { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto; gap: var(--space-3); align-items: end; padding: var(--space-4); background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: var(--space-4); }
.field { display: flex; flex-direction: column; gap: var(--space-1); min-width: 0; }
.field label { font-size: var(--text-xs); font-weight: 600; color: var(--color-text-muted); }
.field input, .field select { border: 1px solid var(--color-border); background: var(--color-bg); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); min-height: 44px; font-size: var(--text-sm); width: 100%; }
.field input:focus, .field select:focus { outline: 2px solid var(--color-primary); outline-offset: 0; border-color: transparent; }
.btn-ghost { font-size: var(--text-sm); font-weight: 500; color: var(--color-text-muted); padding: var(--space-2) var(--space-4); min-height: 44px; border-radius: var(--radius-sm); }
.btn-ghost:hover { color: var(--color-text); background: var(--color-primary-soft); }

.dtable { border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); overflow: hidden; }
.drow { display: grid; grid-template-columns: minmax(0, 2.1fr) minmax(0, 1.5fr) minmax(0, 1.7fr) 130px 270px; gap: var(--space-4); align-items: center; padding: var(--space-3) var(--space-5); border-top: 1px solid var(--color-divider); font-size: var(--text-sm); }
.drow--head { border-top: 0; background: var(--color-tint); font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--color-text-muted); padding-block: var(--space-3); }
.drow:not(.drow--head):hover { background: oklch(0.42 0.12 255 / 0.035); }
.drow__name { font-weight: 600; color: var(--color-ink); }
.drow__sub .lbl { display: none; }
.drow__phone a { color: var(--color-text); text-decoration: none; font-variant-numeric: tabular-nums; }
.drow__phone a:hover { color: var(--color-primary); text-decoration: underline; }
.drow__links { display: flex; align-items: center; gap: var(--space-4); justify-content: flex-end; }
.tag { display: inline-block; font-size: 0.75rem; font-weight: 600; background: var(--color-gold); color: var(--color-ink); border-radius: 999px; padding: 0 var(--space-2); margin-left: var(--space-1); vertical-align: 2px; }
.empty { padding: var(--space-10); text-align: center; color: var(--color-text-muted); border: 1px dashed var(--color-border); border-radius: var(--radius-md); margin-top: var(--space-4); }
.empty p { margin-inline: auto; }
.more { display: flex; justify-content: center; margin-top: var(--space-6); }
.more .btn { background: var(--color-ink); }

/* BOCES */
.bocesgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-3); }
.bc { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); display: flex; flex-direction: column; gap: var(--space-1); }
.bc h3 { font-size: var(--text-sm); }
.bc__meta { font-size: var(--text-xs); color: var(--color-text-muted); flex: 1; }
.bc__links { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin-top: var(--space-2); }
.bc__links a[href^="tel"] { color: var(--color-text-muted); text-decoration: none; font-variant-numeric: tabular-nums; }

/* Ready */
.ready { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.step { border-top: 2px solid var(--color-ink); padding-top: var(--space-5); display: flex; flex-direction: column; gap: var(--space-2); }
.step p:not(.step__n) { font-size: var(--text-sm); color: var(--color-text-muted); flex: 1; }
.step a { font-size: var(--text-sm); font-weight: 600; margin-top: var(--space-2); }
.step__n { font-family: var(--font-display); font-size: var(--text-lg); color: var(--color-primary); }
.step--wide { grid-column: 1 / -1; display: grid; grid-template-columns: 80px minmax(0, 1.2fr) minmax(0, 2fr) auto; gap: var(--space-6); align-items: start; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-6); margin-top: var(--space-6); }
.step--wide .step__n { margin: 0; }
.step--wide a { margin-top: 0; white-space: nowrap; }

/* Footer */
.footer { background: var(--color-ink); color: oklch(0.82 0.015 255); padding-block: var(--space-12); }
.footer__in { display: grid; grid-template-columns: 1fr 1.4fr; gap: var(--space-10); }
.brand--foot { color: #fff; margin-bottom: var(--space-3); }
.fine { font-size: var(--text-xs); line-height: 1.6; }
.fine b { color: #fff; }
.footer a { color: var(--color-gold); }

/* Responsive */
@media (max-width: 1080px) {
  .cities { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ready { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step--wide { grid-template-columns: 1fr; gap: var(--space-2); }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .field--grow { grid-column: 1 / -1; }
  .btn-ghost { grid-column: 3; justify-self: end; }
  .drow { grid-template-columns: minmax(0, 2fr) minmax(0, 1.4fr) minmax(0, 1.6fr) 250px; }
  .drow > :nth-child(4) { display: none; }
}
@media (max-width: 860px) {
  .hero__grid { grid-template-columns: 1fr; }
  .nav { display: none; }
  .sechead--row { flex-direction: column; align-items: flex-start; }
  .drow--head { display: none; }
  .drow { grid-template-columns: 1fr; gap: var(--space-1); padding: var(--space-4); }
  .drow > :nth-child(4) { display: block; }
  .drow__sub { color: var(--color-text-muted); }
  .drow__sub .lbl { display: inline; font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; margin-right: var(--space-2); }
  .drow__links { justify-content: flex-start; margin-top: var(--space-2); }
  .board--lead { grid-column: auto; }
  .footer__in { grid-template-columns: 1fr; gap: var(--space-6); }
}
@media (max-width: 600px) {
  .cities, .ready { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .field--grow { grid-column: 1 / -1; }
  .btn-ghost { grid-column: 2; }
  .quick { flex-direction: column; }
  .quick button { width: 100%; }
}
.drow__links { justify-content: flex-start; }
.brand--foot .brand__mark { background: var(--color-gold); color: var(--color-ink); }

/* Latest jobs */
.jobs__meta { font-size: var(--text-xs); color: var(--color-text-muted); margin: calc(-1 * var(--space-4)) 0 var(--space-4); }
.jobs__meta b { color: var(--color-text); font-weight: 600; }
.filters--jobs { grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto; }
.jobs { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.job { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-4) var(--space-5); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-1) var(--space-4); align-items: start; }
.job:hover { border-color: oklch(0.42 0.12 255 / 0.35); }
.job__t { font-size: var(--text-sm); font-weight: 600; color: var(--color-ink); line-height: 1.35; overflow-wrap: anywhere; }
.job__t a { color: inherit; text-decoration: none; }
.job__t a:hover { color: var(--color-primary); text-decoration: underline; }
.job__e { font-size: var(--text-sm); color: var(--color-text); overflow-wrap: anywhere; }
.job__m { font-size: var(--text-xs); color: var(--color-text-muted); display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin-top: var(--space-1); }
.job__side { grid-row: 1 / span 3; grid-column: 2; display: flex; flex-direction: column; align-items: flex-end; gap: var(--space-2); }
.job__d { font-size: var(--text-xs); color: var(--color-text-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.job__k { font-size: 0.75rem; font-weight: 600; color: var(--color-primary); background: var(--color-primary-soft); border-radius: 999px; padding: 2px var(--space-2); white-space: nowrap; }
.job__new { font-size: 0.75rem; font-weight: 700; background: var(--color-gold); color: var(--color-ink); border-radius: 999px; padding: 2px var(--space-2); }
.jobs__note { margin-top: var(--space-6); font-size: var(--text-sm); color: var(--color-text-muted); max-width: 80ch; }
@media (max-width: 1080px) { .filters--jobs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) { .jobs { grid-template-columns: 1fr; } }
@media (max-width: 600px) {
  .filters--jobs { grid-template-columns: 1fr 1fr; }
  .job { grid-template-columns: 1fr; }
  .job__side { grid-row: auto; grid-column: 1; flex-direction: row; align-items: center; justify-content: flex-start; order: -1; }
}
.olas { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); background: var(--color-ink); color: oklch(0.85 0.015 255); border-radius: var(--radius-md); padding: var(--space-5) var(--space-6); margin-bottom: var(--space-4); }
.olas__h { color: #fff; font-weight: 600; font-size: var(--text-base); }
.olas__p { font-size: var(--text-sm); margin-top: var(--space-1); max-width: 70ch; }
.olas .btn { background: var(--color-gold); color: var(--color-ink); }
.olas .btn:hover { background: #fff; color: var(--color-ink); }
@media (max-width: 600px) { .olas { flex-direction: column; align-items: flex-start; } }

/* Civil service */
.cs-find { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--space-6); align-items: start; background: var(--color-ink); color: oklch(0.85 0.015 255); border-radius: var(--radius-lg); padding: clamp(var(--space-5), 3vw, var(--space-8)); margin-bottom: var(--space-8); }
.cs-find__label { display: block; font-family: var(--font-display); font-size: var(--text-lg); color: #fff; font-weight: 600; margin-bottom: var(--space-4); }
.quick--flat { margin-top: 0; box-shadow: none; }
.quick--flat button { background: var(--color-gold); color: var(--color-ink); }
.quick--flat button:hover { background: #fff; color: var(--color-ink); }
.cs-find__hint { font-size: var(--text-xs); margin-top: var(--space-3); line-height: 1.6; }
.cs-find a:not(.btn) { color: var(--color-gold); }
.cs-find__out .agency { color: var(--color-text); }
.cs-find__out .agency a:not(.btn) { color: var(--color-primary); }
.cs-find__empty { font-size: var(--text-sm); border: 1px dashed oklch(1 0 0 / 0.25); border-radius: var(--radius-md); padding: var(--space-6); }
.cs-find__res { font-size: var(--text-sm); margin-bottom: var(--space-3); }
.cs-find__res b { color: #fff; }
.classes { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: var(--space-8); margin-bottom: var(--space-8); }
.classes__intro p { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-2); }
.classes__list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.classes__list > div { border-top: 2px solid var(--color-primary); padding-top: var(--space-3); }
.classes__list dt { font-weight: 600; color: var(--color-ink); font-size: var(--text-sm); }
.classes__list dd { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-1); }
.filters--cs { grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)) auto; }
.agencies { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--space-4); }
.agency { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-5) var(--space-6); display: flex; flex-direction: column; gap: var(--space-2); }
.agency--hl { border-color: var(--color-gold); }
.agency__k { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; color: var(--color-text-muted); }
.agency h3 { font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600; }
.agency__n { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: calc(-1 * var(--space-1)); }
.agency__cov { font-size: var(--text-sm); }
.agency__cov b { font-weight: 600; color: var(--color-ink); }
.agency__facts { display: grid; gap: var(--space-2); align-content: start; border-top: 1px solid var(--color-divider); padding-top: var(--space-3); flex: 1; }
.agency__facts > div { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: var(--space-3); font-size: var(--text-sm); }
.agency__facts dt { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; color: var(--color-text-muted); padding-top: 2px; }
.agency__facts dd { color: var(--color-text); }
.agency__none { font-size: var(--text-sm); color: var(--color-text-muted); border-top: 1px solid var(--color-divider); padding-top: var(--space-3); flex: 1; }
.cs-src { font-size: var(--text-xs); font-weight: 500; margin-left: var(--space-1); white-space: nowrap; }
.agency__links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-top: var(--space-2); }
.link--tel { color: var(--color-text); text-decoration: none; font-variant-numeric: tabular-nums; }
.agency__dir { font-size: var(--text-xs); color: var(--color-text-muted); }
@media (max-width: 1080px) {
  .classes { grid-template-columns: 1fr; gap: var(--space-4); }
  .classes__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cs-find { grid-template-columns: 1fr; }
  .filters--cs { grid-template-columns: repeat(2, minmax(0, 1fr)) auto; }
  .filters--cs .btn-ghost { grid-column: auto; }
}
@media (max-width: 600px) {
  .classes__list { grid-template-columns: 1fr; }
  .agencies { grid-template-columns: 1fr; }
  .filters--cs { grid-template-columns: 1fr 1fr; }
  .filters--cs .btn-ghost { grid-column: 2; }
  .agency__facts > div { grid-template-columns: 1fr; gap: 0; }
}

/* Salaries */
.seg { display: inline-flex; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-surface); padding: 3px; gap: 3px; flex-shrink: 0; }
.seg__b { border: 0; background: transparent; padding: var(--space-2) var(--space-4); min-height: 40px; border-radius: var(--radius-sm); font-size: var(--text-sm); font-weight: 600; color: var(--color-text-muted); cursor: pointer; }
.seg__b.is-on { background: var(--color-primary); color: #fff; }
.seg__b:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.filters--sal { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.filters--sal .field[hidden] { display: none; }
.sal__counties { font-size: var(--text-sm); color: var(--color-text-muted); margin: 0 0 var(--space-3); max-width: 80ch; }
.sal { background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-2) var(--space-4) var(--space-4); }
.sal__g { font-size: var(--text-sm); text-transform: uppercase; letter-spacing: .06em; color: var(--color-text-muted); margin: var(--space-4) 0 var(--space-1); }
.sal__row { display: grid; grid-template-columns: minmax(0, 2.2fr) 7.5rem minmax(0, 1.6fr); grid-template-areas: "name avg bar" "jobs meta meta"; column-gap: var(--space-4); row-gap: 2px; align-items: center; padding: var(--space-3) 0; border-top: 1px solid var(--color-divider, var(--color-border)); }
.sal__g + .sal__row, .sal > .sal__row:first-child { border-top: 0; }
.sal__name { grid-area: name; min-width: 0; }
.sal__name b { font-weight: 600; }
.sal__sub { display: block; font-size: var(--text-xs); color: var(--color-text-muted); margin-top: 2px; }
.sal__tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 999px; background: var(--color-bg); border: 1px solid var(--color-border); color: var(--color-text-muted); vertical-align: 1px; white-space: nowrap; }
.sal__avg { grid-area: avg; font-weight: 700; font-variant-numeric: tabular-nums; font-size: var(--text-base); text-align: right; }
.sal__bar { grid-area: bar; height: 10px; background: var(--color-bg); border-radius: 999px; overflow: hidden; }
.sal__bar span { display: block; height: 100%; background: var(--color-primary); border-radius: 999px; }
.sal__meta { grid-area: meta; font-size: var(--text-xs); color: var(--color-text-muted); font-variant-numeric: tabular-nums; }
.sal__d { font-weight: 600; margin-left: var(--space-2); white-space: nowrap; }
.sal__d.is-up { color: var(--color-success, #2f7a3e); }
.sal__d.is-down { color: var(--color-text-muted); }
@media (max-width: 720px) {
  .filters--sal { grid-template-columns: 1fr; }
  .sal { padding: var(--space-1) var(--space-3) var(--space-3); }
  .sal__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name avg" "bar bar" "meta meta" "jobs jobs"; row-gap: var(--space-1); }
  .sechead--row .seg { margin-top: var(--space-3); }
}
.job__pay { grid-column: 1; font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-1); padding-top: var(--space-2); border-top: 1px dashed var(--color-border); }
.job__pay b { color: var(--color-ink); font-weight: 600; }
.job__pay a, .sal__open { color: var(--color-primary); font-weight: 600; white-space: nowrap; }
.sal__jobs { grid-area: jobs; font-size: var(--text-xs); align-self: start; }
.sal__open { text-decoration: underline; text-underline-offset: 2px; }
.sal__none { color: var(--color-text-muted); }
.jobs__sal { font-size: var(--text-sm); background: var(--color-primary-soft); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); margin: 0 0 var(--space-3); }
.jobs__sal[hidden] { display: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--color-primary); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; }

/* Hero job search */
.hsearch { margin-top: var(--space-8); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.2fr) minmax(0, 1fr) auto; gap: var(--space-2); align-items: end; max-width: 760px; background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius-md); padding: var(--space-3); box-shadow: var(--shadow-sm); }
.hsearch:focus-within { border-color: var(--color-primary); }
.hsearch__f { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.hsearch__f label { font-size: var(--text-xs); font-weight: 600; color: var(--color-text-muted); padding-left: var(--space-1); }
.hsearch__f input, .hsearch__f select { border: 1px solid var(--color-border); background: var(--color-bg); border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3); min-height: 44px; font-size: var(--text-sm); width: 100%; }
.hsearch__f input:focus, .hsearch__f select:focus { outline: 2px solid var(--color-primary); outline-offset: 0; border-color: transparent; }
.hsearch button { background: var(--color-primary); color: #fff; font-weight: 600; font-size: var(--text-sm); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-5); min-height: 44px; white-space: nowrap; }
.hsearch button:hover { background: var(--color-primary-hover); }
.hsearch__hint { font-size: var(--text-xs); color: var(--color-text-muted); margin-top: var(--space-2); max-width: 760px; }
.filters--jobs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.filters--jobs .field--pos { grid-column: span 1; }
#jReset { justify-self: start; }
@media (max-width: 900px) {
  .hsearch { grid-template-columns: 1fr 1fr; }
  .hsearch button { grid-column: 1 / -1; }
  .filters--jobs { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .hsearch { grid-template-columns: 1fr; }
  .filters--jobs { grid-template-columns: 1fr; }
}
