:root {
  --dark: #1f2937;
  --accent: #6b4c57;
  --nav-bg: #14181f;
  --nav-text: #e5e7eb;
  /* CTA — reserved exclusively for the primary "Apply" action. Never used
   for links, checkboxes, or anything else, so it keeps its "take action
   now" meaning distinct from --accent (wine), which stays the color for
   general interactive/brand elements. */
--cta: #ff6a1a;
--cta-hover: #e85a0d;
--cta-active: #cc4e0a;

/* Freshness badge — a real, saturated mint rather than the previous
   near-white tint, so a "New today" / "2d old" tag actually reads as a
   signal worth noticing, not just a muted label. */
--mint-bg: #cdf4e2;
--mint-text: #036a4c;

/* Deep midnight blue replaces the previous flat charcoal header
   background — same sleek dark-mode feel, but blue reads as trust/
   security rather than generic "tech dashboard black". */
--midnight: #0a1120;
}

body {
  margin: 0;
  font-family: system-ui, sans-serif;
  color: var(--dark);
  background: #fff;
}

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

a:hover {
  text-decoration: underline;
}

main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem;
}

.job-list {
  list-style: none;
  padding: 0;
}

.job-list li {
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #eee;
}

.job-age {
  display: inline-block;
  font-size: 0.85rem;
  color: #6b7280;
  background: #f3f4f6;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  margin: 0.25rem 0 1rem;
}


.job-card {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}

.job-card-header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.job-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #1f2937;
  margin: 0;
}

