/* The job board, its hubs, employer listings and the job sheet: the staffroom
   board. A band of board green carries the title, the three chalk tracks and
   the search; below it, jobs are written up on white index cards with the pay
   in a fixed slot and the teacher's stamps along the foot. Square corners,
   crisp chalk (no grain), colour only ever meaning a track or a stamp.
   Motion lives in css/motion.css. */

:root {
  /* The board surface without chalk dust: the smudges and the slate gradient. */
  --board-plain:
    radial-gradient(60% 45% at 18% 30%, rgba(244, 242, 234, .045), transparent 70%),
    radial-gradient(45% 35% at 78% 72%, rgba(244, 242, 234, .035), transparent 70%),
    linear-gradient(180deg, #1F352D 0%, #1C312A 55%, #192C26 100%);
  --card-lift: 0 2px 2px rgba(20, 32, 28, .05), 0 18px 34px -18px rgba(20, 32, 28, .45);
  --pay-slot: 12.5rem;
  /* Corners come from the site tokens only (--r-s for controls and marks, --r-m
     for cards and panels), so the whole board changes in one place. */
}

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.job-card[data-slug] [hidden], .board-filters [hidden], #filterResults[hidden], #board[hidden], #jobGrid[hidden] { display: none !important; }
.board-page main, .sheet-page main, .hub-page main { background: var(--ground); }

/* ---------- Chalk icons ---------- */
.chalk-arrow { width: 1.15em; height: auto; flex: none; }
.chalk-arrow--out { width: .95em; }
.chalk-cross { width: 14px; height: 14px; }
.chalk-sliders { width: 18px; height: 14px; flex: none; }

/* ---------- The board band ---------- */
.board-head {
  position: relative; isolation: isolate; overflow: clip;
  padding-top: clamp(26px, 3.4vw, 46px);
  color: var(--chalk);
  background-color: var(--board); background-image: var(--board-plain);
  border-top: 1px solid rgba(0, 0, 0, .4);
  box-shadow: inset 0 14px 18px -14px rgba(0, 0, 0, .55);
}
.board-head::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../../assets/chalk/ghosts.svg") 70% 30% / max(1500px, 110%) auto no-repeat;
}
.board-head__inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-bottom: clamp(24px, 2.8vw, 34px); }
.board-head__intro { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px 48px; align-items: end; }
.board-head .board-head__title {
  margin: 0;
  font-family: var(--font-display) !important; font-weight: 720 !important; font-variation-settings: "wdth" 94;
  font-size: clamp(2.35rem, 4.6vw, 4rem) !important; line-height: .98 !important; letter-spacing: -.028em !important;
  color: var(--chalk); text-wrap: balance;
}
.board-head__page { color: var(--chalk-2); }
/* The smallest phones keep the first job on the first screen: the count sentence stays, the general one goes. */
@media (max-width: 359px) { .board-head__lede-first { display: none; } }
.board-head .board-head__lede { margin: 0; max-width: 46ch; font-size: clamp(1.02rem, 1.25vw, 1.16rem); line-height: 1.5; color: var(--chalk-2); }
.board-head a:not(.btn) { color: var(--chalk); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(243, 241, 232, .5); text-underline-offset: .22em; text-decoration-thickness: 1px; }
.board-head a:not(.btn):hover { text-decoration-color: var(--chalk); }
.board-head :focus-visible { outline: 3px solid var(--focus-board); outline-offset: 3px; }
.board-head ::selection { background: rgba(255, 211, 92, .38); color: var(--chalk); }
.board-note { margin: 0; color: var(--chalk-2); font-size: .98rem; }
.board-note strong { color: var(--chalk); font-weight: 700; }
.board-note a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
@media (min-width: 1000px) {
  .board-head__intro { grid-template-columns: minmax(0, 1fr) auto; }
  .board-head__intro > :not(.board-note) { grid-column: 1; }
  .board-note {
    grid-column: 2; grid-row: 1 / span 2; justify-self: end; align-self: end; margin-bottom: 4px;
    font-family: var(--font-display); font-weight: 600; font-variation-settings: "wdth" 94; font-size: 1rem;
    transform: rotate(1.1deg);
  }
  .board-note strong { display: block; margin-bottom: 4px; font-size: 1.14rem; font-weight: 650; }
  .board-note a { font-family: var(--font-ui); }
}

/* Track tabs: the home page's chalk tabs, with All jobs first. */
.board-tracks { display: flex; flex-wrap: wrap; gap: 0 6px; margin: 0; padding: 0; border: 0; min-inline-size: 0; border-bottom: 1px solid var(--board-line); }
.board-tracks .track-tab {
  position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px;
  min-height: 48px; padding: 13px 22px 14px 0; cursor: pointer;
  font-weight: 700; font-size: 1.02rem; line-height: 1.2; color: var(--chalk-2);
}
.board-tracks .track-tab input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.board-tracks .track-tab__name::before {
  content: ""; display: inline-block; width: 18px; height: 7px; margin: 0 9px 2px 0;
  vertical-align: middle; border-radius: 1px; background: var(--track, var(--chalk));
}
.board-tracks .track-tab[data-track="all"] .track-tab__name::before { width: 7px; background: var(--chalk-2); }
.board-tracks .track-tab__count { font-family: var(--font-mono); font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; color: var(--chalk-3); }
.board-tracks .track-tab::after {
  content: ""; position: absolute; left: 0; right: 14px; bottom: -1px; height: 4px;
  background: var(--track, var(--chalk)); transform: scaleX(0); transform-origin: left center;
}
.board-tracks .track-tab[data-track="english-online"], [data-track="english-online"] { --track: var(--track-english); }
.board-tracks .track-tab[data-track="maths-online"], [data-track="maths-online"] { --track: var(--track-maths); }
.board-tracks .track-tab[data-track="english-in-person"], [data-track="english-in-person"] { --track: var(--track-inperson); }
.board-tracks .track-tab:hover, .board-tracks .track-tab:has(input:checked) { color: var(--chalk); }
.board-tracks .track-tab:has(input:checked)::after { transform: scaleX(1); }
.board-tracks .track-tab:has(input:checked) .track-tab__count { color: var(--chalk-2); }
.board-tracks .track-tab:has(input:focus-visible) { outline: 3px solid var(--focus-board); outline-offset: 2px; }

