/*
  Pesha — restrained blue/navy theme, light ground.
*/

:root {
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-raised: #f5f7fa;
  --line: #e5e7eb;
  --line-strong: #d3d7de;
  --ink: #07143d;
  --muted: #68738a;
  --faint: #68738a;
  --amber: #006bfd;
  --amber-text: #0057d1;
  --amber-ink: #ffffff;
  --danger: #b8392c;

  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  --sans: -apple-system, "Helvetica Neue", Arial, sans-serif;

  /* Spacing scale */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 40px;

  /* Radius scale */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  color-scheme: light;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.session-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.session-status strong {
  color: var(--ink);
  font-weight: 600;
}

.session-status .link-button {
  margin-top: 0;
}

main {
  max-width: 780px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
}

main.hero-main {
  max-width: 640px;
}

/* --- Logo mark: the P + briefcase symbol --- */

.logo-mark {
  display: inline-flex;
  width: 0.85em;
  height: 0.85em;
  flex-shrink: 0;
}

.logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 2.1rem;
  line-height: 1;
  color: var(--ink);
}

.logo-small {
  font-size: 1.3rem;
  font-weight: 700;
}

/* --- Shared top bar (results + detail pages) --- */

.topbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--s3) var(--s5);
  margin-bottom: var(--s5);
}

.topbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--s2) var(--s4);
  margin-left: auto;
}

/* "Get job alerts" menu item: a bordered pill so it reads as a button, with a
   44px tap target. */
.nav-alerts {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0 0.9rem;
  border: 1px solid var(--amber-text);
  border-radius: 999px;
  color: var(--amber-text);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.nav-alerts:hover {
  background: var(--amber-text);
  color: var(--bg);
}

.hero-nav {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.5rem;
}

.topbar .search-form {
  flex: 1 1 320px;
  max-width: 480px;
  margin: 0;
}

/* --- Home hero --- */

.hero {
  text-align: center;
  padding: 3.5rem 0 2.5rem;
}

.hero .session-status {
  justify-content: center;
  margin-bottom: 1.25rem;
}

.hero .eyebrow {
  margin: 0 0 0.6rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.hero .pitch {
  max-width: 420px;
  margin: 0.85rem auto 2rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
}

.hero .pitch strong {
  color: var(--ink);
}

.hero .chip-group {
  margin-top: 1.5rem;
}

.hero .chip-group + .chip-group {
  margin-top: 1.1rem;
}

.hero .chip-group .group-label {
  display: block;
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

/* --- Waveform divider --- */

.trace {
  display: block;
  width: 100%;
  max-width: 460px;
  height: 40px;
  margin: 0 auto 1.75rem;
}

.trace .baseline {
  stroke: var(--line);
}

.trace .wave {
  stroke: var(--amber);
}

.trace-thin {
  margin: 0 0 1.25rem;
}

.trace-thin .trace {
  max-width: none;
  height: 20px;
  margin: 0;
}

/* --- Buttons --- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.6rem 1.2rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    opacity 0.15s ease,
    border-color 0.15s ease,
    background 0.15s ease;
}

.btn:hover {
  border-color: var(--muted);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn-primary {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 700;
}

.btn-primary:hover {
  opacity: 0.88;
  border-color: var(--amber);
}

.btn-quiet {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--mono);
  color: var(--amber-text);
  font-size: 0.74rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  white-space: nowrap;
  transition:
    border-color 0.12s ease,
    background 0.12s ease,
    color 0.12s ease;
}

.job-card:hover .btn-quiet,
.job-card:focus-within .btn-quiet {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--amber-ink);
}

/* --- Chips --- */

.chip-row {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.2rem;
  /* Fade the trailing edge so a row that overflows visibly hints it's
     scrollable instead of just clipping mid-chip. */
  -webkit-mask-image: linear-gradient(
    to right,
    black calc(100% - 28px),
    transparent 100%
  );
  mask-image: linear-gradient(
    to right,
    black calc(100% - 28px),
    transparent 100%
  );
}

.chip-row::-webkit-scrollbar {
  display: none;
}

.chip {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.76rem;
  text-decoration: none;
  white-space: nowrap;
  transition:
    border-color 0.15s ease,
    color 0.15s ease,
    background 0.15s ease;
}

.chip:hover {
  border-color: var(--amber);
  color: var(--ink);
}

.chip.is-active {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 600;
}

/* Horizontal scroll-with-fade is a mobile pattern, appropriate when space is
   tight. On anything wider than a phone there's room to just wrap the row
   instead of clipping chips at the container edge. */
@media (min-width: 560px) {
  .chip-row {
    flex-wrap: wrap;
    overflow-x: visible;
    justify-content: center;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

.chip-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.7rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0 0 0.65rem;
}

/* --- Search box --- */

.search-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 680px;
  margin: 0 auto;
}

.search-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.search-box input {
  flex: 1 1 200px;
  min-height: 44px;
  padding: 0.7rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--surface-raised);
  color: var(--ink);
}

.search-box input::placeholder {
  color: var(--faint);
}

.search-box input:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(0, 107, 253, 0.16);
}

@media (max-width: 480px) {
  .search-box button {
    flex-basis: 100%;
  }
}

/* --- Pill selects (location / sort) --- */

.pill-select {
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  cursor: pointer;
}

.pill-select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(0, 107, 253, 0.16);
}