.job-card-company {
  color: #374151;
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.job-meta {
  color: #6b7280;
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.job-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  background: var(--mint-bg);
  color: var(--mint-text);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.job-badge.stale {
  background: var(--paper); color: var(--muted-light); }

.job-description-box {
  background: #f3f4f6;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: #374151;
  margin: 0.75rem 0;
}

/* Compact card style used in listing pages (homepage / category) */
.job-card-compact {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 0.6rem;
}

.job-card-compact a {
  font-weight: 600;
  color: #1f2937;
}

.job-card-compact .job-badge {
  margin-left: 0.5rem;
  vertical-align: middle;
}




.job-card-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.job-card-compact:hover {
  border-color: #6b4c57;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.job-card-compact-main {
  min-width: 0;
}

.job-card-compact-title {
  font-weight: 600;
  color: #1f2937;
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.15rem;
}

.job-card-compact-title:hover {
  color: #6b4c57;
  text-decoration: none;
}

.job-card-compact-meta {
  color: #6b7280;
  font-size: 0.85rem;
}

.job-card-compact-meta .company-name {
  color: #374151;
  font-weight: 500;
}

.job-card-compact-side {
  flex-shrink: 0;
  text-align: right;
}

.job-list-cards {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}


.apply-btn {
  display: inline-block;
  background: var(--cta);
  color: #ffffff;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 8px;
  transition: background 150ms ease, transform 150ms ease;
}

.apply-btn:hover {
  background: var(--cta-hover);
  transform: translateY(-1px);
  text-decoration: none;
}

.apply-btn:active {
  background: var(--cta-active);
  transform: translateY(0);
}

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=IBM+Plex+Sans:wght@400;500;600&display=swap');

/* ==========================================================
   Design tokens — single source of truth. --accent (wine) is
   your existing brand color, used everywhere something needs
   to read as "interactive" or "primary". --badge-* is a
   separate, semantic status color (kept from the original
   "New today" pill) and is intentionally not the brand color.
   ========================================================== */
:root {
  --ink: #14181f;
  --ink-soft: #374151;
  --muted: #6b7280;
  --muted-light: #9aa0ac;
  --paper: #f3f4f6;
  --panel: #ffffff;
  --card: #f9fafb;
  --border: #e5e7eb;
  --border-strong: #d1d5db;

  --accent: #6b4c57;
  --accent-dark: #56404a;
  --accent-darker: #3d2c33;
  --accent-light: #f1e9eb;

  --badge-bg: #def7ec;
  --badge-text: #03543f;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink-soft);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}
h1, h2 { font-family: var(--font-display); color: var(--ink); margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

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

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Header ---------- */
/* --- Header Layout: 3-column grid for perfect centering --- */
.site-header {
  height: 60px;
  background: var(--midnight);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 1.5rem;
  position: relative;
  z-index: 50;
  box-sizing: border-box;
  position: sticky;
  top: 0;
  z-index: 60; /* above the sidebar's 40 and the preview's 55 below */
}



/* ============================================================
   1. Sticky header — add `position: sticky; top: 0; z-index: 60;`
      to your EXISTING .site-header rule (don't duplicate the rule,
      just add these three lines to it). Works at every viewport
      size, not just mobile — a sticky nav is generally expected
      everywhere, not only on small screens.
   ============================================================ */
/*.site-header {
  position: sticky;
  top: 0;
  z-index: 60; /* above the sidebar's 40 and the preview's 55 below 
}*/

/* ============================================================
   REPLACES the .preview-pane / .preview-pane.open rules from
   mobile-flip-card.css. Same flip animation, but now anchored to
   whichever job row was clicked instead of centered on screen:
   card appears BELOW the row if the row is in the top half of the
   viewport, ABOVE the row if it's in the bottom half. The actual
   top/bottom/max-height values are set inline by JS in job-board.js
   (see below) since they depend on where the row was on screen —
   only the shared/static parts belong here.
   ============================================================ */
@media (max-width: 1023px) {
  .job-row:active {
    background: var(--paper);
    border-color: var(--accent);
  }

  
  .preview-highlights { gap: 8px; margin: 10px 0 12px; }
  .preview-highlight-card { padding: 9px 12px; }
  .preview-meta-row { margin: 8px 0 10px; gap: 8px; }
  .preview-description { padding: 12px 14px; margin: 4px 0 14px; }
  #previewTitle { font-size: 18px; margin-bottom: 6px; }

    .preview-pane {
    position: fixed;
    left: 50%;
    top: 50%;
    right: auto;
    bottom: auto;
    max-height: 80vh;
    width: calc(100% - 32px);
    max-width: 480px;
    height: auto;
    border-radius: 20px;
    background: var(--panel);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 55;
    overflow-y: auto;
    padding: 18px;
    padding-bottom: max(18px, env(safe-area-inset-bottom));

    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0;
    visibility: hidden;
    transition:
      transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1),
      opacity 220ms ease,
      visibility 0s linear 260ms;
  }

  .preview-pane.open {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    visibility: visible;
    transition:
      transform 260ms cubic-bezier(0.34, 1.56, 0.64, 1),
      opacity 220ms ease,
      visibility 0s linear 0s;
  }

  .close-preview { display: flex !important; }

  .preview-drag-handle { display: none; }

  .preview-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 54;
    opacity: 0;
    transition: opacity 250ms ease;
  }
  .preview-backdrop.open {
    display: block;
    opacity: 1;
  }
}

  /* Flip "hinges" from the edge nearest the row it's anchored to,
     so the motion reads as coming from that row rather than from
     the middle of nowhere. */
  .preview-pane.placement-below { transform-origin: top center; }
  .preview-pane.placement-above { transform-origin: bottom center; }

  .close-preview { display: flex !important; }

  .preview-drag-handle {
    display: none;
  }

  .preview-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 54;
    opacity: 0;
    transition: opacity 250ms ease;
  }
  .preview-backdrop.open {
    display: block;
    opacity: 1;
  }
}

@media (min-width: 1024px) {
  .preview-drag-handle,
  .preview-backdrop {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview-pane {
    transition: opacity 150ms ease !important;
    transform: translateX(-50%) !important;
  }
}


/* Shared: prevents background scroll-through while the filters
   sidebar or the preview card is open on mobile. */
body.no-scroll {
  overflow: hidden;
}

/* Remove old pseudo-element underlines that cause the vertical block overlap */
.site-header *::after,
.site-header *::before {
  content: none;
}

/* Brand logo */
.header-left {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: #f8fafc;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
}

.brand-icon {
  display: grid;
  place-items: center;
  color: #94a3b8;
}

/* --- Center Segmented Control Pill --- */
.site-nav {
  display: flex;
  justify-content: center;
}

.nav-pill-group {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 3px;
  gap: 2px;
}

.nav-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: none;
  background: transparent;
  color: #94a3b8;
  font-size: 0.825rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s ease-in-out;
  line-height: 1;
}

