/* Hallmark · shape: Workbench · genre: editorial · theme: brand · redesign: full
 * paper: #fff8e4 · accent: #b3140f, the red I in the logo · display: Instrument Serif · body: Instrument Sans · hero: Stage · nav: edge-aligned · footer: plain line · signature: the staff badge that wears the name you type
 * axes: warm-paper/serif/chilli · posture: split · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · moved the job list above the browse lists · a job seeker searches, then sees jobs */
/* Hallmark · waive 65 · cream, Instrument Serif and chilli red are the owner's choice, taken from the logo's own red */
/* Hallmark · dropped the 3 decades, 126 and 12 figures · the owner asked to remove them */
/* Hallmark · dropped the Career advice nav link · the owner asked for two top tabs; it stays in the footer */
:root {
  --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
  --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.25rem; --text-xl: 1.5625rem; --text-2xl: 1.953rem; --text-3xl: 2.441rem;
  --text-display-s: clamp(2.25rem, 4vw + 0.5rem, 3.75rem); --text-display: clamp(2.75rem, 5vw + 1rem, 5.25rem);
  --text-section: clamp(2rem, 2.5vw + 1rem, 3.5rem); --text-title: clamp(1.25rem, 0.75vw + 0.875rem, 1.625rem); --text-lead: clamp(1.125rem, 0.35vw + 1rem, 1.375rem);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-micro: 120ms; --dur-short: 220ms; --dur-long: 420ms;
  --color-error: #b81f1f; --color-success: #2f6b3a;
  --container: 1200px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 72px; --section-gap: 96px; --section-gap-l: 120px;
  --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
  --color-paper: #fff8e4; --color-paper-2: #fffdf6; --color-paper-3: #f6ebcb;
  --color-ink: #241d0a; --color-ink-2: #120e04; --color-muted: #6d6135;
  --color-rule: #e6d9ae;
  --color-accent: #b3140f; --color-accent-hover: #8f0f0b; --color-accent-ink: #fff7f2; --color-focus: #241d0a;
  --color-brand-red: #b3140f; --color-brand-red-hover: #8f0f0b; --color-brand-red-ink: #fff7f2;
  --color-on-ink: #fff8e4; --color-on-ink-muted: #e6d9ae; --color-rule-on-ink: #6d6135;  --font-display: "Instrument Serif", ui-serif, Georgia, serif; --font-body: "Instrument Sans", ui-sans-serif, system-ui, sans-serif; --font-outlier: var(--font-body);
  --radius-card: 12px; --radius-field: 8px; --radius-pill: 999px; --rule-hair: 1px;
  --shadow-card: none; --shadow-logo: 0 2px 6px oklch(20% 0.01 80 / 0.25); --shadow-badge: 0 24px 48px oklch(20% 0.01 80 / 0.22); --shadow-search: 0 8px 24px oklch(20% 0.01 80 / 0.1); --shadow-float: 0 4px 12px oklch(20% 0.01 80 / 0.3);
  --tracking-display: -0.015em;
  --display-weight: 400;
  --press: 0.98;
  --swing-start: 5deg;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
::selection { background: color-mix(in oklab, var(--color-accent) 22%, transparent); color: var(--color-ink); }
:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
p { margin: 0; text-wrap: pretty; }
p:not([class]) { max-width: 65ch; }
img, video { max-width: 100%; height: auto; display: block; }
svg { display: block; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
.num, .figure, td.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }

.wrap { width: 100%; max-width: var(--container); margin-inline: auto; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.skip { position: absolute; left: var(--space-md); top: -64px; z-index: var(--z-tooltip); padding: var(--space-sm) var(--space-md); background: var(--color-ink); color: var(--color-on-ink); border-radius: var(--radius-field); }
.skip:focus { top: var(--space-xs); }
.muted, .note { color: var(--color-muted); }
.note { font-size: var(--text-sm); }

/* Chrome */
.top { background: var(--color-paper-2); border-bottom: var(--rule-hair) solid var(--color-rule); }
/* The Brigata logo is centred: above the menu on small screens, between empty space and the menu on wide ones. */
.top-row { display: flex; flex-direction: column; align-items: center; gap: var(--space-sm) var(--space-lg); padding-block: var(--space-sm); }
.top-row nav { justify-content: center; }
@media (min-width: 78rem) {
  .top-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); }
  .top-row .brand { grid-column: 2; }
  .top-row nav { grid-column: 3; justify-content: flex-end; }
}
.brand { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-sm) var(--space-md); text-decoration: none; }
.powered { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0 var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
.powered img { width: auto; height: 40px; }
a.powered { text-decoration: none; }
a.powered:hover { color: var(--color-ink); }
.logo { width: clamp(148px, 40vw, 176px); height: auto; border-radius: var(--radius-field); box-shadow: var(--shadow-logo); }
nav { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2xs) var(--space-lg); font-weight: 600; }
nav a { min-height: 44px; display: inline-flex; align-items: center; text-decoration: none; }
nav a:not(.nav-cta):hover { text-decoration: underline; }

