/* Design tokens: a light, restrained palette with Forma purple as the one accent.
   Manrope for headings, Inter for everything else. Spacing is on a 4px grid. */
:root {
  color-scheme: light;
  --accent: #692fe5;
  --accent-strong: #5524c4;
  --accent-soft: #f4f0fd;
  --accent-line: #dcd0f8;
  --featured: #f8f5ff;  /* featured rows */
  --wash: #f3effd;  /* the inner pages' lavender hero */
  --night: linear-gradient(115deg, #16062e, #27153c 45%, #2a0b52);  /* the header and the home page's hero */
  --violet: #c9b1ff;  /* the highlight on --night (Forma's lavender) */
  --focus: rgba(105, 47, 229, .18);
  --ink: #16131c;
  --text: #3d3946;
  --muted: #6f6a7a;
  --line: #e8e6ec;
  --line-strong: #d3d0da;
  --bg: #fafafb;
  --surface: #fff;
  --hover: #f7f6f9;
  --radius-sm: 8px;   /* controls, buttons, logos */
  --radius: 12px;     /* panels */
  --radius-lg: 16px;  /* the search card, cards, the job list, the banner */
  --shadow: 0 10px 28px rgba(22, 19, 28, .1), 0 1px 3px rgba(22, 19, 28, .06);
  --shadow-soft: 0 1px 2px rgba(22, 19, 28, .04), 0 12px 32px rgba(105, 47, 229, .07);
  --ease: 120ms ease;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
body.locked { overflow: hidden; }
h1, h2, h3 { margin: 0; color: var(--ink); }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding: 0 24px; }
svg { flex: none; }

/* Buttons: one shape everywhere. Quiet by default, purple for the main action,
   purple outline for the second one. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 32px; padding: 0 14px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface);
  color: var(--ink); font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}
.button:hover { border-color: var(--accent); color: var(--accent); }
.button.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
.button.primary:hover { border-color: var(--accent-strong); background: var(--accent-strong); color: #fff; }
.button.outline { border-color: var(--accent); color: var(--accent); }
.button.outline:hover { background: var(--accent-soft); }
.button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Header: the board's name with "by Forma.ai", then Jobs and a Resources menu; Post a job
   and the Job alerts button sit at the right, white on the dark bar. Under 1000px the links fold
   into a hamburger panel (nav.js); the Job alerts button stays beside it until phone width. */
.top { position: relative; z-index: 35; background: var(--night); border-bottom: 1px solid rgba(255, 255, 255, .12); }  /* above the page's own dropdowns, below the sticky bar (40) */
.bar { display: flex; align-items: center; gap: 8px 32px; min-height: 76px; padding-top: 10px; padding-bottom: 10px; }
.identity { display: flex; align-items: center; gap: 14px; min-width: 0; }
/* The mark is one image (site/brand/mark.svg, set in scripts/brand.mjs); the wordmark is live text, on one line or two
   (wordmarkLayout in scripts/brand.mjs). */
.name { display: inline-flex; align-items: center; gap: 12px; color: #fff; font: 800 20px/1.2 Manrope, Inter, sans-serif; letter-spacing: -.01em; text-decoration: none; }
.mark { flex: none; display: block; width: 40px; height: 40px; }
.wordmark { display: flex; white-space: nowrap; }
.wordmark.one-line { gap: .28em; }
.wordmark.two-line { flex-direction: column; line-height: 1.05; }
.by { padding: 4px 0 4px 14px; border-left: 1px solid rgba(255, 255, 255, .3); color: rgba(255, 255, 255, .75); font-size: 15px; font-weight: 500; line-height: 20px; text-decoration: none; }
.by:hover { color: #fff; }
.links { display: flex; flex: 1; align-items: center; align-self: stretch; justify-content: space-between; gap: 16px; font-size: 14px; }
.nav-main { display: flex; align-items: center; align-self: stretch; gap: 24px; }
.nav-link { color: rgba(255, 255, 255, .88); text-decoration: none; transition: color var(--ease); }
.nav-link:hover { color: #fff; }
.nav-link[aria-current="page"] { color: #fff; font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.actions { display: flex; align-items: center; gap: 24px; }
.actions .button { min-height: 40px; padding: 0 16px; }
.actions .button.primary { border-color: #fff; background: #fff; color: var(--accent-strong); font-weight: 700; box-shadow: 0 1px 2px rgba(22, 6, 46, .25); }
.actions .button.primary:hover { border-color: #ede9fe; background: #ede9fe; color: var(--accent-strong); }
.name:focus-visible, .by:focus-visible, .nav-link:focus-visible, .burger:focus-visible, .actions .button:focus-visible { outline-color: #fff; }

/* Resources: a button with a chevron, and a floating card of columns under the header.
   A short invisible strip above the card keeps the mouse hover from dropping on the way down. */
.nav-resources { display: flex; align-self: stretch; align-items: center; gap: 2px; }
.menu-toggle {
  display: inline-flex; align-items: center; gap: 4px; height: 28px; margin-left: -6px; padding: 0 4px 0 6px; border: 0; border-radius: var(--radius-sm);
  background: none; font: inherit; cursor: pointer; transition: color var(--ease), background var(--ease);
}
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] { background: rgba(255, 255, 255, .12); color: #fff; }
.menu-toggle svg, .burger svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.menu-toggle svg { transition: transform var(--ease); }
.menu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu-panel {
  position: absolute; top: calc(100% - 16px); left: max(32px, calc(50% - 628px)); right: max(32px, calc(50% - 628px)); z-index: 36; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 28px 64px rgba(22, 10, 46, .30), 0 8px 20px rgba(22, 10, 46, .12);
}  /* a floating card 8px below the Resources button, 8px narrower than the header's content (.wrap) on each side so its edges never line up with the search card */
/* While the dropdown is open, a dim layer covers the page under the header (.top is 35, so the header and the
   menu stay bright). Clicking it closes the menu without reaching what is underneath (nav.js). */
.menu-backdrop { position: fixed; inset: 0; z-index: 34; background: rgba(15, 10, 30, .4); opacity: 0; visibility: hidden; transition: opacity .18s ease, visibility 0s linear .18s; }
.menu-backdrop.show { opacity: 1; visibility: visible; transition: opacity .18s ease; }
.menu-panel::before { content: ""; position: absolute; top: -8px; right: 0; left: 0; height: 8px; }  /* covers the gap up to the button */
.menu-cols { display: grid; grid-template-columns: minmax(0, 626fr) minmax(0, 316fr) minmax(0, 300fr); grid-template-rows: repeat(3, auto); row-gap: 6px; }  /* Grow your skills, Stay informed, Solutions, sized so at full width every heading and every description but the Think Tank one fits on one line; rows: heads, first links, second links */
.menu-panel .menu-col { display: grid; grid-row: 1 / -1; grid-template-rows: subgrid; align-items: start; padding: 20px; }  /* columns share the rows, so a two-line description in one column pushes the next link down in all of them */
.menu-panel .menu-col + .menu-col { border-left: 1px solid var(--line); }
.menu-panel .menu-col.work { border-left-color: var(--accent-line); }
.menu-panel .menu-col:first-child { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }  /* its four links two by two, level with the other columns' two */
.menu-panel .menu-col:first-child > .menu-head { grid-column: 1 / -1; }
.menu-head { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: minmax(34px, auto) auto; align-content: start; column-gap: 12px; align-self: stretch; margin-bottom: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }  /* icon beside the heading, a hairline under it; every head the same two rows so headings, hairlines and links line up across columns */
.menu-col.work .menu-head { border-bottom-color: var(--accent-line); }
.menu-panel .menu-head .menu-icon { width: 34px; height: 34px; grid-row: 1; }
.menu-head .menu-group { grid-row: 1; align-self: center; margin: 0; }  /* centred on the icon in every column */
.menu-head .menu-sub { grid-row: 2; grid-column: 2; margin: -2px 0 0; line-height: 16px; }  /* "From Forma.ai" tucked under its heading, below the icon line, so it doesn't push the heading up */
.menu-icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.menu-icon.craft { background: #e8f3ff; color: #1f6fd1; }
.menu-icon.current { background: #fff1e6; color: #c2570c; }
.menu-icon.work { background: var(--accent); color: #fff; }
.menu-col.work { background: var(--accent-soft); }
.menu-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.menu-group { margin: 2px 0; color: var(--ink); font: 700 15px/1.3 Manrope, Inter, sans-serif; }
.menu-sub { margin: -6px 0 2px; color: var(--muted); font-size: 12.5px; }
.menu-item { display: block; align-self: stretch; margin: 0 -10px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.menu-item:hover { background: var(--accent-soft); }
.work .menu-item:hover { background: var(--surface); }
.menu-title { display: block; font-size: 14px; font-weight: 600; }
.menu-item:hover .menu-title { color: var(--accent-strong); }
.menu-desc { display: block; margin-top: 1px; color: var(--muted); font-size: 12.5px; line-height: 1.4; }

/* The hamburger and its panel: only below 1000px (see the media queries). */
.burger {
  display: none; flex: none; place-items: center; width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255, 255, 255, .35);
  border-radius: var(--radius-sm); background: none; color: #fff; cursor: pointer;
  transition: border-color var(--ease), color var(--ease);
}
.burger svg { width: 20px; height: 20px; }
.burger:hover, .burger[aria-expanded="true"] { border-color: #fff; color: #fff; }
.burger .close, .burger[aria-expanded="true"] .open { display: none; }
.burger[aria-expanded="true"] .close { display: inline; }
.mobile-menu {
  display: none; position: absolute; top: 100%; right: 0; left: 0; z-index: 30; max-height: calc(100vh - 72px); overflow-y: auto;
  padding: 6px 24px 16px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
}
.mm-link { display: block; padding: 12px 10px; color: var(--ink); font-size: 15px; font-weight: 500; text-decoration: none; }
.mm-link:hover, .mm-link[aria-current="page"] { color: var(--accent); }
.mm-link[aria-current="page"] { font-weight: 600; }
.mm-talent { display: none; }  /* in the panel only at phone width; beside the hamburger before that */
.mobile-menu .menu-col { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 10px; padding: 12px 10px; border-top: 1px solid var(--line); }
.mobile-menu .menu-icon { width: 28px; height: 28px; border-radius: 8px; }
.mobile-menu .menu-icon svg { width: 16px; height: 16px; }
.mobile-menu .menu-item { grid-column: 1 / -1; }
.mobile-menu .menu-sub { grid-column: 2; margin: -6px 0 2px; }

/* Inner pages' hero: a faint lavender wash with Forma hexagons on the right, fading into the page. */
.hero {
  padding: 80px 0 8px;
  background: url("hexagons.svg") right max(-160px, calc(50% - 680px)) top 24px / 640px auto no-repeat,
    linear-gradient(180deg, var(--wash), var(--bg));
}
.intro { padding-bottom: 40px; }
.intro h1 { max-width: 15ch; text-wrap: balance; font: 800 clamp(38px, 6vw, 68px)/1.04 Manrope, Inter, sans-serif; letter-spacing: -.035em; }
.intro h1 span { display: block; color: var(--accent); }  /* its own line, as in the mockup */
.intro p { margin: 20px 0 0; max-width: 60ch; color: var(--muted); font-size: 17px; }

/* The home page's hero: dark purple with a violet glow toward the top right. body.home pulls it up under
   a see-through header, so the two read as one background (a roundup page's banner sits between them, so
   roundup.js drops .home). The search card follows it and is pulled up by --hero-overlap, about half the
   card's usual height, so the purple ends partway down the card however many filter tags it grows. */
.home-hero, .hero-tools { --hero-overlap: 84px; }
.home-hero {
  --top-height: 77px; --hero-space: 52px;
  padding: var(--hero-space) 0 calc(var(--hero-overlap) + 44px);
  /* Top to bottom: fine noise so the glow doesn't band, the diagonal sheen, Forma purple glows, the base. */
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E"),
    linear-gradient(152deg, transparent 56%, rgba(201, 177, 255, .16) 65%, rgba(145, 66, 201, .05) 72%, transparent 84%),
    radial-gradient(40% 90% at 82% 30%, rgba(105, 47, 229, .44), rgba(105, 47, 229, .14) 52%, transparent 78%),
    radial-gradient(30% 60% at 100% 0%, rgba(145, 66, 201, .3), transparent 72%),
    linear-gradient(115deg, #16062e, #1f0a3f 48%, #2a0b52);
}
.home .top { background: none; border-bottom-color: transparent; }
.home .home-hero { margin-top: calc(-1 * var(--top-height)); padding-top: calc(var(--top-height) + var(--hero-space)); }
.home-hero .intro { padding-bottom: 0; }
.home-hero .intro h1 { max-width: none; color: #fff; font-size: clamp(36px, 5.3vw, 72px); line-height: 1.02; letter-spacing: -.04em; }
.home-hero .intro h1 span { display: inline; color: var(--violet); background: linear-gradient(95deg, #d3bfff, #b497f2); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.wrap.hero-tools { position: relative; margin-top: calc(-1 * var(--hero-overlap)); padding-bottom: 8px; }

/* The search card: search, location and work type on top, the other filter buttons
   below, then the selected filters as removable tags. */
.filters {
  display: grid; gap: 14px; padding: 16px; background: var(--surface);
  border: 1px solid rgba(22, 6, 46, .06); border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(22, 6, 46, .06), 0 8px 20px rgba(22, 6, 46, .08), 0 24px 56px rgba(39, 21, 60, .14);
}
/* Location and work type get fixed widths that fit their longest default text; search takes the rest. */
.filter-top { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 240px 264px; gap: 10px; }
/* With a State or Province field: search, Location, State, Work type. */
@media (min-width: 1181px) {
  .filter-top.with-state { grid-template-columns: minmax(0, 1fr) 220px 200px 220px; }
}
/* Narrower: search gets its own row and the three fields share the next one. */
@media (min-width: 761px) and (max-width: 1180px) {
  body:not(.sheet-mode) .filter-top.with-state { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  body:not(.sheet-mode) .filter-top.with-state #q { grid-column: 1 / -1; }
}
/* The search box's type-ahead list, under the box (suggest.js sets its position and width). */
.suggest {
  position: absolute; z-index: 25; max-height: min(420px, 60vh); overflow-y: auto; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.suggest[hidden] { display: none; }
.suggest-label { display: flex; align-items: center; gap: 6px; padding: 8px 10px 4px; color: var(--muted); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.suggest-option { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 10px; border-radius: 6px; font-size: 14px; cursor: pointer; }
.suggest-option[aria-selected="true"] { background: var(--focus); box-shadow: inset 3px 0 0 var(--accent); }
/* A refinement of the skill above it ("Quota setting" under "Quota"): indented, an ordinary option. */
.suggest-option.indent { padding-left: 30px; font-size: 13.5px; }
.suggest-option.indent .suggest-text::before { content: "↳ "; color: var(--muted); }
.suggest-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-count { color: var(--muted); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.suggest-pin { flex: none; color: var(--muted); }
/* The key hints, for a device with a keyboard: a "↵" on the highlighted row and a line of keys at the end. */
.suggest-key, .suggest-hint { display: none; }
@media (hover: hover) and (pointer: fine) {
  .suggest-option[aria-selected="true"] .suggest-key {
    display: inline-block; min-width: 20px; padding: 0 5px; border: 1px solid var(--line-strong); border-radius: 4px;
    background: var(--surface); color: var(--muted); font-size: 12px; line-height: 18px; text-align: center;
  }
  .suggest-hint {
    display: block; position: sticky; bottom: -6px; margin: 6px -6px -6px; padding: 8px 12px; border-top: 1px solid var(--line);
    background: var(--surface); color: var(--muted); font-size: 12px;
  }
}
.tag-pin { flex: none; }
@media (max-width: 760px) {
  .suggest-option { min-height: 44px; }  /* A comfortable tap. */
}
.filter-more { display: flex; flex-wrap: wrap; gap: 8px; }
#q, #q2, .pill.field {
  width: 100%; min-height: 48px; padding: 0 14px 0 46px; border: 1px solid #e4e4e7; border-radius: 10px;
  background: var(--surface) no-repeat 15px center / 20px; font-size: 15px;
  transition: border-color var(--ease), box-shadow var(--ease);
}
#q, #q2 { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6a7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E"); }
#q::placeholder, #q2::placeholder, .field.placeholder .pill-text { color: var(--muted); }
#q:hover, #q2:hover { border-color: #bdb8c7; }
#q:focus, #q2:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
#arrangement .field { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6a7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='7' width='18' height='13' rx='2'/%3E%3Cpath d='M8 7V5a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2'/%3E%3C/svg%3E"); }
#country .field, #state .field { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6a7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E"); }

/* Filter buttons; the chevron flips while the panel is open, and a button with
   choices made turns purple. */
.drop { position: relative; }
.pill {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 12px 0 16px;
  border: 1px solid #e4e4e7; border-radius: 999px; background: var(--surface);
  font-size: 14px; font-weight: 600; white-space: nowrap; cursor: pointer;
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}
.pill::after { content: ""; flex: none; width: 14px; height: 14px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6a7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat; transition: transform var(--ease); }
.pill[aria-expanded="true"]::after { transform: rotate(180deg); }
.pill:hover { border-color: #bdb8c7; }
.pill[aria-expanded="true"] { border-color: var(--accent); }
.pill.on { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent-strong); }
.pill.field { display: flex; gap: 8px; font-weight: 500; }  /* .pill beats the form .field grid below */
.pill.field .pill-text { flex: 1; min-width: 0; text-align: left; overflow: hidden; text-overflow: ellipsis; }
/* A field's or choice's name is read out but only shown in the phone sheet. */
.pill-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.badge {
  display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.filters-toggle, .sheet-head, .sheet-foot { display: none; }

/* Dropdown panels: multi-select lists with a check on each chosen option. */
.panel {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 20; width: 300px; max-width: calc(100vw - 32px);
  padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.field + .panel { width: 100%; min-width: 260px; }
#specialization .panel { width: 380px; }  /* Wide enough for each definition to read in two lines. */
.find {
  width: 100%; min-height: 36px; padding: 0 12px; margin-bottom: 4px;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 14px;
}
.find:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.options { max-height: 320px; overflow-y: auto; }
.opt {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 6px;
  background: none; font-size: 14px; text-align: left; cursor: pointer; transition: background var(--ease);
}
.opt > span:first-child { flex: 1; }
.opt::after { content: ""; flex: none; width: 16px; height: 16px; }
.opt:hover:not(:disabled) { background: var(--hover); }
.opt[aria-pressed="true"] { background: var(--accent-soft); font-weight: 600; }
.opt[aria-pressed="true"]::after { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23692fe5' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / contain no-repeat; }
.state-note { margin: 2px 10px 4px; color: var(--muted); font-size: 12px; line-height: 1.35; }
.opt:disabled { opacity: .45; cursor: default; }
.filters .n { color: var(--muted); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.opt .desc { display: block; margin-top: 1px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.35; }
.panel-actions { display: flex; justify-content: space-between; margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.panel-actions button {
  padding: 4px 8px; border: 0; border-radius: 6px; background: none; color: var(--accent);
  font-size: 13px; font-weight: 600; cursor: pointer; transition: background var(--ease);
}
.panel-actions .clear-one { margin-left: auto; }
.panel-actions button:hover:not(:disabled) { background: var(--accent-soft); }
.panel-actions button:disabled { color: var(--muted); opacity: .5; cursor: default; }

/* Selected filters: removable chips, then Clear all. */
.active { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.active:empty { display: none; }
.chip-note { margin: 0; color: var(--muted); font-size: 13px; }  /* "Up to 5 searches...": a few seconds under the box. */
.chip-note[hidden] { display: none; }
.tag {
  display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 8px 0 10px;
  border: 1px solid var(--accent-line); border-radius: var(--radius-sm); background: var(--accent-soft);
  color: var(--accent-strong); font-size: 13px; font-weight: 500; cursor: pointer; transition: border-color var(--ease);
}
.tag:hover { border-color: var(--accent); }
.tag .x { font-size: 15px; line-height: 1; }
.tag-text { min-width: 0; overflow-wrap: anywhere; text-align: left; }  /* a long search chip wraps inside its pill */
.tag { max-width: 100%; }
.active .clear-all, .sticky-tags .clear-all { margin-left: 4px; padding: 4px; border: 0; background: none; color: var(--muted); font-size: 13px; cursor: pointer; }
.active .clear-all:hover, .sticky-tags .clear-all:hover { color: var(--ink); text-decoration: underline; }

/* Specialization shortcuts under the search card, in neutral grey; a pressed one is filled dark grey. */
.shortcuts { display: flex; align-items: baseline; gap: 10px 20px; margin-top: 24px; }
.shortcuts h2, .eyebrow { flex: none; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.shortcuts h2 { color: #71717a; }
.shortcut-list { display: flex; flex-wrap: wrap; gap: 8px; }
.shortcut {
  min-height: 32px; padding: 0 14px; border: 1px solid #e2e2e8; border-radius: 999px;
  background: #f1f1f4; color: #3f3f46; font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer;
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}
.shortcut:hover { border-color: #c9c9d2; background: #e8e8ed; }
.shortcut[aria-pressed="true"] { border-color: #3f3f46; background: #3f3f46; color: #fff; }

/* Sections: a heading with one quiet line under or beside it. */
.section { margin-top: 64px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 20px; }
.section-head h2 { font: 700 26px/1.2 Manrope, Inter, sans-serif; letter-spacing: -.02em; }
.section-head p { margin: 6px 0 0; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.count-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.sort-by { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.sort-by select {
  min-height: 36px; padding: 0 32px 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); font-size: 14px; appearance: none; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6a7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 14px no-repeat; transition: border-color var(--ease), box-shadow var(--ease);
}
.sort-by select:hover:not(:focus) { border-color: var(--accent-line); }
.sort-by select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }

.company { display: flex; gap: 5px; margin: 2px 0 0; color: var(--muted); font-size: 13px; white-space: nowrap; }
.company-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }  /* A long name gives way before the pay. */
.company-sep { flex: none; }
.company-pay { flex: none; color: var(--text); font-weight: 500; }
/* The tags sit above the row's posting link, so a click near a tag (in a gap,
   beside "+N") does nothing rather than open the posting. tag-fit.js fits them to
   two lines. */
.chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; margin: 0; cursor: default; }
.chip {
  position: relative; z-index: 1; display: inline-flex; align-items: center; min-height: 24px; max-width: 100%; padding: 0 9px; overflow: hidden;
  border: 1px solid #e2e2e8; border-radius: 999px; background: #f1f1f4;
  color: #3f3f46; font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: border-color var(--ease);
}
.chip:hover { border-color: #a1a1aa; }
.chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* "+N" and "Show less". Its digits are all one width, so tag-fit.js can measure one "+N" for any N. */
.chip-toggle { border-color: var(--line); background: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.chip-toggle:hover { border-color: #a1a1aa; color: #3f3f46; }

/* Job list: one row per role, and the whole row opens the posting (the location
   tooltip and the specializations sit above that link). Narrow screens stack each
   row: title and company, a line of details joined by dots, then the
   specializations. Wider screens turn the same cells into columns (below). */
.jobs { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.job { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; padding: 16px 20px 16px 76px; border-top: 1px solid var(--line); transition: background var(--ease); }
.jobs > li:first-child { border-top: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }  /* the list does not clip, */
.jobs > li:last-child { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }                    /* so tooltips can spill out */
.jobs > li:only-child { border-radius: var(--radius-lg); }
.job > .logo { position: absolute; top: 50%; left: 20px; grid-row: auto; transform: translateY(-50%); }  /* grid-row: auto, or the columns' grid-row: 1 measures 50% from below the row's top padding */
.job:hover { background: var(--hover); }
.job .main { flex: 1 0 100%; margin-bottom: 4px; }
.job h2 { font-size: 15px; line-height: 1.4; font-weight: 600; }
.job h2 a { color: var(--ink); text-decoration: none; transition: color var(--ease); }
.job:hover h2 a { color: var(--accent); }
.job h2 a::after { content: ""; position: absolute; inset: 0; }
.job .where { position: relative; z-index: 1; }
.cell { color: var(--text); font-size: 13px; white-space: nowrap; }
.cell + .cell::before { content: "·"; margin: 0 6px; color: var(--muted); font-weight: 400; }
.cell.posted { color: var(--muted); }
.job .opens { display: none; }
/* Level: three dots and a short name. It sits above the row's link so its tooltip can open. */
.job .level { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; }
.job .level:hover, .job .level:focus { z-index: 11; }  /* its tooltip stays above other rows and the header row (10) */
.job .level:focus { outline: none; }
.job .level:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
.level-dots { display: inline-flex; flex: none; gap: 3px; }
.level-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--line-strong); }
.level-dot.on { background: var(--muted); }
.level-years { color: var(--muted); }  /* Beside the name on phones; a tooltip from tablet width up. */
.level-tip { display: none; }
.job .work svg { display: none; }  /* Icons: grid layouts only. */
.jobs-head { display: none; }  /* The labels over the columns: grid layouts only. */
/* The chevron on rows (from tablet width): the row opens the job's pop-up. Faint until the
   row is hovered. */
.opens { width: 16px; height: 16px; opacity: .6; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6a7a' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat; transition: opacity var(--ease); }
.job:hover .opens { opacity: 1; }
.job .chips { flex: 1 0 100%; margin-top: 8px; }
/* Featured rows: same cells and columns as any row, tinted, with a purple bar on the left
   (a shadow, so it doesn't move the columns) and a small label above the title. Less
   padding makes room for the label, so a row with a one-line title stays the usual height. */
.job.featured { padding-top: 8px; padding-bottom: 8px; background: var(--featured); box-shadow: inset 3px 0 0 var(--accent); }
.job.featured:hover { background: var(--accent-soft); }
.featured-tag { position: relative; z-index: 1; display: block; width: fit-content; margin-bottom: 2px; line-height: 14px; }
.featured-tag:hover, .featured-tag:focus-within { z-index: 11; }  /* its tooltip stays above other rows' tags and the header row (10) */
.featured-label { display: inline-block; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; cursor: default; }
.featured-label:focus { outline: none; }
.featured-label:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
/* Dark tooltip, as on "+N more"; opens upwards so it doesn't cover the row's own title. */
.featured-tip {
  position: absolute; bottom: calc(100% + 6px); left: 0; width: max-content; max-width: 240px;
  padding: 8px 10px; border-radius: var(--radius-sm); background: var(--ink); box-shadow: var(--shadow);
  color: #fff; font-size: 12px; font-weight: 500; line-height: 1.5; letter-spacing: 0; text-transform: none;
  opacity: 0; transform: translateY(2px); pointer-events: none; transition: opacity 80ms ease, transform 80ms ease;
}
.featured-label:hover + .featured-tip, .featured-label:focus + .featured-tip { opacity: 1; transform: none; }
/* No room above, under the header row or the sticky bar: placeTip() in app.js opens it downwards. */
.featured-tip.below, .level-tip.below { top: calc(100% + 6px); bottom: auto; }
.fade { animation: fade .2s ease-out; }
@keyframes fade { from { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
.logo { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: var(--surface); border: 1px solid var(--line); }
.initial { display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); border-color: transparent; font: 700 15px Manrope, sans-serif; }
.main { min-width: 0; }

/* Columns from tablet width up: title and company, location, work type, level, posted
   and a new-tab icon, with the specializations on a second line under the title. Each
   cell has a fixed column, so a missing one leaves a gap. Long titles wrap to two lines,
   as do long places. The header row shares the rows' columns through --job-columns. */
@media (min-width: 761px) {
  .jobs-head, .job { --job-columns: minmax(0, 2fr) minmax(0, 1.2fr) 92px 96px 56px 16px; }
  .job {
    display: grid; align-items: center; gap: 8px 14px; min-height: 76px;
    grid-template-columns: var(--job-columns);
  }
  /* Quiet labels as the top of the list's card, with the rows' side padding. They stay on screen while
     the list scrolls: below the sticky bar (61px tall), above the rows and their tooltips. */
  .jobs-head {
    position: sticky; top: 61px; z-index: 10;
    display: grid; grid-template-columns: var(--job-columns); column-gap: 14px; padding: 10px 20px 10px 76px;
    background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; line-height: 16px; text-transform: uppercase; white-space: nowrap;
  }
  .jobs-head:not([hidden]) + .jobs, .jobs-head:not([hidden]) + .jobs > li:first-child { border-top-left-radius: 0; border-top-right-radius: 0; }
  .jobs-head:not([hidden]) + .jobs { border-top: 0; }
  .jobs-head .at-where { grid-column: 2; }
  .jobs-head .at-work { grid-column: 3; }
  .jobs-head .at-level { grid-column: 4; }
  .jobs-head .at-tags { display: none; }  /* The tags are on their own line until the wide layout. */
  .jobs-head .at-posted { grid-column: 5; margin-right: -.08em; text-align: right; }  /* The margin takes back the last letter's spacing, so its edge meets the age text's. */
  .level-years { display: none; }
  /* Dark tooltip above the text, as on the Featured label. */
  .level-tip {
    display: block; position: absolute; bottom: calc(100% + 6px); left: 0; width: max-content; padding: 6px 10px;
    border-radius: var(--radius-sm); background: var(--ink); box-shadow: var(--shadow); color: #fff; font-size: 12px; font-weight: 500; line-height: 1.5;
    opacity: 0; transform: translateY(2px); pointer-events: none; transition: opacity 80ms ease, transform 80ms ease;
  }
  .job .level:hover .level-tip, .job .level:focus .level-tip { opacity: 1; transform: none; }
  .job > * { grid-row: 1; }
  .job .main { grid-column: 1; margin: 0; }
  .job .company { margin-top: 1px; }
  .cell { overflow: hidden; text-overflow: ellipsis; }
  .job .where { white-space: normal; }
  .cell + .cell::before { content: none; }
  .job .where { grid-column: 2; }
  .job .work { grid-column: 3; }
  .job .level { grid-column: 4; justify-self: start; display: flex; overflow: visible; }
  .job .posted { grid-column: 5; text-align: right; }
  .job .opens { display: block; grid-column: 6; }
  .job .chips { grid-row: 2; grid-column: 1 / -1; margin: 0; }
  /* A pin before the location and an icon per work type (stroke icons, as on the chevron).
     Flex, so a long place still wraps beside its icon; the pin comes after the dot rule above. */
  .job .where, .job .work { display: flex; align-items: center; gap: 6px; }
  .job .work { color: var(--muted); font-size: 12.5px; }
  .job .work svg { display: block; }
  .job .where::before { content: ""; flex: none; margin: 0; width: 14px; height: 14px; background: center / contain no-repeat; }
  .job .where::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6a7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11a7 7 0 0114 0c0 4.8-7 11-7 11z'/%3E%3Ccircle cx='12' cy='10' r='2.5'/%3E%3C/svg%3E"); }
}

/* Wide screens, as in the mockup: the specializations get their own column between level and
   posted, and every row is one line of cells. */
@media (min-width: 1240px) {
  .jobs-head, .job { --job-columns: minmax(0, 2.6fr) minmax(0, 1.25fr) 92px 96px minmax(0, 3.25fr) 56px 16px; }
  .jobs-head .at-tags { display: block; grid-column: 5; }
  .jobs-head .at-posted { grid-column: 6; }
  .job .chips { grid-row: 1; grid-column: 5; gap: 4px; }
  .job .chip { padding: 0 7px; }
  .job .posted { grid-column: 6; }
  .job .opens { grid-column: 7; }
}

.empty { text-align: center; color: var(--muted); padding: 40px 16px; }

/* Load more: centred under the list with room above and below. */
.load-more { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 40px; }
.load-more .button { min-width: 260px; min-height: 48px; font-size: 15px; }
.load-more p { margin: 0; color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }

/* Think Tank banner: well clear of the list, hexagons faint on the left. */
.band {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px 40px;
  margin: 112px 0 96px; padding: 44px 48px; border: 1px solid var(--accent-line); border-radius: var(--radius-lg);
  background: url("hexagons.svg") left -220px center / 560px auto no-repeat, linear-gradient(90deg, #efe8fe, #faf8ff 75%);
}
.band-name { padding-right: 40px; border-right: 1px solid var(--accent-line); }
.eyebrow { margin: 0 0 6px; color: var(--accent); letter-spacing: .1em; }
.band h2 { font: 800 28px/1.15 Manrope, Inter, sans-serif; letter-spacing: -.02em; }
.band-copy { margin: 0; max-width: 52ch; font-size: 15px; }
.band .button { min-height: 48px; padding: 0 22px; font-size: 15px; }

/* Footer */
.footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: 13px; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; padding-bottom: 24px; }
.footer p { margin: 0; }
.footer a { color: var(--text); }

/* Cookie banner (consent.js): a small box at the bottom left; a slim full-width bar on phones.
   Not modal: no overlay, the page behind stays scrollable and clickable. The two buttons are
   the same .button, so "Allow analytics" and "No thanks" look alike. */
.consent {
  position: fixed; left: 16px; bottom: 16px; z-index: 80; width: calc(100% - 32px); max-width: 360px; padding: 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
  color: var(--text); font-size: 13px; line-height: 1.5;
}
.consent-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.consent-title { font: 700 16px/1.3 Manrope, Inter, sans-serif; letter-spacing: -.01em; }
.consent-lang { display: flex; flex: none; gap: 2px; }
.consent-lang-button { min-width: 28px; padding: 2px 4px; border: 0; border-radius: 4px; background: none; color: var(--muted); font-size: 12px; font-weight: 500; cursor: pointer; }
.consent-lang-button[aria-pressed="true"] { color: var(--accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.consent-body { margin: 8px 0 0; }
.consent-signature { margin: 8px 0 0; color: var(--ink); font-weight: 600; }
.consent-more { margin: 4px 0 0; }
.consent-buttons { display: flex; gap: 8px; margin-top: 12px; }
.consent-button { flex: 1; }
@media (max-width: 600px) {
  .consent { right: 0; bottom: 0; left: 0; width: 100%; max-width: none; padding: 12px 16px; border-width: 1px 0 0; border-radius: 0; font-size: 12px; }
  .consent-title { font-size: 14px; }
  .consent-body, .consent-signature, .consent-more { margin-top: 4px; }
  .consent-buttons { margin-top: 8px; }
}

/* Inner pages (Post a job, Community, Job alerts): a smaller hero. */
.hero.page-hero { padding-top: 64px; }
.page-hero .intro h1 { max-width: 22ch; font-size: clamp(32px, 4.5vw, 48px); }
.page { padding-top: 24px; padding-bottom: 96px; }

/* Post a job: how it works beside the form (forms.js drives the forms). */
.post { display: grid; grid-template-columns: 280px minmax(0, 720px); gap: 32px; align-items: start; }
.post-steps { position: sticky; top: 24px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.post-steps h2 { font-size: 15px; font-weight: 600; }
.post-steps ol { margin: 12px 0 0; padding-left: 20px; display: grid; gap: 12px; font-size: 14px; }
.post-steps li::marker { color: var(--accent); font-weight: 600; }
.post-steps strong { display: block; color: var(--ink); font-weight: 600; }
.post-form { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); }

/* The forms. Errors are red text plus a red border, never colour alone. */
.form { --danger: #b42318; display: grid; gap: 32px; padding: 32px; }
.form[hidden], .thanks[hidden] { display: none; }
.form-note { margin: 0; color: var(--muted); font-size: 13px; }
.star, label.req::after, legend.req::after { color: var(--accent); font-weight: 600; }
label.req::after, legend.req::after { content: " *"; }
.group { display: grid; gap: 18px; min-width: 0; margin: 0; padding: 0; border: 0; }
.group > legend { margin-bottom: 18px; padding: 0; color: var(--ink); font: 700 18px/1.3 Manrope, Inter, sans-serif; letter-spacing: -.01em; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 16px; }
.row.three { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 160px); }
.field { display: grid; align-content: start; gap: 6px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field label, .field > legend { padding: 0; color: var(--ink); font-size: 14px; font-weight: 500; }
.optional { margin-left: 4px; color: var(--muted); font-size: 12px; font-weight: 400; }
.hint { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.group-hint { margin-top: -8px; }
.error { margin: 0; color: var(--danger); font-size: 13px; font-weight: 500; line-height: 1.4; }
.form input[type="text"], .form input[type="email"], .form input[type="url"], .form input[type="number"], .form input[type="date"], .form select, .form textarea {
  width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); font-size: 15px; transition: border-color var(--ease), box-shadow var(--ease);
}
.form textarea { padding: 10px 12px; font: inherit; color: var(--ink); line-height: 1.5; resize: vertical; }
.form select {
  padding-right: 36px; appearance: none; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6a7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
}
.form input::placeholder, .form textarea::placeholder { color: var(--muted); }
.form input.short { max-width: 220px; }
.form input:hover:not(:focus), .form select:hover:not(:focus), .form textarea:hover:not(:focus) { border-color: var(--accent-line); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.form [aria-invalid="true"], .field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--danger); }
.form [aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(180, 35, 24, .15); }

/* Checkbox chips (Job alerts): a real checkbox, hidden but focusable, with a label styled like .shortcut. */
.picks > legend { margin-bottom: 4px; }
.pick-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pick { position: relative; display: inline-flex; cursor: pointer; }
.pick input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pick span {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; border: 1px solid var(--accent-line); border-radius: 999px;
  background: var(--surface); color: var(--accent-strong); font-size: 13px; font-weight: 500; white-space: nowrap;
  transition: border-color var(--ease), background var(--ease), color var(--ease);
}
.pick:hover span { border-color: var(--accent); background: var(--accent-soft); }
.pick input:checked + span { border-color: var(--accent); background: var(--accent); color: #fff; }
.pick input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.check { display: flex; align-items: flex-start; gap: 10px; color: var(--text); font-size: 14px; font-weight: 400; cursor: pointer; }
.check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--accent); cursor: pointer; }
.consent.invalid .check { color: var(--danger); }

/* Work type (Post a job): three real radio buttons as a segmented control, styled like the chips above. */
.segments { justify-self: start; display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--accent-line); border-radius: 999px; background: var(--surface); }
.segment { position: relative; display: inline-flex; cursor: pointer; }
.segment input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.segment span {
  display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding: 0 20px; border-radius: 999px;
  color: var(--accent-strong); font-size: 14px; font-weight: 500; transition: background var(--ease), color var(--ease);
}
.segment:hover span { background: var(--accent-soft); }
.segment input:checked + span { background: var(--accent); color: #fff; }
.segment input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.segmented > legend { margin-bottom: 6px; }
.field.invalid .segments { border-color: var(--danger); }

/* The location box: tags and the text field share one bordered box; suggestions drop down under it. */
.place-field > .error { order: 1; }
.place-field > .hint, .place-field > .place-preview { order: 2; }
.place-wrap { position: relative; }
.place-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 44px; padding: 5px 8px; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--surface); cursor: text; transition: border-color var(--ease), box-shadow var(--ease);
}
.place-box:hover:not(:focus-within) { border-color: var(--accent-line); }
.place-box:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.field.invalid .place-box { border-color: var(--danger); }
.place-tags { display: contents; margin: 0; padding: 0; list-style: none; }
.place-tag {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%; min-height: 30px; padding: 0 4px 0 12px; border: 1px solid var(--accent-line);
  border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 13px; font-weight: 500;
}
.place-tag-text { overflow-wrap: anywhere; }
.place-remove {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%;
  background: none; color: var(--accent-strong); font: 400 18px/1 Inter, sans-serif; cursor: pointer;
}
.place-remove:hover { background: var(--accent-line); }
.form .place-tag select.place-country {
  width: auto; min-width: 0; max-width: 150px; min-height: 24px; padding: 0 22px 0 6px; border-radius: 6px; font-size: 12px;
  background-position: right 4px center; background-size: 12px;
}
.form .place-box input[type="text"] {
  flex: 1 1 140px; width: auto; min-width: 0; min-height: 32px; padding: 0 4px; border: 0; border-radius: 0; background: none; box-shadow: none;
}
.form .place-box input[type="text"]:focus { border: 0; box-shadow: none; }
.place-box input:disabled { cursor: not-allowed; }
.place-list {
  position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; max-height: 296px; margin: 0; padding: 4px; overflow-y: auto;
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow); list-style: none;
}
.place-list[hidden] { display: none; }
.place-option { display: flex; flex-wrap: wrap; align-items: baseline; min-height: 40px; padding: 8px 10px; border-radius: 6px; color: var(--ink); font-size: 14px; cursor: pointer; }
.place-option[aria-selected="true"] { background: var(--accent-soft); }
.place-option-main { font-weight: 500; }
.place-option-sub { color: var(--muted); white-space: pre-wrap; }
.place-option-kind { margin-left: auto; padding-left: 12px; color: var(--muted); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.place-tag-text small { color: var(--muted); font-size: 12px; }
.place-preview { margin: 0; color: var(--text); font-size: 13px; line-height: 1.4; }
.place-preview strong { color: var(--ink); font-weight: 600; }

/* Yearly pay on one line: currency, from, "to", to. */
.pay > legend { margin-bottom: 6px; }
.pay-row { display: grid; grid-template-columns: 124px minmax(0, 1fr) minmax(0, 1fr); gap: 8px; align-items: start; }
/* An amount box: the currency sign inside the border, in front of the input. */
.money {
  display: flex; align-items: center; min-height: 44px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--surface); transition: border-color var(--ease), box-shadow var(--ease);
}
.money:hover:not(:focus-within) { border-color: var(--accent-line); }
.money:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.field.invalid .money { border-color: var(--danger); }
.money-sign { flex: none; padding-left: 12px; color: var(--muted); font-size: 15px; white-space: nowrap; }
.money-sign:empty { padding-left: 0; }
.form .money input[type="text"], .form .money input[type="text"]:focus { flex: 1; width: 100%; min-width: 0; min-height: 42px; padding: 0 12px 0 6px; border: 0; background: none; box-shadow: none; }
.form input[type="text"].currency-input {
  padding-right: 32px; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236f6a7a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 10px center / 16px no-repeat;
}
.currency-list { right: auto; width: 300px; max-width: calc(100vw - 64px); }

/* Post a job opens one part at a time: without JavaScript every part simply shows. */
.js .form .feature-who:not(.shown) { display: none; }
.step + .step { border-top: 1px solid var(--line); }
.step + .trap + .form-end { padding-top: 24px; border-top: 1px solid var(--line); }
.step-count { display: inline-block; margin-right: 10px; padding: 1px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font: 600 12px/1.6 Inter, sans-serif; letter-spacing: 0; vertical-align: 2px; }
.star-gold { color: #a16207; }
.badge-optional { margin-left: 6px; padding: 1px 9px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted); font: 500 12px/1.6 Inter, sans-serif; letter-spacing: 0; vertical-align: 2px; }
.more { border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 0 12px; justify-self: start; }
.more[open] { justify-self: stretch; padding-bottom: 12px; }
.more summary { padding: 8px 0; color: var(--accent-strong); font-size: 14px; font-weight: 500; cursor: pointer; }
.more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.label-row { display: flex; align-items: center; gap: 6px; }
.tip { position: relative; display: inline-grid; place-items: center; width: 18px; height: 18px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--muted); font: 600 11px/1 Inter, sans-serif; cursor: help; }
.tip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tip-box { display: none; position: absolute; bottom: calc(100% + 8px); left: 50%; z-index: 10; width: 240px; max-width: calc(100vw - 64px); padding: 8px 10px; border-radius: var(--radius-sm); background: var(--ink); color: #fff; font: 400 12.5px/1.45 Inter, sans-serif; text-align: left; transform: translateX(-50%); }
.tip:hover .tip-box, .tip:focus .tip-box { display: block; }
.feature-card { display: grid; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color var(--ease), background var(--ease); }
.feature-card.on { border-color: #d9b44a; background: #fdf8e8; }
.feature-card .check .hint { display: block; margin-top: 2px; }
.feature-who { gap: 8px; padding-left: 28px; }
.form-end { display: grid; gap: 16px; }
.form-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.form-links a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.form-links a:hover { color: var(--accent-strong); }

/* Honeypot: off-screen for people and screen readers; bots fill it in. */
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-actions .button { min-height: 46px; padding: 0 22px; font-size: 15px; }
.form-actions .button:disabled { opacity: .6; cursor: progress; }
.form-status { flex: 1 1 240px; font-size: 14px; }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: var(--danger); font-weight: 500; }
.form-status[data-state="info"] { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-strong); font-weight: 500; }

.thanks { display: grid; justify-items: start; gap: 12px; padding: 40px 32px; }
.thanks:focus { outline: none; }
.thanks h2 { font: 800 26px/1.2 Manrope, Inter, sans-serif; letter-spacing: -.01em; }
.thanks p { max-width: 52ch; margin: 0 0 8px; color: var(--text); font-size: 16px; }

/* Community: one card per way to take part (three across, stacked on phones). */
.tiles { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; }
.tile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.tile h2 { font: 700 22px/1.25 Manrope, Inter, sans-serif; letter-spacing: -.01em; }
.tile p:not(.eyebrow) { flex: 1; margin: 0 0 8px; }
.tile .eyebrow { margin: 0; }
.tile .button { min-height: 42px; }


/* The Filters sheet: every filter as a row that opens in place. app.js sets
   .sheet-mode on phones (full screen) and while the drawer opened from the sticky
   bar is showing on wider screens (a panel on the right). */
.sheet-mode .sheet { position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; background: var(--surface); }
.sheet-mode .sheet:not(.open) { display: none; }
.sheet-mode .sheet-head { display: flex; align-items: center; justify-content: space-between; min-height: 56px; padding: 0 8px 0 16px; border-bottom: 1px solid var(--line); }
.sheet-mode .sheet-head h2 { font-size: 16px; font-weight: 600; }
.sheet-mode .sheet-close { width: 44px; height: 44px; border: 0; border-radius: var(--radius-sm); background: none; font-size: 24px; line-height: 1; cursor: pointer; }
.sheet-mode .sheet-foot { display: flex; gap: 8px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sheet-mode .sheet-foot .button { min-height: 44px; font-size: 15px; }
.sheet-mode .sheet-foot .primary { flex: 1; }
.sheet-mode .filter-more { flex: 1; flex-direction: column; flex-wrap: nowrap; gap: 0; padding: 0 16px; overflow-y: auto; }
.sheet-mode .filter-more .drop { position: static; border-bottom: 1px solid var(--line); }
.sheet-mode .filter-more .pill, .sheet-mode .filter-more .pill.field {
  width: 100%; min-height: 52px; padding: 0; border: 0; border-radius: 0; background: none; color: var(--ink);
  font-size: 15px; font-weight: 500;
}
.sheet-mode #more .field { background-image: none; }  /* Beats the #arrangement / #country icons. */
.sheet-mode .filter-more .pill .pill-text { flex: 1; text-align: left; }
.sheet-mode .filter-more .pill-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
.sheet-mode .filter-more .pill-label + .pill-text { text-align: right; color: var(--muted); font-weight: 400; }
.sheet-mode .filter-more .placeholder .pill-text { visibility: hidden; }
.sheet-mode .filter-more .panel { position: static; width: auto; min-width: 0; max-width: none; margin: 0 0 12px; padding: 0; border: 0; box-shadow: none; }
.sheet-mode .options { max-height: none; }
.sheet.drawer {
  left: auto; width: min(420px, 100vw); border-left: 1px solid var(--line);
  box-shadow: 0 0 0 100vmax rgba(22, 19, 28, .28), var(--shadow);  /* dims the page behind */
}

/* The sticky bar: slides in once the search card has scrolled away. */
.sticky {
  position: fixed; top: 0; right: 0; left: 0; z-index: 40; margin: 0;
  background: rgba(255, 255, 255, .94); border-bottom: 1px solid var(--line); box-shadow: 0 6px 20px rgba(22, 19, 28, .06);
  backdrop-filter: blur(8px); transform: translateY(-100%); visibility: hidden;
  transition: transform 160ms ease, visibility 160ms;
}
.sticky.show { transform: none; visibility: visible; }
.sticky-row { display: flex; align-items: center; gap: 10px; min-height: 60px; }
#q2 { flex: none; width: 300px; min-height: 40px; }
.sticky-filters { min-height: 40px; }
.sticky-tags { display: flex; flex: 1; align-items: center; gap: 6px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.sticky-tags::-webkit-scrollbar { display: none; }
.sticky-tags .tag, .sticky-tags .clear-all { flex: none; }
.sticky-count { flex: none; margin: 0 0 0 auto; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
#count { scroll-margin-top: 84px; }  /* clear of the sticky bar */

/* Tablets: search gets its own line. */
@media (max-width: 1000px) {
  /* The header stays one row: Jobs, Resources and Post a job fold into the hamburger. */
  .nav-main, .actions .nav-link { display: none; }
  .links { justify-content: flex-end; }
  .burger { display: grid; }
  .home-hero, .hero-tools { --hero-overlap: 96px; }
  .mobile-menu:not([hidden]) { display: block; }
  .filter-top { grid-template-columns: 1fr 1fr; }
  #q { grid-column: 1 / -1; }
  .band { grid-template-columns: minmax(0, 1fr) auto; }
  .band-name { grid-column: 1 / -1; padding: 0; border: 0; }
}

/* Phones: search and a Filters button; every filter lives in a full-screen sheet,
   each one a row that opens in place. Tapping a job row opens the posting. */
@media (max-width: 760px) {
  .wrap { padding: 0 16px; }
  /* Header: the name and the hamburger on one row; Job alerts moves into the panel. */
  .bar { gap: 10px; min-height: 60px; padding-top: 10px; padding-bottom: 10px; }
    .identity { flex: 1; gap: 10px; }
  .by { padding: 2px 0 2px 10px; font-size: 13px; line-height: 18px; white-space: nowrap; }
  .name { gap: 9px; font-size: 16px; line-height: 1.05; white-space: nowrap; }
  .wordmark.one-line { flex-direction: column; gap: 0; }  /* Phones: the name stacks so it fits beside the menu button. */
  .links { display: none; }
  .mobile-menu { padding: 4px 16px 16px; }
  .mm-talent { display: flex; min-height: 44px; margin: 6px 0; }
  .mobile-menu [data-link-location="header-menu-talent-network"] { display: none; }  /* The purple button above covers it. */
  .hero { padding-top: 40px; background-size: 360px auto, auto; background-position: right -120px top 0, 0 0; }
  .hero.page-hero { padding-top: 36px; }
  .home-hero, .hero-tools { --hero-overlap: 34px; }
  .mark { width: 36px; height: 36px; }
  .home-hero { --top-height: 63px; --hero-space: 32px; padding-bottom: calc(var(--hero-overlap) + 28px); }
  .home-hero .intro h1 { font-size: clamp(36px, 10.5vw, 46px); }
  .intro { padding-bottom: 24px; }
  .intro p { margin-top: 12px; font-size: 15px; }
  .filters { padding: 10px; border-radius: var(--radius); }
  .filter-top { grid-template-columns: minmax(0, 1fr) auto; }
  #q { grid-column: auto; min-height: 46px; }
  .filters-toggle {
    display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 14px;
    border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface);
    font-size: 15px; font-weight: 500; cursor: pointer;
  }
  /* The sticky bar on phones: search and Filters only. */
  .sticky-row { min-height: 56px; }
  #q2 { flex: 1; width: auto; min-width: 0; }
  .sticky-tags, .sticky-count { display: none; }
  /* Shortcuts: one row that scrolls sideways, edge to edge. */
  .shortcuts { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 20px; }
  .shortcuts .shortcut-list { flex-wrap: nowrap; margin: 0 -16px; padding: 0 16px 4px; overflow-x: auto; scrollbar-width: none; }
  .shortcut-list::-webkit-scrollbar { display: none; }
  .section { margin-top: 48px; }
  .section-head h2 { font-size: 22px; }
  .sort-by select { min-height: 44px; font-size: 16px; }
  .job { padding: 14px 16px 14px 60px; }
  .job > .logo { left: 16px; width: 32px; height: 32px; border-radius: var(--radius-sm); }
  .load-more { margin-top: 32px; }
  .load-more .button { width: 100%; }
  .band { grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 80px 0 64px; padding: 28px 24px; background: linear-gradient(90deg, #efe8fe, #faf8ff 75%); }  /* no hexagons: cut off at this width */
  .band h2 { font-size: 24px; }
  .band .button { justify-self: start; }
  .page { padding-bottom: 64px; }
  .post { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .post-steps { position: static; }
  .form { gap: 28px; padding: 20px; }
  .thanks { padding: 28px 20px; }
  .row, .row.three, .tiles { grid-template-columns: minmax(0, 1fr); }
  .row.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .row.three .field:last-child { grid-column: 1 / -1; }
  .form input.short { max-width: none; }
  .pay-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pay-currency { grid-column: 1 / -1; }
  .currency-list { width: 100%; max-width: none; }
  .tip-box { left: auto; right: -120px; transform: none; }
  .segments { display: flex; justify-self: stretch; }
  .segment { flex: 1; }
  .segment span { width: 100%; padding: 0 8px; }
  .form .pay-row select { width: 100px; padding-left: 8px; padding-right: 26px; background-position: right 8px center; }
  .tile { padding: 24px; }
}

/* The smallest phones (320px): the name still fits beside the hamburger. */
@media (max-width: 360px) {
  .name { font-size: 15px; }
  .by { font-size: 12px; }
}

/* Job pop-up (job-preview.js). A centered dialog over a dimmed backdrop; full screen on phones.
   Above the sticky bar (40) and the filters sheet (50), below the cookie banner (80), which
   stays clickable. Everything here is namespaced jp- so the list is not affected. */
.jp-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(23, 16, 40, .38); opacity: 0; transition: opacity .2s; }
.jp-backdrop.show { opacity: 1; }
.jp-dialog {
  position: fixed; z-index: 61; top: 28px; bottom: 28px; left: 50%; display: flex; flex-direction: column;
  width: min(860px, calc(100% - 48px)); background: var(--surface); border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(22, 19, 28, .25); opacity: 0; transform: translateX(-50%) translateY(12px) scale(.98);
  transition: opacity .2s, transform .2s;
}
.jp-dialog.show { opacity: 1; transform: translateX(-50%); }
.jp-dialog:focus { outline: none; }
@media (prefers-reduced-motion: reduce) { .jp-backdrop, .jp-dialog { transition: none; } }

.jp-head { display: flex; flex: none; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.jp-sp { flex: 1; }
.jp-icon {
  display: grid; flex: none; place-items: center; width: 34px; height: 34px; padding: 0; border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); cursor: pointer;
  transition: border-color var(--ease), color var(--ease);
}
.jp-icon:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.jp-icon:disabled { opacity: .4; cursor: default; }
.jp-back {
  display: inline-flex; flex: none; align-items: center; gap: 4px; min-height: 34px; margin-left: -6px; padding: 0 8px; border: 0;
  border-radius: var(--radius-sm); background: none; color: var(--accent); font-size: 14px; font-weight: 600; cursor: pointer;
}
.jp-back:hover { background: var(--accent-soft); color: var(--accent-strong); }
.jp-step { display: flex; align-items: center; gap: 8px; }
.jp-pos { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.jp-body { flex: 1; min-height: 0; overflow: auto; }
.jp-foot {
  display: flex; flex: none; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line); background: var(--surface); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}
.jp-foot:empty { display: none; }
.jp-dialog .button { min-height: 40px; padding: 0 16px; font-weight: 600; }
.jp-head .button { min-height: 34px; gap: 6px; padding: 0 12px; font-size: 13.5px; }

.jp-pv { display: flex; flex-direction: column; gap: 20px; padding: 26px 32px 32px; }
.jp-top { display: flex; align-items: flex-start; gap: 14px; }
.jp-top .logo { width: 52px; height: 52px; border-radius: var(--radius); }
.jp-top .initial { font-size: 19px; }
.jp-titles { min-width: 0; }
.jp-titles h2 { font: 800 23px/1.2 Manrope, Inter, sans-serif; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; }
.jp-co { margin: 3px 0 0; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.jp-facts { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; }
.jp-facts > span { display: inline-flex; align-items: center; gap: 6px; }
.jp-facts svg { width: 15px; height: 15px; color: var(--muted); }
.jp-muted { color: var(--muted); }
.jp-status { margin: 0; color: var(--muted); font-size: 14px; }

.jp-desc { max-width: 68ch; min-width: 0; font-size: 15px; line-height: 1.62; }
.jp-desc h3 { margin: 22px 0 6px; font: 700 16px/1.3 Manrope, Inter, sans-serif; }
.jp-desc h3:first-child { margin-top: 4px; }
.jp-desc h4 { margin: 14px 0 4px; color: var(--ink); font-size: 14.5px; font-weight: 600; }
.jp-desc p { margin: 0 0 10px; }
.jp-desc p.fine { color: var(--muted); font-size: 13.5px; }
.jp-desc ul { margin: 0 0 10px; padding-left: 20px; }
.jp-desc li { margin: 3px 0; }
.jp-desc li::marker { color: var(--accent); }
.jp-desc ul ul { margin: 2px 0 4px; }
.jp-desc details { margin-top: 16px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.jp-desc summary { color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; }
.jp-kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 14px; padding: 12px 16px; border-radius: var(--radius); background: var(--hover); font-size: 14px; }
.jp-kv dt { color: var(--muted); }
.jp-kv dd { min-width: 0; margin: 0; }
.jp-raw {
  max-width: 100%; margin: 8px 0 0; padding: 14px; overflow-x: auto; border-radius: var(--radius); background: var(--hover);
  font: 12.5px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; white-space: pre-wrap;
}
.jp-raw-link { margin-top: 12px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; }
.jp-raw-link:hover { color: var(--accent); }
.jp-about { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; border-top: 1px solid var(--line); }
.jp-about h3 { font: 800 16px Manrope, Inter, sans-serif; }
.jp-about q { color: var(--muted); font-style: italic; quotes: "\201C" "\201D"; }
.jp-about .jp-plain { margin: 0; padding: 0; background: none; }

/* The Share button's note ("Link copied", or the link to copy): opens under the button. */
.jp-share { position: relative; }
.jp-pop {
  position: absolute; top: calc(100% + 6px); right: 0; z-index: 4; display: flex; flex-direction: column; gap: 2px; width: max-content; max-width: min(360px, 80vw);
  padding: 8px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow);
}
.jp-done { padding: 0 10px; color: #15803d; font-size: 12.5px; }
.jp-done:empty { display: none; }
.jp-manual { margin: 4px 10px 6px; padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: 6px; font: 12px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* Note above the list for a link to a job that is gone. */
.jp-gone {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; padding: 10px 14px;
  border: 1px solid var(--accent-line); border-radius: var(--radius); background: var(--accent-soft); color: var(--ink); font-size: 14px;
}
.jp-gone button { padding: 0 6px; border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; }
#count:focus { outline: none; }

/* Phones: the dialog is the whole screen, with Back to jobs instead of the close x and no stepping. */
@media (max-width: 760px) {
  .jp-dialog { top: 0; bottom: 0; left: 0; right: 0; width: auto; border-radius: 0; box-shadow: none; transform: translateY(12px); }
  .jp-dialog.show { transform: none; }
  .jp-x, .jp-step { display: none; }
  .jp-foot { border-radius: 0; }
  .jp-foot .jp-apply { flex: 1; }
  .jp-apply { justify-content: center; }
  .jp-pv { padding: 18px 16px 24px; }
  .jp-titles h2 { font-size: 20px; }
}

/* Weekly roundup pages (roundup.js, /r/<slug>). The banner sits above the hero, in its lavender; the
   bar in the pop-up (Back, "3 of 14", Next) sits between the description and the Apply footer. */
.rd-banner { border-bottom: 1px solid var(--accent-line); background: var(--wash); }
.rd-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 16px; padding-top: 12px; padding-bottom: 12px; }
.rd-banner p { margin: 0; color: var(--ink); font-size: 15px; }
.rd-banner a { color: var(--accent); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.rd-banner a:hover { color: var(--accent-strong); }
.rd-nav {
  display: grid; flex: none; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 8px 16px;
  border-top: 1px solid var(--line); background: var(--accent-soft);
}
.rd-nav[hidden] { display: none; }
.rd-pos { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rd-prev { justify-self: start; }
.rd-end { display: flex; justify-content: flex-end; }
.rd-nav .button { min-width: 88px; }
@media (max-width: 760px) {
  .rd-nav { gap: 8px; padding: 8px 12px; }
  .rd-nav .button { min-height: 44px; }
}

/* Job alerts: the page (email first, then interests and step 2 in the same card), the "What you'll get"
   column, and the sign-up spots in the job list and the job pop-up (job-alerts.js, job-alerts-inline.js). */
.alerts { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 32px; align-items: start; max-width: 1100px; }
.alerts-card .form { gap: 20px; }
.alerts-row { display: flex; gap: 10px; }
.alerts-row input { flex: 1 1 auto; min-width: 0; }
.alerts-row .button { flex: none; min-height: 44px; padding: 0 22px; }
.alerts-fine { margin: 0; color: var(--muted); font-size: 12.5px; line-height: 1.5; }
.alerts-fine a { color: inherit; text-decoration: underline; }
.s2-head h2 { font: 700 20px/1.3 Manrope, Inter, sans-serif; letter-spacing: -.01em; }
.s2-head p { margin: 6px 0 0; font-size: 14px; }
.link-button { min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--muted); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--accent-strong); }
.alerts-prefill { display: flex; flex-wrap: wrap; align-items: center; gap: 0 8px; margin: 0; padding: 4px 12px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent-strong); font-size: 13.5px; }
.alerts-prefill .link-button { min-height: 36px; color: var(--accent-strong); }
.alerts-interest { margin: 0; }
.toggle-list { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle-chip {
  min-height: 40px; padding: 0 16px; border: 1px solid var(--accent-line); border-radius: 999px; background: var(--surface);
  color: var(--accent-strong); font-size: 14px; font-weight: 500; cursor: pointer; transition: border-color var(--ease), background var(--ease), color var(--ease);
}
.toggle-chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.toggle-chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: #fff; }
.meter { display: grid; gap: 8px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--accent-soft); }
.meter-top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; font-size: 13px; color: var(--muted); }
.meter-top b { color: var(--ink); }
.meter-bar { height: 8px; overflow: hidden; border-radius: 999px; background: var(--accent-line); }
.meter-bar i { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .25s ease; }
/* Join free (job-alerts.html) before signing up: a centred hero with the email form, today vs membership, what you get. */
.ja-hero { padding: 72px 0 64px; background: radial-gradient(ellipse 70% 90% at 50% 0%, #ebe2fd 0%, #f5f1fe 40%, var(--bg) 78%); }
.ja-hero-in { display: grid; justify-items: center; max-width: 820px; text-align: center; }
.ja-hero h1 { max-width: 24ch; text-wrap: balance; font: 800 clamp(30px, 4.4vw, 46px)/1.1 Manrope, Inter, sans-serif; letter-spacing: -.03em; color: var(--ink); }
.ja-sub { max-width: 58ch; margin: 18px 0 0; color: var(--muted); font-size: 17px; }
.ja-hero .alerts-step1 { width: 100%; max-width: 520px; margin-top: 28px; padding: 0; gap: 10px; text-align: left; }
.ja-hero .alerts-row input { min-height: 48px; }
.ja-hero .alerts-row .button { min-height: 48px; }
.ja-hero .alerts-fine { color: var(--muted); font-size: 12px; text-align: center; }
.ja-hero .form-status:empty { display: none; }
.ja-gets { display: grid; justify-items: center; max-width: 1180px; padding-top: 64px; padding-bottom: 64px; text-align: center; }
.ja-gets h2 { max-width: 26ch; text-wrap: balance; font: 800 clamp(24px, 3vw, 32px)/1.2 Manrope, Inter, sans-serif; letter-spacing: -.02em; color: var(--ink); }
.ja-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; width: 100%; margin: 36px 0 0; padding: 0; list-style: none; text-align: left; }
.ja-card { display: grid; align-content: start; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); }
.ja-card-top { display: flex; margin-bottom: 4px; }
.ja-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); }
.ja-card h3 { font: 700 18px/1.3 Manrope, Inter, sans-serif; letter-spacing: -.01em; color: var(--ink); }
.ja-card > p { margin: 0; color: var(--muted); font-size: 14.5px; }
@media (max-width: 1000px) { .ja-cards { grid-template-columns: minmax(0, 1fr); max-width: 620px; justify-self: center; } }
.ja-proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.ja-proof-in { display: grid; justify-items: center; padding-top: 36px; padding-bottom: 36px; }
.ja-stats { display: grid; grid-template-columns: repeat(3, 220px); gap: 40px; margin: 0; padding: 0; list-style: none; text-align: center; }
.ja-stats li { display: grid; gap: 4px; }
.ja-stats li:has(b:empty) { display: none; }
.ja-stats b { color: var(--accent); font: 800 40px/1.05 Manrope, Inter, sans-serif; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ja-stats span { color: var(--muted); font-size: 14px; }
.ja-faq { border-top: 1px solid var(--line); background: var(--surface); }
.ja-faq-in { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: 32px; align-items: start; max-width: 1180px; padding-top: 56px; padding-bottom: 56px; }
.ja-faq h2 { font: 800 22px/1.25 Manrope, Inter, sans-serif; letter-spacing: -.01em; color: var(--ink); }
.ja-faq-head p { margin: 6px 0 0; color: var(--muted); font-size: 14.5px; }
.ja-faq dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0; }
.ja-faq dl > div { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.ja-faq dt { color: var(--ink); font-weight: 600; font-size: 15px; }
.ja-faq dd { margin: 4px 0 0; color: var(--muted); font-size: 14.5px; }
.ja-cta { background: var(--night); color: #fff; }
.ja-cta-in { display: grid; justify-items: center; padding-top: 64px; padding-bottom: 64px; text-align: center; }
.ja-cta h2 { color: #fff; font: 800 clamp(26px, 3.4vw, 36px)/1.15 Manrope, Inter, sans-serif; letter-spacing: -.02em; }
.ja-cta-sub { margin: 8px 0 0; color: rgba(255, 255, 255, .78); font-size: 16px; }
.ja-cta-form { width: 100%; max-width: 520px; margin-top: 22px; text-align: left; }
.ja-cta-form input { min-height: 48px; padding: 0 12px; border: 1px solid rgba(255, 255, 255, .24); border-radius: var(--radius-sm); background: #fff; font-size: 15px; }
.ja-cta-form input:focus { outline: none; box-shadow: 0 0 0 3px rgba(180, 151, 242, .6); }
.ja-cta-form .button { min-height: 48px; border-color: #fff; background: #fff; color: var(--accent-strong); font-weight: 600; }
.ja-cta-form .button:hover { border-color: #ebe2fd; background: #ebe2fd; color: var(--accent-strong); }
.ja-cta-error { margin: 6px 0 0; color: #ffb4ab; font-size: 13px; font-weight: 500; }
.ja-cta-fine { max-width: 62ch; margin-top: 10px; color: rgba(255, 255, 255, .55); font-size: 12px; }
.ja-cta-fine a { color: rgba(255, 255, 255, .75); }
/* Step 2 (job-alerts.js): grouped answers, the meter and buttons at the foot. Narrow cards (container query) stack. */
.alerts-step2 { container-type: inline-size; gap: 0; }
.alerts-step2 [hidden] { display: none !important; }
.s2-head { margin-bottom: 16px; }
.alerts-step2 .alerts-prefill { margin-bottom: 12px; }
.s2-group { display: grid; gap: 14px; }
.s2-glabel { margin: 0; color: var(--muted); font: 600 11.5px/1.3 Inter, sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.s2-rows { display: grid; gap: 10px; margin-bottom: 16px; }
.s2-row { display: flex; align-items: flex-start; gap: 12px; width: 100%; padding: 14px 16px; border: 1px solid var(--line-strong); border-radius: var(--radius-md, 12px); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.s2-row:hover { border-color: var(--accent); }
.s2-row[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.s2-row-text { display: grid; gap: 2px; }
.s2-row-text b { color: var(--ink); font-size: 15px; font-weight: 600; }
.s2-row-text span { color: var(--muted); font-size: 13.5px; }
.s2-box { display: grid; flex: none; place-items: center; width: 18px; height: 18px; margin-top: 2px; border: 1.5px solid var(--line-strong); border-radius: 4px; background: var(--surface); }
.s2-box svg { width: 13px; height: 13px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
.s2-row[aria-pressed="true"] .s2-box { border-color: var(--accent); background: var(--accent); }
.s2-row[aria-pressed="true"] .s2-box svg { opacity: 1; }
.s2-panel { display: grid; gap: 4px; margin-bottom: 16px; padding: 18px 20px; border-radius: var(--radius-lg); background: #f4f4f7; }
.s2-panel-head h3 { font: 700 16px/1.3 Manrope, Inter, sans-serif; color: var(--ink); }
.s2-panel-head p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.s2-panel .s2-group { padding: 14px 0 4px; border-top: 0; }
.s2-panel .meter { margin-top: 10px; background: var(--surface); }
.s2-panel > .field { margin-top: 12px; }
.s2-panel .pick span, .s2-panel .seg-opt span, .s2-panel input[type="text"], .s2-panel .place-box { background: var(--surface); }
.s2-exp { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.s2-exp > legend { float: left; margin: 0; padding: 0; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.seg-opt { position: relative; display: inline-flex; cursor: pointer; }
.seg-opt + .seg-opt { border-left: 1px solid var(--line-strong); }
.seg-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg-opt span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px; background: var(--surface); color: var(--text); font-size: 14px; }
.seg-opt:hover span { background: var(--accent-soft); }
.seg-opt input:checked + span { background: var(--accent); color: #fff; }
.seg-opt input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: -2px; }
.s2-places { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
.s2-why { color: var(--muted); font-weight: 400; font-size: 13px; }
.s2-foot { display: grid; gap: 12px; padding-top: 4px; }
.s2-use { font-size: 12px; }
.s2-foot .form-actions { margin: 0; }
@container (max-width: 460px) {
  .s2-panel { padding: 16px 14px; }
  .s2-exp { display: grid; gap: 8px; }
  .s2-exp > legend { float: none; }
  .seg { display: grid; grid-template-columns: repeat(3, 1fr); }
  .seg-opt { display: flex; }
  .seg-opt span { flex: 1; justify-content: center; padding: 0 6px; }
  .s2-places { grid-template-columns: minmax(0, 1fr); }
  .s2-foot .form-actions { display: grid; justify-items: center; }
  .s2-foot #s2-save { width: 100%; }
}
/* The site footer's Forma.ai credit on the Join free page. */
.footer-by { display: flex; align-items: center; gap: 8px; }
.footer-by .mark-sm { flex: none; }
.footer-by b { color: var(--text); font-weight: 600; }
@media (max-width: 760px) {
  .ja-hero { padding: 44px 0 40px; }
  .ja-sub { font-size: 15.5px; }
  .ja-cards { grid-template-columns: minmax(0, 1fr); }
  .ja-faq-in { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .ja-stats { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ja-stats b { font-size: 34px; }
  .ja-proof-in { padding-top: 28px; padding-bottom: 28px; }
  .ja-gets { padding-top: 44px; padding-bottom: 44px; }
  .ja-faq-in { padding-top: 40px; padding-bottom: 40px; }
  .ja-card { padding: 18px; }
  .ja-cta-in { padding-top: 44px; padding-bottom: 44px; }
}
@media (max-width: 640px) { .ja-faq dl { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 761px) and (max-width: 860px) { .ja-stats { grid-template-columns: repeat(3, minmax(0, 200px)); gap: 24px; } }
/* After step 1: the thank-you leads and the marketing sections step aside (job-alerts.js sets .alerts-signed-up). */
.alerts-signed-up .ja-hero, .alerts-signed-up .ja-proof, .alerts-signed-up .ja-gets, .alerts-signed-up .ja-faq, .alerts-signed-up .ja-cta { display: none; }
/* Job alerts only: its step 2 card waits for sign-up. Other pages (Post a job, Community) share .page. */
body:not(.alerts-signed-up) main > .page.alerts-page { display: none; }
.alerts-signed-up .page { padding-top: 48px; }
.alerts-signed-up main { min-height: calc(100vh - 160px); }
.alerts-signed-up .alerts { grid-template-columns: minmax(0, 1fr); max-width: 760px; margin: 0 auto; }
.alerts-thanks { display: grid; justify-items: center; gap: 14px; padding: 8px 16px 28px; text-align: center; }
.alerts-thanks[hidden] { display: none; }
.alerts-thanks:focus { outline: none; }
.alerts-thanks h2 { font: 800 26px/1.2 Manrope, Inter, sans-serif; letter-spacing: -.01em; }
.alerts-thanks p { margin: 6px 0 0; color: var(--text); font-size: 16px; }
.alerts-thanks .button { margin-top: 18px; }
.alerts-signed-up .alerts-card { border: 0; background: none; box-shadow: none; }
.alerts-signed-up .alerts-step2 { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); box-shadow: var(--shadow-soft); }
.alerts-tick { display: grid; flex: none; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: #fff; }
.s2-head p { color: var(--muted); }
.s2-interests { gap: 10px; }
.s2-label { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; }
/* The "Required" tag: shows only when the chosen interests need that answer; the reason is a tooltip. */
.req-wrap { position: relative; display: inline-block; margin-left: 4px; vertical-align: 1px; }
.req-tag { display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-strong); font-size: 11.5px; font-weight: 600; line-height: 1.6; cursor: help; }
.req-tag:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.req-tip {
  position: absolute; left: 0; bottom: calc(100% + 8px); z-index: 30; width: max-content; max-width: min(240px, calc(100vw - 48px)); padding: 8px 10px;
  border-radius: var(--radius-sm); background: var(--ink); color: #fff; font: 400 12.5px/1.45 Inter, system-ui, sans-serif; display: none; pointer-events: none;
}
.req-wrap.show .req-tip { display: block; }
/* The small "About city data" notes beside the place pickers (info-tip.js clamps each inside its form). */
.label-row { display: flex; align-items: center; gap: 6px; }
.info-wrap { position: relative; display: inline-flex; }
.info-btn { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); cursor: pointer; }
.info-btn svg { width: 14px; height: 14px; }
.info-btn:hover, .info-wrap.show .info-btn { color: var(--accent-strong); }
.info-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.info-tip { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 30; width: max-content; max-width: 240px; padding: 6px 9px; border-radius: var(--radius-sm); background: var(--ink); color: #fff; font: 400 12px/1.45 Inter, system-ui, sans-serif; display: none; }
.info-tip a { color: #fff; text-decoration: underline; }
.info-wrap.show .info-tip { display: block; }
.page-hero .intro .eyebrow { margin-bottom: 14px; }
/* Sign-up spots in the job list: a soft strip after the tenth row, and a box for empty or thin results. */
.alerts-inline {
  --danger: #b42318; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; gap: 12px 24px;
  padding: 18px 56px 18px 20px; border-top: 1px solid var(--accent-line); background: var(--accent-soft);
}
/* The in-list strip: a plain white row like a job, slimmer than the empty-results box. */
.alerts-strip { padding-top: 12px; padding-bottom: 12px; border-top-color: var(--line); background: var(--surface); }
.alerts-strip .alerts-copy h3 { font-size: 15.5px; }
.alerts-strip .alerts-copy p { margin-top: 2px; font-size: 13px; }
.alerts-strip { grid-template-columns: minmax(0, 1fr) auto; }
.alerts-see { justify-self: end; min-height: 40px; padding: 0 18px; white-space: nowrap; }
.alerts-strip .alerts-x:hover { background: var(--accent-soft); }
.alerts-empty { grid-template-columns: minmax(0, 1fr); padding-right: 20px; }
.alerts-copy h3, .alerts-empty h3 { font: 800 17px/1.3 Manrope, Inter, sans-serif; letter-spacing: -.01em; }
.alerts-copy p { margin: 4px 0 0; color: var(--muted); font-size: 13.5px; }
.alerts-form { display: grid; gap: 8px; min-width: 0; }
.alerts-form input[type="email"] {
  width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); font-size: 15px;
}
.alerts-form input[type="email"]:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--focus); }
.alerts-form input[aria-invalid="true"] { border-color: var(--danger); }
.alerts-form .button { min-height: 44px; padding: 0 20px; }
.alerts-form .button:disabled { opacity: .6; cursor: progress; }
.alerts-form .alerts-fine { font-size: 12px; }
.alerts-form .error { margin: 0; color: var(--danger); font-size: 13px; font-weight: 500; }
.alerts-x { position: absolute; top: 6px; right: 6px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: none; color: var(--muted); font: 400 22px/1 Inter, sans-serif; cursor: pointer; }
.alerts-x:hover { background: var(--accent-line); color: var(--ink); }
.alerts-for { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin: 0; color: var(--muted); font-size: 12px; }
.alerts-chip { display: inline-flex; align-items: center; padding: 0 2px 0 8px; border: 1px solid var(--accent-line); border-radius: 999px; background: var(--surface); color: var(--text); }
.alerts-chip-x { width: 24px; height: 24px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted); font: 400 15px/1 Inter, sans-serif; cursor: pointer; }
.alerts-chip-x:hover { background: var(--accent-soft); color: var(--ink); }
.alerts-more { padding: 0 4px; }
.jp-foot { flex-wrap: wrap; }
.jp-alerts { flex: 1 0 100%; color: var(--muted); font-size: 13px; text-align: right; }
.jp-alerts:hover { color: var(--accent-strong); }
@media (max-width: 860px) {
  .alerts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 760px) {
  .alerts-inline { grid-template-columns: minmax(0, 1fr); padding: 16px 48px 16px 16px; }
  .alerts-empty { padding-right: 16px; }
  .alerts-row { flex-direction: column; }
  .alerts-row .button { width: 100%; }
  .alerts-signed-up .page { padding-top: 24px; }
  .alerts-thanks { gap: 12px; padding: 0 4px 20px; }
  .alerts-signed-up .alerts-step2 { padding: 24px 20px; }
  .alerts-thanks h2 { font-size: 22px; }
  .alerts-tick { width: 36px; height: 36px; }
  .alerts-tick svg { width: 18px; height: 18px; }
}
