/* WanderWage: mobile-first styles. Breakpoints: 640px, 960px. */

:root {
  --pine: #184d39;
  --forest: #236046;
  --moss: #4f8a6c;
  --sage: #e2eee8;
  --sand: #f4ecdf;
  --cream: #fbf7f0;
  --sunset: #e8743b;
  --sunset-dark: #c95c27;
  --amber: #f2a541;
  --sky: #f7d9b0;
  --ink: #1d2420;
  --muted: #5b665f;
  --line: #e3dccf;
  --white: #fff;
  --danger: #b3261e;

  --font-display: 'Urbanist', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgb(24 77 57 / 0.06), 0 2px 8px rgb(24 77 57 / 0.06);
  --shadow: 0 2px 6px rgb(24 77 57 / 0.06), 0 12px 32px rgb(24 77 57 / 0.12);
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--forest); }
h1, h2, h3 { font-family: var(--font-display); font-weight: 750; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 4.5vw, 2.4rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); }

.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--pine); color: var(--white); padding: 8px 14px; border-radius: 8px;
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--amber); margin-bottom: .75rem;
}
.eyebrow--dark { color: var(--sunset-dark); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: 600 1rem/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 2px solid transparent; border-radius: 999px; padding: .85em 1.4em;
  transition: background-color .15s, transform .15s, box-shadow .15s;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--sunset); color: var(--white); box-shadow: 0 6px 16px rgb(232 116 59 / .35); }
.btn--primary:hover { background: var(--sunset-dark); }
.btn--accent { background: var(--amber); color: var(--pine); }
.btn--accent:hover { background: #f5b65f; }
.btn--light { background: var(--white); color: var(--pine); }
.btn--light:hover { background: var(--sand); }
.btn--ghost { background: transparent; color: var(--forest); border-color: var(--forest); }
.btn--ghost:hover { background: var(--sage); }
.btn--sm { font-size: .9rem; padding: .6em 1.1em; }
.btn--lg { font-size: 1.05rem; padding: 1em 1.7em; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(24 77 57 / .94); backdrop-filter: blur(8px);
  color: var(--white);
}
.site-header__inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }

/* Wordmark: light "wander" + heavy "wage", underlined by a route that ends in a pin. */
.logo {
  --logo-orange: #e5893b;
  position: relative; display: inline-flex; align-items: flex-end; gap: .26em;
  color: inherit; text-decoration: none;
  font-family: var(--font-display); font-size: 1.75rem; line-height: 1; letter-spacing: -0.01em;
}
@media (max-width: 359px) { .logo { font-size: 1.5rem; } } /* smallest phones: room for Post a job */
@media (min-width: 640px) { .logo { font-size: 1.95rem; } }
@media (min-width: 960px) {
  .logo { font-size: 2.2rem; }
  .site-header__inner { height: 72px; }
  html { scroll-padding-top: 88px; }
}
.logo::after {
  content: ''; position: absolute; left: -.06em; right: .5em; bottom: 0;
  height: .065em; min-height: 2px; background: var(--logo-orange);
}
.logo__word { padding-bottom: .2em; white-space: nowrap; }
.logo__wander { font-weight: 300; }
.logo__wage { font-weight: 800; }
.logo__pin {
  position: relative; z-index: 1; flex: none; display: grid; place-items: center;
  width: 1.05em; height: 1.05em; border-radius: 50%;
  background: var(--cream); border: .055em solid var(--logo-orange); color: var(--logo-orange);
}
.logo__pin svg { width: 66%; height: 66%; fill: currentColor; }

.site-nav { display: flex; align-items: center; gap: 1.1rem; }
/* Menu in the logo's typeface, so the header reads as one piece. */
.site-nav a:not(.btn) { display: none; color: rgb(255 255 255 / .85); text-decoration: none; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; letter-spacing: .01em; }
.site-nav a:not(.btn):hover { color: var(--white); }

/* ---------- Hero ---------- */

.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(180deg, #184d39 0%, #6e5a4f 34%, #d98f6d 62%, var(--sky) 100%);
  color: var(--white);
  padding: 44px 0 210px;
}
.hero__content { position: relative; z-index: 2; max-width: 760px; }
.hero h1 { font-size: clamp(2.3rem, 8.5vw, 4.4rem); margin-bottom: .35em; text-wrap: balance; }
.hero h1 { font-weight: 800; letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; color: var(--amber); }
.hero__lede { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.15rem, 2.8vw, 1.45rem); letter-spacing: .005em; max-width: 34em; color: rgb(255 255 255 / .92); }
.hero__art { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 230px; z-index: 1; }
.hero__van { animation: bob 3.2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .hero__van { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Search panel ---------- */

.search { position: relative; z-index: 5; margin-top: -28px; }
.search-panel {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 10px; border: 1px solid rgb(24 77 57 / .06);
}

.mode-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--sand); border-radius: var(--radius); padding: 5px; }
.mode-tab {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font: inherit; color: var(--muted); background: transparent; border: 0; border-radius: 12px;
  padding: 10px 4px; cursor: pointer; transition: background-color .15s, color .15s;
}
.mode-tab:hover { color: var(--pine); }
.mode-tab[aria-pressed="true"] { background: var(--white); color: var(--pine); box-shadow: var(--shadow-sm); }
.mode-tab__icon { width: 24px; height: 24px; }
.mode-tab[aria-pressed="true"] .mode-tab__icon { color: var(--sunset); }
.mode-tab__text { display: flex; flex-direction: column; text-align: center; }
.mode-tab__text strong { font-size: .92rem; line-height: 1.2; }
.mode-tab__text small { display: none; font-size: .8rem; color: var(--muted); }

.search-form { padding: 14px 6px 6px; display: grid; gap: 14px; }
.search-form__main { display: grid; gap: 14px; min-width: 0; }
.search-form__dates { border: 0; margin: 0; padding: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px 12px; }
.search-form__fields, .search-form .field { min-width: 0; }
.field input, .field select { min-width: 0; }
.field input[type="date"] { -webkit-appearance: none; appearance: none; padding-left: 10px; padding-right: 8px; }
.search-form__dates legend { grid-column: 1 / -1; font-size: .85rem; font-weight: 600; color: var(--pine); padding: 0; margin-bottom: 6px; }
.search-form__dates .field label { font-weight: 500; color: var(--muted); font-size: .8rem; }
.search-form__fields { display: grid; gap: 12px; }
.search-form__submit { width: 100%; }

.field { display: grid; gap: 6px; }
.field label, .field legend { font-size: .85rem; font-weight: 600; color: var(--pine); }
.field input, .field select, .field textarea, .sort select, .link-import input {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: var(--cream); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  padding: 12px 14px; min-height: 48px; transition: border-color .15s, background-color .15s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .link-import input:focus { outline: none; border-color: var(--moss); background: var(--white); box-shadow: 0 0 0 3px rgb(77 122 82 / .18); }
.field select, .sort select {
  appearance: none; padding-right: 38px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23236046' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px;
}

.input-with-action { position: relative; }
.input-with-action input { padding-right: 52px; }
.input-action {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 38px; height: 38px; border: 0; border-radius: 9px; cursor: pointer;
  background: var(--sage); color: var(--forest); display: grid; place-items: center; padding: 8px;
}
.input-action:hover { background: #cfe3da; }
.input-action.is-loading svg { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-error { color: var(--danger); font-weight: 500; font-size: .92rem; margin: 4px 8px 6px; }
.form-error:empty { display: none; }

/* ---------- Results ---------- */

.results { padding: 40px 0 56px; }
.results__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 16px; }
.results__head h2 { margin-bottom: .2em; }
.results__summary { color: var(--muted); margin: 0; }

.sort { display: flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--pine); }
.sort select { width: auto; min-height: 40px; padding-top: 8px; padding-bottom: 8px; background-color: var(--white); }

.filters {
  display: flex; gap: 8px; margin: 0 calc(var(--gutter) * -1) 20px; padding: 2px var(--gutter) 6px;
  overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.filters::-webkit-scrollbar { display: none; }

.chip {
  position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border-radius: 999px; cursor: pointer; user-select: none;
  background: var(--white); border: 1.5px solid var(--line); color: var(--ink);
  font-size: .9rem; font-weight: 500; transition: all .15s;
}
.chip svg { width: 17px; height: 17px; color: var(--moss); }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip:hover { border-color: var(--moss); }
.chip:has(input:checked) { background: var(--pine); border-color: var(--pine); color: var(--white); }
.chip:has(input:checked) svg { color: var(--amber); }
.chip:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 2px; }

.job-grid { display: grid; gap: 16px; }
/* Opening one card's details grows that card only, not the rest of its row. */
.job-grid:has(details[open]) .job-card:not(:has(details[open])) { align-self: start; }

/* ---------- Job card ---------- */

.job-card {
  position: relative; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid rgb(24 77 57 / .07); padding: 18px 18px 14px;
  transition: box-shadow .2s, transform .2s;
}
.job-card:hover { box-shadow: var(--shadow); }
.job-card.is-highlighted { animation: flash 1.6s ease-out; }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px var(--amber), var(--shadow); } }