/* Controls: every state is on the same class. */
.pill, nav a.nav-cta {
  min-height: 48px; padding: 0 var(--space-lg); display: inline-flex; align-items: center; justify-content: center; border: 0; border-radius: var(--radius-pill);
  background: var(--color-accent); color: var(--color-accent-ink); font: 600 var(--text-md) var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-micro) linear, transform var(--dur-micro) var(--ease-out);
}
.pill:hover, nav a.nav-cta:hover { background: var(--color-accent-hover); }
.pill:active:not([disabled]), nav a.nav-cta:active { transform: scale(var(--press)); }
.pill[disabled], .pill[disabled]:hover { background: var(--color-paper-3); color: var(--color-ink); cursor: not-allowed; }
.pill.ghost { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 1.5px var(--color-ink); }
.pill.ghost:hover { background: var(--color-paper-3); }
.actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); align-items: center; }

/* Hero: the headline and search on the left, the badge on the right. */
.hero { display: grid; gap: var(--space-xl) var(--space-2xl); align-items: start; padding-block: var(--space-xl) var(--space-2xl); grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.hero-copy { display: grid; gap: var(--space-lg); min-width: 0; padding-top: var(--space-lg); }
h1 { max-width: 13ch; }
.search { display: grid; gap: var(--space-sm); align-items: end; padding: var(--space-md); background: var(--color-paper-2); border-radius: var(--radius-card); box-shadow: var(--shadow-search); grid-template-columns: repeat(3, minmax(0, 1fr)); }
.search .pill { grid-column: 1 / -1; }
.lanyard { display: grid; justify-items: center; padding-top: var(--space-lg); min-width: 0; touch-action: pan-y; }
.swing { display: grid; justify-items: center; width: min(100%, 400px); transform-origin: 50% 0; cursor: grab; user-select: none; }
.swing.dragging { cursor: grabbing; }
.badge-big { display: block; width: 100%; height: auto; border-radius: var(--radius-card); box-shadow: var(--shadow-badge); -webkit-user-drag: none; }
.badge-role { margin-top: var(--space-md); font: 400 var(--text-3xl)/1.1 var(--font-display); text-align: center; min-height: 2.2em; }

/* Index: departments set large, so the page reads like a menu of work. */
.section { display: grid; gap: var(--space-lg); padding-block: var(--section-gap-s); }
.rule-top { border-top: var(--rule-hair) solid var(--color-rule); }
.index { display: grid; gap: var(--space-xl) var(--space-2xl); grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.index-col { display: grid; gap: var(--space-sm); align-content: start; min-width: 0; }
.index-col h2 { font-size: var(--text-title); font-family: var(--font-body); font-weight: 600; letter-spacing: 0; line-height: 1.3; max-width: none; }
.index-list { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-ink); }
.index-list li { border-bottom: var(--rule-hair) solid var(--color-rule); }
.index-item {
  width: 100%; min-height: 56px; padding: var(--space-xs) 0; border: 0; background: none; color: var(--color-ink); cursor: pointer; text-align: left;
  font: 400 var(--text-2xl)/1.1 var(--font-display); transition: color var(--dur-micro) linear;
}
.index-item:hover { color: var(--color-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
.index-places .index-item, .dept .index-item { font: 400 var(--text-lg)/1.2 var(--font-body); min-height: 48px; }
.depts { display: grid; column-gap: var(--gap-columns); align-items: start; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); border-top: var(--rule-hair) solid var(--color-ink); }
.dept { min-width: 0; padding-block: var(--space-sm); }
.dept summary { min-height: 44px; display: list-item; font: 400 var(--text-2xl)/1.3 var(--font-display); }
.dept summary:hover { color: var(--color-accent); }
.dept .index-list { margin-top: var(--space-xs); }

/* Jobs: rows with the salary up front. */
.job-list { display: grid; }
.job-list:empty { display: none; }
.job-card { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-sm) var(--space-lg); padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
.job-main, .job-side { min-width: 0; display: grid; gap: var(--space-2xs); align-content: start; }
.job-main { flex: 1 1 260px; }
.job-side { flex: 0 1 200px; justify-items: start; }
.job-card h3 { font: 600 var(--text-lg)/1.3 var(--font-body); letter-spacing: 0; }
.job-card p { color: var(--color-muted); }
.job-card .salary { color: var(--color-accent-hover); font-weight: 600; }
.tag { justify-self: start; padding: 0 var(--space-xs); border-radius: var(--radius-pill); background: var(--color-paper-3); font-size: var(--text-sm); }
.empty { display: grid; gap: var(--space-md); justify-items: start; padding: var(--space-lg); background: var(--color-paper-2); border-radius: var(--radius-card); }
.empty p { max-width: 58ch; }

/* Dark band: Gourmet Guys' record beside the employer action. */
.band { background: var(--color-ink); color: var(--color-on-ink); }
.band .muted { color: var(--color-on-ink-muted); }
.hire { display: grid; gap: var(--space-xl) var(--space-2xl); padding-block: var(--section-gap-s); grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.hire-copy { display: grid; gap: var(--space-md); justify-items: start; min-width: 0; }
.hire .pill { background: var(--color-paper); color: var(--color-ink); }
.hire .pill:hover { background: var(--color-paper-3); }
.hire .pill.ghost { background: transparent; color: var(--color-on-ink); box-shadow: inset 0 0 0 1.5px var(--color-on-ink); }
.hire .pill.ghost:hover { background: var(--color-rule-on-ink); }

/* Advice and how it works: plain columns, no boxes. */
.cols { display: grid; gap: var(--space-xl) var(--gap-columns); grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.col { display: grid; gap: var(--space-xs); align-content: start; min-width: 0; padding-top: var(--space-sm); border-top: var(--rule-hair) solid var(--color-ink); }
.col h3 { font: 600 var(--text-lg)/1.3 var(--font-body); letter-spacing: 0; }

/* Questions: the heading holds the left column. */
.faq-grid { display: grid; gap: var(--space-lg) var(--space-2xl); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.faq { display: grid; border-top: var(--rule-hair) solid var(--color-ink); }
details { padding-block: var(--space-md); border-bottom: var(--rule-hair) solid var(--color-rule); }
summary { min-height: 28px; font-weight: 600; cursor: pointer; }
details p { margin-top: var(--space-xs); }

footer .wrap { display: grid; gap: var(--space-xs); padding-block: var(--space-lg) var(--space-4xl); color: var(--color-muted); font-size: var(--text-sm); border-top: var(--rule-hair) solid var(--color-rule); }

/* Sign-up tab: stays on the left edge while scrolling, clear of the help button on the right. */
.signup-tab {
  position: fixed; z-index: var(--z-sticky); left: 0; bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
  min-height: 48px; padding: 0 var(--space-md) 0 max(var(--space-md), env(safe-area-inset-left, 0px)); display: inline-flex; align-items: center; border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  background: var(--color-brand-red); color: var(--color-brand-red-ink); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-float);
  transition: background-color var(--dur-micro) linear;
}
.signup-tab:hover { background: var(--color-brand-red-hover); }
.share-tab {
  position: fixed; z-index: var(--z-sticky); left: 0; bottom: calc(76px + env(safe-area-inset-bottom, 0px));
  min-height: 48px; padding: 0 var(--space-md) 0 max(var(--space-md), env(safe-area-inset-left, 0px)); display: inline-flex; align-items: center; border-radius: 0 var(--radius-pill) var(--radius-pill) 0;
  background: var(--color-paper-2); color: var(--color-ink); font-weight: 600; text-decoration: none; box-shadow: var(--shadow-float);
  transition: background-color var(--dur-micro) linear;
}
.share-tab:hover { background: var(--color-paper-3); }

/* Help chat: one button, then a panel that sits above the page. */
.chat-toggle {
  position: fixed; z-index: var(--z-sticky); right: max(var(--space-md), env(safe-area-inset-right, 0px)); bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
  box-shadow: var(--shadow-float);
}
.chat-panel {
  position: fixed; z-index: var(--z-modal); right: max(var(--space-md), env(safe-area-inset-right, 0px)); bottom: calc(var(--space-md) + env(safe-area-inset-bottom, 0px));
  width: min(calc(100% - var(--space-xl)), 400px); height: min(calc(100dvh - var(--space-xl)), 560px); display: grid; grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--color-paper-2); border-radius: var(--radius-card); box-shadow: var(--shadow-badge); overflow: hidden;
  animation: chat-rise var(--dur-short) var(--ease-out) backwards;
}
@keyframes chat-rise { from { opacity: 0; transform: translateY(var(--space-sm)); } }
.chat-head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-sm); padding: var(--space-sm) var(--space-md); background: var(--color-ink); color: var(--color-on-ink); }
.chat-title { font: 600 var(--text-md)/1.3 var(--font-body); letter-spacing: 0; }
.chat-sub { font-size: var(--text-sm); color: var(--color-on-ink-muted); }
.chat-close { min-height: 44px; padding: 0 var(--space-sm); flex: none; border: 0; border-radius: var(--radius-field); background: transparent; color: var(--color-on-ink); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 0.16em; }
.chat-close:hover { background: var(--color-rule-on-ink); }
.chat-log { display: flex; flex-direction: column; gap: var(--space-sm); padding: var(--space-md); overflow-y: auto; overscroll-behavior: contain; }
.chat-msg { max-width: 88%; display: grid; gap: var(--space-xs); justify-items: start; padding: var(--space-sm); border-radius: var(--radius-card); overflow-wrap: anywhere; flex: none; }
.chat-msg.bot { align-self: flex-start; background: var(--color-paper); }
.chat-msg.user { align-self: flex-end; background: var(--color-accent); color: var(--color-accent-ink); }
.chat-link { font-weight: 600; min-height: 28px; display: inline-flex; align-items: center; }
.chat-options { display: grid; gap: var(--space-xs); justify-items: start; flex: none; }
.chat-option { min-height: 44px; padding: var(--space-2xs) var(--space-sm); border: var(--rule-hair) solid var(--color-muted); border-radius: var(--radius-field); background: var(--color-paper-2); color: var(--color-ink); text-align: left; cursor: pointer; transition: background-color var(--dur-micro) linear; }
.chat-option:hover { background: var(--color-paper-3); }
.chat-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--space-xs); padding: var(--space-sm); border-top: var(--rule-hair) solid var(--color-rule); }
.chat-form input { min-height: 48px; padding: var(--space-sm); color: var(--color-ink); background: var(--color-paper-2); border: 1.5px solid var(--color-muted); border-radius: var(--radius-field); min-width: 0; }

