/* ==========================================================================
   JobsTube.co — shared.css
   Global stylesheet linked by every page on the site.
   Theme: Professional Blue & White (LinkedIn-inspired, elevated)
   Author: JobsTube.co
   Version: 1.0.0
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   -------------------------------------------------------------------------- */
:root {
  /* Brand Colors */
  --color-primary:        #0a66c2;   /* LinkedIn-style blue */
  --color-primary-dark:   #004182;
  --color-primary-light:  #378fe9;
  --color-primary-pale:   #dce6f1;
  --color-accent:         #f5a623;   /* Warm amber accent */
  --color-accent-dark:    #d4891a;

  /* Neutrals */
  --color-white:          #ffffff;
  --color-bg:             #f3f6fb;
  --color-surface:        #ffffff;
  --color-surface-alt:    #eef3f8;
  --color-border:         #d0dce8;
  --color-border-light:   #e8f0f8;

  /* Text */
  --color-text:           #1a1a2e;
  --color-text-secondary: #4a5568;
  --color-text-muted:     #7a8fa6;
  --color-text-inverse:   #ffffff;

  /* Semantic */
  --color-success:        #00a36c;
  --color-warning:        #f5a623;
  --color-error:          #e53e3e;
  --color-info:           #0a66c2;

  /* Typography */
  --font-display:  'Sora', 'Segoe UI', sans-serif;
  --font-body:     'DM Sans', 'Segoe UI', sans-serif;
  --font-mono:     'JetBrains Mono', monospace;

  /* Font Sizes (fluid clamp scale) */
  --text-xs:    clamp(0.70rem, 1vw,  0.75rem);
  --text-sm:    clamp(0.82rem, 1.2vw, 0.875rem);
  --text-base:  clamp(0.95rem, 1.5vw, 1rem);
  --text-md:    clamp(1.05rem, 1.8vw, 1.125rem);
  --text-lg:    clamp(1.15rem, 2vw,   1.25rem);
  --text-xl:    clamp(1.35rem, 2.5vw, 1.5rem);
  --text-2xl:   clamp(1.6rem,  3vw,   2rem);
  --text-3xl:   clamp(2rem,    4vw,   2.75rem);
  --text-4xl:   clamp(2.4rem,  5vw,   3.5rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Border Radius */
  --radius-sm:   4px;
  --radius-md:   8px;
  --radius-lg:   12px;
  --radius-xl:   18px;
  --radius-2xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 2px rgba(10, 102, 194, 0.06);
  --shadow-sm:  0 2px 8px rgba(10, 102, 194, 0.08);
  --shadow-md:  0 4px 16px rgba(10, 102, 194, 0.12);
  --shadow-lg:  0 8px 32px rgba(10, 102, 194, 0.16);
  --shadow-xl:  0 16px 48px rgba(10, 102, 194, 0.20);

  /* Transitions */
  --transition-fast:   0.15s ease;
  --transition-base:   0.25s ease;
  --transition-slow:   0.4s ease;

  /* Layout */
  --container-max:   1280px;
  --container-wide:  1440px;
  --container-narrow: 860px;
  --header-height:   68px;
  --sidebar-width:   300px;
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-md); }

p {
  margin-bottom: var(--space-4);
  color: var(--color-text-secondary);
  line-height: 1.75;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-dark);
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  padding-left: var(--space-6);
}

li {
  margin-bottom: var(--space-2);
  color: var(--color-text-secondary);
}

strong { font-weight: 700; color: var(--color-text); }
em { font-style: italic; }

hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: var(--space-8) 0;
}

/* --------------------------------------------------------------------------
   3. LAYOUT CONTAINERS
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--wide {
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

.container--narrow {
  max-width: var(--container-narrow);
  margin-inline: auto;
  padding-inline: var(--space-6);
}

/* Main content + sidebar layout */
.layout-with-sidebar {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--space-8);
  align-items: start;
}

.layout-main { min-width: 0; }

/* --------------------------------------------------------------------------
   4. HEADER
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  height: var(--header-height);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: var(--space-6);
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  flex-shrink: 0;
}

.site-logo__icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.site-logo__text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.03em;
}

.site-logo__text span {
  color: var(--color-accent);
}

/* Header Search */
.header-search {
  flex: 1;
  max-width: 480px;
  position: relative;
}