/* If the pay is long it moves to its own line rather than squashing the category. */
.job-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 10px; }
.job-card__cat {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--forest); background: var(--sage); padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.job-card__pay { font: 700 1.2rem/1 var(--font-display); letter-spacing: -0.02em; color: var(--sunset-dark); white-space: nowrap; }
.job-card__title { font-size: 1.3rem; margin-bottom: .15em; }
.job-card__employer { color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.job-card__stop {
  position: absolute; top: -10px; left: -6px; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; background: var(--pine); color: var(--white);
  font-size: .8rem; font-weight: 700; box-shadow: var(--shadow-sm);
}

.job-card__meta { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font-size: .93rem; }
.job-card__meta li { display: flex; gap: 8px; align-items: flex-start; }
.job-card__meta svg, .job-card__stay svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--moss); }
.job-card__meta strong { color: var(--pine); }
.job-card__closing { color: var(--muted); }
.job-card__also { color: var(--forest); font-weight: 600; }
.job-card__closing.is-stated { color: var(--sunset-dark); font-weight: 600; }
.job-card__closing.is-stated svg { color: var(--sunset-dark); }

.badge { display: inline-block; font-size: .72rem; font-weight: 700; background: var(--amber); color: var(--pine); padding: 2px 8px; border-radius: 999px; vertical-align: 2px; margin-left: 4px; }

.tags { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: .8rem; font-weight: 500; padding: 4px 10px 4px 8px; border-radius: 999px;
  background: var(--sand); color: var(--ink);
}
.tag svg { width: 15px; height: 15px; }
.tag--stay { background: #ddede5; color: var(--pine); }
.tag--hot { background: #fde3d3; color: #8a3a12; }
.tag--temp { background: #f7c99c; color: #5a2a06; font-weight: 600; box-shadow: inset 0 0 0 1px #e5893b; }

.job-card__more { margin-top: auto; border-top: 1px solid var(--line); padding-top: 10px; }
.job-card__more summary {
  cursor: pointer; font-weight: 600; color: var(--forest); list-style: none;
  display: flex; align-items: center; justify-content: space-between; padding: 4px 0;
}
.job-card__more summary::-webkit-details-marker { display: none; }
.job-card__more summary::after { content: '+'; font-size: 1.3rem; line-height: 1; color: var(--sunset); }
.job-card__more[open] summary::after { content: '–'; }
.job-card__more p { font-size: .95rem; color: #39433d; margin: 10px 0; }
.job-card__stay { display: flex; gap: 8px; background: var(--cream); border-radius: var(--radius-sm); padding: 10px 12px; }
.job-card__more .btn { margin: 4px 0 6px; }

/* ---------- Route strip ---------- */

.route-strip {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "from to" "track track"; align-items: center; gap: 16px 14px;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 18px 16px; margin-bottom: 24px; font-size: .85rem; font-weight: 600; color: var(--pine);
}
.route-strip__end:first-child { grid-area: from; }
.route-strip__end:last-child { grid-area: to; }
.route-strip__end { display: flex; align-items: center; gap: 4px; white-space: nowrap; }
.route-strip__end svg { width: 16px; height: 16px; color: var(--sunset); }
.route-strip__end small { color: var(--muted); font-weight: 500; }
.route-strip__track {
  grid-area: track; position: relative; height: 6px; border-radius: 3px; margin: 4px 12px;
  background: repeating-linear-gradient(90deg, var(--pine) 0 14px, var(--line) 14px 22px);
}
.route-strip__stop {
  position: absolute; top: 50%; transform: translate(-50%, -50%);
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--sunset); color: var(--white); text-decoration: none;
  font-size: .75rem; font-weight: 700; border: 2px solid var(--white); box-shadow: var(--shadow-sm);
  transition: transform .15s;
}
.route-strip__stop:hover { transform: translate(-50%, -50%) scale(1.18); z-index: 99 !important; }

.empty { text-align: center; background: var(--white); border-radius: var(--radius); padding: 40px 20px; border: 2px dashed var(--line); }
.empty p { color: var(--muted); max-width: 30em; margin-inline: auto; }

/* ---------- How it works ---------- */

.how { background: var(--sand); padding: 56px 0; }
.how h2 { max-width: 16em; }
.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 16px; counter-reset: step; }
.step { background: var(--white); border-radius: var(--radius); padding: 22px 20px; box-shadow: var(--shadow-sm); }
.step__num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 14px;
  background: var(--pine); color: var(--amber); font: 700 1.2rem/1 var(--font-display);
}
.step { display: flex; flex-direction: column; }
.step p { color: var(--muted); margin: 0 0 14px; }
.step__link { margin-top: auto; color: var(--forest); font-weight: 600; text-decoration: none; }
.step__link:hover { text-decoration: underline; }

/* ---------- Employer CTA ---------- */

.employer-cta { background: var(--pine); color: var(--white); padding: 56px 0; position: relative; overflow: hidden; }
.employer-cta::before {
  content: ''; position: absolute; right: -80px; bottom: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgb(242 165 65 / .28), transparent 70%);
}
.employer-cta__inner { position: relative; display: grid; gap: 24px; }
.employer-cta p:not(.eyebrow) { color: rgb(255 255 255 / .82); max-width: 34em; margin: 0; }

/* ---------- Footer ---------- */