/* Search, written on the board. */
.board-search__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; max-width: 920px; }
.board-query-wrap { position: relative; display: block; min-width: 0; }
.board-head input[type="search"] {
  width: 100%; height: 58px; padding: 0 52px 0 18px;
  font: 500 1.08rem/1 var(--font-ui); color: var(--chalk); caret-color: var(--chalk-yellow);
  background: rgba(20, 36, 32, .55);
  border: 2px solid rgba(243, 241, 232, .7); border-radius: var(--r-s);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, .25);
}
.board-head input[type="search"]::placeholder { color: #B2C0B9; opacity: 1; }
.board-head input[type="search"]:hover { border-color: rgba(243, 241, 232, .9); }
.board-head input[type="search"]:focus-visible { outline: 3px solid var(--focus-board); outline-offset: 2px; border-color: var(--chalk); box-shadow: inset 0 2px 6px rgba(0, 0, 0, .25); }
.board-head input[type="search"]::-webkit-search-cancel-button { display: none; }
.search-clear {
  position: absolute; right: 7px; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 44px; height: 44px;
  color: var(--chalk-2); background: transparent; border: 0; border-radius: var(--r-s); cursor: pointer;
}
.search-clear:hover { color: var(--chalk); background: rgba(243, 241, 232, .08); }
.btn-chalk {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 58px; padding: 0 26px;
  font: 700 1.06rem/1 var(--font-ui); letter-spacing: 0; text-transform: none;
  color: var(--board-deep); background: var(--chalk);
  border: 0; border-radius: var(--r-s); cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, .28), 0 10px 22px -12px rgba(0, 0, 0, .7);
}
.btn-chalk:hover { background: #FFFFFF; color: var(--board-deep); }
.btn-chalk:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(0, 0, 0, .28); }
.btn-chalk:focus-visible { outline: 3px solid var(--focus-board); outline-offset: 3px; }

/* The chalk tray: the rail along the foot of the board, holding the three chalks.
   The chosen track's chalk is lifted off the tray. */
.chalk-tray {
  position: relative; height: 16px;
  background: linear-gradient(180deg, var(--tray-lip) 0 2px, var(--tray) 2px 10px, var(--tray-shade) 10px 16px);
  box-shadow: 0 8px 16px -8px rgba(0, 0, 0, .6);
}
.chalk-tray__inner { position: relative; height: 100%; }
.chalk-tray__stubs { position: absolute; right: var(--page-gutter, 24px); bottom: 12px; display: flex; align-items: flex-end; gap: 14px; pointer-events: none; }
.chalk-tray__stubs img { display: block; height: 11px; width: auto; filter: drop-shadow(0 2px 1px rgba(0, 0, 0, .35)); }
.chalk-tray__stubs .stub-stick { height: 10px; }
.board-page:has(.board-tracks input[value="english-online"]:checked) .stub-yellow,
.board-page:has(.board-tracks input[value="maths-online"]:checked) .stub-mint,
.board-page:has(.board-tracks input[value="english-in-person"]:checked) .stub-coral,
.board-page:has(.board-tracks input[value=""]:checked) .stub-stick { transform: translateY(-4px); }

/* ---------- Toolbar: results, published pay, filters, sort ---------- */
.board-toolbar {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
  padding-block: 20px 18px;
}
.board-live { margin: 0; font-size: 1rem; line-height: 1.45; font-weight: 600; color: var(--ink-2); }
.board-live b { color: var(--ink); font-weight: 700; }
.board-toolbar__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }

.pay-toggle { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 4px; cursor: pointer; font-weight: 700; font-size: .98rem; color: var(--ink); user-select: none; }
.pay-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.pay-toggle__switch {
  position: relative; flex: none; width: 42px; height: 24px;
  background: var(--sunken); border: 2px solid var(--ink-2); border-radius: var(--r-s);
}
.pay-toggle__switch::after {
  content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  background: var(--ink-2); border-radius: 1px;
}
.pay-toggle input:checked + .pay-toggle__switch { background: var(--board); border-color: var(--board); }
.pay-toggle input:checked + .pay-toggle__switch::after { transform: translateX(18px); background: var(--chalk); }
.pay-toggle input:focus-visible + .pay-toggle__switch { outline: 3px solid var(--stamp-blue); outline-offset: 3px; }
.pay-toggle:hover .pay-toggle__switch { border-color: var(--ink); }

details.board-filter-details { margin: 0; padding: 0 !important; background: transparent !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.filter-toggle {
  display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 14px;
  list-style: none; cursor: pointer; white-space: nowrap;
  font-weight: 700; font-size: .98rem; color: var(--ink);
  background: var(--surface); border: 1px solid var(--field-border); border-radius: var(--r-s);
}
.filter-toggle::-webkit-details-marker { display: none; }
.filter-toggle::before, .filter-toggle::after { content: none !important; }
.filter-toggle:hover { border-color: var(--ink); }
.board-filter-details[open] > .filter-toggle { background: var(--board); color: var(--chalk); border-color: var(--board); }
.filter-toggle:focus-visible { outline: 3px solid var(--stamp-blue); outline-offset: 3px; }
.filter-count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 5px;
  font: 700 .8125rem/1 var(--font-mono); font-variant-numeric: tabular-nums;
  color: var(--chalk); background: var(--board); border-radius: var(--r-s);
}
.board-filter-details[open] .filter-count { color: var(--board); background: var(--chalk); }

.board-sort { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: .98rem; color: var(--ink); }
.board-filters select {
  min-height: 44px; max-width: 100%; padding: 0 36px 0 12px;
  font: 600 .98rem/1.2 var(--font-ui); color: var(--ink);
  background-color: var(--surface); border: 1px solid var(--field-border); border-radius: var(--r-s);
}
.board-sort select { width: 14rem; }
.board-filters select:hover { border-color: var(--ink); }
.board-filters select:focus-visible { outline: 3px solid var(--stamp-blue); outline-offset: 2px; border-color: var(--stamp-blue); }

/* The filters panel: a sheet pinned under the toolbar on wide screens,
   a bottom sheet on phones. */
.board-secondary-filters {
  position: absolute; z-index: 40; left: var(--page-gutter, 24px); right: var(--page-gutter, 24px); top: calc(100% - 6px);
  background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--r-m);
  box-shadow: 0 2px 4px rgba(20, 32, 28, .06), 0 24px 48px -20px rgba(20, 32, 28, .45);
}
.sheet-head { display: none; }
.sheet-body { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px 18px; padding: 20px 22px 6px; }
.sheet-body label { display: grid; gap: 6px; font-weight: 700; font-size: .92rem; color: var(--ink-2); }
.sheet-body select { width: 100%; }
.sheet-foot { display: flex; justify-content: flex-end; align-items: center; gap: 12px; padding: 14px 22px 18px; }
.sheet-close { display: grid; place-items: center; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); border-radius: var(--r-s); cursor: pointer; }
.sheet-close:hover { background: var(--sunken); }

/* Every control on the board uses the site's radius tokens; this outranks the
   legacy !important radii in styles.css, so the corner decision is one place. */
:is(.board-page, .sheet-page, .hub-page) :is(.btn, .btn-chalk, input[type="search"], select, .filter-toggle, .pager a, .pager-here, .hub-browse a, .sheet-close, .search-clear) { border-radius: var(--r-s) !important; }