/* Guide pages: long lists of links stay easy to tap. */
.guide-links { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 0 var(--gap-columns); }
.guide-links a { min-height: 44px; display: flex; align-items: center; }
.prose ul:not(.guide-links) { margin: 0; padding-left: var(--space-lg); }

/* Log in: Google first, then email. */
.google-box { display: grid; gap: var(--space-sm); }
.google { gap: var(--space-xs); width: 100%; }
.or-line { color: var(--color-muted); text-align: center; }
details form { margin-top: var(--space-md); }

/* Forms */
.card { min-width: 0; display: grid; gap: var(--space-sm); align-content: start; padding: var(--space-lg); background: var(--color-paper-2); border-radius: var(--radius-card); }
form.stack { display: grid; gap: var(--space-md); }
.field { display: grid; gap: var(--space-2xs); min-width: 0; }
label { font-weight: 600; }
.opt { font-weight: 400; color: var(--color-muted); }
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="file"], select, textarea {
  width: 100%; min-height: 48px; padding: var(--space-sm); color: var(--color-ink); background: var(--color-paper-2); border: 1.5px solid var(--color-muted); border-radius: var(--radius-field);
}
input:hover, select:hover, textarea:hover { border-color: var(--color-ink); }
textarea { min-height: 112px; resize: vertical; }
.check { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: var(--space-sm); font-weight: 400; }
.check input { width: 22px; height: 22px; margin: var(--space-3xs) 0 0; accent-color: var(--color-accent); }
.choice { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); padding: 0; margin: 0; border: 0; }
.choice legend { padding: 0; margin-bottom: var(--space-xs); font-weight: 600; }
.choice label { min-height: 44px; display: inline-flex; align-items: center; gap: var(--space-xs); font-weight: 400; }
.choice input { accent-color: var(--color-accent); }
.error { color: var(--color-error); font-weight: 600; }
.ok { color: var(--color-success); font-weight: 600; }
.error:empty, .ok:empty { display: none; }