.site-footer { background: #113a2b; color: rgb(255 255 255 / .7); padding: 32px 0; font-size: .9rem; }
.site-footer__inner { display: grid; gap: 8px; }
.site-footer p { margin: 0; }
.logo--footer { justify-self: start; color: var(--white); font-size: 1.6rem !important; margin-bottom: 6px; }
.site-footer__note { font-size: .8rem; color: rgb(255 255 255 / .5); }

/* ---------- Post a job page ---------- */

.page-hero {
  background: linear-gradient(160deg, var(--pine), #2f6650 70%, #6e5a4f);
  color: var(--white); padding: 40px 0 96px;
}
.page-hero h1 { font-size: clamp(2rem, 6vw, 3.2rem); }
.page-hero p:not(.eyebrow) { color: rgb(255 255 255 / .85); max-width: 36em; font-size: 1.05rem; }

.post-layout { display: grid; gap: 24px; margin-top: -64px; padding-bottom: 56px; position: relative; }
.post-form {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 22px 18px; display: grid; gap: 28px;
}
.post-form fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; }
.post-form legend { font: 700 1.2rem/1.2 var(--font-display); color: var(--pine); margin-bottom: 14px; padding: 0; }
.field-row { display: grid; gap: 14px; }
.field-hint { font-size: .8rem; color: var(--muted); font-weight: 400; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field-error { font-size: .82rem; color: var(--danger); font-weight: 500; }
.field-error:empty { display: none; }

.stay-options { display: grid; gap: 8px; }
.option-card {
  position: relative; display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1.5px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; background: var(--cream);
  font-weight: 500;
}
.option-card svg { width: 22px; height: 22px; color: var(--moss); flex: none; }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card:has(input:checked) { border-color: var(--moss); background: #eaf3ee; box-shadow: inset 0 0 0 1px var(--moss); }
.option-card:has(input:focus-visible) { outline: 3px solid var(--amber); outline-offset: 2px; }

.check-grid { display: grid; gap: 8px; }
.apply-options { grid-template-columns: 1fr 1fr; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.post-form__actions .form-error { margin: 0; }
.check {
  display: flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 500;
  padding: 10px 12px; border-radius: var(--radius-sm); border: 1.5px solid var(--line); background: var(--cream);
}
.check input { width: 20px; height: 20px; accent-color: var(--forest); margin: 0; }
.check:has(input:disabled) { opacity: .5; cursor: not-allowed; }

.post-form__actions { display: grid; gap: 10px; }
.post-form__actions p { font-size: .85rem; color: var(--muted); margin: 0; }

.preview { display: grid; gap: 12px; align-content: start; }
.preview__label { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0; }
.preview__tips { background: var(--sand); border-radius: var(--radius); padding: 18px 20px; font-size: .92rem; }
.preview__tips h3 { font-size: 1.05rem; }
.preview__tips ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 4px; }

.success {
  background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 32px 22px; text-align: center;
}
.success__icon { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--sage); color: var(--forest); display: grid; place-items: center; padding: 16px; }
.success p { color: var(--muted); }
.success__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }

/* ---------- ≥ 640px ---------- */

@media (min-width: 640px) {
  :root { --gutter: 24px; }
  .mode-tab { flex-direction: row; justify-content: center; gap: 10px; padding: 12px; text-align: left; }
  .mode-tab__text { text-align: left; }
  .mode-tab__text small { display: block; }
  .search-panel { padding: 12px; }
  .search-form { padding: 18px 10px 10px; }
  .search-form__fields { grid-template-columns: 1fr 170px; }
  .search-form__fields[data-modes="route"] { grid-template-columns: 1fr 1fr 170px; }
  .job-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .hero { padding: 64px 0 240px; }
  .search { margin-top: -40px; }
  .hero__art { height: 300px; }
  .filters { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row--pay { grid-template-columns: 1fr 1fr minmax(0, .8fr); }
  .check-grid, .stay-options { grid-template-columns: repeat(3, 1fr); }
  .apply-options { grid-template-columns: 1fr 1fr; }
  .check-grid { grid-template-columns: 1fr 1fr; }
  .route-strip { grid-template-columns: auto 1fr auto; grid-template-areas: "from track to"; }
  .post-form { padding: 32px; }
  .site-footer__inner { grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; }
  .logo--footer { margin: 0; }
}

/* ---------- ≥ 960px ---------- */

@media (min-width: 960px) {
  .hero { padding: 88px 0 280px; }
  .hero__art { height: 360px; }
  .search { margin-top: -48px; }
  .search-form { grid-template-columns: 1fr auto; align-items: end; }
  .search-form__submit { width: auto; min-height: 48px; padding-block: 0; }
  .job-grid { grid-template-columns: repeat(3, 1fr); }
  .results { padding-top: 56px; }
  .how { padding: 56px 0 80px; }
  .employer-cta { padding: 80px 0; }
  .employer-cta__inner { grid-template-columns: 1fr auto; align-items: center; gap: 48px; }
  .post-layout { grid-template-columns: minmax(0, 1fr) 380px; align-items: start; }
  .preview { position: sticky; top: 84px; }
}

/* ---------- Admin ---------- */

.site-nav .btn { white-space: nowrap; }
.admin-badge {
  display: none; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--pine); background: var(--amber); padding: 4px 10px; border-radius: 999px;
}
.page-hero--compact { padding-bottom: 72px; }
.admin { margin-top: -44px; padding-bottom: 56px; position: relative; }

.admin-tabs {
  display: flex; gap: 6px; padding: 5px; margin-bottom: 16px; overflow-x: auto;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); scrollbar-width: none;
}
.admin-tab {
  flex: 1 0 auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font: 600 .92rem/1 var(--font-body); color: var(--muted); background: transparent;
  border: 0; border-radius: 12px; padding: 12px 14px; cursor: pointer;
}
.admin-tab[aria-selected="true"] { background: var(--pine); color: var(--white); }
.admin-tab__count:not(:empty) {
  min-width: 22px; padding: 3px 7px; border-radius: 999px; font-size: .75rem;
  background: var(--sand); color: var(--pine);
}
.admin-tab[aria-selected="true"] .admin-tab__count:not(:empty) { background: var(--amber); }

.admin-status { color: var(--muted); font-size: .92rem; margin: 0 0 12px; min-height: 1.4em; }
.admin-status.is-error { color: var(--danger); font-weight: 500; }

.admin-list { display: grid; gap: 20px; }
.admin-item {
  display: grid; gap: 0; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); overflow: hidden; border: 1px solid rgb(24 77 57 / .07);
}
.admin-item__card .job-card { box-shadow: none; border: 0; border-radius: 0; height: 100%; }
.admin-item__panel { display: grid; gap: 14px; align-content: start; padding: 18px; background: var(--cream); border-top: 1px solid var(--line); }
.admin-meta { margin: 0; display: grid; gap: 8px; font-size: .9rem; }
.admin-meta div { display: grid; grid-template-columns: 120px 1fr; gap: 8px; }
.admin-meta dt { color: var(--muted); font-weight: 500; }
.admin-meta dd { margin: 0; overflow-wrap: anywhere; }
.admin-item__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-item__actions .btn:disabled { opacity: .5; cursor: wait; }
.admin-pill { justify-self: start; font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.admin-pill--live { background: var(--sage); color: var(--forest); }
.admin-pill--muted { background: var(--sand); color: var(--muted); }

@media (min-width: 640px) {
  .admin-badge { display: inline-block; }
}

@media (min-width: 960px) {
  .admin-item { grid-template-columns: minmax(0, 1fr) 360px; }
  .admin-item__panel { border-top: 0; border-left: 1px solid var(--line); }
}

/* ---------- Imported (job board) listings ---------- */

.job-card__attribution {
  align-self: flex-end; margin-top: 8px; font-size: .75rem; color: var(--muted); text-decoration: none;
}
.job-card__attribution strong { color: var(--forest); }
.job-card__attribution:hover { text-decoration: underline; }
.job-card__source { font-size: .82rem !important; color: var(--muted) !important; }

.admin-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.admin-toolbar .btn:disabled { opacity: .6; cursor: wait; }
.job-card__estimate { color: var(--muted); font-size: .8rem; }

/* ---------- Results tools, map, saved, share ---------- */

.results__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.view-toggle { display: inline-flex; padding: 3px; background: var(--sand); border-radius: 999px; }
.view-toggle__btn {
  font: 600 .88rem/1 var(--font-body); color: var(--muted); background: none; border: 0;
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
}
.view-toggle__btn[aria-pressed="true"] { background: var(--white); color: var(--pine); box-shadow: var(--shadow-sm); }

.job-map {
  height: min(70vh, 560px); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); margin-bottom: 20px; background: var(--sage); z-index: 0;
}
.map-error { color: var(--danger); font-weight: 500; }
.map-pin {
  display: block; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--pine); border: 3px solid var(--white); box-shadow: 0 2px 6px rgb(0 0 0 / .3);
}
.map-pin--external { background: var(--logo-orange, #e5893b); }
.leaflet-popup-content { font: 14px/1.45 var(--font-body); }
.leaflet-popup-content a { font-weight: 600; color: var(--forest); }

/* The heart stays top right; category and pay wrap around it. */
.job-card__head { position: relative; padding-right: 44px; min-height: 36px; }
.job-card__head:not(:has(.job-card__save)) { padding-right: 0; min-height: 0; } /* previews have no heart */
.job-card__save {
  position: absolute; top: 0; right: 0; width: 36px; height: 36px; display: grid; place-items: center; padding: 7px;
  border: 0; border-radius: 50%; background: var(--cream); color: var(--muted); cursor: pointer;
  transition: color .15s, background-color .15s, transform .15s;
}
.job-card__save:hover { color: var(--sunset-dark); }
.job-card__save[aria-pressed="true"] { color: var(--white); background: var(--sunset); }
.job-card__save[aria-pressed="true"] svg { fill: currentColor; }
.job-card__save:active { transform: scale(.9); }
.job-card__pay { margin-left: auto; }

.job-card__pitch { list-style: none; margin: 10px 0; padding: 10px 12px; display: flex; flex-wrap: wrap; gap: 6px 14px;
  background: var(--cream); border-radius: var(--radius-sm); font-size: .88rem; color: var(--pine); font-weight: 500; }
.job-card__pitch li::before { content: '✓ '; color: var(--moss); font-weight: 700; }
.job-card__actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
.job-card__actions .btn { margin: 0; }
.job-card__actions .btn svg { width: 16px; height: 16px; }

.toast {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 100;
  background: var(--pine); color: var(--white); padding: 12px 18px; border-radius: 999px;
  box-shadow: var(--shadow); font-size: .92rem; max-width: calc(100vw - 32px); text-align: center;
}

@media (min-width: 640px) {
  .search-form__dates { max-width: 420px; }
}

.pitch-fields { display: grid; gap: 12px; padding: 14px; border-radius: var(--radius-sm); background: #f3f7f4; border: 1px solid var(--line); }
.pitch-fields__intro { margin: 0; font-weight: 600; color: var(--pine); font-size: .92rem; }

/* ---------- Admin insights ---------- */

.insights { display: grid; gap: 16px; }
.insights__note { margin: 0; color: var(--muted); font-size: .9rem; }
.insights__headline { margin: 0; font-size: 1rem; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 16px; display: grid; gap: 4px; }
.stat__n { font: 700 1.8rem/1 var(--font-display); color: var(--pine); }
.stat__label { color: var(--muted); font-size: .85rem; font-weight: 500; }
.insights__grid { display: grid; gap: 14px; }
.insights__card { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 18px; overflow-x: auto; }
.insights__card h3 { font-size: 1.05rem; }
.insights__empty { color: var(--muted); margin: 0; }
.stat-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.stat-table th { text-align: left; color: var(--muted); font-weight: 600; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; padding: 6px 8px 6px 0; border-bottom: 1px solid var(--line); }
.stat-table td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--line); }
.stat-table td:last-child, .stat-table th:last-child { text-align: right; padding-right: 0; }

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .insights__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .stats { grid-template-columns: repeat(6, 1fr); }
  .insights__grid { grid-template-columns: repeat(3, 1fr); }
  .insights__card--wide { grid-column: 1 / -1; }
}