/* Buttons on the board's paper: UI face, 44px. */
:is(.board-page, .sheet-page, .hub-page, .employer-page) :is(.board-toolbar, .job-card, .sheet-rail, .sheet-bar, .sheet-foot, .board-results, .sheet-section) .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 44px; padding: 0 16px;
  font: 700 .98rem/1.1 var(--font-ui); letter-spacing: 0; text-transform: none; white-space: nowrap;
  border-radius: var(--r-s);
}
.job-card .btn.primary, .sheet-foot .btn.primary, .sheet-rail .btn.primary, .sheet-bar .btn.primary { background: var(--board); border: 1px solid var(--board); color: var(--chalk); box-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.job-card .btn.primary:hover, .sheet-foot .btn.primary:hover, .sheet-rail .btn.primary:hover, .sheet-bar .btn.primary:hover { background: var(--board-3); border-color: var(--board-3); color: var(--chalk); }
.job-card .btn.ghost, .sheet-foot .btn.ghost, .sheet-rail .btn.ghost, .sheet-bar .btn.ghost { background: var(--surface); border: 1px solid var(--field-border); color: var(--ink); }
.job-card .btn.ghost:hover, .sheet-foot .btn.ghost:hover, .sheet-rail .btn.ghost:hover, .sheet-bar .btn.ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--surface); }
:is(.job-card, .sheet-rail, .sheet-bar, .sheet-foot) .btn:focus-visible { outline: 3px solid var(--stamp-blue); outline-offset: 3px; }

/* Save keeps one width; its saved state (a pencil stamp) lives in styles.css. */
.save-job.btn { width: 7.5rem; min-width: 7.5rem; max-width: 7.5rem; }

/* ---------- Results ---------- */
.board-results { padding-block: 4px clamp(40px, 5vw, 64px); }
.board-results-wrap:has(#filterResults[hidden]) { display: none; }
.board-results-wrap { padding-bottom: clamp(40px, 5vw, 64px); }
.job-grid, #filterResults .filter-hit-cards { display: grid !important; grid-template-columns: minmax(0, 1fr) !important; gap: 18px !important; margin: 0; padding: 0; list-style: none; }
@media (min-width: 1100px) {
  .job-grid, #filterResults .filter-hit-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
#filterResults .filter-hit-cards > li { display: grid; min-width: 0; margin: 0; padding: 0; border: 0; background: none; }
#filterResults[aria-busy="true"] { cursor: progress; opacity: .6; }
.board-empty { margin: 8px 0 0; padding: 28px 24px; background: var(--surface); border: 1px dashed var(--rule-strong); border-radius: var(--r-m); color: var(--ink-2); font-size: 1.05rem; }
.board-empty strong { color: var(--ink); }
.board-hidden-note { margin: 18px 0 0; font-size: .98rem; color: var(--ink-2); }
.board-hidden-note button, .board-empty button {
  font: inherit; font-weight: 700; color: var(--stamp-blue); background: none; border: 0; padding: 0; min-height: 32px;
  text-decoration: underline; text-underline-offset: .2em; cursor: pointer;
}
.board-closed-divider { grid-column: 1 / -1; margin: 18px 0 0; padding-top: 18px; border-top: 1px dashed var(--rule-strong); font-weight: 700; color: var(--ink-2); }

/* ---------- The index card ---------- */
.job-card[data-slug] {
  position: relative; min-width: 0;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(8.5rem, var(--pay-slot));
  grid-template-areas:
    "brand pay"
    "title pay"
    "meta  pay"
    "where where"
    "paynote paynote"
    "posted posted"
    "foot  foot";
  align-content: start; gap: 0 22px !important;
  min-height: 200px; padding: 16px 22px 14px !important;
  font-family: var(--font-ui);
  background: var(--surface) !important;
  border: 1px solid var(--rule) !important; border-radius: var(--r-m) !important;
  box-shadow: var(--card-pin) !important;
}
.job-card[data-slug]:hover { border-color: var(--rule-strong) !important; box-shadow: var(--card-lift) !important; }
.job-card[data-slug]:focus-within { outline: none; }
.job-card__head { display: contents; }
.job-card[data-slug] .job-brand { grid-area: brand; display: flex; align-items: center; gap: 12px; min-height: 40px; min-width: 0; margin: 0 0 6px; }
.employer-mark { flex: none; display: flex; align-items: center; }
.employer-mark--logo { width: auto; max-width: 120px; height: 44px; }
.employer-mark--logo img { display: block; width: auto; height: auto; max-width: 120px; max-height: 44px; object-fit: contain; object-position: left center; }
.employer-mark--letter {
  width: 44px; height: 44px; justify-content: center;
  font: 700 1.05rem/1 var(--font-ui); letter-spacing: .02em; color: var(--chalk);
  background: var(--board); border-radius: var(--r-s);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18);
}
.job-card[data-slug] .job-employer { margin: 0; min-width: 0; font-size: .95rem; line-height: 1.3; font-weight: 700; color: var(--ink-2); overflow-wrap: anywhere; }
.job-card[data-slug] .job-co {
  grid-area: title; margin: 0 0 6px;
  font-family: var(--font-ui) !important; font-weight: 700 !important; font-size: 1.22rem !important; line-height: 1.28 !important; letter-spacing: -.005em !important;
  color: var(--ink); overflow-wrap: anywhere; text-wrap: pretty;
}
.job-card__link { color: var(--ink) !important; text-decoration: none !important; border: 0 !important; }
.job-card__link::after { content: ""; position: absolute; inset: 0; z-index: 0; border-radius: var(--r-m); }
.job-card[data-slug]:hover .job-card__link { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: .18em; text-decoration-color: var(--track, var(--ink)) !important; }
.job-card__link:focus-visible { outline: none; }
.job-card__link:focus-visible::after { outline: 3px solid var(--stamp-blue); outline-offset: 2px; }
.job-card__meta { grid-area: meta; margin: 0; display: flex; flex-wrap: wrap; column-gap: 1.1em; overflow: hidden; font-size: .95rem; line-height: 1.5; color: var(--ink-2); }
/* The separating dot sits in the gap before each item; at the start of a
   wrapped line it falls outside the box and is clipped, never leading a line. */
.meta-item { position: relative; white-space: nowrap; }
.meta-item::before { content: "·"; position: absolute; left: -.72em; color: var(--ink-3); }
.job-card__context { grid-area: posted; position: relative; z-index: 1; margin: 8px 0 0; font-size: .92rem; color: var(--ink-2); }
.job-card__context a { font-weight: 700; }
.track-label { font-weight: 700; color: var(--ink); white-space: nowrap; }
.track-label[data-track]::before {
  content: ""; display: inline-block; width: 14px; height: 6px; margin: 0 7px 2px 0;
  vertical-align: middle; border-radius: 1px; background: var(--track);
  box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .18);
}
.job-card__where {
  grid-area: where; margin: 6px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0;
  font-size: .95rem; line-height: 1.45; color: var(--ink);
}
.job-card__where .place { display: inline-flex; align-items: center; font-weight: 700; }
.job-card__where--online { flex-direction: column; align-items: flex-start; gap: 3px; }
.job-card__where .fact { display: block; }
.job-card__where .sep { color: var(--ink-3); padding: 0 .1em; }
.fact__k { color: var(--ink-2); font-weight: 600; }
.flag { display: inline-block; width: 24px; height: 16px; margin-right: 9px; border-radius: 1px; box-shadow: 0 0 0 1px rgba(20, 32, 28, .22), 0 1px 2px rgba(20, 32, 28, .2); object-fit: cover; vertical-align: -3px; }
.job-card[data-slug] .job-posted-by { grid-area: posted; margin: 8px 0 0; font-size: .92rem; color: var(--ink-2); }