/* Salary: swipe either slider. pan-y keeps the page scrolling when a thumb moves up or down the screen. */
.salary { display: grid; gap: var(--space-xs); min-width: 0; margin: 0; padding: 0; border: 0; }
.salary legend { padding: 0; font-weight: 600; }
.salary-text { font: 400 var(--text-xl)/1.2 var(--font-display); color: var(--color-accent-hover); font-variant-numeric: tabular-nums; }
.slider { display: grid; gap: 0; font-weight: 400; }
input[type="range"] {
  --fill: 0%;
  width: 100%; height: 44px; margin: 0; background: transparent; cursor: pointer; touch-action: pan-y; appearance: none; -webkit-appearance: none;
}
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: var(--radius-pill); background: linear-gradient(to right, var(--color-accent) var(--fill), var(--color-paper-3) var(--fill)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: var(--radius-pill); background: var(--color-paper-3); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: var(--radius-pill); background: var(--color-accent); }
input[type="range"]::-webkit-slider-thumb {
  width: 32px; height: 32px; margin-top: calc(var(--space-sm) * -1); border: 3px solid var(--color-paper-2); border-radius: 50%; background: var(--color-accent); box-shadow: var(--shadow-float); appearance: none; -webkit-appearance: none;
  transition: transform var(--dur-micro) var(--ease-out);
}
input[type="range"]::-moz-range-thumb {
  width: 26px; height: 26px; border: 3px solid var(--color-paper-2); border-radius: 50%; background: var(--color-accent); box-shadow: var(--shadow-float);
  transition: transform var(--dur-micro) var(--ease-out);
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.15); }
input[type="range"]:active::-moz-range-thumb { transform: scale(1.15); }
input[type="range"]:hover:not(:disabled)::-webkit-slider-thumb { background: var(--color-accent-hover); }
input[type="range"]:hover:not(:disabled)::-moz-range-thumb { background: var(--color-accent-hover); }
input[type="range"]:disabled { cursor: not-allowed; opacity: 0.45; }

