  :root {
    --black: #0a0e0a;
    --dark: #111711;
    --dark2: #1a2218;
    --dark3: #1f2a1f;
    --panel: #162014;
    --border: #2a3a2a;
    --border2: #3a4f3a;
    --gold: #c9b97a;
    --gold2: #e0ce8a;
    --gold-dim: #8a7a4a;
    --ivory: #e8e0c8;
    --ivory2: #d0c8b0;
    --sage: #6aaa6a;
    --sage2: #4a8a4a;
    --muted: #7a8e7a;
    --muted2: #5a6e5a;
    --purple: #9a6aaa;
    --purple-bg: #2a1a3a;
    --purple-border: #4a2a5a;
    --red: #aa4a4a;
    --serif: 'Playfair Display', Georgia, serif;
    --sans: 'DM Sans', sans-serif;
  }

  * { margin: 0; padding: 0; box-sizing: border-box; }

  body {
    background: var(--black);
    color: var(--ivory);
    font-family: var(--sans);
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
  }

  /* ── NAV ── */
  nav {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10,14,10,0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 40px;
    display: flex; align-items: center; justify-content: space-between;
    height: 64px; min-height: 64px;
  }
  .logo {
    font-family: var(--serif);
    font-size: 22px; font-weight: 600;
    color: var(--gold);
    cursor: pointer; letter-spacing: 0.5px;
    text-decoration: none;
    display: inline-block;
  }
  .logo span { color: var(--sage); }
  .nav-links { display: flex; align-items: center; gap: 28px; }
  .nav-links a {
    color: var(--muted); font-size: 14px; text-decoration: none;
    font-weight: 400; transition: color 0.2s; cursor: pointer;
    letter-spacing: 0.3px;
  }
  .nav-links a:hover { color: var(--ivory); }
  .nav-btn {
    background: transparent;
    border: 1px solid var(--gold-dim);
    color: var(--gold); font-size: 13px;
    padding: 7px 18px; border-radius: 4px;
    cursor: pointer; font-family: var(--sans);
    transition: all 0.2s; letter-spacing: 0.3px;
    text-decoration: none;
  }
  .nav-btn:hover { background: var(--gold); color: var(--black); }

  /* ── BACK LINK ── */
  .back-link {
    display: inline-block;
    font-size: 12px;
    color: var(--muted2);
    text-decoration: none;
    margin-bottom: 28px;
    cursor: pointer;
    transition: color 0.2s;
  }
  .back-link:hover { color: var(--muted); }

  /* ── HERO ── */
  .hero {
    position: relative;
    background: var(--black);
    padding: 90px 40px 80px;
    text-align: center;
    overflow: hidden;
    border-bottom: 1px solid var(--border);
  }
  .hero::before {
    content: '';
    position: absolute; inset: 0;
    background:
      radial-gradient(ellipse 70% 60% at 50% 100%, rgba(26,34,24,0.9) 0%, transparent 70%),
      radial-gradient(ellipse 40% 30% at 20% 20%, rgba(106,170,106,0.04) 0%, transparent 60%),
      radial-gradient(ellipse 40% 30% at 80% 10%, rgba(201,185,122,0.04) 0%, transparent 60%);
    pointer-events: none;
  }
  .hero-trees {
    display: flex; justify-content: center; align-items: flex-end;
    gap: 6px; margin-bottom: 28px; opacity: 0.3;
  }
  .hero-trees span {
    font-size: 11px; color: var(--sage);
    font-family: monospace; letter-spacing: 3px;
  }
  .hero h1 {
    font-family: var(--serif);
    font-size: clamp(36px, 5vw, 58px);
    font-weight: 400; color: var(--ivory);
    line-height: 1.2; margin-bottom: 16px;
    position: relative;
  }
  .hero h1 em { color: var(--gold); font-style: italic; }
  .hero-sub {
    font-size: 16px; color: var(--muted);
    margin-bottom: 40px; letter-spacing: 0.3px;
    position: relative;
  }
  .search-bar {
    display: flex; gap: 0;
    max-width: 680px; margin: 0 auto 24px;
    background: var(--dark2);
    border: 1px solid var(--border2);
    border-radius: 8px; overflow: hidden;
    position: relative;
    box-shadow: 0 0 40px rgba(106,170,106,0.06);
  }
  .search-bar input {
    flex: 1; padding: 16px 20px;
    background: transparent; border: none; outline: none;
    color: var(--ivory); font-family: var(--sans);
    font-size: 14px;
  }
  .search-bar input::placeholder { color: var(--muted2); }
  .search-divider {
    width: 1px; background: var(--border);
    margin: 10px 0;
  }
  .search-btn {
    background: var(--sage2); color: var(--ivory);
    border: none; padding: 16px 28px;
    font-family: var(--sans); font-size: 14px;
    font-weight: 500; cursor: pointer;
    transition: background 0.2s; white-space: nowrap;
    letter-spacing: 0.3px;
  }
  .search-btn:hover { background: var(--sage); }
  .hero-tags {
    display: flex; gap: 8px; justify-content: center;
    flex-wrap: wrap; position: relative;
  }
  .tag {
    background: rgba(26,34,24,0.8);
    border: 1px solid var(--border);
    color: var(--muted); font-size: 12px;
    padding: 6px 14px; border-radius: 20px;
    cursor: pointer; transition: all 0.2s;
    letter-spacing: 0.2px;
  }
  .tag:hover { border-color: var(--sage2); color: var(--sage); }
  .tag.haunted { border-color: var(--purple-border); color: var(--purple); }

  /* ── FEATURES ── */
  .features {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--border);
    border-top: 1px solid var(--border);
  }
  .feat {
    background: var(--dark);
    padding: 36px 32px;
  }
  .feat-num {
    font-family: var(--serif); font-size: 36px;
    color: var(--gold); font-weight: 400;
    margin-bottom: 8px; line-height: 1;
  }
  .feat h3 {
    font-family: var(--serif); font-size: 17px;
    color: var(--ivory); font-weight: 400;
    margin-bottom: 8px;
  }
  .feat p { font-size: 13px; color: var(--muted); line-height: 1.6; }

  /* ── RECENT STRIP ── */
  .recent-strip {
    padding: 60px 40px;
    border-top: 1px solid var(--border);
  }
  .section-header {
    display: flex; align-items: baseline;
    justify-content: space-between; margin-bottom: 28px;
  }
  .section-title {
    font-family: var(--serif); font-size: 26px;
    color: var(--ivory); font-weight: 400;
  }
  .section-link {
    font-size: 13px; color: var(--gold);
    cursor: pointer; text-decoration: none;
    letter-spacing: 0.3px;
  }
  .section-link:hover { color: var(--gold2); }
  .recent-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  }

  /* ── JOB CARD ── */
  .job-card {
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: 8px; padding: 20px;
    transition: border-color 0.2s, transform 0.2s;
    cursor: pointer;
  }
  .job-card:hover {
    border-color: var(--border2);
    transform: translateY(-2px);
  }
  .card-top {
    display: flex; justify-content: space-between;
    align-items: flex-start; margin-bottom: 12px;
    gap: 10px;
  }
  .card-title {
    font-family: var(--serif); font-size: 16px;
    color: var(--ivory); font-weight: 400;
  }
  .card-cemetery { font-size: 12px; color: var(--muted); margin-top: 3px; }
  .badge {
    font-size: 10px; padding: 3px 9px;
    border-radius: 12px; font-weight: 500;
    white-space: nowrap; flex-shrink: 0;
    letter-spacing: 0.3px;
  }
  .badge-haunted {
    background: var(--purple-bg);
    color: var(--purple);
    border: 1px solid var(--purple-border);
  }
  .badge-new {
    background: rgba(26,58,26,0.8);
    color: var(--sage);
    border: 1px solid var(--sage2);
  }
  .badge-military {
    background: rgba(26,42,58,0.8);
    color: #7aaad4;
    border: 1px solid #2a4a6a;
  }
  .badge-jewish {
    background: rgba(58,42,10,0.8);
    color: var(--gold);
    border: 1px solid var(--gold-dim);
  }
  .badge-catholic {
    background: rgba(42,26,10,0.8);
    color: #c4905a;
    border: 1px solid #6a4a2a;
  }
  .card-meta {
    display: flex; flex-wrap: wrap; gap: 10px;
    margin-bottom: 14px;
  }
  .meta-item { font-size: 12px; color: var(--muted2); }
  .meta-item strong { color: var(--muted); }
  .card-footer {
    display: flex; justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    border-top: 1px solid var(--border);
  }
  .card-date { font-size: 11px; color: var(--muted2); }
  .apply-btn {
    background: transparent;
    border: 1px solid var(--gold-dim);
    color: var(--gold); font-size: 12px;
    padding: 6px 16px; border-radius: 4px;
    cursor: pointer; font-family: var(--sans);
    transition: all 0.2s;
  }
  .apply-btn:hover { background: var(--gold); color: var(--black); }

  /* ── SEARCH PAGE ── */
  .search-page { padding: 0; }
  .search-hero {
    background: var(--dark);
    border-bottom: 1px solid var(--border);
    padding: 32px 40px;
  }
  .search-hero h2 {
    font-family: var(--serif); font-size: 24px;
    color: var(--ivory); font-weight: 400; margin-bottom: 16px;
  }
  .search-hero .search-bar { margin: 0; max-width: 100%; }
  .search-body {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: calc(100vh - 180px);
  }

  /* ── FILTERS SIDEBAR ── */
  .filters-sidebar {
    background: var(--panel);
    border-right: 1px solid var(--border);
    padding: 24px 20px;
    position: sticky; top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
  }
  .filters-sidebar::-webkit-scrollbar { width: 4px; }
  .filters-sidebar::-webkit-scrollbar-track { background: transparent; }
  .filters-sidebar::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 2px; }
  .filters-title {
    font-size: 10px; font-weight: 500;
    color: var(--gold); text-transform: uppercase;
    letter-spacing: 2px; margin-bottom: 20px;
  }
  .filter-group { margin-bottom: 24px; }
  .filter-label {
    font-size: 11px; font-weight: 500;
    color: var(--ivory2); margin-bottom: 10px;
    display: block; letter-spacing: 0.5px;
  }
  .filter-select {
    width: 100%; background: var(--dark2);
    border: 1px solid var(--border);
    color: var(--ivory); font-size: 12px;
    padding: 8px 10px; border-radius: 4px;
    font-family: var(--sans); outline: none;
    margin-bottom: 8px; cursor: pointer;
  }
  .filter-select:focus { border-color: var(--border2); }
  .filter-input {
    width: 100%; background: var(--dark2);
    border: 1px solid var(--border);
    color: var(--ivory); font-size: 12px;
    padding: 8px 10px; border-radius: 4px;
    font-family: var(--sans); outline: none;
  }
  .filter-input::placeholder { color: var(--muted2); }
  .filter-input:focus { border-color: var(--border2); }
  .filter-divider {
    height: 1px; background: var(--border);
    margin: 20px 0;
  }
  .slider-row {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 8px;
  }
  .slider-val {
    font-size: 11px; color: var(--gold);
    font-weight: 500;
  }
  input[type=range] {
    width: 100%; appearance: none;
    height: 3px; background: var(--border2);
    border-radius: 2px; outline: none; cursor: pointer;
  }
  input[type=range]::-webkit-slider-thumb {
    appearance: none; width: 14px; height: 14px;
    border-radius: 50%; background: var(--gold);
    cursor: pointer;
  }
  .check-row {
    display: flex; align-items: center;
    gap: 8px; margin-bottom: 8px; cursor: pointer;
  }
  .check-row input[type=checkbox] {
    accent-color: var(--sage); cursor: pointer;
    width: 13px; height: 13px;
  }
  .check-row span {
    font-size: 12px; color: var(--muted);
    cursor: pointer;
  }
  .check-row:hover span { color: var(--ivory2); }

  /* haunted toggle */
  .haunted-toggle {
    display: flex; gap: 0;
    border: 1px solid var(--border);
    border-radius: 6px; overflow: hidden;
  }
  .htog {
    flex: 1; padding: 7px 4px;
    background: transparent; border: none;
    color: var(--muted2); font-size: 11px;
    cursor: pointer; font-family: var(--sans);
    transition: all 0.15s; text-align: center;
  }
  .htog.active {
    background: var(--purple-bg);
    color: var(--purple);
  }
  .htog:not(:last-child) { border-right: 1px solid var(--border); }

  /* ── RESULTS PANEL ── */
  .results-panel { padding: 24px; }
  .results-bar {
    display: flex; justify-content: space-between;
    align-items: center; margin-bottom: 20px;
  }
  .results-count { font-size: 13px; color: var(--muted); }
  .results-count strong { color: var(--ivory); }
  .sort-row { display: flex; gap: 8px; }
  .sort-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--muted2); font-size: 11px;
    padding: 5px 12px; border-radius: 4px;
    cursor: pointer; font-family: var(--sans);
    transition: all 0.15s;
  }
  .sort-btn.active, .sort-btn:hover {
    border-color: var(--border2);
    color: var(--ivory2);
  }
  .results-grid { display: flex; flex-direction: column; gap: 12px; }
  .results-grid .job-card { cursor: pointer; }

  /* ── ABOUT PAGE ── */
  .about-page { max-width: 860px; margin: 0 auto; padding: 70px 40px; }
  .about-page h1 {
    font-family: var(--serif); font-size: 44px;
    font-weight: 400; color: var(--ivory);
    margin-bottom: 8px; line-height: 1.2;
  }
  .about-page h1 em { color: var(--gold); font-style: italic; }
  .about-rule {
    width: 60px; height: 1px;
    background: var(--gold-dim); margin: 28px 0;
  }
  .about-page p {
    font-size: 16px; color: var(--muted);
    line-height: 1.8; margin-bottom: 20px;
  }
  .about-page h2 {
    font-family: var(--serif); font-size: 24px;
    font-weight: 400; color: var(--ivory);
    margin: 48px 0 16px;
  }
  .future-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 16px; margin: 24px 0;
  }
  .future-card {
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: 8px; padding: 20px;
  }
  .future-card .icon { font-size: 22px; margin-bottom: 10px; }
  .future-card h3 {
    font-family: var(--serif); font-size: 16px;
    color: var(--ivory); font-weight: 400; margin-bottom: 6px;
  }
  .future-card p { font-size: 13px; color: var(--muted); }
  .future-badge {
    display: inline-block;
    background: var(--dark3);
    border: 1px solid var(--border);
    color: var(--muted2); font-size: 10px;
    padding: 3px 10px; border-radius: 12px;
    margin-top: 10px; letter-spacing: 0.5px;
    text-transform: uppercase;
  }

  /* ── POST A JOB PAGE ── */
  .post-page { max-width: 720px; margin: 0 auto; padding: 70px 40px; }
  .post-page h1 {
    font-family: var(--serif); font-size: 40px;
    font-weight: 400; color: var(--ivory);
    margin-bottom: 8px;
  }
  .post-page .sub {
    font-size: 14px; color: var(--muted); margin-bottom: 40px;
  }
  .form-section-title {
    font-size: 10px; font-weight: 500;
    color: var(--gold); text-transform: uppercase;
    letter-spacing: 2px; margin: 32px 0 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
  }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
  .form-group { margin-bottom: 18px; }
  .form-group label {
    display: block; font-size: 12px;
    color: var(--ivory2); margin-bottom: 7px;
    font-weight: 500; letter-spacing: 0.3px;
  }
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%; background: var(--dark2);
    border: 1px solid var(--border);
    color: var(--ivory); font-size: 14px;
    padding: 11px 14px; border-radius: 6px;
    font-family: var(--sans); outline: none;
    transition: border-color 0.2s;
  }
  .form-group input:focus,
  .form-group select:focus,
  .form-group textarea:focus { border-color: var(--border2); }
  .form-group input::placeholder,
  .form-group textarea::placeholder { color: var(--muted2); }
  .form-group textarea { height: 120px; resize: vertical; }
  .form-group select option { background: var(--dark2); }
  .haunted-form-toggle {
    display: flex; gap: 0;
    border: 1px solid var(--border);
    border-radius: 6px; overflow: hidden;
    width: fit-content;
  }
  .hftog {
    padding: 9px 20px;
    background: transparent; border: none;
    color: var(--muted2); font-size: 13px;
    cursor: pointer; font-family: var(--sans);
    transition: all 0.15s;
  }
  .hftog.active { background: var(--purple-bg); color: var(--purple); }
  .hftog:not(:last-child) { border-right: 1px solid var(--border); }
  .pay-range-row {
    display: flex; gap: 12px; align-items: center;
  }
  .pay-range-row input { flex: 1; }
  .pay-sep { color: var(--muted2); font-size: 14px; }
  .submit-btn {
    width: 100%; background: var(--sage2);
    border: none; color: var(--ivory);
    font-family: var(--serif); font-size: 18px;
    padding: 16px; border-radius: 6px;
    cursor: pointer; margin-top: 32px;
    transition: background 0.2s; font-weight: 400;
    letter-spacing: 0.5px;
  }
  .submit-btn:hover { background: var(--sage); }
  .form-note {
    text-align: center; font-size: 12px;
    color: var(--muted2); margin-top: 14px;
  }

  /* ── JOB DETAIL PAGE ── */
  .job-detail { max-width: 860px; margin: 0 auto; padding: 50px 40px; }
  .detail-breadcrumb {
    font-size: 12px; color: var(--muted2);
    margin-bottom: 28px; cursor: pointer;
  }
  .detail-breadcrumb:hover { color: var(--muted); }
  .detail-header {
    display: flex; justify-content: space-between;
    align-items: flex-start; margin-bottom: 8px; gap: 16px;
  }
  .detail-title {
    font-family: var(--serif); font-size: 36px;
    color: var(--ivory); font-weight: 400; line-height: 1.2;
  }
  .detail-cemetery {
    font-size: 16px; color: var(--gold);
    margin-bottom: 20px; font-style: italic;
    font-family: var(--serif);
  }
  .detail-meta {
    display: flex; flex-wrap: wrap; gap: 12px;
    margin-bottom: 32px; padding-bottom: 32px;
    border-bottom: 1px solid var(--border);
  }
  .detail-meta-item {
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: 6px; padding: 10px 16px;
    font-size: 13px; color: var(--muted);
  }
  .detail-meta-item strong {
    display: block; font-size: 10px;
    color: var(--muted2); text-transform: uppercase;
    letter-spacing: 1px; margin-bottom: 3px;
  }
  .detail-section { margin-bottom: 32px; }
  .detail-section h3 {
    font-family: var(--serif); font-size: 20px;
    color: var(--ivory); font-weight: 400;
    margin-bottom: 14px;
  }
  .detail-section p { font-size: 14px; color: var(--muted); line-height: 1.8; }
  .detail-section ul {
    list-style: none; padding: 0;
  }
  .detail-section ul li {
    font-size: 14px; color: var(--muted);
    padding: 6px 0; padding-left: 16px;
    position: relative; line-height: 1.6;
  }
  .detail-section ul li::before {
    content: '—'; position: absolute; left: 0;
    color: var(--gold-dim);
  }
  .detail-apply-btn {
    background: var(--sage2); color: var(--ivory);
    border: none; font-family: var(--serif);
    font-size: 18px; padding: 16px 40px;
    border-radius: 6px; cursor: pointer;
    transition: background 0.2s; letter-spacing: 0.5px;
  }
  .detail-apply-btn:hover { background: var(--sage); }
  .cemetery-profile {
    background: var(--dark2);
    border: 1px solid var(--border);
    border-radius: 8px; padding: 24px;
    margin-top: 40px;
  }
  .cp-title {
    font-size: 10px; font-weight: 500;
    color: var(--gold); text-transform: uppercase;
    letter-spacing: 2px; margin-bottom: 16px;
  }
  .cp-grid {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .cp-item label {
    font-size: 10px; color: var(--muted2);
    text-transform: uppercase; letter-spacing: 1px;
    display: block; margin-bottom: 3px;
  }
  .cp-item span { font-size: 14px; color: var(--ivory2); }

  /* ── FOOTER ── */
  footer {
    background: var(--black);
    border-top: 1px solid var(--border);
    padding: 48px 40px 32px;
  }
  .footer-inner {
    max-width: 1100px; margin: 0 auto;
    display: grid; grid-template-columns: 1fr 1fr 1fr;
    gap: 40px; margin-bottom: 40px;
  }
  .footer-brand .logo { font-size: 24px; margin-bottom: 10px; }
  .footer-tagline {
    font-family: var(--serif); font-style: italic;
    font-size: 14px; color: var(--gold-dim);
    margin-bottom: 10px;
  }
  .footer-note { font-size: 12px; color: var(--muted2); line-height: 1.6; }
  .footer-col h4 {
    font-size: 10px; font-weight: 500;
    color: var(--gold); text-transform: uppercase;
    letter-spacing: 2px; margin-bottom: 16px;
  }
  .footer-col a {
    display: block; font-size: 13px;
    color: var(--muted2); text-decoration: none;
    margin-bottom: 8px; cursor: pointer;
    transition: color 0.2s;
  }
  .footer-col a:hover { color: var(--muted); }
  .footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    display: flex; justify-content: space-between;
    align-items: center;
  }
  .footer-bottom span { font-size: 12px; color: var(--muted2); }

  /* ── TOAST ── */
  .toast {
    position: fixed; bottom: 30px; right: 30px;
    background: var(--dark2); border: 1px solid var(--sage2);
    color: var(--sage); padding: 14px 20px;
    border-radius: 8px; font-size: 13px;
    opacity: 0; transform: translateY(10px);
    transition: all 0.3s; pointer-events: none;
    z-index: 999;
  }
  .toast.show { opacity: 1; transform: translateY(0); }

  /* ── ANIMATIONS ── */
  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
  }
  .hero h1, .hero-sub, .search-bar, .hero-tags {
    animation: fadeUp 0.7s ease both;
  }
  .hero h1 { animation-delay: 0.1s; }
  .hero-sub { animation-delay: 0.2s; }
  .search-bar { animation-delay: 0.3s; }
  .hero-tags { animation-delay: 0.4s; }

  /* ── HAMBURGER NAV ── */
  .nav-toggle-cb { display: none; }
  .nav-hamburger {
    display: none;
    flex-direction: column; gap: 5px;
    cursor: pointer; padding: 8px 4px;
    background: none; border: none; flex-shrink: 0;
  }
  .nav-hamburger span {
    display: block; width: 22px; height: 2px;
    background: var(--ivory); border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
  }
  .nav-toggle-cb:checked ~ .nav-hamburger span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .nav-toggle-cb:checked ~ .nav-hamburger span:nth-child(2) {
    opacity: 0; transform: scaleX(0);
  }
  .nav-toggle-cb:checked ~ .nav-hamburger span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }
  .nav-toggle-cb:checked ~ .nav-links {
    display: flex;
  }

  /* ── MOBILE FILTERS TOGGLE ── */
  .filters-toggle {
    display: none;
    width: 100%; background: var(--dark2);
    border: none; border-bottom: 1px solid var(--border);
    color: var(--muted); font-size: 13px;
    padding: 13px 20px; text-align: left;
    cursor: pointer; font-family: var(--sans);
    letter-spacing: 0.3px; transition: color 0.2s;
  }
  .filters-toggle:hover { color: var(--ivory); }

  /* ── TABLET (≤ 900px) ── */
  @media (max-width: 900px) {
    nav { padding: 0 20px; }
    .hero { padding: 60px 20px 50px; }
    .features { grid-template-columns: 1fr; }
    .recent-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 24px; }
    .future-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .cp-grid { grid-template-columns: 1fr; }
    .about-page { padding: 50px 24px; }
    .post-page  { padding: 50px 24px; }
    .job-detail { padding: 36px 24px; }
    .recent-strip { padding: 40px 20px; }
  }

  /* ── PHONE PORTRAIT (≤ 640px) ── */
  @media (max-width: 640px) {
    /* Nav hamburger */
    nav {
      padding: 0 20px;
      position: sticky; flex-wrap: wrap;
    }
    .nav-hamburger { display: flex; }
    .nav-links {
      display: none;
      position: absolute; top: 64px; left: 0; right: 0;
      z-index: 200;
      flex-direction: column;
      background: rgba(10,14,10,0.97);
      backdrop-filter: blur(12px);
      border-bottom: 1px solid var(--border);
      padding: 12px 20px 20px;
      gap: 0;
    }
    .nav-links a {
      padding: 12px 0;
      border-bottom: 1px solid var(--border);
      font-size: 15px;
    }
    .nav-links a:last-child { border-bottom: none; }
    .nav-btn {
      display: inline-block; margin-top: 4px;
      padding: 10px 0; border: none;
      font-size: 15px; color: var(--gold);
    }

    /* Hero */
    .hero { padding: 44px 16px 36px; }
    .hero h1 { font-size: clamp(28px, 8vw, 42px); }
    .hero-sub { font-size: 14px; margin-bottom: 24px; }
    .hero-trees { display: none; }

    /* Search bar — stack vertically */
    .search-bar {
      flex-direction: column;
      border-radius: 10px;
    }
    .search-bar input { padding: 14px 16px; font-size: 15px; }
    .search-divider { width: auto; height: 1px; margin: 0 12px; }
    .search-btn {
      padding: 14px; border-radius: 0 0 10px 10px;
      font-size: 14px;
    }

    /* Search hero on search page */
    .search-hero { padding: 20px 16px; }
    .search-hero h2 { font-size: 20px; margin-bottom: 12px; }

    /* Show filters toggle button */
    .filters-toggle { display: block; }

    /* Filters sidebar — hidden by default on mobile */
    .search-body { grid-template-columns: 1fr; }
    .filters-sidebar {
      display: none;
      position: static; height: auto;
      border-right: none;
      border-bottom: 1px solid var(--border);
    }
    .filters-sidebar.mobile-open { display: block; }

    /* Results */
    .results-panel { padding: 16px; }
    .results-bar { flex-wrap: wrap; gap: 10px; }
    .sort-row { flex-wrap: wrap; gap: 6px; }

    /* Cards */
    .card-meta { gap: 6px; }
    .card-top { gap: 6px; }

    /* Detail page */
    .detail-title { font-size: 26px; }
    .detail-header { flex-direction: column; gap: 10px; }
    .detail-meta { gap: 8px; }
    .detail-meta-item { padding: 8px 12px; font-size: 12px; }
    .detail-apply-btn { width: 100%; text-align: center; font-size: 16px; padding: 14px; }

    /* Forms */
    .pay-range-row { flex-direction: column; gap: 8px; }
    .pay-sep { display: none; }
    .about-page { padding: 36px 16px; }
    .post-page  { padding: 36px 16px; }
    .job-detail { padding: 24px 16px; }
    .recent-strip { padding: 32px 16px; }
    .section-title { font-size: 22px; }

    /* Footer */
    footer { padding: 32px 16px 24px; }
    .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  }

  /* ── SMALL PHONE (≤ 390px) ── */
  @media (max-width: 390px) {
    .hero h1 { font-size: 26px; }
    .hero-tags { gap: 6px; }
    .tag { font-size: 11px; padding: 5px 10px; }
    .feat { padding: 24px 16px; }
    .sort-btn { font-size: 10px; padding: 5px 8px; }
  }

  /* ── LANDSCAPE PHONE (short viewport) ── */
  @media (orientation: landscape) and (max-height: 500px) {
    nav { height: 52px; }
    .nav-links { top: 52px; }
    .hero { padding: 28px 20px 22px; }
    .hero-trees { display: none; }
    .hero h1 { font-size: clamp(22px, 5vw, 36px); margin-bottom: 10px; }
    .hero-sub { margin-bottom: 16px; font-size: 13px; }
    .filters-sidebar {
      position: static; height: auto;
      top: 52px;
    }
    .search-body { min-height: auto; }
  }