.header-search__input {
  width: 100%;
  height: 42px;
  padding: 0 var(--space-4) 0 var(--space-10);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  background: var(--color-bg);
  color: var(--color-text);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.header-search__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.12);
  background: var(--color-white);
}

.header-search__icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
  width: 18px;
  height: 18px;
}

/* Header Nav */
.header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  list-style: none;
  padding: 0;
  margin: 0;
}

.header-nav a {
  display: flex;
  align-items: center;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.header-nav a:hover {
  background: var(--color-primary-pale);
  color: var(--color-primary);
  text-decoration: none;
}

.header-nav a.active {
  color: var(--color-primary);
  background: var(--color-primary-pale);
}

/* Post a Job CTA Button */
.btn-post-job {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-5);
  background: var(--color-primary);
  color: var(--color-white) !important;
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-post-job:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* Mobile menu toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--color-text);
}

/* --------------------------------------------------------------------------
   5. NAVIGATION / MEGA MENU
   -------------------------------------------------------------------------- */
.category-nav {
  background: var(--color-primary-dark);
  border-bottom: 2px solid var(--color-primary);
}

.category-nav__list {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
  gap: var(--space-1);
}

.category-nav__list::-webkit-scrollbar { display: none; }

.category-nav__item {
  flex-shrink: 0;
}

.category-nav__item a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  color: rgba(255,255,255,0.85);
  font-size: var(--text-sm);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

.category-nav__item a:hover,
.category-nav__item a.active {
  color: var(--color-white);
  border-bottom-color: var(--color-accent);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   6. HERO / SEARCH SECTION
   -------------------------------------------------------------------------- */
.hero {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 55%, var(--color-primary-light) 100%);
  padding: var(--space-16) 0 var(--space-12);
  position: relative;
  overflow: hidden;
}

/* Decorative background shapes */
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 420px;
  height: 420px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 320px;
  height: 320px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  pointer-events: none;
}

.hero__content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-white);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: var(--space-5);
}

.hero__title {
  font-size: var(--text-4xl);
  color: var(--color-white);
  font-weight: 800;
  max-width: 720px;
  margin: 0 auto var(--space-4);
  letter-spacing: -0.03em;
}

.hero__title .highlight {
  color: var(--color-accent);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.80);
  max-width: 580px;
  margin: 0 auto var(--space-8);
  font-weight: 400;
}

/* Search Box */
.search-box {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  display: flex;
  gap: var(--space-3);
  max-width: 760px;
  margin: 0 auto var(--space-6);
  box-shadow: var(--shadow-xl);
}

.search-box__field {
  flex: 1;
  position: relative;
}

.search-box__input {
  width: 100%;
  height: 52px;
  padding: 0 var(--space-4) 0 var(--space-10);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.search-box__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(10, 102, 194, 0.1);
  background: var(--color-white);
}

.search-box__input::placeholder {
  color: var(--color-text-muted);
}

.search-box__icon {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
  width: 20px;
  height: 20px;
}

/* Search Button */
.btn-search {
  height: 52px;
  padding: 0 var(--space-8);
  background: var(--color-primary);
  color: var(--color-white);
  border: none;
  border-radius: var(--radius-lg);
  font-size: var(--text-base);
  font-weight: 700;
  font-family: var(--font-body);
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}

.btn-search:hover {
  background: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn-search:active {
  transform: translateY(0);
}

/* Hero stats */
.hero__stats {
  display: flex;
  justify-content: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  margin-top: var(--space-6);
}

.hero__stat {
  text-align: center;
  color: var(--color-white);
}

.hero__stat-number {
  display: block;
  font-size: var(--text-2xl);
  font-weight: 800;
  font-family: var(--font-display);
  color: var(--color-accent);
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--space-1);
}

/* --------------------------------------------------------------------------
   7. AD SLOTS
   CLS FIX: Every slot has an explicit height reservation BEFORE AdSense loads.
   This prevents layout shift (CLS) which was scoring 0.399 on desktop.
   Use height + overflow:hidden — NOT min-height alone — so the space is
   always claimed even when ads are blocked or slow.
   -------------------------------------------------------------------------- */

/* Base — shared by all ad slots */
.ad-slot {
  display: block;
  width: 100%;
  text-align: center;
  overflow: hidden;
  background: var(--color-surface-alt);
  position: relative;
  /* contain:layout stops ad reflow propagating up the DOM tree */
  contain: layout;
}