.nav-item:hover {
  color: #f1f5f9;
}

.nav-item.active {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Counter Badge */
.nav-counter {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  min-width: 14px;
  text-align: center;
}

.nav-item.active .nav-counter {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

/* Header Right for Mobile Action */
.header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

/* Mobile drawer toggle */
.icon-btn.mobile-only {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #94a3b8;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  display: none;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .icon-btn.mobile-only {
    display: inline-flex;
  }
}

/* ---------- Layout ---------- */
.layout {
  display: flex;
  align-items: flex-start;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

/* ---------- Sidebar filters ---------- */
.sidebar-filters {
  width: 288px;
  flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid var(--border);
  position: sticky;
  top: 57px;
  height: calc(100vh - 57px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}
.text-link { background: none; border: none; color: var(--accent); font-size: 12px; padding: 0; }
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 20px;
  padding: 9px 12px;
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--muted-light);
}
.search-box input {
  border: none;
  background: transparent;
  outline: none;
  font-size: 14px;
  width: 100%;
  color: var(--ink);
  font-family: var(--font-body);
}
.facets { padding: 0 20px; flex: 1; }
.facet-group { border-bottom: 1px solid var(--border); padding: 12px 0; }
.facet-group summary {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.facet-group summary::-webkit-details-marker { display: none; }
.facet-group summary::after {
  content: '';
  width: 8px; height: 8px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}
.facet-group[open] summary::after { transform: rotate(-135deg); }
.facet-body { margin-top: 8px; }
.facet-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 0;
  cursor: pointer;
}
.facet-check { display: flex; align-items: center; gap: 10px; }
.facet-check input { position: absolute; opacity: 0; width: 0; height: 0; }
.facet-box {
  width: 16px; height: 16px;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  position: relative;
  transition: background 120ms ease, border-color 120ms ease;
}
.facet-check input:checked + .facet-box { background: var(--accent); border-color: var(--accent); }
.facet-check input:checked + .facet-box::after {
  content: '';
  position: absolute; left: 4px; top: 1px;
  width: 4px; height: 8px;
  border-right: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(40deg);
}
.facet-label { font-size: 14px; color: var(--ink-soft); }
.facet-count { font-size: 12px; color: var(--muted-light); }

.company-search {
  width: 100%;
  margin: 6px 0 10px;
  padding: 7px 10px;
  font-size: 13px;
  font-family: var(--font-body);
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 6px;
  outline: none;
  color: var(--ink-soft);
}
.company-search:focus { border-color: var(--accent); }

/* Bounded + internally scrollable so "Show more" never shifts the page
   layout, even after several pages have been appended. */
#companyFacetList {
  max-height: 300px;
  overflow-y: auto;
  padding-right: 2px;
}

.show-more-btn {
  width: 100%;
  margin-top: 8px;
  background: none;
  border: 1px dashed var(--border-strong);
  border-radius: 6px;
  padding: 8px;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  font-family: var(--font-body);
}
.show-more-btn:hover { background: var(--accent-light); border-color: var(--accent); }
.show-more-btn:disabled { color: var(--muted-light); border-color: var(--border); cursor: default; }

.alert-card {
  margin: 16px 20px 20px;
  padding: 16px;
  border-radius: 12px;
  background: var(--accent-darker);
}
.alert-title { color: #fff; font-size: 14px; font-weight: 500; margin: 0 0 4px; }
.alert-copy { color: #d8c8cd; font-size: 12px; margin: 0 0 12px; }
#alertForm { display: flex; gap: 6px; }
#alertForm input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  border-radius: 6px;
  padding: 9px 10px;
  color: #fff;
  font-size: 12px;
  outline: none;
}
#alertForm input::placeholder { color: #cbb7bd; }
#alertForm button {
  background: #fff;
  color: var(--accent);
  border: none;
  border-radius: 6px;
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
#alertForm button:hover { background: var(--accent-light); }
.alert-status { margin: 10px 0 0; font-size: 12px; color: #f1e6e9; }

/* ---------- Job list (listing pages: homepage / category) ---------- */
.job-main { flex: 1; min-width: 0; padding: 24px 32px; }
.job-main h1 { font-size: 26px; }
.list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 16px;
}
.list-toolbar p { margin: 0; font-size: 14px; color: var(--muted); }
.sort-control { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted-light); }
.sort-control select {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--ink-soft);
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
}

