/* ---------------------------------------------------------------
   Job Listing — minimal, Linear/Vercel-inspired UI.
   Dark by default; light theme served to users on light OS.
   --------------------------------------------------------------- */

:root {
  --bg: #09090b;
  --bg-elev: #0e0e11;
  --panel: #111114;
  --panel-hover: #15151a;
  --border: #1f1f25;
  --border-strong: #2a2a32;
  --text: #f4f4f5;
  --text-strong: #fafafa;
  --muted: #8e8e98;
  --muted-2: #5d5d66;
  --accent: #6366f1;       /* indigo-500 */
  --accent-hover: #818cf8; /* indigo-400 */
  --accent-soft: rgba(99, 102, 241, 0.12);
  --accent-text: #c7d2fe;
  --good: #34d399;
  --warn: #f59e0b;
  --danger: #f87171;
  --chip-bg: rgba(255, 255, 255, 0.04);
  --chip-border: rgba(255, 255, 255, 0.08);
  --focus-ring: rgba(99, 102, 241, 0.35);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.45);
  --radius: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #fafafa;
    --bg-elev: #ffffff;
    --panel: #ffffff;
    --panel-hover: #f9f9fb;
    --border: #eaeaef;
    --border-strong: #d4d4dc;
    --text: #18181b;
    --text-strong: #09090b;
    --muted: #6b7280;
    --muted-2: #a1a1aa;
    --accent: #4f46e5;
    --accent-hover: #4338ca;
    --accent-soft: rgba(79, 70, 229, 0.08);
    --accent-text: #3730a3;
    --good: #059669;
    --warn: #d97706;
    --danger: #dc2626;
    --chip-bg: #f4f4f6;
    --chip-border: #e4e4e9;
    --focus-ring: rgba(79, 70, 229, 0.25);
    --shadow-sm: 0 1px 2px rgba(15, 15, 25, 0.04);
    --shadow-md: 0 4px 18px rgba(15, 15, 25, 0.05);
    --shadow-lg: 0 16px 48px rgba(15, 15, 25, 0.08);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent-soft); color: var(--text-strong); }

/* Subtle radial glow behind hero (dark mode only). */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(800px 400px at 50% -100px, rgba(99, 102, 241, 0.12), transparent 60%),
    radial-gradient(600px 300px at 90% 10%, rgba(139, 92, 246, 0.06), transparent 60%);
  pointer-events: none;
  z-index: -1;
}
@media (prefers-color-scheme: light) {
  body::before {
    background:
      radial-gradient(900px 450px at 50% -120px, rgba(79, 70, 229, 0.06), transparent 60%);
  }
}

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

header {
  padding: 28px 24px 20px;
  text-align: center;
}

header h1 {
  margin: 0;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-strong);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

header h1 .brand-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent-soft);
}

.tagline {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  letter-spacing: -0.005em;
}

.home-link,
.brand-link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.home-link:hover,
.brand-link:hover { color: var(--accent-hover); }

/* --- Auth widget (header right) ------------------------------------ */
/* Constrain the header row to the same reading column as <main> so the
   auth pill sits next to the brand instead of floating in the far corner.
   Tagline stays centered on its own line below. */
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 880px;
  margin: 0 auto 6px;
  text-align: left;
}
.header-row h1 { margin: 0; }
header .tagline { margin: 0; }

