/* ============================================
   SINGULARITY.CV
   Career guidance for tech workers
   preparing for the AI singularity
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- Design Tokens --- */
:root {
  --bg-deep: #0b0a09;
  --bg-surface: #141312;
  --bg-elevated: #1e1c19;
  --bg-hover: #232120;

  --text-primary: #e8e4de;
  --text-secondary: #b0aba3;
  --text-tertiary: #6b665f;
  --text-inverse: #0b0a09;

  --accent: #c8943e;
  --accent-bright: #daa84f;
  --accent-muted: #8a6a30;
  --accent-bg: rgba(200, 148, 62, 0.08);

  --border: #35312e;
  --border-light: #242120;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Plus Jakarta Sans', -apple-system, sans-serif;

  --measure: 740px;
  --measure-wide: 1040px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
  --space-xl: 5rem;
  --space-2xl: 8rem;

  --radius: 6px;
  --radius-lg: 12px;

  --transition: 0.2s ease;
}

/* --- Light content theme (below hero) --- */
.content-light {
  --bg-deep: #f5f2ed;
  --bg-surface: #eae6e0;
  --bg-elevated: #fff;
  --bg-hover: #e2ddd6;

  --text-primary: #1a1815;
  --text-secondary: #4a4640;
  --text-tertiary: #7a756d;

  --accent-bg: rgba(200, 148, 62, 0.1);

  --border: #d4cfc7;
  --border-light: #e0dbd4;

  background: var(--bg-deep);
  color: var(--text-primary);
}

.content-light p {
  color: var(--text-secondary);
}

.content-light h1,
.content-light h2,
.content-light h3 {
  color: var(--text-primary);
}

.content-light h4 {
  color: var(--accent);
  text-shadow: none;
}

.content-light a {
  color: #9a6e20;
}

.content-light a:hover {
  color: #7a5510;
}

.content-light .card {
  background: var(--bg-elevated);
  border-color: var(--border-light);
  backdrop-filter: none;
}

.content-light .card:hover {
  background: var(--bg-elevated);
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 0 48px rgba(200, 148, 62, 0.08);
}

.content-light .card__number {
  color: #b0a99e;
}

.content-light .card:hover .card__number {
  color: var(--accent);
}

.content-light .role-block {
  background: var(--bg-elevated);
  border-color: var(--border-light);
}

.content-light .role-block:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 0 32px rgba(200, 148, 62, 0.06);
}

.content-light .role-block h4 {
  color: var(--accent);
}

.content-light .callout {
  background: rgba(200, 148, 62, 0.08);
  box-shadow: inset 0 0 40px rgba(200, 148, 62, 0.04);
}

.content-light .callout p {
  color: var(--text-primary);
}

.content-light .skill-formula__part {
  background: var(--bg-elevated);
  border-color: var(--border);
  color: var(--text-primary);
}

.content-light .skill-formula__result {
  background: rgba(200, 148, 62, 0.12);
  border-color: var(--accent);
  color: #8a6a30;
}

.content-light .skill-tag {
  background: rgba(200, 148, 62, 0.12);
  color: #8a6a30;
}

.content-light .task-tag--safe {
  background: rgba(74, 158, 96, 0.12);
  color: #2d7a43;
}

.content-light .task-tag--shifting {
  background: rgba(200, 148, 62, 0.12);
  color: #8a6a30;
}

.content-light .task-tag--gone {
  background: rgba(180, 70, 70, 0.12);
  color: #a04040;
}

.content-light .btn--primary {
  background: var(--accent);
  color: #fff;
}

.content-light .btn--primary:hover {
  background: var(--accent-bright);
  color: #fff;
}

.content-light .btn--ghost {
  border-color: var(--border);
  color: var(--text-primary);
}

.content-light .btn--ghost:hover {
  border-color: var(--accent);
  background: rgba(200, 148, 62, 0.06);
}

.content-light .faq-item {
  border-bottom-color: var(--border-light);
}

.content-light .faq-item h3 {
  color: var(--text-primary);
}

.content-light .pathway__from,
.content-light .pathway__to {
  color: var(--text-primary);
}

.content-light .pathway__arrow {
  color: var(--accent);
}

.content-light .guide-section__number {
  color: var(--accent-muted);
  opacity: 0.5;
}

.content-light .guide-section + .guide-section {
  border-top-color: var(--border-light);
}

.content-light section + section {
  border-top-color: var(--border-light);
}

.content-light section + section::before {
  background: linear-gradient(90deg, transparent, var(--accent-muted), transparent);
}

.content-light section + section.cta-section::before {
  display: none;
}

.content-light section:nth-of-type(even) {
  background: var(--bg-surface);
}

/* CTA in light mode stays dark for contrast */
.content-light section.cta-section {
  background: #0b0a09;
  border-top: none;
  margin-bottom: 0;
}

.content-light section.cta-section + * {
  border-top: none;
}

.content-light section.cta-section::before {
  background: radial-gradient(ellipse at center, rgba(200, 148, 62, 0.06) 0%, transparent 70%);
}

.content-light section.cta-section h2 {
  color: #e8e4de;
}

.content-light section.cta-section p {
  color: #b0aba3;
}

.content-light section.cta-section .btn--primary {
  background: var(--accent);
  color: #0b0a09;
}

.content-light section.cta-section .btn--ghost {
  border-color: #35312e;
  color: #e8e4de;
}

.content-light section.cta-section .btn--ghost:hover {
  border-color: var(--accent-muted);
  color: #e8e4de;
  background: rgba(200, 148, 62, 0.05);
}

/* Page header in light mode keeps dark (sits above light content) */
.content-light .page-header {
  --bg-deep: #f5f2ed;
  background:
    linear-gradient(to bottom, transparent 40%, #f5f2ed 100%),
    url('../images/generated/hero-compressed.jpg') center center / cover no-repeat;
  border-bottom-color: var(--border-light);
}

.content-light .page-header .container {
  background: rgba(11, 10, 9, 0.83);
}

.content-light .page-header h1,
.content-light .page-header h4,
.content-light .page-header .lead {
  color: #e8e4de;
}

.content-light .page-header h4 {
  color: #c8943e;
  text-shadow: 0 0 20px rgba(200, 148, 62, 0.3);
}

.content-light .page-header .lead {
  color: #e8e4de;
}

/* Forms in light mode */
.content-light .form-group input,
.content-light .form-group select,
.content-light .form-group textarea {
  background: #fff;
  border-color: var(--border);
  color: var(--text-primary);
}

.content-light .form-group select option {
  background: #fff;
  color: var(--text-primary);
}

.content-light .form-fieldset {
  border-color: var(--border-light);
}

.content-light .form-fieldset legend {
  color: var(--text-primary);
}

/* Grain overlay off in light sections */
.content-light {
  position: relative;
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 17px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  min-height: 100vh;
  overflow-x: hidden;
}

/* Grain overlay */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Accent bar at top */
body::after {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-muted), var(--accent), var(--accent-bright), var(--accent));
  background-size: 300% 100%;
  animation: shimmer 8s ease infinite;
  z-index: 10000;
}

@keyframes shimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

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

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

a:hover {
  color: var(--accent-bright);
}

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

/* --- Typography --- */
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.01em;
  margin-bottom: var(--space-md);
}

h3 {
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  margin-bottom: var(--space-sm);
}

h4 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
  text-shadow: 0 0 20px rgba(200, 148, 62, 0.3);
}

p {
  margin-bottom: var(--space-md);
  color: var(--text-secondary);
}

