/* ===================================================================
   Workly — Modern Design System v2.0
   Lightweight, responsive, premium dark-first design
=================================================================== */

/* === Fonts === */
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400;font-display:optional;src:url('../fonts/plus-jakarta-sans-400-latin.woff2')format('woff2')}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:600;font-display:optional;src:url('../fonts/plus-jakarta-sans-600-latin.woff2')format('woff2')}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:800;font-display:optional;src:url('../fonts/plus-jakarta-sans-800-latin.woff2')format('woff2')}

/* === Modern Premium Design Tokens === */
:root {
  /* Layout */
  --gap: 24px;
  --nav-width: 1080px;
  --main-width: 840px;
  --header-height: 64px;
  --radius: 14px;
  --radius-sm: 8px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-pill: 9999px;

  /* Dark theme colors — Futuristic Space Slate */
  --bg: #07090e;
  --bg-gradient: radial-gradient(1200px 700px at 50% -80px, rgba(16,185,129,0.14), rgba(6,182,212,0.06) 40%, transparent 75%),
                 radial-gradient(900px 600px at 85% 15%, rgba(99,102,241,0.06), transparent 60%);
  --surface: rgba(15,19,30,0.72);
  --surface-solid: #0f131e;
  --surface-2: rgba(24,31,48,0.68);
  --border: rgba(255,255,255,0.08);
  --border-hover: rgba(52,211,153,0.38);
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #475569;
  --accent: #10b981;
  --accent-light: #34d399;
  --accent-dim: rgba(16,185,129,0.12);
  --accent-border: rgba(52,211,153,0.3);
  --salary-color: #34d399;
  --salary-bg: rgba(16,185,129,0.1);
  --salary-border: rgba(52,211,153,0.25);
  --blue: #38bdf8;
  --purple: #a855f7;
  --amber: #fbbf24;
  --red: #f87171;

  /* Layered Glass Shadows */
  --shadow-sm: 0 2px 6px rgba(0,0,0,0.35);
  --shadow: 0 4px 20px -2px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05);
  --shadow-lg: 0 24px 48px -12px rgba(0,0,0,0.8), 0 0 0 1px rgba(255,255,255,0.08);
  --shadow-hover: 0 20px 40px -12px rgba(0,0,0,0.75), 0 0 25px rgba(16,185,129,0.16), 0 0 0 1px rgba(52,211,153,0.32);
  --glow: 0 0 25px rgba(16,185,129,0.28);
}

/* === Light Mode — Apple & Stripe Clean Glass === */
body.light {
  --bg: #f8fafc;
  --bg-gradient: radial-gradient(1200px 650px at 50% -100px, rgba(16,185,129,0.09), rgba(14,165,233,0.05) 45%, transparent 70%),
                 radial-gradient(800px 500px at 90% 10%, rgba(99,102,241,0.035), transparent 60%);
  --surface: rgba(255,255,255,0.86);
  --surface-solid: #ffffff;
  --surface-2: rgba(241,245,249,0.85);
  --border: rgba(226,232,240,0.85);
  --border-hover: rgba(16,185,129,0.42);
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --accent: #059669;
  --accent-light: #10b981;
  --accent-dim: rgba(16,185,129,0.08);
  --accent-border: rgba(16,185,129,0.25);
  --salary-color: #047857;
  --salary-bg: rgba(16,185,129,0.1);
  --salary-border: rgba(16,185,129,0.24);
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.04);
  --shadow: 0 4px 20px -2px rgba(15,23,42,0.06), 0 1px 3px rgba(15,23,42,0.03);
  --shadow-lg: 0 25px 50px -12px rgba(15,23,42,0.12);
  --shadow-hover: 0 20px 40px -10px rgba(16,185,129,0.14), 0 0 0 1px rgba(16,185,129,0.35);
  --glow: 0 0 25px rgba(5,150,105,0.18);
}

/* === Reset === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}
body {
  background-color: var(--bg);
  background-image: var(--bg-gradient);
  background-attachment: fixed;
  background-repeat: no-repeat;
  color: var(--text-primary);
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  letter-spacing: -0.012em;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
a { color: var(--accent); text-decoration: none; transition: color .15s; }
a:hover { color: var(--accent-light); }
img { max-width: 100%; height: auto; display: block; }
p { margin-bottom: 1.15rem; }
p:last-child { margin-bottom: 0; }
ul, ol { padding-left: 1.5rem; margin-bottom: 1rem; }
li { margin-bottom: .3rem; }
h1,h2,h3,h4,h5,h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

/* === Layout === */
.main { flex: 1; padding: var(--gap) 0 calc(var(--gap) * 2); }
.container { max-width: var(--main-width); margin: 0 auto; padding: 0 var(--gap); width: 100%; }
.container-wide { max-width: var(--nav-width); margin: 0 auto; padding: 0 var(--gap); width: 100%; }

/* ===================================================================
   HEADER / NAVIGATION
=================================================================== */
.header {
  background: rgba(7,9,14,0.78);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background-color .3s, border-color .3s;
}
body.light .header {
  background: rgba(255,255,255,0.82);
  border-bottom-color: rgba(226,232,240,0.85);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  max-width: var(--nav-width);
  margin: 0 auto;
  padding: 0 var(--gap);
  gap: 1rem;
}

/* Logo */
.logo a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}
.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg,#1a1d26,#0d0f14);
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35), 0 0 12px rgba(16,185,129,0.15);
  transition: transform .2s, box-shadow .2s;
  flex-shrink: 0;
}
body.light .brand-icon {
  background: #fff;
  border-color: rgba(16,185,129,0.2);
  box-shadow: 0 2px 8px rgba(16,185,129,0.12);
}
.logo a:hover .brand-icon { transform: translateY(-1px) scale(1.05); box-shadow: 0 6px 16px rgba(16,185,129,0.3); }
.brand-name { display: inline-flex; align-items: baseline; }
.brand-name-work { color: var(--text-primary); }
.brand-name-ly {
  background: linear-gradient(135deg,#34d399,#10b981);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.logo-dot { color: #34d399; -webkit-text-fill-color: #34d399; }

/* Nav menu */
.nav-right { display: flex; align-items: center; gap: 0.5rem; }
#menu {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 0.25rem;
}
#menu li a {
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all .15s;
  white-space: nowrap;
}
#menu li a:hover { color: var(--text-primary); background: var(--surface-2); }
#menu li a.active { color: var(--text-primary); background: var(--surface-2); font-weight: 600; }

