/* White background; the interface uses only black, white and grey plus one blue, and blue is only for things that can be clicked; text comes in dark and mid-grey; one sans-serif typeface, Inter, site-wide;
   boxes are rounded with a thin outline and no shadow; only things floating above the page (search bar, dropdown panels, dialogs, the mobile menu) have a shadow. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-400.069549535483.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-600.9fe0f2452dc5.woff") format("woff"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-700.fba8690d1041.woff") format("woff"); }

:root {
  --blue: #0f5bd7;       /* the only colour: buttons, links, selected things */
  --blue-dark: #0a47ad;  /* hovering over something blue */
  --blue-pale: #eaf2ff;  /* very pale blue, used only as a background */
  --ink: #24272c;        /* headings, job titles, body text */
  --muted: #5d636e;      /* secondary text */
  --line: #d7dae0;       /* thin lines, box borders */
  --edge: #8b919b;       /* borders of inputs and filter buttons, one step darker than the thin lines */
  --fill: #f2f3f5;       /* pale grey background: small tags */
  --warn: #fff4d6;       /* background of warning bars */
  --err: #fdecec;        /* background of error messages */
  --err-ink: #b3261e;    /* text of error messages */
  --float: 0 4px 16px rgba(20, 24, 31, .14);  /* shadow of things floating above the page */
  --ico-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='M20 20l-4.2-4.2'/%3E%3C/svg%3E");
  --ico-pin: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M12 21.5s-7-6.3-7-11.6a7 7 0 0 1 14 0c0 5.3-7 11.6-7 11.600z'/%3E%3Ccircle cx='12' cy='10' r='2.4'/%3E%3C/svg%3E");
  --ico-down: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9.500l6 6 6-6'/%3E%3C/svg%3E");
  --ico-out: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M14 4.500h5.500V10'/%3E%3Cpath d='M19.5 4.500L11 13'/%3E%3Cpath d='M18 14.500V18a1.5 1.5 0 0 1-1.5 1.500h-10A1.5 1.5 0 0 1 5 18V8a1.5 1.5 0 0 1 1.5-1.500H10'/%3E%3C/svg%3E");
  --ico-save: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M7 4.500h10a1 1 0 0 1 1 1V20l-6-4.200L6 20V5.500a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
  --ico-saved: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23000' stroke='%23000' stroke-width='2' stroke-linejoin='round'%3E%3Cpath d='M7 4.500h10a1 1 0 0 1 1 1V20l-6-4.200L6 20V5.500a1 1 0 0 1 1-1z'/%3E%3C/svg%3E");
  --ico-menu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 12h16M4 17h16'/%3E%3C/svg%3E");
  --ico-x: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E");
  --ico-back: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 12H5.500M11 6l-6 6 6 6'/%3E%3C/svg%3E");
  --ico-pay: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='6.500' width='18' height='11' rx='2'/%3E%3Ccircle cx='12' cy='12' r='2.500'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
/* Anything with hidden is never shown. Without this rule, the classes below that set display (such as .btn) would override hidden */
[hidden] { display: none !important; }
/* Keep the scrollbar gutter even when there are too few results to scroll, so the page does not jump sideways */
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
/* On pages with little content the footer still sits at the bottom of the window */
body {
  margin: 0; background: #fff; color: var(--ink); display: flex; flex-direction: column; min-height: 100vh;
  font: 400 16px/1.5 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--blue-dark); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
h1 { margin: 0 0 8px; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -.015em; }
h2 { margin: 36px 0 10px; font-size: 20px; line-height: 1.3; font-weight: 700; }
h3 { margin: 0; font-size: 18px; line-height: 1.3; font-weight: 700; }
p { margin: 0 0 12px; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* Content sits in a fixed-width column in the middle of the page: 1128 pixels for ordinary pages, narrower for the job list.
   Text and form pages use the narrower columns below, all centred */
.wrap { width: 100%; max-width: 1176px; margin: 0 auto; padding: 0 24px; }
.wrap.list { max-width: 968px; }
main { flex: 1 0 auto; padding-bottom: 64px; }
main.page { padding-top: 40px; padding-bottom: 64px; }
.narrow { max-width: 440px; margin: 0 auto; }
.medium, .prose { max-width: 680px; margin: 0 auto; }
.detail { max-width: 760px; margin: 0 auto; }
.col { max-width: 920px; margin: 0 auto; }
/* The paragraph of explanation at the top of a column: keep its lines from running too long */
.lead { max-width: 680px; }

/* Header: one row. Logo and sections on the left, sign-in and a solid button on the right; the current section has a short blue line under it; a thin line along the bottom edge */
/* The header stays at the top of the window while the page scrolls, on every page and every width, so the logo and the menu are always in reach */
html { scroll-padding-top: 76px; }
.top { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: #fff; }
/* The header's contents line up with the page's standard column: the logo over its left edge, the account links over its right edge */
.top-inner { display: flex; align-items: stretch; gap: 32px; max-width: 968px; height: 64px; margin: 0 auto; padding: 0 24px; }
.brand { display: flex; align-items: center; flex: none; }
.brand img { display: block; height: 25px; width: auto; }
.top nav.main { display: flex; align-items: stretch; gap: 24px; min-width: 0; }
.top nav.main a, .top-right a.nav { display: flex; align-items: center; color: var(--ink); font-size: 15px; white-space: nowrap;
  border-top: 3px solid transparent; border-bottom: 3px solid transparent; }
.top nav.main a:hover, .top-right a.nav:hover { text-decoration: none; color: var(--blue); }
.top nav.main a[aria-current], .top-right a.nav[aria-current] { border-bottom-color: var(--blue); font-weight: 600; }
.top-right { display: flex; align-items: stretch; gap: 24px; margin-left: auto; flex: none; }
.top-right form { display: flex; align-items: center; }
.top-right button.link { color: var(--ink); font-size: 15px; font-weight: 400; }
.top-right button.link:hover { color: var(--blue); text-decoration: none; }
.top-right .btn { align-self: center; }
/* The mobile menu button and the block it opens; not shown on desktop */
.menu { display: none; }

/* Three grades of button: solid blue for the most important action, white with a blue border for secondary ones, and plain blue text for the lightest */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border: 1px solid var(--blue);
  border-radius: 8px; background: var(--blue); color: #fff; font-weight: 700; cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--blue-dark); border-color: var(--blue-dark); color: #fff; text-decoration: none; }
.btn.ghost { background: #fff; color: var(--blue); }
.btn.ghost:hover { background: var(--blue-pale); color: var(--blue-dark); }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; }
/* Buttons and links that leave the site carry a small box-and-arrow icon after the text */
.btn.out::after, a.out::after { content: ""; flex: none; width: 18px; height: 18px; background: currentColor;
  -webkit-mask: var(--ico-out) center / contain no-repeat; mask: var(--ico-out) center / contain no-repeat; }
a.out::after { display: inline-block; width: 15px; height: 15px; margin-left: 3px; vertical-align: -2px; }
button.link { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; cursor: pointer; }
button.link:hover { color: var(--blue-dark); text-decoration: underline; }
/* Select all and Select none above a list of states */
.bulk { display: flex; gap: 20px; margin: 4px 0 8px; font-size: 14px; }
.muted-link { color: var(--muted) !important; }
form.inline { display: inline; }
/* The link back up one level: small grey text with a left arrow in front */
.back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 20px; font-size: 14px; color: var(--muted); }
.back::before { content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--ico-back) center / contain no-repeat; mask: var(--ico-back) center / contain no-repeat; }
.back:hover { color: var(--ink); text-decoration: none; }