/* "Advertisement" label — positioned absolutely so it doesn't affect height */
.ad-slot::before {
  content: 'Advertisement';
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-body);
  white-space: nowrap;
  pointer-events: none;
}

/* ── HEADER leaderboard: 728x90 → reserve 90px + label padding ── */
.ad-slot--header {
  height: 110px;          /* 90px ad + 20px label/padding — explicit, not min */
  background: var(--color-surface-alt);
  border-bottom: 1px solid var(--color-border-light);
}

/* ── PRE-SEARCH: responsive rectangle, reserve 100px ── */
.ad-slot--pre-search {
  height: 100px;
  margin: var(--space-6) auto;
  max-width: 760px;
}

/* ── POST-SEARCH: same ── */
.ad-slot--post-search {
  height: 100px;
  margin: var(--space-6) auto var(--space-8);
  max-width: 760px;
}

/* ── MIDROLL: reserve 120px (label + 100px ad) ── */
.ad-slot--midroll {
  height: 120px;
  margin: var(--space-10) 0;
  border-top: 1px solid var(--color-border-light);
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-surface-alt);
}

/* ── SIDEBAR: reserve 280px (single rectangle 300x250 + label) ──
   Previous value of 610px was the main desktop CLS culprit.
   AdSense fills what it can; we don't over-reserve. ── */
.ad-slot--sidebar {
  position: sticky;
  top: calc(var(--header-height) + var(--space-4));
  height: 280px;
  margin-bottom: var(--space-6);
  overflow: hidden;
}

/* ── FOOTER leaderboard: 728x90 ── */
.ad-slot--footer {
  height: 110px;
  margin: var(--space-8) 0 0;
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-border-light);
}

/* ── IN-FEED native: shorter reservation ── */
.ad-slot--in-feed {
  height: 100px;
  margin: var(--space-6) 0;
}

/* AdSense responsive unit wrapper */
.adsense-unit {
  display: block;
  min-width: 280px;
}

/* --------------------------------------------------------------------------
   8. BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  text-decoration: none;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

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

.btn--primary:hover {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.btn--secondary {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--secondary:hover {
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
  text-decoration: none;
}

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

.btn--accent:hover {
  background: var(--color-accent-dark);
  border-color: var(--color-accent-dark);
  color: var(--color-white);
  text-decoration: none;
  transform: translateY(-1px);
}

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

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

.btn--lg {
  padding: var(--space-4) var(--space-8);
  font-size: var(--text-base);
  border-radius: var(--radius-lg);
}

.btn--sm {
  padding: var(--space-2) var(--space-4);
  font-size: var(--text-xs);
}

/* Apply Now - high-conversion CTA */
.btn-apply {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  color: var(--color-white) !important;
  border-radius: var(--radius-lg);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none !important;
  transition: all var(--transition-fast);
  box-shadow: 0 2px 8px rgba(10, 102, 194, 0.3);
  border: none;
  cursor: pointer;
}

.btn-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(10, 102, 194, 0.4);
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
}

/* --------------------------------------------------------------------------
   9. JOB CARDS
   -------------------------------------------------------------------------- */
.job-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5) var(--space-6);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-4);
  align-items: start;
  transition: box-shadow var(--transition-base), transform var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
}

.job-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
  transition: background var(--transition-fast);
}

.job-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: var(--color-primary-pale);
}

.job-card:hover::before {
  background: var(--color-primary);
}

/* Featured badge */
.job-card--featured {
  border-color: var(--color-primary-pale);
  background: linear-gradient(to right, rgba(10,102,194,0.03), var(--color-white));
}

.job-card--featured::before {
  background: var(--color-primary);
}

/* Job card company logo */
.job-card__logo {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  object-fit: contain;
  background: var(--color-surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  overflow: hidden;
  flex-shrink: 0;
}

.job-card__body { min-width: 0; }

.job-card__title {
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-display);
  margin-bottom: var(--space-1);
  display: block;
  text-decoration: none;
}

.job-card__title:hover {
  color: var(--color-primary);
  text-decoration: none;
}

.job-card__company {
  font-size: var(--text-sm);
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: var(--space-2);
  display: block;
}

.job-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.job-card__meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.job-card__meta-item svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.job-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.job-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px var(--space-3);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 600;
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
  text-decoration: none;
  transition: background var(--transition-fast);
}

.job-tag:hover {
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
}