p.lead {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-primary);
  font-weight: 300;
}

strong {
  font-weight: 600;
  color: var(--text-primary);
}

em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.02em;
}

/* --- Layout --- */
.container {
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.container--wide {
  max-width: var(--measure-wide);
}

section {
  padding: var(--space-lg) 0;
}

section:nth-of-type(even) {
  background: var(--bg-surface);
}

section + section {
  border-top: 1px solid var(--border-light);
}

/* --- Navigation --- */
.nav {
  position: sticky;
  top: 3px;
  z-index: 100;
  background: rgba(11, 10, 9, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-sm) 0;
}

.nav__inner {
  display: flex;
  align-items: center;
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

.nav__logo {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  margin-right: var(--space-lg);
  flex-shrink: 0;
}

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

.nav__menu {
  display: flex;
  align-items: center;
  flex: 1;
  min-width: 0;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  list-style: none;
}

.nav__links > li > a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
}

.nav__links > li > a:hover,
.nav__links > li > a.active {
  color: var(--text-primary);
}

.nav__links > li > a.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-trigger {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color var(--transition);
  position: relative;
}

.nav__dropdown-trigger:hover,
.nav__dropdown-trigger.active {
  color: var(--text-primary);
}

.nav__dropdown-trigger.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
}

.nav__chevron {
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.nav__dropdown:hover .nav__chevron,
.nav__dropdown:focus-within .nav__chevron {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 180px;
  background: rgba(20, 19, 18, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 0;
  list-style: none;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
  z-index: 200;
}

/* Hover bridge to prevent flicker */
.nav__dropdown-menu::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 0;
  right: 0;
  height: 14px;
}

.nav__dropdown:hover > .nav__dropdown-menu,
.nav__dropdown:focus-within > .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav__dropdown-menu a {
  display: block;
  padding: 8px 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.nav__dropdown-menu a:hover {
  color: var(--text-primary);
  background: rgba(200, 148, 62, 0.08);
}

.nav__dropdown-menu a.active {
  color: var(--accent);
}

/* Auth area */
.nav__auth {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-left: auto;
  flex-shrink: 0;
}

.nav__auth-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
  position: relative;
  white-space: nowrap;
}

.nav__auth-link:hover,
.nav__auth-link.active {
  color: var(--text-primary);
}

.nav__auth-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--accent);
}

.nav__auth-cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-inverse);
  background: var(--accent);
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 6px;
  transition: background 0.2s ease;
  white-space: nowrap;
}

.nav__auth-cta:hover {
  background: var(--accent-bright);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  margin-left: auto;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
}

.nav__toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav__toggle.open .nav__toggle-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav__toggle.open .nav__toggle-bar:nth-child(2) {
  opacity: 0;
}

.nav__toggle.open .nav__toggle-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Overlay (mobile) */
.nav__overlay {
  display: none;
}

/* --- Hero --- */
.hero {
  padding: 3rem 0 var(--space-xl);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(to bottom, transparent 65%, #f5f2ed 100%),
    url('../images/generated/hero-compressed.jpg') center center / cover no-repeat;
}

/* Radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(200, 148, 62, 0.12) 0%, rgba(200, 148, 62, 0.04) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Animated gradient mesh orbs */
.hero::after {
  content: '';
  position: absolute;
  top: -10%;
  right: -15%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle at 30% 40%, rgba(200, 148, 62, 0.06) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(218, 168, 79, 0.04) 0%, transparent 50%),
              radial-gradient(circle at 50% 30%, rgba(138, 106, 48, 0.05) 0%, transparent 40%);
  animation: meshFloat 20s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes meshFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(-30px, 20px) scale(1.05); }
  50% { transform: translate(10px, -15px) scale(0.97); }
  75% { transform: translate(20px, 10px) scale(1.03); }
}

.hero .container {
  position: relative;
  z-index: 1;
  background: rgba(11, 10, 9, 0.83);
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-lg);
}

.hero__label {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: var(--space-md);
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--accent-muted);
  border-radius: 2px;
}

.hero h1 {
  margin-bottom: var(--space-md);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-bright) 50%, var(--accent) 100%);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradientText 8s ease infinite;
}

@keyframes gradientText {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.hero .lead {
  max-width: 52ch;
  margin-bottom: var(--space-lg);
}

/* --- Floating Particles --- */
.particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.particle {
  position: absolute;
  width: 2px;
  height: 2px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat linear infinite;
}

.particle:nth-child(1) { left: 10%; animation-duration: 12s; animation-delay: 0s; }
.particle:nth-child(2) { left: 25%; animation-duration: 15s; animation-delay: 2s; }
.particle:nth-child(3) { left: 40%; animation-duration: 11s; animation-delay: 4s; }
.particle:nth-child(4) { left: 55%; animation-duration: 14s; animation-delay: 1s; }
.particle:nth-child(5) { left: 70%; animation-duration: 13s; animation-delay: 3s; }
.particle:nth-child(6) { left: 85%; animation-duration: 16s; animation-delay: 5s; }
.particle:nth-child(7) { left: 15%; animation-duration: 10s; animation-delay: 6s; }
.particle:nth-child(8) { left: 60%; animation-duration: 17s; animation-delay: 7s; }

@keyframes particleFloat {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 0.4; }
  50% { opacity: 0.15; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-100px) scale(1.5); opacity: 0; }
}