/* ---------- Text pages (privacy, terms) ---------- */

.prose { max-width: 720px; margin: -44px auto 56px; position: relative; background: var(--white);
  border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 28px 20px; line-height: 1.65; }
.prose h2 { font-size: 1.3rem; margin-top: 1.6em; }
.prose h2:first-of-type { margin-top: .6em; }
.prose ul { padding-left: 1.2em; display: grid; gap: 8px; }
.prose a { color: var(--forest); font-weight: 500; }
.prose__draft { background: #fff4e5; border-left: 4px solid var(--amber); padding: 10px 14px; border-radius: 6px; font-size: .92rem; }
.todo { background: #ffe8a3; padding: 0 4px; border-radius: 4px; }
.site-footer__note a { color: inherit; }
@media (min-width: 640px) { .prose { padding: 40px 48px; } }

/* ---------- Fuel prices ---------- */

/* Phones: section links in a slim row under the header (desktop uses .site-nav). */
.site-subnav {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  padding: 0 var(--gutter) 8px; margin-top: -4px;
}
.site-subnav::-webkit-scrollbar { display: none; }
.site-subnav a {
  flex: none; color: rgb(255 255 255 / .85); text-decoration: none; font-family: var(--font-display); font-size: .92rem; font-weight: 600;
  padding: 5px 11px; border-radius: 999px; background: rgb(255 255 255 / .08);
}
.site-subnav a:hover, .site-subnav a[aria-current="page"] { background: rgb(255 255 255 / .18); color: var(--white); }
@media (max-width: 899px) { html { scroll-padding-top: 110px; } }
/* Full menu in the header from 900px; below that, the scrollable row of links. */
@media (min-width: 900px) {
  .site-subnav { display: none; }
  .site-nav a:not(.btn) { display: inline; }
}
.mode-tabs--two { grid-template-columns: repeat(2, 1fr); }
/* Fuel page: search and results on the left, a map of every UK forecourt on the right.
   On phones they stack: search, map, then results. */
.fuel-explorer { position: relative; z-index: 5; margin-top: -44px; padding-bottom: 56px; }
.fuel-explorer__grid { display: grid; gap: 20px; grid-template-areas: "search" "map" "results"; }
.fuel-explorer__search { grid-area: search; min-width: 0; }
.fuel-explorer__map { grid-area: map; min-width: 0; display: grid; gap: 10px; }
.fuel-explorer__results { grid-area: results; min-width: 0; }
.fuel-explorer__results h2 { margin-bottom: .2em; }
.fuel-explorer__results .results__summary { margin-bottom: 16px; }
.fuel-map {
  height: 380px; border-radius: var(--radius-lg); overflow: hidden; background: var(--sage);
  box-shadow: var(--shadow); border: 1px solid rgb(24 77 57 / .08); z-index: 0;
}
/* A softer, greyer base map, so the coloured dots stand out. */
.fuel-map .leaflet-tile-pane { filter: grayscale(.9) brightness(1.06) contrast(.92); }
.fuel-legend { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 12px 16px; font-size: .85rem; }
.fuel-legend:empty { display: none; }
.fuel-legend p { margin: 0; }
.fuel-legend__title { font-weight: 700; color: var(--pine); }
.fuel-legend__scale { list-style: none; margin: 8px 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; color: #39433d; }
.fuel-legend__scale li { display: inline-flex; align-items: center; gap: 6px; }
.fuel-legend__scale span { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.fuel-legend__note { color: var(--muted); }
.fuel-legend__note strong { color: var(--pine); }
/* Compact version on the Save money page: a smaller map that scrolls with the page. */
.fuel-explorer--compact { padding-bottom: 8px; }
.fuel-explorer--compact .fuel-map { height: 320px; }
.fuel-explorer--compact .fuel-explorer__results h2 { font-size: 1.35rem; }
.fuel-list__more { list-style: none; }
@media (min-width: 960px) {
  .fuel-explorer--compact .fuel-explorer__map { position: static; }
  .fuel-explorer--compact .fuel-map { height: 440px; min-height: 0; }
}
/* In the narrow column the search form stacks; the route fields go one per line. */
.fuel-explorer .fuel-type { max-width: none; }
@media (max-width: 639px) { .fuel-map { height: 460px; } }
@media (min-width: 640px) {
  .fuel-explorer .search-form__fields, .fuel-explorer .search-form__fields[data-modes="route"] { grid-template-columns: minmax(0, 1fr) 130px; }
  .fuel-explorer .search-form__fields[data-modes="route"] .field--grow { grid-column: 1 / -1; }
  .fuel-explorer .search-form__fields[data-modes="route"] .field:not(.field--grow) { grid-column: 1; }
}
@media (min-width: 960px) {
  .fuel-explorer__grid {
    grid-template-columns: minmax(360px, 420px) minmax(0, 1fr);
    grid-template-areas: "search map" "results map"; grid-template-rows: auto 1fr; align-items: start; column-gap: 28px;
  }
  .fuel-explorer__map { position: sticky; top: 84px; }
  .fuel-map { height: calc(100vh - 200px); min-height: 520px; }
  .fuel-explorer .search-form { grid-template-columns: 1fr; }
  .fuel-explorer .search-form__submit { width: 100%; min-height: 0; padding-block: 14px; }
  .fuel-explorer__results { padding-top: 8px; }
}
.fuel-type { max-width: 280px; }

.fuel-list { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 12px; }
.fuel-item {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; align-items: start;
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid rgb(24 77 57 / .07); padding: 16px;
}
.fuel-item--best { border: 2px solid var(--sunset); }
.fuel-item__price { display: grid; justify-items: center; gap: 6px; min-width: 76px; }
.fuel-item__price strong { font: 800 1.7rem/1 var(--font-display); color: var(--pine); letter-spacing: -0.02em; }
.fuel-item__price small { font-size: .9rem; font-weight: 600; margin-left: 1px; }
.fuel-item__flag { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: var(--sunset); color: var(--white); padding: 3px 8px; border-radius: 999px; }
.fuel-item__body h3 { font-size: 1.1rem; margin-bottom: 4px; }
.fuel-item__brand { font-family: var(--font-body); font-size: .78rem; font-weight: 600; color: var(--muted); background: var(--sand); padding: 2px 8px; border-radius: 999px; vertical-align: 2px; }
.fuel-item__where { display: flex; gap: 6px; margin: 0 0 4px; font-size: .9rem; color: var(--muted); }
.fuel-item__where svg { width: 16px; height: 16px; flex: none; margin-top: 3px; color: var(--moss); }
.fuel-item__where strong { color: var(--pine); }
.fuel-item__meta { margin: 0 0 8px; font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; }
.fuel-item__saving { color: var(--forest); font-weight: 600; }
.fuel-item__stale { color: #8a3a12; }
.fuel-item .tags { margin-bottom: 0; }
.fuel-item__go { grid-column: 1 / -1; justify-self: start; display: flex; flex-wrap: wrap; gap: 8px; }
.fuel-credit { font-size: .8rem; color: var(--muted); max-width: 60em; }
.fuel-credit a { color: inherit; }

.fuel-pin {
  display: grid; place-items: center; width: 52px; height: 26px; border-radius: 8px;
  background: var(--pine); color: var(--white); font: 700 .78rem/1 var(--font-body);
  border: 2px solid var(--white); box-shadow: 0 2px 6px rgb(0 0 0 / .3);
}
.fuel-pin--best { background: var(--sunset); }

/* The results column is narrow beside the map, so the buttons stay under each forecourt. */

.fuel-hint {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 14px; padding: 12px 16px;
  background: #fff4e5; border: 1px solid #f3d3a8; border-radius: var(--radius); color: var(--ink); text-decoration: none; font-size: .92rem;
}
.fuel-hint:hover { border-color: var(--sunset); }
.fuel-hint__icon { font-size: 1.2rem; }
.fuel-hint__more { margin-left: auto; font-weight: 600; color: var(--sunset-dark); white-space: nowrap; }

/* ---------- Quick earns ---------- */

.earn { margin-top: -44px; padding-bottom: 56px; position: relative; display: grid; gap: 16px; }
.earn-tabs { margin-bottom: 0; }
.earn-intro { margin: 0; color: var(--muted); }
.earn-tools { margin: -6px 0 0; }
.pitch-tools { margin-top: 20px; }
.pitch-expiry { margin: 4px 0 0; font-size: .85rem; color: var(--muted); }
.pitch-expiry--soon { color: #8a4b00; background: #fff4e5; border-radius: 6px; padding: 4px 8px; font-weight: 600; }
.pitch-expiry--gone { color: #8f1d1d; background: #fdecec; border-radius: 6px; padding: 4px 8px; font-weight: 600; }
.page-hero--compact:has(.pitch-tools) { padding-bottom: 48px; }
.earn.pitch-in { margin-top: 32px; }

/* ---------- Save money: Road tips | Fuel prices ---------- */
.page-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.page-tabs a {
  padding: 8px 16px; border-radius: 999px; font-weight: 600; font-size: .95rem; text-decoration: none; text-shadow: none;
  color: var(--white); background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .28);
}
.page-tabs a:hover { background: rgb(255 255 255 / .24); }
.page-tabs a[aria-current="page"] { background: var(--white); color: var(--pine); border-color: var(--white); }
.page-hero--compact:has(.page-tabs) { padding-bottom: 48px; }
/* The fuel search panel overlaps the header, so leave room under the tabs. */
.page-hero.page-hero--compact:has(+ .fuel-explorer) { padding-bottom: 80px; }
.earn.save-page { margin-top: 32px; gap: 20px; }
.save-fuel {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px;
  background: var(--pine); color: var(--white); border-radius: var(--radius); padding: 18px 20px; text-decoration: none;
}
.save-fuel__text { display: grid; gap: 2px; }
.save-fuel__text strong { font-family: var(--font-display); font-size: 1.2rem; }
.save-fuel__text span { color: rgb(255 255 255 / .85); }
.save-fuel__icon { flex: none; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: rgb(255 255 255 / .12); color: var(--amber); }
.save-fuel__icon svg { width: 26px; height: 26px; }
.save-fuel__text { flex: 1 1 260px; }

/* Jump-to buttons: one chip per section, with its icon. */
.save-jump { display: flex; flex-wrap: wrap; gap: 8px; }
.save-jump[hidden] { display: none; }
.save-jump a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px;
  background: var(--white); border: 1px solid var(--line); color: var(--pine); font-weight: 600; font-size: .92rem; text-decoration: none;
  transition: background .15s, border-color .15s;
}
.save-jump a:hover, .save-jump a:focus-visible { background: var(--sage); border-color: var(--moss); }
.save-jump svg { width: 20px; height: 20px; color: var(--forest); }

/* Each section: an icon badge by the heading, and a soft divider between sections. */
.save-tips { display: grid; gap: 0; }
.save-section { display: grid; gap: 16px; scroll-margin-top: 90px; padding: 28px 0; border-top: 1px solid var(--line); }
.save-section:first-child { border-top: 0; padding-top: 8px; }
.save-section__head { display: flex; align-items: flex-start; gap: 14px; }
.save-section__icon {
  flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px;
  background: var(--sage); color: var(--pine);
}
.save-section:nth-child(even) .save-section__icon { background: #fbe4d3; color: var(--sunset-dark); }
.save-section__icon svg { width: 28px; height: 28px; }
.save-section h2 { font-size: 1.45rem; margin: 2px 0 2px; }
.save-section .earn-intro { max-width: 60ch; }

/* The label on each card gets a matching little icon. */
.save-cat { display: inline-flex; align-items: center; gap: 6px; }
.save-cat svg { width: 16px; height: 16px; flex: none; }
@media (max-width: 600px) {
  .save-section__icon { width: 44px; height: 44px; border-radius: 13px; }
  .save-section__icon svg { width: 24px; height: 24px; }
  .save-section h2 { font-size: 1.25rem; }
}
.save-page .earn-card .job-card__actions { margin-top: 12px; }
.save-page .earn-card__checked { margin-top: auto; padding-top: 10px; }
.earn-list { display: grid; gap: 16px; }
.earn-card {
  display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid rgb(24 77 57 / .07); padding: 18px 18px 12px;
}
.earn-card__summary { margin: 0 0 10px; color: #39433d; }
.earn-card__section h4 { margin: 12px 0 2px; font-size: .9rem; color: var(--pine); font-family: var(--font-body); }
.earn-card__section p { margin: 0; font-size: .95rem; color: #39433d; }
.earn-card__section--catches { background: #fff4e5; border-left: 4px solid var(--amber); border-radius: 6px; padding: 2px 12px 10px; margin-top: 10px; }
.earn-card__sources { font-size: .8rem; color: var(--muted); margin: 8px 0 0; }
.earn-card__sources a { color: inherit; }
.earn-card__checked { margin: 8px 0 0; font-size: .78rem; color: var(--muted); }
.earn-promise { background: var(--sand); border-radius: var(--radius); padding: 20px; }
.earn-promise h2 { font-size: 1.25rem; }
.earn-promise ul { margin: 0 0 10px; padding-left: 1.1em; display: grid; gap: 6px; color: #39433d; }
.earn-promise p { margin: 0; font-size: .9rem; color: var(--muted); }

@media (min-width: 960px) {
  .earn-list { grid-template-columns: repeat(2, 1fr); }
  /* Cards in a row line up: same height, with "The full picture" along the bottom. */
  .earn-card > .job-card__more { margin-top: auto; }
  .earn-list:has(details[open]) .earn-card:not(:has(details[open])) { align-self: start; }
}

/* ---------- Admin: quick earns ---------- */

.earn-admin { display: grid; gap: 12px; }
.earn-admin-item__body { padding: 18px; display: grid; gap: 6px; align-content: start; }
.earn-admin-item__body h3 { margin: 4px 0 0; font-size: 1.15rem; }
.earn-admin-item__body p { margin: 0; font-size: .92rem; color: #39433d; }
.earn-admin-item__meta { color: var(--muted) !important; font-size: .85rem !important; }
.earn-admin-item__meta a { color: var(--forest); }
.earn-admin-item__catches { background: #fff4e5; border-radius: 6px; padding: 8px 10px; }
.earn-form h2 { font-size: 1.3rem; }
.earn-form__grid { display: grid; gap: 12px; }
.earn-form textarea { min-height: 80px; }
@media (min-width: 640px) {
  .earn-form__grid { grid-template-columns: 1fr 1fr; }
  .earn-form__grid .field--wide { grid-column: 1 / -1; }
}

.empty__earn { margin: 14px 0 0; font-size: .95rem; }
.empty__earn a { color: var(--forest); font-weight: 600; }

/* ---------- Footer (full) ---------- */

.site-footer { padding: 44px 0 0; }
.site-footer__grid { display: grid; gap: 28px; }
.site-footer__brand p { margin: 10px 0 0; max-width: 34em; line-height: 1.6; }
.site-footer__col { display: grid; gap: 8px; align-content: start; }
.site-footer__col h3 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--amber); margin: 0 0 4px; font-family: var(--font-body); }
.site-footer__col a { color: rgb(255 255 255 / .78); text-decoration: none; }
.site-footer__col a:hover { color: var(--white); text-decoration: underline; }
.site-footer__bottom {
  display: grid; gap: 4px; margin-top: 32px; padding-top: 18px; padding-bottom: 24px;
  border-top: 1px solid rgb(255 255 255 / .12); font-size: .78rem; color: rgb(255 255 255 / .5);
}
.site-footer__bottom p { margin: 0; max-width: 72em; }
/* Company details first, then the data credits, each on its own line(s). */
.site-footer__bottom { gap: 8px; }
@media (min-width: 640px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
  .site-footer__brand { grid-column: auto; }
}

/* ---------- Home: what the jobs search offers (under the search box) ---------- */

.job-promises {
  list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px;
  justify-content: center; color: var(--pine); font-size: .92rem; font-weight: 500;
}
.job-promises li { display: inline-flex; align-items: center; gap: 8px; }
.job-promises svg, .job-promises [data-icon] svg { width: 18px; height: 18px; color: var(--sunset); flex: none; }
.job-promises [data-icon] { display: inline-flex; }
.job-promises__live { background: var(--pine); color: var(--white); padding: 6px 14px 6px 10px; border-radius: 999px; }
.job-promises__live svg { color: var(--amber); }
.job-promises__live strong { color: var(--amber); font-weight: 800; }

/* ---------- Home: money on the road (quick earns + savings) ---------- */

.money { padding: 24px 0 16px; background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 100%); }
.money__head { max-width: 760px; margin: 0 auto 32px; text-align: center; }
.money__head .eyebrow { color: var(--sunset-dark); }
.money__head h2 { font-size: clamp(1.9rem, 5vw, 2.9rem); font-weight: 800; letter-spacing: -0.02em; color: var(--pine); margin: 0 0 12px; }
.money__lede { color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.15rem); margin: 0; }

.money-panel {
  display: grid; gap: 24px; padding: 26px 20px; border-radius: var(--radius-lg); box-shadow: var(--shadow);
}
.money-panel + .money-panel { margin-top: 24px; }
.money-panel h3 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; letter-spacing: -0.015em; margin: 0 0 10px; }
.money-panel__text > p:not(.money-panel__eyebrow) { margin: 0 0 14px; }
.money-panel__text .btn { margin-top: 6px; }
.money-panel__eyebrow {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 12px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
}
.money-panel__icon { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; padding: 8px; }
.money-panel__icon svg { width: 100%; height: 100%; }
.money-panel__label { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 10px; color: var(--muted); }

/* Quick earns: light card, picks listed beside the explainer. */
.money-panel--earn { background: var(--white); color: var(--ink); }
.money-panel--earn h3 { color: var(--pine); }
.money-panel--earn .money-panel__eyebrow { color: var(--sunset-dark); }
.money-panel--earn .money-panel__icon { background: var(--sky); color: var(--sunset-dark); }
.money-panel--earn .money-panel__text > p { color: var(--muted); }
.money-panel--earn .feature__points { color: var(--ink); }

.earn-picks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.earn-picks a {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 14px; align-items: center;
  padding: 14px 16px; border-radius: var(--radius); background: var(--cream); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s;
}
.earn-picks a:hover { border-color: var(--sunset); transform: translateY(-2px); }
.earn-picks__kind { grid-column: 1; font-size: .78rem; color: var(--muted); }
.earn-picks__title { grid-column: 1; font-weight: 600; color: var(--pine); }
.earn-picks strong { grid-column: 2; grid-row: 1 / span 2; font: 800 1.1rem/1.1 var(--font-display); color: var(--sunset-dark); text-align: right; }

/* Savings: dark green, fuel front and centre. */
.money-panel--save {
  color: var(--white);
  background:
    radial-gradient(800px 380px at 100% 0%, rgb(229 137 59 / .22), transparent 60%),
    linear-gradient(180deg, #184d39 0%, #133f2f 100%);
}
.money-panel--save .money-panel__eyebrow { color: var(--amber); }
.money-panel--save .money-panel__icon { background: var(--amber); color: var(--pine); }
.money-panel--save .money-panel__text > p { color: rgb(255 255 255 / .82); }

.save-grid { display: grid; gap: 12px; }
.save-card {
  display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: var(--radius);
  background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .14); color: rgb(255 255 255 / .82);
}
.save-card__title { font: 700 1.15rem/1.2 var(--font-display); color: var(--white); margin: 0; }
.save-card__icon { width: 30px; height: 30px; color: var(--amber); }
.save-card__icon svg { width: 100%; height: 100%; }
.save-card strong { color: var(--white); }
.save-card--fuel { background: rgb(0 0 0 / .14); }
.save-card--link { text-decoration: none; transition: background-color .15s, transform .15s; }
.save-card--link:hover { background: rgb(255 255 255 / .12); transform: translateY(-2px); }
.save-card__more { margin-top: auto; color: var(--amber); font-weight: 600; }
.save-card__head { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.save-card__by { margin: 2px 0 0; font-size: .85rem; color: rgb(255 255 255 / .65); }
.save-card__price { font: 800 1.5rem/1 var(--font-display); color: var(--amber) !important; text-align: right; }
.save-card__price small { display: block; font: 500 .75rem/1.3 var(--font-body); color: rgb(255 255 255 / .65); }
.save-card--food > p { margin: 0; }
.save-card__details summary { cursor: pointer; color: var(--amber); font-weight: 600; padding: 4px 0; }
.save-card__details[open] summary { margin-bottom: 6px; }
.save-card__section h5 { margin: 10px 0 2px; font: 700 .95rem/1.3 var(--font-display); color: var(--white); }
.save-card__section p { margin: 0; }
.save-card__section--catches h5 { color: var(--amber); }
.save-card__note { margin: 0; font-size: .78rem; color: rgb(255 255 255 / .55); }

.feature__points { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 8px; }
.feature__points li { position: relative; padding-left: 26px; }
.feature__points li::before {
  content: ''; position: absolute; left: 0; top: .3em; width: 16px; height: 16px; border-radius: 50%;
  background: var(--sunset) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.feature__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.fuel-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.fuel-stats > div { background: rgb(0 0 0 / .16); border-radius: var(--radius-sm); padding: 12px 14px; display: grid; gap: 4px; }
.fuel-stats__label { font-size: .78rem; color: rgb(255 255 255 / .7); font-weight: 500; }
.fuel-stats__value { font: 800 1.7rem/1 var(--font-display); color: var(--amber); letter-spacing: -0.02em; }
.fuel-stats__note { font-size: .8rem; color: rgb(255 255 255 / .62); margin: 0 0 6px; }

.btn--ghost-light { background: transparent; color: var(--white); border-color: rgb(255 255 255 / .55); }
.btn--ghost-light:hover { background: rgb(255 255 255 / .1); }

@media (min-width: 640px) {
  .money { padding: 32px 0 24px; }
  .money-panel { padding: 34px; }
  .save-grid { grid-template-columns: 1fr 1fr; }
  .save-card--fuel, .save-card--food { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .money { padding: 40px 0 24px; }
  .money-panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 48px; align-items: center; padding: 44px; }
  .money-panel--save { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .money-panel--save .money-panel__text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: end; }
  .money-panel--save .money-panel__text > :not(p:last-child) { grid-column: 1; }
  .money-panel--save .money-panel__text > p:last-child { grid-column: 2; grid-row: 1 / span 2; margin: 0; }
  .money-panel--save .money-panel__text h3 { margin: 0; }
  .save-grid { grid-template-columns: 1fr 1fr; align-items: stretch; }
  .save-card--fuel, .save-card--food { grid-column: auto; }
}
@media (prefers-reduced-motion: reduce) { .earn-picks a, .save-card--link { transition: none; transform: none !important; } }

.show-more { display: flex; justify-content: center; margin-top: 24px; }

/* ---------- Admin quick-add from a link ---------- */
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.link-import {
  background: var(--sage); border: 1px solid #c9ddd2; border-radius: var(--radius-lg);
  padding: 18px; margin-bottom: 20px;
}
.link-import h2, .link-import h3 { font: 700 1.15rem/1.2 var(--font-display); color: var(--pine); margin: 0 0 10px; }
.link-import__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.link-import__row input { min-width: 0; }
.link-import__result:empty { display: none; }
.link-import__result { margin-top: 12px; font-size: .92rem; }
.link-import__result p { margin: 4px 0; }
.link-import__todo { color: #8a3a12; }
.link-import__error { color: var(--danger); }
.link-import__small { color: var(--muted); font-size: .85rem; }
@media (min-width: 640px) { .link-import__row { grid-template-columns: minmax(0, 1fr) auto; } }

/* ---------- Saved searches ---------- */
.save-search {
  display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--white); color: var(--pine); font: 600 .9rem/1 var(--font-body); cursor: pointer;
}
.save-search svg { width: 18px; height: 18px; color: var(--sunset); }
.save-search:hover { border-color: var(--sunset); }
.save-search[aria-pressed="true"] { background: #fde3d3; border-color: var(--sunset); color: #8a3a12; }
.save-search[aria-pressed="true"] svg { fill: var(--sunset); }

.saved-searches { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 14px; }
.saved-searches__label { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.saved-searches__label svg { width: 16px; height: 16px; color: var(--sunset); fill: var(--sunset); }
.saved-searches__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.saved-searches__list li { display: inline-flex; align-items: center; border-radius: 999px; background: var(--cream); border: 1px solid var(--line); }
.saved-searches__list a { padding: 7px 4px 7px 14px; color: var(--pine); font-weight: 500; font-size: .9rem; text-decoration: none; }
.saved-searches__list a:hover { text-decoration: underline; }
.saved-searches__list button { border: 0; background: none; color: var(--muted); font-size: 1.1rem; line-height: 1; padding: 6px 12px 6px 8px; cursor: pointer; }
.saved-searches__list button:hover { color: var(--danger); }
.saved-searches__new { background: var(--sunset); color: var(--white); border-radius: 999px; padding: 2px 8px; font-size: .75rem; margin-left: 4px; }
.new-badge { display: inline-block; vertical-align: 3px; background: var(--sunset); color: var(--white); font: 700 .7rem/1 var(--font-body); padding: 4px 7px; border-radius: 6px; letter-spacing: .03em; text-transform: uppercase; }

/* ---------- Mailing list sign-up ---------- */
.signup { background: var(--sand); padding: 8px 0 56px; }
.signup__inner {
  display: grid; gap: 20px; background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 26px 20px; border: 1px solid var(--line);
}
.signup__text .eyebrow { color: var(--sunset-dark); }
.signup__text h2 { font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; color: var(--pine); margin: 0 0 8px; letter-spacing: -0.015em; }
.signup__text p:last-child { color: var(--muted); margin: 0; }
.signup__form { display: grid; gap: 10px; align-content: center; }
.signup__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.signup__row input {
  min-width: 0; font: inherit; font-size: 16px; padding: 12px 14px; min-height: 48px; border-radius: var(--radius-sm);
  border: 1.5px solid var(--line); background: var(--cream); color: var(--ink);
}
.signup__row input:focus { outline: none; border-color: var(--moss); background: var(--white); box-shadow: 0 0 0 3px rgb(77 122 82 / .18); }
.signup__consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--ink); }
.signup__consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; accent-color: var(--pine); }
.signup__message { margin: 0; font-weight: 600; color: var(--pine); }
.signup__message:empty { display: none; }
.signup__message.is-error { color: var(--danger); }
.signup__small { margin: 0; font-size: .8rem; color: var(--muted); }
@media (min-width: 640px) {
  .signup__row { grid-template-columns: minmax(0, 1fr) auto; }
  .signup__inner { padding: 32px; }
}
@media (min-width: 960px) {
  .signup { padding: 0 0 80px; }
  .signup__inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center; padding: 40px 44px; }
}

/* ---------- Home: featured and latest jobs ---------- */
.home-jobs { padding: 0; }
.home-featured {
  margin-top: 0; padding: 24px 18px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #e2eee8 0%, #f1f6f2 55%, #fbf1e4 100%);
  border: 1px solid #cfe1d6;
}
.home-featured .home-jobs__head .eyebrow { display: inline-flex; align-items: center; gap: 8px; color: var(--sunset-dark); }
.home-featured .eyebrow svg { width: 20px; height: 20px; }
.home-featured__lede { margin: 6px 0 0; color: var(--muted); font-size: 1.02rem; }
.home-featured .job-card { box-shadow: 0 10px 28px rgb(24 77 57 / .12); }
/* One, two or three picks always fill the row. */
.home-featured .job-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.home-jobs__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; margin-bottom: 16px; }
.home-jobs__head h2 { margin: 0; color: var(--pine); font-size: clamp(1.5rem, 4vw, 2rem); font-weight: 800; letter-spacing: -0.015em; }
.home-jobs__head .eyebrow { color: var(--sunset-dark); margin-bottom: 4px; }
.home-jobs__head--latest { margin-top: 44px; }
.home-jobs__all { color: var(--pine); font-weight: 600; text-decoration: none; }
.home-jobs__all:hover { text-decoration: underline; }
.home-jobs__more { text-align: center; margin-top: 32px; }
.home-jobs__more p { color: var(--muted); margin: 10px 0 0; font-size: .92rem; }
.featured-badge { margin: 0 0 4px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--sunset-dark); }
.page-hero--search { padding-bottom: 72px; }
@media (min-width: 960px) {
  .home-jobs { padding: 0; }
  .home-featured { padding: 32px 32px 36px; }
  .page-hero--search { padding-bottom: 96px; }
}

/* ---------- Home: filters under the search box ---------- */
.home-tools { margin-top: 16px; }
.home-tools__label { margin: 0 0 8px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.home-tools .filters { margin-bottom: 10px; }
.home-tools__actions { display: flex; flex-wrap: wrap; gap: 8px; }
.home-tools__actions [data-icon] { display: inline-flex; width: 18px; height: 18px; margin-right: 4px; }
.home-tools__actions [data-icon] svg { width: 18px; height: 18px; }

/* ---------- Admin quick-add: the original advert, for reference ---------- */
.original-text { margin-top: 10px; border: 1px dashed #c9ddd2; border-radius: var(--radius-sm); background: var(--sage); }
.original-text__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 10px 12px; }
.original-text__head p { margin: 0; font-size: .85rem; color: var(--pine); flex: 1 1 260px; }
.original-text__body {
  max-height: 260px; overflow-y: auto; padding: 12px 14px; background: var(--white);
  border-top: 1px solid #c9ddd2; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: .9rem; line-height: 1.55; color: var(--ink); white-space: pre-wrap; user-select: text;
}

/* Hero: illustration made in Adobe Firefly (public/images/hero-firefly.webp) */
.hero--firefly {
  /* Starts in the header's own green so the two flow together, then fades into the picture. */
  background:
    linear-gradient(180deg, rgb(24 77 57 / .94) 0%, rgb(24 77 57 / .62) 22%, rgb(19 63 47 / .42) 50%, rgb(19 63 47 / 0) 74%),
    url("/images/hero-firefly.webp") 74% 100% / cover no-repeat,
    #1f4a3a;
}
/* Lift the words off the bright sky. */
.hero--firefly .hero__content { text-shadow: 0 2px 14px rgb(8 26 19 / .55), 0 1px 3px rgb(8 26 19 / .45); }
.hero--firefly h1 em { color: #ffbf5e; }
@media (min-width: 960px) {
  /* The picture is enlarged 15% from its bottom edge, so the van sits higher with more road in front of it.
     Picture and shading are separate layers: ::before is the picture, ::after the shading. */
  .hero--firefly { background: #1f4a3a; isolation: isolate; }
  .hero--firefly::before, .hero--firefly::after { content: ''; position: absolute; inset: 0; pointer-events: none; }
  .hero--firefly::before {
    z-index: 0; background: url("/images/hero-firefly.webp") center 100% / cover no-repeat;
    transform: scale(1.15); transform-origin: 50% 100%;
  }
  /* Header green at the top, deeper green under the text on the left, clear on the right by the sun and van. */
  .hero--firefly::after {
    z-index: 1;
    background:
      radial-gradient(circle at 80% 26%, rgb(255 222 160 / .38) 0%, rgb(255 196 128 / .16) 10%, rgb(255 196 128 / 0) 26%),
      linear-gradient(180deg, rgb(24 77 57 / .94) 0%, rgb(24 77 57 / .35) 10%, rgb(24 77 57 / 0) 22%),
      linear-gradient(90deg, rgb(19 63 47 / .72) 0%, rgb(19 63 47 / .48) 34%, rgb(19 63 47 / .1) 52%, rgb(19 63 47 / 0) 60%);
  }
}

/* Large screens: header and hero use the full width (logo and headline line up at the left);
   everything below keeps the central column. */
@media (min-width: 960px) {
  .site-header .container, .hero .container { max-width: none; padding-inline: max(var(--gutter), 5vw); }
  .hero .hero__content > * { max-width: 760px; } /* text keeps its width, just sits further left */
}

/* ---------- Page headers with a picture on the right (laptops and up) ----------
   <section class="page-hero page-hero--art" style="--art: url('/images/header-….webp'); --art-pos: 80% 70%">
   The picture fills the right of the header and fades into the green behind the text.
   Phones show it as a strip across the top instead (below). */
.page-hero { position: relative; overflow: hidden; }
.page-hero > .container { position: relative; z-index: 1; }
@media (min-width: 960px) {
  .page-hero--art::before {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 60%; z-index: 0; pointer-events: none;
    background: var(--art) var(--art-pos, 75% 60%) / cover no-repeat;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / .55) 22%, #000 46%);
    mask-image: linear-gradient(90deg, transparent 0%, rgb(0 0 0 / .55) 22%, #000 46%);
  }
  .page-hero--art .container { text-shadow: 0 2px 12px rgb(8 26 19 / .45); }
}
/* Phones: a picture strip across the top of the header, title underneath on solid green. */
@media (max-width: 959px) {
  .page-hero--art { padding-top: 172px; }
  .page-hero--art::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 160px; z-index: 0; pointer-events: none;
    background: var(--art) var(--art-pos, 75% 60%) / cover no-repeat;
    -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 60%, transparent 100%);
  }
}
/* Large screens: page headers line up with the logo, like the home page. */
@media (min-width: 960px) {
  .page-hero .container { max-width: none; padding-inline: max(var(--gutter), 5vw); }
}

.field-note { margin: 4px 0 0; font-size: .82rem; color: var(--muted); }

/* ---------- Pitch in ---------- */
.pitch-swap {
  display: flex; gap: 8px; align-items: flex-start; margin: 10px 0 12px; padding: 10px 12px;
  background: var(--sage); border-radius: var(--radius-sm); color: var(--pine); font-size: .92rem;
}
.pitch-swap svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--forest); }

/* ---------- Pitch in: message the host ---------- */
.pitch-message-btn { margin-top: 12px; }
.pitch-dialog {
  width: min(620px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0;
  border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--white); color: var(--ink);
}
.pitch-dialog::backdrop { background: rgb(19 40 32 / .55); backdrop-filter: blur(2px); }
.pitch-form { display: flex; flex-direction: column; max-height: calc(100dvh - 24px); }
.pitch-form__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 20px 8px; }
.pitch-form__head h2 { margin: 0; font-size: 1.4rem; color: var(--pine); }
.pitch-form__head .eyebrow { color: var(--sunset-dark); margin: 0 0 4px; }
.pitch-form__close { border: 0; background: var(--cream); border-radius: 50%; width: 36px; height: 36px; font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--muted); flex: none; }
.pitch-form__body { overflow-y: auto; padding: 8px 20px 12px; display: grid; gap: 14px; }
.pitch-form__group { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.pitch-form__group legend { font-weight: 600; color: var(--pine); margin-bottom: 8px; padding: 0; }
.pitch-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pitch-form__checks { grid-template-columns: 1fr !important; }
.pitch-form__consent { font-size: .9rem; }
.pitch-form__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; padding: 14px 20px 20px; border-top: 1px solid var(--line); }
.pitch-form__foot p { margin: 0; font-size: .8rem; color: var(--muted); flex: 1 1 220px; }
.pitch-form__done { padding: 28px 24px 32px; text-align: center; }
.pitch-form__done h2 { color: var(--pine); }
.pitch-message-btn svg { width: 16px; height: 16px; margin-right: 6px; }
.pitch-messages__title { font: 700 1.1rem/1.2 var(--font-display); color: var(--pine); margin: 0 0 10px; }
.pitch-messages:not(:empty) { margin-bottom: 24px; }

/* ---------- Help shape WanderWage (feedback box) ---------- */
.feedback { padding: 32px 0; }
.feedback__inner {
  display: grid; gap: 16px 40px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  border: 1px solid rgb(24 77 57 / .07); padding: 24px;
}
.feedback__text h2 { font-size: clamp(1.3rem, 3vw, 1.6rem); margin: 0 0 6px; }
.feedback__text p:not(.eyebrow) { margin: 0; color: var(--muted); }
.feedback__form { display: grid; gap: 12px; align-content: start; }
.feedback__more summary { cursor: pointer; font-weight: 600; color: var(--pine); }
.feedback__more[open] summary { margin-bottom: 10px; }
.feedback__more .field { margin-bottom: 10px; }
.feedback__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.feedback__note { font-size: .82rem; color: var(--muted); }
.feedback__note a { color: inherit; }
.feedback__thanks h2 { margin: 0 0 4px; }
.feedback__thanks p { margin: 0; color: var(--muted); }
@media (min-width: 960px) {
  .feedback__inner { grid-template-columns: 2fr 3fr; padding: 32px; }
}
.feedback-counts .stats { margin-bottom: 16px; }

/* ---------- Contact page ---------- */
.contact { padding: 32px 0 56px; display: grid; gap: 20px; align-items: start; }
.contact-form { display: grid; gap: 14px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 24px; }
/* The suggestion box sits beside the form on wide screens, stacked in one column. */
.contact__suggest { padding: 0; }
.contact__suggest .feedback__inner {
  grid-template-columns: 1fr; padding: 24px; gap: 16px; box-shadow: none;
  background: linear-gradient(135deg, #e2eee8 0%, #f1f6f2 55%, #fbf1e4 100%); /* same as the featured jobs panel */
  border: 1px solid #cfe1d6;
}
.contact__suggest .chip:not(:has(input:checked)) { background: var(--white); }
.contact__suggest .feedback__text h2 { font-size: 1.3rem; }
@media (min-width: 960px) {
  .contact { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
  .contact__employer { grid-column: 1; }
}
.contact-form h2 { font-size: 1.4rem; margin: 0; }
.contact-form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.contact__employer { margin: 0; color: var(--muted); }
.contact__employer a { color: var(--pine); font-weight: 600; }
.feedback .feedback__inner { max-width: none; }
.contact-message { white-space: pre-line; }
.results__remote { margin: 4px 0 0; font-size: .95rem; }
.results__remote a { color: var(--pine); font-weight: 600; }

/* Admin import log */
.import-log { margin: 0 0 12px; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow-sm); padding: 12px 16px; }
.import-log summary { cursor: pointer; font-weight: 600; color: var(--pine); }
.import-log[open] summary { margin-bottom: 10px; }
#import-log-body { overflow-x: auto; }
.import-log__table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.import-log__table th, .import-log__table td { text-align: left; padding: 6px 8px; border-top: 1px solid var(--line); vertical-align: top; }
.import-log__table th { font-weight: 600; color: var(--muted); border-top: 0; }
.import-log__error { color: #8f1d1d; }

/* Pitch in photos */
.earn-card.has-photo { padding-top: 0; overflow: hidden; }
.pitch-photo { display: block; width: calc(100% + 36px); margin: 0 -18px 14px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--sand); }
.pitch-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 4px 0 10px; }
.pitch-gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; display: block; }
.photo-picker { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.photo-picker__item { margin: 0; display: grid; gap: 4px; width: 120px; }
.photo-picker__item img { width: 120px; height: 90px; object-fit: cover; border-radius: 8px; }
.pitch-admin-photo { width: 100%; max-width: 280px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; }
.check-inline { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.job-card__desc { white-space: pre-line; }
.job-card__more-link { margin: -4px 0 8px; font-size: .9rem; }
.job-card__more-link a { color: var(--pine); font-weight: 600; }