.job-tag--remote { background: #e6f7ef; color: #00693e; }
.job-tag--part-time { background: #fff3e0; color: #b45309; }
.job-tag--full-time { background: var(--color-primary-pale); color: var(--color-primary-dark); }
.job-tag--urgent { background: #fde8e8; color: #c53030; }

.job-card__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: flex-end;
  flex-shrink: 0;
}

.job-card__salary {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-success);
  white-space: nowrap;
}

.job-card__posted {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   10. JOB GRID / LIST
   -------------------------------------------------------------------------- */
.jobs-grid {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.jobs-grid--2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}

/* --------------------------------------------------------------------------
   11. CATEGORY CARDS
   -------------------------------------------------------------------------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
}

.category-card {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  text-align: center;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  transition: all var(--transition-base);
}

.category-card:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  text-decoration: none;
}

.category-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  background: var(--color-primary-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: background var(--transition-fast);
}

.category-card:hover .category-card__icon {
  background: var(--color-primary);
}

.category-card__title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text);
  font-family: var(--font-display);
}

.category-card__count {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* --------------------------------------------------------------------------
   12. SECTION HEADINGS
   -------------------------------------------------------------------------- */
.section {
  padding: var(--space-16) 0;
}

.section--sm { padding: var(--space-10) 0; }
.section--lg { padding: var(--space-24) 0; }
.section--alt { background: var(--color-surface-alt); }
.section--dark {
  background: var(--color-primary-dark);
  color: var(--color-white);
}

.section-header {
  margin-bottom: var(--space-10);
  text-align: center;
}

.section-header--left { text-align: left; }

.section-eyebrow {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: var(--space-3);
  padding: var(--space-1) var(--space-3);
  background: var(--color-primary-pale);
  border-radius: var(--radius-full);
}

.section-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  margin-bottom: var(--space-3);
}

.section-desc {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin-inline: auto;
}

.section-header--left .section-desc { margin-inline: 0; }

/* View all link */
.section-header__action {
  margin-top: var(--space-3);
}

/* --------------------------------------------------------------------------
   13. BREADCRUMB
   -------------------------------------------------------------------------- */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  list-style: none;
  margin: 0;
}

.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: 0;
}

.breadcrumb__item a {
  color: var(--color-text-muted);
  text-decoration: none;
}

.breadcrumb__item a:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.breadcrumb__separator {
  color: var(--color-border);
}

.breadcrumb__item--current {
  color: var(--color-text-secondary);
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   14. FAQ ACCORDION
   -------------------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 860px;
  margin-inline: auto;
}

.faq-item {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition-fast);
}

.faq-item.open {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: var(--space-5) var(--space-6);
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  font-family: var(--font-display);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.faq-question:hover { color: var(--color-primary); }

.faq-question__icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-primary-pale);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  transition: transform var(--transition-base), background var(--transition-fast);
}

.faq-item.open .faq-question__icon {
  transform: rotate(45deg);
  background: var(--color-primary);
  color: var(--color-white);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-slow), padding var(--transition-fast);
  padding: 0 var(--space-6);
}

.faq-answer.open {
  max-height: 500px;
  padding: 0 var(--space-6) var(--space-5);
}

.faq-answer p {
  font-size: var(--text-base);
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   15. SIDEBAR WIDGETS
   -------------------------------------------------------------------------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

/* --------------------------------------------------------------------------
   15. SIDEBAR WIDGETS
   -------------------------------------------------------------------------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.widget {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  /* NO overflow:hidden here — it clips emoji flags on all browsers */
  min-width: 0;
}

/* Round only the header corners to match widget border-radius */
.widget__header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--color-border-light);
  background: var(--color-surface-alt);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.widget__title {
  font-size: var(--text-sm);
  font-weight: 700;
  font-family: var(--font-display);
  color: var(--color-text);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.widget__body {
  /* No overflow:hidden — let emoji breathe */
  padding: 0;
}

/* Round bottom corners of last list item to match widget */
.widget-link-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.widget-link-list li {
  margin: 0;
  border-bottom: 1px solid var(--color-border-light);
}

.widget-link-list li:last-child {
  border-bottom: none;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  overflow: hidden; /* only clip last item's bottom corners */
}

.widget-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* 20px left padding gives emoji full room to render without clipping */
  padding: var(--space-3) var(--space-5) var(--space-3) 20px;
  font-size: var(--text-sm);
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: color var(--transition-fast), background var(--transition-fast);
  gap: var(--space-3);
  /* Do NOT use overflow:hidden or white-space:nowrap here —
     these were the direct cause of emoji clipping */
  min-width: 0;
}