/* --- Cards --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.card {
  background: rgba(20, 19, 18, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  transition: border-color 0.3s ease, background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
  perspective: 800px;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: var(--radius-lg);
  padding: 1px;
  background: linear-gradient(135deg, transparent 0%, transparent 40%, var(--accent-muted) 50%, transparent 60%, transparent 100%);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.card:hover {
  border-color: rgba(200, 148, 62, 0.3);
  background: rgba(28, 26, 24, 0.8);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 48px rgba(200, 148, 62, 0.06);
}

.card:hover::before {
  opacity: 1;
  animation: borderShine 2s ease infinite;
}

@keyframes borderShine {
  0% { background-position: 0% 0%; }
  100% { background-position: 300% 300%; }
}

.card a {
  text-decoration: none;
}

.card__number {
  font-family: var(--serif);
  font-size: 2.4rem;
  color: var(--accent-muted);
  line-height: 1;
  margin-bottom: var(--space-sm);
  opacity: 0.5;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.card:hover .card__number {
  opacity: 0.8;
  color: var(--accent);
}

.card h3 {
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
}

.card p {
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 0;
}

/* --- Staggered Scroll Animations --- */
.stagger-in {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.stagger-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger-in:nth-child(1) { transition-delay: 0s; }
.stagger-in:nth-child(2) { transition-delay: 0.1s; }
.stagger-in:nth-child(3) { transition-delay: 0.2s; }
.stagger-in:nth-child(4) { transition-delay: 0.3s; }
.stagger-in:nth-child(5) { transition-delay: 0.4s; }
.stagger-in:nth-child(6) { transition-delay: 0.5s; }

/* --- Guide Content --- */
.guide-section {
  padding: var(--space-lg) 0;
}

.guide-section + .guide-section {
  border-top: 1px solid var(--border-light);
}

.guide-section__header {
  margin-bottom: var(--space-lg);
}

.guide-section__number {
  font-family: var(--serif);
  font-size: 4rem;
  color: var(--accent-muted);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: var(--space-xs);
  transition: opacity 0.6s ease;
}

.guide-section:hover .guide-section__number {
  opacity: 0.5;
}

.role-block {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin: 0 0 var(--space-sm) 0;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.role-block:hover {
  border-color: var(--accent-muted);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25), 0 0 32px rgba(200, 148, 62, 0.04);
}

.role-block--with-icon {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.role-block__icon {
  flex-shrink: 0;
  width: 64px;
  height: 64px;
  border-radius: var(--radius);
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.role-block--with-icon:hover .role-block__icon {
  opacity: 1;
}

.role-block__content {
  flex: 1;
  min-width: 0;
}

.role-block h4 {
  text-transform: none;
  letter-spacing: 0;
  font-size: 1rem;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.role-block p {
  font-size: 0.92rem;
  margin-bottom: 0;
}

.role-block ul {
  margin: var(--space-xs) 0 0;
  padding-left: 1.2rem;
  font-size: 0.92rem;
  color: var(--text-secondary);
}

.role-block ul li {
  margin-bottom: 0.3rem;
}

.role-block ul li::marker {
  color: var(--accent-muted);
}

/* Task list styling */
.task-list {
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.task-list li {
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: baseline;
  gap: var(--space-sm);
  font-size: 0.94rem;
  color: var(--text-secondary);
}

.task-list li:last-child {
  border-bottom: none;
}

.task-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.15rem 0.45rem;
  border-radius: 2px;
  flex-shrink: 0;
}

.task-tag--safe {
  background: rgba(74, 158, 96, 0.15);
  color: #6bc285;
}

.task-tag--shifting {
  background: rgba(200, 148, 62, 0.15);
  color: var(--accent);
}

.task-tag--gone {
  background: rgba(180, 70, 70, 0.15);
  color: #c87070;
}

/* Flash Band (below nav) */
.flash-band {
  background: #242120;
  border-bottom: 1px solid #2e2b28;
}

.flash-band__item {
  overflow: hidden;
  max-height: 200px;
  transition: max-height 0.35s ease, opacity 0.25s ease;
  opacity: 1;
}

.flash-band__item--closing {
  max-height: 0 !important;
  opacity: 0;
}

.flash-band__inner {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  max-width: var(--measure-wide);
  margin: 0 auto;
  padding: 0.7rem var(--space-md);
}

.flash-band__indicator {
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.flash-band__item--error .flash-band__indicator { background: #c87070; }
.flash-band__item--success .flash-band__indicator { background: #6bc285; }

.flash-band__message {
  flex: 1;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 400;
  line-height: 1.4;
  color: #d4cfc7;
  margin: 0;
}

.flash-band__close {
  flex-shrink: 0;
  background: none;
  border: none;
  color: #6b665f;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0.2rem 0.4rem;
  cursor: pointer;
  border-radius: var(--radius);
  transition: color 0.15s ease, background 0.15s ease;
}

.flash-band__close:hover {
  color: #d4cfc7;
  background: rgba(255, 255, 255, 0.06);
}

/* Callout */
.callout {
  border-left: 3px solid var(--accent);
  background: rgba(200, 148, 62, 0.06);
  padding: var(--space-md);
  margin: var(--space-lg) 0;
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  box-shadow: inset 0 0 40px rgba(200, 148, 62, 0.03);
}

.callout p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 0;
}

/* Bad advice tags */
.bad-advice {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: var(--space-md);
}

.bad-advice__tag {
  display: inline-block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.95rem;
  padding: 0.5rem 1rem;
  background: rgba(200, 148, 62, 0.06);
  border: 1px solid rgba(200, 148, 62, 0.15);
  border-radius: var(--radius);
  color: var(--text-secondary);
  position: relative;
  transition: border-color 0.3s ease, background 0.3s ease;
}

.bad-advice__tag:hover {
  border-color: rgba(200, 148, 62, 0.3);
  background: rgba(200, 148, 62, 0.1);
}

/* Skill stack visual */
.skill-formula {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  flex-wrap: wrap;
  margin: var(--space-md) 0 var(--space-lg);
  font-size: 0.88rem;
}

.skill-formula__part {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  color: var(--text-primary);
  font-weight: 500;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-formula__part:hover {
  border-color: var(--accent-muted);
  box-shadow: 0 0 16px rgba(200, 148, 62, 0.08);
}

.skill-formula__op {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.2rem;
}

.skill-formula__result {
  background: var(--accent-bg);
  border: 1px solid var(--accent-muted);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius);
  color: var(--accent-bright);
  font-weight: 600;
  box-shadow: 0 0 24px rgba(200, 148, 62, 0.1);
}

/* --- FAQ --- */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: var(--space-lg) 0;
}

.faq-item:first-child {
  padding-top: 0;
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-item h3 {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
  cursor: default;
}

.faq-item h3::before {
  content: 'Q.';
  color: var(--accent);
  margin-right: 0.5rem;
  font-weight: 700;
}

.faq-item p {
  font-size: 0.95rem;
}

.faq-item p:last-child {
  margin-bottom: 0;
}

/* --- CTA Section --- */
.cta-section {
  text-align: center;
  padding: var(--space-xl) 0;
  position: relative;
  overflow: hidden;
  background: var(--bg-surface);
}

.cta-section.cta-section--newsletter {
  background: var(--bg-elevated);
  padding: var(--space-lg) 0;
}

.cta-section.cta-section--newsletter::before {
  display: none;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(200, 148, 62, 0.1) 0%, rgba(200, 148, 62, 0.03) 40%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  margin-bottom: var(--space-sm);
  position: relative;
}

.cta-section p {
  max-width: 48ch;
  margin: 0 auto var(--space-lg);
  position: relative;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: var(--space-xs);
  position: relative;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input[type="email"] {
  flex: 1;
  padding: 0.75rem 1rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s ease;
}

.newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.newsletter-form input[type="email"]:focus {
  border-color: var(--accent);
}

.content-light .newsletter-form input[type="email"] {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  color: #e8e4de;
}

.content-light .newsletter-form input[type="email"]::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

@media (max-width: 480px) {
  .newsletter-form {
    flex-direction: column;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.75rem 1.8rem;
  border-radius: var(--radius);
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  position: relative;
  overflow: hidden;
}

.btn--primary {
  background: var(--accent);
  color: var(--text-inverse);
  box-shadow: 0 2px 8px rgba(200, 148, 62, 0.2);
}

.btn--primary:hover {
  background: var(--accent-bright);
  color: var(--text-inverse);
  box-shadow: 0 4px 20px rgba(200, 148, 62, 0.35);
  transform: translateY(-1px);
}

.btn--primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(200, 148, 62, 0.2);
}

.btn--ghost {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-primary);
}

.btn--ghost:hover {
  border-color: var(--accent-muted);
  background: rgba(200, 148, 62, 0.05);
  box-shadow: 0 0 16px rgba(200, 148, 62, 0.06);
}

/* --- Footer --- */
.footer {
  position: relative;
}

.footer__glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-muted), var(--accent), var(--accent-muted), transparent);
}

.footer__main {
  background: var(--bg-surface);
  padding: var(--space-xl) 0 var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  gap: var(--space-lg);
}

.footer__brand {
  max-width: 180px;
}

.footer__logo {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--text-primary);
  text-decoration: none;
  display: inline-block;
  margin-bottom: var(--space-sm);
}

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

.footer__logo:hover {
  color: var(--text-primary);
}

.footer__tagline {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 0;
}

.footer__heading {
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.footer__links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer__links li {
  margin-bottom: 0.5rem;
}

.footer__links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--text-primary);
}

.footer__bottom {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-light);
  padding: var(--space-sm) 0;
}