.sort-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  color: var(--faint);
  font-family: var(--mono);
}

.sort-inline .pill-select {
  min-height: 32px;
  padding: 0.25rem 0.6rem;
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  padding: 0.25rem 0.3rem 0.25rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface-raised);
  color: var(--muted);
  font-size: 0.76rem;
  font-family: var(--mono);
}

.active-filter a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  color: var(--faint);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 50%;
}

.active-filter a:hover {
  background: rgba(179, 57, 42, 0.1);
  color: var(--danger);
}

.results-summary-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin: 0 0 1.25rem;
}

.results-summary {
  color: var(--faint);
  font-size: 0.78rem;
  font-family: var(--mono);
  letter-spacing: 0.02em;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* --- Job cards --- */

.job-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.job-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--line-strong);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.1rem;
  cursor: pointer;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease;
}

.job-card:hover,
.job-card:focus-within {
  border-left-color: var(--amber);
  box-shadow: 0 2px 10px rgba(7, 20, 61, 0.06);
}

.job-card-link {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.job-card-link:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: -2px;
  border-radius: var(--radius-md);
}

.job-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
}

.job-card:hover h2,
.job-card:focus-within h2 {
  color: var(--amber-text);
}

.job-meta {
  margin: 0 0 0.5rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.5;
  color: var(--muted);
}

.job-meta .meta-sep {
  color: var(--line-strong);
  margin: 0 0.15rem;
}

.muted {
  color: var(--faint);
}

.attrs {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin: 0 0 0.6rem;
}

.attr-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
}

.attr-row svg {
  flex-shrink: 0;
  opacity: 0.75;
}

.job-card-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  margin-top: 0.2rem;
}

.job-posted {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--faint);
  margin: 0;
}

.job-posted svg {
  flex-shrink: 0;
}

.job-posted {
  align-items: flex-start;
  line-height: 1.4;
}

.job-posted svg {
  margin-top: 0.2rem;
}

.empty-state {
  text-align: center;
  padding: var(--s6) 0;
}

.empty-state h2 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
}

.empty-state p {
  color: var(--faint);
  font-size: 0.9rem;
  margin: 0 0 1.25rem;
}

.empty-state .chip-row {
  margin-top: 1rem;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--muted);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1.5rem;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.back-link:hover {
  color: var(--ink);
}

.link-button {
  display: inline-block;
  margin-top: 1rem;
  padding: 0;
  background: none;
  border: none;
  color: var(--muted);
  text-decoration: none;
  font-size: 0.88rem;
  font-family: inherit;
  cursor: pointer;
}

.link-button:hover {
  color: var(--ink);
}

/* --- Panels (unlock gate, apply block) --- */

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.3rem;
}