.widget-link-list a:hover {
  color: var(--color-primary);
  background: var(--color-primary-pale);
  text-decoration: none;
}

/* Link text label — allow wrapping, never truncate emoji */
.widget-link-list a .link-label {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.widget-link-list a span {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  background: var(--color-surface-alt);
  padding: 2px var(--space-2);
  border-radius: var(--radius-full);
  flex-shrink: 0;
  white-space: nowrap;
  margin-left: auto;
}

/* Sidebar quick-search inputs — smaller than hero search */
.sidebar .search-box__input {
  height: 42px;
  padding: 0 var(--space-3);
  font-size: var(--text-sm);
}

/* --------------------------------------------------------------------------
   16. FOOTER
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--color-text);
  color: rgba(255,255,255,0.75);
  padding: var(--space-16) 0 0;
  margin-top: var(--space-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: var(--space-10);
  margin-bottom: var(--space-12);
}

.footer-brand {}

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  margin-bottom: var(--space-4);
}

.footer-logo__text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--color-white);
}

.footer-logo__text span { color: var(--color-accent); }

.footer-tagline {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
  margin-bottom: var(--space-5);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
}

.footer-social__link {
  width: 38px;
  height: 38px;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 1rem;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.footer-social__link:hover {
  background: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
}

.footer-col__title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-5);
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-links li { margin: 0; }

.footer-links a {
  color: rgba(255,255,255,0.65);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: var(--space-5) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-bottom__text {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  margin: 0;
}

.footer-bottom__links {
  display: flex;
  gap: var(--space-5);
  flex-wrap: wrap;
}

.footer-bottom__links a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.footer-bottom__links a:hover {
  color: var(--color-accent);
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   17. PAGINATION
   -------------------------------------------------------------------------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-8) 0;
  flex-wrap: wrap;
}

.pagination__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-secondary);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.pagination__btn:hover,
.pagination__btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
  text-decoration: none;
}

.pagination__btn--prev,
.pagination__btn--next {
  width: auto;
  padding: 0 var(--space-4);
  gap: var(--space-2);
}

/* --------------------------------------------------------------------------
   18. FILTERS / CHIPS
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border-light);
  margin-bottom: var(--space-6);
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1.5px solid var(--color-border);
  background: var(--color-white);
  color: var(--color-text-secondary);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition-fast);
}

.filter-chip:hover,
.filter-chip.active {
  border-color: var(--color-primary);
  background: var(--color-primary-pale);
  color: var(--color-primary-dark);
  text-decoration: none;
}

.filter-chip__count {
  background: var(--color-primary-pale);
  color: var(--color-primary);
  border-radius: var(--radius-full);
  padding: 0 var(--space-2);
  font-size: 10px;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   19. CONTENT / PROSE SECTIONS
   -------------------------------------------------------------------------- */
.prose {
  max-width: 860px;
}

.prose h2 {
  font-size: var(--text-2xl);
  margin: var(--space-10) 0 var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 2px solid var(--color-border-light);
  color: var(--color-text);
}

.prose h3 {
  font-size: var(--text-xl);
  margin: var(--space-8) 0 var(--space-3);
  color: var(--color-text);
}

.prose h4 {
  font-size: var(--text-lg);
  margin: var(--space-6) 0 var(--space-2);
  color: var(--color-text);
}

.prose ul li,
.prose ol li {
  margin-bottom: var(--space-3);
  font-size: var(--text-base);
  color: var(--color-text-secondary);
}

.prose blockquote {
  border-left: 4px solid var(--color-primary);
  padding: var(--space-4) var(--space-6);
  margin: var(--space-6) 0;
  background: var(--color-primary-pale);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.prose blockquote p {
  margin: 0;
  font-style: italic;
  font-size: var(--text-md);
  color: var(--color-primary-dark);
}

/* --------------------------------------------------------------------------
   20. STATS / COUNTER STRIPS
   -------------------------------------------------------------------------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: var(--space-10) 0;
}

.stats-strip__item { text-align: center; }

.stats-strip__number {
  display: block;
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--color-primary);
  font-family: var(--font-display);
  line-height: 1;
}

.stats-strip__label {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: var(--space-2);
}

/* --------------------------------------------------------------------------
   21. LOADING / SKELETON STATES
   -------------------------------------------------------------------------- */
@keyframes shimmer {
  0% { background-position: -600px 0; }
  100% { background-position: 600px 0; }
}

.skeleton {
  background: linear-gradient(90deg,
    var(--color-surface-alt) 25%,
    var(--color-border-light) 50%,
    var(--color-surface-alt) 75%);
  background-size: 600px 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton--text {
  height: 16px;
  margin-bottom: var(--space-2);
  width: 100%;
}

.skeleton--title {
  height: 24px;
  width: 70%;
  margin-bottom: var(--space-3);
}

.skeleton--card {
  height: 120px;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-4);
}

/* --------------------------------------------------------------------------
   22. TOAST / NOTIFICATION
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  pointer-events: none;
}

.toast {
  background: var(--color-text);
  color: var(--color-white);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 280px;
  max-width: 380px;
  pointer-events: auto;
  transform: translateX(120%);
  transition: transform var(--transition-base);
}

.toast.show { transform: translateX(0); }
.toast--success { border-left: 4px solid var(--color-success); }
.toast--error   { border-left: 4px solid var(--color-error); }
.toast--info    { border-left: 4px solid var(--color-primary); }

/* --------------------------------------------------------------------------
   23. UTILITY CLASSES
   -------------------------------------------------------------------------- */
.text-primary  { color: var(--color-primary); }
.text-accent   { color: var(--color-accent); }
.text-muted    { color: var(--color-text-muted); }
.text-success  { color: var(--color-success); }
.text-center   { text-align: center; }
.text-left     { text-align: left; }
.text-right    { text-align: right; }

.font-bold   { font-weight: 700; }
.font-display { font-family: var(--font-display); }

.bg-primary     { background: var(--color-primary); }
.bg-surface     { background: var(--color-surface); }
.bg-surface-alt { background: var(--color-surface-alt); }
.bg-white       { background: var(--color-white); }

.rounded-full { border-radius: var(--radius-full); }
.rounded-lg   { border-radius: var(--radius-lg); }

.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }

.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

.pt-8  { padding-top: var(--space-8); }
.pb-8  { padding-bottom: var(--space-8); }

.flex         { display: flex; }
.flex-wrap    { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }

.hidden    { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
   24. RESPONSIVE — TABLET (≤ 1024px)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr;
  }

  /* Sidebar ad: on tablet it drops below content.
     Reduce reserved height to 280px — same as desktop.
     Do NOT use min-height here or CLS spikes. */
  .ad-slot--sidebar {
    position: static;
    height: 280px;
    margin-bottom: var(--space-4);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-8);
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .jobs-grid--2col {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   25. RESPONSIVE — MOBILE (≤ 768px)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  :root {
    --header-height: 60px;
  }

  .container,
  .container--wide,
  .container--narrow {
    padding-inline: var(--space-4);
  }

  /* Header */
  .header-search { display: none; }

  .header-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-4);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    z-index: 999;
  }

  .header-nav.open { display: flex; }
  .menu-toggle { display: flex; }

  /* Hide post-a-job button on very small screens */
  .btn-post-job { display: none; }

  /* Hero */
  .hero { padding: var(--space-10) 0 var(--space-8); }

  .hero__title { font-size: var(--text-3xl); }

  .hero__subtitle { font-size: var(--text-base); }

  /* Search box stacks vertically */
  .search-box {
    flex-direction: column;
    padding: var(--space-3);
    gap: var(--space-3);
    border-radius: var(--radius-lg);
  }

  .search-box__input { height: 48px; }

  .btn-search {
    width: 100%;
    justify-content: center;
    height: 48px;
  }

  /* Hero stats — tighter on mobile */
  .hero__stats { gap: var(--space-4); }
  .hero__stat-number { font-size: var(--text-xl); }

  /* ── JOB CARDS — full mobile reflow ── */
  .job-card {
    /* Switch to full-width single column stack */
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-4);
  }

  /* Logo + title on same row */
  .job-card__top-row {
    display: flex;
    gap: var(--space-3);
    align-items: flex-start;
  }

  .job-card__logo {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
  }

  .job-card__body { width: 100%; }

  .job-card__title {
    font-size: var(--text-base);
    line-height: 1.3;
  }

  .job-card__meta {
    gap: var(--space-2);
  }

  .job-card__meta-item {
    font-size: 11px;
  }

  /* Actions row — salary left, button right */
  .job-card__actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--space-3);
    border-top: 1px solid var(--color-border-light);
    width: 100%;
    flex-wrap: wrap;
    gap: var(--space-2);
  }

  .job-card__salary {
    font-size: var(--text-sm);
  }

  .job-card__posted {
    display: none; /* hide on mobile to save space */
  }

  .btn-apply {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
  }

  /* Footer */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  /* Category grid */
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Stats */
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
  }

  /* Section padding */
  .section { padding: var(--space-10) 0; }
  .section--lg { padding: var(--space-16) 0; }

  /* Sidebar drops full width below main on mobile.
     Explicit height prevents CLS — do not use min-height. */
  .ad-slot--sidebar {
    position: static;
    height: 280px;
    margin-bottom: var(--space-4);
  }

  /* Header ad shorter on mobile — 320x50 is the mobile leaderboard */
  .ad-slot--header {
    height: 70px;
  }

  /* Pre/post search ads shorter on mobile */
  .ad-slot--pre-search,
  .ad-slot--post-search {
    height: 80px;
  }

  /* Widget body padding — prevent content hitting edges */
  .widget__body {
    padding: var(--space-3) var(--space-4);
  }

  /* Widget link list — more breathing room */
  .widget-link-list a {
    padding: var(--space-3) var(--space-2);
    font-size: var(--text-sm);
  }

  /* Newsletter bar */
  .newsletter-bar {
    grid-template-columns: 1fr;
    padding: var(--space-6) var(--space-4);
  }
  .newsletter-form { flex-direction: column; max-width: 100%; }
  .newsletter-input { width: 100%; }
  .newsletter-bar > div:last-child { display: none; } /* hide emoji on mobile */
}