.footer__bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-md);
}

.footer__bottom p {
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-bottom: 0;
}

.footer__bottom a {
  color: var(--text-secondary);
}

.footer__bottom a:hover {
  color: var(--text-primary);
}

/* --- Page Header (for inner pages) --- */
.page-header {
  padding: var(--space-xl) 0 var(--space-lg);
  border-bottom: 1px solid var(--border-light);
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(to bottom, transparent 40%, var(--bg-deep) 100%),
    url('../images/generated/hero-compressed.jpg') center center / cover no-repeat;
}

.page-header::before {
  content: '';
  position: absolute;
  top: -40%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(200, 148, 62, 0.06) 0%, transparent 70%);
  pointer-events: none;
}

.page-header .container {
  position: relative;
  z-index: 1;
  background: rgba(11, 10, 9, 0.83);
  padding: var(--space-md);
  border-radius: var(--radius-lg);
}

.page-header h1 {
  margin-bottom: var(--space-sm);
}

.page-header .lead {
  max-width: 56ch;
}

/* --- Divider --- */
.divider {
  width: 48px;
  height: 1px;
  background: var(--accent-muted);
  margin: var(--space-lg) 0;
}

/* --- Transition Pathway Cards --- */
.pathway {
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin: var(--space-sm) 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-md);
  align-items: start;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.pathway:hover {
  border-color: var(--border);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
}

.pathway__arrow {
  font-size: 1.4rem;
  color: var(--accent);
  padding-top: 0.2rem;
  transition: transform 0.3s ease;
}

.pathway:hover .pathway__arrow {
  transform: translateX(4px);
}

.pathway__from {
  font-weight: 600;
  color: var(--text-primary);
}

.pathway__to {
  color: var(--accent-bright);
  font-weight: 500;
}

.pathway__detail {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
  margin-bottom: 0;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  html {
    font-size: 16px;
  }

  section {
    padding: var(--space-md) 0;
  }

  .guide-section {
    padding: var(--space-md) 0;
  }

  .hero {
    padding: 0;
  }

  .page-header {
    padding: 0;
  }

  .hero .container,
  .page-header .container {
    padding-bottom: var(--space-lg);
  }

  .hero::after {
    display: none;
  }

  .hero::before {
    width: 400px;
    height: 300px;
  }

  .hero .container,
  .page-header .container {
    border-radius: 0;
  }

  .role-block__icon {
    width: 48px;
    height: 48px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-md);
  }

  .footer__brand {
    grid-column: 1 / -1;
    padding-right: 0;
    margin-bottom: var(--space-sm);
  }

  .footer__bottom-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.25rem;
  }

  /* ── Mobile nav panel (Supabase-style) ── */
  .nav__menu {
    position: absolute;
    top: 100%;
    left: 8px;
    right: 8px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    flex-direction: column;
    align-items: stretch;
    padding: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease,
                padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    z-index: 200;
  }

  .nav__menu.open {
    max-height: 85vh;
    opacity: 1;
    padding: 8px 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .nav__links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  /* Divider between each nav item */
  .nav__links > li {
    border-bottom: 1px solid var(--border-light);
  }

  .nav__links > li:last-child {
    border-bottom: none;
  }

  .nav__links > li > a {
    display: block;
    width: 100%;
    text-align: left;
    padding: 14px 20px;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .nav__dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    text-align: left;
    padding: 14px 20px;
    font-size: 0.92rem;
    font-weight: 500;
    border-radius: 0;
    -webkit-tap-highlight-color: transparent;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .nav__links > li > a:hover,
  .nav__dropdown-trigger:hover {
    background: var(--bg-hover);
  }

  .nav__links > li > a:active {
    background: var(--bg-hover);
  }

  .nav__links > li > a.active::after {
    display: none;
  }

  .nav__links > li > a.active {
    color: var(--accent);
  }

  .nav__dropdown-trigger.active::after {
    display: none;
  }

  .nav__dropdown-trigger.active {
    color: var(--accent);
  }

  /* Mobile dropdown accordion */
  .nav__dropdown-menu {
    position: static;
    transform: none;
    background: var(--bg-elevated);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    visibility: hidden;
    transition: max-height 0.25s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.2s ease,
                visibility 0.25s ease;
    min-width: 0;
  }

  .nav__dropdown-menu::before {
    display: none;
  }

  .nav__dropdown.open > .nav__dropdown-menu {
    max-height: 200px;
    opacity: 1;
    visibility: visible;
    border-top: 1px solid var(--border-light);
  }

  .nav__dropdown:hover > .nav__dropdown-menu,
  .nav__dropdown:focus-within > .nav__dropdown-menu {
    opacity: 0;
    visibility: hidden;
    transform: none;
  }

  .nav__dropdown.open:hover > .nav__dropdown-menu,
  .nav__dropdown.open:focus-within > .nav__dropdown-menu {
    opacity: 1;
    visibility: visible;
  }

  .nav__dropdown-menu li {
    border-bottom: 1px solid var(--border-light);
  }

  .nav__dropdown-menu li:last-child {
    border-bottom: none;
  }

  .nav__dropdown-menu a {
    display: block;
    padding: 12px 20px 12px 36px;
    color: var(--text-secondary);
    font-size: 0.88rem;
    transition: background 0.15s ease, color 0.15s ease;
  }

  .nav__dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.03);
  }

  .nav__dropdown-menu a.active {
    color: var(--accent);
  }

  .nav__dropdown.open .nav__chevron {
    transform: rotate(180deg);
  }

  /* Mobile auth section */
  .nav__auth {
    margin-left: 0;
    flex-direction: column;
    gap: 0;
    border-top: 1px solid var(--border);
    padding: 8px 0 4px;
  }

  .nav__auth-link {
    display: block;
    padding: 14px 20px;
    border-radius: 0;
    font-size: 0.92rem;
    transition: background 0.15s ease;
  }

  .nav__auth-link:hover {
    background: var(--bg-hover);
  }

  .nav__auth-link.active::after {
    display: none;
  }

  .nav__auth-link.active {
    color: var(--accent);
  }

  .nav__auth-cta {
    display: block;
    text-align: center;
    margin: 8px 16px 12px;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 0.92rem;
  }

  .nav__auth .nav__bell {
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
  }

  /* Mobile overlay */
  .nav__overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 99;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
  }

  .nav__overlay.open {
    opacity: 1;
    visibility: visible;
  }

  .nav__toggle {
    display: flex;
  }

  .skill-formula {
    flex-direction: column;
    align-items: flex-start;
  }

  .pathway {
    grid-template-columns: 1fr;
  }

  .pathway__arrow {
    display: none;
  }
}

/* --- Forms --- */
.form-stack {
  max-width: 640px;
}

.form-fieldset {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  margin-bottom: var(--space-md);
}

.form-fieldset legend {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  padding: 0 0.5rem;
}

.form-group {
  margin-bottom: var(--space-md);
}

.form-group:last-child {
  margin-bottom: 0;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
}

.form-group.required label::after {
  content: ' *';
  color: #c87070;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 148, 62, 0.15), 0 0 16px rgba(200, 148, 62, 0.06);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-tertiary);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a958d' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8rem center;
  padding-right: 2.2rem;
}

.form-group select option {
  background: var(--bg-surface);
  color: var(--text-primary);
}