/* Job posted: the one moment worth marking, so the tick draws itself. */
.posted { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: var(--space-md); align-items: start; padding: var(--space-lg); border-radius: var(--radius-card); background: var(--color-accent); color: var(--color-accent-ink); animation: posted-rise var(--dur-long) var(--ease-out) backwards; }
.posted > div { display: grid; gap: var(--space-xs); min-width: 0; }
.posted h2 { font-size: var(--text-2xl); }
.posted:focus { outline: none; }
details.card > summary { min-height: 44px; display: list-item; padding-block: var(--space-xs); }
.posted-tick { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.posted-tick circle, .posted-tick path { stroke-dasharray: 1; animation: posted-draw var(--dur-long) var(--ease-in-out) backwards; }
.posted-tick path { animation-delay: var(--dur-short); }
@keyframes posted-rise { from { opacity: 0; transform: translateY(var(--space-sm)); } }
@keyframes posted-draw { from { stroke-dashoffset: 1; } }

/* Inner pages */
.narrow { max-width: 640px; }
.tabs { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.tabs .pill[aria-pressed="true"], .tabs .pill[aria-pressed="true"]:hover { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: none; }
.page { display: grid; gap: var(--space-lg); padding-block: var(--space-xl) var(--space-2xl); }
.row-item { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: var(--space-xs) var(--space-md); padding-block: var(--space-sm); border-bottom: var(--rule-hair) solid var(--color-rule); }
.list { display: grid; }
.card h2, .prose h2 { font-size: var(--text-2xl); }
.row-item h3 { font: 600 var(--text-md)/1.3 var(--font-body); letter-spacing: 0; }
.prose { display: grid; gap: var(--space-md); max-width: 68ch; }

@view-transition { navigation: auto; }

@media (max-width: 60rem) {
  .hero, .index, .hire, .faq-grid { grid-template-columns: minmax(0, 1fr); }
  .lanyard { padding-top: 0; }
  .swing { width: min(100%, 320px); }
}
@media (max-width: 40rem) {
  .search { grid-template-columns: minmax(0, 1fr); }
  /* Phones: login and account pages get the form on screen first, with a one-line header and a smaller title. */
  .top:has(+ main.narrow) .top-row { flex-direction: row; justify-content: space-between; padding-block: var(--space-xs); }
  .top:has(+ main.narrow) .logo { width: 112px; }
  .narrow.page { gap: var(--space-md); padding-block: var(--space-md) var(--space-xl); }
  .narrow h1 { font-size: var(--text-3xl); max-width: none; }
  .top-row { gap: var(--space-2xs); padding-block: var(--space-xs); }
  .top-row .logo { width: 120px; }
  .top-row nav { gap: 0 var(--space-sm); font-size: var(--text-sm); }
  .top-row nav a.nav-cta { min-height: 44px; padding-inline: var(--space-sm); font-size: var(--text-sm); }
  /* Three floating buttons would cover the search form on a phone, so Share sits in the page's flow instead. */
  .share-tab { position: static; display: flex; justify-content: center; margin: 0 var(--gutter) var(--space-3xl); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1.5px var(--color-ink); }
  .narrow .card, .posted { padding: var(--space-md); }
  .tabs .pill { flex: 1 1 0; padding-inline: var(--space-sm); }
  form.stack .pill, .card .actions .pill { width: 100%; }
}
/* While someone is typing, floating buttons get out of the way of the form and the phone keyboard. */
body:has(form :focus) .chat-toggle, body:has(form :focus) .share-tab, body:has(form :focus) .signup-tab { display: none; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  .chat-panel, .posted, .posted-tick circle, .posted-tick path { animation: none; }
  .pill:active:not([disabled]), nav a.nav-cta:active { transform: none; }
  input[type="range"]:active::-webkit-slider-thumb, input[type="range"]:active::-moz-range-thumb { transform: none; }
}

/* ==== Full redesign: warm cream, the logo's chilli red and gold, and a staff badge that wears your name. ==== */
:root { --color-gold: #f2c94c; --color-gold-deep: #d9a520; --color-badge-ink: #120e04; }
.top { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: var(--color-paper-2); border-bottom: var(--rule-hair) solid var(--color-rule); }
.top-row, .top:has(+ main.narrow) .top-row { display: flex; flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-sm); padding-block: var(--space-xs); }
.top-row nav { justify-content: flex-end; flex-wrap: nowrap; gap: var(--space-md); font-size: var(--text-sm); }
.logo, .top-row .logo, .top:has(+ main.narrow) .logo { width: clamp(104px, 12vw, 136px); box-shadow: none; }
.top .pill.ghost { min-height: 44px; padding-inline: var(--space-md); font-size: var(--text-sm); }
.pill { font-weight: 600; }
nav a.nav-alt, nav a.nav-alt:hover { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 1.5px var(--color-ink); }
nav a.nav-alt:hover { background: var(--color-paper-3); }
.hero-login { color: var(--color-muted); }
.account-end { display: flex; justify-content: flex-start; }
nav a.nav-cta { min-height: 44px; padding-inline: var(--space-md); font-size: var(--text-sm); white-space: nowrap; }

/* The hero: the badge is the search. What you type appears on it as you type. */
.hero { align-items: center; padding-block: var(--space-xl) var(--space-2xl); }
.hero-copy { padding-top: 0; gap: var(--space-md); }
.stage h1 { max-width: 14ch; }
.word { display: inline-block; animation: word-rise var(--dur-long) var(--ease-out) backwards; animation-delay: calc(var(--i) * 45ms); }
@keyframes word-rise { from { opacity: 0; transform: translateY(0.35em); } }
.search { box-shadow: var(--shadow-search); border: var(--rule-hair) solid var(--color-rule); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.search .field:nth-child(1), .search .field:nth-child(2) { grid-column: 1 / -1; }
.search .pill { min-height: 52px; font-size: var(--text-lg); }
.lanyard { padding-top: 0; }
.swing { width: min(100%, 340px); }
.swing::before { content: ""; width: 16px; height: var(--space-2xl); background: var(--color-accent); }
.badge-card { display: grid; justify-items: center; gap: var(--space-2xs); width: 100%; padding: var(--space-lg) var(--space-md); margin-top: calc(var(--space-2xs) * -1); border-radius: var(--radius-card); background: linear-gradient(135deg, var(--color-gold), var(--color-gold-deep)); box-shadow: var(--shadow-badge); color: var(--color-badge-ink); text-align: center; }
.badge-mark { width: 62%; height: auto; -webkit-user-drag: none; }
.badge-name { margin-top: var(--space-xs); max-width: 100%; font: 400 var(--text-3xl)/1.1 var(--font-display); overflow-wrap: anywhere; }
.badge-role { min-height: 0; margin-top: 0; font: 600 var(--text-md)/1.3 var(--font-body); }

/* Jobs: clean cards, scanned and applied from with a thumb. */
.section { padding-block: var(--section-gap-s); }
.rule-top { border-top: 0; }
.job-list { gap: var(--space-sm); }
.job-card { padding: var(--space-md) var(--space-lg); background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); transition: border-color var(--dur-micro) linear; }
.job-card:hover { border-color: var(--color-accent); }
.job-card .salary { color: var(--color-accent); font: 400 var(--text-xl)/1.15 var(--font-display); font-variant-numeric: tabular-nums; }
.job-side .pill { justify-self: stretch; }
.tag { background: var(--color-paper-3); }
.empty { background: var(--color-paper-3); }

/* Browse: departments read like a menu, the four areas as quick choices. */
.dept summary { font-size: var(--text-xl); }
.depts, .index-list { border-top-color: var(--color-rule); }
.dept summary:hover, .index-item:hover { color: var(--color-accent); }
.index-places .index-list { display: flex; flex-wrap: wrap; gap: var(--space-xs); border: 0; }
.index-places .index-list li { border: 0; }
.index-places .index-item { width: auto; min-height: 44px; padding: 0 var(--space-md); background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-pill); font-size: var(--text-md); }
.index-places .index-item:hover { border-color: var(--color-accent); text-decoration: none; }

/* The employer band in the badge's gold. */
.band { background: linear-gradient(120deg, var(--color-gold), var(--color-gold-deep)); color: var(--color-badge-ink); }
.band .muted { color: var(--color-badge-ink); }
.hire .pill, .hire .pill:hover { background: var(--color-accent); color: var(--color-accent-ink); }
.hire .pill:hover { background: var(--color-accent-hover); }
.hire .pill.ghost { background: transparent; color: var(--color-badge-ink); box-shadow: inset 0 0 0 1.5px var(--color-badge-ink); }
.hire .pill.ghost:hover { background: var(--color-gold-deep); }
.band :focus-visible { outline-color: var(--color-badge-ink); }

.col { border-top: 2px solid var(--color-accent); }
.faq details summary { min-height: 44px; display: list-item; }

/* Forms: big targets, nothing fussy. */
input[type="text"], input[type="tel"], input[type="email"], input[type="password"], input[type="file"], select, textarea { min-height: 52px; border-color: var(--color-muted); background: var(--color-paper-2); }
.card { border: var(--rule-hair) solid var(--color-rule); box-shadow: none; }
.choice input, .check input { accent-color: var(--color-accent); }

/* Salary sliders in chilli red. */
.salary-text { color: var(--color-accent); }
input[type="range"]::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--color-accent) var(--fill), var(--color-paper-3) var(--fill)); }
input[type="range"]::-moz-range-progress { background: var(--color-accent); }
input[type="range"]::-webkit-slider-thumb { background: var(--color-gold); border-color: var(--color-accent); }
input[type="range"]::-moz-range-thumb { background: var(--color-gold); border-color: var(--color-accent); }
input[type="range"]:hover:not(:disabled)::-webkit-slider-thumb { background: var(--color-gold-deep); }
input[type="range"]:hover:not(:disabled)::-moz-range-thumb { background: var(--color-gold-deep); }