/* --------------------------------------------------------------------------
   26. RESPONSIVE — SMALL MOBILE (≤ 480px)
   -------------------------------------------------------------------------- */
@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-3);
  }

  .filter-bar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-3);
  }

  .filter-chip { flex-shrink: 0; }

  .pagination__btn { width: 36px; height: 36px; }

  .hero__stat-number { font-size: var(--text-xl); }
}

/* --------------------------------------------------------------------------
   27. PRINT STYLES
   -------------------------------------------------------------------------- */
@media print {
  .site-header,
  .site-footer,
  .category-nav,
  .ad-slot,
  .sidebar {
    display: none !important;
  }

  body {
    background: white;
    color: black;
    font-size: 12pt;
  }

  .container { max-width: 100%; padding: 0; }

  a { color: black; text-decoration: underline; }

  .job-card {
    break-inside: avoid;
    border: 1px solid #ccc;
    margin-bottom: 12pt;
  }
}

/* --------------------------------------------------------------------------
   28. ACCESSIBILITY — REDUCED MOTION
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   29. PERFORMANCE — CONTENT VISIBILITY & CONTAIN
   content-visibility:auto tells the browser to skip rendering off-screen
   sections entirely until the user scrolls near them.
   contain-intrinsic-size gives the browser a size estimate so scroll
   position stays stable (prevents CLS from content popping in).
   -------------------------------------------------------------------------- */

/* Job cards — layout contain stops reflow propagating up */
.job-card {
  contain: layout style;
}

/* Below-fold page sections — skip rendering until near viewport */
.section--sm,
.section--lg,
.prose,
.faq-list,
.category-grid,
.stats-strip {
  content-visibility: auto;
  contain-intrinsic-size: 0 400px; /* estimated height — browser uses this for scroll */
}

/* Sidebar widgets — also off-screen on mobile */
.widget {
  content-visibility: auto;
  contain-intrinsic-size: 0 200px;
}

/* Footer — always below fold */
.site-footer {
  content-visibility: auto;
  contain-intrinsic-size: 0 500px;
}

/* --------------------------------------------------------------------------
   30. PERFORMANCE — FONT DISPLAY
   System font stack used before web fonts load.
   Prevents invisible text (FOIT) which hurts LCP.
   -------------------------------------------------------------------------- */
body {
  font-family: var(--font-body), system-ui, -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.site-logo__text,
.section-title,
.job-card__title,
.widget__title,
.footer-col__title {
  font-family: var(--font-display), system-ui, -apple-system, BlinkMacSystemFont,
               'Segoe UI', Roboto, sans-serif;
}

/* --------------------------------------------------------------------------
   END OF shared.css
   ========================================================================== */