.panel + .panel {
  margin-top: 1rem;
}

.panel h2 {
  font-family: var(--mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--faint);
  margin: 0 0 0.6rem;
}

.panel p {
  margin: 0 0 0.75rem;
}

.panel p:last-child {
  margin-bottom: 0;
}

/* --- Job detail --- */

h1 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.9rem;
}

#job-description {
  margin-top: 1.5rem;
}

.job-full-text {
  white-space: pre-line;
  line-height: 1.6;
  color: var(--ink);
  font-size: 0.94rem;
  margin: 0 0 1.5rem;
}

.apply-link {
  color: var(--amber-text);
  font-weight: 600;
  word-break: break-word;
}

.error {
  color: var(--danger);
  font-size: 0.85rem;
  margin-top: 0.6rem;
  font-family: var(--mono);
}

/* --- Structured job detail sections (mobile-first: one column, full-width actions) --- */

.detail-facts {
  margin-bottom: 0.7rem;
}

.location-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.45rem;
  margin-bottom: 0.45rem;
}

.location-block .attr-row {
  color: var(--muted);
}

.location-block .tag-row {
  margin: 0;
}

.more-locations {
  flex-basis: 100%;
}

.more-locations summary {
  cursor: pointer;
  width: fit-content;
  padding: 0.35rem 0;
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--amber-text);
}

.more-locations .tag-row {
  margin-top: 0.3rem;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.detail-body {
  margin-top: 1.25rem;
}

.detail-section p,
.detail-section .bullets {
  font-size: 0.94rem;
  line-height: 1.55;
}

.bullets {
  margin: 0;
  padding-left: 1.1rem;
}

.bullets li {
  margin-bottom: 0.35rem;
}

.bullets li:last-child {
  margin-bottom: 0;
}

.qualification {
  margin: 0 0 0.6rem;
}

.detail-section .skills {
  margin: 0.8rem 0 0;
}

.facts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
}

.facts-grid > div {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.facts-grid dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--faint);
}

.facts-grid dd {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.4;
}

.detail-section .facts-grid:last-child {
  margin-bottom: 0;
}

.map-link {
  margin-top: 0.8rem;
}

.sparse-note {
  margin: 0 0 1rem;
  font-size: 0.9rem;
}

.apply-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.apply-actions .btn {
  justify-content: space-between;
  width: 100%;
}

.apply-detail {
  margin-left: 0.6rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  overflow-wrap: anywhere;
  text-align: right;
}

@media (min-width: 641px) {
  .facts-grid {
    grid-template-columns: 1fr 1fr;
  }

  .apply-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .apply-actions .btn {
    width: auto;
    justify-content: center;
  }
}

/* --- Mobile sticky apply bar (unlocked detail only) --- */

.apply-bar {
  display: none;
}

@media (max-width: 640px) {
  .apply-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10;
    padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 1px solid var(--line);
  }

  .apply-bar .btn-primary {
    width: 100%;
  }

  main {
    padding: 1.5rem 1rem 3rem;
  }

  .topbar .search-form {
    flex-basis: 100%;
    max-width: none;
    order: 3;
  }

  .topbar-actions {
    order: 2;
  }

  .pager {
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }
}

/* --- Email forms (unlock + job alerts) --- */

.email-form {
  margin-top: 0.9rem;
}

.email-form__row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

/* 16px inputs: anything smaller makes iOS Safari zoom the page on focus. */
.email-form input[type="email"],
.email-form input[type="text"],
.email-form select {
  flex: 1 1 220px;
  min-height: 44px;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-raised);
  color: var(--ink);
  font-family: inherit;
  font-size: 1rem;
}

.email-form input:focus,
.email-form select:focus {
  outline: none;
  border-color: var(--amber);
  box-shadow: 0 0 0 3px rgba(0, 107, 253, 0.16);
}

.email-form__fields {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}

.email-form .field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.email-form .field input,
.email-form .field select {
  flex: none;
}