/* The pay slot: always top right, always the same shape. */
.pay-slot { grid-area: pay; min-width: 0; text-align: right; padding-top: 4px; }
.pay-slot p { margin: 0; }
.pay-slot__figure { font: 700 22px/1.15 var(--font-mono); font-variant-numeric: tabular-nums lining-nums; letter-spacing: -.01em; color: var(--ink); overflow-wrap: anywhere; }
.pay-num, .pay-lead-num { white-space: nowrap; }
.pay-slot--long .pay-slot__figure { font-size: 19px; }
.pay-cur, .pay-q, .pay-join { font-family: var(--font-ui); font-weight: 700; font-size: .78rem; letter-spacing: .03em; color: var(--ink-2); }
.pay-rest { white-space: nowrap; }
.pay-slot__unit { margin-top: 5px !important; font-size: .9rem; line-height: 1.3; font-weight: 600; color: var(--ink-2); }
.pay-slot__terms { font-weight: 500; }
.pay-slot__usd { margin-top: 7px !important; font-size: .8125rem; line-height: 1.35; color: var(--ink-3); }
.pay-slot__note { margin-top: 6px !important; font-size: .8125rem; line-height: 1.35; color: var(--ink-2); text-wrap: pretty; }
.job-card__paynote { grid-area: paynote; margin: 8px 0 0; font-size: .92rem; line-height: 1.45; color: var(--ink-2); }
.pay-slot--unknown .pay-slot__none { font: 500 .95rem/1.3 var(--font-ui); color: var(--ink-2); max-width: 11em; padding-top: 2px; }
.pay-words, .pay-slot__words { font: 700 1rem/1.3 var(--font-ui); letter-spacing: 0; color: var(--ink); }

/* The foot: stamps on the left, Save and Apply on the right. */
.job-card__foot {
  grid-area: foot; position: relative; z-index: 1;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px;
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--rule);
}
.stamp-row { display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 10px 10px; margin: 0; }
.eligibility-label { font-size: .9rem; font-weight: 700; color: var(--ink-2); padding-left: 2px; }
.job-card .job-row-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.job-card .job-row-actions > * { position: relative; z-index: 1; }
.job-card[data-hiring="no"] .pay-slot__figure { color: var(--ink-2); }
.job-card[data-hiring="no"] { background: #FAFBFA !important; }

/* ---------- Pager ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 34px; }
.pager a, .pager-here {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-width: 44px; min-height: 44px; padding: 0 12px;
  font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums;
  border-radius: var(--r-s); text-decoration: none;
}
.pager a { color: var(--ink); background: var(--surface); border: 1px solid var(--rule-strong); }
.pager a:hover { border-color: var(--ink); color: var(--ink); }
.pager-here { color: var(--chalk); background: var(--board); border: 1px solid var(--board); }
.pager-gap { color: var(--ink-3); padding: 0 2px; }
.pager-prev .chalk-arrow, .pager-next .chalk-arrow { width: 1.1em; }

/* ---------- Browse, counts and about ---------- */
.board-browse { border-top: 1px solid var(--rule); padding-block: 36px !important; }
.hub-browse { margin: 0; }
.hub-browse h2 { margin: 0 0 12px; font-size: 1.5rem; }
.hub-browse ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.hub-browse-primary { margin-bottom: 8px; }
.hub-browse a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-weight: 700; font-size: .98rem; color: var(--ink); text-decoration: none;
  background: var(--surface); border: 1px solid var(--rule-strong); border-radius: var(--r-s);
}
.hub-browse a:hover { border-color: var(--ink); color: var(--ink); }
details.hub-browse-more { margin-top: 6px; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; }
.hub-browse-more > summary { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; color: var(--stamp-blue); cursor: pointer; }
.hub-browse-more > ul { padding: 8px 0 4px; }
.board-counts { margin: 18px 0 0; font-size: 1rem; color: var(--ink-2); }
.board-counts strong { font-family: var(--font-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.job-back { margin: 12px 0 0; }
.job-back a, a.back-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 700; }
.board-about { padding-block: 8px 56px !important; }
.board-about h2 { font-size: 1.5rem; margin: 0 0 10px; }
.board-about p { max-width: 70ch; color: var(--ink-2); margin: 0 0 10px; }
.board-filter-help { margin: 16px 0 0; color: var(--ink-2); }
.hub-links { display: grid; gap: 18px; padding-block: 28px 22px; }
.hub-links .hub-browse h2 { font-size: 1.2rem; margin-bottom: 10px; }
.hub-head .board-head__title { font-size: clamp(2.2rem, 4vw, 3.5rem) !important; max-width: 20ch; }
.board-head .back-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none !important; color: var(--chalk-2) !important; }
.board-head .back-link span { text-decoration: underline; text-decoration-color: rgba(243, 241, 232, .4); text-underline-offset: .22em; }
.board-head .back-link:hover { color: var(--chalk) !important; }
.hub-head .sheet-back { margin: 0 0 -6px; }
.board-head .board-head__counts { margin: 0; font-size: .95rem; color: var(--chalk-3); }