.form-group .form-error,
.form-group ul {
  list-style: none;
  padding: 0;
  margin: 0.3rem 0 0;
  font-size: 0.82rem;
  color: #c87070;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

@media (max-width: 480px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 2rem;
  }

  .guide-section__number {
    font-size: 2.8rem;
  }

  .container {
    padding: 0 var(--space-sm);
  }

  .hero .btn + .btn {
    display: block;
    margin-left: 0;
    margin-top: var(--space-xs);
    text-align: center;
  }

  .form-fieldset {
    padding: var(--space-sm);
  }
}

/* --- Scroll Animations --- */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Job Card (index listing) --- */
.job-card {
  display: block;
  text-decoration: none;
  margin-bottom: var(--space-sm);
}

.job-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: var(--space-xs);
}

.job-card__meta {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.job-card__meta--company {
  font-size: 0.88rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.job-card__date {
  font-size: 0.78rem;
  color: var(--text-tertiary);
  margin-bottom: 0;
  margin-top: 0.25rem;
}

.job-card__right {
  text-align: right;
  flex-shrink: 0;
}

.job-card__skills {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

/* --- Skill Tag --- */
.skill-tag {
  font-size: 0.82rem;
  padding: 0.25rem 0.7rem;
  background: var(--accent-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-secondary);
  display: inline-block;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-tag:hover {
  border-color: var(--accent-muted);
  box-shadow: 0 0 12px rgba(200, 148, 62, 0.1);
}

.skill-tag--sm {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

/* --- Job Tag (predefined perk/benefit badges) --- */
.job-tag {
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.25rem 0.7rem;
  background: rgba(99, 160, 120, 0.12);
  border: 1px solid rgba(99, 160, 120, 0.3);
  border-radius: var(--radius);
  color: #4a8a5a;
  display: inline-block;
}

.job-tag--sm {
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
}

.job-card__tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: 0.35rem;
}

/* --- Tag Filter Checkboxes --- */
.job-filters__tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.tag-checkbox {
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}

.tag-checkbox input {
  display: none;
}

.tag-checkbox__label {
  font-size: 0.82rem;
  padding: 0.3rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.tag-checkbox input:checked + .tag-checkbox__label {
  border-color: rgba(99, 160, 120, 0.5);
  background: rgba(99, 160, 120, 0.12);
  color: #4a8a5a;
}

.checkbox-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.checkbox-row label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  cursor: pointer;
}

/* --- Job Detail Layout --- */
.job-detail {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
}

.job-detail__main {
  flex: 1;
  min-width: 300px;
}

.job-detail__sidebar {
  width: 260px;
  flex-shrink: 0;
}

.job-detail__sidebar .role-block + .role-block {
  margin-top: var(--space-sm);
}

.job-detail__sidebar p {
  font-size: 0.88rem;
}

@media (max-width: 768px) {
  .job-detail__sidebar {
    width: 100%;
  }
}

/* --- Dashboard --- */
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-lg);
}

.dashboard-header h2 {
  margin-bottom: 0;
}

.dashboard-actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* --- Button Variants --- */
.btn--sm {
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
}

.btn--danger {
  background: transparent;
  border: 1px solid #c87070;
  color: #c87070;
}

.btn--danger:hover {
  background: rgba(200, 112, 112, 0.1);
  color: #c87070;
}

.btn--inline {
  display: inline;
}

@media (max-width: 768px) {
  .dashboard-actions {
    flex-wrap: wrap;
  }
}

/* --- Notification Bell --- */
.nav__bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  font-size: 1.15rem;
  text-decoration: none;
  line-height: 1;
  opacity: 0.6;
  transition: opacity var(--transition);
}

.nav__bell:hover {
  opacity: 1;
}
.nav__badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background: #c87070;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  font-family: var(--sans);
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* --- Notification Rows --- */
.notif-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: var(--space-xs);
  background: var(--bg-surface);
}
.notif-row--unread {
  border-left: 3px solid var(--accent);
  background: var(--accent-bg);
}
.notif-row__body {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  flex-wrap: wrap;
  flex: 1;
  min-width: 0;
}
.notif-row__type {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-elevated);
  padding: 0.15rem 0.5rem;
  border-radius: 3px;
  white-space: nowrap;
}
.notif-row__message {
  font-family: var(--sans);
  font-size: 0.9rem;
  color: var(--text-primary);
}
a.notif-row__message:hover {
  color: var(--accent);
}
.notif-row__time {
  font-family: var(--sans);
  font-size: 0.78rem;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.notif-row__actions {
  display: flex;
  gap: 0.35rem;
  flex-shrink: 0;
}
@media (max-width: 640px) {
  .notif-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .notif-row__actions {
    margin-top: var(--space-xs);
  }
}

/* --- Form Loading Overlay --- */
.form-overlay-wrap {
  position: relative;
}
.form-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(230, 230, 230, 0.85);
  border-radius: 0;
  z-index: 10;
  align-items: center;
  justify-content: center;
}
.form-overlay.active {
  display: flex;
}
.form-overlay__spinner {
  width: 40px;
  height: 40px;
  animation: form-spin 0.8s linear infinite;
}
.form-overlay__spinner circle {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: 90, 150;
  stroke-dashoffset: -35;
}
@keyframes form-spin {
  to { transform: rotate(360deg); }
}

/* --- Job Search & Filters --- */
.job-filters {
  margin-bottom: var(--space-lg);
}

.job-filters__row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.job-filters__select {
  font-family: var(--sans);
  font-size: 0.85rem;
  padding: 0.5rem 0.75rem;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239a958d' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.6rem center;
  padding-right: 1.8rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.job-filters__select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 148, 62, 0.12);
}

.job-filters__select option {
  background: var(--bg-elevated);
  color: var(--text-primary);
}

.job-search__wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.job-search__icon {
  position: absolute;
  left: 1rem;
  width: 18px;
  height: 18px;
  color: var(--text-tertiary);
  pointer-events: none;
  transition: color 0.2s ease;
}

.job-search__wrapper:focus-within .job-search__icon {
  color: var(--accent);
}

.job-search__input {
  width: 100%;
  padding: 0.85rem 2.8rem 0.85rem 2.8rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.job-search__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 148, 62, 0.12), 0 0 24px rgba(200, 148, 62, 0.06);
}

.job-search__input::placeholder {
  color: var(--text-tertiary);
}

.job-search__spinner {
  position: absolute;
  right: 1rem;
  width: 18px;
  height: 18px;
  border: 2px solid transparent;
  border-top-color: var(--accent);
  border-right-color: var(--accent);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}

.job-search__spinner.active {
  opacity: 1;
  transform: scale(1);
  animation: searchSpin 0.6s linear infinite;
}

@keyframes searchSpin {
  to { transform: rotate(360deg); }
}

.job-search__count {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.82rem;
  color: var(--text-tertiary);
  transition: opacity 0.2s ease;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 0.4rem;
  align-items: center;
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.pagination__current {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2rem;
  height: 2rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-inverse);
  background: var(--accent);
  border-radius: var(--radius);
}

/* --- Section Glow Dividers --- */
section + section {
  position: relative;
}

section + section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  z-index: 1;
}

/* --- Assessment Cards (index page) --- */
.assessment-card {
  display: flex;
  flex-direction: column;
}

.assessment-card > p:not(.assessment-card__meta):not(.assessment-card__badge) {
  flex: 1;
}

.assessment-card__meta {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-top: var(--space-md);
  margin-bottom: 0;
  flex: 0 0 auto;
}

.assessment-card .btn {
  margin-top: var(--space-sm);
}