/* Job posted: the same gold as the badge. */
.posted { background: linear-gradient(135deg, var(--color-gold), var(--color-gold-deep)); color: var(--color-badge-ink); }
.posted-tick { stroke: var(--color-accent); }

/* Sign up floats only once the search has scrolled away, so it never covers the search button. */
.signup-tab, .signup-tab:hover { background: var(--color-ink); color: var(--color-paper-2); transition: opacity var(--dur-short) linear; }
.at-stage .signup-tab { opacity: 0; pointer-events: none; visibility: hidden; }
@media (min-width: 60.01rem) {
  .at-stage .share-tab { visibility: hidden; }
  .search .field:nth-child(1), .search .field:nth-child(2) { grid-column: auto; }
  .hero { padding-block: var(--space-lg) var(--space-xl); }
}

@media (max-width: 60rem) {
  .hero { gap: var(--space-md); padding-block: 0 var(--space-xl); }
  .lanyard { order: -1; }
  .swing { width: min(100%, 280px); }
  .swing::before { height: var(--space-lg); }
  .badge-card { padding: var(--space-sm); }
  .badge-mark { width: 46%; }
  .badge-name { margin-top: var(--space-2xs); font-size: var(--text-2xl); }
  .stage h1 { max-width: none; font-size: var(--text-3xl); }
  .stage .lead { font-size: var(--text-md); }
}
@media (max-width: 40rem) {
  .top-row nav { gap: var(--space-xs); }
  nav a.nav-cta { padding-inline: var(--space-sm); }
  .search { padding: var(--space-sm); }
  .job-card { padding: var(--space-md); }
  .job-side { flex: 1 1 100%; }
  .job-side .pill { width: 100%; }
  .section { padding-block: var(--space-xl); }
  .chat-toggle { min-height: 44px; padding-inline: var(--space-md); }
}
@media (prefers-reduced-motion: reduce) {
  .word { animation: none; }
  .signup-tab { transition: none; }
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-xs) var(--space-md); }
.row-item .actions .pill { min-height: 44px; }