/* ---------- Filter fallback rows (a page that could not be read) ---------- */
.filter-hits:not(.filter-hit-cards) { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--rule); }
.filter-hits:not(.filter-hit-cards) > li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 16px 0; border-bottom: 1px solid var(--rule); }
.filter-hits:not(.filter-hit-cards) > li > a { font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.hit-meta { color: var(--ink-2); font-size: .95rem; }
.hit-hiring { font-weight: 700; font-size: .92rem; color: var(--stamp-green); }
.hit-hiring.unconfirmed, .hit-hiring.closed { color: var(--ink-2); }

/* ---------- Phones and tablets ---------- */
@media (max-width: 1099px) { :root { --pay-slot: 11.5rem; } }
@media (max-width: 719px) {
  :root { --pay-slot: 9.75rem; }
  .board-head { padding-top: 20px; }
  .board-head__inner { gap: 14px; padding-bottom: 20px; }
  .board-head__intro { gap: 8px; }
  .board-head .board-head__title { font-size: clamp(2.3rem, 11vw, 2.8rem) !important; }
  .board-head .board-head__lede { font-size: .98rem; }
  .board-note { font-size: .95rem; }
  .board-tracks { display: grid; grid-template-columns: auto auto; justify-content: space-between; gap: 0 12px; }
  .board-tracks .track-tab { flex-wrap: nowrap; gap: 8px; padding: 9px 0 11px; font-size: .92rem; min-height: 44px; white-space: nowrap; }
  .board-tracks .track-tab__name::before { width: 14px; margin-right: 7px; }
  .board-tracks .track-tab::after { right: 0; }
  .board-search__row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .board-head input[type="search"], .btn-chalk { height: 52px; }
  .board-head input[type="search"] { padding: 0 14px; font-size: 1rem; }
  .board-head input[type="search"]:not(:placeholder-shown) { padding-right: 48px; }
  .btn-chalk { padding: 0 14px; gap: 8px; }
  .chalk-tray__stubs { gap: 10px; }
  .chalk-tray__stubs img { height: 9px; }

  .board-toolbar { padding-block: 16px 14px; gap: 10px; }
  .board-live { width: 100%; font-size: .98rem; }
  .board-toolbar__controls { width: 100%; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
  .pay-toggle { grid-column: 1 / -1; grid-row: 1; justify-self: start; }
  .board-filter-details { grid-column: 1; grid-row: 2; }
  .board-sort { grid-column: 2; grid-row: 2; min-width: 0; }
  .board-sort__label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .board-sort select { width: 100%; }

  /* Filters become a bottom sheet with a live count. */
  .board-filter-details[open]::before {
    content: ""; position: fixed; inset: 0; z-index: 300; background: rgba(20, 36, 32, .55);
  }
  .board-secondary-filters {
    position: fixed; z-index: 301; left: 0; right: 0; top: auto; bottom: 0;
    max-height: min(86vh, 680px); overflow: auto; overscroll-behavior: contain;
    border: 0; border-radius: var(--r-m) var(--r-m) 0 0;
    box-shadow: 0 -18px 40px -12px rgba(0, 0, 0, .45);
  }
  .sheet-head {
    position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
    padding: 10px 10px 8px 18px; background: var(--surface); border-bottom: 1px solid var(--rule);
  }
  .sheet-head::before { content: ""; position: absolute; left: 50%; top: 5px; width: 40px; height: 4px; margin-left: -20px; border-radius: var(--r-s); background: var(--rule-strong); }
  .sheet-title { margin: 0; font: 700 1.15rem/1.2 var(--font-ui); color: var(--ink); padding-top: 4px; }
  .sheet-body { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 16px 18px 8px; }
  .sheet-body select { min-height: 48px; font-size: 1rem; }
  .sheet-foot {
    position: sticky; bottom: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px;
    padding: 12px 18px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--rule);
  }
  .sheet-foot .btn { min-height: 50px; }

  .job-card[data-slug] {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand pay"
      "title title"
      "meta  meta"
      "where where"
      "paynote paynote"
      "posted posted"
      "foot  foot";
    gap: 0 14px !important; min-height: 0; padding: 16px 16px 14px !important;
  }
  .job-card[data-slug] .job-brand { flex-wrap: wrap; gap: 4px 10px; align-self: start; margin-bottom: 12px; }
  .employer-mark--logo { width: 104px; height: 38px; }
  .employer-mark--logo img { max-width: 104px; max-height: 38px; }
  .employer-mark--letter { width: 40px; height: 40px; }
  .job-card[data-slug] .job-employer { flex-basis: 100%; font-size: .9rem; }
  .pay-slot { max-width: var(--pay-slot); padding-top: 0; }
  .pay-slot__figure { font-size: 20px; }
  .job-card[data-slug] .job-co { font-size: 1.14rem !important; }
  .job-card__foot { gap: 12px; }
  .job-card .job-row-actions { width: 100%; margin-left: 0; }
  .job-card .job-row-actions .btn.job-apply, .job-card .job-row-actions .btn.job-recruitment { flex: 1 1 auto; }
}
html.board-sheet-open { overflow: hidden; }
/* Short landscape phones: the search stays in the first screen. */
@media (max-width: 999px) and (max-height: 560px) {
  .board-head { padding-top: 12px; }
  .board-head__inner { gap: 10px; padding-bottom: 14px; }
  .board-head .board-head__lede, .board-head .board-note { display: none; }
  .board-head .board-head__title { font-size: 2rem !important; }
  .board-head input[type="search"], .board-head .btn-chalk { height: 48px; }
}
@media (min-width: 720px) { html.board-sheet-open { overflow: visible; } }
@media (max-width: 380px) {
  .board-tracks { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); justify-content: stretch; gap: 0 10px; }
  .board-tracks .track-tab { flex-wrap: wrap; white-space: normal; gap: 0 6px; font-size: .9rem; }
  .board-tracks .track-tab__name::before { width: 12px; margin-right: 6px; }
  .job-card .job-row-actions .btn.job-recruitment { white-space: normal; line-height: 1.15; text-align: center; min-width: 0; padding: 0 10px; }
  .job-card .job-row-actions .save-job.btn { width: 6.25rem; min-width: 6.25rem; max-width: 6.25rem; }
}

/* ======================================================================
   The job sheet: the same card, written up in full and pinned to the board.
   A board band with the employer, the role and the stamps (and, in person,
   the place), then one white sheet in a fixed order beside a sticky rail
   with the pay, the check and the way to apply.
   ====================================================================== */
.sheet-band {
  position: relative; isolation: isolate; overflow: clip;
  padding-top: clamp(20px, 2.6vw, 34px);
  color: var(--chalk);
  background-color: var(--board); background-image: var(--board-plain);
  border-top: 1px solid rgba(0, 0, 0, .4);
  box-shadow: inset 0 14px 18px -14px rgba(0, 0, 0, .55);
}
.sheet-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("../../assets/chalk/ghosts.svg") 80% 20% / max(1400px, 100%) auto no-repeat;
}
/* In person, the place itself: the photograph pressed into the board as a
   desaturated board-green duotone, with the words kept on plain board. */