.assessment-card--featured {
  border-left: 4px solid var(--accent);
  padding: var(--space-lg);
  background: var(--surface);
  border-radius: var(--radius);
}

.assessment-card__badge {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: var(--space-xs);
  flex: 0 !important;
}

/* --- Quiz App --- */
.quiz-app {
  max-width: 640px;
  margin: 0 auto;
}

.quiz-progress {
  height: 6px;
  background: var(--bg-surface);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: var(--space-xs);
}

.quiz-progress__bar {
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
  width: 0;
  transition: width 0.4s ease;
}

.quiz-progress__text {
  font-size: 0.82rem;
  color: var(--text-tertiary);
  margin-bottom: var(--space-lg);
}

.quiz-question {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.35;
  margin-bottom: var(--space-md);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.quiz-question--visible {
  opacity: 1;
  transform: translateY(0);
}

.quiz-options {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.quiz-option {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  color: var(--text-primary);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition), transform 0.15s ease;
  opacity: 0;
  animation: quizOptionIn 0.3s ease forwards;
}

.quiz-option:hover {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 148, 62, 0.1);
  background: var(--bg-hover);
}

.quiz-option:active {
  transform: scale(0.985);
}

.quiz-option--selected {
  border-color: var(--accent);
  background: var(--accent-bg);
  box-shadow: 0 0 0 3px rgba(200, 148, 62, 0.15);
}

.quiz-option:disabled {
  cursor: default;
  opacity: 0.7;
}

@keyframes quizOptionIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Quiz Loading --- */
.quiz-loading {
  text-align: center;
  padding: var(--space-xl) 0;
}

.quiz-loading__spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: searchSpin 0.6s linear infinite;
  margin-bottom: var(--space-sm);
}

/* --- Quiz Result --- */
.quiz-result {
  text-align: center;
  padding: var(--space-lg) 0;
}

.quiz-result__score-circle {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 0 auto var(--space-md);
}

.quiz-result__ring {
  width: 100%;
  height: 100%;
}

.quiz-result__ring-progress {
  transition: stroke-dasharray 1s ease;
}

.quiz-result__score-value {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 400;
  color: var(--text-primary);
}

.quiz-result__category {
  display: inline-block;
  padding: 0.4rem 1.25rem;
  border-radius: 2rem;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: var(--space-md);
}

.quiz-result__category--high-risk {
  background: rgba(200, 80, 80, 0.12);
  color: #c85050;
  border: 1px solid rgba(200, 80, 80, 0.25);
}

.quiz-result__category--moderate-risk {
  background: rgba(200, 168, 62, 0.12);
  color: var(--accent-bright);
  border: 1px solid rgba(200, 168, 62, 0.25);
}

.quiz-result__category--ai-resilient {
  background: rgba(80, 180, 100, 0.12);
  color: #50b464;
  border: 1px solid rgba(80, 180, 100, 0.25);
}

.quiz-result__detail {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

.quiz-result__description {
  max-width: 50ch;
  margin: 0 auto var(--space-lg);
  line-height: 1.65;
}

.quiz-result__actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

.quiz-result__copied {
  margin-top: var(--space-sm);
  font-size: 0.85rem;
  color: var(--accent);
}

/* --- Admin form helpers --- */
.admin-form .form-group {
  margin-bottom: var(--space-md);
}

.form-help {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

/* --- Responsive quiz --- */
@media (max-width: 640px) {
  .quiz-question {
    font-size: 1.25rem;
  }

  .quiz-result__score-circle {
    width: 130px;
    height: 130px;
  }

  .quiz-result__score-value {
    font-size: 1.75rem;
  }
}

/* ============================================
   INTERVIEW QUESTION BANK
   ============================================ */

/* --- Stats bar --- */
.iq-stats-bar {
  display: flex;
  justify-content: center;
  gap: var(--space-lg);
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-lg);
}

.iq-stat {
  text-align: center;
}

.iq-stat__number {
  display: block;
  font-family: var(--serif);
  font-size: 2rem;
  font-weight: 400;
  color: var(--accent);
  line-height: 1.1;
}

.iq-stat__label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --- Category card grid --- */
.iq-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--space-md);
}

.iq-category-card {
  display: block;
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition);
}

.iq-category-card:hover {
  border-color: var(--accent-muted);
  transform: translateY(-2px);
}

.iq-category-card__icon {
  font-size: 2.5rem;
  margin-bottom: var(--space-xs);
}

.iq-category-card__title {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.iq-category-card__desc {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  line-height: 1.5;
}

.iq-category-card__count {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: var(--space-xs);
}

.iq-category-card__stages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* --- Stage badges --- */
.iq-stage-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.iq-stage-badge--screening {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.iq-stage-badge--technical {
  background: rgba(200, 148, 62, 0.15);
  color: var(--accent-bright);
}

.iq-stage-badge--behavioural {
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
}

.iq-stage-badge--cultural_fit {
  background: rgba(168, 85, 247, 0.15);
  color: #c084fc;
}

/* --- Filter bar --- */
.iq-filter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

/* --- Pill tabs --- */
.iq-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.iq-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--sans);
}

.iq-pill:hover {
  border-color: var(--accent-muted);
  color: var(--text-primary);
}

.iq-pill--active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-inverse);
}

.iq-pill__count {
  font-size: 0.75rem;
  opacity: 0.7;
}

/* --- Difficulty filter --- */
.iq-difficulty-filter {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.iq-difficulty-label {
  font-size: 0.8rem;
  color: var(--text-tertiary);
  margin-right: 0.25rem;
}

.iq-diff-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--sans);
}

.iq-diff-btn:hover {
  border-color: var(--accent-muted);
}

.iq-diff-btn--active {
  border-color: var(--accent);
  color: var(--accent);
}

/* --- Difficulty dots --- */
.iq-dots {
  display: inline-flex;
  gap: 3px;
  align-items: center;
}

.iq-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
}

.iq-dot--filled {
  background: var(--accent);
}

/* --- Question card list --- */
.iq-question-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.iq-question-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  overflow: hidden;
  transition: border-color var(--transition);
}

.iq-question-card:hover {
  border-color: var(--accent-muted);
}

.iq-question-card__header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: none;
  border: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 0.95rem;
  line-height: 1.4;
}

.iq-question-card__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.iq-question-card__text {
  flex: 1;
  color: var(--text-primary);
  font-weight: 500;
}

.iq-question-card__chevron {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.iq-question-card--open .iq-question-card__chevron {
  transform: rotate(180deg);
}

.iq-question-card__body {
  display: none;
  padding: 0 var(--space-md) var(--space-md);
  border-top: 1px solid var(--border-light);
}

.iq-question-card--open .iq-question-card__body {
  display: block;
}

/* --- Quick tip callout --- */
.iq-quick-tip {
  border-left: 3px solid var(--accent);
  background: var(--accent-bg);
  padding: var(--space-sm) var(--space-md);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: var(--space-sm) 0;
}

.iq-quick-tip strong {
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.25rem;
}

.iq-quick-tip p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
}

/* --- Guidance section --- */
.iq-guidance {
  margin: var(--space-sm) 0;
}

.iq-guidance h4 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.iq-guidance p {
  font-size: 0.9rem;
  line-height: 1.6;
  margin: 0;
}

/* --- Interviewer notes --- */
.iq-interviewer-notes {
  margin: var(--space-sm) 0;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-surface);
  border-radius: var(--radius);
  border: 1px solid var(--border-light);
}

