:root {
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --bg: #f8f9fb;
  --surface: #ffffff;
  --surface-hover: #f3f4f6;
  --text: #111827;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-subtle: rgba(37, 99, 235, 0.08);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.08);
  --status-open: #059669;
  --status-open-bg: rgba(5, 150, 105, 0.1);
  --status-paused: #d97706;
  --status-paused-bg: rgba(217, 119, 6, 0.1);
  --status-invite: #7c3aed;
  --status-invite-bg: rgba(124, 58, 237, 0.1);
  --featured: #eab308;
  --featured-bg: rgba(234, 179, 8, 0.12);
  --radius: 10px;
  --radius-sm: 6px;
  --max-width: 1440px;
  --measure: 42rem;
}

[data-theme="dark"] {
  --bg: #0f1117;
  --surface: #181b24;
  --surface-hover: #1f2430;
  --text: #f3f4f6;
  --text-muted: #9ca3af;
  --border: #2d3340;
  --accent: #60a5fa;
  --accent-hover: #93c5fd;
  --accent-subtle: rgba(96, 165, 250, 0.12);
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 4px 12px rgba(0, 0, 0, 0.2);
  --shadow-hover: 0 4px 16px rgba(0, 0, 0, 0.35);
  --status-open-bg: rgba(5, 150, 105, 0.18);
  --status-paused-bg: rgba(217, 119, 6, 0.18);
  --status-invite-bg: rgba(124, 58, 237, 0.18);
  --featured-bg: rgba(234, 179, 8, 0.15);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

.hidden {
  display: none !important;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 3.75rem;
  gap: 1rem;
}

.logo {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--accent);
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  background: var(--surface-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
  padding: 0.5rem 0.625rem;
}

.btn-ghost:hover {
  background: var(--surface-hover);
  color: var(--text);
}

.btn-lg {
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
}

.theme-toggle .theme-icon-moon {
  display: none;
}

[data-theme="dark"] .theme-toggle .theme-icon-sun {
  display: none;
}

[data-theme="dark"] .theme-toggle .theme-icon-moon {
  display: inline;
}

/* Hero */
.hero {
  padding: 3rem 0 2.5rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.hero-subtitle {
  margin: 0 0 1rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 52rem;
}

.hero-stats {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Program grid */
.programs {
  flex: 1;
  padding-bottom: 3rem;
}

.program-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 640px) {
  .program-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .program-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* From 1280px, 4-column cards are at least as wide as the narrowest 3-column cards (960px). */
@media (min-width: 1280px) {
  .program-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.program-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.program-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.program-card.featured {
  border-color: color-mix(in srgb, var(--featured) 50%, var(--border));
  background: linear-gradient(135deg, var(--surface) 0%, var(--featured-bg) 100%);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.card-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--border);
  flex-shrink: 0;
  object-fit: contain;
}

.card-logo-mark {
  width: 100%;
  height: 100%;
  background-color: var(--text);
  -webkit-mask: var(--logo) center / 78% auto no-repeat;
  mask: var(--logo) center / 78% auto no-repeat;
}

.card-title-block {
  flex: 1;
  min-width: 0;
}

.card-company {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-muted);
}

.card-program-name {
  margin: 0.125rem 0 0;
  font-size: 1.0625rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* Stretched over the whole card; inset -1px also covers the card border. */
.card-main-link {
  color: inherit;
  text-decoration: none;
}

.card-main-link::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--radius);
}

.card-main-link:focus-visible {
  outline: none;
}

.card-main-link:focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 0.625rem;
}

.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 999px;
}

.badge-open {
  color: var(--status-open);
  background: var(--status-open-bg);
}

.badge-paused {
  color: var(--status-paused);
  background: var(--status-paused-bg);
}

.badge-invite-only {
  color: var(--status-invite);
  background: var(--status-invite-bg);
}

.badge-featured {
  color: var(--featured);
  background: var(--featured-bg);
}

.badge-type {
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
}

.card-description {
  margin: 0 0 0.875rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.55;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3125rem;
  margin-bottom: 1rem;
}