/* Forms: inputs are rounded boxes with a thin border that turns blue on focus; each field has a line of small semi-bold text above it */
input[type=search], input[type=text], input[type=email], input[type=password], input[type=url], input[type=number], input:not([type]), select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; border: 1px solid var(--edge); border-radius: 8px; background: #fff; color: var(--ink); }
input:focus, select:focus, textarea:focus { outline: 0; border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
input[type=checkbox], input[type=radio] { accent-color: var(--blue); }
input[type=checkbox]:focus, input[type=radio]:focus { box-shadow: none; }
input[type=checkbox]:focus-visible, input[type=radio]:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 1; }
select { -webkit-appearance: none; appearance: none; padding-right: 36px; cursor: pointer; background: #fff var(--ico-down) right 10px center / 18px no-repeat; }
textarea { resize: vertical; line-height: 1.45; }
input[type=file] { font-size: 14px; }
/* The file-choosing button is drawn as a secondary button: white background, blue border, blue text */
input[type=file]::file-selector-button { height: 36px; margin-right: 12px; padding: 0 14px; border: 1px solid var(--blue); border-radius: 8px;
  background: #fff; color: var(--blue); font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
input[type=file]::file-selector-button:hover { background: var(--blue-pale); color: var(--blue-dark); }
fieldset { border: 0; padding: 0; margin: 18px 0 0; min-width: 0; }
legend { padding: 0; }
.lbl { display: block; margin: 18px 0 6px; font-size: 14px; font-weight: 600; color: var(--ink); }
fieldset > .lbl, legend.lbl { margin-top: 0; }
.stack { display: flex; flex-direction: column; }
.stack > .btn { margin-top: 24px; align-self: flex-start; }
.narrow .stack > .btn { align-self: stretch; }
.stack + p { margin-top: 20px; }
.chk { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; font-size: 15px; line-height: 1.35; cursor: pointer; }
.chk input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; }
.chk .n { font-size: 13px; color: var(--muted); }
.hint { margin: 6px 0 0; font-size: 13px; color: var(--muted); }
.actions { display: flex; gap: 16px; align-items: center; margin-top: 16px; }
.errorlist { margin: 6px 0 0; padding-left: 18px; color: var(--err-ink); font-size: 14px; }
/* Account pages: sign in, sign up, confirm email, reset password, change password, change email (.acct).
   Continue with Google is a button with a white background, grey border and dark text, carrying Google's own four-colour mark; a line labelled "or" separates it from email and password */
.btn.google { border-color: var(--edge); color: var(--ink); font-weight: 600; }
.btn.google:hover { background: var(--fill); border-color: var(--edge); color: var(--ink); }
.acct .third > .btn { margin-top: 20px; }
.or { display: flex; align-items: center; gap: 12px; margin: 20px 0 0; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.acct .consents { margin-top: 18px; }
.acct .human { margin-top: 16px; min-height: 65px; }
.acct .terms { margin-top: 12px; }
.acct .pending { display: flex; gap: 20px; margin: 0 0 4px; }
/* Location: the state field appears only when the country is United States. In browsers without :has()
   the state field is always shown; it also stays shown when the submission came back with an error (.err) */
@supports selector(:has(*)) {
  form:has(select[name=country]) .state-row { display: none; }
  form:has(select[name=country] option[value=US]:checked) .state-row, .state-row.err { display: block; }
}
/* Account page: split into blocks, each a card with a thin outline and the block's name at the top; each row in a card is one item,
   with its name on the left, its current value in the middle, and what can be done with it on the right. On mobile the name takes its own line, with the value and the action below it */
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.settings .card { margin-top: 24px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.settings .card > h2 { margin: 0; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 17px; }
.settings .card-body { padding: 16px 20px 20px; }
.settings .card-body p { margin: 0 0 14px; }
.rows { margin: 0; }
.rows .row { display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; gap: 2px 20px; align-items: baseline; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.rows .row:last-child { border-bottom: 0; }
.rows dt { font-size: 14px; font-weight: 600; color: var(--muted); }
.rows dd { margin: 0; overflow-wrap: anywhere; }
.rows dd.act { text-align: right; white-space: nowrap; font-size: 15px; font-weight: 600; }
.rows .note { display: block; margin-top: 2px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.rows .search-form { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.rows .search-form select { width: auto; min-height: 36px; padding-top: 5px; padding-bottom: 5px; font-size: 14px; font-weight: 400; }
/* The delete-account block: text and button in the red used for error messages. The field to fill in appears only once it is opened */
.settings .card.danger > h2 { color: var(--err-ink); }
.btn.danger { border-color: var(--err-ink); background: var(--err-ink); color: #fff; }
.btn.danger:hover { border-color: #8f1d17; background: #8f1d17; color: #fff; }
.btn.ghost.danger { background: #fff; color: var(--err-ink); }
.btn.ghost.danger:hover { background: var(--err); color: var(--err-ink); }
.settings summary.btn { cursor: pointer; list-style: none; }
.settings summary.btn::-webkit-details-marker { display: none; }
.settings details[open] > summary.btn { display: none; }
.settings details .stack > .btn { margin-top: 16px; }
.settings details .lbl { margin-top: 4px; }
/* Profile (the Profile block on the account page, and the pages for its sections).
   On the account page a section takes one line per item filled in (.ln); the card starts with a sentence of explanation (.lead). The lists of entries and of files have no name column (.rows.plain) */
.settings .card-body.lead { padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.rows .ln { display: block; }
.rows .ln + .ln { margin-top: 3px; }
.rows.plain { padding: 0; list-style: none; }
.rows.plain .row { grid-template-columns: minmax(0, 1fr) auto; }
.rows span.act { text-align: right; white-space: nowrap; font-size: 15px; font-weight: 600; }
.rows .act a + form.inline { margin-left: 14px; }
.settings > .actions { margin-top: 20px; }
.docs .rows.plain + .card-body { border-top: 1px solid var(--line); }
.docs .upload .lbl { margin-top: 0; }
.docs .pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.docs .pick input[type=file] { flex: 1 1 240px; min-width: 0; }
.pform fieldset { margin-top: 26px; }
.pform legend.lbl { margin-bottom: 4px; font-size: 16px; }
.pform legend + .hint { margin: 0 0 10px; }
.pform .checks { columns: 2; column-gap: 32px; }
.pform .checks .chk { break-inside: avoid; }
.pform .checks-want_states .checks { columns: 3; }
.pform .chk.one { margin-top: 14px; }
.pform input[type=number] { max-width: 180px; }
.pform .actions { margin-top: 28px; }
.pform .stack > .actions .btn { margin-top: 0; }
.pform .remove { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }
.pform .remove .link { color: var(--err-ink); }
/* The details page: fields, levels wanted, job alerts; each of the three blocks is a fieldset.
   Fields are laid out in two columns, keeping a broad area together with the fields under it; levels are in three groups as on the home page and the job list, one column per group */
.about fieldset { margin-top: 32px; }
.about legend.lbl { margin-bottom: 4px; font-size: 16px; }
.about legend + .hint { margin: 0 0 10px; }
.about .fields { columns: 2; column-gap: 32px; }
.about .fa { break-inside: avoid; }
.about .lv-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 24px; }
.about .lv-grp .lbl { margin: 8px 0 2px; font-size: 13px; color: var(--muted); }
.about .actions { margin-top: 28px; }
.about .stack > .actions .btn { margin-top: 0; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Notice bars: normally a very pale blue background, pale yellow for warnings, pale red for errors */
.messages { margin-bottom: 24px; }
.msg, .notice { margin: 0 0 12px; padding: 12px 16px; border-radius: 8px; background: var(--blue-pale); }
.msg.warning, .notice.warn { background: var(--warn); }
.msg.error { background: var(--err); color: var(--err-ink); }

/* Search bar: one unit. A long bar with large rounded corners, split by a vertical line into "what" and "which state", each with a small icon in front; the blue button sits inside the bar at its right end */
.searchbar { display: flex; align-items: center; gap: 8px; height: 60px; padding: 0 8px 0 4px; background: #fff; border: 1px solid var(--edge);
  border-radius: 14px; box-shadow: 0 2px 8px rgba(20, 24, 31, .10); }
.searchbar:focus-within { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 2px 8px rgba(20, 24, 31, .10); }
.searchbar .cell { position: relative; display: flex; align-items: center; height: 100%; min-width: 0; }
.searchbar .cell.what { flex: 1.5; }
.searchbar .cell.where { flex: 1; }
.searchbar .cell.where::after { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; border-left: 1px solid var(--line); }
.searchbar .cell::before { content: ""; position: absolute; left: 16px; width: 20px; height: 20px; background: var(--ink);
  -webkit-mask: var(--ico-search) center / contain no-repeat; mask: var(--ico-search) center / contain no-repeat; pointer-events: none; }
.searchbar .cell.where::before { -webkit-mask-image: var(--ico-pin); mask-image: var(--ico-pin); }
.searchbar input, .searchbar select { width: 100%; height: 100%; min-height: 0; border: 0; border-radius: 0; outline: 0; box-shadow: none; background-color: transparent;
  padding: 0 12px 0 46px; font-size: 16px; text-overflow: ellipsis; }
.searchbar input:focus, .searchbar select:focus { box-shadow: none; }
.searchbar input::-webkit-search-cancel-button { cursor: pointer; }
.searchbar select { padding-right: 36px; padding-bottom: 3px; }
.searchbar .btn { flex: none; }
/* Where to search, on the job list: one tick box. On a computer it is drawn as two halves, "Titles & fields" and
   "Full posting text", the chosen half white; on a phone as a small switch. The box itself is hidden but still takes the keyboard */
.searchbar .cell.mode { flex: none; padding: 0 6px 0 12px; }
.searchbar .cell.mode::before { display: none; }
.searchbar .cell.mode::after { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; border-left: 1px solid var(--line); }
.searchbar .mode-box { position: absolute; width: 1px; height: 1px; padding: 0; margin: 0; opacity: 0; }
.mode-seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--fill); pointer-events: none; }
.mode-seg span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--muted); white-space: nowrap; }
/* The half already chosen does nothing when clicked; only the other half flips the box */
.mode-box:not(:checked) ~ .mode-seg .a, .mode-box:checked ~ .mode-seg .b { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(20, 24, 31, .18); }
.mode-box:not(:checked) ~ .mode-seg .b, .mode-box:checked ~ .mode-seg .a { pointer-events: auto; cursor: pointer; }
.mode-box:not(:checked) ~ .mode-seg .b:hover, .mode-box:checked ~ .mode-seg .a:hover { color: var(--blue); }
.mode-box:focus-visible ~ .mode-seg { outline: 2px solid var(--blue); outline-offset: 2px; }
.mode-sw { display: none; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; cursor: pointer; }
.mode-sw i { position: relative; width: 36px; height: 20px; border-radius: 10px; background: #c4c8cf; transition: background .15s; }
.mode-sw i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left .15s; }
.mode-box:checked ~ .mode-sw i { background: var(--blue); }
.mode-box:checked ~ .mode-sw i::after { left: 18px; }
.mode-box:focus-visible ~ .mode-sw i { outline: 2px solid var(--blue); outline-offset: 2px; }
.state-opts { columns: 3; column-gap: 8px; min-width: 620px; }
.state-opts .chk { break-inside: avoid; }

/* Filter buttons: white pills with a thin border; the ones that drop down carry a small down arrow after the text; selected ones get a very pale blue fill, blue border and blue text */
.pill { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border: 1px solid var(--edge); border-radius: 999px;
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer; user-select: none; }
.pill:hover { background: var(--fill); color: var(--ink); text-decoration: none; }
.pill.on { background: var(--blue-pale); border-color: var(--blue); color: var(--blue-dark); }
.pill.drop::after { content: ""; width: 16px; height: 16px; margin-right: -4px; background: currentColor;
  -webkit-mask: var(--ico-down) center / contain no-repeat; mask: var(--ico-down) center / contain no-repeat; }

/* Home page: a headline, a line saying how many postings there are, the search bar, then nine field cards */
.hero { text-align: center; padding-top: 64px; }
.hero h1 { margin: 0; font-size: 46px; line-height: 1.12; letter-spacing: -.025em; }
.hero .dir-sub { margin: 16px 0 32px; font-size: 18px; color: var(--muted); }
.hero .searchbar { max-width: 860px; margin: 0 auto; text-align: left; }
/* Nine broad areas in three rows of three */
.areas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
/* Area cards: a picture on top, the name and the count below, all centred. The picture is single-colour and follows --blue */
.area { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 18px 10px 16px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-align: center; }
.area-pic { margin-bottom: 8px; color: var(--blue); }
.area-pic svg { display: block; width: 52px; height: 52px; }
.area:hover { border-color: var(--blue); color: var(--ink); text-decoration: none; }
.area:hover .area-name { color: var(--blue); }
.area-name { font-size: 15px; font-weight: 700; line-height: 1.3; }
.area-count { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Job list: from top to bottom, the search bar, a row of filter buttons, a line with the result count and the sort, and a column of job cards. The search bar and filter buttons stay at the top of the window when scrolling down */
.zone { position: sticky; top: 65px; z-index: 10; background: #fff; border-bottom: 1px solid var(--line); padding: 20px 0 16px; }
.zone .searchbar { height: 52px; }
.zone .searchbar .btn { height: 38px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
/* The sort button sits at the right end of the row of filter buttons: a darker edge and an icon set it apart from them.
   The select laid over it is transparent, so the button looks like the others and opens the browser's own list.
   The button shows only once the script is running; until then the sort box beside the count is the one in use */
.sort-pill { display: none; }
.has-sort-pill .sort-pill { position: relative; display: inline-flex; margin-left: auto; border-width: 1.5px; }
.has-sort-pill .sort-pill:not(.on) { border-color: var(--ink); }
.sort-pill .sort-word { display: none; }
.sort-pill select { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; opacity: 0; cursor: pointer; }
.sort-pill:focus-within { outline: 2px solid var(--blue); outline-offset: 2px; }
.has-sort-pill .results-head .head-sort { display: none; }
/* On a phone the sort button has a row of its own below the filter buttons */
.sort-row { display: none; }
.dd { position: relative; }
/* Panels that are not open take no space. Without this rule they would stretch the whole page wide on mobile */
.dd:not([open]) .panel { display: none; }
.dd > summary { list-style: none; }
.dd > summary::-webkit-details-marker { display: none; }
.dd[open] > summary { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
.dd .panel { position: absolute; z-index: 30; top: calc(100% + 8px); left: 0; min-width: 280px; max-height: min(72vh, 640px); overflow-y: auto;
  overscroll-behavior: contain; padding: 10px 8px 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--float); }
.dd .panel.right { left: auto; right: 0; }
.dd .panel .chk { padding: 7px 10px; border-radius: 8px; }
.dd .panel .chk:hover { background: var(--fill); }
.dd .panel .chk .n { margin-left: auto; padding-left: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
/* Options with a count of 0: still listed, grey, not clickable */
.chk.off, .dd .panel .chk.off { color: var(--muted); cursor: default; }
.dd .panel .chk.off:hover { background: none; }
.dd .panel .lbl { margin: 12px 10px 4px; font-size: 13px; color: var(--muted); }
.dd .panel .lbl:first-child { margin-top: 4px; }
.dd .panel select { width: auto; min-width: 200px; margin: 0 10px 4px; }
.dd .panel hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0 6px; }
.dd .panel > .hint { margin: 0 10px 6px; max-width: 300px; font-size: 13px; color: var(--muted); }
/* The level panel: three groups side by side, one column per group */
/* The Level panel in two columns: the long non-tenure-track group fills the right column, the other groups stack on the left */
.dd .panel .lv-groups { display: grid; grid-template-columns: repeat(2, max-content); gap: 4px 8px; align-items: start; }
.dd .panel .lv-grp { grid-column: 1; }
.dd .panel .lv-grp.long { grid-column: 2; grid-row: 1 / span 6; }
.dd .panel .lv-grp .lbl { margin-top: 4px; }
/* The row at the bottom of a panel: an Apply button. Changing the ticks and closing the panel by clicking outside also filters by the new choices; the button is for people who would rather not click outside, and for when there is no script */
.panel-foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; margin-top: 8px; padding: 10px; background: #fff; border-top: 1px solid var(--line); }

.results { padding-top: 20px; }
.results-head { display: flex; align-items: center; gap: 16px; min-height: 40px; margin-bottom: 12px; }
.results-head h1 { margin: 0; font-size: 20px; line-height: 1.3; letter-spacing: 0; }
.results-head .clear { font-size: 14px; font-weight: 600; }
.sort { margin-left: auto; display: flex; align-items: center; gap: 2px; font-size: 14px; color: var(--muted); white-space: nowrap; }
.sort select { width: auto; min-height: 0; border: 0; border-radius: 8px; padding: 8px 28px 8px 6px; font-weight: 600; color: var(--ink);
  background: var(--ico-down) right 6px center / 16px no-repeat; }
.sort select:hover { background-color: var(--fill); }
.sort select:focus { box-shadow: none; }
.sort select:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* Save this search and get email when there are new postings: a line of small text under the result count that opens into a one-line form */
.save-search { margin: -4px 0 16px; font-size: 14px; color: var(--muted); }
.save-search summary { display: inline-block; cursor: pointer; color: var(--blue); font-weight: 600; list-style: none; }
.save-search summary::-webkit-details-marker { display: none; }
.save-search summary:hover { color: var(--blue-dark); text-decoration: underline; }
.save-form { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.save-form input { flex: 1 1 200px; }
.save-form select { width: auto; }
.save-form .btn { height: 44px; }

/* A posting in a list: two columns with no box around them and a thin line between one posting and the next.
   The left column says what the job is: the title, then the institution, place and department, a line of grey attributes, a summary and the pay.
   The right column runs the full height and says when to apply, when it was posted, and holds the save buttons.
   Only the title, the institution's name and the note after an unstated salary are links. The summary and the blank space
   are not, so the text of a posting can be selected and copied */
.posting { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.posting:first-of-type { border-top: 1px solid var(--line); }
.posting h3 { line-height: 1.35; }
.posting a.job { color: var(--ink); }
.posting a.job:visited { color: var(--muted); }
.posting a.job:hover { text-decoration: underline; }
/* A posting just marked not interested folds into one line with an Undo, and stays that way until the page is loaded again */
.posting.put-away { display: block; padding: 14px 0; }
.posting.put-away > .p-main, .posting.put-away > .p-side { display: none; }
.put-away-line { margin: 0; font-size: 14px; color: var(--muted); }
.put-away-line button.link { margin-left: 8px; }
/* One small grey line at the foot of the list when postings the user marked not interested are left out of this page */
.put-away-note { margin: 20px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
.put-away-note a { color: inherit; font-weight: 400; text-decoration: underline; }
/* New: posted in the last week. Small blue capitals after the title */
.posting h3 .tag.new { margin-left: 6px; padding: 0; background: none; box-shadow: none; color: var(--blue); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 2px; }
p.where { margin: 4px 0 0; font-size: 15px; color: var(--muted); }
/* The institution, place and department take at most two lines: some postings list twenty departments there. The posting's page has all of it */
.posting p.where { margin-top: 3px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
p.where a { color: var(--ink); }
p.where a:hover { color: var(--blue-dark); }
.posting .sep { color: #a3a8b1; }
/* Small tags: 12-pixel text on a pale grey background with no border */
.tag { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--fill); color: #3d424a; font-size: 12px; line-height: 1.5; font-weight: 600; white-space: nowrap; max-width: 100%; }
/* The "(inferred)" after a value the posting did not state: it takes the colour of its row, fainter and not bold */
.inferred { font-weight: 400; opacity: .72; }
/* One or two sentences on who the posting is looking for, in a lighter grey than the title.
   At most three lines; longer text ends with an ellipsis, and the posting's page has all of it */
.gist { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: #4a4f58;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
/* Salary line: the pay as the posting states it, after a small banknote icon.
   At most two lines; longer text ends with an ellipsis, and the posting's page has all of it */
.pay { position: relative; margin: 8px 0 0; padding-left: 24px; font-size: 14px; color: var(--ink);
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.pay::before { content: ""; position: absolute; left: 0; top: 2px; width: 17px; height: 17px; background: var(--muted);
  -webkit-mask: var(--ico-pay) center / contain no-repeat; mask: var(--ico-pay) center / contain no-repeat; }
/* A posting that does not state its pay says so, and the whole line is in the secondary colour: only a salary the posting
   states is in the text colour. Where the institution's average salary for the same rank is a fair reference, it follows in
   brackets, one size smaller: it is a side note. The note is a link to the institution's salary table; it takes the
   colour of the line and turns blue on hover */
.pay.unstated { display: block; color: var(--muted); }
.pay.unstated .ref { font-size: 13px; }
.pay.unstated a { color: inherit; }
.pay.unstated a:hover { color: var(--blue-dark); }
/* The right column: each application date has its name above it, then the day it was posted, then the buttons */
.p-side { padding-left: 24px; border-left: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.p-side p { margin: 0; }
.p-side .when p + p { margin-top: 4px; }
.p-side .when strong { display: block; font-size: 16px; font-weight: 700; color: var(--ink); }
.p-side .posted { margin-top: 6px; }
/* Signed-in users save a posting or mark it not interested at the foot of the right column; once marked, this is a small block showing the progress, which leads to My jobs.
   Visitors who are not signed in see only Save there, which leads to the sign-in page */
.card-mark { position: relative; z-index: 1; display: flex; align-items: center; margin: 6px 0 0 -6px; }
.mark-btn { display: inline-flex; align-items: center; gap: 5px; height: 28px; padding: 0 6px; border: 0; border-radius: 8px; background: none;
  font-size: 13px; font-weight: 600; color: var(--blue); cursor: pointer; white-space: nowrap; }
.mark-btn:hover { background: var(--blue-pale); color: var(--blue-dark); text-decoration: none; }
.mark-btn.quiet { color: var(--muted); font-weight: 400; }
.mark-btn.quiet:hover { background: var(--fill); color: var(--ink); }
.mark-btn.save::before, .tag.mark::before { content: ""; width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--ico-save) center / contain no-repeat; mask: var(--ico-save) center / contain no-repeat; }
.tag.mark { display: inline-flex; align-items: center; gap: 5px; margin: 2px 0 0 6px; padding: 4px 10px; background: var(--blue-pale); color: var(--blue-dark); }
.tag.mark::before { width: 14px; height: 14px; -webkit-mask-image: var(--ico-saved); mask-image: var(--ico-saved); }
.tag.mark:hover { text-decoration: none; background: #d3e3ff; }
/* No results */
.none { padding: 40px 0; text-align: center; color: var(--muted); }
.none h2 { margin: 0 0 6px; color: var(--ink); }
.none .way { margin: 0 0 10px; color: var(--ink); }
.ways { margin: 0 0 14px; }
.ways .way { margin: 0 0 6px; }
.none .btn { margin-top: 12px; }
/* Pager: previous and next are white buttons with a blue border, with the page number between them */
.pager { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 24px; font-size: 14px; color: var(--muted); }
.pager .btn::before, .pager .btn::after { width: 16px; height: 16px; background: currentColor;
  -webkit-mask: var(--ico-down) center / contain no-repeat; mask: var(--ico-down) center / contain no-repeat; }
.pager .prev::before { content: ""; margin-left: -6px; transform: rotate(90deg); }
.pager .next::after { content: ""; margin-right: -6px; transform: rotate(-90deg); }
/* The note under the last page of a list */
.pager-note { margin: 12px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
/* How many postings a page shows: the current choice in bold, the others as links */
.per-page { margin: 12px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.per-page strong { color: var(--ink); font-weight: 600; }
.per-page a { font-weight: 600; }

/* The selected fields sit under the filter buttons, each a small block, on a single line that scrolls sideways when long, so the block pinned to the top of the window does not grow taller */
.fs { display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; margin-top: 12px; scrollbar-width: none; }
.fs::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; flex: none; align-items: center; gap: 2px; padding: 4px 4px 4px 12px; border-radius: 999px; background: var(--blue-pale); color: var(--blue-dark);
  font-size: 13px; line-height: 1.4; font-weight: 600; white-space: nowrap; }
.chip a { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; color: inherit; font-size: 16px; line-height: 1; text-decoration: none; }
.chip a:hover { background: #d3e3ff; }
/* The panel of the Field filter button: nine broad areas and Other fields in one column; the fields under a broad area are indented one step and appear only when that area is ticked.
   In browsers without :has() all the fields are shown, and it still works */
.dd .panel.fields { min-width: 400px; }
.dd .panel.fields .hint { margin: 2px 10px 8px; max-width: 420px; }
.fa-subs { margin: 0 0 6px 28px; }
.fa:has(> .chk input:not(:checked)) .fa-subs { display: none; }
.fa-subs .chk { font-size: 14px; }
dialog.looking-for-box { padding: 0; border: 0; border-radius: 16px; background: #fff; color: var(--ink); box-shadow: var(--float); }
dialog.looking-for-box::backdrop { background: rgba(20, 24, 31, .5); }

/* Job page. On a wide window it has two columns. The main one holds the job title, the institution and department, a table of key facts,
   a short summary on pale blue, and the posting itself in a frame. A narrow column to its right stays in view while the page scrolls:
   a card with the deadline and the buttons, a card to check one's fit, and the contents of the posting once the reader is in it.
   On a narrow window the side column comes under the title and does not follow the scroll */
.detail h1 { font-size: 32px; line-height: 1.18; letter-spacing: -.02em; }
p.where.big { margin: 8px 0 12px; font-size: 17px; }
p.where.big a { color: var(--blue); }
.detail.job { max-width: 920px; display: grid; grid-template-columns: minmax(0, 1fr) 228px; column-gap: 40px; align-items: start; }
.job-head, .job-main { grid-column: 1; min-width: 0; }
.job-side { grid-column: 2; grid-row: 1 / span 2; align-self: stretch; margin-top: 44px; }
.job-stick { position: sticky; top: 88px; max-height: calc(100vh - 108px); overflow-y: auto; }

/* The cards of the side column */
.side-card { padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.side-card + .side-card { margin-top: 12px; }
.side-label { display: block; margin: 0 0 4px; font-size: 12px; line-height: 1.4; font-weight: 600; color: var(--muted); }
.side-big { display: block; font-size: 22px; line-height: 1.25; letter-spacing: -.01em; }
.side-sub { display: block; font-size: 14px; color: var(--muted); }
/* The mark on a posting that may already be filled; its explanation appears on hover or tap, opening leftwards so that it stays inside the window */
.side-stale { display: inline-block; margin-top: 8px; padding: 3px 8px; border: 0; border-radius: 6px; background: var(--warn); font-size: 13px; font-weight: 600; }
.side-card > .side-stale:first-child { margin-top: 0; }
.side-stale .tip-text { left: auto; right: 0; font-weight: 400; }
.side-card .btn { width: 100%; margin-top: 10px; }
.side-card > .btn:first-child { margin-top: 0; }
.side-card > :is(.side-big, .side-sub, .side-stale) + .btn { margin-top: 14px; }
/* Apply: the word sits in the middle of the button, in line with the buttons under it; the mark for leaving the site is out at the right edge */
.side-card .btn.out { position: relative; }
.side-card .btn.out::after { position: absolute; right: 14px; top: 50%; margin-top: -9px; opacity: .85; }
.side-card .mark-form { display: block; }
.side-card .mark-form label { display: block; margin-top: 12px; font-size: 14px; }
.side-card .mark-form select { width: 100%; margin-top: 6px; }
.side-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 14px; }
.side-report { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.side-report a { color: var(--muted); }

/* Your fit: how many of the lines the reader has ticked in each group. In "n of m" the word "of" sits in the same place on every line, whatever the numbers */
.fit-tally { display: flex; justify-content: space-between; margin-top: 8px; font-size: 14px; }
.frac { white-space: pre; font-variant-numeric: tabular-nums; }
.frac-a, .frac-b { display: inline-block; width: 2ch; }
.frac-a { text-align: right; }
.fit-bar { height: 6px; margin: 5px 0 0; border-radius: 3px; background: var(--fill); overflow: hidden; }
.fit-bar i { display: block; width: 0; height: 100%; background: var(--blue); transition: width .15s; }
.fit-bar.soft i { background: #8fb3f0; }
.fit-card .btn { margin-top: 14px; }
/* The checklist opens in the middle of the window, over the page */
.fit-win { width: min(520px, calc(100vw - 32px)); max-height: min(80vh, 680px); padding: 0 18px 12px; border: 1px solid var(--line); border-radius: 14px;
  background: #fff; color: var(--ink); box-shadow: var(--float); }
.fit-win::backdrop { background: rgba(20, 24, 31, .32); }
.fit-win-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 14px 0 10px; background: #fff; }
.fit-win-head strong { font-size: 16px; }
.fit-x { width: 32px; height: 32px; margin-right: -8px; border: 0; border-radius: 8px; background: none; font-size: 22px; line-height: 1; color: var(--muted); cursor: pointer; }
.fit-x:hover { background: var(--fill); color: var(--ink); }
.fit-note { margin: 0 0 8px; font-size: 13px; color: var(--muted); }
.fit-group { display: flex; justify-content: space-between; margin: 12px 0 4px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.fit-list { list-style: none; margin: 0 0 4px; padding: 0; }
.fit-list label { display: flex; gap: 10px; margin: 0 -10px; padding: 8px 10px; border-radius: 8px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.fit-list label:hover { background: var(--fill); }
.fit-list label:has(input:checked) { background: var(--blue-pale); }
.fit-list input { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--blue); }
/* The contents list as a sheet, opened from the bar at the bottom of a phone's screen */
.sheet { padding: 0 18px 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: var(--float); }
.sheet::backdrop { background: rgba(20, 24, 31, .32); }
.toc-sheet ol { list-style: none; margin: 0; padding: 0; }
.toc-sheet a { display: block; padding: 11px 0; border-top: 1px solid var(--line); font-size: 15px; line-height: 1.35; color: var(--ink); }
.toc-sheet .sub a { padding-left: 18px; font-size: 14px; color: var(--muted); }

/* The contents of the posting: shown once the reader has reached the posting; the section being read is marked */
.side-toc { margin-top: 16px; padding: 0 4px; opacity: 0; visibility: hidden; transition: opacity .15s; }
.in-posting .side-toc { opacity: 1; visibility: visible; }
.side-toc ol { list-style: none; margin: 0; padding: 0; }
.side-toc a { display: block; padding: 5px 0 5px 12px; border-left: 2px solid var(--line); font-size: 14px; line-height: 1.35; color: var(--muted); }
.side-toc a:hover { color: var(--ink); text-decoration: none; }
.side-toc a.on { border-left-color: var(--blue); color: var(--ink); font-weight: 600; }
/* A group of sub-entries unfolds and folds by its height, so the entries under it slide instead of jumping */
.side-toc .sub { position: relative; height: 0; overflow: hidden; visibility: hidden; transition: height .2s ease, visibility 0s .2s; }
.side-toc li.open > .sub { visibility: visible; transition: height .2s ease, visibility 0s; }
@media (prefers-reduced-motion: reduce) { .side-toc .sub, .side-toc li.open > .sub { transition: none; } }
.side-toc .sub a { padding-left: 24px; font-size: 13px; }
[data-sec] { scroll-margin-top: 92px; }
/* On a phone Apply also sits in a bar fixed to the bottom of the window, so it is in reach wherever the reader is in the posting */
.apply-bar { display: none; }
.mark-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.mark-form select { width: auto; }
.facts { display: grid; grid-template-columns: 200px minmax(0, 1fr); margin: 28px 0 24px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.facts dt, .facts dd { margin: 0; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.facts dt { padding-right: 0; color: var(--muted); font-size: 14px; line-height: 24px; }
.facts > :nth-last-child(-n+2) { border-bottom: 0; }
.facts .tag { margin: 0 4px 4px 0; white-space: normal; }
/* A value with more to say: dotted underline; hovering, or tapping on a phone, shows the explanation below it */
.facts:has(.tip) { overflow: visible; }
.tip { position: relative; border-bottom: 1px dotted currentColor; cursor: help; outline-offset: 2px; }
.tip-text { position: absolute; left: 0; top: calc(100% + 8px); z-index: 20; width: min(340px, 70vw); padding: 10px 14px;
  border-radius: 8px; background: var(--ink); color: #fff; font-size: 14px; line-height: 1.5; visibility: hidden; opacity: 0;
  transition: opacity .12s; }
.tip:hover .tip-text, .tip:focus .tip-text { visibility: visible; opacity: 1; }
/* On the job page the table is drawn tighter, and its label column is just wide enough for the longest label */
.job .facts { grid-template-columns: 176px minmax(0, 1fr); margin: 28px 0 16px; }
.job .facts dt, .job .facts dd { padding: 9px 16px; }
.job .facts dt { padding-right: 0; }
/* The summary of who the posting is looking for, on pale blue: it is this site's own words, not the employer's */
.wants { margin: 0 0 20px; padding: 18px 20px 14px; border-radius: 12px; background: var(--blue-pale); }
.wants h2 { margin: 0 0 6px; font-size: 18px; }
.wants > p { margin: 0; }
/* Under the summary, a few labelled lines of short phrases, set off by a hairline. Label on the left, phrases on the right */
.wants-more { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 6px 12px; margin: 12px 0 0; padding-top: 12px; border-top: 1px solid rgba(15, 91, 215, .16); font-size: 15px; line-height: 1.55; }
.wants > h2 + .wants-more { margin-top: 4px; padding-top: 0; border-top: 0; }
.wants-more dt { margin: 0; color: var(--muted); font-size: 14px; line-height: 23px; }
.wants-more dd { margin: 0; }
/* Institution page: an overview table with a small locator map beside it, then the open postings, then a table of average faculty salaries by rank */
.about { margin: 24px 0 6px; }
.about.with-map { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: center; }
.about .facts { grid-template-columns: 160px minmax(0, 1fr); margin: 0; font-size: 15px; }
/* The link to a map after the address is never broken in the middle. When it has a line to itself under a one-line address, the dot before it is dropped */
.addr-map { white-space: nowrap; }
.addr-map.own-line .addr-dot { display: none; }
.about .facts dt, .about .facts dd { padding-top: 8px; padding-bottom: 8px; }
.about + p.small { margin: 0 0 8px; }
.locmap { margin: 0; }
.locmap svg { display: block; width: 100%; height: auto; }
.locmap .state { fill: #c6d6f0; stroke: #ffffff; stroke-width: 1; }
.locmap .dot { fill: var(--blue); stroke: #ffffff; stroke-width: 4; }
.faculty table.plain { margin-top: 0; }
.faculty caption { caption-side: top; text-align: left; padding: 0 0 10px; color: var(--muted); font-size: 14px; }
.faculty table.plain tbody th { font-size: inherit; font-weight: 400; color: var(--ink); border-bottom-color: var(--line); }
.faculty table.plain tr.total th, .faculty table.plain tr.total td { font-weight: 600; border-bottom: 0; }
.faculty .tenure { margin: 18px 0 8px; }
/* Full text of the posting: under the heading, a sentence saying this is the institution's posting and when it was read, then the text. The text is written by the institution, and its headings, lists and tables vary;
   this reins in their sizes and spacing, so that they do not outweigh the page's own headings, and long URLs or wide tables do not break the column.
   The text is set lighter than the page's own text, in a softer grey with more space between lines and paragraphs, so that it reads as reference material and a screenful of it is not a dark block.
   Headings stay dark, so that they stand out from the grey text and the eye has somewhere to land. Bold inside the text is a weight lighter than usual */
.original h2 { margin: 40px 0 14px; }
/* The posting sits in a frame with a title bar that names whose posting it is, like a document attached to the page: it is the employer's text, and must not be taken for this site's */
.post-frame { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.post-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 20px; padding: 12px 24px; border-bottom: 1px solid var(--line);
  background: var(--fill); font-size: 14px; color: var(--muted); }
.post-from strong { color: var(--ink); font-weight: 600; }
.post-src { font-size: 13px; }
.post-note { flex-basis: 100%; font-size: 13px; }
.post-note:empty { display: none; }
.post-frame .original-text { max-width: none; padding: 24px 24px 20px; }
.post-frame .fold-more { margin: 0; padding: 0 24px 20px; }
/* A posting that came as one big two-column table is set again as headings and paragraphs; its short label-and-value rows become a plain list */
.original-text ul.kv { list-style: none; padding-left: 0; }
.original-text { max-width: 70ch; color: #4a4f58; font-size: 15px; line-height: 1.75; overflow-wrap: break-word; overflow-x: auto; }
.original-text > :first-child { margin-top: 0; }
.original-text h3, .original-text h4, .original-text h5, .original-text h6 { margin: 28px 0 6px; color: var(--ink); font-size: 16px; line-height: 1.4; font-weight: 600; }
.original-text :is(h3, h4, h5, h6) u { text-decoration: none; }
.original-text b, .original-text strong { font-weight: 600; }
/* A long posting shows its first part, fading out, with a button under it for the rest */
.original-text.folded { max-height: 560px; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 65%, transparent); mask-image: linear-gradient(to bottom, #000 65%, transparent); }
.fold-more { margin: 4px 0 0; }
.original-text p, .original-text div { margin: 14px 0; }
.original-text div > p:first-child, .original-text div > div:first-child { margin-top: 0; }
.original-text ul, .original-text ol { margin: 12px 0; padding-left: 22px; }
.original-text li { margin: 6px 0; }
.original-text table { border-collapse: collapse; width: 100%; margin: 12px 0; }
.original-text td, .original-text th { border: 1px solid var(--line); padding: 6px 10px; vertical-align: top; text-align: left; }
.original-text hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
/* A window too narrow for two columns: one column, in the order title, side cards, the rest. The side cards do not follow the scroll, the contents list is left out,
   and the fit card shrinks to its name and its button */
@media (max-width: 960px) {
  .detail.job { max-width: 760px; grid-template-columns: minmax(0, 1fr); }
  .job-side { grid-column: 1; grid-row: auto; margin-top: 12px; }
  .job-stick { position: static; max-height: none; overflow: visible; }
  .side-toc { display: none; }
  .fit-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .fit-card[hidden] { display: none; }
  .fit-card .side-label { margin: 0; font-size: 14px; }
  .fit-card .fit-tally, .fit-card .fit-bar { display: none; }
  .fit-card .btn { width: auto; margin-top: 0; }
}

/* Tables such as the institution list: rows separated only by thin horizontal lines, with a header in small grey text */
table.plain { width: 100%; border-collapse: collapse; margin-top: 20px; }
table.plain th, table.plain td { text-align: left; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
table.plain th { font-size: 13px; font-weight: 600; color: var(--muted); border-bottom-color: var(--edge); }
table.plain td.num, table.plain th.num { text-align: right; padding-right: 0; font-variant-numeric: tabular-nums; }
/* Institution list: the location is its own column on a wide screen and a second line under the name on a phone */
table.plain.inst { margin-top: 0; }
table.plain.inst td.place, table.plain.inst th.place { white-space: nowrap; color: var(--muted); }
table.plain.inst th.num { white-space: nowrap; }
table.plain.inst td.zero { color: var(--muted); }
table.plain.inst .place-s { display: none; font-size: 14px; color: var(--muted); }
.inst-all { margin-top: 10px; padding: 0; font-size: 14px; color: var(--muted); align-items: center; width: fit-content; }
.inst-all input { width: 16px; height: 16px; margin: 0; }
@media (max-width: 640px) {
  table.plain.inst .place { display: none; }
  table.plain.inst .place-s { display: block; }
}
.count-head { margin: 28px 0 14px; font-size: 20px; }
/* Institution page: one line of key facts under the name, then three tabs. Each tab is a page of its own: the profile, faculty salaries, and the open postings */
.inst-line { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.tabs { display: flex; gap: 28px; margin: 22px 0 22px; border-bottom: 1px solid var(--line); }
.tabs a, .tabs .off { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--ink); font-size: 15px; white-space: nowrap; }
.tabs a:hover { color: var(--blue); text-decoration: none; }
.tabs a[aria-current] { border-bottom-color: var(--blue); font-weight: 600; }
.tabs .off { color: var(--muted); }
.tabs .n { padding: 1px 8px; border-radius: 10px; background: var(--fill); color: var(--muted); font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tabs + .about { margin-top: 0; }
/* The open postings of one institution can be narrowed by field and level, with the same buttons as the job list; the count and the sort sit on the same line */
.inst-filter { margin-bottom: 8px; }
.inst-filter .chips { margin-top: 0; }
.inst-count { display: flex; flex: 1 1 340px; align-items: center; gap: 16px; margin-left: 8px; }
.count-head.inline { margin: 0; font-size: 16px; font-weight: 600; white-space: nowrap; }
.fs-all { flex: none; align-self: center; margin-left: 6px; font-size: 14px; white-space: nowrap; }

/* Account pages */
.saved { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.saved form { display: flex; align-items: center; gap: 14px; flex: none; }
.saved select { width: auto; }
.looking-for { padding: 12px 16px; border: 1px solid var(--line); border-radius: 8px; }
.wish { margin: 20px 0; }
.wish .actions { margin-top: 10px; }
.wish .stack > .btn, .wish .actions .btn { margin-top: 0; }
.wish-read { margin-top: 18px; }
.wish-read p { margin: 0 0 8px; }
.wish-read .lbl { margin: 0 0 6px; }
.wish-read .tag { margin: 0 4px 6px 0; }
.match-ranks { margin: -4px 0 16px 4px; }
.match-ranks .unstated { color: var(--ink); font-weight: 600; }
dialog.looking-for-box { width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow-y: auto; padding: 8px 24px 24px; }
dialog.looking-for-box h2 { margin-top: 16px; }
.looking-for-box .stack > .btn { margin-top: 0; }
.looking-for-box .actions { margin-top: 24px; }
.looking-for-box .states { margin-top: 18px; }
.looking-for-box .states summary { cursor: pointer; display: list-item; margin: 0; }
.state-grid { columns: 5 72px; margin-top: 8px; }
.state-grid .chk { padding: 3px 0; }
/* My jobs */
.mine-group h2 .muted { font-weight: 400; margin-left: 4px; }
.mine-group summary { cursor: pointer; }
.mine-group summary h2 { display: inline-block; }
.mine { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mine h3 { font-size: 16px; }
.mine h3 a { color: var(--ink); }
.mine p { margin: 2px 0 0; }
.mine .where a { color: var(--ink); }
.mine-form { display: flex; gap: 12px; align-items: center; flex: none; }
.mine-form select { width: auto; }
/* Reporting an error */
.report fieldset { margin: 20px 0 4px; }
/* Post a job form: room above the "authorized" box and for the verification widget */
.report .chk.agree { margin-top: 20px; }
.report .human { margin-top: 16px; min-height: 65px; }
.notice-page form { margin: 0 0 20px; }

/* Ask page */
.home { max-width: 820px; margin: 0 auto; }
.home:not(.has-results) { padding-top: 8vh; }
.ask-label { display: block; font-size: 34px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 20px; }
.has-results .ask-label { font-size: 14px; font-weight: 600; letter-spacing: 0; margin-bottom: 6px; }
.ask-row { display: flex; gap: 10px; align-items: stretch; }
.ask textarea { font-size: 17px; padding: 14px 16px; border-radius: 12px; resize: none; }
.has-results .ask textarea { font-size: 16px; }
.ask-go { flex: none; height: auto; border-radius: 12px; padding: 0 24px; }
.ask-go[disabled] { opacity: .7; cursor: progress; }
.try { margin-top: 32px; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.try .lbl, .understood .lbl { display: inline; margin: 0; font-size: 13px; font-weight: 600; color: var(--muted); }
.try-one { padding: 8px 16px; border: 1px solid var(--edge); border-radius: 999px; color: var(--ink); font-size: 14px; }
.try-one:hover { background: var(--fill); color: var(--ink); text-decoration: none; }
.home-foot { margin-top: 40px; }
.understood { padding: 14px 18px; border: 1px solid var(--line); border-radius: 12px; margin: 20px 0 24px; }
.understood p { margin: 0 0 8px; }
.understood p:last-child { margin-bottom: 0; }
.understood .lbl { margin-right: 8px; }
.understood .tag { margin: 0 2px 4px 0; }
.results-title { font-size: 20px; letter-spacing: 0; margin-bottom: 14px; }

/* A line of grey text under a page title */
.page-sub { margin: 0 0 28px; font-size: 17px; color: var(--muted); }

/* Text pages: a single column of text. Links inside sentences are blue and underlined */
.prose h1 { font-size: 34px; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 16px; }
.prose h2 { margin: 40px 0 10px; }
.prose ul { margin: 0 0 12px; padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose p a, .prose li a { text-decoration: underline; }

/* Pages with only a few sentences, such as not found, error and unsubscribe: centred */
.notice-page { max-width: 560px; margin: 0 auto; padding: 8vh 0 4vh; text-align: center; }
.notice-page h1 { font-size: 32px; letter-spacing: -.02em; margin-bottom: 12px; }
.notice-page p { margin: 0 0 24px; }
.notice-alt { margin-left: 20px; font-weight: 600; }

/* Footer: a row of small text links with a thin line above */
.foot { border-top: 1px solid var(--line); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 6px 24px; max-width: 968px; margin: 0 auto; padding: 20px 24px 28px; font-size: 14px; color: var(--muted); }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--ink); }

@media (max-width: 1000px) {
  .top-inner { gap: 24px; }
  .top nav.main, .top-right { gap: 18px; }
}

/* Mobile: everything in one column. The header keeps only the logo, one button and the menu button; the two cells of the search bar stack; the filter buttons form one row that scrolls sideways, and dropdown panels rise from the bottom of the window */
@media (max-width: 720px) {
  .about .fields { columns: 1; }
  .rows .row { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px; }
  .rows dt { grid-column: 1 / -1; }
  .settings .card > h2 { padding: 12px 16px; }
  .settings .card-body { padding: 14px 16px 18px; }
  .rows .search-form { flex-wrap: wrap; gap: 8px 12px; }
  .rows.plain .row { grid-template-columns: minmax(0, 1fr); }
  .rows.plain span.act { text-align: left; }
  .pform .checks { columns: 1; }
  .pform .checks-want_states .checks { columns: 2; }
  .pform .actions { flex-wrap: wrap; }
  .about .lv-groups { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  main { padding-bottom: 48px; }
  main.page { padding-top: 28px; padding-bottom: 48px; }
  h1 { font-size: 26px; }
  .top-inner { height: 56px; padding: 0 8px 0 16px; gap: 12px; align-items: center; }
  .brand img { height: 21px; }
  .top nav.main, .top-right a.nav, .top-right form { display: none; }
  .top-right { gap: 0; }
  .top-right .btn { height: 34px; padding: 0 12px; font-size: 13px; }
  .menu { display: block; flex: none; }
  .menu > summary { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; cursor: pointer; list-style: none; }
  .menu > summary::-webkit-details-marker { display: none; }
  .menu > summary::before { content: ""; width: 24px; height: 24px; background: var(--ink);
    -webkit-mask: var(--ico-menu) center / contain no-repeat; mask: var(--ico-menu) center / contain no-repeat; }
  .menu[open] > summary::before { -webkit-mask-image: var(--ico-x); mask-image: var(--ico-x); }
  .menu-panel { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; padding: 4px 16px 12px; background: #fff;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(20, 24, 31, .14); }
  .menu-panel a, .menu-panel button.link { display: block; width: 100%; padding: 14px 4px; border-bottom: 1px solid var(--line); color: var(--ink);
    font-size: 16px; font-weight: 400; text-align: left; }
  .menu-panel a[aria-current] { font-weight: 700; }
  .menu-panel > :last-child, .menu-panel > form:last-child button { border-bottom: 0; }
  .menu-panel a:hover, .menu-panel button.link:hover { text-decoration: none; color: var(--blue); }

  .hero { padding-top: 36px; }
  .hero h1 { font-size: 32px; }
  .hero .dir-sub { margin: 12px 0 24px; font-size: 16px; }
  .searchbar { flex-direction: column; align-items: stretch; gap: 10px; height: auto; padding: 0; border: 0; border-radius: 0; box-shadow: none; }
  .searchbar:focus-within { box-shadow: none; }
  .searchbar .cell.what, .searchbar .cell.where { flex: none; height: 52px; border: 1px solid var(--edge); border-radius: 12px; }
  .searchbar .cell:focus-within { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue); }
  .searchbar .cell.where::after { display: none; }
  .searchbar .btn { height: 50px; border-radius: 12px; }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .area { padding: 16px 10px 14px; }
  .area-pic { margin-bottom: 6px; }
  .area-pic svg { width: 48px; height: 48px; }
  .area-name { font-size: 15px; }

  /* Job list: two rows stay at the top of the window, under the header: the row of filter buttons, then the sort button in
     a row of its own. The search box scrolls away with the page. The zone sticks far enough above the window's top that
     everything above the filter buttons is hidden; the script measures how far (--stick), and -65px is the fallback */
  .zone { top: var(--stick, -65px); padding: 14px 0 10px; }
  .zone.solo { position: static; }
  .zone .searchbar { position: relative; display: block; height: auto; }
  .zone .searchbar .cell.what { height: 48px; }
  /* Where to search is a switch at the right end of the search box */
  .zone .searchbar .cell.what input { padding-right: 112px; }
  .zone .searchbar .cell.mode { position: absolute; right: 12px; top: 0; height: 48px; padding: 0; }
  .zone .searchbar .cell.mode::after { display: none; }
  .mode-seg { display: none; }
  .mode-sw { display: inline-flex; }
  .state-opts { columns: 1; min-width: 0; }
  /* No Search button: tap the magnifier at the start of the box, or the search key on the keyboard */
  .zone .searchbar .btn { position: absolute; left: 1px; top: 1px; width: 48px; height: 46px; padding: 0; border: 0; border-radius: 12px 0 0 12px;
    background: transparent; box-shadow: none; color: transparent; font-size: 0; }
  .zone .searchbar .btn:focus-visible { outline: 2px solid var(--blue); outline-offset: -2px; }
  /* In its own row the sort button looks like the filter buttons and says "Sort:" in words instead of the icon */
  .has-sort-pill .zone .sort-row { display: flex; margin-top: 6px; }
  .has-sort-pill .sort-pill { margin-left: 0; border-width: 1px; }
  .has-sort-pill .sort-pill:not(.on) { border-color: var(--edge); }
  .sort-pill svg { display: none; }
  .sort-pill .sort-word { display: inline; }
  .sort-pill select { font-size: 16px; }
  /* What is chosen shows as numbers on the buttons; the row listing each choice is left out to save room */
  .zone .fs { display: none; }
  .chips { flex-wrap: nowrap; overflow-x: auto; margin: 12px -16px 0; padding: 2px 16px; scrollbar-width: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chips > * { flex: none; }
  /* On an institution's page the row of buttons is short: let the count and the sort wrap onto a line of their own instead of scrolling */
  .inst-filter .chips { flex-wrap: wrap; overflow-x: visible; margin: 0; padding: 0; }
  .inst-filter .chips > .inst-count { flex: 1 1 100%; margin-left: 0; justify-content: space-between; }
  .dd { position: static; }
  .dd .panel, .dd .panel.right { position: fixed; top: auto; left: 0; right: 0; bottom: 0; max-height: 82vh; padding: 16px 12px 0; border-radius: 16px 16px 0 0;
    box-shadow: 0 -4px 24px rgba(20, 24, 31, .25); }
  /* A short grey bar at the top of a panel shows that it rose from the bottom; drag the panel down, or click outside it, to close it */
  .dd .panel { transition: transform .2s ease-out; }
  .dd .panel::before { content: ""; display: block; width: 36px; height: 4px; margin: 0 auto 12px; border-radius: 2px; background: var(--line); }
  .dd .panel.dragging { transition: none; }
  .dd .panel .lv-groups { grid-template-columns: 1fr; }
  .dd .panel .lv-grp, .dd .panel .lv-grp.long { grid-column: auto; grid-row: auto; }
  .dd .panel .lv-grp + .lv-grp .lbl { margin-top: 12px; }
  .panel-foot { padding: 12px 10px 20px; }
  .panel-foot .btn { width: 100%; height: 44px; font-size: 16px; }
  .fs { margin-left: -16px; margin-right: -16px; padding: 0 16px; }
  .results { padding-top: 14px; }
  .results-head { flex-wrap: wrap; gap: 0 16px; }
  .results-head h1 { font-size: 18px; }
  .sort { flex-basis: 100%; margin-left: 0; }
  .sort select { min-height: 44px; }
  /* On a phone the right column drops under the left one and becomes a line: the dates on the left, the day it was posted on the right, the buttons below */
  .posting { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 18px 0 12px; }
  .posting h3 { font-size: 17px; }
  .gist { -webkit-line-clamp: 6; line-clamp: 6; }
  .p-side { padding: 0; border: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 12px; font-size: 14px; }
  .p-side .when { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 6px; }
  .p-side .when p + p { margin-top: 0; }
  .p-side .when p + p::before { content: "· "; color: #a3a8b1; }
  .p-side .when strong { display: inline; font-size: 14px; font-weight: 600; }
  .p-side .posted { margin: 0 0 0 auto; }
  .card-mark { flex: 1 0 100%; margin: 4px 0 0 -12px; }
  /* Things to tap are at least 44px tall on a phone */
  .mark-btn { height: 44px; padding: 0 12px; font-size: 14px; }
  .inst-all { min-height: 44px; margin-top: 4px; font-size: 15px; }
  .inst-all input { width: 20px; height: 20px; }
  .pager .btn { height: 44px; }
  .tag { font-size: 13px; }
  /* Tags with long field names that do not wrap would stretch the whole page on narrow screens, and mobile browsers would then shrink the page or let it be dragged sideways */
  .tag { white-space: normal; }

  .detail h1 { font-size: 26px; }
  p.where.big { font-size: 16px; }
  .post-head { padding: 10px 16px; }
  .post-frame .original-text { padding: 18px 16px 16px; }
  .post-frame .fold-more { padding: 0 16px 16px; }
  .apply-bar { display: flex; gap: 8px; position: fixed; z-index: 15; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -2px 12px rgba(20, 24, 31, .08); }
  .apply-bar[hidden] { display: none; }
  .apply-bar .btn { flex: none; height: 48px; padding: 0 14px; font-size: 15px; }
  .apply-bar .btn.out { flex: 1; font-size: 16px; }

  /* Job page on a phone. Apply lives in the bar at the bottom, with buttons there for the contents and the checklist, so the card under the title
     gives up its Apply button and its frame: the deadline on one line, then the small actions on the next. The fit card is left out */
  .job-side { margin-top: 4px; }
  .job-side .side-card { padding: 0; border: 0; border-radius: 0; }
  .job-side .fit-card { display: none; }
  .side-big { display: inline; font-size: 20px; }
  .side-sub { display: inline; margin-left: 8px; }
  .side-stale { margin: 0 0 0 8px; vertical-align: 2px; }
  .side-stale .tip-text { right: auto; left: 50%; transform: translateX(-70%); }
  .side-card .btn.out { display: none; }
  .side-card .btn.ghost, .side-card > :is(.side-big, .side-sub, .side-stale) + .btn.ghost { display: flex; width: fit-content; height: 36px; margin-top: 12px; padding: 0 16px; font-size: 14px; }
  .side-label { margin-bottom: 0; }
  .side-card .mark-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0 18px; }
  .side-card .mark-form label { margin-top: 12px; }
  .side-card .mark-form select { width: auto; margin-top: 12px; }
  .side-links { justify-content: flex-start; gap: 18px; }
  .side-report { margin-top: 12px; padding-top: 0; border-top: 0; }
  /* The table keeps label and value on one line, so that it is half as tall */
  .job .facts { grid-template-columns: 138px minmax(0, 1fr); margin: 20px 0 14px; }
  .job .facts dt { padding: 9px 0 9px 14px; border-bottom: 1px solid var(--line); line-height: 1.5; }
  .job .facts dd { padding: 9px 14px 9px 10px; font-size: 15px; }
  .job .facts > :nth-last-child(-n+2) { border-bottom: 0; }
  .wants { padding: 16px 16px 12px; }
  .wants-more { grid-template-columns: 72px minmax(0, 1fr); gap: 6px 8px; }
  /* The posting's frame runs from edge to edge of the screen */
  .post-frame { margin: 0 -16px; border-left: 0; border-right: 0; border-radius: 0; }
  /* The contents and the checklist come up from the bottom edge as sheets */
  dialog.fit-win, dialog.sheet { width: 100%; max-width: 100%; max-height: 82vh; margin: auto 0 0; padding-bottom: calc(12px + env(safe-area-inset-bottom));
    border-width: 1px 0 0; border-radius: 16px 16px 0 0; }
  body:has(.apply-bar) main { padding-bottom: 112px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dt { padding: 12px 16px 0; border-bottom: 0; line-height: 1.5; }
  .facts dd { padding: 2px 16px 12px; }
  .facts > :nth-last-child(2) { border-bottom: 0; }
  /* On mobile the map goes under the overview table, at a width that still shows the whole country */
  .about.with-map { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .about .facts { grid-template-columns: minmax(0, 1fr); }
  .about .facts dt { padding: 10px 16px 0; }
  .about .facts dd { padding: 2px 16px 10px; }
  .locmap { max-width: 360px; }
  .saved, .mine { flex-direction: column; align-items: flex-start; gap: 8px; }
  .page-sub { font-size: 16px; }
  .prose h1, .notice-page h1 { font-size: 28px; }
  .home:not(.has-results) { padding-top: 2vh; }
  .ask-label { font-size: 26px; }
  .ask-row { flex-direction: column; }
  .ask-go { height: 48px; }
  .notice-alt { display: block; margin: 16px 0 0; }
  .pager { gap: 12px; }
  .state-grid { columns: 4 60px; }
  .foot-inner { padding: 16px 16px 24px; }
}

/* Home page: the nine fields are the way in */
/* Home page: the heading and the field cards below the search bar, as wide as the search bar */
.entry { max-width: 860px; margin: 56px auto 0; }
.entry h2 { margin: 0 0 18px; font-size: 22px; line-height: 1.3; letter-spacing: -.01em; text-align: center; }
/* A field's own page: its name on top, its subfields in a row above the results */
/* A field's own job list: the field's picture and name above the search bar, with a link back to the cards */
.here { display: flex; align-items: center; gap: 16px; margin: 0 0 14px; }
.here-name { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 26px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; color: var(--ink); }
.here-pic { color: var(--blue); }
.here-pic svg { display: block; width: 34px; height: 34px; }
.here-back { font-size: 14px; font-weight: 600; }
.here-name a { color: inherit; text-decoration: none; }
.here-name a:hover { text-decoration: underline; }
.here-sep { color: var(--muted); font-weight: 400; }
/* Links to each field's own page, below the results */
.sub-links { margin: 36px 0 8px; padding-top: 20px; border-top: 1px solid var(--line); }
.sub-links h2 { margin: 0 0 12px; font-size: 17px; }
.sub-links ul { list-style: none; margin: 0; padding: 0; columns: 3 220px; column-gap: 28px; }
.sub-links li { padding: 3px 0; font-size: 14.5px; break-inside: avoid; }
.sub-links .n { color: var(--muted); font-size: 13px; }
@media (max-width: 720px) {
  .entry { margin-top: 36px; }
  .entry h2 { font-size: 19px; }
  .here-name { font-size: 22px; }
  .here-pic svg { width: 28px; height: 28px; }
}
/* The Field panel on a field's own list: that field's fields in two columns, filled down the left column first; the other broad fields sit folded under one line */
.dd .panel .sub-opts { display: grid; grid-auto-flow: column; grid-template-rows: repeat(var(--rows), auto); grid-template-columns: repeat(2, max-content); gap: 0 8px; }
/* On a narrow screen the panel is as wide as the window and the fields are one column */
@media (max-width: 720px) {
  .dd .panel .sub-opts { display: block; }
  .dd .panel.fields { min-width: 0; }
}
.dd .panel .more-areas { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.dd .panel .more-areas > summary { padding: 8px 10px; border-radius: 8px; color: var(--blue); font-size: 14px; font-weight: 600; cursor: pointer; list-style: none; }
.dd .panel .more-areas > summary::-webkit-details-marker { display: none; }
.dd .panel .more-areas > summary::before { content: "+ "; }
.dd .panel .more-areas[open] > summary::before { content: "\2212  "; }
.dd .panel .more-areas > summary:hover { background: var(--fill); }
.dd .panel .more-areas.only { margin-top: 0; padding-top: 0; border-top: 0; }
/* The layer a field card opens on the home page: fields on the left, kinds of position on the right, one column each; a field with no fields of its own shows the right column only.
   On a phone it rises from the bottom and the two columns stack */
dialog.pick { width:px, calc(100vw - 32px)); max-width: none; max-height: min(88vh, 860px); padding: 0; border: 0; border-radius: 16px; color: var(--ink); box-shadow: 0 24px 64px rgba(0, 0, 0, .28); overflow: hidden; }
dialog.pick::backdrop { background: rgba(15, 23, 42, .45); }
dialog.pick .pick-in { max-height: inherit; }
dialog.pick form { display: flex; flex-direction: column; max-height: inherit; }
.pick-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px 14px; border-bottom: 1px solid var(--line); }
.pick-head h2 { flex: 1; margin: 0; font-size: 22px; line-height: 1.2; letter-spacing: -.01em; }
.pick-pic { color: var(--blue); }
.pick-pic svg { display: block; width: 32px; height: 32px; }
.pick-x { width: 36px; height: 36px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 26px; line-height: 1; cursor: pointer; }
.pick-x:hover { background: var(--fill); color: var(--ink); }
.pick-body { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0 8px 12px; }
.pick-body h3 { margin: 18px 0 2px; font-size: 17px; }
.pick-body .hint { margin: 0 0 8px; }
.pick-body section { padding: 0 12px; }
.pick-body section + section { border-left: 1px solid var(--line); }
.pick-body.solo { display: block; }
dialog.pick.solo { width: min(440px, calc(100vw - 32px)); }
.pick-grp + .pick-grp { margin-top: 6px; }
.pick .chk { padding: 6px 8px; border-radius: 8px; }
.pick .chk:hover { background: var(--fill); }
.pick .chk .n { margin-left: auto; padding-left: 16px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pick .lbl { margin: 8px 8px 4px; font-size: 13px; font-weight: 400; color: var(--muted); }
.pick-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; border-top: 1px solid var(--line); background: #fff; }
.pick-foot a { font-size: 14px; font-weight: 600; }
@media (max-width: 720px) {
  dialog.pick { width: 100vw; max-height: 92vh; margin: auto 0 0; border-radius: 16px 16px 0 0; }
  .pick-head { padding: 14px 16px 12px; }
  .pick-head h2 { font-size: 20px; }
  dialog.pick.solo { width: 100vw; }
  .pick-body { display: block; padding: 0 0 12px; }
  .pick-body section + section { margin-top: 14px; border-left: 0; border-top: 1px solid var(--line); }
  .pick-foot { padding: 10px 16px; }
  .pick-foot .btn { flex: none; }
}

/* Topics: the invitation above the list and between postings, and the dialog where a visitor marks topics.
   Solid blue is kept for the Apply button alone. A chosen topic looks like a filter in use (.chip): pale blue, dark blue text.
   A topic the visitor wants less of is grey and struck through. The middle column, where the choosing happens, is the only
   one with outlined topics. */
.tagbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 4px 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: #fafbfc; }
.tagbar.invite { border-color: #b9cdf5; background: #f3f7ff; }
.tagbar.mid { margin: 18px 0; }
/* While the list is sorted by relevance the bar is one quiet line of grey text */
.tagbar.quiet { margin: -6px 0 16px; padding: 0; border: 0; background: none; }
.tagbar.quiet .tagbar-say { font-size: 14px; color: var(--muted); }
.tagbar.quiet .tagbar-say button.link { font-size: 14px; }
.results-head .share { margin-left: auto; }
.results-head .share ~ .sort { margin-left: 0; }
/* On a phone the count and Clear filters fill the line, so Share keeps only its icon */
@media (max-width: 720px) {
  .results-head .share { width: 44px; height: 44px; padding: 0; }
  .results-head .share [data-copy-word] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  /* Copied: the button keeps its size and the link icon turns into a tick */
  .results-head .share.copied { background: var(--blue-pale); }
  .results-head .share.copied svg { display: none; }
  .results-head .share.copied::before { content: "\2713"; font-size: 18px; }
}
.tagbar-say { flex: 1 1 100%; margin: 0; font-size: 15px; color: var(--ink); }
/* On a phone the sentence takes two lines. Where the question fits on the first, "Try ..." starts the second; on a phone
   narrower than that the question itself wraps, and the sentence runs on without a forced break */
@media (min-width: 330px) and (max-width: 720px) { .tagbar-say .tagbar-try { display: block; } }
.tagbar-alt { font-size: 14px; font-weight: 600; }
.linklike { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: var(--blue); text-decoration: underline; cursor: pointer; }
.refine { width: min(960px, calc(100vw - 24px)); max-height: calc(100vh - 40px); padding: 0; border: 0; border-radius: 14px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); color: var(--ink); }
.refine::backdrop { background: rgba(20, 24, 30, .45); }
.refine form { position: relative; display: flex; flex-direction: column; max-height: calc(100vh - 40px); }
.refine-head { padding: 22px 28px 6px; }
.refine-head h2 { margin: 0; font-size: 20px; letter-spacing: 0; }
.refine-head p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.refine-cols { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 14px; padding: 16px 28px 22px; overflow-y: auto; }
.refine-col { min-height: 230px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; }
.refine-col h3 { display: flex; justify-content: space-between; margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none; color: var(--muted); }
.refine-col h3 b { font-weight: 600; }
.refine-col.on h3 { color: var(--blue-dark); }
.refine-box { display: flex; flex-wrap: wrap; align-content: flex-start; gap: 8px; }
.tg { display: inline-flex; align-items: center; height: 32px; padding: 0; border: 1px solid var(--line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; line-height: 1; color: var(--ink); }
.tg .lb { padding: 0 4px; }
.tg .pm { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 50%; background: none; font: inherit; font-size: 17px; line-height: 1; color: var(--muted); cursor: pointer; }
.tg .pm:hover { background: var(--fill); color: var(--ink); }
button.tg { gap: 8px; padding: 0 11px 0 12px; border-color: transparent; cursor: pointer; }
button.tg::after { content: "×"; display: inline-block; font-size: 16px; font-weight: 400; opacity: .7; }
button.tg.on { background: var(--blue-pale); color: var(--blue-dark); font-weight: 600; }
button.tg.no { background: var(--fill); color: var(--muted); }
button.tg.no span { text-decoration: line-through; }
button.tg:hover::after { opacity: 1; }
.tg.fresh { animation: tgin .6s ease-out; }
@keyframes tgin { from { background: var(--blue-pale); transform: scale(.94); } to { background: #fff; transform: none; } }
.refine-foot { display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 14px 28px; border-top: 1px solid var(--line); background: #fafbfc; }
.refine-foot .btn { height: 40px; padding: 0 20px; font-size: 15px; }
.refine-foot .btn.quiet { padding: 0 12px; border-color: transparent; background: none; color: var(--muted); }
.refine-foot .btn.quiet:hover { background: var(--fill); color: var(--ink); }
.refine-keep { margin-right: auto; font-size: 13px; color: var(--muted); }
.refine-wait { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; background: rgba(255, 255, 255, .88); font-size: 16px; font-weight: 600; }
.refine-wait[hidden] { display: none; }
.spin { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--blue); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 720px) {
  .refine-head { padding: 18px 16px 4px; }
  .refine-cols { grid-template-columns: 1fr; gap: 10px; padding: 12px 16px 16px; }
  .refine-col { min-height: auto; }
  .refine-col.mid { order: -1; }
  .refine-foot { flex-wrap: wrap; padding: 12px 16px; }
  .refine-keep { flex: 1 1 100%; margin: 0 0 4px; }
}

/* Shared lists: the box with the link on a list's own page, the form for a new list, and the closing block on the shared page */
/* On a posting, Add to list sits after Save and Not interested and wraps under them when the column is narrow */
.card-mark { flex-wrap: wrap; }
.card-mark .tag.mark { order: -1; }
.share-box { margin: 16px 0 28px; padding: 16px 20px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.share-box p { margin: 0 0 10px; }
.share-box form { margin: 0; }
.share-link { display: flex; gap: 8px; align-items: center; margin: 0 0 10px; }
.share-link input { flex: 1; min-width: 0; }
.list-new { margin-top: 24px; }
.list-new-row { display: flex; gap: 8px; }
.list-new-row input { flex: 1; min-width: 0; }
.list-delete { margin-top: 28px; }
.list-add .list-pick { margin: 16px 0 24px; }
.shared-cta { margin-top: 28px; padding: 20px; border-radius: 12px; background: var(--fill); }
.shared-cta p { margin: 0 0 12px; }
.shared-cta p:last-child { margin: 0; }
@media (max-width: 720px) {
  .share-link, .list-new-row { flex-wrap: wrap; }
  .share-link input, .list-new-row input { flex: 1 0 100%; }
}