.auth-widget { position: relative; }
.auth-btn {
  background: transparent;
  border: 1px solid #d4d4d8;
  color: #18181b;
  padding: 7px 14px;
  border-radius: 999px;     /* pill matches the example chips below */
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  line-height: 1.2;
  white-space: nowrap;
}
.auth-btn:hover { border-color: var(--accent, #3b82f6); color: var(--accent, #3b82f6); }

.auth-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  background: #fff;
  border: 1px solid #e4e4e7;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.10);
  padding: 6px;
  min-width: 220px;
  z-index: 100;
}
.auth-email {
  display: block;
  font-size: 12px;
  color: #71717a;
  padding: 8px 10px 10px;
  border-bottom: 1px solid #f4f4f5;
  margin-bottom: 4px;
  word-break: break-all;
  line-height: 1.3;
}
.auth-link {
  display: block;
  padding: 8px 10px;
  font-size: 14px;
  color: #18181b;
  text-decoration: none;
  border-radius: 6px;
}
.auth-link:hover { background: #f4f4f5; color: var(--accent, #3b82f6); }
.auth-link-button {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
}

/* --- Modal --------------------------------------------------------- */
.modal {
  position: fixed; inset: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: center;
}
.modal.hidden { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.4);
}
.modal-panel {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 28px 28px 24px;
  width: min(90vw, 400px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.25);
}
.modal-panel h2 { margin: 0 0 4px; font-size: 20px; }
.modal-sub { margin: 0 0 16px; color: #71717a; font-size: 14px; }
.modal-close {
  position: absolute; top: 10px; right: 14px;
  background: none; border: none; font-size: 24px; color: #71717a;
  cursor: pointer; line-height: 1; padding: 4px 8px;
}
.modal-close:hover { color: #18181b; }
.modal-panel form { display: flex; flex-direction: column; gap: 10px; }
.modal-panel input[type=email] {
  padding: 10px 12px;
  border: 1px solid #d4d4d8;
  border-radius: 8px;
  font-size: 15px;
}
.modal-panel input[type=email]:focus { outline: 2px solid var(--accent, #3b82f6); outline-offset: -1px; }
.modal-panel button[type=submit] {
  padding: 10px;
  background: var(--accent, #3b82f6);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.modal-panel button[type=submit]:disabled { opacity: 0.6; cursor: not-allowed; }
.modal-status {
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
}
.modal-status.success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.modal-status.error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* --- /account tabs ------------------------------------------------- */
.account-tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid #e4e4e7;
  margin: 20px 0 16px;
  flex-wrap: wrap;
}
.account-tab {
  background: none;
  border: none;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: #71717a;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;   /* sit on top of the row border */
}
.account-tab:hover { color: #18181b; }
.account-tab.active {
  color: var(--accent, #3b82f6);
  border-bottom-color: var(--accent, #3b82f6);
}
.tab-panel { min-height: 120px; }
#account-anon { padding: 24px 0; }
#account-anon h2 { margin: 0 0 8px; }
#account-anon p  { color: #71717a; margin: 0 0 16px; }

/* --------------------- Layout --------------------- */

main {
  max-width: 880px;
  margin: 0 auto;
  padding: 24px 20px 120px;
}

/* --------------------- Search hero --------------------- */

.search-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  padding: 8px 8px 8px 52px;
  box-shadow: var(--shadow-md);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.search-bar::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  background-color: var(--muted);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/></svg>") no-repeat center / contain;
  transition: background-color 0.15s ease;
}

.search-bar:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--focus-ring), var(--shadow-md);
}
.search-bar:focus-within::before { background-color: var(--accent); }

.search-bar input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text-strong);
  font-size: 17px;
  font-weight: 450;
  padding: 14px 8px;
  outline: none;
  letter-spacing: -0.01em;
}
.search-bar input::placeholder { color: var(--muted-2); }

.search-bar button {
  background: var(--accent);
  color: white;
  border: none;
  font-weight: 600;
  padding: 0 22px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 14px;
  letter-spacing: -0.005em;
  transition: background 0.15s ease, transform 0.05s ease;
  white-space: nowrap;
}
.search-bar button:hover { background: var(--accent-hover); }
.search-bar button:active { transform: scale(0.98); }
.search-bar button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* --------------------- Controls row --------------------- */

.controls {
  margin: 18px 4px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  color: var(--muted);
  font-size: 13px;
}

.parser-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

.parser-toggle select {
  appearance: none;
  -webkit-appearance: none;
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 28px 6px 10px;
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e8e98' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 8px center;
  background-size: 12px;
}
.parser-toggle select:hover { border-color: var(--border-strong); background-color: var(--panel-hover); }
.parser-toggle select:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }

.meta { font-variant-numeric: tabular-nums; color: var(--muted); }

/* --------------------- Example pills --------------------- */

.examples {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.examples button {
  background: var(--chip-bg);
  color: var(--muted);
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12.5px;
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.examples button:hover {
  color: var(--text-strong);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* --------------------- Filters bar (active query chips) --------------------- */

.filters {
  margin: 28px 0 4px;
  padding: 14px 16px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}
.filters > span {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}
.filters strong {
  color: var(--muted);
  font-weight: 500;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-right: 2px;
}

/* Pretty filter chips. */
.tag {
  display: inline-flex;
  align-items: center;
  background: var(--accent-soft);
  color: var(--accent-text);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: -0.005em;
}

@media (prefers-color-scheme: light) {
  .tag {
    background: var(--accent-soft);
    color: var(--accent-text);
    border-color: rgba(79, 70, 229, 0.15);
  }
}

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

#results {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.job {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.job:hover {
  border-color: var(--border-strong);
  background: var(--panel-hover);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.job a.title {
  display: inline-block;
  color: var(--text-strong);
  font-weight: 600;
  font-size: 16.5px;
  letter-spacing: -0.015em;
  text-decoration: none;
  line-height: 1.35;
  padding-right: 56px; /* space for score badge */
}
.job a.title:hover { color: var(--accent-hover); }

.job .row {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  letter-spacing: -0.003em;
}
.job .row > span {
  display: inline-flex;
  align-items: center;
}
/* Bullet separators between meta items (skip after company). */
.job .row > span + span::before {
  content: "·";
  margin: 0 8px;
  color: var(--muted-2);
}

.job .company {
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.005em;
}

.job .matched {
  margin-top: 12px;
  font-size: 12px;
  color: var(--good);
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: -0.002em;
}
.job .matched::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good);
  flex-shrink: 0;
}

/* "+N more from {company}" pill — bottom-right of card in grouped view. */
.job .more-from {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: var(--chip-bg);
  color: var(--muted);
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: -0.002em;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.job .more-from:hover {
  color: var(--text-strong);
  border-color: var(--accent);
  background: var(--accent-soft);
}
.job .more-from:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Sibling cards under an expanded "+N more from X" group — visually nested
   so it's clear they belong to the parent card. */
.job-sibling { margin-left: 24px; }
.job-sibling .job {
  border-left: 3px solid var(--accent-soft);
}

/* "Show N more" pager at the bottom of the result list. Full-width pill. */
.show-more {
  display: block;
  width: 100%;
  margin: 8px 0;
  padding: 12px;
  background: var(--chip-bg);
  color: var(--text);
  border: 1px solid var(--chip-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.show-more:hover {
  color: var(--text-strong);
  border-color: var(--accent);
  background: var(--accent-soft);
}

/* Subtle score chip — top-right of card. */
.job .score {
  position: absolute;
  top: 16px;
  right: 18px;
  font-size: 11px;
  color: var(--muted-2);
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 999px;
  padding: 2px 8px;
  letter-spacing: 0.01em;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}
.job:hover .score { opacity: 1; }

/* --------------------- Empty / error states --------------------- */

.empty, .error {
  text-align: center;
  margin-top: 48px;
  padding: 40px 24px;
  color: var(--muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--panel);
  font-size: 14px;
}

.empty::before {
  content: "";
  display: block;
  width: 44px;
  height: 44px;
  margin: 0 auto 16px;
  background-color: var(--muted-2);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/><path d='M8 11h6'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='7'/><path d='m20 20-3.5-3.5'/><path d='M8 11h6'/></svg>") no-repeat center / contain;
  opacity: 0.6;
}

.error {
  color: var(--danger);
  border-style: solid;
  border-color: rgba(248, 113, 113, 0.25);
  background: rgba(248, 113, 113, 0.05);
}

.hidden { display: none !important; }

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

footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 20px;
  font-size: 12px;
  color: var(--muted-2);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
  border-top: 1px solid var(--border);
  z-index: 10;
}
footer a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}
footer a:hover { color: var(--text); }

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

.back-link {
  margin: 0 0 20px;
  font-size: 13px;
}
.back-link a {
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px 6px 8px;
  border-radius: 8px;
  transition: color 0.15s ease, background 0.15s ease;
}
.back-link a:hover { color: var(--text); background: var(--panel-hover); }

.job-detail {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-md);
}

.job-head {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  gap: 20px;
  align-items: start;
  padding-bottom: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

.logo-placeholder {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #8b5cf6);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  box-shadow: 0 6px 16px rgba(99, 102, 241, 0.25);
}

.job-head-text h2 {
  margin: 0 0 8px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-strong);
  line-height: 1.25;
}
.job-head-text .row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
  color: var(--muted);
}
.job-head-text .row > span + span::before,
.job-head-text .row > span > span + span::before {
  content: "·";
  margin: 0 8px;
  color: var(--muted-2);
}
/* Suppress bullet before #job-posted when it's empty (job.js may leave it blank). */
.job-head-text .row > span:empty { display: none; }
.job-head-text .company {
  color: var(--text);
  font-weight: 600;
}

.apply-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  box-shadow: var(--shadow-sm);
}
.apply-cta::after {
  content: "";
  width: 14px;
  height: 14px;
  background-color: currentColor;
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17 17 7'/><path d='M7 7h10v10'/></svg>") no-repeat center / contain;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><path d='M7 17 17 7'/><path d='M7 7h10v10'/></svg>") no-repeat center / contain;
}
.apply-cta:hover { background: var(--accent-hover); box-shadow: var(--shadow-md); }
.apply-cta:active { transform: scale(0.98); }
.apply-cta:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.job-description {
  max-width: 70ch;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 15.5px;
  color: var(--text);
  letter-spacing: -0.003em;
}
.job-description p { margin: 0 0 1.1em; }
.job-description ul, .job-description ol { margin: 0 0 1.1em 1.4em; padding: 0; }
.job-description li { margin: 0.35em 0; }
.job-description li::marker { color: var(--muted); }
.job-description h1,
.job-description h2,
.job-description h3,
.job-description h4 {
  margin: 1.8em 0 0.6em;
  color: var(--text-strong);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.3;
}
.job-description h1 { font-size: 1.4em; }
.job-description h2 { font-size: 1.25em; }
.job-description h3 { font-size: 1.1em; }
.job-description h4 { font-size: 1em; }
.job-description a {
  color: var(--accent-hover);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.15s ease;
}
.job-description a:hover { text-decoration-color: var(--accent); }
.job-description strong { color: var(--text-strong); font-weight: 600; }
.job-description code {
  background: var(--chip-bg);
  border: 1px solid var(--chip-border);
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 0.9em;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.job-description hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.8em 0;
}

.apply-footer {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  text-align: center;
}

#job-loading {
  text-align: center;
  margin-top: 48px;
  color: var(--muted);
  font-size: 14px;
}

/* --------------------- Responsive --------------------- */

@media (max-width: 640px) {
  header { padding: 36px 20px 16px; }
  header h1 { font-size: 26px; }
  .tagline { font-size: 14px; }
  main { padding: 16px 14px 120px; }

  .search-bar {
    padding: 6px 6px 6px 44px;
    border-radius: var(--radius-lg);
  }
  .search-bar::before { left: 16px; width: 16px; height: 16px; }
  .search-bar input { font-size: 16px; padding: 12px 6px; }
  .search-bar button { padding: 0 16px; height: 40px; font-size: 13px; }

  .controls {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .controls .meta { text-align: left; }

  .job { padding: 16px 16px; }
  .job a.title { font-size: 15.5px; padding-right: 52px; }
  .job .score { top: 12px; right: 12px; }

  .job-detail { padding: 22px 18px; }
  .job-head {
    grid-template-columns: 48px 1fr;
    gap: 14px;
  }
  .logo-placeholder { width: 48px; height: 48px; font-size: 1.3rem; border-radius: 12px; }
  .job-head-text h2 { font-size: 20px; }
  .job-head .apply-cta {
    grid-column: 1 / -1;
    justify-content: center;
    width: 100%;
  }
  .job-description { font-size: 15px; }
}

@media (max-width: 380px) {
  .examples { gap: 4px; }
  .examples button { padding: 5px 10px; font-size: 12px; }
}