.job-list-cards { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }

/* Listing-page row. Deliberately named .job-row (not .job-card) so it
   can never collide with the single-job detail page's .job-card block
   further down this file — the two have very different layouts and
   were previously sharing one selector name. */
.job-row {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.job-row:hover {
  border-color: var(--accent);
}

.job-row.is-active {
  background: #eef6ff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.job-row.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: #2563eb;
}

.job-row.is-active .job-row-title {
  color: #1d4ed8;
  font-weight: 700;
}

.job-row-main {
  min-width: 0;
}

.job-row-title {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
}

.job-row-title:hover {
  color: var(--accent);
  text-decoration: none;
}

.job-row-meta {
  font-size: 14px;
  color: var(--muted);
  margin: 4px 0 0;
}

.job-row-company {
  color: var(--ink-soft);
  font-weight: 500;
}

.job-row-side {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
/* .job-badge is shared by both the listing rows and the detail page —
   same pill, same meaning ("New today" / staleness), no conflict. */
.job-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  background: var(--badge-bg);
  color: var(--badge-text);
  border-radius: 999px;
  padding: 4px 10px;
  white-space: nowrap;
}
.job-badge.stale { background: var(--paper); color: var(--muted-light); }

.pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--mint-text);
  animation: pulse-dot 1.8s ease-in-out infinite;
}

@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.bookmark-btn {
  background: none;
  border: none;
  color: var(--muted-light);
  padding: 6px;
  border-radius: 6px;
  display: flex;
}
.bookmark-btn:hover { background: var(--paper); }
.bookmark-btn.is-saved { color: var(--accent); }
.bookmark-btn.is-saved svg { fill: var(--accent); }
.bookmark-btn.pop { animation: pop 320ms ease; }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.35); } 100% { transform: scale(1); } }

/* ---------- Preview pane (split-screen master-detail) ---------- */
@media (min-width: 1024px) {
  .preview-pane {
    width: 440px;
    flex-shrink: 0;
    border-left: 1px solid var(--border);
    position: sticky;
    top: 57px;
    height: calc(100vh - 57px);
    overflow-y: auto;
    padding: 24px;
    background: var(--panel);
  }
}
.preview-empty {
  color: var(--muted-light);
  font-size: 14px;
  padding-top: 40px;
  text-align: center;
}
.close-preview {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--paper);
  color: var(--muted);
  padding: 6px;}

.preview-body.fade-in {
  animation: fade-in 220ms ease;
}
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }

.preview-company-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.preview-company-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; /* clip a non-square logo to the rounded box instead of spilling out */
}

.preview-company-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
}
#previewCompany {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
#previewTitle {
  font-size: 20px;
  margin-bottom: 8px;
}
.preview-description {
  background: var(--paper);
  border-radius: 8px;
  padding: 14px 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin: 4px 0 20px;
  white-space: pre-wrap;
}
.preview-actions { display: flex; gap: 8px; }
.btn-primary {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--cta); color: #fff;
  border-radius: 8px; padding: 11px; font-size: 14px; font-weight: 600;
  transition: background 150ms ease, transform 150ms ease;
}
.btn-primary:hover {
  background: var(--cta-hover);
  text-decoration: none;
  transform: translateY(-1px);
}
.btn-primary:active {
  background: var(--cta-active);
  transform: translateY(0);
}
.btn-icon {
  width: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 8px;
  background: none; color: var(--muted-light);
}
.btn-icon.is-saved { color: var(--accent); }
.btn-icon.is-saved svg { fill: var(--accent); }

/* ---------- Mobile ---------- */
.sidebar-backdrop {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 39;
}
.sidebar-backdrop.open {
  display: block;
}