.tag {
  padding: 0.125rem 0.4375rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  margin-top: auto;
}

.card-cta {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
}

.program-card:has(.card-main-link:hover) .card-cta {
  text-decoration: underline;
}

/* Sits above the stretched .card-main-link overlay so it stays clickable. */
.card-official-link {
  position: relative;
  z-index: 1;
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
}

.card-official-link:hover {
  color: var(--text);
  text-decoration: underline;
}

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

.card-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

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

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 2.5rem 0;
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.footer-cta h2 {
  margin: 0 0 0.5rem;
  font-size: 1.25rem;
  font-weight: 600;
}

.footer-cta p {
  margin: 0 0 1rem;
  color: var(--text-muted);
  max-width: 28rem;
}

.disclaimer {
  margin: 0 0 0.5rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.footer-copy {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 28rem) minmax(0, 44rem);
    justify-content: space-between;
    align-items: end;
    gap: 3rem;
  }

  .footer-meta {
    text-align: right;
  }

  .footer-meta .disclaimer {
    max-width: none;
  }
}

/* Program detail page (rendered by js/program.js) */
.program-detail {
  flex: 1;
}

.detail {
  padding: 2rem 0 3.5rem;
}

.detail-back {
  display: inline-flex;
  gap: 0.375rem;
  margin-bottom: 1.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
  text-decoration: none;
}

.detail-back:hover {
  color: var(--accent);
}

.detail-back:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.detail-logo {
  width: 3.5rem;
  height: 3.5rem;
  border-radius: var(--radius);
}

.detail-title-block {
  min-width: 0;
}

.detail-company {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}

.detail-title {
  margin: 0.125rem 0 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1.5rem;
}

.detail-summary {
  max-width: var(--measure);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.detail-summary p {
  margin: 0 0 1rem;
}

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

.detail-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin-top: 1.75rem;
}