/* Resources dropdown */
.nav-resources-item { position: relative; }
.nav-resources-toggle { cursor: pointer; }
.nav-resources-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  min-width: 210px;
  padding: 0.4rem;
  z-index: 200;
  box-shadow: var(--shadow-lg);
  list-style: none;
}
.nav-resources-dropdown li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 0.875rem;
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  transition: background .12s;
  white-space: nowrap;
}
.nav-resources-dropdown li a:hover { background: var(--surface-2); color: var(--accent); }
.nav-resources-item:hover .nav-resources-dropdown,
.nav-resources-item:focus-within .nav-resources-dropdown { display: block; }

/* Theme toggle */
.logo-switches { display: flex; align-items: center; }
#theme-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 7px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s, background .15s, transform .2s;
}
#theme-toggle:hover { color: var(--text-primary); background: var(--surface-2); transform: rotate(12deg); }

/* Mobile hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  padding: 8px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color .15s, background .15s;
}
.nav-hamburger:hover { color: var(--text-primary); background: var(--surface-2); }
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  transition: transform .25s, opacity .25s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile nav drawer */
.mobile-nav {
  display: none;
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 1rem var(--gap);
  flex-direction: column;
  gap: 0.25rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: all .15s;
}
.mobile-nav a:hover { color: var(--text-primary); background: var(--surface-2); }
.mobile-nav a.active { color: var(--accent); background: var(--accent-dim); font-weight: 600; }
.mobile-nav-divider { height: 1px; background: var(--border); margin: 0.5rem 0; }

/* ===================================================================
   HOMEPAGE HERO
=================================================================== */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem 2rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 14px;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 1.25rem;
}
body.light .hero-badge {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.hero-badge-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: badgePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
body.light .hero-badge-pulse {
  background: #047857;
}
@keyframes badgePulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: .4; transform: scale(0.8); }
}
.hero-title-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 1rem;
}
.hero-brand-title {
  font-size: clamp(2.8rem, 6vw, 4rem);
  font-weight: 850;
  margin: 0;
  letter-spacing: -0.05em;
  line-height: 1;
}
.hero-brand-title .brand-title-work {
  background: linear-gradient(180deg,#fff 30%,#94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
body.light .hero-brand-title .brand-title-work {
  background: linear-gradient(180deg,#0f172a 25%,#334155 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-brand-title .brand-title-ly {
  background: linear-gradient(135deg,#34d399,#10b981,#059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-brand-title .logo-dot { color: #34d399; -webkit-text-fill-color: #34d399; }
.hero-pro-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 0.675rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  background: var(--accent-dim);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  align-self: center;
  transform: translateY(-6px);
}
body.light .hero-pro-chip {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #065f46;
}
.hero-lead-h2 {
  font-size: clamp(1.2rem, 2.5vw, 1.65rem);
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
  letter-spacing: -0.025em;
  line-height: 1.35;
  max-width: 660px;
}
.lead-highlight {
  background: linear-gradient(135deg,#38bdf8,#34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}
body.light .lead-highlight {
  background: linear-gradient(135deg,#0284c7,#059669);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.profile .subtitle {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 auto 1.75rem;
  line-height: 1.65;
}
.profile-buttons {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 1.75rem;
}

/* ===================================================================
   BUTTONS & PILLS
=================================================================== */
.button-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: all .2s;
  text-decoration: none !important;
  white-space: nowrap;
}
.button-link:hover {
  color: var(--text-primary);
  background: var(--surface-2);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.button-link.active {
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #10b981;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(16,185,129,0.38);
}
body.light .button-link {
  color: #334155;
  background: rgba(255,255,255,0.9);
  border-color: #e2e8f0;
}
body.light .button-link.active {
  background: linear-gradient(135deg, #059669, #047857) !important;
  border-color: #059669 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 16px rgba(5,150,105,0.3);
}

.btn-papermod-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff !important;
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(16,185,129,0.35), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform .2s cubic-bezier(0.16,1,0.3,1), box-shadow .2s cubic-bezier(0.16,1,0.3,1), filter .2s;
  text-decoration: none !important;
  position: relative;
  overflow: hidden;
}
.btn-papermod-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(16,185,129,0.5), inset 0 1px 0 rgba(255,255,255,0.35);
  filter: brightness(1.04);
  color: #ffffff !important;
}
.btn-papermod-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(16,185,129,0.3);
}
.btn-papermod-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 22px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  color: var(--text-primary) !important;
  font-size: 0.9rem;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform .2s, border-color .2s, background-color .2s, box-shadow .2s;
  text-decoration: none !important;
  box-shadow: var(--shadow);
}
.btn-papermod-secondary:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  color: var(--text-primary) !important;
}
body.light .btn-papermod-secondary {
  background: #ffffff;
  border-color: #cbd5e1;
  color: #0f172a !important;
  box-shadow: 0 1px 4px rgba(15,23,42,0.06);
}
body.light .btn-papermod-secondary:hover {
  background: #f8fafc;
  border-color: #10b981;
  color: #047857 !important;
}
.post-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin: 2rem 0;
}

.searchbox { width: 100%; max-width: 660px; margin: 0 auto 1.35rem; }
.searchbox form {
  display: flex;
  align-items: center;
  background: var(--surface);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px 10px 8px 18px;
  gap: 12px;
  box-shadow: var(--shadow);
  transition: border-color .25s, box-shadow .25s, transform .25s;
}
.searchbox form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-dim), var(--shadow);
  transform: translateY(-1px);
}
.searchbox-input-wrap { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; }
.searchbox input[type="text"] {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  padding: 8px 4px;
  outline: none;
  font-family: inherit;
  font-weight: 500;
}
.searchbox input[type="text"]::placeholder { color: var(--text-secondary); opacity: .85; }
.searchbox-controls { display: flex; align-items: center; gap: 8px; }
.searchbox select {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 10px;
  outline: none;
  cursor: pointer;
  transition: border-color .15s;
  font-family: inherit;
}
.searchbox select:focus { border-color: var(--accent); }
.searchbox button {
  background: linear-gradient(135deg,#10b981,#059669);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  padding: 9px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 0.875rem;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16,185,129,0.3);
  transition: transform .15s, box-shadow .15s;
  white-space: nowrap;
  font-family: inherit;
}
.searchbox button:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(16,185,129,0.45); }