@media (max-width: 1023px) {
  .job-row:active {
    background: var(--paper);
    border-color: var(--accent);
  }

  .layout {
    flex-direction: column;
  }
  .sidebar-filters {
    position: fixed;
    top: 60px;
    left: 0;
    height: calc(100vh - 60px);
    z-index: 40;
    transform: translateX(-100%);
    transition: transform 200ms ease;
  }
  .sidebar-filters.open {
    transform: translateX(0);
  }
  .job-main {
    padding: 20px 16px;
    width: 100%;
  }
}

@media (min-width: 1024px) {
  .close-preview {
    display: none;
  }
}

/* ==========================================================
   Single-job detail page (e.g. /jobs/[slug]/) — original
   classes, left exactly as designed. Untouched by anything
   above: .job-row-* on the listing pages can never collide
   with these now that they have distinct selector names.
   ========================================================== */
.job-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.job-card-header {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}
.job-card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin: 0;
}
.job-card-company {
  color: var(--ink-soft);
  font-size: 1rem;
  margin: 0 0 0.5rem;
}
.job-meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}
.job-description-box {
  background: var(--paper);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  color: var(--ink-soft);
  margin: 0.75rem 0;
}


/* Compact card style — kept in case any other listing page (e.g. a
   category page) still renders this shape instead of .job-row. */
.job-card-compact {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.25rem;
  margin-bottom: 0.75rem;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.job-card-compact:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.job-card-compact-main { min-width: 0; }
.job-card-compact-title {
  font-weight: 600;
  color: var(--ink-soft);
  font-size: 1.05rem;
  display: block;
  margin-bottom: 0.15rem;
}
.job-card-compact-title:hover { color: var(--accent); text-decoration: none; }
.job-card-compact-meta { color: var(--muted); font-size: 0.85rem; }
.job-card-compact-meta .company-name { color: var(--ink-soft); font-weight: 500; }
.job-card-compact-side { flex-shrink: 0; text-align: right; }
.job-card-compact .job-badge {margin-left: 0.5rem; vertical-align: middle; }


/* Renamed detail-page classes (see note about the .job-card collision) */
.job-detail-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 24px auto;
  max-width: 720px;
}

.job-detail-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.job-detail-title {
  font-family: var(--font-display);
  font-size: 24px;
  color: var(--ink);
  margin: 0;
}

.job-detail-company {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 10px;
  font-weight: 500;
}

.apply-btn {
  display: inline-block;
  background: var(--pine);
  color: #0a0a0a;
  font-weight: 600;
  font-size: 15px;
  padding: 12px 22px;
  border-radius: 8px;
  text-decoration: none;
  margin-top: 8px;
  transition: background 150ms ease, transform 150ms ease;
}

.apply-btn:hover {
  background: var(--pine-dark);
  transform: translateY(-1px);
  text-decoration: none;
}




/* ---------- Pagination — shared by the main job list and /company/[name]/ ---------- */
.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 0 8px;
}
.pager-btn {
  background: var(--panel);
  border: 1px solid var(--border);
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
}
.pager-btn:hover:not(:disabled) { border-color: var(--accent); color: var(--accent); }
.pager-btn:disabled,
.pager-btn.disabled {
  color: var(--muted-light);
  border-color: var(--border);
  cursor: default;
  opacity: 0.6;
}
.pager-num {
  font-size: 13px;
  color: var(--muted);
}
.pager-num.active { color: var(--ink); font-weight: 500; }


.preview-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin: 10px 0 14px;
}

.preview-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 999px;
  background: #f5f2f4;
  color: #5a4b57;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.preview-meta-chip svg {
  color: #8b6f7d;
  flex-shrink: 0;
}

.preview-highlights {
  display: grid;
  gap: 10px;
  margin: 14px 0 16px;
}

.preview-highlight-card {
  border-radius: 14px;
  padding: 12px 14px;
  border: 1px solid transparent;
  background: #faf8f9;
}