.detail-cta-domain {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.fact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  margin: 2.5rem 0 0;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* Column gap matches .detail-sections, so at 4 columns the third lines up with the second section. */
@media (min-width: 640px) {
  .fact-list {
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: 1.25rem 4rem;
  }
}

.fact dt {
  margin-bottom: 0.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.fact dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
}

.detail-sections {
  display: grid;
  gap: 2.5rem 4rem;
  margin-top: 2.5rem;
}

@media (min-width: 960px) {
  .detail-sections {
    grid-template-columns: repeat(2, minmax(0, var(--measure)));
  }
}

.detail-section-title {
  margin: 0 0 0.875rem;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.detail-list {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.6;
}

.detail-list li + li {
  margin-top: 0.5rem;
}

.detail-list li::marker {
  color: var(--accent);
}

.detail-faq {
  max-width: var(--measure);
  margin-top: 3rem;
}

.faq-item {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.faq-question {
  margin: 0 0 0.375rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.faq-answer {
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-answer p {
  margin: 0 0 0.75rem;
}

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

.detail-closing {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.detail-closing .detail-cta {
  margin-top: 0;
}

.detail-note {
  margin: 0.875rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.detail-message-text {
  max-width: var(--measure);
  margin: 0.75rem 0 1.5rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

/* Jobs page (rendered by js/jobs.js) */
.header-link {
  padding: 0.5rem 0.75rem;
  font-weight: 500;
}

.header-link[aria-current="page"] {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}

.jobs-page {
  flex: 1;
}

.jobs-hero {
  padding-bottom: 1.75rem;
}

.jobs {
  padding-bottom: 3.5rem;
}

.jobs-layout {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .jobs-layout {
    grid-template-columns: minmax(18rem, 22rem) minmax(0, 1fr);
    gap: 2rem;
  }

  .jobs-sidebar {
    position: sticky;
    top: 5rem;
  }
}

.jobs-sidebar {
  display: grid;
  gap: 1rem;
}

.jobs-form,
.tinyfish-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}

.jobs-form {
  display: grid;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.375rem;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.field-companies .field-label {
  margin-bottom: 0.375rem;
}

.field-input {
  width: 100%;
  padding: 0.5625rem 0.75rem;
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.field-input::placeholder {
  color: var(--text-muted);
  opacity: 0.8;
}

.field-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-subtle);
}

.field-actions {
  display: inline-flex;
  gap: 0.75rem;
}

.link-button {
  padding: 0;
  font: inherit;
  color: var(--accent);
  background: none;
  border: 0;
  cursor: pointer;
  text-transform: none;
  letter-spacing: 0;
}

.link-button:hover {
  text-decoration: underline;
}

.link-button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.chip {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.chip span {
  padding: 0.25rem 0.625rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.chip:hover span {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
}

.chip input:checked + span {
  color: var(--accent);
  background: var(--accent-subtle);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--border));
}

.chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.jobs-submit {
  width: 100%;
}

.jobs-submit:disabled {
  opacity: 0.7;
  cursor: progress;
}

.form-error {
  margin: 0;
  font-size: 0.8125rem;
  color: #dc2626;
}

[data-theme="dark"] .form-error {
  color: #f87171;
}

.tinyfish-title {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
}

.tinyfish-title a {
  color: var(--accent);
  text-decoration: none;
}

.tinyfish-title a:hover {
  text-decoration: underline;
}

.tinyfish-counts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin: 0;
}

.tinyfish-count {
  padding: 0.5rem;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.tinyfish-count dt {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.tinyfish-count dd {
  margin: 0.125rem 0 0;
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
}

.tinyfish-note {
  margin: 0.75rem 0 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.jobs-results {
  min-width: 0;
}

.jobs-count {
  margin: 0 0 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.jobs-message {
  padding: 2rem 1.5rem;
  text-align: center;
  background: var(--surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

.jobs-message-error {
  border-style: solid;
  border-color: color-mix(in srgb, #dc2626 45%, var(--border));
}

.jobs-message-title {
  margin: 0 0 0.375rem;
  font-weight: 600;
}

.jobs-message-text {
  margin: 0 auto;
  max-width: 32rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.agent-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.agent-status:not(:empty) {
  margin-bottom: 0.75rem;
}

.agent-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3125rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--status-invite);
  background: var(--status-invite-bg);
  border-radius: 999px;
}

.agent-pill-failed {
  color: var(--text-muted);
  background: var(--bg);
  border: 1px solid var(--border);
}

.agent-elapsed {
  min-width: 2.5ch;
  opacity: 0.75;
  font-variant-numeric: tabular-nums;
}

.agent-hint {
  align-self: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.agent-spinner {
  width: 0.75rem;
  height: 0.75rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.job-list {
  display: grid;
  gap: 0.625rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.job-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.job-card:hover {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--border));
  box-shadow: var(--shadow-hover);
}

.job-main {
  flex: 1 1 20rem;
  min-width: 0;
}

.job-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 0.5rem;
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.job-company {
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
}

a.job-company:hover {
  color: var(--accent);
  text-decoration: underline;
}

a.job-company:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.job-side {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.badge-source-search {
  color: var(--accent);
  background: var(--accent-subtle);
}

.badge-source-fetch {
  color: var(--status-open);
  background: var(--status-open-bg);
}

.badge-source-agent {
  color: var(--status-invite);
  background: var(--status-invite-bg);
}

.job-apply {
  white-space: nowrap;
}

.job-card-skeleton:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
}

.skeleton {
  display: block;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--surface-hover) 0%, var(--border) 50%, var(--surface-hover) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.4s ease-in-out infinite;
}

.skeleton-title {
  width: 55%;
  height: 1rem;
}

.skeleton-meta {
  width: 30%;
  height: 0.75rem;
  margin-top: 0.5rem;
}

@keyframes shimmer {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .agent-spinner,
  .skeleton {
    animation: none;
  }
}

@media (max-width: 480px) {
  .header-nav .btn-primary {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    white-space: nowrap;
  }

  .header-link {
    padding: 0.5rem 0.5rem;
  }

  .header-nav {
    gap: 0.375rem;
  }

  .job-side {
    width: 100%;
    justify-content: space-between;
  }
}