.iq-interviewer-notes h4 {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-tertiary);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.iq-interviewer-notes p {
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0;
  color: var(--text-secondary);
}

/* --- Permalink --- */
.iq-permalink {
  display: inline-block;
  margin-top: var(--space-sm);
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
}

.iq-permalink:hover {
  text-decoration: underline;
}

/* --- No results --- */
.iq-no-results {
  text-align: center;
  padding: var(--space-lg);
  color: var(--text-tertiary);
  font-size: 0.95rem;
}

/* --- Breadcrumbs --- */
.iq-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  margin-bottom: var(--space-md);
  flex-wrap: wrap;
}

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

.iq-breadcrumbs a:hover {
  text-decoration: underline;
}

.iq-breadcrumbs span {
  color: var(--text-tertiary);
}

/* --- Full question page --- */
.iq-question-full {
  margin-bottom: var(--space-lg);
}

.iq-question-full__meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: var(--space-sm);
}

.iq-difficulty-text {
  font-size: 0.8rem;
  color: var(--text-tertiary);
}

.iq-question-full__question {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.3;
  margin-bottom: var(--space-md);
}

/* --- Prev/next navigation --- */
.iq-prev-next {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
  margin-top: var(--space-lg);
}

.iq-prev-next__link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  max-width: 45%;
}

.iq-prev-next__link--next {
  text-align: right;
  align-items: flex-end;
}

.iq-prev-next__dir {
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.15rem;
}

.iq-prev-next__title {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.iq-prev-next__link:hover .iq-prev-next__title {
  color: var(--text-primary);
}

/* --- Specialisation cards --- */
.iq-spec-section {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border);
}

.iq-spec-section__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.iq-spec-section__desc {
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.iq-spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: var(--space-md);
}

.iq-spec-card {
  display: block;
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition);
}

.iq-spec-card:hover {
  border-color: var(--accent-muted);
  transform: translateY(-2px);
}

.iq-spec-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-xs);
}

.iq-spec-card__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
}

.iq-spec-card__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
  line-height: 1.5;
}

.iq-spec-card__count {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
}

/* --- Light mode overrides for stage badges --- */
.content-light .iq-stage-badge--screening {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.content-light .iq-stage-badge--technical {
  background: rgba(200, 148, 62, 0.12);
  color: #92700c;
}

.content-light .iq-stage-badge--behavioural {
  background: rgba(34, 197, 94, 0.12);
  color: #16a34a;
}

.content-light .iq-stage-badge--cultural_fit {
  background: rgba(168, 85, 247, 0.12);
  color: #7c3aed;
}

/* --- Responsive interview questions --- */
@media (max-width: 640px) {
  .iq-stats-bar {
    flex-wrap: wrap;
    gap: var(--space-sm);
    padding: var(--space-sm);
  }

  .iq-stat {
    flex: 1 1 40%;
  }

  .iq-stat__number {
    font-size: 1.5rem;
  }

  .iq-category-grid {
    grid-template-columns: 1fr;
  }

  .iq-filter-bar {
    flex-direction: column;
    align-items: flex-start;
  }

  .iq-question-card__header {
    flex-wrap: wrap;
    padding: var(--space-sm);
  }

  .iq-question-card__meta {
    width: 100%;
    margin-bottom: 0.25rem;
  }

  .iq-question-full__question {
    font-size: 1.35rem;
  }

  .iq-prev-next {
    flex-direction: column;
  }

  .iq-prev-next__link {
    max-width: 100%;
  }

  .iq-prev-next__link--next {
    text-align: left;
    align-items: flex-start;
  }
}

/* --- Progress tracking indicators --- */
.iq-progress-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
  border: 1px solid transparent;
  user-select: none;
}

.iq-progress-badge--none {
  background: transparent;
  color: var(--text-tertiary);
  border-color: var(--border);
  opacity: 0;
}

.iq-question-card:hover .iq-progress-badge--none,
.iq-question-full:hover .iq-progress-badge--none {
  opacity: 0.6;
}

.iq-progress-badge--none:hover {
  opacity: 1 !important;
  border-color: var(--accent-muted);
}

.iq-progress-badge--reviewed {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: rgba(59, 130, 246, 0.25);
}

.iq-progress-badge--confident {
  background: rgba(74, 186, 100, 0.15);
  color: #4ade80;
  border-color: rgba(74, 186, 100, 0.25);
}

.content-light .iq-progress-badge--reviewed {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.content-light .iq-progress-badge--confident {
  background: rgba(74, 186, 100, 0.12);
  color: #16a34a;
}

/* --- Progress summary bar --- */
.iq-progress-bar {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-md);
  font-size: 0.85rem;
}

.iq-progress-bar__track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  display: flex;
}

.iq-progress-bar__fill--confident {
  height: 100%;
  background: #4ade80;
  transition: width 0.4s ease;
}

.iq-progress-bar__fill--reviewed {
  height: 100%;
  background: #60a5fa;
  transition: width 0.4s ease;
}

.iq-progress-bar__label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.iq-progress-bar__count {
  font-weight: 600;
  color: var(--accent);
}

/* --- Practice mode button --- */
.iq-practice-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 1rem;
  font-family: var(--sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--bg-deep, #0b0a09);
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-bright) 100%);
  border: none;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition);
  box-shadow: 0 0 16px rgba(200, 148, 62, 0.15);
}

.iq-practice-btn:hover {
  box-shadow: 0 0 24px rgba(200, 148, 62, 0.3);
  transform: translateY(-1px);
}

.iq-practice-btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  box-shadow: none;
}

.iq-practice-btn--ghost:hover {
  background: rgba(200, 148, 62, 0.08);
  box-shadow: none;
}

/* --- Mock builder link on index --- */
.iq-mock-link {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  margin-bottom: var(--space-lg);
  transition: border-color var(--transition), transform var(--transition);
}

.iq-mock-link:hover {
  border-color: var(--accent-muted);
  transform: translateY(-2px);
}

.iq-mock-link__icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.iq-mock-link__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.iq-mock-link__desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* --- Category card progress chip on index --- */
.iq-category-card__progress {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  color: var(--text-tertiary);
  margin-top: 0.25rem;
}

.iq-category-card__progress-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.iq-category-card__progress-dot--reviewed {
  background: #60a5fa;
}

.iq-category-card__progress-dot--confident {
  background: #4ade80;
}

@media (max-width: 640px) {
  .iq-progress-bar {
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .iq-practice-btn {
    font-size: 0.8rem;
    padding: 0.4rem 0.85rem;
  }

  .iq-mock-link {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Guide grid & cards --- */
.iq-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-md);
}

.iq-guide-card {
  display: block;
  padding: var(--space-md);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--transition), transform var(--transition);
}

.iq-guide-card:hover {
  border-color: var(--accent-muted);
  transform: translateY(-2px);
}

.iq-guide-card__icon {
  font-size: 2rem;
  margin-bottom: var(--space-xs);
}

.iq-guide-card__title {
  font-family: var(--serif);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
  color: var(--text-primary);
  line-height: 1.4;
}

.iq-guide-card__desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
  line-height: 1.5;
}

.iq-guide-card__cta {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 640px) {
  .iq-guide-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   KANBAN BOARD
   ============================================ */

.kanban__view-toggle {
  display: inline-flex;
  gap: 0.35rem;
  margin-top: var(--space-sm);
}

.kanban {
  display: flex;
  gap: var(--space-sm);
  overflow-x: auto;
  padding-bottom: var(--space-md);
  -webkit-overflow-scrolling: touch;
}

.kanban__column {
  flex: 0 0 220px;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  max-height: 75vh;
}

.kanban__column-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.6rem;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-deep);
  border-bottom: 2px solid var(--border);
  margin-bottom: var(--space-xs);
}