.preview-highlight-label {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.preview-highlight-value {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  font-weight: 600;
}

.skills-card {
  background: linear-gradient(180deg, #f6f8ff 0%, #f3f5ff 100%);
  border-color: #dbe4ff;
}

.skills-card .preview-highlight-label {
  color: #4862b3;
}

.skills-card .preview-highlight-value {
  color: #243b77;
}

.compensation-card {
  background: linear-gradient(180deg, #fff8ef 0%, #fff3df 100%);
  border-color: #ffd9a8;
}

.compensation-card .preview-highlight-label {
  color: #b06a00;
}

.compensation-card .preview-highlight-value {
  color: #7a4a00;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -0.01em;
}

#previewExperienceLine {
  color: #6c5a66;
  font-size: 13px;
  margin: 2px 0 10px;
}

.preview-description {
  background: #f1eef1;
  border-radius: 14px;
  padding: 16px 18px;
  color: #433742;
  line-height: 1.7;
}


.experience-card {
  background: linear-gradient(180deg, #f8f5ff 0%, #f2eeff 100%);
  border-color: #e5dbff;
}

.experience-card .preview-highlight-label {
  color: #7657c3;
}

.experience-card .preview-highlight-value {
  color: #4c378a;
}

.job-row {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.job-row:hover {
  border-color: var(--accent);
}

.job-row.is-active {
  background: #eef6ff;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.job-row.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 4px;
  border-radius: 999px;
  background: #2563eb;
}

.job-row.is-active .job-row-title {
  color: #1d4ed8;
  font-weight: 700;
}

.job-row.is-active .job-row-company {
  color: #0f172a;
}

.job-row.is-active .job-badge {
  background: #dbeafe;
  color: #1d4ed8;
}




/* ---------- Saved jobs disclosure tooltip ---------- */
.saved-nav-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.saved-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 4px;
  color: #6b7280;
  cursor: help;
  border-radius: 50%;
}

.saved-info-icon:hover,
.saved-info-icon:focus-visible {
  color: #e5e7eb;
  outline: none;
}

.saved-info-tooltip {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  width: 240px;
  background: var(--midnight);
  color: #e5e7eb;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.5;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 140ms ease, transform 140ms ease;
  z-index: 60;
  text-align: left;
}

.saved-info-tooltip::before {
  content: '';
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-bottom-color: var(--midnight);
}

.saved-info-icon:hover .saved-info-tooltip,
.saved-info-icon:focus-visible .saved-info-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 768px) {
  .saved-info-tooltip {
    left: auto;
    right: 0;
    transform: translateY(-4px);
  }
  .saved-info-icon:hover .saved-info-tooltip,
  .saved-info-icon:focus-visible .saved-info-tooltip {
    transform: translateY(0);
  }
  .saved-info-tooltip::before {
    left: auto;
    right: 10px;
    transform: none;
  }
}






/* ---------- Footer ---------- */
.site-footer {
  background: var(--midnight);
  color: #cbd5e1;
  margin-top: 40px;
}
.footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 32px 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 32px;
}
.footer-col-title {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.footer-col a {
  display: block;
  color: #9aa5b8;
  font-size: 14px;
  margin-bottom: 8px;
  text-decoration: none;
}
.footer-col a:hover {
  color: #fff;
}
.footer-brand-name {
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 8px;
}
.footer-tagline {
  color: #9aa5b8;
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
  max-width: 320px;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 32px;
  text-align: center;
  font-size: 12px;
  color: #6b7688;
}

@media (max-width: 700px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Static content pages (Terms / About / Status) ---------- */
.static-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 48px 24px 64px;
  line-height: 1.7;
}
.static-page h1 {
  font-size: 32px;
  margin-bottom: 8px;
}
.static-page h2 {
  font-size: 19px;
  margin-top: 32px;
  margin-bottom: 10px;
}
.static-page p {
  color: var(--ink-soft);
  margin: 0 0 14px;
}
.static-updated {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 32px;
}
.static-list {
  padding-left: 20px;
  color: var(--ink-soft);
}
.static-list li {
  margin-bottom: 8px;
}
.static-tagline {
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  margin-top: 24px;
}
.static-changelog li strong {
  color: var(--ink);
}
.static-note {
  margin-top: 32px;
  font-size: 13px;
  color: var(--muted);
}


/* ---------- Icons and Logo --------- */
.brand-logo {
  height: 26px;   /* → renders at ~121px wide, fits the 60px header comfortably */
  width: auto;
  display: block;
}