/* ===================================================================
   JOB CARDS / POST ENTRIES
=================================================================== */
.posts-list { display: flex; flex-direction: column; gap: 16px; }
.post-entry {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 26px;
  transition: transform .25s cubic-bezier(0.16,1,0.3,1), box-shadow .25s cubic-bezier(0.16,1,0.3,1), border-color .25s;
  display: block;
  position: relative;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.post-entry::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  pointer-events: none;
}
body.light .post-entry::before {
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.22), transparent);
}
.post-entry:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: var(--border-hover);
}
.entry-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 0.7rem;
}
.entry-header h2 { font-size: 1.25rem; font-weight: 750; margin: 0; line-height: 1.35; letter-spacing: -0.025em; }
.entry-header h2 a { color: var(--text-primary); }
.entry-header h2 a:hover { color: var(--accent); }
.entry-salary {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--salary-color);
  white-space: nowrap;
  background: var(--salary-bg);
  backdrop-filter: blur(8px);
  padding: 5px 13px;
  border-radius: 9999px;
  border: 1px solid var(--salary-border);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  box-shadow: 0 2px 8px rgba(16,185,129,0.1);
  letter-spacing: -0.01em;
  font-feature-settings: 'tnum';
  flex-shrink: 0;
}
.entry-subhead {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 0.86rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.entry-company-avatar {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.entry-company { font-weight: 650; color: var(--text-primary); }
.entry-company:hover { color: var(--accent); }
.dot-sep { color: var(--text-muted); opacity: .7; }
body.light .dot-sep { color: #64748b; opacity: 1; }
.entry-content { color: var(--text-secondary); font-size: 0.885rem; line-height: 1.62; margin-bottom: 1.15rem; }
body.light .entry-content { color: #334155; }
.entry-footer { display: flex; align-items: center; gap: 8px; font-size: 0.78rem; color: var(--text-secondary); flex-wrap: wrap; }
body.light .entry-footer { color: #475569; }

/* Badges */
.badge-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.73rem;
  font-weight: 650;
  padding: 3px 10px;
  border-radius: 9999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-secondary);
  white-space: nowrap;
  backdrop-filter: blur(6px);
}
body.light .badge-tag {
  color: #334155;
  background: #f1f5f9;
  border-color: #e2e8f0;
}
.badge-tag.badge-verified {
  color: var(--accent-light);
  border-color: var(--accent-border);
  background: var(--accent-dim);
}
body.light .badge-tag.badge-verified {
  color: #065f46;
  border-color: #a7f3d0;
  background: #ecfdf5;
}
.badge-tag.badge-region {
  color: #c084fc;
  border-color: rgba(168,85,247,0.28);
  background: rgba(168,85,247,0.1);
}
body.light .badge-tag.badge-region {
  color: #581c87;
  border-color: #ddd6fe;
  background: #f5f3ff;
}
.badge-tag.badge-remote {
  color: #34d399;
  border-color: rgba(52,211,153,0.32);
  background: rgba(52,211,153,0.12);
}
body.light .badge-tag.badge-remote {
  color: #065f46;
  border-color: #a7f3d0;
  background: #ecfdf5;
  font-weight: 650;
}

/* ===================================================================
   SECTION HEAD
=================================================================== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 2.75rem 0 1.35rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}
.section-head h2 { font-size: 1.25rem; font-weight: 750; margin: 0; color: var(--text-primary); letter-spacing: -0.02em; }
.section-head a { font-size: 0.86rem; color: var(--text-secondary); font-weight: 600; }
.section-head a:hover { color: var(--accent); }

/* ===================================================================
   HUB TILES (Browse by Location/Category)
=================================================================== */
.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
  margin-bottom: 2.75rem;
}
.hub-tile {
  display: flex;
  align-items: center;
  box-sizing: border-box;
  gap: 12px;
  padding: 14px 16px;
  min-height: 48px;
  background: var(--surface);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all .2s cubic-bezier(0.16,1,0.3,1);
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.hub-tile:hover {
  border-color: var(--border-hover);
  background: var(--surface-2);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.hub-tile-flag { font-size: 1.2rem; flex-shrink: 0; line-height: 1; }
.hub-tile-name {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

/* ===================================================================
   FILTER BAR
=================================================================== */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.5rem; align-items: center; }
.filter-pills { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  transition: all .15s;
  cursor: pointer;
}
.filter-pill:hover { background: var(--surface-2); border-color: var(--border-hover); color: var(--text-primary); }
.filter-pill.active { background: var(--accent); border-color: var(--accent); color: #fff; }
body.light .filter-pill { color: #334155; background: #ffffff; border-color: #cbd5e1; }
body.light .filter-pill.active { background: #065f46; border-color: #065f46; color: #fff !important; }
.filter-pill-clear { background: rgba(220,38,38,0.1); border-color: rgba(220,38,38,0.3); color: #fca5a5; }
body.light .filter-pill-clear { color: #991b1b; }
.filter-pill-clear:hover { background: rgba(220,38,38,0.18); }

/* ===================================================================
   PAGINATION
=================================================================== */
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.875rem;
}
.pagination a {
  color: var(--text-secondary);
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  transition: all .15s;
  font-weight: 600;
}
.pagination a:hover { color: var(--text-primary); border-color: var(--border-hover); background: var(--surface-2); }
.pagination-info { color: var(--text-secondary); font-size: 0.84rem; }

/* ===================================================================
   BREADCRUMBS
=================================================================== */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.breadcrumbs a { color: var(--text-secondary); }
.breadcrumbs a:hover { color: var(--text-primary); }
.breadcrumbs .sep { opacity: .4; }
.breadcrumbs .current { color: var(--text-primary); font-weight: 500; }

/* ===================================================================
   POST / JOB DETAIL
=================================================================== */
.post-single { max-width: var(--main-width); margin: 0 auto; }
.post-header { margin-bottom: 2rem; }
.post-title { font-size: 2rem; font-weight: 800; color: var(--text-primary); line-height: 1.25; margin-bottom: 0.75rem; letter-spacing: -0.03em; }
.post-meta { display: flex; align-items: center; gap: 8px; color: var(--text-secondary); font-size: 0.875rem; flex-wrap: wrap; margin-bottom: 1rem; }
.post-meta a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: 3px; }
.post-actions { display: flex; gap: 1rem; align-items: center; margin: 2rem 0; flex-wrap: wrap; }
.post-content { color: var(--text-secondary); font-size: 1rem; line-height: 1.7; }
.post-content h2 { font-size: 1.45rem; margin-top: 2rem; margin-bottom: 0.9rem; padding-bottom: 0.4rem; border-bottom: 1px solid var(--border); color: var(--text-primary); }
.post-content h3 { font-size: 1.2rem; margin-top: 1.65rem; margin-bottom: 0.65rem; color: var(--text-primary); }
.post-content strong { color: var(--text-primary); }
.post-content p a, .post-content li a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}

/* Callout */
.papermod-callout {
  background: linear-gradient(135deg, rgba(16,185,129,0.08) 0%, rgba(6,182,212,0.04) 100%);
  backdrop-filter: blur(14px);
  border: 1px solid var(--accent-border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.35rem 1.65rem;
  margin: 1.75rem 0;
  box-shadow: 0 4px 20px -2px rgba(16,185,129,0.08);
}
body.light .papermod-callout {
  background: linear-gradient(135deg, #ecfdf5 0%, #f0fdfa 100%);
  border-color: #a7f3d0;
  border-left-color: #059669;
}
.papermod-callout-title { font-size: 1.05rem; font-weight: 750; color: var(--text-primary); margin-bottom: 0.5rem; display: flex; align-items: center; gap: 10px; line-height: 1.4; }
.papermod-callout-desc { color: var(--text-secondary); font-size: 0.92rem; margin: 0; line-height: 1.6; }

/* Job specs */
.job-specs-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.75rem;
  margin: 1.75rem 0 2rem;
  box-shadow: var(--shadow);
}
.job-specs-head { font-size: 0.95rem; font-weight: 750; color: var(--text-primary); margin-bottom: 1.15rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 8px; }
.job-specs-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 0.85rem 1.75rem; }
.job-spec-row { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 0.5rem; border-bottom: 1px dashed var(--border); font-size: 0.885rem; gap: 1rem; }
.spec-k { color: var(--text-secondary); font-weight: 500; white-space: nowrap; flex-shrink: 0; }
.spec-v { color: var(--text-primary); font-weight: 650; text-align: right; word-break: break-word; }

/* Job overview expand */
.job-overview-card { background: var(--surface); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.85rem 2.2rem 2.2rem; margin: 2rem 0; box-shadow: var(--shadow); }
body.light .job-overview-card { background: rgba(255,255,255,0.92); border-color: #e2e8f0; }
.job-overview-head { display: flex; align-items: center; gap: 12px; margin-bottom: 1.35rem; }
.job-overview-icon { font-size: 1.4rem; flex-shrink: 0; }
.job-overview-title { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); margin: 0; letter-spacing: -0.025em; }
.job-overview-content { position: relative; max-height: 380px; overflow: hidden; transition: max-height .4s cubic-bezier(0.16,1,0.3,1); }
.job-overview-content.is-expanded { max-height: none; }
.job-overview-fade { position: absolute; bottom: 0; left: 0; right: 0; height: 140px; pointer-events: none; background: linear-gradient(to bottom,rgba(15,19,30,0),rgba(15,19,30,1)); }
body.light .job-overview-fade { background: linear-gradient(to bottom,rgba(255,255,255,0),rgba(255,255,255,1)); }
.job-overview-content.is-expanded .job-overview-fade { display: none; }
.job-overview-actions { display: flex; justify-content: center; margin-top: -20px; position: relative; z-index: 10; }
.job-overview-content.is-expanded + .job-overview-actions { margin-top: 1.5rem; }
.btn-job-expand { display: inline-flex; align-items: center; gap: 8px; background: var(--surface); backdrop-filter: blur(12px); color: var(--text-primary); border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 10px 24px; font-size: 0.885rem; font-weight: 650; cursor: pointer; box-shadow: var(--shadow); transition: all .2s; font-family: inherit; }
.btn-job-expand:hover { border-color: var(--border-hover); background: var(--surface-2); transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.job-expand-arrow { font-size: 0.7rem; transition: transform .25s; }

/* Job article body */
.job-article-body h3, .job-article-body h4 { position: relative; font-size: 1.2rem; font-weight: 750; color: var(--text-primary); margin: 1.85rem 0 0.85rem; padding-left: 14px; line-height: 1.4; }
.job-article-body h3::before, .job-article-body h4::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 3px; background: linear-gradient(180deg,#10b981,#06b6d4); border-radius: 3px; }
.job-article-body p { line-height: 1.72; color: var(--text-secondary); margin-bottom: 1.15rem; }
.job-article-body ul { padding-left: 1.4rem; margin: 0.5rem 0 1.25rem; }
.job-article-body ul li { margin-bottom: 0.5rem; line-height: 1.68; color: var(--text-secondary); }

/* Trust badges */
.trust-badge-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  background: var(--accent-dim);
  backdrop-filter: blur(10px);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  margin: 12px 0 18px;
}
.trust-badge-row { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.trust-pill { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; font-weight: 650; padding: 4px 11px; border-radius: var(--radius-pill); border: 1px solid transparent; white-space: nowrap; }
.trust-pill.trust-fresh { background: rgba(16,185,129,0.15); color: #34d399; border-color: rgba(16,185,129,0.3); }
body.light .trust-pill.trust-fresh { color: #065f46; }
.trust-pill.trust-verified { background: rgba(59,130,246,0.15); color: #93c5fd; border-color: rgba(59,130,246,0.3); }
body.light .trust-pill.trust-verified { color: #1d4ed8; }
.trust-pill.trust-region { background: rgba(168,85,247,0.15); color: #d8b4fe; border-color: rgba(168,85,247,0.3); }
body.light .trust-pill.trust-region { color: #6d28d9; }
.trust-pill.trust-deadline { background: rgba(245,158,11,0.15); color: #fcd34d; border-color: rgba(245,158,11,0.3); }
body.light .trust-pill.trust-deadline { color: #92400e; }
.trust-badge-meta { font-size: 0.74rem; color: var(--text-secondary); }

/* Salary benchmark */
.salary-benchmark-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.65rem;
  margin: 1.25rem 0;
  box-shadow: var(--shadow);
}
.salary-benchmark-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.15rem; flex-wrap: wrap; gap: .6rem; }
.salary-benchmark-title { font-weight: 750; font-size: .95rem; color: var(--text-primary); }
.salary-benchmark-tag { font-size: .78rem; font-weight: 750; padding: .25rem .7rem; border-radius: 9999px; }
.tag-above { background: var(--accent-dim); color: #34d399; border: 1px solid var(--accent-border); }
.tag-below { background: rgba(239,68,68,.12); color: #fca5a5; border: 1px solid rgba(239,68,68,.3); }
body.light .tag-above { color: #065f46; }
body.light .tag-below { color: #b91c1c; }
.salary-meter-track {
  height: 10px;
  background: var(--surface-2);
  border-radius: 9999px;
  margin-bottom: 0.6rem;
  position: relative;
  border: 1px solid var(--border);
}
.salary-meter-fill {
  height: 100%;
  background: linear-gradient(90deg,#10b981 0%,#06b6d4 50%,#8b5cf6 100%);
  border-radius: 9999px;
  box-shadow: 0 0 12px rgba(16,185,129,0.35);
}
.salary-meter-marker {
  position: absolute;
  top: -4px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border: 3px solid #10b981;
  border-radius: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 12px rgba(16,185,129,0.8);
}
.salary-meter-labels { display: flex; justify-content: space-between; font-size: .74rem; color: var(--text-secondary); }

/* Expired banner */
.expired-banner--closed { background: rgba(220,38,38,0.08); border: 1px solid rgba(220,38,38,0.25); border-radius: var(--radius); padding: 1.35rem; margin: 1.5rem 0; }
.expired-banner-inner { display: flex; gap: 1rem; align-items: flex-start; }
.expired-banner-icon { font-size: 1.75rem; flex-shrink: 0; }
.expired-banner-title { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 750; color: #fca5a5; }
body.light .expired-banner-title { color: #991b1b; }
.expired-banner-body { margin: 0; color: var(--text-secondary); font-size: .885rem; line-height: 1.55; }

/* Skills matrix */
.skills-matrix-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-left: 4px solid #3b82f6;
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.65rem;
  margin: 1.25rem 0;
  box-shadow: var(--shadow);
}
.skills-matrix-header { display: flex; align-items: center; gap: 12px; margin-bottom: 1rem; }
.skills-matrix-icon { font-size: 1.5rem; flex-shrink: 0; }
.skills-matrix-title { margin: 0; font-size: .96rem; font-weight: 750; color: var(--text-primary); }
.skills-matrix-subtitle { font-size: .75rem; color: var(--text-secondary); }
.skills-matrix-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: 1rem; }
.skills-matrix-col { display: flex; flex-direction: column; gap: 6px; }
.skills-col-label { font-size: .72rem; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; color: var(--text-secondary); }
.skills-tag-list { display: flex; flex-wrap: wrap; gap: 6px; }
.skill-tag {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  font-size: .78rem;
  font-weight: 650;
  border-radius: 8px;
  background: rgba(59,130,246,.12);
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,.25);
  backdrop-filter: blur(8px);
  transition: transform .15s, border-color .15s, background .15s;
}
.skill-tag:hover {
  transform: translateY(-1px);
  border-color: rgba(59,130,246,.5);
  background: rgba(59,130,246,.2);
}
body.light .skill-tag { color: #1d4ed8; background: rgba(37,99,235,.08); border-color: rgba(37,99,235,.2); }

/* Role silo */
.role-silo-box { background: var(--surface); backdrop-filter: blur(16px); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.4rem 1.65rem; margin: 2rem 0; box-shadow: var(--shadow); }
.role-silo-header { display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 750; color: var(--text-primary); margin-bottom: 1.15rem; border-bottom: 1px solid var(--border); padding-bottom: .75rem; }
.role-silo-icon { font-size: 1.3rem; }
.role-silo-links { display: grid; grid-template-columns: repeat(auto-fit,minmax(200px,1fr)); gap: .85rem; }
.role-silo-link { display: flex; flex-direction: column; gap: 4px; padding: .85rem 1rem; border-radius: var(--radius); background: var(--surface-2); border: 1px solid var(--border); text-decoration: none !important; transition: border-color .18s, background .18s, transform .18s; }
.role-silo-link:hover { border-color: var(--accent-border); transform: translateY(-2px); }
.silo-link-title { font-size: .88rem; font-weight: 700; color: var(--text-primary); }
.silo-link-desc { font-size: .76rem; color: var(--text-secondary); line-height: 1.4; }

/* Calc widget */
.calc-widget-link { display: flex; align-items: center; gap: 1rem; background: var(--surface); backdrop-filter: blur(16px); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius-lg); padding: 1rem 1.25rem; margin: 1.25rem 0; flex-wrap: wrap; box-shadow: var(--shadow); }
.calc-widget-icon { font-size: 1.7rem; flex-shrink: 0; }
.calc-widget-body { flex: 1; min-width: 160px; }
.calc-widget-body strong { display: block; font-size: .95rem; margin-bottom: .25rem; color: var(--text-primary); }
.calc-widget-body span { font-size: .84rem; color: var(--text-secondary); }
.calc-widget-btn { flex-shrink: 0; }

/* Visa signal card */
.visa-signal-card { background: var(--surface); backdrop-filter: blur(16px); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: var(--radius-lg); padding: 1.4rem 1.65rem; margin: 1.25rem 0; box-shadow: var(--shadow); }
body.light .visa-signal-card { background: rgba(255,255,255,0.92); border-color: #e2e8f0; border-left-color: #059669; }
.visa-signal-header { display: flex; align-items: center; gap: 10px; margin-bottom: .7rem; }
.visa-signal-icon { font-size: 1.4rem; flex-shrink: 0; }
.visa-signal-title { color: var(--text-primary); font-size: .98rem; font-weight: 750; }
body.light .visa-signal-title { color: #0f172a; }
.visa-signal-badge { display: inline-block; margin-left: .5rem; font-size: .75rem; font-weight: 750; padding: .2rem .6rem; border-radius: 9999px; }
.visa-rating-high { background: var(--accent-dim); color: #34d399; border: 1px solid var(--accent-border); }
body.light .visa-rating-high { background: #ecfdf5; color: #065f46; border-color: #a7f3d0; }
.visa-rating-standard { background: rgba(251,191,36,.12); color: #fcd34d; border: 1px solid rgba(251,191,36,.3); }
body.light .visa-rating-standard { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.visa-signal-desc { margin: 0 0 .5rem; font-size: .885rem; color: var(--text-secondary); line-height: 1.6; }
body.light .visa-signal-desc { color: #334155; }
.visa-signal-link { display: inline-block; font-size: .86rem; color: #34d399; text-decoration: underline; text-underline-offset: 3px; font-weight: 650; }
body.light .visa-signal-link { color: #065f46; }
.visa-signal-link:hover { color: #6ee7b7; text-decoration: underline; }
body.light .visa-signal-link:hover { color: #047857; text-decoration: underline; }

/* ===================================================================
   FOOTER
=================================================================== */
.footer {
  padding: 3.5rem var(--gap) 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.8125rem;
  margin-top: auto;
}
.footer-container {
  max-width: var(--main-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.15rem;
  text-align: center;
}
.footer-brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-badge {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}
.footer-nav {
  display: flex;
  justify-content: center;
  gap: 1.4rem;
  list-style: none;
  padding: 0;
  margin: 0;
  flex-wrap: wrap;
}
.footer-nav li a, .footer-btn-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.84rem;
  font-weight: 550;
  transition: all 0.18s;
  background: none;
  border: none;
  padding: 0;
  font-family: inherit;
  cursor: pointer;
}
.footer-nav li a:hover, .footer-btn-link:hover {
  color: var(--accent-light);
}
.footer-btn-link {
  color: var(--text-muted);
}
.footer-copyright {
  color: var(--text-muted);
  font-size: 0.775rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-copyright a {
  color: var(--text-secondary);
  text-decoration: none;
}
.footer-copyright a:hover {
  color: var(--accent);
}
.footer-dot {
  opacity: 0.4;
}

/* ===================================================================
   MODAL
=================================================================== */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 999;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 500px;
  width: 100%;
  padding: 1.75rem;
  box-shadow: var(--shadow-lg);
}
.modal-card h3 { margin-bottom: 0.5rem; font-size: 1.2rem; color: var(--text-primary); }
.modal-card p { color: var(--text-secondary); font-size: 0.875rem; margin-bottom: 1.25rem; }
.modal-card textarea {
  width: 100%;
  height: 100px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  padding: 10px;
  font-family: inherit;
  font-size: 0.875rem;
  margin-bottom: 1rem;
  outline: none;
  resize: vertical;
}
.modal-card textarea:focus { border-color: var(--accent); }
.modal-actions { display: flex; justify-content: flex-end; gap: 0.75rem; }
.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all .15s;
}
.modal-close-btn:hover { background: var(--border); color: var(--text-primary); }

/* Report form */
.report-type-fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 0.75rem 1rem; margin-bottom: 0.75rem; }
.report-type-fieldset legend { font-size: .84rem; color: var(--text-secondary); padding: 0 0.4rem; font-weight: 600; }
.report-type-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 0.5rem; margin-top: 0.5rem; }
.report-type-option { display: flex; align-items: center; gap: .4rem; cursor: pointer; padding: .4rem .6rem; border: 1px solid var(--border); border-radius: var(--radius-sm); transition: border-color .15s, background .15s; font-size: .84rem; color: var(--text-primary); }
.report-type-option:hover { border-color: var(--accent); background: var(--accent-dim); }
.report-type-option input[type="radio"] { accent-color: var(--accent); }
.report-type-option:has(input:checked) { border-color: var(--accent); background: var(--accent-dim); }
.report-type-option input[type="radio"]:checked + .report-type-label { color: var(--accent); font-weight: 600; }

/* Apply modal */
.apply-modal-backdrop { display: none; position: fixed; inset: 0; background: rgba(7,9,14,0.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); z-index: 1000; align-items: center; justify-content: center; padding: 1rem; }
.apply-modal-card { background: var(--surface); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px); border: 1px solid var(--border); border-radius: var(--radius-xl); max-width: 480px; width: 100%; padding: 1.75rem 2rem; box-shadow: var(--shadow-lg); position: relative; max-height: 92vh; overflow-y: auto; }
body.light .apply-modal-card { background: rgba(255,255,255,0.96); border-color: #e2e8f0; }
.apply-close-btn { position: absolute; top: 1.25rem; right: 1.25rem; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface-2); color: var(--text-secondary); display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all .15s; font-size: 1rem; }
.apply-close-btn:hover { background: var(--surface-2); color: var(--text-primary); transform: rotate(90deg); }
.apply-modal-header { margin-bottom: 1.25rem; padding-right: 2.5rem; }
.apply-modal-badge { font-size: .84rem; color: var(--text-secondary); display: block; margin-bottom: .25rem; font-weight: 600; }
.apply-modal-title { font-size: 1.25rem; font-weight: 800; color: var(--text-primary); margin: 0 0 .25rem; line-height: 1.3; }
.apply-modal-company { font-size: .92rem; font-weight: 700; color: var(--accent); }
.apply-form-group { margin-bottom: 1rem; }
.apply-label { display: block; font-size: .85rem; font-weight: 700; color: var(--text-primary); margin-bottom: .4rem; }
.apply-input { width: 100%; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 11px 15px; font-size: .92rem; color: var(--text-primary); background: var(--surface-2); outline: none; font-family: inherit; transition: border-color .15s, box-shadow .15s; }
.apply-input::placeholder { color: var(--text-secondary); opacity: .8; }
.apply-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
body.light .apply-input { background: #fff; border-color: #e2e8f0; }
.apply-dropzone { border: 2px dashed var(--border); border-radius: var(--radius); padding: 1.25rem 1rem; text-align: center; cursor: pointer; background: var(--surface-2); transition: all .15s; user-select: none; }
.apply-dropzone:hover, .apply-dropzone.drag-over { border-color: var(--accent); background: var(--accent-dim); }
.apply-dropzone.has-file { border-color: var(--accent); background: var(--accent-dim); }
.dropzone-paperclip { font-size: 1.6rem; margin-bottom: .3rem; }
.dropzone-text { font-size: .9rem; font-weight: 600; color: var(--text-primary); }
.dropzone-hint { font-size: .76rem; color: var(--text-secondary); margin-top: .2rem; }
.apply-submit-btn { width: 100%; background: linear-gradient(135deg,#10b981,#059669); color: #fff; border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-pill); padding: 13px 20px; font-size: .96rem; font-weight: 750; cursor: pointer; box-shadow: 0 4px 16px rgba(16,185,129,0.35); margin-top: .6rem; transition: transform .15s, box-shadow .15s; display: flex; align-items: center; justify-content: center; gap: 8px; font-family: inherit; }
.apply-submit-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(16,185,129,0.5); }
.apply-submit-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.apply-error-text { color: #fca5a5; font-size: .8rem; margin-bottom: .85rem; padding: 8px 12px; background: rgba(239,68,68,.1); border-radius: var(--radius-sm); border: 1px solid rgba(239,68,68,.2); }
body.light .apply-error-text { color: #991b1b; }
.apply-success-banner { text-align: center; padding: 2rem 1rem; }
.apply-success-banner .success-icon { width: 52px; height: 52px; border-radius: 50%; background: var(--accent-dim); color: var(--accent); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; margin: 0 auto 1rem; }
.apply-success-banner h4 { font-size: 1.3rem; font-weight: 800; color: var(--text-primary); margin-bottom: .5rem; }
.apply-success-banner p { color: var(--text-secondary); font-size: .9rem; line-height: 1.5; }

/* ===================================================================
   AUDIT / VISA / MISC PAGE STYLES
=================================================================== */
.audit-hero { text-align: center; padding: 2.5rem 0 2rem; }
.audit-hero-badge { display: inline-block; background: var(--accent-dim); color: var(--accent); border: 1px solid var(--accent-border); border-radius: 20px; padding: .3rem 1rem; font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 1rem; }
.audit-hero-title { font-size: 2.1rem; font-weight: 800; margin: 0 0 .75rem; }
.audit-hero-sub { color: var(--text-secondary); max-width: 660px; margin: 0 auto 1.5rem; line-height: 1.65; }
.audit-stats-row { display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem; }
.audit-stat { text-align: center; }
.audit-stat-num { display: block; font-size: 2rem; font-weight: 800; color: var(--accent); line-height: 1; }
.audit-stat-label { font-size: .78rem; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .05em; }
.audit-table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; }
.audit-table-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.25rem; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: .5rem; }
.audit-table { width: 100%; }
.audit-table-row { display: grid; grid-template-columns: 2fr 1.5fr 1.5fr 1fr; gap: 1rem; padding: .75rem 1.25rem; border-bottom: 1px solid var(--border); align-items: center; font-size: .875rem; transition: background .12s; }
.audit-table-row:last-child { border-bottom: none; }
.audit-table-row:hover { background: var(--accent-dim); }
.audit-table-head { background: rgba(255,255,255,.02); font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-secondary); }
body.light .audit-table-head { background: rgba(0,0,0,.025); }
.audit-verif-code { font-family: monospace; font-size: .84rem; color: var(--accent); font-weight: 600; }
.audit-filed-date { color: var(--text-secondary); font-size: .82rem; }
.audit-status { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; font-size: .8rem; padding: .22rem .6rem; border-radius: 20px; }
.status-resolved { background: var(--accent-dim); color: #34d399; }
.status-review { background: rgba(251,191,36,.12); color: #fbbf24; }
.status-received { background: rgba(59,130,246,.12); color: #60a5fa; }
body.light .status-resolved { color: #065f46; }
body.light .status-review { color: #92400e; }
body.light .status-received { color: #1e40af; }
.audit-empty { text-align: center; padding: 3rem; color: var(--text-secondary); }
.audit-cta-box { text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; margin-bottom: 2rem; }
.audit-cta-box h3 { margin: 0 0 .5rem; font-size: 1.3rem; color: var(--text-primary); }
.audit-cta-box p { color: var(--text-secondary); margin-bottom: 1.25rem; }

/* Visa */
.visa-hero { text-align: center; padding: 2.5rem 0 2rem; }
.visa-hero-flags { font-size: 2.5rem; margin-bottom: .5rem; }
.visa-arrow { display: inline-block; margin: 0 .5rem; }
.visa-hero-title { font-size: 2rem; font-weight: 800; margin: 0 0 .75rem; }
.visa-hero-sub { color: var(--text-secondary); max-width: 600px; margin: 0 auto 1.5rem; line-height: 1.65; }
.visa-tab-nav { display: flex; justify-content: center; gap: .75rem; flex-wrap: wrap; }
.visa-tab { padding: .6rem 1.5rem; border: 2px solid var(--border); border-radius: 30px; background: transparent; color: var(--text-primary); font-weight: 600; font-size: .9rem; cursor: pointer; transition: all .2s; font-family: inherit; }
.visa-tab:hover { border-color: var(--accent); color: var(--accent); }
.visa-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.visa-alert { padding: 1rem 1.25rem; border-radius: var(--radius); margin: 1.5rem 0; font-size: .9rem; line-height: 1.6; }
.visa-alert-info { background: rgba(59,130,246,.08); border-left: 3px solid #3b82f6; color: var(--text-secondary); }
.visa-alert-warning { background: rgba(251,191,36,.08); border-left: 3px solid #f59e0b; color: var(--text-secondary); }
.visa-req-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(210px,1fr)); gap: 1rem; margin: 1rem 0; }
.visa-req-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.visa-req-card h3 { margin: .5rem 0 .3rem; font-size: 1rem; color: var(--text-primary); }
.visa-req-card p { color: var(--text-secondary); font-size: .875rem; margin: 0; line-height: 1.55; }
.visa-req-icon { font-size: 1.6rem; }
.visa-table-wrap { overflow-x: auto; margin: 1rem 0; }
.visa-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.visa-table th,.visa-table td { padding: .6rem .875rem; text-align: left; border-bottom: 1px solid var(--border); }
.visa-table th { background: var(--surface); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); }
.visa-table tr:hover td { background: var(--accent-dim); }
.visa-timeline { display: flex; flex-direction: column; gap: 1rem; margin: 1rem 0; }
.visa-step { display: flex; gap: 1rem; align-items: flex-start; }
.visa-step-num { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #022216; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .8rem; flex-shrink: 0; }
.visa-cost-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(155px,1fr)); gap: .75rem; margin: 1rem 0; }
.visa-cost-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .875rem; text-align: center; }
.visa-cost-item span { display: block; font-size: .77rem; color: var(--text-secondary); margin-bottom: .3rem; }
.visa-cost-item strong { font-size: 1.1rem; color: var(--accent); }
.visa-faq { display: flex; flex-direction: column; gap: .5rem; margin: 1rem 0; }
.visa-faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.visa-faq-item summary { padding: .875rem 1rem; font-weight: 600; cursor: pointer; color: var(--text-primary); }
.visa-faq-item summary:hover { color: var(--accent); }
.visa-faq-item p { padding: 0 1rem 1rem; color: var(--text-secondary); font-size: .875rem; line-height: 1.6; margin: 0; }

/* Company page */
.company-hero { display: flex; align-items: center; gap: 1.25rem; margin-bottom: 2rem; flex-wrap: wrap; }
.company-avatar-lg { width: 72px; height: 72px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.6rem; font-weight: 800; color: #fff; flex-shrink: 0; }
.company-hero-text h1 { font-size: 1.8rem; font-weight: 800; margin: 0 0 .3rem; }
.company-hero-text p { color: var(--text-secondary); margin: 0; font-size: .9rem; }

/* ===================================================================
   SECTION HEADERS & HUB DISCOVERY CARDS
=================================================================== */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.25rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  gap: 1rem;
  flex-wrap: wrap;
}
.section-head h2 {
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}
.section-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 450;
  line-height: 1.4;
}
.section-more-link {
  font-size: 0.85rem;
  font-weight: 650;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  transition: all 0.18s ease;
  white-space: nowrap;
}
.section-more-link:hover {
  color: var(--accent-light);
  transform: translateX(3px);
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-bottom: 3rem;
}
.hub-tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none !important;
  color: var(--text-primary);
  box-shadow: var(--shadow);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}
.hub-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  pointer-events: none;
}
body.light .hub-tile {
  background: #ffffff;
  border-color: rgba(226, 232, 240, 0.95);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}
body.light .hub-tile::before {
  background: linear-gradient(90deg, transparent, rgba(16, 185, 129, 0.25), transparent);
}
.hub-tile:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
  background: var(--surface-2);
}
body.light .hub-tile:hover {
  background: #ffffff;
  border-color: var(--accent);
  box-shadow: 0 12px 24px -6px rgba(16, 185, 129, 0.16), 0 0 0 1px rgba(16, 185, 129, 0.25);
}
.hub-tile-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.hub-tile-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  transition: transform 0.2s ease;
}
body.light .hub-tile-icon {
  background: #f1f5f9;
  border-color: #e2e8f0;
}
.hub-tile:hover .hub-tile-icon {
  transform: scale(1.08);
}
.hub-tile-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hub-tile-name {
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--text-primary);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.015em;
}
.hub-tile-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 2px;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.light .hub-tile-sub {
  color: #64748b;
}
.hub-tile-arrow {
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: all 0.2s ease;
  transform: translateX(0);
  opacity: 0.6;
  flex-shrink: 0;
}
.hub-tile:hover .hub-tile-arrow {
  color: var(--accent);
  transform: translateX(3px);
  opacity: 1;
}

/* Big Bottom Browse CTA Button */
.bottom-browse-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 34px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff !important;
  font-weight: 750;
  font-size: 0.96rem;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35), 0 0 20px rgba(16, 185, 129, 0.2);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.bottom-browse-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(16, 185, 129, 0.48), 0 0 30px rgba(16, 185, 129, 0.3);
}
body.light .bottom-browse-cta {
  background: linear-gradient(135deg, #059669, #047857);
  box-shadow: 0 6px 20px rgba(5, 150, 105, 0.28);
}


/* ===================================================================
   CONTENT VISIBILITY (performance)
=================================================================== */
.posts-list, .hub-grid, .role-silo-links {
  content-visibility: auto;
  contain-intrinsic-size: auto 400px;
}
.skills-matrix-card, .visa-signal-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 280px;
}

/* ===================================================================
   RESPONSIVE — MOBILE
=================================================================== */
@media (max-width: 768px) {
  :root { --gap: 16px; --header-height: auto; }
  html, body { overflow-x: hidden; }

  /* Nav */
  .nav { height: auto; padding: 12px var(--gap); flex-wrap: nowrap; }
  .nav-right { gap: 0.25rem; }
  #menu { display: none; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .profile { padding: 2rem 0.5rem 1.5rem; }
  .hero-brand-title { font-size: 2.6rem; }
  .hero-lead-h2 { font-size: 1.15rem; }
  .profile-buttons {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding-bottom: 6px;
    justify-content: flex-start;
    scrollbar-width: none;
  }
  .profile-buttons::-webkit-scrollbar { display: none; }
  .profile-buttons .button-link { white-space: nowrap; flex-shrink: 0; }

  /* Search */
  .searchbox form { flex-direction: column; padding: 10px; gap: 8px; }
  .searchbox-input-wrap { width: 100%; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
  .searchbox input[type="text"] { font-size: 1rem; }
  .searchbox-controls { display: flex; gap: 8px; width: 100%; }
  .searchbox-controls select { flex: 1; font-size: .84rem; }
  .searchbox-controls button { padding: 8px 16px; }

  /* Job cards */
  .post-entry { padding: 16px; border-radius: var(--radius); }
  .entry-header { flex-direction: column; gap: 6px; }
  .entry-header h2 { font-size: 1.1rem; }
  .entry-salary { align-self: flex-start; }
  .entry-subhead { font-size: 0.8rem; gap: 5px; }
  .entry-content { font-size: .85rem; margin-bottom: .75rem; }
  .entry-footer { font-size: .73rem; }

  /* Hub grid */
  .hub-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0.5rem; }
  .hub-tile { padding: 10px 12px; min-height: 44px; min-width: 44px; }
  .hub-tile-name { font-size: 0.8rem; }

  /* Filter pills */
  .filter-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    width: 100%;
    padding-bottom: 6px;
    scrollbar-width: none;
  }
  .filter-pills::-webkit-scrollbar { display: none; }
  .filter-pill { white-space: nowrap; flex-shrink: 0; }

  /* Post detail */
  .post-title { font-size: 1.55rem; line-height: 1.3; }
  .post-actions { flex-direction: column; gap: 10px; }
  .post-actions .btn-papermod-primary, .post-actions .btn-papermod-secondary { width: 100%; justify-content: center; }
  .post-content h2 { font-size: 1.25rem; }
  .post-content h3 { font-size: 1.1rem; }
  .job-specs-grid { grid-template-columns: 1fr; }

  /* Pagination */
  .pagination { padding-top: 1rem; margin-top: 1.5rem; font-size: .8125rem; }
  .pagination a { padding: 8px 14px; }

  /* Footer */
  .footer { padding: calc(var(--gap) * 1.2) var(--gap); font-size: .78rem; }
  .footer-nav { gap: .75rem; }

  /* Audit table */
  .audit-table-row { grid-template-columns: 1fr 1fr; font-size: .8rem; }
  .audit-table-head { display: none; }
}

@media (max-width: 480px) {
  .hub-grid { grid-template-columns: repeat(2, minmax(140px, 1fr)); }
  .hub-tile { min-height: 48px; padding: 12px 14px; }
  .audit-table-row { grid-template-columns: 1fr; }
  .report-type-grid { grid-template-columns: repeat(2, 1fr); }
}