.kanban__column-title {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
}

.kanban__count {
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  background: var(--bg-elevated);
  color: var(--text-tertiary);
  padding: 0.1rem 0.4rem;
  border-radius: 999px;
  min-width: 1.4rem;
  text-align: center;
}

.kanban__cards {
  flex: 1;
  overflow-y: auto;
  padding: 0.25rem;
  min-height: 60px;
}

.kanban__card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem;
  margin-bottom: 0.35rem;
  cursor: grab;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  position: relative;
}

.kanban__card:hover {
  border-color: var(--accent-muted);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.2);
}

.kanban__card:active {
  cursor: grabbing;
}

.kanban__card--dragging {
  opacity: 0.4;
}

.kanban__card--saving {
  opacity: 0.7;
  pointer-events: none;
}

.kanban__card--withdrawn {
  opacity: 0.5;
  cursor: default;
  border-style: dashed;
}

.kanban__card-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
  line-height: 1.3;
}

.kanban__card-headline {
  font-size: 0.78rem;
  color: var(--accent);
  margin-bottom: 0.2rem;
  line-height: 1.3;
}

.kanban__card-date {
  font-size: 0.7rem;
  color: var(--text-tertiary);
  margin-bottom: 0.3rem;
}

.kanban__card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  margin-bottom: 0.3rem;
}

.kanban__card-more {
  font-size: 0.68rem;
  color: var(--text-tertiary);
  align-self: center;
}

.kanban__card-cv {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  padding: 0.1rem 0.4rem;
  border: 1px solid var(--accent-muted);
  border-radius: var(--radius-sm, 3px);
  transition: background 0.15s ease;
}

.kanban__card-cv:hover {
  background: rgba(200, 148, 62, 0.1);
}

.kanban__card-withdrawn-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #c87070;
  margin-top: 0.2rem;
}

/* Placeholder bar during drag */
.kanban__placeholder {
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
  margin: 0.2rem 0;
  transition: opacity 0.15s ease;
}

/* --- Detail panel --- */
.kanban__detail {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100vh;
  background: var(--bg-surface);
  border-left: 1px solid var(--border);
  z-index: 1000;
  transform: translateX(100%);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.kanban__detail--open {
  transform: translateX(0);
}

.kanban__detail-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-md);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.kanban__detail-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  margin: 0;
  color: var(--text-primary);
}

.kanban__detail-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-tertiary);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius);
  transition: color 0.15s ease, background 0.15s ease;
  line-height: 1;
}

.kanban__detail-close:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
}

.kanban__detail-body {
  padding: var(--space-md);
  flex: 1;
}

.kanban__detail-headline {
  font-size: 0.95rem;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.kanban__detail-meta {
  margin-bottom: var(--space-sm);
}

.kanban__detail-meta p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 0.2rem;
}

.kanban__detail-skills {
  margin-bottom: var(--space-sm);
}

.kanban__detail-links {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-bottom: var(--space-md);
}

.kanban__detail-cover,
.kanban__detail-rejection {
  margin-bottom: var(--space-md);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-light);
}

.kanban__detail-cover h4,
.kanban__detail-rejection h4,
.kanban__detail-notes-section h4 {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  margin-bottom: var(--space-xs);
}

.kanban__detail-cover-text,
.kanban__detail-rejection-text {
  font-size: 0.9rem;
  line-height: 1.6;
  white-space: pre-line;
  margin: 0;
}

.kanban__detail-notes-section {
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-light);
}

.kanban__detail-notes-form textarea {
  width: 100%;
  font-family: var(--sans);
  font-size: 0.88rem;
  padding: 0.5rem 0.6rem;
  background: var(--bg-elevated);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  resize: vertical;
  margin-bottom: 0.4rem;
}

.kanban__detail-notes-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(200, 148, 62, 0.15);
}

/* --- Backdrop --- */
.kanban__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.kanban__backdrop--open {
  opacity: 1;
  visibility: visible;
}

/* --- Rejection modal --- */
.kanban__modal {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.6);
}

.kanban__modal-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  max-width: 420px;
  width: 90%;
}

.kanban__modal-content h3 {
  font-family: var(--serif);
  font-size: 1.2rem;
  margin-bottom: var(--space-xs);
}

.kanban__modal-content p {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-sm);
}

/* --- Responsive kanban --- */
@media (max-width: 768px) {
  .kanban__column {
    flex: 0 0 180px;
    min-width: 180px;
  }

  .kanban__detail {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .kanban__column {
    flex: 0 0 160px;
    min-width: 160px;
  }
}

/* --- Match Score --- */
.task-tag--match-high {
  background: rgba(74, 158, 96, 0.15);
  color: #6bc285;
}

.task-tag--match-mid {
  background: rgba(200, 170, 62, 0.15);
  color: #c8a83e;
}

.task-tag--match-low {
  background: rgba(160, 160, 160, 0.12);
  color: var(--text-muted);
}

.skill-tag--matched {
  background: rgba(74, 158, 96, 0.12);
  border-color: rgba(74, 158, 96, 0.4);
  color: #6bc285;
}

.match-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 0.35rem;
  overflow: hidden;
}

.match-bar__fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s ease;
}

.match-bar__fill--high { background: #6bc285; }
.match-bar__fill--mid { background: #c8a83e; }
.match-bar__fill--low { background: var(--text-muted); }

/* --- Skill Autocomplete Tag Input --- */

.skill-input-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  min-height: 42px;
  padding: 0.35rem 0.5rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: text;
  position: relative;
}

.skill-input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px var(--accent-bg);
}

.skill-input-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.5rem;
  background: var(--accent-bg);
  border: 1px solid var(--accent-muted);
  border-radius: 3px;
  font-size: 0.82rem;
  font-family: var(--sans);
  color: var(--text-primary);
  white-space: nowrap;
  line-height: 1.4;
}

.skill-input-pill__remove {
  all: unset;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  color: var(--text-tertiary);
  padding: 0 0.1rem;
}

.skill-input-pill__remove:hover {
  color: var(--text-primary);
}

.skill-input-field {
  flex: 1 1 80px;
  min-width: 80px;
  border: none;
  outline: none;
  background: transparent;
  font-size: 0.9rem;
  font-family: var(--sans);
  color: var(--text-primary);
  padding: 0.15rem 0;
}

.skill-input-field::placeholder {
  color: var(--text-tertiary);
}

.skill-input-suggestions {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.skill-input-suggestions__item {
  padding: 0.45rem 0.75rem;
  font-size: 0.88rem;
  font-family: var(--sans);
  color: var(--text-primary);
  cursor: pointer;
}

.skill-input-suggestions__item:hover,
.skill-input-suggestions__item--active {
  background: var(--bg-hover);
}

.content-light .skill-input-suggestions {
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Blog prose */
.prose h2, .prose h3, .prose h4 { margin-top: 2rem; margin-bottom: 0.75rem; }
.prose p { margin-bottom: 1rem; line-height: 1.75; }
.prose ul, .prose ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.prose li { margin-bottom: 0.4rem; line-height: 1.7; }
.prose strong { font-weight: 600; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose hr { margin: 2rem 0; border: none; border-top: 1px solid var(--border); }