.sheet-band__photo { position: absolute; inset: 0; z-index: -2; pointer-events: none; }
.sheet-band__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; filter: grayscale(1) contrast(1.12) brightness(.92); mix-blend-mode: luminosity; opacity: .5; }
.sheet-band--photo::before {
  background: linear-gradient(90deg, rgba(28, 49, 42, .97) 0%, rgba(28, 49, 42, .9) 38%, rgba(28, 49, 42, .55) 72%, rgba(28, 49, 42, .35) 100%),
              linear-gradient(0deg, rgba(20, 36, 32, .55), transparent 45%);
}
.sheet-band__inner { position: relative; display: grid; align-content: start; gap: 16px; padding-bottom: clamp(24px, 3vw, 38px); }
.sheet-band--photo .sheet-band__inner { padding-bottom: clamp(26px, 3.4vw, 44px); min-height: clamp(260px, 26vw, 360px); align-content: start; }
.sheet-back { margin: 0; }
.sheet-band a:not(.btn) { color: var(--chalk); font-weight: 700; text-decoration: underline; text-decoration-color: rgba(243, 241, 232, .5); text-underline-offset: .22em; text-decoration-thickness: 1px; }
.sheet-band a:not(.btn):hover { text-decoration-color: var(--chalk); }
.sheet-band .back-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; text-decoration: none !important; color: var(--chalk-2) !important; font-weight: 700; }
.sheet-band .back-link span { text-decoration: underline; text-decoration-color: rgba(243, 241, 232, .4); text-underline-offset: .22em; }
.sheet-band .back-link:hover { color: var(--chalk) !important; }
.sheet-band :focus-visible { outline: 3px solid var(--focus-board); outline-offset: 3px; }
.sheet-id { display: flex; align-items: flex-start; gap: 20px; min-width: 0; }
.sheet-id__text { min-width: 0; display: grid; gap: 6px; }
.employer-mark--sheet.employer-mark--logo {
  width: auto; height: 64px; max-width: 164px; padding: 10px 12px;
  background: var(--surface); border-radius: var(--r-s);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .25), 0 12px 24px -14px rgba(0, 0, 0, .7);
  transform: rotate(-1deg);
}
.employer-mark--sheet.employer-mark--logo img { max-width: 140px; max-height: 44px; }
.employer-mark--sheet.employer-mark--letter {
  width: 64px; height: 64px; font-size: 1.5rem; color: var(--board-deep); background: var(--chalk);
  box-shadow: 0 2px 0 rgba(0, 0, 0, .25), 0 12px 24px -14px rgba(0, 0, 0, .7); transform: rotate(-1deg);
}
.sheet-employer { margin: 0; font-size: 1.08rem; font-weight: 700; color: var(--chalk-2); }
.sheet-band .sheet-title {
  margin: 0; max-width: 24ch;
  font-family: var(--font-display) !important; font-weight: 700 !important; font-variation-settings: "wdth" 94;
  font-size: clamp(2rem, 3.6vw, 3.15rem) !important; line-height: 1.02 !important; letter-spacing: -.024em !important;
  color: var(--chalk); text-wrap: balance; overflow-wrap: anywhere;
}
.sheet-track { margin: 4px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; font-size: 1rem; }
.sheet-band .track-label { color: var(--chalk); }
.sheet-place { display: inline-flex; align-items: center; font-weight: 700; color: var(--chalk); }
.sheet-place--online { color: var(--chalk-2); }
.sheet-band .flag { box-shadow: 0 0 0 1px rgba(243, 241, 232, .55), 0 1px 3px rgba(0, 0, 0, .4); }
.sheet-stamps { margin-top: 4px; }
.sheet-credit { margin: 6px 0 0; font-size: .8125rem; }
.sheet-band .sheet-credit a { color: var(--chalk-3); font-weight: 500; text-decoration-color: rgba(163, 179, 171, .5); }
.sheet-band .job-posted-by { margin: 0; color: var(--chalk-2); }

.sheet-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: clamp(22px, 3vw, 40px) clamp(48px, 6vw, 88px); }
@media (min-width: 960px) {
  .sheet-page { --rail-w: clamp(300px, 26vw, 344px); --rail-rise: 176px; }
  .sheet-layout { grid-template-columns: minmax(0, 1fr) var(--rail-w); gap: clamp(28px, 3vw, 48px); align-items: start; }
  /* The decision card is pinned half on the board, half on the page. */
  .sheet-band__inner { padding-right: calc(var(--rail-w) + clamp(28px, 3vw, 48px)); min-height: calc(var(--rail-rise) + 96px); }
  .sheet-rail { grid-column: 2; grid-row: 1; margin-top: calc(-1 * var(--rail-rise)); z-index: 2; }
  .sheet-main { grid-column: 1; grid-row: 1; }
}
.sheet-main {
  min-width: 0; background: var(--surface);
  border: 1px solid var(--rule); border-radius: var(--r-m); box-shadow: var(--card-pin);
}
.sheet-section { padding: 26px clamp(20px, 3vw, 34px); border-top: 1px dashed var(--rule-strong); }
.sheet-section:first-child { border-top: 0; }
.sheet-section h2, .sheet-evidence > summary h2 { margin: 0 0 14px; font-size: 1.42rem !important; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); }
.sheet-section h3 { margin: 0 0 8px; font-family: var(--font-ui) !important; font-size: .9rem !important; font-weight: 700; letter-spacing: .02em; color: var(--ink-2); }
.sheet-section p { max-width: 68ch; }
.sheet-small { margin: 12px 0 0; font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
.not-stated { color: var(--ink-3); font-weight: 500; }

/* Pay box */
.pay-box { display: grid; gap: 8px; }
.pay-box p { margin: 0; }
.pay-box__figure { font: 700 22px/1.25 var(--font-mono); font-variant-numeric: tabular-nums lining-nums; color: var(--ink); }
.pay-box__figure .pay-cur, .pay-box__figure .pay-q, .pay-box__figure .pay-join { font-size: .85rem; }
.pay-box__unit { font: 600 1.02rem/1.3 var(--font-ui); color: var(--ink-2); }
.pay-box__usd { font-size: .98rem; color: var(--ink-2); }
.pay-box__terms { margin: 6px 0 0; padding: 12px 0 0; list-style: none; border-top: 1px solid var(--rule); display: grid; gap: 6px; font-size: .96rem; color: var(--ink-2); }
.pay-box__terms li { position: relative; padding-left: 18px; }
.pay-box__terms li::before { content: ""; position: absolute; left: 0; top: .62em; width: 9px; height: 2px; background: var(--ink-3); }
.pay-box__terms strong { color: var(--ink); }
.pay-box--unknown .pay-box__none { font: 600 1.12rem/1.3 var(--font-ui); color: var(--ink-3); }
.pay-box__line { color: var(--ink-2); }
.job-pay-context { margin-top: 16px; padding: 14px 16px; background: var(--sunken); border-radius: var(--r-s); font-size: .95rem; }
.job-pay-context p { margin: 0 0 6px; }
.job-prov { color: var(--ink-2); font-size: .92rem; }

/* Facts */
.sheet-facts { margin: 0; display: grid; }
.sheet-facts > div { display: grid; grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr); gap: 4px 20px; padding: 11px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.sheet-facts > div:first-child { border-top: 0; padding-top: 0; }
.sheet-facts dt { font-size: .95rem; font-weight: 600; color: var(--ink-2); }
.sheet-facts dd { margin: 0; font-size: 1.02rem; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.sheet-facts .place { font-weight: 700; }
.sheet-variant { margin: 14px 0 0; font-size: .98rem; }
.sheet-variant a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }

/* Who can apply */
.eligibility-label--sheet { display: inline-block; margin: 0 0 14px; padding: 6px 10px; font-size: .95rem; color: var(--ink); background: var(--sunken); border-radius: var(--r-s); }
.who-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px 28px; }
@media (min-width: 720px) { .who-grid { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } }
.who-block p { margin: 0; line-height: 1.55; }
.who-missing { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.who-missing li { position: relative; padding-left: 20px; color: var(--ink-2); }
.who-missing li::before { content: ""; position: absolute; left: 0; top: .66em; width: 11px; height: 2px; background: var(--stamp-pencil); transform: rotate(-4deg); }

/* What we found when we checked */
details.sheet-evidence { background: transparent !important; border: 0 !important; border-top: 1px dashed var(--rule-strong) !important; border-radius: 0 !important; box-shadow: none !important; }
.sheet-evidence > summary { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; list-style: none; cursor: pointer; }
.sheet-evidence > summary::-webkit-details-marker { display: none; }
.sheet-evidence > summary::before { content: none !important; }
.sheet-evidence > summary::after { content: "Hide" !important; transform: none !important; font: 700 .9rem var(--font-ui); color: var(--stamp-blue); text-decoration: underline; text-underline-offset: .2em; }
.sheet-evidence:not([open]) > summary::after { content: "Show" !important; }
.sheet-evidence > summary h2 { display: inline; }
.sheet-evidence > summary:focus-visible { outline: 3px solid var(--stamp-blue); outline-offset: 4px; }
.evidence-body { display: grid; gap: 16px; padding-top: 4px; }
.evidence-quote, .evidence-finding {
  margin: 0; max-width: none; padding: 16px 18px; font-size: 1.02rem; line-height: 1.6; color: var(--ink);
  background: var(--sunken); border: 1px solid var(--rule); border-radius: var(--r-s);
}
.evidence-quote::before { content: "“"; font-weight: 700; color: var(--ink-3); margin-right: 2px; }
.evidence-quote::after { content: "”"; font-weight: 700; color: var(--ink-3); margin-left: 2px; }
.evidence-meta { margin: 0; display: grid; }
.evidence-meta > div { display: grid; grid-template-columns: minmax(9rem, 13rem) minmax(0, 1fr); gap: 4px 20px; padding: 9px 0; border-top: 1px solid var(--rule); }
.evidence-meta dt { font-size: .92rem; font-weight: 600; color: var(--ink-2); }
.evidence-meta dd { margin: 0; font-size: .96rem; line-height: 1.5; overflow-wrap: anywhere; }
.evidence-meta a { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; }
.evidence-body .job-checked { margin: 0; font-size: .92rem; color: var(--ink-2); }

/* Teachers say */
.review-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 720px) { .review-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.review-card { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: 10px; min-width: 0; padding: 16px 18px; background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-m); box-shadow: 0 1px 0 rgba(20, 32, 28, .05); }
.review-card p { margin: 0; }
.stamp--source { color: var(--stamp-pencil); font-size: .75rem; padding: 4px 7px 3px; white-space: normal; max-width: 100%; line-height: 1.25; transform: rotate(-1deg); }
.review-card__quote { margin: 0; padding: 0; border: 0; background: none; font-size: 1rem; line-height: 1.55; color: var(--ink); }
.review-card__quote::before { content: "“"; } .review-card__quote::after { content: "”"; }
.review-card__source { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 0; }
.review-card__source a { display: inline-flex; align-items: center; gap: 5px; min-height: 44px; font-weight: 700; font-size: .92rem; }
.evidence-label { margin: 0 0 -8px; font-size: .88rem; font-weight: 700; color: var(--ink-2); }
.fact-note { display: block; margin-top: 2px; font-size: .95rem; color: var(--ink-2); }