/* Motion. Pages cross-fade with the header held still, sections rise as they scroll in. Content is visible without any of it. */
.film { display: block; width: min(100%, 480px); height: auto; border-radius: var(--radius-card); background: var(--color-paper-3); }
.job-skeleton { position: relative; height: 136px; overflow: hidden; background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); }
.job-skeleton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, var(--color-paper-3), transparent); animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.job-list > .job-card { animation: card-in var(--dur-short) var(--ease-out) backwards; }
.job-list > .job-card:nth-child(2) { animation-delay: 50ms; }
.job-list > .job-card:nth-child(3) { animation-delay: 100ms; }
.job-list > .job-card:nth-child(4) { animation-delay: 150ms; }
@keyframes card-in { from { opacity: 0; transform: translateY(var(--space-xs)); } }
details[open] > :not(summary) { animation: card-in var(--dur-short) var(--ease-out); }
@media (prefers-reduced-motion: no-preference) {
  .top { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: page-out var(--dur-micro) linear both; }
  ::view-transition-new(root) { animation: page-in var(--dur-short) var(--ease-out) both; }
  @keyframes page-out { to { opacity: 0; } }
  @keyframes page-in { from { opacity: 0; transform: translateY(var(--space-xs)); } }
  .job-card { transition: transform var(--dur-short) var(--ease-out), border-color var(--dur-micro) linear; }
  .job-card:hover { transform: translateY(calc(var(--space-3xs) * -1)); }
  @supports (animation-timeline: view()) {
    .section > h2, .col, .faq details, .dept, .film { animation: scroll-rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
    @keyframes scroll-rise { from { opacity: 0; transform: translateY(var(--space-md)); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  .job-skeleton::after, .job-list > .job-card, details[open] > :not(summary) { animation: none; }
}

/* Admin screen */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-xs); margin: 0; }
.stats div { padding: var(--space-sm); background: var(--color-paper-2); border: var(--rule-hair) solid var(--color-rule); border-radius: var(--radius-card); min-width: 0; }
.stats dt { color: var(--color-muted); font-size: var(--text-sm); }
.stats dd { margin: 0; font: 400 var(--text-2xl)/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
#admin-status:empty { display: none; }
.admin-list { gap: var(--space-sm); }
.admin-card h2 { font-size: var(--text-xl); }
.admin-salary { color: var(--color-accent); font-weight: 600; }
.admin-card a { overflow-wrap: anywhere; }

/* App install */
.install-app { justify-self: start; }
.account-end { flex-wrap: wrap; gap: var(--space-xs); }

/* Dashboard extras */
.admin-filters { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--space-xs); }
.admin-trend summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.admin-trend table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.admin-trend th, .admin-trend td { padding: var(--space-2xs) var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); text-align: right; font-weight: 400; }
.admin-trend th:first-child { text-align: left; }
.admin-trend thead th { color: var(--color-muted); font-size: var(--text-sm); }
.tag-verified { color: var(--color-accent); font-weight: 600; }
.admin-card .tag { justify-self: start; width: fit-content; }
@media (max-width: 560px) {
  .admin-filters { grid-template-columns: minmax(0, 1fr); }
}
/* Owner dashboard (admin.html). Phones: tabs scroll across the top. Computers: tabs become a sidebar. */
.admin-shell { display: grid; gap: var(--space-lg); padding-block: var(--space-md) var(--space-2xl); }
.admin-main, .overview, .admin-lists { display: grid; gap: var(--space-md); min-width: 0; align-content: start; }
.admin-nav { position: sticky; top: 0; z-index: var(--z-sticky); flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: var(--space-xs) var(--gutter); background: var(--color-paper); border-bottom: var(--rule-hair) solid var(--color-rule); }
.admin-nav::-webkit-scrollbar { display: none; }
.admin-nav .pill { flex: 0 0 auto; white-space: nowrap; }
.badge { display: inline-grid; place-items: center; min-width: 1.5em; height: 1.5em; padding-inline: 0.35em; margin-left: var(--space-2xs); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font-size: var(--text-xs); font-variant-numeric: tabular-nums; }
[aria-pressed="true"] .badge { background: var(--color-accent-ink); color: var(--color-accent); }
.ov-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm); }
.ov-head .note { color: var(--color-muted); margin: 0; }
.overview .card { padding: var(--space-md); gap: var(--space-sm); }
.overview h2 { font-size: var(--text-xl); }
.attention { list-style: none; margin: 0; padding: 0; display: grid; }
.attention li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm); padding-block: var(--space-xs); border-top: var(--rule-hair) solid var(--color-rule); }
.attention li:first-child { border-top: 0; }
.attention li p { margin: 0; }
.attention-urgent p { font-weight: 600; }
.attention-urgent p::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: var(--space-xs); border-radius: 50%; background: var(--color-accent); vertical-align: middle; }
.attention-clear { color: var(--color-success); font-weight: 600; }
.attention .pill { flex: 0 0 auto; min-height: 40px; padding-block: 0; }
.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.kpis dd { font-size: var(--text-3xl); }
.delta { margin: 0; color: var(--color-muted); font-size: var(--text-xs); }
.ov-chart-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-xs); }
.segmented { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--radius-pill); background: var(--color-paper-3); }
.segmented button { min-height: 36px; padding: 0 var(--space-sm); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-ink); font: 600 var(--text-sm) var(--font-body); cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--color-paper-2); box-shadow: 0 1px 2px oklch(20% 0.01 80 / 0.18); }
.ov-total { margin: 0; font: 400 var(--text-2xl)/1.1 var(--font-display); }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid { stroke: var(--color-rule); stroke-width: 1; }
.chart .axis { fill: var(--color-muted); font: 11px var(--font-body); font-variant-numeric: tabular-nums; }
.chart .bar { fill: var(--color-accent); }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .hit.on { fill: oklch(20% 0.01 80 / 0.06); }
.chart-tip { position: absolute; top: -6px; transform: translate(-50%, -100%); padding: var(--space-2xs) var(--space-xs); border-radius: var(--radius-field); background: var(--color-ink); color: var(--color-on-ink); font-size: var(--text-xs); white-space: nowrap; pointer-events: none; z-index: var(--z-tooltip); }
.ov-pair { display: grid; gap: var(--space-md); }
.hbars { display: grid; gap: var(--space-sm); }
.hbar { display: grid; grid-template-columns: minmax(0, 9rem) minmax(0, 1fr) 7rem; align-items: center; gap: var(--space-sm); font-size: var(--text-sm); }
.hbar-track { height: 12px; border-radius: 4px; background: var(--color-paper-3); overflow: hidden; }
.hbar-fill { display: block; height: 100%; border-radius: 4px; background: var(--color-accent); }
.hbar strong { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.table-scroll { overflow-x: auto; }
.roles-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.roles-table th, .roles-table td { padding: var(--space-xs); border-bottom: var(--rule-hair) solid var(--color-rule); text-align: right; font-weight: 400; }
.roles-table th:first-child, .roles-table td:last-child { text-align: left; }
.roles-table thead th { color: var(--color-muted); font-size: var(--text-sm); }
.gap-short { color: var(--color-accent); font-weight: 600; }
@media (min-width: 40.01rem) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 60.01rem) {
  main.admin-wide { max-width: var(--container); }
  .admin-shell { grid-template-columns: 200px minmax(0, 1fr); align-items: start; padding-top: var(--space-lg); }
  .admin-nav { flex-direction: column; top: var(--space-md); margin: 0; padding: 0; border: 0; overflow: visible; background: none; }
  .admin-nav .pill { width: 100%; justify-content: space-between; padding-inline: var(--space-md); }
  .kpis { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ov-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .admin-wide .admin-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