.email-form .email-form__who {
  margin: 0 0 0.6rem;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--ink);
  word-break: break-word;
}

.email-form .email-form__who .link-button {
  margin-top: 0;
  text-decoration: underline;
  min-height: 44px;
}

.email-form .email-form__other {
  margin-bottom: 0.6rem;
}

.email-form .email-form__consent,
.email-form .email-form__status {
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  line-height: 1.45;
  font-weight: 400;
  color: var(--faint);
  word-break: normal;
}

.email-form .email-form__consent a {
  color: inherit;
}

.email-form .email-form__status {
  color: var(--muted);
}

.email-form .email-form__status.is-error {
  color: var(--danger);
  font-family: var(--mono);
}

/* Honeypot: off-screen, not display:none, so simple bots still fill it. */
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* --- Alert prompts --- */

.alert-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.3rem;
}

.alert-card .alert-card__title {
  margin: 0 0 0.25rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.alert-card .alert-card__copy {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.alert-card .alert-card__success {
  margin: 0;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
}

.detail-body .alert-card {
  margin-top: 1rem;
}

.empty-state .alert-card {
  text-align: left;
  max-width: 520px;
  margin: 1.25rem auto;
}

.alerts-page .alert-card {
  margin-top: 1rem;
}

.hero-alerts {
  margin: 1.25rem 0 0;
  font-size: 0.88rem;
}

.hero-alerts a {
  color: var(--amber-text);
  font-weight: 600;
  text-decoration: none;
}

/* --- Optional mobile bottom sheet (off by default, see SHEET_ENABLED) --- */

.alert-sheet {
  display: none;
}

@media (max-width: 640px) {
  .alert-sheet:not([hidden]) {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    padding: 0.5rem 0.75rem calc(0.75rem + env(safe-area-inset-bottom));
    background: var(--surface);
    border-top: 2px solid var(--amber);
    box-shadow: 0 -6px 24px rgba(7, 20, 61, 0.12);
  }

  .alert-sheet .alert-card {
    border: none;
    border-radius: 0;
    padding: 0.25rem 0.25rem 0;
  }

  .alert-sheet__close {
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 0;
    right: 0;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    color: var(--muted);
    font-size: 1.5rem;
    cursor: pointer;
  }

  body.has-sheet main {
    padding-bottom: 14rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .alert-sheet:not([hidden]) {
    animation: sheet-in 0.2s ease-out;
  }
}

@keyframes sheet-in {
  from {
    transform: translateY(100%);
  }
  to {
    transform: none;
  }
}

/* --- Footer and plain-text pages --- */

.site-footer {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 1.5rem 2.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  font-size: 0.8rem;
}

.site-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--faint);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--ink);
}

.prose h2 {
  margin: 1.5rem 0 0.4rem;
  font-size: 1rem;
}

.prose p,
.prose li {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose a {
  color: var(--amber-text);
}

@media (max-width: 640px) {
  /* Keep the footer clear of the fixed "Apply now" bar on job pages. */
  body:has(.apply-bar) .site-footer {
    padding-bottom: 6rem;
  }

  .site-footer {
    padding: 0 1rem 2.5rem;
  }
}


/* --- Filter bar (freshers / location / category / posted) --- */

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.6rem;
}

.pill-toggle {
  position: relative;
  display: inline-flex;
}

.pill-toggle input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.pill-toggle span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  white-space: nowrap;
}

.pill-toggle input:checked + span {
  border-color: var(--amber);
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 600;
}

.pill-toggle input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(0, 107, 253, 0.16);
}

.chip-accent {
  border-color: var(--amber);
  color: var(--amber-text);
  font-weight: 600;
}

/* --- Job detail: share button and stale-posting note --- */

.detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.detail-head h1 {
  margin: 0;
}

.share-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 40px;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  cursor: pointer;
}

.share-btn:hover {
  border-color: var(--amber);
}

.stale-note {
  margin: 0.6rem 0 0;
  padding: 0.55rem 0.75rem;
  border-left: 3px solid var(--amber);
  background: var(--surface-raised);
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.4;
}