/* More from this employer · Similar jobs */
.mini-jobs { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 720px) { .mini-jobs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.mini-job {
  position: relative; display: grid; gap: 3px; height: 100%; padding: 14px 16px 14px 20px;
  color: var(--ink) !important; text-decoration: none !important; border: 1px solid var(--rule) !important; border-radius: var(--r-m);
  background: var(--surface);
}
.mini-job::before { content: ""; position: absolute; left: 8px; top: 16px; width: 4px; height: 14px; border-radius: 1px; background: var(--track, var(--rule-strong)); }
.mini-job:hover { border-color: var(--ink-3) !important; box-shadow: var(--card-pin); }
.mini-job:hover .mini-job__title { text-decoration: underline; text-underline-offset: .18em; }
.mini-job__employer { font-size: .88rem; font-weight: 700; color: var(--ink-2); }
.mini-job__title { font-weight: 700; font-size: 1.02rem; line-height: 1.3; }
.mini-job__pay { margin-top: 4px; font: 700 1rem/1.3 var(--font-mono); font-variant-numeric: tabular-nums; }
.mini-job__pay .pay-cur, .mini-job__pay .pay-q, .mini-job__pay .pay-join { font-size: .72rem; }
.mini-job__unit { font: 600 .88rem var(--font-ui); color: var(--ink-2); }
.mini-job__none { font: 500 .95rem var(--font-ui); color: var(--ink-3); }
.mini-job__where { display: flex; align-items: center; font-size: .9rem; color: var(--ink-2); }
.mini-job__where .flag { width: 18px; height: 12px; margin-right: 7px; vertical-align: 0; }

/* About the employer */
.sheet-about p { margin: 0 0 10px; color: var(--ink-2); line-height: 1.55; }
.sheet-about .back-link { color: var(--stamp-blue); }
.job-summary { color: var(--ink) !important; }

/* The vacancy, in the employer's words (Fable B2-24): pencil daters, then the
   employer's own paragraphs, then where we copied them from. */
.sheet-vacancy__dates { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.stamp--dater { color: var(--stamp-pencil); border-color: currentColor; border-radius: 999px; padding: 4px 12px 3px; font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; transform: rotate(-1.2deg); }
.stamp--dater + .stamp--dater { transform: rotate(.8deg); }
.sheet-vacancy__body { display: grid; gap: .7em; color: var(--ink); overflow-wrap: anywhere; }
.sheet-vacancy__body p { max-width: 68ch; margin: 0; font-size: 1.02rem; line-height: 1.6; }
.sheet-vacancy__source { max-width: none !important; margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--rule); font-size: .92rem; line-height: 1.5; color: var(--ink-2); }
.sheet-vacancy__source a { font-weight: 700; }

/* The employer's own title heads a marked-up vacancy; the card's role line follows it.
   Long employer titles step down a size so the heading keeps to three lines. */
.sheet-band .sheet-title.sheet-title--long { max-width: 30ch; font-size: clamp(1.9rem, 2.8vw, 2.55rem) !important; line-height: 1.06 !important; }
@media (max-width: 719px) { .sheet-band .sheet-title.sheet-title--long { font-size: clamp(1.55rem, 6.8vw, 1.9rem) !important; } }
.sheet-title__keep { white-space: nowrap; }
.sheet-band .sheet-role { margin: 0; font-size: 1.08rem; font-weight: 600; line-height: 1.35; color: var(--chalk-2); }

/* The recruiter route (Fable B2-26), on the board head and under the apply route. */
.board-head .board-hero__employers { margin: -8px 0 0; font-size: 1rem; color: var(--chalk-2); }
.board-head .board-hero__employers a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.sheet-recruit { margin: 0; font-size: .95rem; line-height: 1.45; color: var(--ink-2); }
.sheet-recruit a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-weight: 700; color: var(--stamp-blue); }
.sheet-rail__card .sheet-rail__foot { margin-top: -2px; padding-top: 4px; border-top: 1px dashed var(--rule-strong); }
.sheet-about .sheet-about__recruit { margin: 4px 0 0; }
@media (min-width: 960px) { .sheet-about .sheet-about__recruit { display: none; } }

/* The sticky decision rail */
.sheet-rail { position: sticky; top: 108px; min-width: 0; }
.sheet-rail__card {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 22px;
  background: var(--surface); border: 1px solid var(--rule); border-radius: var(--r-m); box-shadow: var(--card-lift);
}
.sheet-rail__card p { margin: 0; }
.rail-pay__figure { font: 700 24px/1.2 var(--font-mono); font-variant-numeric: tabular-nums lining-nums; color: var(--ink); overflow-wrap: anywhere; }
.rail-pay__unit { margin-top: 4px !important; font: 600 1rem/1.3 var(--font-ui); color: var(--ink-2); }
.rail-pay__usd { margin-top: 6px !important; font-size: .88rem; color: var(--ink-3); }
.rail-pay__none { font: 600 1.05rem var(--font-ui); color: var(--ink-3); }
.rail-pay__note { margin-top: 6px !important; font-size: .86rem; line-height: 1.4; color: var(--ink-2); }
.rail-stamp { padding-bottom: 4px; }
.sheet-page .sheet-rail .sheet-rail__card .btn { white-space: normal; }
.sheet-rail .btn { width: 100% !important; max-width: none !important; min-height: 52px !important; font-size: 1.04rem !important; white-space: normal; text-align: center; }
.sheet-rail .rail-apply span { overflow-wrap: anywhere; }
.rail-closed { padding: 12px 14px; font-size: .95rem; color: var(--ink-2); background: var(--sunken); border-radius: var(--r-s); }
.rail-note { font-size: .86rem; line-height: 1.5; color: var(--ink-2); }

/* Phones: one column and a sticky bottom bar with the pay and the way to apply. */
.sheet-bar { display: none; }
@media (max-width: 959px) {
  .sheet-rail { display: none; }
  .sheet-page { padding-bottom: 84px; }
  .sheet-bar {
    position: fixed; z-index: 90; left: 0; right: 0; bottom: 0;
    display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--surface); border-top: 1px solid var(--rule-strong);
    box-shadow: 0 -10px 24px -14px rgba(20, 32, 28, .5);
  }
  .sheet-bar__pay { min-width: 0; flex: 1 1 auto; display: grid; line-height: 1.2; }
  .sheet-bar__figure { font: 700 17px/1.2 var(--font-mono); font-variant-numeric: tabular-nums; color: var(--ink); overflow-wrap: anywhere; }
  .sheet-bar__figure .pay-cur, .sheet-bar__figure .pay-q, .sheet-bar__figure .pay-join { font-size: .7rem; }
  .sheet-bar__unit { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
  .sheet-bar__none, .sheet-bar__closed { font-size: .92rem; font-weight: 600; color: var(--ink-3); }
  .sheet-bar__note { flex: 1 0 100%; order: 3; margin: 0; font-size: .78rem; line-height: 1.35; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .sheet-page:has(.sheet-bar__note) { padding-bottom: 112px; }
  .sheet-bar .btn { min-height: 48px !important; flex: none; }
  .sheet-bar .save-job.btn { width: 5.6rem; min-width: 5.6rem; max-width: 5.6rem; padding: 0 8px; }
  .sheet-page .sheet-bar .btn.job-recruitment { white-space: normal; max-width: 8.75rem; line-height: 1.15; text-align: center; padding: 0 12px; }
  .sheet-bar__figure .pay-rest { white-space: normal; }
  .sheet-bar .job-apply { padding: 0 20px !important; }
}
@media (max-width: 719px) {
  .sheet-band__inner { gap: 14px; }
  .sheet-band--photo .sheet-band__inner { min-height: 0; padding-bottom: 40px; }
  .sheet-id { flex-direction: column; gap: 14px; }
  .employer-mark--sheet.employer-mark--logo { height: 54px; padding: 8px 10px; }
  .employer-mark--sheet.employer-mark--logo img { max-height: 38px; max-width: 120px; }
  .employer-mark--sheet.employer-mark--letter { width: 54px; height: 54px; font-size: 1.3rem; }
  .sheet-band .sheet-title { font-size: clamp(1.85rem, 8.4vw, 2.3rem) !important; }
  .sheet-layout { padding-top: 16px; gap: 20px; }
  .sheet-main { margin-inline: calc(var(--page-gutter, 20px) * -0.5); }
  .sheet-section { padding: 22px 18px; }
  .sheet-facts > div, .evidence-meta > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
.fact-src { display: inline-block; margin-left: 4px; font-size: .82rem; font-weight: 600; color: var(--ink-3); white-space: nowrap; }

/* Checked pay research (24 Sep 2026): a found figure's basis, and the "Pay by tier" table. Paper, mono figures, stamp marks. */
.pay-slot__basis { margin: 4px 0 0; font-size: .78rem; line-height: 1.3; color: var(--ink-3); }
.pay-slot__basis--reported { color: var(--stamp-pencil); }
.pay-box__basis { margin: 6px 0 0; font-size: .92rem; color: var(--ink-2); }
.sheet-tiers .tier-system { margin: 0 0 12px; color: var(--ink-2); }
/* Pay by tier (Fable B3-2): a plain ruled table on the paper in the reading face; mono digits only; rows stack on phones. */
.tier-table-wrap { margin-top: 4px; }
.tier-table { width: 100%; border-collapse: collapse; font: 400 .98rem/1.45 var(--font-ui); }
.tier-table th, .tier-table td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-top: 1px solid var(--rule); font-family: var(--font-ui); font-size: inherit; font-weight: 400; color: var(--ink); text-transform: none; letter-spacing: 0; background: none; }
.tier-table thead th { border-top: 0; padding-top: 0; font-size: .82rem; font-weight: 600; color: var(--ink-3); }
.tier-name { display: block; font-weight: 600; color: var(--ink); }
.tier-who { display: block; margin-top: 2px; font-weight: 400; font-size: .88rem; color: var(--ink-3); }
.tier-figure .pay-num { font-family: var(--font-mono); font-variant-numeric: tabular-nums lining-nums; font-weight: 600; }
.tier-figure .pay-cur, .tier-figure .pay-join, .tier-unit { font-family: var(--font-ui); }
.tier-basis { font-size: .72rem; white-space: nowrap; }
.tier-bonuses { margin: 6px 0 0; padding-left: 1.1em; color: var(--ink-2); }
.tier-basis--employer { color: var(--stamp-blue); border-color: currentColor; }
.tier-basis--reported { color: var(--stamp-pencil); border-color: currentColor; border-style: dashed; }
@media (max-width: 560px) {
  .tier-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tier-table tr, .tier-table th, .tier-table td { display: block; }
  .tier-table tr { padding: 12px 0; border-top: 1px solid var(--rule); }
  .tier-table th, .tier-table td { border-top: 0; padding: 0; }
  .tier-table td { margin-top: 6px; }
}
/* Board foot: the refresh schedule, once (Fable B3-1). */
.board-foot__refresh { margin: 18px 0 0; font-size: .92rem; color: var(--ink-3); }
